Declare ecvt, fcvt, gcvt, mktemp in stdlib.h for XOPEN2K (bug 14824).
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #14824]
4         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
5         (mktemp): Enable declaration.
6         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
8         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
9         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
10         Likewise.
11         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12         Likewise.
13         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
14         Likewise.
15         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16         Likewise.
17         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
18         Likewise.
19         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
20         Likewise.
21
22         [BZ #14821]
23         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25         for copies of such integer values.
26         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
27         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28
29 2012-11-09  Andreas Jaeger  <aj@suse.de>
30
31         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
32         definitions and declarations that are provided by
33         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
34
35 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36
37         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
38         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
39         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
40         definition.
41
42 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
43
44         * elf/elf.h: Update comment before AArch64 relocations.
45
46 2012-11-07  David S. Miller  <davem@davemloft.net>
47
48         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
49         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
50         (__start_context): Declare.
51         (__makecontext_ret): Delete.
52         (__makecontext): Hook up __start_context instead of
53         __makecontext_ret.
54         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55         (sysdep_routines): Add __start_context when in stdlib.
56
57 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58
59         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
60         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
62         hardcoded "nm".
63         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
64         (READELF): New variable.  Use it instead of hardcoded "readelf".
65
66 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
67
68         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
69         * sysdeps/x86/Makefile: Here.
70         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
71         * sysdeps/x86/tst-xmmymm.sh: This.
72
73 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
74
75         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
76         expectations.
77         [UNIX98] (pthread_barrier_t): Do not expect.
78         [UNIX98] (pthread_barrierattr_t): Likewise.
79         [UNIX98] (pthread_spinlock_t): Likewise.
80         [UNIX98] (pthread_barrier_destroy): Likewise.
81         [UNIX98] (pthread_barrier_init): Likewise.
82         [UNIX98] (pthread_barrier_wait): Likewise.
83         [UNIX98] (pthread_barrierattr_destroy): Likewise.
84         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
85         [UNIX98] (pthread_barrierattr_init): Likewise.
86         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
87         [UNIX98] (pthread_getcpuclockid): Likewise.
88         [UNIX98] (pthread_mutex_timedlock): Likewise.
89         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
90         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
91         [UNIX98] (pthread_sigmask): Likewise.
92         [UNIX98] (pthread_spin_destroy): Likewise.
93         [UNIX98] (pthread_spin_init): Likewise.
94         [UNIX98] (pthread_spin_lock): Likewise.
95         [UNIX98] (pthread_spin_trylock): Likewise.
96         [UNIX98] (pthread_spin_unlock): Likewise.
97         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
98         Do not expect.
99         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
100         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
101         [XPG3 || XPG4] (pthread_cond_t): Likewise.
102         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
103         [XPG3 || XPG4] (pthread_key_t): Likewise.
104         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
105         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
106         [XPG3 || XPG4] (pthread_once_t): Likewise.
107         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
108         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
109         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
110         [XPG3 || XPG4] (pthread_t): Likewise.
111
112         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
113         not expect.
114         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
115
116         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
117         Change function return type to int.
118
119         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
120         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
121         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
122         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
123         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
124         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
125         [!POSIX] (posix_madvise): Likewise.
126         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
127         && !UNIX98].
128         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
129         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
130         (mode_t): Likewise.
131         (posix_mem_offset): Likewise.
132         (posix_typed_mem_get_info): Likewise.
133         (posix_typed_mem_open): Likewise.
134
135         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
136         Change condition to [XOPEN2K8].
137
138         * conform/conformtest.pl: Preprocess allow-header data with -x c
139         instead of from stdin.
140         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
141         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
142         [C99-based standards] (cerfc): Likewise.
143         [C99-based standards] (cexp2): Likewise.
144         [C99-based standards] (cexpm1): Likewise.
145         [C99-based standards] (clog10): Likewise.
146         [C99-based standards] (clog1p): Likewise.
147         [C99-based standards] (clog2): Likewise.
148         [C99-based standards] (clgamma): Likewise.
149         [C99-based standards] (ctgamma): Likewise.
150         [C99-based standards] (cerff): Likewise.
151         [C99-based standards] (cerfcf): Likewise.
152         [C99-based standards] (cexp2f): Likewise.
153         [C99-based standards] (cexpm1f): Likewise.
154         [C99-based standards] (clog10f): Likewise.
155         [C99-based standards] (clog1pf): Likewise.
156         [C99-based standards] (clog2f): Likewise.
157         [C99-based standards] (clgammaf): Likewise.
158         [C99-based standards] (ctgammaf): Likewise.
159         [C99-based standards] (cerfl): Likewise.
160         [C99-based standards] (cerfcl): Likewise.
161         [C99-based standards] (cexp2l): Likewise.
162         [C99-based standards] (cexpm1l): Likewise.
163         [C99-based standards] (clog10l): Likewise.
164         [C99-based standards] (clog1pl): Likewise.
165         [C99-based standards] (clog2l): Likewise.
166         [C99-based standards] (clgammal): Likewise.
167         [C99-based standards] (ctgammal): Likewise.
168         * conform/data/inttypes.h-data [C99-based standards]: Include
169         stdint.h-data.  Remove all expectations for stdint.h contents.
170         [C99-based standards] (PRI*): Do not allow.
171         [C99-based standards] (SCN*): Likewise.
172         [C99-based standards] (*_t): Likewise.
173         [C99-based-standards] (PRId8): Expect macro.
174         [C99-based-standards] (PRIi8): Likewise.
175         [C99-based-standards] (PRIo8): Likewise.
176         [C99-based-standards] (PRIu8): Likewise.
177         [C99-based-standards] (PRIx8): Likewise.
178         [C99-based-standards] (PRIX8): Likewise.
179         [C99-based-standards] (SCNd8): Likewise.
180         [C99-based-standards] (SCNi8): Likewise.
181         [C99-based-standards] (SCNo8): Likewise.
182         [C99-based-standards] (SCNu8): Likewise.
183         [C99-based-standards] (SCNx8): Likewise.
184         [C99-based-standards] (PRIdLEAST8): Likewise.
185         [C99-based-standards] (PRIiLEAST8): Likewise.
186         [C99-based-standards] (PRIoLEAST8): Likewise.
187         [C99-based-standards] (PRIuLEAST8): Likewise.
188         [C99-based-standards] (PRIxLEAST8): Likewise.
189         [C99-based-standards] (PRIXLEAST8): Likewise.
190         [C99-based-standards] (SCNdLEAST8): Likewise.
191         [C99-based-standards] (SCNiLEAST8): Likewise.
192         [C99-based-standards] (SCNoLEAST8): Likewise.
193         [C99-based-standards] (SCNuLEAST8): Likewise.
194         [C99-based-standards] (SCNxLEAST8): Likewise.
195         [C99-based-standards] (PRIdFAST8): Likewise.
196         [C99-based-standards] (PRIiFAST8): Likewise.
197         [C99-based-standards] (PRIoFAST8): Likewise.
198         [C99-based-standards] (PRIuFAST8): Likewise.
199         [C99-based-standards] (PRIxFAST8): Likewise.
200         [C99-based-standards] (PRIXFAST8): Likewise.
201         [C99-based-standards] (SCNdFAST8): Likewise.
202         [C99-based-standards] (SCNiFAST8): Likewise.
203         [C99-based-standards] (SCNoFAST8): Likewise.
204         [C99-based-standards] (SCNuFAST8): Likewise.
205         [C99-based-standards] (SCNxFAST8): Likewise.
206         [C99-based-standards] (PRId16): Likewise.
207         [C99-based-standards] (PRIi16): Likewise.
208         [C99-based-standards] (PRIo16): Likewise.
209         [C99-based-standards] (PRIu16): Likewise.
210         [C99-based-standards] (PRIx16): Likewise.
211         [C99-based-standards] (PRIX16): Likewise.
212         [C99-based-standards] (SCNd16): Likewise.
213         [C99-based-standards] (SCNi16): Likewise.
214         [C99-based-standards] (SCNo16): Likewise.
215         [C99-based-standards] (SCNu16): Likewise.
216         [C99-based-standards] (SCNx16): Likewise.
217         [C99-based-standards] (PRIdLEAST16): Likewise.
218         [C99-based-standards] (PRIiLEAST16): Likewise.
219         [C99-based-standards] (PRIoLEAST16): Likewise.
220         [C99-based-standards] (PRIuLEAST16): Likewise.
221         [C99-based-standards] (PRIxLEAST16): Likewise.
222         [C99-based-standards] (PRIXLEAST16): Likewise.
223         [C99-based-standards] (SCNdLEAST16): Likewise.
224         [C99-based-standards] (SCNiLEAST16): Likewise.
225         [C99-based-standards] (SCNoLEAST16): Likewise.
226         [C99-based-standards] (SCNuLEAST16): Likewise.
227         [C99-based-standards] (SCNxLEAST16): Likewise.
228         [C99-based-standards] (PRIdFAST16): Likewise.
229         [C99-based-standards] (PRIiFAST16): Likewise.
230         [C99-based-standards] (PRIoFAST16): Likewise.
231         [C99-based-standards] (PRIuFAST16): Likewise.
232         [C99-based-standards] (PRIxFAST16): Likewise.
233         [C99-based-standards] (PRIXFAST16): Likewise.
234         [C99-based-standards] (SCNdFAST16): Likewise.
235         [C99-based-standards] (SCNiFAST16): Likewise.
236         [C99-based-standards] (SCNoFAST16): Likewise.
237         [C99-based-standards] (SCNuFAST16): Likewise.
238         [C99-based-standards] (SCNxFAST16): Likewise.
239         [C99-based-standards] (PRId32): Likewise.
240         [C99-based-standards] (PRIi32): Likewise.
241         [C99-based-standards] (PRIo32): Likewise.
242         [C99-based-standards] (PRIu32): Likewise.
243         [C99-based-standards] (PRIx32): Likewise.
244         [C99-based-standards] (PRIX32): Likewise.
245         [C99-based-standards] (SCNd32): Likewise.
246         [C99-based-standards] (SCNi32): Likewise.
247         [C99-based-standards] (SCNo32): Likewise.
248         [C99-based-standards] (SCNu32): Likewise.
249         [C99-based-standards] (SCNx32): Likewise.
250         [C99-based-standards] (PRIdLEAST32): Likewise.
251         [C99-based-standards] (PRIiLEAST32): Likewise.
252         [C99-based-standards] (PRIoLEAST32): Likewise.
253         [C99-based-standards] (PRIuLEAST32): Likewise.
254         [C99-based-standards] (PRIxLEAST32): Likewise.
255         [C99-based-standards] (PRIXLEAST32): Likewise.
256         [C99-based-standards] (SCNdLEAST32): Likewise.
257         [C99-based-standards] (SCNiLEAST32): Likewise.
258         [C99-based-standards] (SCNoLEAST32): Likewise.
259         [C99-based-standards] (SCNuLEAST32): Likewise.
260         [C99-based-standards] (SCNxLEAST32): Likewise.
261         [C99-based-standards] (PRIdFAST32): Likewise.
262         [C99-based-standards] (PRIiFAST32): Likewise.
263         [C99-based-standards] (PRIoFAST32): Likewise.
264         [C99-based-standards] (PRIuFAST32): Likewise.
265         [C99-based-standards] (PRIxFAST32): Likewise.
266         [C99-based-standards] (PRIXFAST32): Likewise.
267         [C99-based-standards] (SCNdFAST32): Likewise.
268         [C99-based-standards] (SCNiFAST32): Likewise.
269         [C99-based-standards] (SCNoFAST32): Likewise.
270         [C99-based-standards] (SCNuFAST32): Likewise.
271         [C99-based-standards] (SCNxFAST32): Likewise.
272         [C99-based-standards] (PRId64): Likewise.
273         [C99-based-standards] (PRIi64): Likewise.
274         [C99-based-standards] (PRIo64): Likewise.
275         [C99-based-standards] (PRIu64): Likewise.
276         [C99-based-standards] (PRIx64): Likewise.
277         [C99-based-standards] (PRIX64): Likewise.
278         [C99-based-standards] (SCNd64): Likewise.
279         [C99-based-standards] (SCNi64): Likewise.
280         [C99-based-standards] (SCNo64): Likewise.
281         [C99-based-standards] (SCNu64): Likewise.
282         [C99-based-standards] (SCNx64): Likewise.
283         [C99-based-standards] (PRIdLEAST64): Likewise.
284         [C99-based-standards] (PRIiLEAST64): Likewise.
285         [C99-based-standards] (PRIoLEAST64): Likewise.
286         [C99-based-standards] (PRIuLEAST64): Likewise.
287         [C99-based-standards] (PRIxLEAST64): Likewise.
288         [C99-based-standards] (PRIXLEAST64): Likewise.
289         [C99-based-standards] (SCNdLEAST64): Likewise.
290         [C99-based-standards] (SCNiLEAST64): Likewise.
291         [C99-based-standards] (SCNoLEAST64): Likewise.
292         [C99-based-standards] (SCNuLEAST64): Likewise.
293         [C99-based-standards] (SCNxLEAST64): Likewise.
294         [C99-based-standards] (PRIdFAST64): Likewise.
295         [C99-based-standards] (PRIiFAST64): Likewise.
296         [C99-based-standards] (PRIoFAST64): Likewise.
297         [C99-based-standards] (PRIuFAST64): Likewise.
298         [C99-based-standards] (PRIxFAST64): Likewise.
299         [C99-based-standards] (PRIXFAST64): Likewise.
300         [C99-based-standards] (SCNdFAST64): Likewise.
301         [C99-based-standards] (SCNiFAST64): Likewise.
302         [C99-based-standards] (SCNoFAST64): Likewise.
303         [C99-based-standards] (SCNuFAST64): Likewise.
304         [C99-based-standards] (SCNxFAST64): Likewise.
305         [C99-based-standards] (PRIdMAX): Likewise.
306         [C99-based-standards] (PRIiMAX): Likewise.
307         [C99-based-standards] (PRIoMAX): Likewise.
308         [C99-based-standards] (PRIuMAX): Likewise.
309         [C99-based-standards] (PRIxMAX): Likewise.
310         [C99-based-standards] (PRIXMAX): Likewise.
311         [C99-based-standards] (SCNdMAX): Likewise.
312         [C99-based-standards] (SCNiMAX): Likewise.
313         [C99-based-standards] (SCNoMAX): Likewise.
314         [C99-based-standards] (SCNuMAX): Likewise.
315         [C99-based-standards] (SCNxMAX): Likewise.
316         [C99-based-standards] (PRIdPTR): Likewise.
317         [C99-based-standards] (PRIiPTR): Likewise.
318         [C99-based-standards] (PRIoPTR): Likewise.
319         [C99-based-standards] (PRIuPTR): Likewise.
320         [C99-based-standards] (PRIxPTR): Likewise.
321         [C99-based-standards] (PRIXPTR): Likewise.
322         [C99-based-standards] (SCNdPTR): Likewise.
323         [C99-based-standards] (SCNiPTR): Likewise.
324         [C99-based-standards] (SCNoPTR): Likewise.
325         [C99-based-standards] (SCNuPTR): Likewise.
326         [C99-based-standards] (SCNxPTR): Likewise.
327         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
328         allow.
329         * conform/data/stdint.h-data: Update comments to clarify
330         requirements.
331         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
332         type.
333         [C99-based standards] (INT8_MAX): Likewise.
334         [C99-based standards] (INT16_MIN): Likewise.
335         [C99-based standards] (INT16_MAX): Likewise.
336         [C99-based standards] (INT32_MIN): Likewise.
337         [C99-based standards] (INT32_MAX): Likewise.
338         [C99-based standards] (INT64_MIN): Likewise.
339         [C99-based standards] (INT64_MAX): Likewise.
340         [C99-based standards] (UINT8_MAX): Likewise.
341         [C99-based standards] (UINT16_MAX): Likewise.
342         [C99-based standards] (UINT32_MAX): Likewise.
343         [C99-based standards] (UINT64_MAX): Likewise.
344         [C99-based standards] (INT_LEAST8_MIN): Likewise.
345         [C99-based standards] (INT_LEAST8_MAX): Likewise.
346         [C99-based standards] (INT_LEAST16_MIN): Likewise.
347         [C99-based standards] (INT_LEAST16_MAX): Likewise.
348         [C99-based standards] (INT_LEAST32_MIN): Likewise.
349         [C99-based standards] (INT_LEAST32_MAX): Likewise.
350         [C99-based standards] (INT_LEAST64_MIN): Likewise.
351         [C99-based standards] (INT_LEAST64_MAX): Likewise.
352         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
353         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
354         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
355         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
356         [C99-based standards] (INT_FAST8_MIN): Likewise.
357         [C99-based standards] (INT_FAST8_MAX): Likewise.
358         [C99-based standards] (INT_FAST16_MIN): Likewise.
359         [C99-based standards] (INT_FAST16_MAX): Likewise.
360         [C99-based standards] (INT_FAST32_MIN): Likewise.
361         [C99-based standards] (INT_FAST32_MAX): Likewise.
362         [C99-based standards] (INT_FAST64_MIN): Likewise.
363         [C99-based standards] (INT_FAST64_MAX): Likewise.
364         [C99-based standards] (UINT_FAST8_MAX): Likewise.
365         [C99-based standards] (UINT_FAST16_MAX): Likewise.
366         [C99-based standards] (UINT_FAST32_MAX): Likewise.
367         [C99-based standards] (UINT_FAST64_MAX): Likewise.
368         [C99-based standards] (INTPTR_MIN): Likewise.
369         [C99-based standards] (INTPTR_MAX): Likewise.
370         [C99-based standards] (UINTPTR_MAX): Likewise.
371         [C99-based standards] (INTMAX_MIN): Likewise.
372         [C99-based standards] (INTMAX_MAX): Likewise.
373         [C99-based standards] (UINTMAX_MAX): Likewise.
374         [C99-based standards] (PTRDIFF_MIN): Likewise.
375         [C99-based standards] (PTRDIFF_MAX): Likewise.
376         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
377         [C99-based standards] (SIZE_MAX): Likewise.
378         [C99-based standards] (WCHAR_MAX): Likewise.
379         [C99-based standards] (WINT_MAX): Likewise.
380         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
381         constraint on value.
382         [C99-based standards] (WCHAR_MIN): Likewise.
383         [C99-based standards] (WINT_MIN): Likewise.
384         [C99-based standards] (*_t): Allow.
385         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
386         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
387         Include math.h-data and complex.h-data.  Remove all expectations
388         of math.h and complex.h contents.
389         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
390         at end of line.
391         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
392         (struct tm): Expect tag.
393         [C99-based-standards] (wcstof): Expect function.
394         [C99-based-standards] (wcstold): Likewise.
395         [C99-based-standards] (wcstoll): Likewise.
396         [C99-based-standards] (wcstoull): Likewise.
397         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
398         macro-int-constant.  Specify type.
399         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
400         constraint on value.
401         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
402         Specify type.
403         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
404         Specify value.
405         [ISO C standards]: Do not allow headers.
406         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
407         wcs[abcdefghijklmnopqrstuvwxyz]*.
408         [ISO C standards] (*_t): Do not allow.
409         * conform/data/wctype.h-data [C99-based standards] (iswblank):
410         Expect function.
411         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
412         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
413         Specify type.
414         [ISO C standards]: Do not allow headers.
415         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
416         is[abcdefghijklmnopqrstuvwxyz]*.
417         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
418         to[abcdefghijklmnopqrstuvwxyz]*.
419         [ISO C standards] (*_t): Do not allow.
420         * conform/data/stdalign.h-data: New file.
421         * conform/data/stdbool.h-data: Likewise.
422         * conform/data/stdnoreturn.h-data: Likewise.
423
424 2012-11-07  Andreas Jaeger  <aj@suse.de>
425
426         [BZ #14809]
427         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
428         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
429         guards are changed.  Only define if not yet defined, #undef back
430         after including linux/sysctl.h if defined here.
431
432 2012-11-07  Roland McGrath  <roland@hack.frob.com>
433
434         [BZ #14815]
435         * manual/filesys.texi (Directory Entries): Typo fix.
436         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
437
438 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
439
440         * elf/elf.h (EM_AARCH64): New macro.
441         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
442         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
443         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
444         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
445         (R_AARCH64_TLSDESC): Likewise.
446         (NT_ARM_TLS): Likewise.
447         (NT_ARM_HW_BREAK): Likewise.
448         (NT_ARM_HW_WATCH): Likewise.
449
450 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
451
452         [BZ #14811]
453         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
454         (__ieee754_powl): Saturate nonzero exponents with absolute value
455         below 0x1p-79 to +/- 0x1p-79.
456         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
457         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
458         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
459         nonzero exponents with absolute value below 0x1p-32 to +/-
460         0x1p-32.
461         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
462         (__ieee754_powl): Saturate nonzero exponents with absolute value
463         below 0x1p-79 to +/- 0x1p-79.
464         * math/libm-test.inc (pow_test): Add more tests.
465
466 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
467
468         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
469         _dl_s390_cap_flags with kernel. Increase string length.
470         (_dl_s390_platforms): Add z196 and zEC12.
471
472 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
473
474         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
475         Change XOPEN21K to XOPEN2K.
476
477 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
478
479         * string/memmove.c: Use memcpy when possible.
480
481 2012-11-06  Andreas Jaeger  <aj@suse.de>
482
483         * po/eo.po: Update from translation team.
484
485 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
486
487         [BZ #14793]
488         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
489         exponent and small x and y exponents, scale x or y up.  Increase
490         by 2 the exponent used in scaling up.
491         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
492         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
493         * math/libm-test.inc (fma_test): Add more tests.
494         (fma_test_towardzero): Likewise.
495         (fma_test_downward): Likewise.
496         (fma_test_upward): Likewise.
497
498 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
499
500         [BZ #14805]
501         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
502         fenv_t *.
503
504         [BZ #14801]
505         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
506         namespace for names of struct fields.
507         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
508         fenv_t fields.
509         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
510         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
511
512 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
513
514         [BZ #3665]
515         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
516
517 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
518
519         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
520         PTR_DEMANGLE.
521
522         [BZ #5246]
523         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
524         PTR_DEMANGLE.
525
526 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
527
528         [BZ #14797]
529         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
530         definitely overflow as x * y not x * y + z.
531         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
532         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
533         * math/libm-test.inc (fma_test): Add more tests.
534         (fma_test_towardzero): Likewise.
535         (fma_test_downward): Likewise.
536         (fma_test_upward): Likewise.
537
538 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
539
540         [BZ #157]
541
542         * include/stub-tag.h: Remove file.
543         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
544         '#include' of it.
545         * manual/maint.texi (Porting): Don't reference it.
546         * Makerules ($(objpfx)stubs): Likewise.
547         * dirent/closedir.c: Don't include <stub-tag.h>.
548         * dirent/dirfd.c: Likewise.
549         * dirent/fdopendir.c: Likewise.
550         * dirent/getdents.c: Likewise.
551         * dirent/getdents64.c: Likewise.
552         * dirent/opendir.c: Likewise.
553         * dirent/readdir.c: Likewise.
554         * dirent/readdir64.c: Likewise.
555         * dirent/readdir64_r.c: Likewise.
556         * dirent/readdir_r.c: Likewise.
557         * dirent/rewinddir.c: Likewise.
558         * dirent/seekdir.c: Likewise.
559         * dirent/telldir.c: Likewise.
560         * gmon/profil.c: Likewise.
561         * grp/setgroups.c: Likewise.
562         * inet/if_index.c: Likewise.
563         * io/access.c: Likewise.
564         * io/chdir.c: Likewise.
565         * io/chmod.c: Likewise.
566         * io/chown.c: Likewise.
567         * io/close.c: Likewise.
568         * io/dup.c: Likewise.
569         * io/dup2.c: Likewise.
570         * io/dup3.c: Likewise.
571         * io/euidaccess.c: Likewise.
572         * io/faccessat.c: Likewise.
573         * io/fchdir.c: Likewise.
574         * io/fchmod.c: Likewise.
575         * io/fchmodat.c: Likewise.
576         * io/fchown.c: Likewise.
577         * io/fchownat.c: Likewise.
578         * io/fcntl.c: Likewise.
579         * io/flock.c: Likewise.
580         * io/fstatfs.c: Likewise.
581         * io/fstatfs64.c: Likewise.
582         * io/fstatvfs.c: Likewise.
583         * io/fstatvfs64.c: Likewise.
584         * io/futimens.c: Likewise.
585         * io/fxstat.c: Likewise.
586         * io/fxstat64.c: Likewise.
587         * io/fxstatat.c: Likewise.
588         * io/fxstatat64.c: Likewise.
589         * io/getcwd.c: Likewise.
590         * io/isatty.c: Likewise.
591         * io/lchmod.c: Likewise.
592         * io/lchown.c: Likewise.
593         * io/link.c: Likewise.
594         * io/linkat.c: Likewise.
595         * io/lseek.c: Likewise.
596         * io/lseek64.c: Likewise.
597         * io/lxstat64.c: Likewise.
598         * io/mkdir.c: Likewise.
599         * io/mkdirat.c: Likewise.
600         * io/mkfifo.c: Likewise.
601         * io/mkfifoat.c: Likewise.
602         * io/open.c: Likewise.
603         * io/open64.c: Likewise.
604         * io/openat.c: Likewise.
605         * io/openat64.c: Likewise.
606         * io/pipe.c: Likewise.
607         * io/pipe2.c: Likewise.
608         * io/poll.c: Likewise.
609         * io/posix_fadvise.c: Likewise.
610         * io/posix_fadvise64.c: Likewise.
611         * io/posix_fallocate.c: Likewise.
612         * io/posix_fallocate64.c: Likewise.
613         * io/read.c: Likewise.
614         * io/readlink.c: Likewise.
615         * io/readlinkat.c: Likewise.
616         * io/rmdir.c: Likewise.
617         * io/sendfile.c: Likewise.
618         * io/sendfile64.c: Likewise.
619         * io/statfs.c: Likewise.
620         * io/statfs64.c: Likewise.
621         * io/statvfs.c: Likewise.
622         * io/statvfs64.c: Likewise.
623         * io/symlink.c: Likewise.
624         * io/symlinkat.c: Likewise.
625         * io/ttyname.c: Likewise.
626         * io/ttyname_r.c: Likewise.
627         * io/umask.c: Likewise.
628         * io/unlink.c: Likewise.
629         * io/unlinkat.c: Likewise.
630         * io/utime.c: Likewise.
631         * io/utimensat.c: Likewise.
632         * io/write.c: Likewise.
633         * io/xmknod.c: Likewise.
634         * io/xmknodat.c: Likewise.
635         * io/xstat.c: Likewise.
636         * io/xstat64.c: Likewise.
637         * login/getpt.c: Likewise.
638         * login/grantpt.c: Likewise.
639         * login/unlockpt.c: Likewise.
640         * math/e_acoshl.c: Likewise.
641         * math/e_acosl.c: Likewise.
642         * math/e_asinl.c: Likewise.
643         * math/e_atan2l.c: Likewise.
644         * math/e_atanhl.c: Likewise.
645         * math/e_coshl.c: Likewise.
646         * math/e_expl.c: Likewise.
647         * math/e_fmodl.c: Likewise.
648         * math/e_gammal_r.c: Likewise.
649         * math/e_hypotl.c: Likewise.
650         * math/e_j0l.c: Likewise.
651         * math/e_j1l.c: Likewise.
652         * math/e_jnl.c: Likewise.
653         * math/e_lgammal_r.c: Likewise.
654         * math/e_log10l.c: Likewise.
655         * math/e_log2l.c: Likewise.
656         * math/e_logl.c: Likewise.
657         * math/e_powl.c: Likewise.
658         * math/e_rem_pio2l.c: Likewise.
659         * math/e_sinhl.c: Likewise.
660         * math/e_sqrtl.c: Likewise.
661         * math/fclrexcpt.c: Likewise.
662         * math/fedisblxcpt.c: Likewise.
663         * math/feenablxcpt.c: Likewise.
664         * math/fegetenv.c: Likewise.
665         * math/fegetexcept.c: Likewise.
666         * math/fegetround.c: Likewise.
667         * math/feholdexcpt.c: Likewise.
668         * math/fesetenv.c: Likewise.
669         * math/fesetround.c: Likewise.
670         * math/feupdateenv.c: Likewise.
671         * math/fgetexcptflg.c: Likewise.
672         * math/fraiseexcpt.c: Likewise.
673         * math/fsetexcptflg.c: Likewise.
674         * math/ftestexcept.c: Likewise.
675         * math/k_cosl.c: Likewise.
676         * math/k_rem_pio2l.c: Likewise.
677         * math/k_sinl.c: Likewise.
678         * math/k_tanl.c: Likewise.
679         * math/s_asinhl.c: Likewise.
680         * math/s_atanl.c: Likewise.
681         * math/s_cbrtl.c: Likewise.
682         * math/s_erfl.c: Likewise.
683         * math/s_expm1l.c: Likewise.
684         * math/s_log1pl.c: Likewise.
685         * math/s_tanhl.c: Likewise.
686         * misc/acct.c: Likewise.
687         * misc/brk.c: Likewise.
688         * misc/chflags.c: Likewise.
689         * misc/chroot.c: Likewise.
690         * misc/fchflags.c: Likewise.
691         * misc/fgetxattr.c: Likewise.
692         * misc/flistxattr.c: Likewise.
693         * misc/fremovexattr.c: Likewise.
694         * misc/fsetxattr.c: Likewise.
695         * misc/fsync.c: Likewise.
696         * misc/ftruncate.c: Likewise.
697         * misc/futimes.c: Likewise.
698         * misc/futimesat.c: Likewise.
699         * misc/getdomain.c: Likewise.
700         * misc/getdtsz.c: Likewise.
701         * misc/gethostid.c: Likewise.
702         * misc/gethostname.c: Likewise.
703         * misc/getloadavg.c: Likewise.
704         * misc/getpagesize.c: Likewise.
705         * misc/getsysstats.c: Likewise.
706         * misc/getxattr.c: Likewise.
707         * misc/gtty.c: Likewise.
708         * misc/ioctl.c: Likewise.
709         * misc/lgetxattr.c: Likewise.
710         * misc/listxattr.c: Likewise.
711         * misc/llistxattr.c: Likewise.
712         * misc/lremovexattr.c: Likewise.
713         * misc/lsetxattr.c: Likewise.
714         * misc/lutimes.c: Likewise.
715         * misc/madvise.c: Likewise.
716         * misc/mincore.c: Likewise.
717         * misc/mlock.c: Likewise.
718         * misc/mlockall.c: Likewise.
719         * misc/mmap.c: Likewise.
720         * misc/mprotect.c: Likewise.
721         * misc/msync.c: Likewise.
722         * misc/munlock.c: Likewise.
723         * misc/munlockall.c: Likewise.
724         * misc/munmap.c: Likewise.
725         * misc/preadv.c: Likewise.
726         * misc/preadv64.c: Likewise.
727         * misc/ptrace.c: Likewise.
728         * misc/pwritev.c: Likewise.
729         * misc/pwritev64.c: Likewise.
730         * misc/readv.c: Likewise.
731         * misc/reboot.c: Likewise.
732         * misc/remap_file_pages.c: Likewise.
733         * misc/removexattr.c: Likewise.
734         * misc/revoke.c: Likewise.
735         * misc/select.c: Likewise.
736         * misc/setdomain.c: Likewise.
737         * misc/setegid.c: Likewise.
738         * misc/seteuid.c: Likewise.
739         * misc/sethostid.c: Likewise.
740         * misc/sethostname.c: Likewise.
741         * misc/setregid.c: Likewise.
742         * misc/setreuid.c: Likewise.
743         * misc/setxattr.c: Likewise.
744         * misc/sstk.c: Likewise.
745         * misc/stty.c: Likewise.
746         * misc/swapoff.c: Likewise.
747         * misc/swapon.c: Likewise.
748         * misc/sync.c: Likewise.
749         * misc/syncfs.c: Likewise.
750         * misc/syscall.c: Likewise.
751         * misc/truncate.c: Likewise.
752         * misc/ualarm.c: Likewise.
753         * misc/usleep.c: Likewise.
754         * misc/ustat.c: Likewise.
755         * misc/utimes.c: Likewise.
756         * misc/vhangup.c: Likewise.
757         * misc/writev.c: Likewise.
758         * posix/_exit.c: Likewise.
759         * posix/alarm.c: Likewise.
760         * posix/execve.c: Likewise.
761         * posix/fexecve.c: Likewise.
762         * posix/fork.c: Likewise.
763         * posix/fpathconf.c: Likewise.
764         * posix/getaddrinfo.c: Likewise.
765         * posix/getegid.c: Likewise.
766         * posix/geteuid.c: Likewise.
767         * posix/getgid.c: Likewise.
768         * posix/getgroups.c: Likewise.
769         * posix/getlogin.c: Likewise.
770         * posix/getlogin_r.c: Likewise.
771         * posix/getpgid.c: Likewise.
772         * posix/getpid.c: Likewise.
773         * posix/getppid.c: Likewise.
774         * posix/getresgid.c: Likewise.
775         * posix/getresuid.c: Likewise.
776         * posix/getsid.c: Likewise.
777         * posix/getuid.c: Likewise.
778         * posix/glob64.c: Likewise.
779         * posix/nanosleep.c: Likewise.
780         * posix/pathconf.c: Likewise.
781         * posix/pause.c: Likewise.
782         * posix/posix_madvise.c: Likewise.
783         * posix/pread.c: Likewise.
784         * posix/pread64.c: Likewise.
785         * posix/pwrite.c: Likewise.
786         * posix/pwrite64.c: Likewise.
787         * posix/sched_getaffinity.c: Likewise.
788         * posix/sched_getp.c: Likewise.
789         * posix/sched_gets.c: Likewise.
790         * posix/sched_primax.c: Likewise.
791         * posix/sched_primin.c: Likewise.
792         * posix/sched_rr_gi.c: Likewise.
793         * posix/sched_setaffinity.c: Likewise.
794         * posix/sched_setp.c: Likewise.
795         * posix/sched_sets.c: Likewise.
796         * posix/sched_yield.c: Likewise.
797         * posix/setgid.c: Likewise.
798         * posix/setlogin.c: Likewise.
799         * posix/setpgid.c: Likewise.
800         * posix/setresgid.c: Likewise.
801         * posix/setresuid.c: Likewise.
802         * posix/setsid.c: Likewise.
803         * posix/setuid.c: Likewise.
804         * posix/sleep.c: Likewise.
805         * posix/spawni.c: Likewise.
806         * posix/sysconf.c: Likewise.
807         * posix/times.c: Likewise.
808         * posix/wait.c: Likewise.
809         * posix/wait3.c: Likewise.
810         * posix/wait4.c: Likewise.
811         * posix/waitpid.c: Likewise.
812         * resolv/gai_sigqueue.c: Likewise.
813         * resource/getpriority.c: Likewise.
814         * resource/getrlimit.c: Likewise.
815         * resource/getrusage.c: Likewise.
816         * resource/nice.c: Likewise.
817         * resource/setpriority.c: Likewise.
818         * resource/setrlimit.c: Likewise.
819         * resource/ulimit.c: Likewise.
820         * rt/aio_cancel.c: Likewise.
821         * rt/aio_fsync.c: Likewise.
822         * rt/aio_read.c: Likewise.
823         * rt/aio_sigqueue.c: Likewise.
824         * rt/aio_suspend.c: Likewise.
825         * rt/aio_write.c: Likewise.
826         * rt/clock_getres.c: Likewise.
827         * rt/clock_gettime.c: Likewise.
828         * rt/clock_nanosleep.c: Likewise.
829         * rt/clock_settime.c: Likewise.
830         * rt/lio_listio.c: Likewise.
831         * rt/mq_close.c: Likewise.
832         * rt/mq_getattr.c: Likewise.
833         * rt/mq_notify.c: Likewise.
834         * rt/mq_open.c: Likewise.
835         * rt/mq_receive.c: Likewise.
836         * rt/mq_send.c: Likewise.
837         * rt/mq_setattr.c: Likewise.
838         * rt/mq_timedreceive.c: Likewise.
839         * rt/mq_timedsend.c: Likewise.
840         * rt/mq_unlink.c: Likewise.
841         * rt/shm_open.c: Likewise.
842         * rt/shm_unlink.c: Likewise.
843         * rt/timer_create.c: Likewise.
844         * rt/timer_delete.c: Likewise.
845         * rt/timer_getoverr.c: Likewise.
846         * rt/timer_gettime.c: Likewise.
847         * rt/timer_settime.c: Likewise.
848         * setjmp/__longjmp.c: Likewise.
849         * setjmp/setjmp.c: Likewise.
850         * signal/kill.c: Likewise.
851         * signal/killpg.c: Likewise.
852         * signal/raise.c: Likewise.
853         * signal/sigaction.c: Likewise.
854         * signal/sigaltstack.c: Likewise.
855         * signal/sigblock.c: Likewise.
856         * signal/sigignore.c: Likewise.
857         * signal/sigintr.c: Likewise.
858         * signal/signal.c: Likewise.
859         * signal/sigpause.c: Likewise.
860         * signal/sigpending.c: Likewise.
861         * signal/sigqueue.c: Likewise.
862         * signal/sigreturn.c: Likewise.
863         * signal/sigset.c: Likewise.
864         * signal/sigsetmask.c: Likewise.
865         * signal/sigstack.c: Likewise.
866         * signal/sigsuspend.c: Likewise.
867         * signal/sigtimedwait.c: Likewise.
868         * signal/sigvec.c: Likewise.
869         * signal/sigwait.c: Likewise.
870         * signal/sigwaitinfo.c: Likewise.
871         * signal/sysv_signal.c: Likewise.
872         * socket/accept.c: Likewise.
873         * socket/accept4.c: Likewise.
874         * socket/bind.c: Likewise.
875         * socket/connect.c: Likewise.
876         * socket/getpeername.c: Likewise.
877         * socket/getsockname.c: Likewise.
878         * socket/getsockopt.c: Likewise.
879         * socket/isfdtype.c: Likewise.
880         * socket/listen.c: Likewise.
881         * socket/recv.c: Likewise.
882         * socket/recvfrom.c: Likewise.
883         * socket/recvmsg.c: Likewise.
884         * socket/send.c: Likewise.
885         * socket/sendmsg.c: Likewise.
886         * socket/sendto.c: Likewise.
887         * socket/setsockopt.c: Likewise.
888         * socket/shutdown.c: Likewise.
889         * socket/sockatmark.c: Likewise.
890         * socket/socket.c: Likewise.
891         * socket/socketpair.c: Likewise.
892         * stdio-common/ctermid.c: Likewise.
893         * stdio-common/cuserid.c: Likewise.
894         * stdio-common/remove.c: Likewise.
895         * stdio-common/rename.c: Likewise.
896         * stdio-common/renameat.c: Likewise.
897         * stdio-common/tempname.c: Likewise.
898         * stdlib/getcontext.c: Likewise.
899         * stdlib/makecontext.c: Likewise.
900         * stdlib/setcontext.c: Likewise.
901         * stdlib/swapcontext.c: Likewise.
902         * stdlib/system.c: Likewise.
903         * streams/fattach.c: Likewise.
904         * streams/fdetach.c: Likewise.
905         * streams/getmsg.c: Likewise.
906         * streams/getpmsg.c: Likewise.
907         * streams/putmsg.c: Likewise.
908         * streams/putpmsg.c: Likewise.
909         * sysdeps/unix/bsd/getpt.c: Likewise.
910         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
911         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
912         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
914         Likewise.
915         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
916         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
917         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
918         * sysvipc/msgctl.c: Likewise.
919         * sysvipc/msgget.c: Likewise.
920         * sysvipc/msgrcv.c: Likewise.
921         * sysvipc/msgsnd.c: Likewise.
922         * sysvipc/semctl.c: Likewise.
923         * sysvipc/semget.c: Likewise.
924         * sysvipc/semop.c: Likewise.
925         * sysvipc/semtimedop.c: Likewise.
926         * sysvipc/shmat.c: Likewise.
927         * sysvipc/shmctl.c: Likewise.
928         * sysvipc/shmdt.c: Likewise.
929         * sysvipc/shmget.c: Likewise.
930         * termios/tcdrain.c: Likewise.
931         * termios/tcflow.c: Likewise.
932         * termios/tcflush.c: Likewise.
933         * termios/tcgetattr.c: Likewise.
934         * termios/tcgetpgrp.c: Likewise.
935         * termios/tcsendbrk.c: Likewise.
936         * termios/tcsetattr.c: Likewise.
937         * termios/tcsetpgrp.c: Likewise.
938         * time/adjtime.c: Likewise.
939         * time/clock.c: Likewise.
940         * time/getitimer.c: Likewise.
941         * time/gettimeofday.c: Likewise.
942         * time/setitimer.c: Likewise.
943         * time/settimeofday.c: Likewise.
944         * time/stime.c: Likewise.
945         * time/time.c: Likewise.
946
947 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
948
949         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
950         /usr/old/bin.
951
952         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
953         instead of spaces.
954         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
955
956 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
957
958         [BZ #14796]
959         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
960         FE_TONEAREST before applying Dekker multiplication and Knuth
961         addition.  Clear inexact exceptions and check for exact zero
962         results afterwards.
963         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
964         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
965         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
966         * math/libm-test.inc (fma_test): Add more tests.
967         (fma_test_towardzero): Likewise.
968         (fma_test_downward): Likewise.
969         (fma_test_upward): Likewise.
970         * sysdeps/generic/math_private.h (default_libc_fesetround): New
971         function.
972         (libc_fesetround): New macro.
973         (libc_fesetroundf): Likewise.
974         (libc_fesetroundl): Likewise.
975         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
976         function.
977         (libc_fesetround_387): Likewise.
978         (libc_fesetroundf): New macro.
979         (libc_fesetround): Likewise.
980         (libc_fesetroundl): Likewise.
981         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
982         function.
983         (libc_fesetroundf): New macro.
984         (libc_fesetround): Likewise.
985         (libc_fesetroundl): Likewise.
986         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
987         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
988         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
989         libm_hidden_ver.
990         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
991         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
992         libm_hidden_def.
993         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
994         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
995         libm_hidden_ver.
996         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
997         libm_hidden_def.
998
999         [BZ #3439]
1000         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1001         integer constant usable in #if and use that to give value to enum
1002         constant.
1003         (FE_DIVBYZERO): Likewise.
1004         (FE_UNDERFLOW): Likewise.
1005         (FE_OVERFLOW): Likewise.
1006         (FE_INVALID): Likewise.
1007         (FE_INVALID_SNAN): Likewise.
1008         (FE_INVALID_ISI): Likewise.
1009         (FE_INVALID_IDI): Likewise.
1010         (FE_INVALID_ZDZ): Likewise.
1011         (FE_INVALID_IMZ): Likewise.
1012         (FE_INVALID_COMPARE): Likewise.
1013         (FE_INVALID_SOFTWARE): Likewise.
1014         (FE_INVALID_SQRT): Likewise.
1015         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1016         (FE_TONEAREST): Likewise.
1017         (FE_TOWARDZERO): Likewise.
1018         (FE_UPWARD): Likewise.
1019         (FE_DOWNWARD): Likewise.
1020         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1021         (FE_DIVBYZERO): Likewise.
1022         (FE_OVERFLOW): Likewise.
1023         (FE_UNDERFLOW): Likewise.
1024         (FE_INEXACT): Likewise.
1025         (FE_TONEAREST): Likewise.
1026         (FE_DOWNWARD): Likewise.
1027         (FE_UPWARD): Likewise.
1028         (FE_TOWARDZERO): Likewise.
1029         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1030         (FE_UNDERFLOW): Likewise.
1031         (FE_OVERFLOW): Likewise.
1032         (FE_DIVBYZERO): Likewise.
1033         (FE_INVALID): Likewise.
1034         (FE_TONEAREST): Likewise.
1035         (FE_TOWARDZERO): Likewise.
1036         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1037         (FE_OVERFLOW): Likewise.
1038         (FE_UNDERFLOW): Likewise.
1039         (FE_DIVBYZERO): Likewise.
1040         (FE_INEXACT): Likewise.
1041         (FE_TONEAREST): Likewise.
1042         (FE_TOWARDZERO): Likewise.
1043         (FE_UPWARD): Likewise.
1044         (FE_DOWNWARD): Likewise.
1045         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1046         (FE_DIVBYZERO): Likewise.
1047         (FE_OVERFLOW): Likewise.
1048         (FE_UNDERFLOW): Likewise.
1049         (FE_INEXACT): Likewise.
1050         (FE_TONEAREST): Likewise.
1051         (FE_DOWNWARD): Likewise.
1052         (FE_UPWARD): Likewise.
1053         (FE_TOWARDZERO): Likewise.
1054
1055 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1056
1057         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1058
1059 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1060
1061         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1062         commands.  Quote $PWD.
1063         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1064         -x" by "export".
1065         (remove_newlines): Remove.
1066
1067 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1068
1069         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1070         * stdlib/stdlib.h (atof): Moved to ...
1071         * include/bits/stdlib-float.h: Here.  New file.
1072         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1073         * stdlib/bits/stdlib-float.h: New file.
1074         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1075         -mno-sse -mno-mmx.
1076         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1077         <xmmintrin.h>.
1078
1079 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1080
1081         * conform/conformtest.pl (@headers): Add fenv.h.
1082         * conform/data/fenv.h-data: New file.
1083         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1084         include of <math/fenv.h>.
1085
1086         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1087         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1088         && !UNIX98].  Enables tests for XOPEN2K8.
1089         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1090         POSIX2008]: Likewise.
1091
1092         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1093         (struct rusage): Do not expect type or its members.
1094
1095         [BZ #3439]
1096         * math/math.h (FP_NAN): Define macro to integer constant usable in
1097         #if and use that to give value to enum constant.
1098         (FP_INFINITE): Likewise.
1099         (FP_ZERO): Likewise.
1100         (FP_SUBNORMAL): Likewise.
1101         (FP_NORMAL): Likewise.
1102
1103 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1104
1105         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1106         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1107         arguments.
1108
1109 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1110
1111         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1112         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1113         autoconf-time if not.
1114         * configure.in: Remove AC_PREREQ.
1115
1116 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1117
1118         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1119         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1120         of the internal implementation.
1121
1122 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1123
1124         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1125         except include of <misc/sys/syslog.h>.
1126
1127 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1128
1129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1130         function returns with a NULL context exit with zero.
1131
1132 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1133
1134         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1135
1136 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1139         (run_program_cmd): This.
1140         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1141         (tst_langinfo): New variable.  Use it.
1142
1143 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1144
1145         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1146         floating point opcodes.
1147
1148 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1149
1150         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1151         variable.
1152
1153         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1154
1155         * sysdeps/mach/hurd/powerpc: Remove directory.
1156         * sysdeps/mach/powerpc: Likewise.
1157
1158 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1159
1160         * scripts/check-local-headers.sh: Ignore c++ headers.
1161
1162 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1163
1164         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1165         __libc_cleanup_region_start argument.
1166
1167 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1168
1169         [BZ #14784]
1170         [BZ #14785]
1171         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1172         x * y using scaling, not as x * y + z.
1173         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1174         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1175         * math/libm-test.inc (fma_test): Add more tests.
1176         (fma_test_towardzero): Likewise.
1177         (fma_test_downward): Likewise.
1178         (fma_test_upward): Likewise.
1179
1180 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1181
1182         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1183
1184 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1185
1186         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1187         New variable.
1188
1189 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1190
1191         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1192
1193 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1194
1195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1196         Fix sort order.
1197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1198         Likewise.
1199
1200 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1201
1202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1203         Fix the order of the list for glibc 2.17.
1204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1205         Likewise.
1206
1207 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1208
1209         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1210
1211 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1212
1213         [BZ #14610]
1214         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1215         for low part of x being zero before using __atanl (y).
1216         * math/libm-test.inc (atan2_test): Add another test.
1217
1218         * manual/install.texi (Configuring and compiling): Document
1219         general use of test-wrapper and test-wrapper-env.
1220         * INSTALL: Regenerated.
1221
1222         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1223         (__fma): Do not extract and scale down low bits on after-rounding
1224         systems when result rounded to normal precision would have normal
1225         exponent.
1226         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1227         (__fmal): Do not extract and scale down low bits on after-rounding
1228         systems when result rounded to normal precision would have normal
1229         exponent.
1230         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1231         (__fmal): Do not extract and scale down low bits on after-rounding
1232         systems when result rounded to normal precision would have normal
1233         exponent.
1234         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1235         macro.
1236         (fma_test): Add more tests.
1237         (fma_test_towardzero): Likewise.
1238         (fma_test_downward): Likewise.
1239         (fma_test_upward): Likewise.
1240
1241 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1242
1243         * sysdeps/i386/tininess.h: Renamed to ...
1244         * sysdeps/x86/tininess.h: This.
1245         * sysdeps/x86_64/tininess.h: Removed.
1246
1247 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1248
1249         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1250         input.  Use $(build-program-cmd).
1251         ($(objpfx)tst-array1-static.out): Likewise.
1252         ($(objpfx)tst-array2.out): Likewise.
1253         ($(objpfx)tst-array3.out): Likewise.
1254         ($(objpfx)tst-array4.out): Likewise.
1255         ($(objpfx)tst-array5.out): Likewise.
1256         ($(objpfx)tst-array5-static.out): Likewise.
1257
1258 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1259
1260         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1261         if defined.
1262
1263         * nss/nsswitch.h (nss_interface_function): Provide new
1264         macro for use with NSS functions.
1265         * grp/initgroups.c: Use new macro.
1266         * nss/getXXbyYY.c: Likewise.
1267         * nss/getXXbyYY_r.c: Likewise.
1268         * nss/getXXent.c: Likewise.
1269         * nss/getXXent_r.c: Likewise.
1270         * sysdeps/posix/getaddrinfo.c: Likewise.
1271
1272 2012-10-30  Andreas Jaeger  <aj@suse.de>
1273
1274         * po/ru.po: Update Russion translation from translation project.
1275
1276 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1277
1278         [BZ #14152]
1279         [BZ #14783]
1280         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1281         result and shift together with sticky bit instead of replicating
1282         round-to-nearest rounding.
1283         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1284         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1285         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1286         missing underflow exceptions.
1287         (fma_test_towardzero): Add more tests.
1288         (fma_test_downward): Likewise.
1289         (fma_test_upward): Likewise.
1290
1291         [BZ #14047]
1292         * sysdeps/generic/tininess.h: New file.
1293         * sysdeps/i386/tininess.h: Likewise.
1294         * sysdeps/sh/tininess.h: Likewise.
1295         * sysdeps/x86_64/tininess.h: Likewise.
1296         * stdlib/tst-strtod-underflow.c: Likewise.
1297         * stdlib/tst-tininess.c: Likewise.
1298         * stdlib/strtod_l.c: Include <tininess.h>.
1299         (round_and_return): Do not set errno for exact underflow cases.
1300         Force an underflow exception when setting errno for underflow.
1301         Determine underflow based on rounding to normal precision if
1302         TININESS_AFTER_ROUNDING.
1303         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1304         ERANGE for exact underflow cases.
1305         * stdlib/Makefile (tests): Add tst-tininess and
1306         tst-strtod-underflow.
1307         ($(objpfx)tst-tininess): Use $(link-libm).
1308         ($(objpfx)tst-strtod-underflow): Likewise.
1309
1310 2012-10-30  Andreas Jaeger  <aj@suse.de>
1311
1312         [BZ#14767]
1313         * elf/Makefile (tests): Remove conditional for have-initfini-array
1314         since this is now always required and the variable does not exist
1315         anymore.
1316         (tests-static): Likewise.
1317         (modules-names): Likewise.
1318
1319         * po/eo.po: Add Esperanto translation from translation project.
1320
1321         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1322         merged with constructor/destructor.
1323         (init_array): Likewise.
1324         * elf/tst-array2dep.c (fini_array): Likewise.
1325         (init_array): Likewise.
1326
1327 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1328
1329         * manual/message.texi: Delete @cartouche tags.
1330
1331 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1332
1333         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1334         EOPNOTSUPP.
1335         * sysdeps/mach/hurd/fsync.c: Likewise.
1336
1337         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1338         [_POSIX_REALTIME_SIGNALS]: Change condition to
1339         [_POSIX_REALTIME_SIGNALS > 0].
1340
1341 2012-10-27  Andreas Jaeger  <aj@suse.de>
1342
1343         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1344         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1345         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1346         [__WORDSIZE != 64]: Likewise.
1347
1348 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1349
1350         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1351         *  iconvdata/tst-tables.sh: Likewise.
1352
1353 2012-10-25  David S. Miller  <davem@davemloft.net>
1354
1355         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1356         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1357         of strtoull.
1358
1359         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1360         ifunc-impl-list.c
1361         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1362         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1363         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1364         file.
1365
1366 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1367
1368         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1369         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1370         __getdirentries.
1371
1372 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1373             Jim Blandy  <jimb@codesourcery.com>
1374
1375         * scripts/cross-test-ssh.sh: New file.
1376         * manual/install.texi (Configuring and compiling): Document use of
1377         cross-test-ssh.sh.
1378         * INSTALL: Regenerated.
1379
1380 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1381
1382         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1383         EOPNOTSUPP.
1384
1385 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1386
1387         * Makeconfig (run-program-prefix): Fix comment.
1388
1389 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1390             Jim Blandy  <jimb@codesourcery.com>
1391
1392         * Makeconfig (test-wrapper): New variable,
1393         (test-wrapper-env): Likewise.
1394         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1395         (run-built-tests): Define to yes.
1396         (run-program-prefix): Use $(test-wrapper).
1397         (built-program-cmd): Likewise.
1398         * Rules (make-test-out): Use $(test-wrapper-env) and
1399         $(host-built-program-cmd).
1400         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1401         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1402         tst-pathopt.sh.
1403         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1404         $(test-wrapper-env) to tst-rtld-load-self.sh.
1405         ($(objpfx)order2.out): Use $(test-wrapper).
1406         ($(objpfx)tst-initorder.out): Likewise.
1407         ($(objpfx)tst-initorder2.out): Likewise.
1408         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1409         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1410         (test_wrapper_env): New variable.  Use it to run ld.so.
1411         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1412         Use it to run ld.so.
1413         (test_wrapper_env): Likewise.
1414         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1415         $(test-wrapper) to run-iconv-test.sh.
1416         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1417         (ICONV): Use $test_wrapper.
1418         * posix/Makefile ($(objpfx)globtest.out): Pass
1419         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1420         globtest.sh, not $(run-program-prefix).
1421         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1422         (test_wrapper): Likewise.
1423         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1424         set together with run_via_rtld_prefix.
1425         (run_program_prefix): Define in terms of test_wrapper and
1426         run_via_rtld_prefix.
1427
1428 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1429
1430         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1431         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1432         Targets removed.
1433
1434         [BZ #14743]
1435         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1436         Declare __clock_getres, __clock_gettime, __clock_settime,
1437         __clock_nanosleep, and __clock_getcpuclockid.
1438         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1439         Remove librt_hidden_def (clock_gettime).
1440         * sysdeps/unix/clock_gettime.c: Likewise.
1441         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1442         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1443         * rt/clock_getres.c: Define __clock_getres as an alias.
1444         * sysdeps/posix/clock_getres.c: Likewise.
1445         * rt/clock_settime.c: Define __clock_settime as an alias.
1446         * sysdeps/unix/clock_settime.c: Likewise.
1447         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1448         * sysdeps/unix/clock_nanosleep.c: Likewise.
1449         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1450         * rt/clock-compat.c: New file.
1451         * rt/Makefile (librt-routines): Add clock-compat and move
1452         $(clock-routines) to ...
1453         (routines): ... here, new variable.
1454         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1455         Don't add get_clockfreq here.
1456         * rt/Versions (libc: GLIBC_2.17): New version set.
1457         Add clock_* symbols here.
1458         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1459         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1460         (GLIBC_2.17): Add clock_* symbols.
1461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1463         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1465         Likewise.
1466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1467         Likewise.
1468         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1469         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1470         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1472         * NEWS: Mention the move.
1473
1474         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1475         Use __open, __read, __close rather than their public counterparts.
1476         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1477         (__get_clockfreq_via_cpuinfo): Likewise.
1478         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1479         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1480
1481         * config.h.in (HAVE_IFUNC): New #undef.
1482         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1483         was successful.
1484         * configure: Regenerated.
1485
1486 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1487
1488         * configure.in: Move READELF check to start of file.
1489         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1490         libc_cv_asm_gnu_indirect_function in the process.
1491         * configure: Regenerated.
1492
1493 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1494
1495         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1496         send the output to /dev/null.
1497         (libc_cv_cc_with_libunwind): Likewise.
1498         (libc_cv_as_noexecstack): Likewise.
1499         * configure: Regenerate.
1500
1501 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1502
1503         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1504
1505         * posix/globtest.sh (TMPDIR): Do not set.
1506         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1507         (testout): Likewise.
1508
1509 2012-10-24  Andreas Jaeger  <aj@suse.de>
1510
1511         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1512         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1513         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1514         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1515         posix_fadvise64, posix_fallocate64.
1516
1517         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1518         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1519         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1520         Likewise.
1521         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1522         Likewise.
1523         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1524
1525         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1526         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1527         <bits/fcntl-linux.h>.
1528         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1529
1530         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1531         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1532         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1533         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1534         [__WORDSIZE != 64]: Likewise.
1535
1536 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * Makeconfig (run-built-tests): New variable.
1539         * Rules [$(cross-compiling) = yes]: Change condition to
1540         [$(run-built-tests) = no].
1541         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1542         to [$(run-built-tests) = yes].
1543         * elf/Makefile [$(cross-compiling) = no]: Likewise
1544         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1545         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1546         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1547         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1548         * io/Makefile [$(cross-compiling) = no]: Likewise.
1549         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1550         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1551         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1552         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1553         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1554         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1555         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1556         * string/Makefile [$(cross-compiling) = no]: Likewise.
1557
1558         * posix/Makefile ($(objpfx)globtest.out): Pass
1559         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1560         $(rtld-installed-name).
1561         * posix/globtest.sh (elf_objpfx): Remove variable.
1562         (rtld_installed_name): Likewise.
1563         (library_path): Likewise.
1564         (run_program_prefix): New variable.  Use for running globtest
1565         binary.
1566
1567 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1568             Joseph Myers  <joseph@codesourcery.com>
1569
1570         * Makeconfig (host-built-program-cmd): New variable.
1571         * elf/Makefile (tst-stackguard1-ARGS): Use
1572         $(host-built-program-cmd).
1573         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1574         (tst-spawn-ARGS): Likewise.
1575         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1576
1577 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1578             Jim Blandy  <jimb@codesourcery.com>
1579
1580         * Makeconfig (run-via-rtld-prefix): New variable.
1581         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1582         (built-program-cmd): Likewise.
1583
1584 2012-10-22  Andreas Jaeger  <aj@suse.de>
1585
1586         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1587         __O_RSYNC if it exists, otherwise to O_SYNC.
1588
1589 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1590             Joseph Myers  <joseph@codesourcery.com>
1591
1592         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1593         /dev/null.
1594         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1595         from /dev/null
1596         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1597         /dev/null.
1598
1599 2012-10-22  Andreas Jaeger  <aj@suse.de>
1600
1601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1602         Define always.
1603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1604
1605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1606         bits/fcntl-linux.h.
1607
1608         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1609         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1610
1611         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1612         to __O_LARGEFILE.
1613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1614         to __O_LARGEFILE.
1615
1616 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1617             Joseph Myers  <joseph@codesourcery.com>
1618
1619         * config.make.in (NM): New variable.
1620
1621 2012-10-21  Andreas Jaeger  <aj@suse.de>
1622
1623         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1624         definitions and declarations that are provided by
1625         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1626
1627 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1628
1629         [BZ #14683]
1630         * elf/Makefile (tests-static): Add tst-leaks1-static.
1631         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1632         ($(objpfx)tst-leaks1-static): New rule.
1633         ($(objpfx)tst-leaks1-static-mem): Likewise.
1634         (tst-leaks1-static-ENV): New macro.
1635         * elf/dl-open.c (dl_open_worker): Check the main application
1636         only if SHARED is defined.
1637         * elf/tst-leaks1-static.c: New file.
1638
1639 2012-10-20  Andreas Jaeger  <aj@suse.de>
1640
1641         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1642         generic values for Linux.
1643         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1644         and declarations that are provided by <bits/fcntl-linux.h> and
1645         include <bits/fcntl-linux.h>.
1646         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1648
1649 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1650
1651         * io/fcntl.h: Move include of <bits/types.h> to the top and
1652         include it unconditionally.
1653
1654 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1655
1656         * wcsmbs/Makefile (tests-ifunc): New variable.
1657         (tests): Add $(tests-ifunc).
1658         * wcsmbs/test-wcschr-ifunc.c: New file.
1659         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1660         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1661         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1662         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1663         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1664
1665         * string/Makefile (tests-ifunc): New variable.
1666         (tests): Add $(tests-ifunc).
1667         * string/test-memccpy.c (TEST_NAME): New macro.
1668         * string/test-memchr.c (TEST_NAME): Likewise.
1669         * string/test-memcmp.c (TEST_NAME): Likewise.
1670         * string/test-memcpy.c (TEST_NAME): Likewise.
1671         * string/test-memmem.c (TEST_NAME): Likewise.
1672         * string/test-memmove.c (TEST_NAME): Likewise.
1673         * string/test-memset.c (TEST_NAME): Likewise.
1674         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1675         * string/test-stpcpy.c (TEST_NAME): Likewise.
1676         * string/test-stpncpy.c (TEST_NAME): Likewise.
1677         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1678         * string/test-strcasestr.c (TEST_NAME): Likewise.
1679         * string/test-strcat.c (TEST_NAME): Likewise.
1680         * string/test-strchr.c (TEST_NAME): Likewise.
1681         * string/test-strcmp.c(TEST_NAME): Likewise.
1682         * string/test-strcpy.c (TEST_NAME): Likewise.
1683         * string/test-strcspn.c (TEST_NAME): Likewise.
1684         * string/test-strlen.c (TEST_NAME): Likewise.
1685         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1686         * string/test-strncmp.c (TEST_NAME): Likewise.
1687         * string/test-strncpy.c (TEST_NAME): Likewise.
1688         * string/test-strnlen.c (TEST_NAME): Likewise.
1689         * string/test-strpbrk.c (TEST_NAME): Likewise.
1690         * string/test-strrchr.c (TEST_NAME): Likewise.
1691         * string/test-strspn.c (TEST_NAME): Likewise.
1692         * string/test-strstr.c (TEST_NAME): Likewise.
1693         * string/test-bcopy-ifunc.c: New file.
1694         * string/test-bzero-ifunc.c: Likewise.
1695         * string/test-memccpy-ifunc.c: Likewise.
1696         * string/test-memchr-ifunc.c: Likewise.
1697         * string/test-memcmp-ifunc.c: Likewise.
1698         * string/test-memcpy-ifunc.c: Likewise.
1699         * string/test-memmem-ifunc.c: Likewise.
1700         * string/test-memmove-ifunc.c: Likewise.
1701         * string/test-mempcpy-ifunc.c: Likewise.
1702         * string/test-memset-ifunc.c: Likewise.
1703         * string/test-rawmemchr-ifunc.c: Likewise.
1704         * string/test-stpcpy-ifunc.c: Likewise.
1705         * string/test-stpncpy-ifunc.c: Likewise.
1706         * string/test-strcasecmp-ifunc.c: Likewise.
1707         * string/test-strcasestr-ifunc.c: Likewise.
1708         * string/test-strcat-ifunc.c: Likewise.
1709         * string/test-strchr-ifunc.c: Likewise.
1710         * string/test-strchrnul-ifunc.c: Likewise.
1711         * string/test-strcmp-ifunc.c: Likewise.
1712         * string/test-strcpy-ifunc.c: Likewise.
1713         * string/test-strcspn-ifunc.c: Likewise.
1714         * string/test-strlen-ifunc.c: Likewise.
1715         * string/test-strncasecmp-ifunc.c: Likewise.
1716         * string/test-strncat-ifunc.c: Likewise.
1717         * string/test-strncmp-ifunc.c: Likewise.
1718         * string/test-strncpy-ifunc.c: Likewise.
1719         * string/test-strnlen-ifunc.c: Likewise.
1720         * string/test-strpbrk-ifunc.c: Likewise.
1721         * string/test-strrchr-ifunc.c: Likewise.
1722         * string/test-strspn-ifunc.c: Likewise.
1723         * string/test-strstr-ifunc.c: Likewise.
1724
1725         * debug/Makefile (tests-ifunc): New variable.
1726         (tests): Add $(tests-ifunc).
1727         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1728         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1729         * debug/test-stpcpy_chk-ifunc.c: New file.
1730         * debug/test-strcpy_chk-ifunc.c: Likewise.
1731
1732 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1733
1734         [BZ #13601]
1735         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1736         header is not read in.
1737
1738 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1739
1740         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1741         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1742         directly.  Pass built executable to script as
1743         $(built-program-cmd).
1744         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1745         $testprogram without using LD_LIBRARY_PATH and $ldso.
1746
1747         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1748         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1749         $(rtld-installed-name).
1750         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1751         (rtld_installed_name): Likewise.
1752         (library_path): Likewise.
1753         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1754         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1755         $(run-program-prefix) to tst-tables.sh.
1756         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1757         it to run tst-table-from and tst-table-to.
1758         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1759         Pass it to tst-table.sh.
1760         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1761         $(run-program-prefix) to tst-gettext.sh.
1762         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1763         tst-translit.sh.
1764         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1765         tst-gettext2.sh.
1766         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1767         to run tst-gettext.
1768         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1769         to run tst-gettext2.
1770         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1771         to run tst-translit.
1772         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1773         $(run-program-prefix) to tst-mtrace.sh.
1774         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1775         to run tst-mtrace.
1776         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1777         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1778         $(rtld-installed-name).
1779         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1780         (rtld_installed_name): Likewise.
1781         (run_program_prefix): New variable.  Use it to run wordexp-test.
1782
1783         * Makeconfig (ARCH): Remove all definitions.
1784         (machine): Likewise.
1785         [ARCH]: Remove conditional code.
1786         [!objdir]: Give error.
1787         [!objdir] (objpfx): Remove.
1788         [!objdir] (common-objpfx): Likewise.
1789         [!objdir] (common-objdir): Likewise.
1790         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1791         AC_CONFIG_FILES call.
1792         * configure: Regenerated.
1793
1794         [BZ #13888]
1795         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1796         or TMPDIR.
1797         (testout): Likewise.
1798
1799         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1800         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1801         $(rtld-installed-name).
1802         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1803         (rtld_installed_name): Likwise.
1804         (runit): Remove function.
1805         (run_getconf): New variable,  Use it for running getconf binary.
1806
1807 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1808
1809         [BZ #14716]
1810         * string/test-memmem.c (check_result): New function.
1811         (do_one_test): Use it.
1812         (check1): New function.
1813         (test_main): Use it.
1814
1815 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1816
1817         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1818
1819 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1820
1821         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1822         (_G_LSEEK64): Likewise.
1823         (_G_MMAP64): Likewise.
1824         (_G_FSTAT64): Likewise.
1825         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1826         (_G_LSEEK64): Likewise.
1827         (_G_MMAP64): Likewise.
1828         (_G_FSTAT64): Likewise.
1829         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1830         unconditional.  Call __mmap64 directly.
1831         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1832         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1833         __lseek64 directly.
1834         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1835         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1836         __mmap64 directly.
1837         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1838         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1839         __lseek64 directly.
1840         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1841         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1842         __lseek64 directly.
1843         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1844         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1845         __lseek64 directly.
1846         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1847         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1848         __fxstat64 directly.
1849         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1850         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1851         unconditional.
1852         (freopen64) [!_G_OPEN64]: Remove conditional code.
1853         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1854         unconditional.
1855         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1856         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1857         unconditional.
1858         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1859         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1860         unconditional.
1861         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1862         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1863         unconditional.
1864         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1865         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1866         unconditional.
1867         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1868         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1869         unconditional.
1870         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1871         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1872         unconditional.
1873         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1874
1875 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1876
1877         [BZ #12140]
1878         * manual/memory.texi (Malloc Tunable Parameters): Add note
1879         about free list pointers overwriting some perturb bytes.
1880         Wording suggested by Roland McGrath.
1881
1882 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1883
1884         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1885         (lgamma_test): Likewise.
1886         (tgamma_test): Likewise.
1887
1888 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1889
1890         [BZ #14700]
1891         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1892         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1893
1894 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1895
1896         * NEWS: Mention BZ #14716.
1897         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1898         when removing AVAILABLE1_USES_J macro.
1899
1900 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1901
1902         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1903         (__bswap_64): __uint64_t for unsigned 64-bit int.
1904
1905 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1906
1907         * include/string.h (memmem): Declare libc hidden alias.
1908         * string/memmem.c (memmem): Define libc hidden alias.
1909         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1910         __read, __close instead of open, read, close.
1911
1912 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1915         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1916         global and hidden.
1917         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1918         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1919         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1920         Likewise.
1921         (__rawmemchr_sse2): Likewise.
1922         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1923         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1924         (__strchr_sse2): Likewise.
1925         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1926         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1927         (__strcasecmp_sse2): Likewise.
1928         (__strncasecmp_sse2): Likewise.
1929         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1930         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1931         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1932         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1933         (__strrchr_sse2): Likewise.
1934         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1935         ifunc-impl-list.c.
1936         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1937         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1938         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1939         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1940         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1941         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1942         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1943         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1944         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1945         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1946         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1947         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1948         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1949         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1950         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1951         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1952         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1953         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1954         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1955         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1956         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1957         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1958         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1959         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1960         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1961         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1962         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1963         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1964         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1965         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1966
1967         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1968         global and hidden.
1969         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1970         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1971         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1972         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1973         Likewise.
1974         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1975         Likewise.
1976         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1977         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1978         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1979         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1980         ifunc-impl-list.c.
1981         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1982         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1983         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1984         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1985         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1986         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1987         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1988         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1989         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1990         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1991         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1992         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1993         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1994         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1995         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1996         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1997         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1998         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1999         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2000         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2001         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2002         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2003         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2004         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2005         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2006         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2007         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2008         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2009         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2010         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2011         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2012         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2013         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2014         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2015         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2016         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2017         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2018         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2019         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2020         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2021         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2022
2023         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2024         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2025         * include/ifunc-impl-list.h: New file.
2026         * misc/ifunc-impl-list.c: Likewise.
2027         * misc/Makefile (routines): Add ifunc-impl-list.
2028         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2029         * string/test-string.h: Include <ifunc-impl-list.h>.
2030         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2031         impl_array): New variables.
2032         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2033         are defined.
2034         (test_init): Call __libc_ifunc_impl_list to initialize
2035         func_list if TEST_IFUNC and TEST_NAME are defined.
2036
2037         * string/Makefile (strop-tests): Add bcopy and bzero.
2038         * string/test-bcopy.c: New file.
2039         * string/test-bzero.c: Likewise.
2040         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2041         defined.
2042         * string/test-memset.c: Support bzero test if TEST_BZERO is
2043         defined.
2044         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2045         __libc_memmove.
2046         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2047         __libc_memset.
2048         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2049         of memset.
2050
2051 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2052
2053         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2054         * configure: Regenerated.
2055
2056         * Makeconfig (+link-static-before-libc): Don't include
2057         $(link-static-libc).
2058
2059         * libio/libio.h (_IO_pos_t): Remove.
2060
2061 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2062
2063         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2064         McGrath.
2065
2066 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2067
2068         * crypt/crypt-entry.c: Include fips-private.h.
2069         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2070         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2071         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2072         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2073
2074 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2075
2076         * crypt/crypt-private.h: Include stdbool.h.
2077         (_ufc_setup_salt_r): Return bool.
2078         * crypt/crypt-entry.c: Include errno.h.
2079         (__crypt_r): Return NULL with EINVAL for bad salt.
2080         * crypt/crypt_util.c (bad_for_salt): New.
2081         (_ufc_setup_salt_r): Check that salt is long enough and within
2082         the specified alphabet.
2083         * crypt/badsalttest.c: New file.
2084         * crypt/Makefile (tests): Add it.
2085         ($(objpfx)badsalttest): New.
2086
2087 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2088
2089         * NEWS: Add entry for BZ #14602.
2090
2091 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2092
2093         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2094         type-generic.
2095         * math/libm-test.inc: Update comment listing what functions and
2096         macros are tested.
2097         (isgreater_test): New function.
2098         (isgreaterequal_test): Likewise.
2099         (isless_test): Likewise.
2100         (islessequal_test): Likewise.
2101         (islessgreater_test): Likewise.
2102         (isunordered_test): Likewise.
2103         (main): Call the new functions.
2104
2105 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2106
2107         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2108         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2109         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2110         * sysdeps/i386/configure: Regenerated.
2111         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2112         * sysdeps/mach/configure: Regenerated.
2113         * sysdeps/mach/hurd/configure: Regenerated.
2114         * sysdeps/powerpc/configure: Regenerated.
2115         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2116         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2117         * sysdeps/s390/s390-32/configure: Regenerated.
2118         * sysdeps/s390/s390-64/configure: Regenerated.
2119         * sysdeps/sh/configure: Regenerated.
2120         * sysdeps/sparc/configure: Regenerated.
2121         * sysdeps/unix/sysv/linux/configure: Regenerated.
2122         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2123         * sysdeps/x86_64/configure: Regenerated.
2124
2125         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2126         defined.  Don't check if MAP is NULL.
2127
2128 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2131         (_G_stat64): Likewise.
2132         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2133         (_G_stat64): Likewise.
2134         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2135         instead of struct _G_stat64.
2136         * libio/fileops.c (mmap_remap_check): Likewise.
2137         (decide_maybe_mmap): Likewise.
2138         (_IO_new_file_seekoff): Likewise.
2139         (_IO_file_stat): Likewise.
2140         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2141         _G_off64_t.
2142         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2143         instead of struct _G_stat64.
2144         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2145
2146 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2147
2148         [BZ #14602]
2149         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2150         Replace with ...
2151         (CHECK_EOL): New macro.
2152         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2153         CHECK_EOL.
2154         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2155         Replace with CHECK_EOL.
2156         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2157         Replace with CHECK_EOL.
2158
2159 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2160
2161         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2162         type-generic.
2163         * math/libm-test.inc: Update comment listing what functions and
2164         macros are tested.
2165         (finite_test): New function.
2166         (isinf_test): Likewise.
2167         (isnan_test): Likewise.
2168         (fpclassify_test): Test subnormal input.
2169         (isfinite_test): Likewise.
2170         (isnormal_test): Likewise.
2171         (main): Call the new functions.
2172
2173 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2174
2175         [BZ #14660]
2176         * Makerules (%.dynsym): Force C locale when running
2177         $(OBJDUMP) --dynamic-syms.
2178
2179 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2180
2181         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2182         <stdint.h>.
2183
2184 2012-10-06  David S. Miller  <davem@davemloft.net>
2185
2186         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2187         upper 32-bits of the length value in %o2 since we use branch-on-register
2188         tests which consider the entire 64-bit register.
2189
2190 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2191
2192         * string/test-strstr.c (check2): Add a test for page boundary.
2193
2194 2012-10-05  David S. Miller  <davem@davemloft.net>
2195
2196         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2197         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2198         file.
2199         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2200         sysdep_routines.
2201         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2202         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2203         and bzero when HWCAP_SPARC_CRYPTO is present.
2204
2205 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2206
2207         [BZ #14602]
2208         * string/test-strstr.c (check2): New function.
2209         (test_main): Call check2.
2210
2211         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2212         and bug-strchr1.
2213         * string/bug-strcasestr1.c (do_test): Moved to ...
2214         * string/test-strcasestr.c (check1): Here.  New function.
2215         (do_one_test): Break out result checking code into ...
2216         (check_result): This.  New function.
2217         (do_one_test): Call check_result.
2218         (test_main): Call check1.
2219         * string/bug-strchr1.c (do_test): Moved to ...
2220         * string/test-strchr.c (check1): Here.  New function.
2221         (do_one_test): Break out result checking code into ...
2222         (check_result): This.  New function.
2223         (do_one_test): Call check_result.
2224         (test_main): Call check1.
2225         * string/bug-strstr1.c (main): Moved to ...
2226         * string/test-strchr.c (check1): Here.  New function.
2227         (do_one_test): Break out result checking code into ...
2228         (check_result): This.  New function.
2229         (do_one_test): Call check_result.
2230         (test_main): Call check1.
2231         * string/bug-strcasestr1.c: Removed.
2232         * string/bug-strchr1.c: Likewise.
2233         * string/bug-strstr1.c: Likewise.
2234
2235         * elf/Makefile (dl-routines): Add hwcaps.
2236         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2237         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2238         (_dl_important_hwcaps): Moved to ...
2239         * elf/dl-hwcaps.c: Here.  New file.
2240         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2241
2242         [BZ #14557]
2243         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2244         if IS_IN_rtld isn't defined.
2245
2246         * elf/dl-support.c (_dl_sysinfo_map): New.
2247         Include "get-dynamic-info.h" and "setup-vdso.h".
2248         (_dl_non_dynamic_init): Call setup_vdso.
2249         * elf/dynamic-link.h: Don't include <assert.h>.
2250         (elf_get_dynamic_info): Moved to ...
2251         * elf/get-dynamic-info.h: Here.  New file.
2252         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2253         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2254         * elf/setup-vdso.h: Here.  New file.
2255         * elf/rtld.c: Include "setup-vdso.h".
2256         (dl_main): Call setup_vdso.
2257
2258 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2259
2260         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2261         creal in comment listing functions tested.  List finite, isinf,
2262         isnan, isless, islessequal, isgreater, isgreaterequal,
2263         islessgreater, isunordered, lgamma_r and pow10 as functions and
2264         macros not tested.  Mention which functions not tested are aliases
2265         for other functions.  Fix typo.  Note that signs of NaNs are not
2266         tested.
2267
2268         * scripts/config.guess: Update from config.git.
2269         * scripts/config.sub: Likewise.
2270
2271 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2272
2273         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2274         * misc/madvise.c (madvise): Renamed to __madvise.
2275         Make madvise a weak alias.
2276         * include/sys/mman.h: Declare __madvise.
2277         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2278         * sysdeps/unix/syscalls.list
2279         (madvise): Make __madvise the strong name, and madvise a weak alias.
2280         * sysdeps/unix/sysv/linux/syscalls.list
2281         (madvise, mmap): Remove redundant entries.
2282         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2283         * malloc/malloc.c (mtrim): Likewise.
2284         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2285
2286 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2287
2288         * sysdeps/mach/hurd/dl-cache.c: File removed.
2289         * config.h.in (USE_LDCONFIG): New #undef.
2290         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2291         * configure: Regenerated.
2292         * elf/Makefile (dl-routines): Add dl-cache only under
2293         [$(use-ldconfig) = yes].
2294         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2295         cache on [USE_LDCONFIG].
2296         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2297         [USE_LDCONFIG].
2298         * elf/rtld.c (dl_main): Likewise.
2299
2300 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2301
2302         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2303         _SC_LEVEL4_CACHE_LINESIZE.
2304
2305 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2306
2307         * sysdeps/unix/bsd/confstr.h: File removed.
2308
2309 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2310
2311         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2312         sys/sdt-config.h.
2313
2314 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2315
2316         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2317         Make 'mapoff' field ElfW(Off) rather than off_t.
2318
2319 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2320
2321         * nscd/Makefile: Remove nscd-cflags and all its users.
2322         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2323         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2324
2325         [BZ #10631]
2326         * malloc.c (malloc_printerr): Clarify error message.
2327
2328 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2329
2330         [BZ #14648]
2331         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2332         Set bit_FMA_Usable if FMA is supported.
2333         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2334         macro.
2335         (bit_FMA4_Usable): Updated.
2336         (index_FMA_Usable): New macro.
2337         (CPUID_FMA): Likewise
2338         (HAS_FMA): Defined with bit_FMA_Usable.
2339
2340 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2341
2342         * bits/types.h (__swblk_t): Type removed.
2343         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2344         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2345         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2346         (__SWBLK_T_TYPE): Likewise.
2347         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2348         (__SWBLK_T_TYPE): Likewise.
2349         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2350         (__SWBLK_T_TYPE): Likewise.
2351         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2352         (__SWBLK_T_TYPE): Likewise.
2353
2354 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2355             Honza Horak <hhorak@redhat.com>
2356
2357         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2358         (xdr_mapname): Use YPMAXMAP as maxsize.
2359         (xdr_peername): Use YPMAXPEER as maxsize.
2360         (xdr_keydat): Use YPAXRECORD as maxsize.
2361         (xdr_valdat): Use YPMAXRECORD as maxsize.
2362
2363 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2364
2365         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2366
2367         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2368         * csu/init-first.c: ... here.
2369         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2370         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2371         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2372         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2373         * sysdeps/i386/init-first.c: File removed.
2374         * sysdeps/sh/init-first.c: File removed.
2375
2376 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2377
2378         [BZ #14645]
2379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2380         if x * y might underflow to zero and z is zero.
2381         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2382         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2383         * math/libm-test.inc (min_subnorm_value): New variable.
2384         (fma_test): Add more tests.
2385         (fma_test_towardzero): Likewise.
2386         (fma_test_downward): Likewise
2387         (fma_test_upward): Likewise.
2388         (initialize): Set min_subnorm_value.
2389
2390 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2391
2392         [BZ #14638]
2393         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2394         0 + 0.
2395         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2396         mode for addition resulting in exact zero.
2397         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2398         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2399         exact 0 + 0.
2400         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2401         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2402         * math/libm-test.inc (fma_test): Add more tests.
2403         (fma_test_towardzero): New function.
2404         (fma_test_downward): Likewise.
2405         (fma_test_upward): Likewise.
2406         (main): Call the new functions.
2407
2408 2012-09-28  David S. Miller  <davem@davemloft.net>
2409
2410         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2411
2412 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2413
2414         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2415         instead of SIGALRM.
2416
2417         * sysdeps/gnu/_G_config.h: Moved to ...
2418         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2419         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2420         * sysdeps/generic/_G_config.h: ... here.
2421
2422         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2423
2424         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2425
2426         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2427         Conditionalize target on [libnss_test1.so-version].
2428
2429         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2430
2431         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2432         (elfobjdir): Move out of conditionals.
2433
2434         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2435         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2436         (__nss_lookup_function): Conditionalize label remove_from_tree on
2437         [!DO_STATIC_NSS || SHARED], matching its only use.
2438
2439 2012-09-28  David S. Miller  <davem@davemloft.net>
2440
2441         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2442         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2443         file.
2444         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2445         sysdep_routines.
2446         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2448         when HWCAP_SPARC_CRYPTO is present.
2449
2450 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2451
2452         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2453
2454 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2455
2456         [BZ #6530]
2457         * stdio-common/vfprintf.c (process_string_arg): Revert
2458         2000-07-22 change.
2459
2460 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2461
2462         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2463         for testcase.
2464         * stdio-common/tst-sprintf.c: Include <locale.h>
2465         (main): Test sprintf's handling of incomplete multibyte
2466         characters.
2467
2468 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2469
2470         * elf/dl-runtime.c (VERSYMIDX): Removed.
2471         * elf/dl-version.c (VERSYMIDX): Likewise.
2472         * elf/do-rel.h (VERSYMIDX): Likewise.
2473         (VALIDX): Likewise.
2474         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2475         * elf/rtld.c (VALIDX): Likewise.
2476         (ADDRIDX): Likewise.
2477         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2478         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2479         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2480         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2481         (VALIDX): Likewise.
2482         (ADDRIDX): Likewise.
2483
2484 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2485
2486         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2487
2488 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2489
2490         [BZ #11438]
2491         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2492         to global scope.
2493         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2494         addresses are in the same scope as 192.0.2/24.
2495         * posix/gai.conf: Document new scope table defaults.
2496
2497 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2498
2499         [BZ #5298]
2500         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2501         for ftell.  Compute offsets from write pointers instead.
2502         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2503
2504 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2505
2506         [BZ #14543]
2507         * libio/Makefile (tests): New test case tst-fseek.
2508         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2509         combination works in wide mode.
2510         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2511         state when the external buffer state changes.
2512
2513 2012-09-27  David S. Miller  <davem@davemloft.net>
2514
2515         [BZ #14376]
2516         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2517         pass reloc->r_addend in as the 'high' argument to
2518         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2519
2520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2521
2522 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2523
2524         * rt/tst-aio2.c: Include <pthread.h>.
2525         * rt/tst-aio3.c: Likewise.
2526
2527 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2528
2529         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2530
2531 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2532
2533         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2534         contents on [SHARED].
2535
2536 2012-09-26  Marek Polacek  <polacek@redhat.com>
2537
2538         [BZ #14530]
2539         [BZ #13741]
2540         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2541         for C++ and GCC <4.3 as well as for non GCC compilers.
2542
2543 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2544
2545         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2546
2547 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2548
2549         * Makefile.in (all, install): Declare with .PHONY.
2550         Reported by Michael Hope <michael.hope@linaro.org>.
2551
2552 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2553
2554         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2555         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2556         system header.
2557         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2558         Likewise.
2559         (sydep_routines): Add the new and the internal functions.
2560         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2561         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2563         (GLIBC_2.17): Add the new function.
2564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2565         (GLIBC_2.17): Likewise.
2566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2567         (GLIBC_2.17): Likewise.
2568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2569         (GLIBC_2.17): Likewise.
2570         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2571
2572 2012-09-25  Alan Modra  <amodra@gmail.com>
2573
2574         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2575         Add release barrier before setting once_control to say
2576         initialisation is done.  Add hints on lwarx.  Use macro in
2577         place of isync.
2578         (clear_once_control): Add release barrier.
2579
2580 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2581
2582         [BZ #13629]
2583         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2584         specially.
2585         * math/s_clog10.c (__clog10): Likewise.
2586         * math/s_clog10f.c (__clog10f): Likewise.
2587         * math/s_clog10l.c (__clog10l): Likewise.
2588         * math/s_clogf.c (__clogf): Likewise.
2589         * math/s_clogl.c (__clogl): Likewise.
2590         * math/Makefile (libm-calls): Add x2y2m1.
2591         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2592         (__x2y2m1): Likewise.
2593         (__x2y2m1l): Likewise.
2594         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2595         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2596         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2597         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2598         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2599         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2600         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2601         * sysdeps/i386/fpu/libm-test-ulps: Update.
2602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2603
2604         [BZ #14621]
2605         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2606         int as type of variable DEPTH.
2607         (glob): Use size_t instead of int as type of variables NEWCOUNT
2608         and OLD_PATHC.
2609
2610 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2611
2612         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2613         Add s_sincosf-sse2.
2614         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2615         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2616         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2617         macros for using routine as __sincosf_ia32.
2618         Use macro for function declaration and weak_alias.
2619         * sysdeps/i386/fpu/libm-test-ulps: Update.
2620
2621         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2622         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2623
2624         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2625         subnormal argument.
2626         * math/s_cexpf.c (__cexpf): Likewise.
2627         * math/s_csinf.c (__csinf): Likewise.
2628         * math/s_csinhf.c (__csinhf): Likewise.
2629         * math/s_ctanf.c (__ctanf): Likewise.
2630         * math/s_ctanhf.c (__ctanhf): Likewise.
2631         * math/s_ccosh.c (__ccoshf): Likewise.
2632         * math/s_cexp.c (__cexpl): Likewise.
2633         * math/s_csin.c (__csin): Likewise.
2634         * math/s_csinh.c (__csinh): Likewise.
2635         * math/s_ctan.c (__ctan): Likewise.
2636         * math/s_ctanh.c (ctanh): Likewise.
2637         * math/s_ccoshl.c (__ccoshl): Likewise.
2638         * math/s_cexpl.c (__cexpl): Likewise.
2639         * math/s_csinl.c (__csinl): Likewise.
2640         * math/s_csinhl.c (__csinhl): Likewise.
2641         * math/s_ctanl.c (__ctanl): Likewise.
2642         * math/s_ctanhl.c (__ctanhl): Likewise.
2643
2644 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2645
2646         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2647         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2648         (_IO_off_t): Define to __off_t, not _G_off_t.
2649         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2650         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2651         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2652         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2653         type of __dummy and __dummy2 fields.
2654         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2655         (_G_ssize_t): Likewise.
2656         (_G_off_t): Likewise.
2657         (_G_pid_t): Likewise.
2658         (_G_uid_t): Likewise.
2659         (_G_wchar_t): Likewise.
2660         (_G_wint_t): Likewise.
2661         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2662         (_G_ssize_t): Likewise.
2663         (_G_off_t): Likewise.
2664         (_G_pid_t): Likewise.
2665         (_G_uid_t): Likewise.
2666         (_G_wchar_t): Likewise.
2667         (_G_wint_t): Likewise.
2668         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2669         (_G_ssize_t): Likewise.
2670         (_G_off_t): Likewise.
2671         (_G_pid_t): Likewise.
2672         (_G_uid_t): Likewise.
2673         (_G_wchar_t): Likewise.
2674         (_G_wint_t): Likewise.
2675
2676 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2677
2678         * malloc/arena.c: Include malloc-sysdep.h.
2679         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2680         is sufficient to shrink the heap or an unmap is needed.
2681         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2682         new function check_may_shrink_heap.
2683         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2684         new function check_may_shrink_heap.
2685
2686 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2687
2688         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2689         comments.
2690
2691 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2692
2693         * catgets/test-gencat.sh: Add "set -e".
2694         * elf/tst-pathopt.sh: Likewise.
2695         * grp/tst_fgetgrent.sh: Likewise.
2696         * iconvdata/run-iconv-test.sh: Likewise.
2697         * intl/tst-gettext.sh: Likewise.
2698         * intl/tst-gettext2.sh: Likewise.
2699         * intl/tst-gettext4.sh: Likewise.
2700         * intl/tst-gettext6.sh: Likewise.
2701         * intl/tst-translit.sh: Likewise.
2702         * io/ftwtest-sh: Likewise.
2703         * libio/test-freopen.sh: Likewise.
2704         * malloc/tst-mtrace.sh: Likewise.
2705         * posix/globtest.sh: Likewise.
2706         * posix/tst-getconf.sh: Likewise.
2707         * posix/wordexp-tst.sh: Likewise.
2708         * stdio-common/tst-printf.sh: Likewise.
2709         * stdio-common/tst-unbputc.sh: Likewise.
2710         * stdlib/tst-fmtmsg.sh: Likewise.
2711         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2712         * catgets/Makefile: Do not specify -e option when running
2713         testsuite shell scripts.
2714         * elf/Makefile: Likewise.
2715         * grp/Makefile: Likewise.
2716         * iconvdata/Makefile: Likewise.
2717         * intl/Makefile: Likewise.
2718         * io/Makefile: Likewise.
2719         * libio/Makefile: Likewise.
2720         * malloc/Makefile: Likewise.
2721         * posix/Makefile: Likewise.
2722         * stdio-common/Makefile: Likewise.
2723         * stdlib/Makefile: Likewise.
2724         * sysdeps/x86_64/Makefile: Likewise.
2725
2726         * io/ftwtest-sh: Add copyright header.
2727         * posix/globtest.sh: Likewise.
2728         * posix/tst-getconf.sh: Likewise.
2729         * posix/wordexp-tst.sh: Likewise.
2730         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2731
2732 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2733
2734         [BZ #13679]
2735         * Makeconfig (+link): Defined as $(+link-static) if
2736         $(build-shared) isn't yes.
2737         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2738         isn't yes.
2739         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2740
2741         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2742
2743         [BZ #14562]
2744         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2745         new chunk size with MALLOC_ALIGN_MASK.
2746
2747 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2748
2749         [BZ #5044]
2750         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2751         <rounding-mode.h>.
2752         (__printf_fphex): Determine rounding using get_rounding_mode and
2753         round_away.
2754         * stdio-common/tst-printf-round.c (struct hex_test): New
2755         structure.
2756         (hex_tests): New variable.
2757         (test_hex_in_one_mode): New function.
2758         (do_test): Also run tests for hex float output.
2759
2760 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2761
2762         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2763         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2764         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2765         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2766         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2767         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2768         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2769         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2770
2771 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2772
2773         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2774         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2775         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2776         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2777
2778 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2779
2780         [BZ #14579]
2781         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2782         mode only.
2783         * elf/tst-rtld-load-self.sh: New test.
2784         * elf/Makefile: Run it.
2785
2786 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2787
2788         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2789         (tst-writev-ENV): Remove.
2790         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2791
2792 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2793
2794         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2795
2796 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2797
2798         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2799         unconditional.
2800         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2801         Likewise.
2802         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2803         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2804         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2805         Likewise.
2806
2807 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2808
2809         [BZ #14587]
2810         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2811         * config.make.in (have-cpp-asm-debuginfo): Removed.
2812         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2813         * configure: Regenerated.
2814
2815 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2816
2817         [BZ #5044]
2818         * stdio-common/printf_fp.c: Include <stdbool.h> and
2819         <rounding-mode.h>.
2820         (___printf_fp): Determine rounding using get_rounding_mode and
2821         round_away.
2822         * stdio-common/tst-printf-round.c: New file.
2823         * stdio-common/Makefile (tests): Add tst-printf-round.
2824         (link-libm): New variable.
2825         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2826
2827 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2828
2829         [BZ #14576]
2830         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2831         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2832         Likewise.
2833         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2834         Likewise.
2835
2836 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2837
2838         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2839         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2840         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2841         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2842
2843 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2844
2845         [BZ #14518]
2846         * include/rounding-mode.h: New file.
2847         * sysdeps/generic/get-rounding-mode.h: Likewise.
2848         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2849         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2850         (MAX_VALUE): New macro.
2851         (MIN_VALUE): Likewise.
2852         (overflow_value): New function.
2853         (underflow_value): Likewise.
2854         (round_and_return): Use overflow_value and underflow_value to
2855         determine return values in overflow and underflow cases.  Use
2856         round_away to determine rounding depending on rounding mode.
2857         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2858         determine return values in overflow and underflow cases.
2859         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2860         (struct test_results): New structure.
2861         (struct test): Use struct test_results to store expected results
2862         for all rounding modes.
2863         (TEST): Include expected results for all rounding modes.
2864         (test_in_one_mode): New function.
2865         (do_test): Use test_in_one_mode to compute and check results.
2866         Check results for all rounding modes.
2867         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2868         $(link-libm).
2869
2870 2012-12-09  Allan McRae  <allan@archlinux.org>
2871
2872         * sysdeps/i386/fpu/libm-test-ulps: Update
2873
2874 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2875
2876         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2877         (_G_int32_t): Likewise.
2878         (_G_uint16_t): Likewise.
2879         (_G_uint32_t): Likewise.
2880         (_G_HAVE_BOOL): Likewise.
2881         (_G_HAVE_ATEXIT): Likewise.
2882         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2883         (_G_HAVE_IO_FILE_OPEN): Likewise.
2884         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2885         (_G_int32_t): Likewise.
2886         (_G_uint16_t): Likewise.
2887         (_G_uint32_t): Likewise.
2888         (_G_HAVE_BOOL): Likewise.
2889         (_G_HAVE_ATEXIT): Likewise.
2890         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2891         (_G_HAVE_IO_FILE_OPEN): Likewise.
2892         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2893         (_G_int32_t): Likewise.
2894         (_G_uint16_t): Likewise.
2895         (_G_uint32_t): Likewise.
2896         (_G_HAVE_BOOL): Likewise.
2897         (_G_HAVE_ATEXIT): Likewise.
2898         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2899         (_G_HAVE_IO_FILE_OPEN): Likewise.
2900
2901 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2902
2903         * csu/libc-tls.c: Update copyright years.
2904
2905 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2906
2907         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2908         [!_G_USING_THUNKS]: Remove conditional code.
2909         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2910         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2911
2912         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2913         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2914         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2915         (_G_VTABLE_LABEL_PREFIX): Likewise.
2916         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2917         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2918         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2919         (_G_VTABLE_LABEL_PREFIX): Likewise.
2920         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2921         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2922         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2923         (_G_VTABLE_LABEL_PREFIX): Likewise.
2924         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2925
2926 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2927
2928         * libio/Makefile: Include ../Makeconfig before tests.
2929         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2930         only if $(build-shared) is yes.
2931
2932         * iconv/gconv_db.c: Update copyright years.
2933
2934 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2935
2936         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2937         unwind info if defined PIC. Fix special cases description.
2938         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2939
2940         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2941         DP_HI_MASK entry.
2942         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2943
2944 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2945
2946         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2947
2948         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2949         is NULL.
2950
2951         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2952         (LDLIBS-tst-chk4): This.
2953         (LDFLAGS-tst-chk5): Renamed to ...
2954         (LDLIBS-tst-chk5): This.
2955         (LDFLAGS-tst-chk6): Renamed to ...
2956         (LDLIBS-tst-chk6): This.
2957         (LDFLAGS-tst-lfschk4): Renamed to ...
2958         (LDLIBS-tst-lfschk4): This.
2959         (LDFLAGS-tst-lfschk5): Renamed to ...
2960         (LDLIBS-tst-lfschk5): This.
2961         (LDFLAGS-tst-lfschk6): Renamed to ...
2962         (LDLIBS-tst-lfschk6): This.
2963
2964         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2965         on $(common-objpfx)soversions.mk.
2966
2967 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2968
2969         [BZ #10014]
2970         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2971         example host name.
2972
2973 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2974
2975         * malloc/arena.c (arena_get_retry): New function that gets
2976         another arena for the caller to try its request on.
2977         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2978         current arena cannot fulfill the request.
2979         (__libc_memalign): Likewise.
2980         (__libc_memalign): Likewise.
2981         (__libc_pvalloc): Likewise.
2982         (__libc_calloc): Likewise.
2983
2984 2012-09-05  John Tobey  <john.tobey@gmail.com>
2985
2986         [BZ #13542]
2987         * manual/arith.texi (Operations on Complex): Fix description
2988         of carg branch cut.
2989
2990 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2991
2992         [BZ #10014]
2993         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2994         host name.
2995
2996         [BZ #10038]
2997         * manual/memory.texi (Memory): Make order of menu items match
2998         order of sections.
2999
3000 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3001
3002         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3003         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3004         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3005
3006 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3007
3008         * csu/libc-tls.c (static_dtv): Renamed to ...
3009         (_dl_static_dtv): This.  Make it global.
3010         (_dl_initial_dtv): Removed.
3011         (__libc_setup_tls): Updated.
3012         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3013         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3014         DL_INITIAL_DTV.
3015
3016 2012-09-06  Petr Machata  <pmachata@redhat.com>
3017
3018         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3019         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3020         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3021         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3022
3023 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3024
3025         [BZ #14545]
3026         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3027         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3028         freeing dtv[-1].
3029
3030 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3031
3032         [BZ #14544]
3033         * Makeconfig (link-static-before-libc): Replace $(+prector)
3034         with $(+prectorT).
3035         (link-static-after-libc): Replace $(+postctor) with
3036         $(+postctorT).
3037         (link-bounded): Replace $(+prector)/$(+postctor) with
3038         $(+prectorT)/$(+postctorT).
3039         (+prectorT): New macro.
3040         (+postctorT): Likewise.
3041
3042 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3043
3044         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3045         (round_str): Handle values above the maximum for IBM long double
3046         as inexact.
3047         * stdlib/tst-strtod-round.c (tests): Regenerated.
3048
3049 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3050
3051         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3052         assembler flag.
3053         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3054         zarch_nohighgprs around the zarch optimized routines.
3055         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3056         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3057         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3058         for zarch.
3059
3060 2012-09-05  David S. Miller  <davem@davemloft.net>
3061
3062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3063
3064         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3065         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3066         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3067         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3068         entries.
3069
3070 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3071
3072         * malloc/arena.c: Fold copyright years.
3073         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3074
3075 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3076
3077         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3078
3079 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3080
3081         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3082
3083 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3084
3085         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3086         change internal state upon failure.
3087
3088 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3089
3090         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3091         * malloc/memusage.c (mmap): Likewise.
3092         (mmap64, mremap): Likewise.  Adjust name in comment.
3093
3094 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3095
3096         * libio/fileops.c: Fix typos in comments.
3097         * libio/oldfileops.c: Likewise.
3098         * libio/wfileops.c: Likewise.
3099
3100 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3101
3102         [BZ #1349]
3103         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3104         (tst-malloc-usable-ENV): Set environment for test case.
3105         * malloc/hooks.c (malloc_check_get_size): New function to get
3106         requested size.
3107         * malloc/malloc.c (musable): Use malloc_check_get_size.
3108         * malloc/tst-malloc-usable.c: New test case.
3109
3110 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3111
3112         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3113
3114 2012-09-05  Allan McRae  <allan@archlinux.org>
3115
3116         [BZ #13966]
3117         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3118         determine header location.
3119         * configure: Regenerated.
3120
3121 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3122
3123         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3124         float format.
3125         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3126         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3127         format.
3128         (test): Regenerate.
3129
3130 2012-09-04  David S. Miller  <davem@davemloft.net>
3131
3132         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3133         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3134         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3135
3136 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3137
3138         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3139         failures.
3140
3141         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3142
3143 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3144
3145         [BZ #9914]
3146         * libio/iogetdelim.c: Include <limits.h>.
3147         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3148         + len + 1 would overflow.
3149
3150 2012-09-03  Andreas Jaeger  <aj@suse.de>
3151
3152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3153         * sysdeps/i386/fpu/libm-test-ulps: Update.
3154
3155 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3156
3157         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3158         Add s_sinf-sse2, s_conf-sse2.
3159
3160         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3161         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3162         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3163         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3164
3165         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3166         for using routine as __sinf_ia32.
3167         Use macro for function declaration and weak_alias.
3168         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3169         for using routine as __cosf_ia32.
3170         Use macro for function declaration and weak_alias.
3171
3172         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3173         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3174
3175         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3176         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3177         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3178
3179         * math/libm-test.inc (cos_test): Add more test cases.
3180         (sin_test): Likewise.
3181         (sincos_test): Likewise.
3182
3183 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3184
3185         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3186         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3187         hidden.
3188         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3189
3190 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3191
3192         [BZ #14538]
3193         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3194         first element of the GOT.
3195         (elf_machine_load_address): Return the difference between
3196         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3197
3198 2012-09-01  Allan McRae  <allan@archlinux.org>
3199
3200         [BZ #13412]
3201         * configure.in (AWK): Require gawk version 3.0 or later.
3202         * configure: Regenerated.
3203
3204 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3205
3206         * sysdeps/unix/sysv/linux/kernel-features.h
3207         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3208         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3209         [__NR_clock_getres]: Make code unconditional.
3210         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3211         (clock_getcpuclockid): Remove code left unreachable by removal of
3212         conditionals.
3213         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3214         code unconditional.
3215         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3216         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3217         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3218         Make code unconditional.
3219         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3220         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3221         * sysdeps/unix/sysv/linux/clock_settime.c
3222         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3223         conditional code.
3224         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3225         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3226
3227 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3228
3229         [BZ #14476]
3230         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3231         scripts/test-installation.pl.
3232
3233         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3234         and $ld_so_version if it is set.
3235
3236 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3237
3238         [BZ #14516]
3239         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3240         failure if reading from procfs failed.
3241         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3242
3243 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3244
3245         * sysdeps/unix/sysv/linux/kernel-features.h
3246         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3247         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3248         Remove conditional code.
3249         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3250         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3251         Remove conditional code.
3252         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3253         * sysdeps/unix/sysv/linux/i386/fxstat.c
3254         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3255         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3256         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3257         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3258         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3259         * sysdeps/unix/sysv/linux/i386/lxstat.c
3260         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3261         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3262         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3263         Remove conditional code.
3264         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3265         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3266         Remove conditional code.
3267         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3268         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3269         <kernel-features.h>.
3270         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3271         Remove.
3272         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3273         Remove conditional code.
3274         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3275         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3276         Remove conditional.
3277
3278 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3279
3280         [BZ #5400]
3281         * NEWS: Add fixed bug number.
3282
3283 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3284
3285         [BZ #14519]
3286         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3287         underflowing exponent in case of negative sign.
3288         * stdlib/tst-strtod-round-data: Add more tests.
3289         * stdlib/tst-strtod-round.c (tests): Regenerated.
3290
3291         [BZ #3479]
3292         * stdlib/strtod_l.c (NDIG): Remove.
3293         (HEXNDIG): Likewise.
3294         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3295         smallest representable value.
3296         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3297         lie within an exact representation of 1/2 ulp of the result.
3298         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3299         unconditionally.
3300         (TENS_P9_IDX): Define unconditionally.
3301         (TENS_P9_SIZE): Likewise.
3302         (TENS_P10_IDX): Likewise.
3303         (TENS_P10_SIZE): Likewise.
3304         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3305         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3306         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3307         entries for 10^2^13 and 10^2^14.
3308         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3309         (TENS_P13_IDX): Define.
3310         (TENS_P13_SIZE): Likewise.
3311         (TENS_P14_IDX): Likewise.
3312         (TENS_P14_SIZE): Likewise.
3313         (_fpioconst_pow10): Change array size to
3314         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3315         unconditional.
3316         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3317         1024]: Add entries for 10^2^13 and 10^2^14.
3318         [LAST_POW10 > _LAST_POW10]: Remove #error.
3319         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3320         (_fpioconst_pow10): Change array size to
3321         FPIOCONST_POW10_ARRAY_SIZE.
3322         * stdlib/gen-fpioconst.c: New file.
3323         * stdlib/gen-tst-strtod-round.c: Likewise.
3324         * stdlib/tst-strtod-round-data: Likewise.
3325         * stdlib/tst-strtod-round.c: Likewise.
3326         * stdlib/Makefile (tests): Add tst-strtod-round.
3327
3328         [BZ #14459]
3329         * stdlib/strtod_l.c: Include <stdint.h>.
3330         (NDEBUG): Do not define.
3331         (round_and_return): Change EXPONENT parameter to type intmax_t.
3332         Rearrange calculations to avoid internal overflow possibilities.
3333         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3334         Rearrange calculations to avoid internal overflow possibilities.
3335         Assert that number fits inside MPNSIZE limbs.
3336         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3337         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3338         calculations and add assertions to avoid internal overflow
3339         possibilities.  Add casts to avoid signed/unsigned operations.
3340         * stdlib/tst-strtod-overflow.c: New file.
3341         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3342
3343 2012-08-25  Marek Polacek  <polacek@redhat.com>
3344
3345         * time/time.h: Fix some typos in comments.
3346
3347 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3348
3349         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3350         * posix/tst-rfc3484-2.c: Likewise.
3351         * posix/tst-rfc3484-3.c: Likewise.
3352
3353 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3354
3355         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3356         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3357
3358 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3359
3360         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3361         #include of fxstatat64.c.
3362
3363 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3364
3365         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3366         * shadow/getspent_r.c: Likewise.
3367         * shadow/getspnam.c: Likewise.
3368         * shadow/getspnam_r.c: Likewise.
3369         * gshadow/getsgent.c: Likewise.
3370         * gshadow/getsgent_r.c: Likewise.
3371         * gshadow/getsgnam.c: Likewise.
3372         * gshadow/getsgnam_r.c: Likewise.
3373         * inet/getnetbyad.c: Likewise.
3374         * inet/getnetbyad_r.c: Likewise.
3375         * inet/getnetbynm.c: Likewise.
3376         * inet/getnetbynm_r.c: Likewise.
3377         * inet/getnetent.c: Likewise.
3378         * inet/getnetent_r.c: Likewise.
3379         * inet/getproto.c: Likewise.
3380         * inet/getproto_r.c: Likewise.
3381         * inet/getprtent.c: Likewise.
3382         * inet/getprtent_r.c: Likewise.
3383         * inet/getprtname.c: Likewise.
3384         * inet/getprtname_r.c: Likewise.
3385         * inet/getrpcbyname.c: Likewise.
3386         * inet/getrpcbyname_r.c: Likewise.
3387         * inet/getrpcbynumber.c: Likewise.
3388         * inet/getrpcbynumber_r.c: Likewise.
3389         * inet/getrpcent.c: Likewise.
3390         * inet/getrpcent_r.c: Likewise.
3391         * inet/getaliasent.c: Likewise.
3392         * inet/getaliasent_r.c: Likewise.
3393         * inet/getaliasname.c: Likewise.
3394         * inet/getaliasname_r.c: Likewise.
3395         * nscd/getgrgid_r.c: Likewise.
3396         * nscd/getgrnam_r.c: Likewise.
3397         * nscd/gethstbyad_r.c: Likewise.
3398         * nscd/gethstbynm3_r.c: Likewise.
3399         * nscd/getpwnam_r.c: Likewise.
3400         * nscd/getpwuid_r.c: Likewise.
3401         * nscd/getsrvbynm_r.c: Likewise.
3402         * nscd/getsrvbypt_r.c: Likewise.
3403         * nscd/gai.c: Likewise.
3404
3405         * configure.in (build_nscd): New substituted variable, set
3406         by --disable-build-nscd and defaults to $use_nscd.
3407         * configure: Regenerated.
3408         * config.make.in (build-nscd): New substituted variable.
3409         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3410         Change conditional to require [$(build-nscd) = yes] as well.
3411         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3412
3413         [BZ# 13696]
3414         * configure.in (use_nscd): New substituted variable, set by
3415         --disable-nscd.  If enabled, define USE_NSCD.
3416         * configure: Regenerated.
3417         * config.h.in: Add USE_NSCD.
3418         * config.make.in (use-nscd): New substituted variable.
3419         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3420         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3421         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3422         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3423         (CFLAGS-getgrnam_r.c): Likewise.
3424         (CFLAGS-initgroups.c): Likewise.
3425         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3426         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3427         Variables removed.
3428         * inet/getnetgrent_r.c
3429         (nscd_setnetgrent): New function, broken out of ...
3430         (setnetgrent): ... here.  Call it.
3431         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3432         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3433         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3434         * nscd/Makefile (routines, aux): Move definitions after include of
3435         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3436         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3437         Conditionalize on [USE_NSCD].
3438         (is_nscd, nscd_init_cb): Likewise.
3439         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3440         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3441         * nss/nss_db/db-init.c: Likewise.
3442         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3443         [USE_NSCD].
3444         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3445         (make_request): Use it.
3446         (cache_valid_p): New function.
3447         (__check_pf): Use it.
3448         * NEWS: Add item for --disable-nscd.
3449
3450 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3451
3452         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3453         to support sed >= 4.2.1-20-ga9bf076.
3454         * configure: Regenerated.
3455
3456 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3457
3458         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3459         Conditionalize whole body on [IREL].
3460
3461 2012-08-22  Jeff Law <law@redhat.com>
3462
3463         [BZ #14505]
3464         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3465         if the family is PF_UNSPEC.
3466
3467 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3468
3469         * Makerules (lib-version): Rename from V.
3470         (install-lib-nosubdir): Change V to lib-version.
3471
3472 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3473
3474         [BZ #14252]
3475         * powerpc32/power6/wcschr.c: New file.
3476         * powerpc32/power6/wcscpy.c: New file.
3477         * powerpc32/power6/wcsrchr.c: New file.
3478         * powerpc64/power6/wcschr.c: New file.
3479         * powerpc64/power6/wcscpy.c: New file.
3480         * powerpc64/power6/wcsrchr.c: New file.
3481
3482 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3483
3484         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3485         (two_way_short_needle): Use it.
3486         * string/strstr.c (AVAILABLE1_USES_J): Define.
3487         * string/strcasestr.c: Likewise.
3488
3489         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3490         array references.
3491         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3492
3493         [BZ #11607]
3494         * NEWS: Add an entry.
3495         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3496         define their defaults.
3497         (two_way_short_needle): Detect end-of-string on-the-fly.
3498         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3499         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3500         * string/bug-strcasestr1.c: New test.
3501         * string/Makefile: Run it.
3502
3503 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3504
3505         [BZ #11607]
3506         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3507         the first character.
3508
3509 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3510
3511         * csu/elf-init.c (__libc_csu_irel): Function removed.
3512         * csu/libc-start.c (apply_irel): New function.
3513         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3514
3515 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3516
3517         * sysdeps/unix/sysv/linux/kernel-features.h
3518         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3519         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3520         <kernel-features.h>.
3521         [__NR_fadvise64_64]: Make code unconditional.
3522         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3523         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3524         !__NR_fadvise64_64)]: Likewise.
3525         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3526         !__NR_fadvise64_64))]: Likewise.
3527         [__NR_fadvise64]: Make code unconditional.
3528         [!__NR_fadvise64]: Remove conditional code.
3529         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3530         <kernel-features.h>.
3531         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3532         unconditional.
3533         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3534         conditional code.
3535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3536         not include <kernel-features.h>.
3537         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3538         unconditional.
3539         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3540         conditional code.
3541         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3542         include <kernel-features.h>.
3543         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3544         unconditional.
3545         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3546         conditional code.
3547
3548 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3549
3550         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3551         slight instruction rearrangements per scrollpipe analysis.
3552         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3553
3554 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3555
3556         * manual/syslog.texi (syslog; vsyslog, closelog):
3557         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3558         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3559
3560         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3561         DSOCAPS to match condition on defining it.
3562
3563 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3564
3565         * sysdeps/unix/sysv/linux/kernel-features.h
3566         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3568         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3569         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3571         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3572         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3574         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3575         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3576
3577         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3578         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3579
3580         * sysdeps/unix/sysv/linux/kernel-features.h
3581         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3582         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3583         unconditional.
3584         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3585         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3586         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3587         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3588         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3589         Make code unconditional.
3590         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3591         (__mmap64) [!__NR_mmap2]: Likewise.
3592         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3593         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3594         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3595         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3596         [__NR_mmap2]: Make code unconditional.
3597         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3598         (__mmap64) [!__NR_mmap2]: Likewise.
3599
3600 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3601
3602         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3603
3604 2012-08-18  Andreas Jaeger  <aj@suse.de>
3605
3606         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3607
3608 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3609
3610         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3611         * include/unistd.h (__have_sock_cloexec): Likewise.
3612         (__have_pipe2): Likewise.
3613         (__have_dup3): Likewise.
3614
3615 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3616
3617         [BZ #9685]
3618         * include/unistd.h (__have_pipe2): Change define into an extern int.
3619         (__have_dup3): Likewise.
3620         * socket/have_sock_cloexec.c: Include fcntl.h.
3621         (__have_pipe2): New variable.
3622         (__have_dup3): Likewise.
3623
3624 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3625
3626         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3627
3628 2012-08-17  Marek Polacek  <polacek@redhat.com>
3629
3630         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3631         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3632
3633 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3634
3635         * configure.in: Add AC_SUBST for sysheaders.
3636         * configure: Regenerated.
3637         * config.make.in (sysheaders): New substituted variable.
3638
3639         * sysdeps/unix/mkfifo.c: Moved ...
3640         * sysdeps/posix/mkfifo.c: ... here.
3641         * sysdeps/unix/mkfifoat.c: Moved ...
3642         * sysdeps/posix/mkfifoat.c: ... here.
3643
3644         * sysdeps/unix/utime.c: Moved ...
3645         * sysdeps/posix/utime.c: ... here.
3646
3647         * sysdeps/unix/time.c: Moved ...
3648         * sysdeps/posix/time.c: ... here.
3649         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3650         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3651
3652         * sysdeps/unix/nice.c: Moved ...
3653         * sysdeps/posix/nice.c: ... here.
3654
3655         * sysdeps/unix/alarm.c: Moved ...
3656         * sysdeps/posix/alarm.c: ... here.
3657
3658         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3659
3660 2012-08-17  Jeff Law <law@redhat.com>
3661
3662         * intl/Makefile (codeset_mo): New variable.
3663         ($(codeset_mo)): New target.
3664         (tst-codeset.out): Depend on that.  Remove explicit rule.
3665         (tst-gettext3.out, tst-gettext5.out): Likewise.
3666         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3667         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3668         * intl/tst-codeset.sh: Remove.
3669         * intl/tst-gettext3.sh: Likewise.
3670         * intl/tst-gettext5.sh: Likewise.
3671
3672 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3673
3674         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3675         * sysdeps/unix/syscalls.list: ... here.
3676
3677         * sysdeps/posix/getaddrinfo.c
3678         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3679         (gaiconf_init, gaiconf_reload): Use them.
3680         [!_STATBUF_ST_NSEC]
3681         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3682         Define using time_t rather than struct timespec.
3683
3684         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3685         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3686         Macros removed.
3687         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3688         [!NO_THREADS].
3689         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3690         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3691         Likewise.
3692
3693         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3694         __libc_cleanup_push argument.
3695
3696         * bits/param.h: New file.
3697         * misc/sys/param.h: New file.
3698         * include/sys/param.h: New file.
3699         * misc/Makefile (headers): Add bits/param.h.
3700         * sysdeps/generic/sys/param.h: File removed.
3701         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3702         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3703         * sysdeps/mach/hurd/bits/param.h: New file.
3704         * sysdeps/mach/hurd/sys/param.h: File removed.
3705
3706         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3707         last change.
3708
3709         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3710         [_IO_MTSAFE_IO].
3711         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3712         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3713         New macros.
3714
3715         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3716         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3717         rather than -D_IO_MTSAFE_IO conditionally.
3718         * stdio-common/Makefile (CPPFLAGS): Likewise.
3719         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3720         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3721         Use $(libio-mtsafe).
3722         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3723         of -D_IO_MTSAFE_IO.
3724         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3725         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3726         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3727         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3728         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3729         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3730         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3731         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3732         (CFLAGS-fread_u_chk.c): Likewise.
3733         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3734         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3735         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3736         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3737         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3738         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3739         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3740         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3741         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3742
3743         * libio/Makefile: Test [$(libc-reentrant) = yes]
3744         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3745
3746         * Makeconfig
3747         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3748         * sysdeps/pthread/configure: File removed.
3749         * sysdeps/pthread/Makeconfig: New file.
3750         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3751         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3752
3753 2012-08-16  Gary Benson  <gbenson@redhat.com>
3754
3755         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3756         unmapping the first object in a namespace.
3757
3758 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3759
3760         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3761         (__internal_setnetgrent): ... this.  Add internal_function to
3762         definition.  Add libc_hidden_def.
3763         (setnetgrent): Update caller.
3764         (internal_endnetgrent): Renamed to ...
3765         (__internal_endnetgrent): ... this.  Add internal_function to
3766         definition.  Add libc_hidden_def.
3767         (endnetgrent): Update caller.
3768         (internal_getnetgrent_r): Renamed to ...
3769         (__internal_getnetgrent_r): ... this.  Add internal_function to
3770         definition.  Add libc_hidden_def.
3771         (__getnetgrent_r): Update caller.
3772         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3773
3774 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3775
3776         * stdlib/longlong.h: Update from GCC.
3777
3778 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3779
3780         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3781         on _QL, which is set by umul_ppmm but never used.
3782         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3783         variables, which are set by GMP macros but never used.
3784         * stdio-common/_itowa.c (_itowa): Likewise.
3785         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3786         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3787
3788 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3789
3790         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3791         struct La_sh_regs is not constant.
3792         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3793         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3794         and struct La_sparc64_regs are not constant.
3795
3796 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3797
3798         * sysdeps/unix/sysv/linux/kernel-features.h
3799         (__ASSUME_POSIX_TIMERS): Remove.
3800         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3801         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3802         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3803         Make code unconditional.
3804         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3805         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3806         Make code unconditional.
3807         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3808         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3809         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3810         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3811         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3812         Make code unconditional.
3813         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3814         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3815         (__libc_missing_posix_timers): Remove.
3816
3817 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3818
3819         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3820         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3821
3822         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3823
3824         * elf/dl-sym.c: Include <stdlib.h>.
3825
3826         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3827         constants, which avoids warnings in 32-bit builds.
3828
3829         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3830         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3831
3832         * misc/lseek.c: File moved to ...
3833         * io/lseek.c: ... here.
3834
3835         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3836
3837         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3838         shifting LEN more than 31 bits at once.
3839
3840 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3841
3842         [BZ #14195]
3843         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3844         segmentation fault for a case of two empty input strings.
3845         * string/test-strncasecmp.c (check1): Renamed to...
3846         (bz12205): ...this.
3847         (bz14195): Add new testcase for two empty input strings and N > 0.
3848         (test_main): Call new testcase, adapt for renamed function.
3849
3850 2012-08-15  Andreas Jaeger  <aj@suse.de>
3851
3852         [BZ #14090]
3853         * crypt/md5test2.c: New test, based on test supplied by Serge
3854         Belyshev <belyshev@depni.sinp.msu.ru>.
3855         * crypt/Makefile (xtests): Add md5test-giant..
3856         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3857
3858 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3859
3860         [BZ #14090]
3861         * crypt/md5.c (md5_process_block): Don't assume the buffer
3862         length is less than 2**32.
3863         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3864         length is less than 2**64.
3865
3866 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3867
3868         * string/str-two-way.h: Include <sys/param.h>.
3869         (MAX): Macro removed.
3870
3871         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3872         Move #define and #undef of memmove to just before and after
3873         including <string.h>.
3874
3875         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3876         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3877         and after including <string.h>.  Move declarations of
3878         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3879         to before #include "string/memmove.c".
3880
3881         * include/dirent.h: Declare __getdirentries.
3882
3883         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3884         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3885
3886 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3887
3888         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3889         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3890         * sysdeps/i386/configure: Regenerated.
3891         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3892         STABS_CURRENT_FILE, and STABS_FUN.
3893         (END): Remove call to STABS_FUN_END.
3894         (STABS_CURRENT_FILE1): Delete.
3895         (STABS_CURRENT_FILE): Likewise.
3896         (STABS_FUN): Likewise.
3897         (STABS_FUN_END): Likewise.
3898         (STABS_FUN2): Likewise.
3899         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3900         * sysdeps/x86_64/configure: Regenerated.
3901
3902 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3903
3904         * elf/dl-open.c: Include <atomic.h>.
3905         * elf/dl-lookup.c: Likewise.
3906
3907 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3908
3909         * sysdeps/unix/sysv/linux/kernel-features.h
3910         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3911         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3912         unconditionally.
3913         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3914         unconditionally.
3915         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3916         condition on __ASSUME_CLONE_THREAD_FLAGS.
3917
3918 2012-08-14  Andreas Jaeger  <aj@suse.de>
3919
3920         * sysdeps/i386/fpu/libm-test-ulps: Update.
3921
3922 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3923
3924         * include/atomic.h (atomic_exchange_and_add): Split into ...
3925         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3926         New atomic macros.
3927
3928 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3929
3930         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3931
3932 2012-08-13  Jeff Law <law@redhat.com>
3933
3934         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3935         null byte in the output string.
3936
3937 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3938
3939         * sysdeps/unix/sysv/linux/kernel-features.h
3940         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3941         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3942         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3943         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3944         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3945         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3946         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3947
3948 2012-08-09  Jeff Law <law@redhat.com>
3949
3950         [BZ #13939]
3951         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3952         When avoid_arena is set, don't retry in the that arena.  Pick the
3953         next one, whatever it might be.
3954         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3955         (arena_lock): Pass in new parameter to arena_get2.
3956         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3957         arena_get2.
3958         (__libc_malloc): Unify retrying after main arena failure with
3959         __libc_memalign version.
3960         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3961
3962 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3963
3964         [BZ #14166]
3965         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3966         to __redirect_strstr.
3967         (__strstr_sse42): Use typeof __redirect_strstr.
3968         (__strstr_ia32): Likewise.
3969         (__libc_strstr): New prototype.
3970         (strstr): Renamed to ...
3971         (__libc_strstr): This.
3972         (strstr): New strong alias of __libc_strstr.
3973         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3974         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3975         __redirect_time.
3976         Include <time.h>.
3977         (__libc_time): New prototype.
3978         (time_ifunc): Replace time with __libc_time.
3979         (time): New strong alias and hidden definition of __libc_time.
3980         (__GI_time): Remove strong alias.
3981         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3982         Include <stddef.h>.
3983         (memmove): Redefined to __redirect_memmove.
3984         (__memmove_sse2): Use typeof __redirect_memmove.
3985         (__memmove_ssse3): Likewise.
3986         (__memmove_ssse3_back): Likewise.
3987         (__libc_memmove): New prototype.
3988         (memmove): Renamed to ...
3989         (__libc_memmove): This.
3990         (memmove): New strong alias of __libc_memmove.
3991
3992 2012-08-08  Mark Salter  <msalter@redhat.com>
3993
3994         * elf/elf.h
3995         (R_MN10300_TLS_GD): Define.
3996         (R_MN10300_TLS_LD): Likewise.
3997         (R_MN10300_TLS_LDO): Likewise.
3998         (R_MN10300_TLS_GOTIE): Likewise.
3999         (R_MN10300_TLS_IE): Likewise.
4000         (R_MN10300_TLS_LE): Likewise.
4001         (R_MN10300_TLS_DTPMOD): Likewise.
4002         (R_MN10300_TLS_DTPOFF): Likewise.
4003         (R_MN10300_TLS_TPOFF): Likewise.
4004         (R_MN10300_SYM_DIFF): Likewise.
4005         (R_MN10300_ALIGN): Likewise.
4006         (R_MN10300_NUM): Update.
4007
4008 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4009
4010         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4011         Remove.
4012
4013 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4014
4015         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4016
4017         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4018         sysdeps/unix -> sysdeps/posix move.
4019         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4020
4021 2012-08-07      Allan McRae     <allan@archlinux.org>
4022
4023         [BZ #14303]
4024         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4025         (SUNOS_CPP): Likewise.
4026         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4027         not found.
4028         (open_input): Call CPP using execvp.
4029
4030 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4031
4032         * sysdeps/unix/sysv/linux/kernel-features.h
4033         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4034         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4035         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4036         (__ASSUME_WAITID_SYSCALL): Likewise.
4037         * sysdeps/unix/sysv/linux/dl-execstack.c
4038         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4039         code unconditional.
4040         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4041         conditional code.
4042         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4043         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4044         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4045         code.
4046         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4047         unconditional.
4048         [__ASSUME_WAITID_SYSCALL]: Likewise.
4049         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4050
4051 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4052
4053         * sysdeps/unix/closedir.c: Renamed to ...
4054         * sysdeps/posix/closedir.c: ... here.
4055         * sysdeps/unix/dirfd.c: Renamed to ...
4056         * sysdeps/posix/dirfd.c: ... here.
4057         * sysdeps/unix/dirstream.h: Renamed to ...
4058         * sysdeps/posix/dirstream.h: ... here.
4059         * sysdeps/unix/fdopendir.c: Renamed to ...
4060         * sysdeps/posix/fdopendir.c: ... here.
4061         * sysdeps/unix/opendir.c: Renamed to ...
4062         * sysdeps/posix/opendir.c: ... here.
4063         * sysdeps/unix/readdir.c: Renamed to ...
4064         * sysdeps/posix/readdir.c: ... here.
4065         * sysdeps/unix/readdir_r.c: Renamed to ...
4066         * sysdeps/posix/readdir_r.c: ... here.
4067         * sysdeps/unix/rewinddir.c: Renamed to ...
4068         * sysdeps/posix/rewinddir.c: ... here.
4069         * sysdeps/unix/seekdir.c: Renamed to ...
4070         * sysdeps/posix/seekdir.c: ... here.
4071         * sysdeps/unix/telldir.c: Renamed to ...
4072         * sysdeps/posix/telldir.c: ... here.
4073         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4074         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4075         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4076         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4077
4078         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4079         * bits/fcntl.h: ... here.
4080
4081         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4082         not 0.
4083         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4084         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4085         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4086         (struct flock): Move l_start, l_len to the beginning.
4087         Use __pid_t for l_pid.
4088         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4089         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4090         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4091         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4092         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4093         [__USE_LARGEFILE64] (struct flock64): New type.
4094         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4095
4096         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4097         * bits/dirent.h: ... here.
4098
4099         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4100         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4101
4102 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4105         Change from 2.6.0 to 2.6.16.
4106         * sysdeps/unix/sysv/linux/configure: Regenerated.
4107         * sysdeps/unix/sysv/linux/kernel-features.h
4108         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4109         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4110         version.
4111         (__ASSUME_UTIMES): Likewise.
4112         (__ASSUME_CLONE_STOPPED): Remove.
4113         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4114         architectures, not kernel version.
4115         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4116         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4117         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4118         (__ASSUME_WAITID_SYSCALL): Likewise.
4119         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4120         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4121         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4122         refer to older versions.
4123
4124 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4125
4126         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4127         Define alphasort64 as an alias.
4128         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4129         Define versionsort64 as an alias.
4130         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4131         Define scandir64 as an alias.
4132         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4133         Define scandirat64 as an alias.
4134         * dirent/alphasort64.c (alphasort64):
4135         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4136         * dirent/versionsort64.c: Likewise.
4137         * dirent/scandir64.c: Likewise.
4138         * dirent/scandirat64.c: Likewise.
4139         * sysdeps/wordsize-64/alphasort.c: File removed.
4140         * sysdeps/wordsize-64/alphasort64.c: File removed.
4141         * sysdeps/wordsize-64/scandir.c: File removed.
4142         * sysdeps/wordsize-64/scandir64.c: File removed.
4143         * sysdeps/wordsize-64/scandirat.c: File removed.
4144         * sysdeps/wordsize-64/scandirat64.c: File removed.
4145         * sysdeps/wordsize-64/versionsort.c: File removed.
4146         * sysdeps/wordsize-64/versionsort64.c: File removed.
4147         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4148         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4149         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4150         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4151         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4152         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4153         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4154         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4155
4156         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4157         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4158         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4159         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4160         [defined __arch64__ || defined __sparcv9]
4161         (__INO_T_MATCHES_INO64_T): New macro.
4162         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4163         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4164         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4165         * sysdeps/unix/sysv/linux/bits/dirent.h
4166         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4167         (_DIRENT_MATCHES_DIRENT64): New macro.
4168
4169         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4170         Define lockf64 as an alias.
4171         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4172         Define fseeko64 as an alias.
4173         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4174         Define ftello64 as an alias.
4175         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4176         Define _IO_fgetpos64 and fgetpos64 as aliases.
4177         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4178         Define _IO_fsetpos64 and fsetpos64 as aliases.
4179         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4180         Conditionalize body on this.
4181         * libio/fseeko64.c: Likewise.
4182         * libio/ftello64.c: Likewise.
4183         * libio/iofgetpos64.c: Likewise.
4184         * libio/iofsetpos64.c: Likewise.
4185         * sysdeps/wordsize-64/lockf.c: File removed.
4186         * sysdeps/wordsize-64/lockf64.c: File removed.
4187         * sysdeps/wordsize-64/fseeko.c: File removed.
4188         * sysdeps/wordsize-64/fseeko64.c: File removed.
4189         * sysdeps/wordsize-64/ftello.c: File removed.
4190         * sysdeps/wordsize-64/ftello64.c: File removed.
4191         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4192         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4193         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4194         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4195         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4196         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4197         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4198         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4199         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4200         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4201         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4202         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4203         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4204         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4205
4206         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4207         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4208         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4209         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4210         [defined __arch64__ || defined __sparcv9]
4211         (__OFF_T_MATCHES_OFF64_T): New macro.
4212         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4213         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4214         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4215         (__OFF_T_MATCHES_OFF64_T): New macro.
4216
4217 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         * stdlib/secure-getenv.c (__secure_getenv): Replace
4220         GLIBC_2_16 with GLIBC_2_17.
4221
4222 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4225         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4226
4227 2012-08-03  David S. Miller  <davem@davemloft.net>
4228
4229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4230
4231 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4232
4233         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4234         Remove.
4235         (__ASSUME_CORRECT_SI_PID): Likewise.
4236         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4237         (__ASSUME_TMPFS_NAME): Likewise.
4238         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4239         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4240         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4241         (HAVE_AUX_SECURE): Make definition unconditional.
4242         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4243         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4244
4245 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4246
4247         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4248         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4249         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4250         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4251         __eloop_threshold instead of SYMLOOP_MAX.
4252
4253         * sysdeps/generic/eloop-threshold.h: New file.
4254         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4255         of MAXSYMLINKS.
4256         * elf/chroot_canon.c (chroot_canon): Likewise.
4257
4258 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4259
4260         [BZ #13717]
4261         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4262         Change to 2.6.0 everywhere.
4263         * sysdeps/unix/sysv/linux/configure: Regenerated.
4264         * sysdeps/unix/sysv/linux/kernel-features.h
4265         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4266         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4267         kernel versions.
4268         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4269         (__ASSUME_FUTEX_REQUEUE): Remove.
4270         (__ASSUME_STATFS64): Define unconditionally.
4271         (__ASSUME_AT_SECURE): Likewise.
4272         (__ASSUME_CORRECT_SI_PID): Likewise.
4273         (__ASSUME_TGKILL): Define without depending on kernel version for
4274         i386.
4275         (__ASSUME_UTIMES): Likewise.
4276         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4277         kernel version.
4278         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4279         (__ASSUME_TMPFS_NAME): Likewise.
4280         * README: Update reference to Linux kernel versions.
4281
4282 2012-08-02  Marek Polacek  <polacek@redhat.com>
4283
4284         [BZ# 14150]
4285         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4286         libc_cv_asm_type_prefix with %.
4287         * configure: Regenerated.
4288         * include/libc-symbols.h: Remove comment about
4289         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4290         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4291         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4292         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4293         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4294         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4295         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4296         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4297         * elf/tst-unique2mod1.c: Likewise.
4298         * elf/tst-unique1mod2.c: Likewise.
4299         * elf/tst-unique1mod1.c: Likewise.
4300         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4301         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4302         Replace ASM_TYPE_DIRECTIVE with .type.
4303         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4304         * sysdeps/i386/sysdep.h: Likewise.
4305         * sysdeps/x86_64/sysdep.h: Likewise.
4306         * sysdeps/sh/sysdep.h: Likewise.
4307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4308         Do not define ASM_TYPE_DIRECTIVE.
4309         * sysdeps/powerpc/sysdep.h: Likewise.
4310         * sysdeps/powerpc/powerpc32/sysdep.h:
4311         Replace ASM_TYPE_DIRECTIVE with .type.
4312         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4313         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4314         * sysdeps/i386/fpu/e_powf.S: Likewise.
4315         * sysdeps/i386/fpu/e_expl.S: Likewise.
4316         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4317         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4318         * sysdeps/i386/fpu/e_pow.S: Likewise.
4319         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4320         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4321         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4322         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4323         * sysdeps/i386/fpu/e_log2.S: Likewise.
4324         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4325         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4326         * sysdeps/i386/fpu/e_powl.S: Likewise.
4327         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4328         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4329         * sysdeps/i386/fpu/e_logl.S: Likewise.
4330         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4331         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4332         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4333         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4334         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4335         * sysdeps/i386/fpu/e_log.S: Likewise.
4336         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4337         * sysdeps/i386/fpu/e_logf.S: Likewise.
4338         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4339         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4340         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4341         * sysdeps/i386/fpu/e_log10.S: Likewise.
4342         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4343         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4344         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4345         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4346         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4347         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4348         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4349         * sysdeps/i386/i686/strtok.S: Likewise.
4350         * sysdeps/i386/i386-mcount.S: Likewise.
4351         * sysdeps/i386/strtok.S: Likewise.
4352         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4353         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4354         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4355         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4356         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4357         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4358         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4359         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4360         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4361         * sysdeps/x86_64/_mcount.S: Likewise.
4362         * sysdeps/x86_64/strtok.S: Likewise.
4363         * sysdeps/sh/_mcount.S: Likewise.
4364
4365 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4366
4367         * libio/iofopen.c: Include <fcntl.h>.
4368         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4369         (_IO_fopen64, fopen64): Define as aliases.
4370         * libio/iofopen64.c: Include <fcntl.h>.
4371         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4372         Conditionalize body on this.
4373         * sysdeps/wordsize-64/iofopen.c: File removed.
4374         * sysdeps/wordsize-64/iofopen64.c: File removed.
4375
4376 2012-08-01  Marek Polacek  <polacek@redhat.com>
4377
4378         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4379         Use dlfcn directly instead of a variable.
4380         (binfmt-subdir): Do not define.
4381         (dlfcn): Likewise.
4382
4383 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4384
4385         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4386         Remove all definitions.
4387         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4388         <kernel-features.h>.
4389         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4390         (miss_F_GETOWN_EX): Remove all definitions.
4391         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4392         macro definition.
4393         [!__ASSUME_FCNTL64]: Remove conditional code.
4394         [__ASSUME_FCNTL64]: Make code unconditional.
4395         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4396         <kernel-features.h>.
4397         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4398         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4399         (lockf64) [__NR_fcntl64]: Make code unconditional.
4400         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4401
4402         * sysdeps/unix/sysv/linux/kernel-features.h
4403         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4404         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4405         Make code unconditional.
4406         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4407         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4409         [__NR_vfork]: Make code unconditional.
4410         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4411         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4413         [__NR_vfork]: Make code unconditional.
4414         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4415         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4416
4417 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4418
4419         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4420         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4421
4422         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4423         Define mkstemp64 as an alias.
4424         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4425         Define mkstemps64 as an alias.
4426         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4427         Define mkostemp64 as an alias.
4428         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4429         Define mkostemps64 as an alias.
4430         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4431         Conditionalize body on this.
4432         * misc/mkostemp64.c: Likewise.
4433         * misc/mkostemps64.c: Likewise.
4434         * misc/mkstemps64.c: Likewise.
4435         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4436         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4437         * sysdeps/wordsize-64/mkostemp.c: File removed.
4438         * sysdeps/wordsize-64/mkstemp.c: File removed.
4439         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4440         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4441         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4442         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4443
4444         [BZ #14138]
4445         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4446         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4447         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4448         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4449
4450         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4451         compat_symbol macros from <shlib-compat.h> rather than the underlying
4452         default_symbol_version and symbol_version macros, so that DEFAULT
4453         lines in shlib-versions are respected.
4454         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4455
4456 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4457
4458         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4459         Declare with warn_unused_result.
4460         (setgid, setregid, setegid, setresgid): Likewise.
4461         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4462         Likewise.
4463         * WUR-REPORT: Remove set*id functions.
4464
4465 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4466
4467         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4468
4469 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4470
4471         * include/sys/socket.h (__libc_accept, __libc_accept4):
4472         Add attribute_hidden.
4473         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4474
4475         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4476         use of PTR_MANGLE.
4477         * inet/getnetgrent_r.c (setup): Likewise.
4478
4479         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4480
4481 2012-07-31  David S. Miller  <davem@davemloft.net>
4482
4483         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4484
4485 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4486
4487         [BZ #13629]
4488         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4489         value between 1.0 and 2.0 and smaller part has absolute value less
4490         than 1.0.
4491         * math/s_clog10.c (__clog10): Likewise.
4492         * math/s_clog10f.c (__clog10f): Likewise.
4493         * math/s_clog10l.c (__clog10l): Likewise.
4494         * math/s_clogf.c (__clogf): Likewise.
4495         * math/s_clogl.c (__clogl): Likewise.
4496         * math/libm-test.inc (clog_test): Add more tests.
4497         (clog10_test): Likewise.
4498         * sysdeps/i386/fpu/libm-test-ulps: Update.
4499         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4500
4501 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4502
4503         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4504         Exit with zero in case no suitable GID is found, and write a
4505         message to standard error.
4506
4507 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4508
4509         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4510         rather than to 1.
4511         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4512         (MAXPATHLEN): Removed.
4513         (NOGROUP, NODEV): New macros.
4514         (setbit, clrbit, isset, isclr): New macros.
4515         (howmany, roundup, powerof2): New macros.
4516         (DEV_BSIZE): New macro.
4517
4518         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4519         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4520
4521         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4522         definition on [!__NO_LONG_DOUBLE_MATH].
4523
4524         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4525         PTR_MANGLE and PTR_DEMANGLE.
4526
4527         * socket/accept4.c (accept4): Rename to __libc_accept4.
4528         Define accept4 as a weak alias.
4529
4530         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4531         on [_DIRENT_HAVE_D_TYPE].
4532         * io/ftw.c (ftw_dir): Likewise.
4533
4534         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4535
4536         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4537
4538         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4539         Use the BSD numbers rather than the arbitrary ones we had.
4540         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4541         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4542         (SIGXCPU, SIGXFSZ): New macros.
4543         (_NSIG): Now 32.
4544
4545         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4546         initializer on [_LIBC_REENTRANT].
4547
4548         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4549         definitions inside [_POSIX_MAPPED_FILES].
4550
4551         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4552
4553         * dirent/opendir.c: Include <fcntl.h>.
4554
4555         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4556         (__libc_getspecific): Likewise.
4557         (__libc_key_create): Likewise.
4558
4559         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4560         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4561         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4562         (tmpfile64): Define as alias.
4563         * sysdeps/wordsize-64/tmpfile.c: File removed.
4564         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4565         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4566         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4567
4568         * stdio-common/vfscanf.c: Include <stdbool.h>.
4569         * nss/makedb.c: Likewise.
4570         * stdio-common/_i18n_number.h: Likewise.
4571         * argp/argp-help.c: Likewise.
4572         * posix/wordexp.c: Likewise.
4573         * sysdeps/posix/spawni.c: Likewise.
4574         * nss/nss_files/files-initgroups.c: Likewise.
4575         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4576         * nss/nss_files/files-initgroups.c: Likewise.
4577         * nss/nss_db/db-netgrp.c: Likewise.
4578         * nss/nss_db/db-initgroups.c: Likewise.
4579         * io/fchmodat.c: Include <sys/stat.h>.
4580
4581         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4582         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4583
4584         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4585         [HAVE_MMAP].
4586
4587         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4588         Add multiple inclusion protection.
4589
4590 2012-07-27  David S. Miller  <davem@davemloft.net>
4591
4592         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4593
4594 2012-07-27  Gary Benson  <gbenson@redhat.com>
4595
4596         [BZ #14298]
4597         * elf/rtld.c: Include <stap-probe.h>.
4598         (dl_main): Added static probes "init_start" and "init_complete".
4599         * elf/dl-load.c: Include <stap-probe.h>.
4600         (lose): Take new parameter "nsid".
4601         Added static probe "map_failed".
4602         (_dl_map_object_from_fd): Pass namespace id to lose.
4603         Added static probe "map_start".
4604         (open_verify): Pass namespace id to lose.
4605         * elf/dl-open.c: Include <stap-probe.h>.
4606         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4607         and "reloc_complete".
4608         * elf/dl-close.c: Include <stap-probe.h>.
4609         (_dl_close_worker): Added static probes "unmap_start" and
4610         "unmap_complete".
4611         * elf/rtld-debugger-interface.txt: New file documenting the above.
4612
4613 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4614
4615         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4616         rather than a string variable.
4617         * sunrpc/rpc_main.c (h_output): Likewise.
4618         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4619
4620 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4621
4622         * inet/check_native.c: New file.
4623
4624 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4625
4626         [BZ #13629]
4627         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4628         if larger part has absolute value 1.0.
4629         * math/s_clog10.c (__clog10): Likewise.
4630         * math/s_clog10f.c (__clog10f): Likewise.
4631         * math/s_clog10l.c (__clog10l): Likewise.
4632         * math/s_clogf.c (__clogf): Likewise.
4633         * math/s_clogl.c (__clogl): Likewise.
4634         * math/libm-test.inc (clog_test): Add more tests.
4635         (clog10_test): Likewise.
4636         * sysdeps/i386/fpu/libm-test-ulps: Update.
4637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4638
4639         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4640         (pltexit): Likewise.
4641         (La_regs): Likewise.
4642         (La_retval): Likewise.
4643         (int_retval): Likewise.
4644         Update #error for removed macros to refer only to definitions in
4645         tst-audit.h.
4646         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4647         macro.
4648         (pltexit): Likewise.
4649         (La_regs): Likewise.
4650         (La_retval): Likewise.
4651         (int_retval): Likewise.
4652         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4653         macro.
4654         (pltexit): Likewise.
4655         (La_regs): Likewise.
4656         (La_retval): Likewise.
4657         (int_retval): Likewise.
4658         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4659         macro.
4660         (pltexit): Likewise.
4661         (La_regs): Likewise.
4662         (La_retval): Likewise.
4663         (int_retval): Likewise.
4664         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4665         macro.
4666         (pltexit): Likewise.
4667         (La_regs): Likewise.
4668         (La_retval): Likewise.
4669         (int_retval): Likewise.
4670         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4671         macro.
4672         (pltexit): Likewise.
4673         (La_regs): Likewise.
4674         (La_retval): Likewise.
4675         (int_retval): Likewise.
4676         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4677         macro.
4678         (pltexit): Likewise.
4679         (La_regs): Likewise.
4680         (La_retval): Likewise.
4681         (int_retval): Likewise.
4682         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4683         macro definitions in tst-audit.h.
4684         * sysdeps/i386/tst-audit.h: New file.
4685         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4686         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4687         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4688         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4689         * sysdeps/sh/tst-audit.h: Likewise.
4690         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4691         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4692         * sysdeps/x86_64/tst-audit.h: Likewise.
4693
4694 2012-07-26  Andreas Jaeger  <aj@suse.de>
4695
4696         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4697         ptrace.
4698
4699         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4700         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4701         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4702         PTRACE_O_MASK.
4703         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4704         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4705         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4706
4707         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4708         value.
4709
4710         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4711         _sigsys.
4712         (si_call_addr, si_syscall, si_arch): Define new macro.
4713         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4714         _sigsys.
4715         (si_call_addr, si_syscall, si_arch): Define new marcro.
4716         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4717         _sigsys.
4718         (si_call_addr, si_syscall, si_arch): Define new macro.
4719         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4720         _sigsys.
4721         (si_call_addr, si_syscall, si_arch): Define new macro.
4722
4723 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4724
4725         [BZ #13717]
4726         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4727         Change to 2.4.21 where previously 2.4.1.
4728         * sysdeps/unix/sysv/linux/configure: Regenerated.
4729         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4730         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4731         Linux kernel version.
4732         (__ASSUME_STD_AUXV): Remove.
4733         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4734         kernel version.
4735         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4736         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4737         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4738         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4739         (__ASSUME_NETLINK_SUPPORT): Likewise.
4740         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4741         (__no_netlink_support): Remove conditional definition.
4742         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4743         Remove.
4744         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4745         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4746         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4747         (if_nameindex_ioctl): Remove.
4748         (if_nameindex_netlink): Do not handle __no_netlink_support.
4749         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4750         code.
4751         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4752         Remove conditional code.
4753         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4754         code.
4755         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4756         unconditional.
4757         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4758         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4759         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4760         Remove.
4761         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4762         [!__ASSUME_STD_AUXV]: Remove conditional code.
4763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4764         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4765         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4767         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4768         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4769         code.
4770         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4772         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4773         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4774         conditional code.
4775         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4777         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4778         code.
4779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4780         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4781         conditional code.
4782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4783         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4784         code unconditional.
4785         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4786         conditional code.
4787         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4788         unconditional.
4789         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4790         conditional code.
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4792         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4793         unconditional.
4794         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4795         conditional code.
4796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4797         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4798         code unconditional.
4799         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4800         conditional code.
4801         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4802         unconditional.
4803         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4804         conditional code.
4805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4806         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4807         code unconditional.
4808         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4809         conditional code.
4810         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4811         unconditional.
4812         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4813         conditional code.
4814
4815 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4816
4817         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4818         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4819         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4820         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4821         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4822         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4823         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4824         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4825         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4826         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4827         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4828         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4829         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4830         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4831         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4832         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4833         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4834         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4835         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4836         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4837         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4838         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4839         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4840
4841 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4842
4843         * Versions.def: Add GLIBC_2.17.
4844         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4845         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4846         Introduce __libc_secure_getenv.
4847         * stdlib/Versions (2.17): Add secure_getenv
4848         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4849         * stdlib/secure-getenv.c: Rename __secure_getenv to
4850         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4851         symbol __secure_getenv for GLIBC_2.0.
4852         * stdlib/tst-secure-getenv.c: New.
4853         * stdlib/Makefile (tests): Add testcase.
4854         * manual/startup.texi (Environment Access): Document
4855         secure_getenv.
4856         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4857         __libc_secure_getenv.
4858         * inet/ruserpass.c (ruserpass): Likewise.
4859         * malloc/mtrace.c (mtrace): Likewise.
4860         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4861         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4862         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4863         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4864         HAVE_SECURE_GETENV.
4865         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4866         __secure_getenv to __libc_secure_getenv.
4867         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4869         Likewise.
4870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4871         Likewise.
4872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4873         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4874         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4877         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4879
4880 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4881
4882         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4883         (struct La_i86_retval): Likewise.
4884         (struct La_x86_64_regs): Likewise.
4885         (struct La_x86_64_retval): Likewise.
4886         (struct La_x32_regs): Likewise.
4887         (struct La_x32_retval): Likewise.
4888         (struct La_ppc32_regs): Likewise.
4889         (struct La_ppc32_retval): Likewise.
4890         (struct La_ppc64_regs): Likewise.
4891         (struct La_ppc64_retval): Likewise.
4892         (struct La_sh_regs): Likewise.
4893         (struct La_sh_retval): Likewise.
4894         (struct La_s390_32_regs): Likewise.
4895         (struct La_s390_32_retval): Likewise.
4896         (struct La_s390_64_regs): Likewise.
4897         (struct La_s390_64_retval): Likewise.
4898         (struct La_sparc32_regs): Likewise.
4899         (struct La_sparc32_retval): Likewise.
4900         (struct La_sparc64_regs): Likewise.
4901         (struct La_sparc64_retval): Likewise.
4902         (struct audit_ifaces): Remove architecture-specific pltenter and
4903         pltexit members.
4904         * sysdeps/i386/ldsodefs.h: New file.
4905         * sysdeps/powerpc/ldsodefs.h: Likewise.
4906         * sysdeps/s390/ldsodefs.h: Likewise.
4907         * sysdeps/sh/ldsodefs.h: Likewise.
4908         * sysdeps/sparc/ldsodefs.h: Likewise.
4909         * sysdeps/x86_64/ldsodefs.h: Likewise.
4910
4911 2012-07-25  Marek Polacek  <polacek@redhat.com>
4912
4913         [BZ #6808]
4914         * math/libm-test.inc (yn_test): Add another test.
4915         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4916         to ERANGE when the result is +-Inf.
4917         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4918         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4919         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4920         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4921
4922 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4923
4924         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4925         equal to 0.
4926         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4927         clock_t.
4928         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4929
4930 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4931
4932         * configure.in <sysdeps resolving>: Correct printing
4933         Implies_before.
4934         * configure: Regenerate.
4935
4936 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4937
4938         * math/w_ilogb.c: Include <limits.h>.
4939         * math/w_ilogbl.c: Likewise.
4940
4941 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4942
4943         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4944         va_copy.  Document allowing for unavailable va_copy only as
4945         pre-C99 compatibility.
4946         * manual/string.texi (Copying and Concatenation): Use va_copy
4947         instead of __va_copy in concat example.
4948
4949 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4950
4951         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4952         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4953         it if not null.
4954
4955         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4956         with O_NOLINK passed to __file_name_lookup.
4957
4958         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4959         with O_NOLINK passed to __file_name_lookup.
4960
4961         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4962         negative N or less than NGIDS.
4963
4964         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4965         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4966         enough.  Use memcpy instead of strncpy.
4967
4968 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * elf/Makefile (check-data): Remove.
4971         (localplt.data): New vpath directive.
4972         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4973         instead of $(check-data).
4974         * scripts/data/localplt-generic.data: Move to ...
4975         * sysdeps/generic/localplt.data: ... here.
4976         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4977         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4978         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4980         ... here.
4981         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4983         ... here.
4984         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4985         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4986         ... here.
4987         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4989         ... here.
4990         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4992         ... here.
4993         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4995         ... here.
4996
4997 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4998
4999         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5000         PPC32 and PPC64 files.
5001         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5002         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5003
5004 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5005
5006         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5007         __makecontext_ret to ...
5008         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5009         ... here and call exit if uc_link is NULL.  New file.
5010         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5011         __makecontext_ret.S.
5012         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5013         __makecontext_ret to ...
5014         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5015         ... here and call exit if uc_link is NULL.  New file.
5016         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5017         __makecontext_ret.S.
5018
5019 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5020
5021         * elf/elf.h (R_390_IRELATIVE): New definition.
5022         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5023         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5024         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5025         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5026         (elf_machine_lazy_rel): Likewise.
5027         * sysdeps/s390/dl-irel.h: New file.
5028         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5029         * sysdeps/s390/s390-64/memset.S: New asm code.
5030         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5031         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5032         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5033         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5034         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5035         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5036         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5037         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5038         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5039         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5040         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5041         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5042         * sysdeps/s390/s390-32/memset.S: New asm code.
5043         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5044
5045 2012-07-17  Marek Polacek  <polacek@redhat.com>
5046
5047         [BZ #14349]
5048         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5049         * sysdeps/s390/s390-64/configure.in: Likewise.
5050         * sysdeps/sparc/configure.in: Likewise.
5051         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5052         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5053         * sysdeps/i386/configure.in: Likewise.
5054         * sysdeps/x86_64/configure.in: Likewise.
5055         * sysdeps/sh/configure.in: Likewise.
5056         * sysdeps/s390/s390-32/configure: Regenerated.
5057         * sysdeps/s390/s390-64/configure: Likewise.
5058         * sysdeps/x86_64/configure: Likewise.
5059         * sysdeps/sh/configure: Likewise.
5060         * sysdeps/powerpc/powerpc64/configure: Likewise.
5061         * sysdeps/powerpc/powerpc32/configure: Likewise.
5062         * sysdeps/sparc/configure: Likwise.
5063         * sysdeps/i386/configure: Likewise.
5064
5065         * elf/dl-open.c: Comment fixes.
5066
5067 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5068
5069         * Makefile [CXX] (check-data): Remove.
5070         [CXX] (c++-types.data): New vpath directive.
5071         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5072         vpath.  Do not allow for C++ type data being missing.
5073         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5074         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5075         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5076         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5077         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5078         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5079         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5081         ... here.
5082         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5084         ... here.
5085         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5087         ... here.
5088         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5090         ... here.
5091         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5093         ... here.
5094         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5096         ... here.
5097         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5098         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5099         ... here.
5100         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5101         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5102
5103         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5104         definitions to architecture-specific files.
5105         (TLS_IE): Likewise.
5106         (TLS_LD): Likewise.
5107         (TLS_GD): Likewise.
5108         * sysdeps/i386/tls-macros.h: New file.
5109         * sysdeps/powerpc/tls-macros.h: Likewise.
5110         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5111         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5112         * sysdeps/sh/tls-macros.h: Likewise.
5113         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5114         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5115         * sysdeps/x86_64/tls-macros.h: Likewise.
5116
5117 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5118
5119         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5120         zero value for regular exit case.
5121
5122         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5123         (__start_context): Preserve zero value for regular exit case.
5124
5125 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5126             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5127
5128         * manual/setjmp.texi (setcontext): Clarify normal process
5129         termination when uc_link is the null pointer.
5130         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5131         exit call.
5132
5133 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5134
5135         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5136         preprocessor.  Test for each exception mask separately.
5137
5138 2012-07-16  Andreas Jaeger  <aj@suse.de>
5139
5140         * po/ru.po: Update from translation team.
5141
5142 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5145         equal to 0.
5146         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5147         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5148         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5149         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5150         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5151
5152 2012-07-13  Andreas Jaeger  <aj@suse.de>
5153
5154         * po/fr.po: Update from translation team.
5155
5156 2012-07-12  Marek Polacek  <polacek@redhat.com>
5157
5158         [BZ #14173]
5159         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5160         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5161         loop condition.
5162
5163 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5164
5165         [BZ #13717]
5166         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5167         Change to 2.4.1 where previously 2.4.0.
5168         * sysdeps/unix/sysv/linux/configure: Regenerated.
5169         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5170         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5171         version.
5172         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5173         (__ASSUME_AT_CLKTCK): Remove.
5174         (__ASSUME_AT_PAGESIZE): Likewise.
5175         (__ASSUME_AT_XID): Likewise.
5176         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5177         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5178         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5179         unconditionally.
5180         (HAVE_AUX_PAGESIZE): Likewise.
5181         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5182         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5183         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5184
5185 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5186
5187         [BZ #14307]
5188         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5189         the temporary buffer used to invoke __gethostbyname2_r,
5190         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5191         host_data / struct gaih_addrtuple.
5192         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5193         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5194         header file nss/nsswitch.h.
5195         * nss/nsswitch.h (global scope): Add definition of implementation
5196         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5197         resolv/nss_dns/dns-host.c).
5198
5199 2012-07-11  Andreas Jaeger  <aj@suse.de>
5200
5201         * po/fr.po: Update from translation team.
5202
5203         * po/sv.po: Update from translation team
5204         * po/fr.po: Another update from translation team.
5205
5206 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5207
5208         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5209         for subnormals or multiply small sinh result by itself.
5210         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5212
5213 2012-07-11  David S. Miller  <davem@davemloft.net>
5214
5215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5216
5217 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5218
5219         [BZ #14347]
5220         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5221         (INTERNAL_MARK): Shift it here.
5222
5223 2012-07-10  Marek Polacek  <polacek@redhat.com>
5224
5225         [BZ #14151]
5226         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5227         libc_cv_asm_global_directive with .globl.
5228         * configure: Regenerated.
5229         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5230         with .globl.
5231         * sysdeps/i386/configure: Regenerated.
5232         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5233         with .globl.
5234         * sysdeps/x86_64/configure: Regenerated.
5235         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5236         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5237         * elf/tst-unique2mod2.c: Likewise.
5238         * elf/tst-unique2mod1.c: Likewise.
5239         * elf/tst-unique1mod2.c: Likewise.
5240         * elf/tst-unique1mod1.c: Likewise.
5241         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5242         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5243         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5244         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5245         * sysdeps/mach/sysdep.h: Likewise.
5246         * sysdeps/i386/sysdep.h: Likewise.
5247         * sysdeps/i386/i386-mcount.S: Likewise.
5248         * sysdeps/x86_64/_mcount.S: Likewise.
5249         * sysdeps/x86_64/sysdep.h: Likewise.
5250         * sysdeps/sh/_mcount.S: Likewise.
5251         * sysdeps/sh/sysdep.h: Likewise.
5252         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5253         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5254         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5255         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5256         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5257         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5258         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5259         * locale/localeinfo.h: Likewise.
5260         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5261         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5262
5263 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5264
5265         [BZ #14336]
5266         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5267         system".
5268         * manual/message.texi (The Uniforum approach): Likewise.
5269         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5270         (glibc iconv Implementation): Likewise.
5271
5272 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5273
5274         [BZ #14337]
5275         * math/s_clog.c (__clog): Avoid scaling a value down where that
5276         could result in underflow.
5277         * math/s_clog10.c (__clog10): Likewise.
5278         * math/s_clog10f.c (__clog10f): Likewise.
5279         * math/s_clog10l.c (__clog10l): Likewise.
5280         * math/s_clogf.c (__clogf): Likewise.
5281         * math/s_clogl.c (__clogl): Likewise.
5282         * math/libm-test.inc (clog_test): Add more tests.
5283         (clog10_test): Likewise.
5284         * sysdeps/i386/fpu/libm-test-ulps: Update.
5285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5286
5287 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5288
5289         [BZ #14283]
5290         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5291         by 7 not 8 to examine high bit of fractional part.
5292
5293         [BZ #14042]
5294         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5295         for call to __mcount_internal.
5296         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5297         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5298         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5299
5300 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5301
5302         [BZ #14154]
5303         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5304         approximation for values within 0x1p-13f of an odd multiple of
5305         pi/4.
5306         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5307         exception.  Add more tests.
5308         * sysdeps/i386/fpu/libm-test-ulps: Update.
5309
5310         [BZ #6778]
5311         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5312         inputs and return -1 for them.  Do not check for +Inf in case not
5313         reachable for +Inf.
5314         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5315         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5316         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5317         and return -1 for them.  Do not check for +Inf in case not
5318         reachable for +Inf.
5319         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5320         define.
5321         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5322         and return -1 for them.  Do not check for +Inf in case not
5323         reachable for +Inf.
5324         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5325         spurious underflow.
5326         * sysdeps/i386/fpu/libm-test-ulps: Update.
5327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5328
5329 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5330
5331         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5332
5333 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5334
5335         [BZ #14157]
5336         [BZ #14331]
5337         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5338         could result in spurious underflow.  Scale down values above
5339         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5340         * math/s_csqrtf.c (__csqrtf): Likewise.
5341         * math/s_csqrtl.c (__csqrtl): Likewise.
5342         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5343         spurious underflow.
5344         * sysdeps/i386/fpu/libm-test-ulps: Update.
5345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5346
5347 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5348
5349         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5350         xopen-msg.sed.
5351         * catgets/xopen-msg.awk: New file.
5352         * catgets/xopen-msg.sed: Removed.
5353
5354         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5355         po2text.sed.
5356         * intl/po2test.awk: New file.
5357         * intl/po2test.sed: Removed.
5358
5359 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5360
5361         [BZ #14328]
5362         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5363         or multiply small sinh result by itself.
5364         * math/s_ctanf.c (__ctanf): Likewise.
5365         * math/s_ctanh.c (__ctanh): Likewise.
5366         * math/s_ctanhf.c (__ctanhf): Likewise.
5367         * math/s_ctanhl.c (__ctanhl): Likewise.
5368         * math/s_ctanl.c (__ctanl): Likewise.
5369         * math/libm-test.inc (ctan_test_tonearest): New function.
5370         (ctan_test_towardzero): Likewise.
5371         (ctan_test_downward): Likewise.
5372         (ctan_test_upward): Likewise.
5373         (ctanh_test_tonearest): Likewise.
5374         (ctanh_test_towardzero): Likewise.
5375         (ctanh_test_downward): Likewise.
5376         (ctanh_test_upward): Likewise.
5377         (main): Call these new functions.
5378         * sysdeps/i386/fpu/libm-test-ulps: Update.
5379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5380
5381 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5382
5383         * .gitignore: Delete /ports entry.
5384
5385 2012-07-03  Andreas Jaeger  <aj@suse.de>
5386
5387         * po/bg.po: Update from translation team.
5388         * po/cs.po: Likewise.
5389         * po/de.po: Likewise.
5390         * po/hr.po: Likewise.
5391         * po/nl.pl: Likewise.
5392         * po/pl.po: Likewise.
5393         * po/vi.po: Likewise.
5394
5395 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5396
5397         * Makeconfig [!+link] (+link-before-libc): New variable.
5398         [!+link] (+link-after-libc): Likewise.
5399         [!+link] (+link-tests): Likewise.
5400         [!+link] (+link): Define in terms of $(+link-before-libc) and
5401         $(+link-after-libc).
5402         [!+link-static] (+link-static-before-libc): New variable.
5403         [!+link-static] (+link-static-after-libc): Likewise.
5404         [!+link-static] (+link-static-tests): Likewise.
5405         [!+link-static] (+link-static): Define in terms of
5406         $(+link-static-before-libc) and $(+link-static-after-libc).
5407         [build-shared] (link-libc-before-gnulib): New variable.
5408         [build-shared] (link-libc-tests): Likewise.
5409         [build-shared] (link-libc): Define in terms of
5410         $(link-libc-before-gnulib).
5411         [!build-shared] (link-libc-tests): New variable.
5412         (link-libc-static-tests): New variable.
5413         [!gnulib] (gnulib-arch): New variable.
5414         [!gnulib] (gnulib-tests): Likewise.
5415         [!gnulib] (static-gnulib-arch): Likewise.
5416         [!gnulib] (static-gnulib-tests): Likewise.
5417         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5418         Define with "=" instead of ":=".
5419         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5420         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5421         * Rules (binaries-all-notests): New variable.
5422         (binaries-all-tests): Likewise.
5423         (binaries-static-notests): Likewise.
5424         (binaries-static-tests): Likewise.
5425         (binaries-all): Define using $(binaries-all-notests) and
5426         $(binaries-all-tests).
5427         (binaries-static): Define using $(binaries-static-notests) and
5428         $(binaries-static-tests).
5429         (binaries-shared-tests): New variable.
5430         (binaries-shared-notests): Likewise.
5431         (binaries-shared): Remove variable.
5432         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5433         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5434         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5435         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5436         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5437         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5438         * elf/Makefile (sln-modules): New variable.
5439         (extra-objs): Add $(sln-modules:=.o).
5440         (ldconfig-modules): Add static-stubs.
5441         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5442         * elf/static-stubs.c: New file.
5443
5444         [BZ #14283]
5445         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5446         by 7 not 8 to examine high bit of fractional part.  Use volatile
5447         variables when splitting into final array of floats if
5448         __FLT_EVAL_METHOD__ != 0.
5449         * math/libm-test.inc (cos_test): Add another test.
5450         (sin_test): Likewise.
5451         * sysdeps/i386/fpu/libm-test-ulps: Update.
5452
5453         [BZ #14273]
5454         * math/libm-test.inc (cosh_test): Add more tests.
5455
5456         * version.h (RELEASE): Set to "development".
5457         (VERSION): Set to "2.16.90".
5458
5459 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5460
5461         * NEWS: Update copyright. Remove last-updated date.
5462         Mention math library bug fixes and timezone data changes.
5463         * README: Mention GNU/Hurd, x32, and HPPA support status.
5464
5465 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5466
5467         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5468
5469 2012-06-27  Andreas Jaeger  <aj@suse.de>
5470
5471         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5472
5473 2012-06-25  Andreas Jaeger  <aj@suse.de>
5474
5475         * sysdeps/s390/fpu/libm-test-ulps: Update.
5476
5477 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5478             Thomas Schwinge  <thomas@codesourcery.com>
5479
5480         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5481         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5482         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5483         fanotify_mark.
5484
5485 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5486
5487         * sysdeps/mach/start.c: Remove file.
5488         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5489         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5490         * sysdeps/sh/init-first.c: Likewise.
5491
5492         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5493         registers for frame unwinding purposes, add CFI directives.
5494         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5495         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5496         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5497         Likewise.
5498
5499         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5500         __fortify_fail returning.
5501         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5502
5503         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5504         sysdeps/sh/____longjmp_chk.S.
5505         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5506         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5507         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5508         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5509
5510         * sysdeps/sh/abort-instr.h: New file.
5511         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5512         process in case exit returns.
5513
5514         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5515         initialize the GOT register before use.
5516
5517         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5518         calculation of ARGC > 4.
5519
5520         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5521         meaningful names to some local labels.
5522
5523 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5524             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5525
5526         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5527         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5528         (__arch_compare_and_exchange_val_16_acq): Likewise.
5529         (__arch_compare_and_exchange_val_32_acq): Likewise.
5530         (atomic_exchange_and_add): Fix gUSA sequence.
5531         (atomic_add): Likewise.
5532         (atomic_add_negative): Likewise.
5533         (atomic_add_zero): Likewise.
5534         (atomic_bit_test_set): Likewise.
5535
5536 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5537
5538         [BZ #13579]
5539         * include/link.h (struct link_map): Add l_free_initfini.
5540         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5541         l_initfini.
5542         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5543         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5544         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5545         set.
5546
5547 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5548
5549         * configure.in: Use AC_LANG_SOURCE.
5550         * configure: Regenerate.
5551
5552 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5553
5554         * configure.in (libc_cv_localstatedir): New substituted variable.
5555         * configure: Regenerated.
5556         * config.make.in (localstatedir): New variable, substituted from
5557         libc_cv_localstatedir.
5558         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5559         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5560         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5561         * sysdeps/gnu/configure: Regenerated.
5562
5563 2012-06-21  Jeff Law  <law@redhat.com>
5564
5565         [BZ #14277]
5566         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5567         free.  Simplify list management for _LIBC case.
5568
5569 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5570
5571         [BZ #14273]
5572         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5573         Clear sign bit of 64-bit integer value before comparing against
5574         overflow value.
5575
5576         * sysdeps/mach/configure: Regenerated.
5577
5578 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5579
5580         [BZ #14278]
5581         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5582
5583 2012-06-21  Jeff Law  <law@redhat.com>
5584
5585         [BZ #13882]
5586         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5587         uint16_t for elements in the "seen" array to avoid char overflows.
5588         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5589         * elf/dl-open.c (dl_open_worker): Likewise.
5590
5591 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5592
5593         * scripts/list-sources.sh: Scan PORTS for translations.
5594         * po/libc.pot: Regenerated.
5595
5596 2012-06-21  Andreas Jaeger  <aj@suse.de>
5597
5598         [BZ #12194]
5599         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5600         warning.
5601         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5602         * bits/byteswap-16.h (__bswap_16): Likewise.
5603         * bits/byteswap.h (__bswap_constant_16): Likewise.
5604
5605 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5606
5607         [BZ #14117]
5608         * sysdeps/i386/fpu_control.h: Removed.
5609         * sysdeps/x86_64/fpu_control.h: Moved to ...
5610         * sysdeps/x86/fpu_control.h: Here.
5611
5612         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5613         (_FPU_SETCW): Likewise.
5614
5615 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         [BZ #14117]
5618         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5619         * sysdeps/x86/fpu/bits/mathinline.h: This.
5620         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5621
5622         [BZ #14050]
5623         [BZ #14117]
5624         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5625         functions if __x86_64__ is defined.
5626
5627 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5628
5629         * string/endian.h: Add !__ASSEMBLER__ condition for including
5630         conversion interfaces.
5631
5632 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5633
5634         [BZ #14241]
5635         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5636         of ABS(x) in calculating zero to negative powers other than odd
5637         integers.
5638         * math/libm-test.inc (pow_test): Add more tests.
5639
5640 2012-06-15  Andreas Jaeger  <aj@suse.de>
5641
5642         * manual/contrib.texi (Contributors): Update entry of Liubov
5643         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5644         Machado Filho.
5645
5646 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5647
5648         * string/string.h: Add __wur to GNU version of strerror_r.
5649
5650 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5651
5652         [BZ #14229]
5653         * string/Makefile (tests): Add tst-strtok_r.
5654         * string/tst-strtok_r.c: New file.
5655         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5656         RAX_LP/RDX_LP on SAVE_PTR.
5657
5658 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5659
5660         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5661
5662 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5663
5664         * libm_test.inc (csqrt_test): Allow more spurious underflow
5665         exceptions.
5666         (j0_test): Likewise.
5667         (j1_test): Likewise.
5668         (y0_test): Likewise.
5669         (y1_test): Likewise.
5670
5671 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5672
5673         * po/Makefile (libc.pot): Use UTF-8 charset.
5674
5675 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5676
5677         [BZ #14210]
5678         Suppress sign-conversion warning from FD_SET.
5679         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5680         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5681         not unsigned long int.
5682         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5683
5684 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5685
5686         [BZ #14050]
5687         [BZ #14117]
5688         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5689         __extern_always_inline instead of __extern_inline.
5690         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5691         (__signbit): Likewise.
5692         (__signbitl): Support C++ namespace.
5693         (lrintf): New inline function.
5694         (lrint): Likewise.
5695         (llrintf): Likewise.
5696         (llrint): Likewise.
5697         (fmaxf): Likewise.
5698         (fmax): Likewise.
5699         (fminf): Likewise.
5700         (fmin): Likewise.
5701         (rint): Likewise.
5702         (rintf): Likewise.
5703         (ceil): Likewise.
5704         (ceilf): Likewise.
5705         (floor): Likewise.
5706         (floorf): Likewise.
5707         (nearbyint): Likewise.
5708         (nearbyintf): Likewise.
5709
5710 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5711
5712         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5713         non-default versions.
5714
5715 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5716
5717         [BZ #14218]
5718         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5719
5720 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5721
5722         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5723         (FE_UPWARD, FE_DOWNWARD): Don't define.
5724         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5725         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5726
5727         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5728         reading it.
5729         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5730         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5731
5732 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5733
5734         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5735         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5736         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5737         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5738
5739 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5740
5741         [BZ #14117]
5742         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5743         * sysdeps/i386/fpu/Implies: New file.
5744         * sysdeps/x86_64/fpu/Implies: Likewise.
5745         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5746         * sysdeps/x86/fpu/bits/fenv.h: This.
5747
5748         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5749         __SSE_MATH__.
5750
5751 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5752
5753         [BZ #14134]
5754         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5755         character 0xffff that matches the last element of the
5756         conversion table.
5757
5758 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5759
5760         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5761         fmodl commit.
5762
5763 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5764
5765         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5766         values higher than 25.6283.
5767
5768 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5769
5770         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5771         subnormal exponent extraction and add some __builtin_expect.
5772         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5773         Fix for subnormal mantissa calculation.
5774
5775 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5776
5777         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5778         cpu2 is -1 and errno is not ENOSYS.
5779
5780 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         [BZ #14117]
5783         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5784         * sysdeps/x86/bits/string.h: This.
5785         * sysdeps/x86_64/bits/string.h: Removed.
5786
5787         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5788         if not compiling for x86-64, but compiling for >= i486.
5789
5790         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5791         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5792
5793         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5794         New macro from Linux kernel 3.4.0.
5795         (FP_XSTATE_MAGIC2): Likewise.
5796         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5797         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5798         (struct _fpx_sw_bytes): New struct.
5799         (struct _xsave_hdr): Likewise.
5800         (struct _ymmh_state): Likewise.
5801         (struct _xstate): Likewise.
5802
5803         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5804         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5805         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5806         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5807         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5808         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5809
5810         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5811         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5812         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5813         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5814         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5815         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5816
5817 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5818
5819         [BZ #13743]
5820         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5821         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5822         (sysdep_headers): Include sys/platform/ppc.h.
5823         * sysdeps/powerpc/test-gettimebase.c: Test for
5824         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5825         * manual/Makefile (appendices): Include platform.texi.
5826         * manual/contrib.texi (Contributors): Update @node pointers.
5827         * manual/maint.texi (Maintenance): Likewise.
5828         (Platform): New node.
5829         * manual/platform.texi: New file.  Document the new features.
5830
5831 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5832             Jakub Jelinek  <jakub@redhat.com>
5833
5834         [BZ #14188]
5835         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5836         where __builtin_expect is unavailable.
5837
5838 2012-06-03  David S. Miller  <davem@davemloft.net>
5839
5840         * stdlib/longlong.h: Updated from GCC.
5841
5842 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5843
5844         [BZ #14042]
5845         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5846         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5847         __mcount_internal.
5848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5849         (GLIBC_2.16): Likewise.
5850
5851 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5852
5853         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5854
5855 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5856
5857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5858         (default-abi): New variable.
5859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5860         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5861         variable.
5862         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5863         Likewise.
5864         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5865         Likewise.
5866         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5867         Likewise.
5868
5869         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5870         definition.  Document in comment.
5871
5872 2012-06-01  David S. Miller  <davem@davemloft.net>
5873
5874         * stdlib/longlong.h: Updated from GCC.
5875
5876 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5877
5878         [BZ #14117]
5879         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5880         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5881         sys/debugreg.h sys/io.h here.
5882         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5883         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5884         sys/io.h.
5885         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5886         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5887         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5888         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5889         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5890         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5891
5892         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5893         Define only if __x86_64__ is defined.
5894
5895 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5896
5897         [BZ #14048]
5898         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5899         Use int64_t for variable i.
5900         * math/libm-test.inc (fmod_test): Add more tests.
5901
5902         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5903         z computation is not scheduled after fetestexcept.
5904         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5905         Use math_force_eval instead of asm to ensure calculation scheduled
5906         before exception test.
5907         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5908         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5909
5910 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5911
5912         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5913         computation is not scheduled after fetestexcept.
5914
5915 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5916
5917         [BZ #14117]
5918         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5919         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5920
5921 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5922
5923         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5924         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5925
5926 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5927
5928         [BZ #14117]
5929         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5930         <bits/wordsize.h>.
5931         (__WCHAR_MIN): Support __WORDSIZE == 64.
5932         (__WCHAR_MAX): Likewise.
5933
5934         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5935         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5936
5937         [BZ #14183]
5938         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5939         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5940
5941         [BZ #14117]
5942         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5943         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5944
5945         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5946         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5947
5948         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5949         Defined to 1 if __x86_64__ isn't defined.
5950         (_STAT_VER_LINUX_OLD): New.
5951         (st_atime): Remove duplicate.
5952         (st_mtime): Likewise.
5953         (st_ctime): Likewise.
5954
5955 2012-05-31  David S. Miller  <davem@davemloft.net>
5956
5957         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5958         entries.
5959
5960 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5961
5962         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5963         gen-libm-test.pl.
5964
5965         [BZ #14132]
5966         * elf/dl-reloc.c: Include <_itoa.h>.
5967         (_dl_reloc_bad_type): Remove use of INTUSE.
5968         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5969         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5970         * stdio-common/psiginfo.c (psiginfo): Likewise.
5971         * stdio-common/psignal.c (psignal): Likewise.
5972         * string/strsignal.c (strsignal): Likewise.
5973         * include/signal.h (_sys_siglist): Declare hidden proto.
5974         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5975         INTVARDEF with libc_hidden_data_def.
5976         * stdio-common/itoa-udigits.c: Likewise.
5977         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5978         (_itoa_lower_digits_internal): Remove declaration.
5979         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5980         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5981         (_sys_sigabbrev_internal): Remove aliases.
5982         (_sys_siglist): Define hidden alias.
5983
5984 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5985
5986         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5987         bits/sysctl.h.
5988
5989 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5990
5991         [BZ #14117]
5992         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5993         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5994
5995         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5996         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5997         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5998         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5999         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6000         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6001
6002         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6003         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6004         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6005
6006         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6007         with __addr.
6008         (insw): Likewise.
6009         (insl): Likewise.
6010         (outsb): Likewise.
6011         (outsw): Likewise.
6012         (outsl): Likewise.
6013
6014         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6015         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6016         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6017
6018         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6019         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6020         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6021         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6022         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6023         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6024
6025         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6026         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6027
6028         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6029         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6030
6031         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6032         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6033         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6034
6035         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6036         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6037         to ...
6038         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6039
6040         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6041         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6042         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6043
6044         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6045         for x86-64.
6046         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6047
6048 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6049
6050         * math/math.h (M_El): Use two more decimal places.
6051         (M_LOG2El): Likewise.
6052         (M_LOG10El): Likewise.
6053         (M_LN2l): Likewise.
6054         (M_LN10l): Likewise.
6055         (M_PIl): Likewise.
6056         (M_PI_2l): Likewise.
6057         (M_PI_4l): Likewise.
6058         (M_1_PIl): Likewise.
6059         (M_2_PIl): Likewise.
6060         (M_2_SQRTPIl): Likewise.
6061         (M_SQRT2l): Likewise.
6062         (M_SQRT1_2l): Likewise.
6063
6064 2012-05-31  David S. Miller  <davem@davemloft.net>
6065
6066         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6067         values between float registers.
6068         * sysdeps/sparc/sparc64/memset.S: Likewise.
6069         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6070
6071 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6072
6073         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6074         -D_FORTIFY_SOURCE=1.
6075         (CPPFLAGS-tst-longjmp_chk.c): Define.
6076         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6077         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6078         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6079         CFLAGS-tst-wchar-h.c.
6080
6081 2012-05-31  Marek Polacek  <polacek@redhat.com>
6082
6083         [BZ #14132]
6084         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6085         __endmntent_internal): Remove declaration.
6086         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6087         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6088         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6089
6090 2012-05-30  David S. Miller  <davem@davemloft.net>
6091
6092         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6093         (___Q_simulate_exceptions): Use real FP ops rather than writing
6094         into the %fsr.
6095         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6096         Likewise.
6097
6098 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6099
6100         [BZ #14117]
6101         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6102         * sysdeps/x86/bits/xtitypes.h: This.
6103
6104         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6105         * sysdeps/x86/bits/wordsize.h: This.
6106
6107         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6108         * sysdeps/x86/bits/huge_vall.h: This.
6109
6110         * sysdeps/i386/bits/select.h: Removed.
6111         * sysdeps/x86_64/bits/select.h: Renamed to ...
6112         * sysdeps/x86/bits/select.h: This.
6113
6114         * sysdeps/i386/bits/setjmp.h: Removed.
6115         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6116         * sysdeps/x86/bits/setjmp.h: This.
6117
6118         * sysdeps/i386/bits/mathdef.h: Removed.
6119         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6120         * sysdeps/x86/bits/mathdef.h: This.
6121
6122 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6123
6124         [BZ #14132]
6125         * include/sys/socket.h (__connect_internal)
6126         (__libc_sa_len_internal): Remove declaration.
6127         (__connect, __libc_sa_len): Declare hidden_proto.
6128         (SA_LEN): Remove use of INTUSE.
6129         * socket/connect.c: Add libc_hidden_def.
6130         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6131         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6132         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6133         alias.
6134         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6135         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6136         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6137         of adding _internal alias.
6138
6139 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6140
6141         [BZ #14117]
6142         * sysdeps/i386/bits/link.h: Removed.
6143         * sysdeps/i386/bits/linkmap.h: Likewise.
6144         * sysdeps/x86_64/bits/link.h: Renamed to ...
6145         * sysdeps/x86/bits/link.h: This.
6146         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6147         * sysdeps/x86/bits/linkmap.h: This.
6148
6149         * sysdeps/i386/bits/endian.h: Removed.
6150         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6151         * sysdeps/x86/bits/endian.h: This.
6152
6153         * sysdeps/i386/bits/byteswap.h: Removed.
6154         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6155         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6156         * sysdeps/x86/bits/byteswap.h: This.
6157         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6158         * sysdeps/x86/bits/byteswap-16.h: This.
6159         * sysdeps/i386/Implies: Add x86.
6160         * sysdeps/x86_64/Implies: Likewise.
6161
6162 2012-05-30  David S. Miller  <davem@davemloft.net>
6163
6164         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6165         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6166         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6167         (FP_TRAPPING_EXCEPTIONS): Define.
6168         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6169         (FP_TRAPPING_EXCEPTIONS): Define.
6170         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6171         subnormals only when inexact has been signalled or underflow
6172         exceptions are enabled.
6173         (_FP_PACK_CANONICAL): Likewise.
6174
6175 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6176
6177         [BZ #14183]
6178         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6179         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6180
6181 2012-05-30  Richard Henderson  <rth@twiddle.net>
6182
6183         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6184         with #ifndef NOT_IN_libc.
6185
6186         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6187         marked to avoid plt entry.
6188
6189 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6190
6191         [BZ #14112]
6192         * Makeconfig (default-abi): New macro.
6193         (abi-includes): Likewise.
6194         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6195         $(abi-$(default-abi)-lib-soname) for soname if defined.
6196         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6197         abi-variants.
6198         * Makefile (installed-stubs): Likewise.
6199         * include/stubs-biarch.h: Removed.
6200         * scripts/lib-names.awk: Only handle one library at a time.
6201         * scripts/soversions.awk: Remove WORDSIZE support.
6202         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6203         entries.
6204         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6205         Removed.
6206         (syscall-list-default-condition): Likewise.
6207         (syscall-list-default-condition): Likewise.
6208         (syscall-list-includes): Likewise.
6209         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6210         syscall-list-* with abi-*.  Handle undefined abi-variants.
6211         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6212         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6213         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6214         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6215         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6216         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6217         Removed.
6218         (syscall-list-32-options): Likewise.
6219         (syscall-list-32-condition): Likewise.
6220         (syscall-list-64-options): Likewise.
6221         (syscall-list-64-condition): Likewise.
6222         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6223         macro.
6224         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6225         Renamed to ...
6226         (abi-*): This.
6227         (abi-64-ld-soname): New macro.
6228         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6229         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6230         Renamed to ...
6231         (abi-*): This.
6232         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6233         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6234
6235 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6236
6237         * sysdeps/unix/sysv/linux/kernel-features.h
6238         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6239         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6240         include <kernel-features.h>.
6241         [!__NR_ftruncate64]: Remove conditional code.
6242         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6243         [__NR_ftruncate64]: Make code unconditional.
6244         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6245         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6246         include <kernel-features.h>.
6247         [!__NR_ftruncate64]: Remove conditional code.
6248         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6249         [__NR_ftruncate64]: Make code unconditional.
6250         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6252         include <kernel-features.h>.
6253         [!__NR_ftruncate64]: Remove conditional code.
6254         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6255         [__NR_ftruncate64]: Make code unconditional.
6256         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6258         include <kernel-features.h>.
6259         [!__NR_ftruncate64]: Remove conditional code.
6260         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6261         [__NR_ftruncate64]: Make code unconditional.
6262         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6263
6264         * configure.in (libc_cv_fpie): Weaken to a compile test using
6265         LIBC_TRY_CC_OPTION.
6266         * configure: Regenerated.
6267
6268 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6269
6270         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6272         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6274         Refreshed.
6275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6277         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6279         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6281         Refreshed.
6282
6283 2012-05-27  David S. Miller  <davem@davemloft.net>
6284
6285         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6286         (___Q_zero): New.
6287         (__Q_simulate_exceptions): Return void.  Change to simulate
6288         exceptions by writing into the %fsr.
6289         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6290         (__Qp_handle_exceptions): Likewise.
6291         (numbers): Delete.
6292         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6293         __Qp_handle_exceptions.
6294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6295         __Qp_handle_exceptions.
6296         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6297         as unused and give dummy FP_RND_NEAREST initializer.
6298         (FP_INHIBIT_RESULTS): Define.
6299         (___Q_simulate_exceptions): Update declaration.
6300         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6301         formatting.
6302         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6303         as unused and give dummy FP_RND_NEAREST initializer.
6304         (__Qp_handle_exceptions): Update declaration.
6305         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6306         formatting.
6307
6308 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6309
6310         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6311         the temporary FPU control word.
6312         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6313         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6314         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6315         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6316         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6317         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6318         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6319         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6320         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6321         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6322         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6323
6324 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6325
6326         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6327         fields.
6328
6329 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6330
6331         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6332         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6333         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6334         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6335         Likewise.
6336         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6337         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6338         Likewise.
6339
6340 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6341
6342         * po/h.po: Update from translation team.
6343
6344 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6345
6346         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6347
6348         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6349         handling of denormals.
6350         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6351         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6352         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6353         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6354         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6355         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6356         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6357         Likewise.
6358
6359 2012-05-26  Marek Polacek  <polacek@redhat.com>
6360
6361         [BZ #14152]
6362         * math/libm-test.inc (fma_test): Don't always expect underflow
6363         exception.
6364
6365 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6366
6367         [BZ #12416]
6368         * elf/tst-execstack.c: Include stackinfo.h.
6369         (do_test): Adjust test case to ensure that pthread_getattr_np
6370         behaviour remains the same after marking stack executable.
6371
6372 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6373
6374         * sysdeps/unix/sysv/linux/kernel-features.h
6375         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6376         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6377         kernel-features.h.
6378         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6379         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6380         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6381         kernel-features.h.
6382         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6383         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6384
6385 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6386
6387         * configure.in: Define the default includes to being none.
6388         * configure: Regenerated.
6389
6390 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6391
6392         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6393         * sysdeps/x86_64/setjmp.S: Likewise.
6394         * sysdeps/i386/bsd-setjmp.S: Likewise.
6395         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6396         * sysdeps/i386/setjmp.S: Likewise.
6397         * sysdeps/i386/__longjmp.S: Likewise.
6398         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6399         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6400
6401         * include/stap-probe.h: New file.
6402         * configure.in: Handle --enable-systemtap.
6403         * configure: Regenerated.
6404         * config.h.in (USE_STAP_PROBE): New #undef.
6405         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6406         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6407         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6408
6409 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6410
6411         [BZ #13717]
6412         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6413         to 2.4.0 where earlier.
6414         * sysdeps/unix/sysv/linux/configure: Regenerated.
6415         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6416         <kernel-features.h>.
6417         [__ASSUME_32BITUIDS]: Make code unconditional.
6418         [!__ASSUME_32BITUIDS]: Remove conditional code.
6419         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6420         <kernel-features.h>.
6421         [__ASSUME_32BITUIDS]: Make code unconditional.
6422         [!__ASSUME_32BITUIDS]: Remove conditional code.
6423         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6424         [__ASSUME_32BITUIDS]: Make code unconditional.
6425         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6426         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.c: Do not include
6439         <kernel-features.h>.
6440         [__ASSUME_32BITUIDS]: Make code unconditional.
6441         [!__ASSUME_32BITUIDS]: Remove conditional code.
6442         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6443         <kernel-features.h>.
6444         [__ASSUME_32BITUIDS]: Make code unconditional.
6445         [!__ASSUME_32BITUIDS]: Remove conditional code.
6446         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6447         <kernel-features.h>.
6448         [__ASSUME_32BITUIDS]: Make code unconditional.
6449         [!__ASSUME_32BITUIDS]: Remove conditional code.
6450         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6451         <kernel-features.h>.
6452         [__ASSUME_32BITUIDS]: Make code unconditional.
6453         [!__ASSUME_32BITUIDS]: Remove conditional code.
6454         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6455         <kernel-features.h>.
6456         [__ASSUME_32BITUIDS]: Make code unconditional.
6457         [!__ASSUME_32BITUIDS]: Remove conditional code.
6458         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6459         <kernel-features.h>.
6460         [__ASSUME_32BITUIDS]: Make code unconditional.
6461         [!__ASSUME_32BITUIDS]: Remove conditional code.
6462         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6463         <kernel-features.h>.
6464         [__ASSUME_32BITUIDS]: Make code unconditional.
6465         [!__ASSUME_32BITUIDS]: Remove conditional code.
6466         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6467         <kernel-features.h>.
6468         [__NR_setresgid] (__setresgid): Do not declare.
6469         [__ASSUME_32BITUIDS]: Make code unconditional.
6470         [!__ASSUME_32BITUIDS]: Remove conditional code.
6471         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6472         <kernel-features.h>.
6473         [__NR_setresuid] (__setresuid): Do not declare.
6474         [__ASSUME_32BITUIDS]: Make code unconditional.
6475         [!__ASSUME_32BITUIDS]: Remove conditional code.
6476         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/i386/setgroups.c: Do not include
6489         <kernel-features.h>.
6490         [__ASSUME_32BITUIDS]: Make code unconditional.
6491         [!__ASSUME_32BITUIDS]: Remove conditional code.
6492         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6493         <kernel-features.h>.
6494         [__ASSUME_32BITUIDS]: Make code unconditional.
6495         [!__ASSUME_32BITUIDS]: Remove conditional code.
6496         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6497         <kernel-features.h>.
6498         [__ASSUME_32BITUIDS]: Make code unconditional.
6499         [!__ASSUME_32BITUIDS]: Remove conditional code.
6500         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6501         <kernel-features.h>.
6502         [__ASSUME_32BITUIDS]: Make code unconditional.
6503         [!__ASSUME_32BITUIDS]: Remove conditional code.
6504         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6505         <kernel-features.h>.
6506         [__ASSUME_32BITUIDS]: Make code unconditional.
6507         [!__ASSUME_32BITUIDS]: Remove conditional code.
6508         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6509         <kernel-features.h>.
6510         [__ASSUME_32BITUIDS]: Make code unconditional.
6511         [!__ASSUME_32BITUIDS]: Remove conditional code.
6512         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6513         <kernel-features.h>.
6514         [__ASSUME_32BITUIDS]: Make code unconditional.
6515         [!__ASSUME_32BITUIDS]: Remove conditional code.
6516         * sysdeps/unix/sysv/linux/kernel-features.h
6517         (__ASSUME_SETRESUID_SYSCALL): Remove.
6518         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6519         (__ASSUME_32BITUIDS): Likewise.
6520         (__ASSUME_LDT_WORKS): Likewise.
6521         (__ASSUME_O_DIRECTORY): Likewise.
6522         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6523         architecture but not kernel version.
6524         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6525         (__ASSUME_MMAP2_SYSCALL): Likewise.
6526         (__ASSUME_STAT64_SYSCALL): Likewise.
6527         (__ASSUME_IPC64): Likewise.
6528         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6529         <kernel-features.h>.
6530         [__ASSUME_32BITUIDS]: Make code unconditional.
6531         [!__ASSUME_32BITUIDS]: Remove conditional code.
6532         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6533         <kernel-features.h>.
6534         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6535         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6536         132096]: Remove conditional code.
6537         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6538         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6539         <kernel-features.h>.
6540         [__ASSUME_32BITUIDS]: Make code unconditional.
6541         [!__ASSUME_32BITUIDS]: Remove conditional code.
6542         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6543         <kernel-features.h>.
6544         [__ASSUME_32BITUIDS]: Make code unconditional.
6545         [!__ASSUME_32BITUIDS]: Remove conditional code.
6546         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6547         <kernel-features.h>.
6548         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6549         unconditional.
6550         (__setresgid): Do not declare.
6551         [__ASSUME_32BITUIDS]: Make code unconditional.
6552         [!__ASSUME_32BITUIDS]: Remove conditional code.
6553         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6554         <kernel-features.h>.
6555         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6556         unconditional.
6557         (__setresuid): Do not declare.
6558         [__ASSUME_32BITUIDS]: Make code unconditional.
6559         [!__ASSUME_32BITUIDS]: Remove conditional code.
6560         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6561         <kernel-features.h>.
6562         [__ASSUME_32BITUIDS]: Make code unconditional.
6563         [!__ASSUME_32BITUIDS]: Remove conditional code.
6564         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6565         <kernel-features.h>.
6566         [__ASSUME_32BITUIDS]: Make code unconditional.
6567         [!__ASSUME_32BITUIDS]: Remove conditional code.
6568
6569 2012-05-25  Richard Henderson  <rth@twiddle.net>
6570
6571         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6572         dl_hwcap to ifunc resolver.
6573         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6574         elf_ifunc_invoke.
6575         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6576         dl_hwcap to ifunc resolver.
6577         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6578
6579 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6580
6581         [BZ #14153]
6582         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6583         for |x| <= 2**-26, not 2**-57.
6584         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6585         exception.
6586
6587 2012-05-24  Jeff Law  <law@redhat.com>
6588
6589         * stdio-common/Makefile (tests): Add bug25.
6590         * stdio-common/bug25.c: New test.
6591
6592 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6593
6594         [BZ #13576]
6595         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6596         multiple of MALLOC_ALIGNMENT in size.
6597         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6598
6599 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6600
6601         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6602         Require >= 256.
6603         (FILENAME_MAX): Use macro-int-constant.
6604         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6605         (_IOFBF): Use macro-int-constant.
6606         (_IOLBF): Likewise.
6607         (_IONBF): Likewise.
6608         (SEEK_CUR): Likewise.
6609         (SEEK_END): Likewise.
6610         (SEEK_SET): Likewise.
6611         (TMP_MAX): Likewise.
6612         (EOF): Use macro-int-constant.  Require < 0.
6613         (NULL): Use macro-constant.  Require == 0.
6614         (stdin): Require type to be FILE *.
6615         (stdout): Likewise.
6616         (stderr): Likewise.
6617         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6618         macro-int-constant.
6619         (EXIT_SUCCESS): Likewise.
6620         (NULL): Use macro-constant.  Require == 0.
6621         (RAND_MAX): Use macro-int-constant.
6622         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6623         [C99-based standards] (strtof): Require function.
6624         [C99-based standards] (strtold): Likewise.
6625         [C99-based standards] (strtoll): Likewise.
6626         [C99-based standards] (strtoull): Likewise.
6627         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6628         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6629         [ISO || ISO99 || ISO11] (math.h): Likewise.
6630         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6631         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6632         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6633
6634 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6635
6636         [BZ #14132]
6637         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6638         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6639         * intl/dgettext.c (DCGETTEXT): Likewise.
6640         * intl/gettext.c (DCGETTEXT): Likewise.
6641         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6642         * posix/regex_internal.h (gettext): Likewise.
6643         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6644         Remove declaration.
6645         * include/argz.h (__argz_count_internal)
6646         (__argz_stringify_internal): Remove declaration.
6647         (__argz_count, __argz_stringify): Declare hidden proto.
6648         * intl/dcgettext.c: Remove use of INTDEF.
6649         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6650         * string/argz-stringify.c: Likewise.
6651         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6652         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6653         Declare hidden proto.
6654         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6655         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6656         Declare hidden proto.
6657         * include/stdio.h (__asprintf_internal): Don't declare.
6658         (__asprintf): Don't define as macro.  Declare hidden proto.
6659         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6660         (__fsetlocking): Declare hidden proto.
6661         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6662         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6663         hidden proto.
6664         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6665         (_IO_setlinebuf): Remove use of INTUSE.
6666         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6667         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6668         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6669         Remove declaration.
6670         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6671         (_IO_do_flush): Remove use of INTUSE.
6672         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6673         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6674         (_IO_adjust_column, _IO_least_wmarker)
6675         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6676         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6677         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6678         (_IO_default_doallocate, _IO_wdefault_doallocate)
6679         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6680         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6681         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6682         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6683         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6684         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6685         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6686         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6687         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6688         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6689         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6690         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6691         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6692         proto.
6693         (_IO_flush_all_internal, _IO_adjust_column_internal)
6694         (_IO_default_uflow_internal, _IO_default_finish_internal)
6695         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6696         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6697         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6698         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6699         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6700         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6701         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6702         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6703         (_IO_file_close_internal, _IO_file_close_it_internal)
6704         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6705         (_IO_file_init_internal, _IO_file_attach_internal)
6706         (_IO_file_fopen_internal, _IO_file_read_internal)
6707         (_IO_file_sync_internal, _IO_file_seek_internal)
6708         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6709         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6710         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6711         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6712         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6713         (_IO_list_all_internal, _IO_link_in_internal)
6714         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6715         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6716         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6717         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6718         (_IO_do_write_internal, _IO_padn_internal)
6719         (_IO_getline_info_internal, _IO_getline_internal)
6720         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6721         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6722         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6723         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6724         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6725         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6726         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6727         with libc_hidden_ver, remove use of INTUSE.
6728         * libio/genops.c: Likewise.
6729         * libio/freopen.c: Likewise.
6730         * libio/freopen64.c: Likewise.
6731         * libio/iofclose.c: Likewise.
6732         * libio/iofdopen.c: Likewise.
6733         * libio/iofflush.c: Likewise.
6734         * libio/iofflush_u.c: Likewise.
6735         * libio/iofgets.c: Likewise.
6736         * libio/iofgets_u.c: Likewise.
6737         * libio/iofopen.c: Likewise.
6738         * libio/iofopncook.c: Likewise.
6739         * libio/iofread.c: Likewise.
6740         * libio/iofread_u.c: Likewise.
6741         * libio/ioftell.c: Likewise.
6742         * libio/iofwrite.c: Likewise.
6743         * libio/iogetline.c: Likewise.
6744         * libio/iogets.c: Likewise.
6745         * libio/iogetwline.c: Likewise.
6746         * libio/iopadn.c: Likewise.
6747         * libio/iopopen.c: Likewise.
6748         * libio/ioseekoff.c: Likewise.
6749         * libio/ioseekpos.c: Likewise.
6750         * libio/iosetbuffer.c: Likewise.
6751         * libio/iosetvbuf.c: Likewise.
6752         * libio/ioungetc.c: Likewise.
6753         * libio/ioungetwc.c: Likewise.
6754         * libio/iovdprintf.c: Likewise.
6755         * libio/iovsprintf.c: Likewise.
6756         * libio/iovsscanf.c: Likewise.
6757         * libio/memstream.c: Likewise.
6758         * libio/obprintf.c: Likewise.
6759         * libio/oldfileops.c: Likewise.
6760         * libio/oldiofclose.c: Likewise.
6761         * libio/oldiofdopen.c: Likewise.
6762         * libio/oldiofopen.c: Likewise.
6763         * libio/oldiopopen.c: Likewise.
6764         * libio/oldstdfiles.c: Likewise.
6765         * libio/putc.c: Likewise.
6766         * libio/setbuf.c: Likewise.
6767         * libio/setlinebuf.c: Likewise.
6768         * libio/stdfiles.c: Likewise.
6769         * libio/strops.c: Likewise.
6770         * libio/vasprintf.c: Likewise.
6771         * libio/vscanf.c: Likewise.
6772         * libio/vsnprintf.c: Likewise.
6773         * libio/vswprintf.c: Likewise.
6774         * libio/wfiledoalloc.c: Likewise.
6775         * libio/wfileops.c: Likewise.
6776         * libio/wgenops.c: Likewise.
6777         * libio/wmemstream.c: Likewise.
6778         * libio/wstrops.c: Likewise.
6779         * libio/__fpurge.c: Likewise.
6780         * libio/__fsetlocking.c: Likewise.
6781         * assert/assert.c: Likewise.
6782         * debug/fgets_chk.c: Likewise.
6783         * debug/fgets_u_chk.c: Likewise.
6784         * debug/fread_chk.c: Likewise.
6785         * debug/fread_u_chk.c: Likewise.
6786         * debug/gets_chk.c: Likewise.
6787         * debug/obprintf_chk.c: Likewise.
6788         * debug/vasprintf_chk.c: Likewise.
6789         * debug/vdprintf_chk.c: Likewise.
6790         * debug/vsnprintf_chk.c: Likewise.
6791         * debug/vsprintf_chk.c: Likewise.
6792         * malloc/mtrace.c: Likewise.
6793         * misc/error.c: Likewise.
6794         * misc/syslog.c: Likewise.
6795         * stdio-common/asprintf.c: Likewise.
6796         * stdio-common/fxprintf.c: Likewise.
6797         * stdio-common/getw.c: Likewise.
6798         * stdio-common/isoc99_fscanf.c: Likewise.
6799         * stdio-common/isoc99_scanf.c: Likewise.
6800         * stdio-common/isoc99_vfscanf.c: Likewise.
6801         * stdio-common/isoc99_vscanf.c: Likewise.
6802         * stdio-common/isoc99_vsscanf.c: Likewise.
6803         * stdio-common/printf-prs.c: Likewise.
6804         * stdio-common/printf_fp.c: Likewise.
6805         * stdio-common/printf_fphex.c: Likewise.
6806         * stdio-common/printf_size.c: Likewise.
6807         * stdio-common/putw.c: Likewise.
6808         * stdio-common/scanf.c: Likewise.
6809         * stdio-common/sprintf.c: Likewise.
6810         * stdio-common/tmpfile.c: Likewise.
6811         * stdio-common/vfprintf.c: Likewise.
6812         * stdio-common/vfscanf.c: Likewise.
6813         * stdlib/strfmon_l.c: Likewise.
6814         * sunrpc/openchild.c: Likewise.
6815         * sunrpc/xdr_stdio.c: Likewise.
6816         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6817         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6818
6819 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6820
6821         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6822
6823         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6824         in the third column, to generate for the shared library an IFUNC
6825         that uses _dl_vdso_vsym.
6826         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6827         * Makeconfig (object-suffixes-noshared): New variable.
6828
6829         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6830         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6831         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6832         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6833
6834         [BZ #14132]
6835         * include/sys/time.h (__gettimeofday): Remove macro.
6836         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6837         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6838         Remove INTDEF.
6839         (__gettimeofday): Add libc_hidden_def.
6840         (gettimeofday): Add libc_hidden_weak.
6841         * sysdeps/mach/gettimeofday.c: Likewise.
6842         * sysdeps/posix/gettimeofday.c: Likewise.
6843         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6844         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6845         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6846         (__gettimeofday_internal): Remove strong_alias.
6847         (__gettimeofday): Add libc_hidden_def.
6848         (gettimeofday): Add libc_hidden_weak.
6849         * sysdeps/unix/syscalls.list (gettimeofday):
6850         Remove __gettimeofday_internal alias.
6851
6852 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6853             H.J. Lu  <hongjiu.lu@intel.com>
6854
6855         [BZ #12495]
6856         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6857         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6858         (largebin_index_32_big): New.
6859         (largebin_index): Use it for 16-byte alignment.
6860         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6861         correction with front_misalign.
6862
6863 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6867         Likewise.
6868         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6869         Likewise.
6870         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6871         Likewise.
6872         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6873         Likewise.
6874         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6875         Likewise.
6876         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6877         Likewise.
6878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6879         Likewise.
6880         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6881         Likewise.
6882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6883         Likewise.
6884         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6885         Likewise.
6886         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6887         Likewise.
6888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6889         Likewise.
6890
6891         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6892         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6893
6894 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6895
6896         [BZ #10846]
6897         [BZ #14036]
6898         * math/libm-test.inc (exp_test): Add test from bug 14036.
6899         (pow_test): Add test from bug 10846.
6900
6901         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6902         and other flags.
6903         (special_function): Do not include flags in test name.
6904         (parse_args): Likewise.
6905         * sysdeps/i386/fpu/libm-test-ulps: Update.
6906         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6907         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6908         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6910
6911         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6912         exceptions.
6913         * math/libm-test.inc ("Philosophy"): Update comment about
6914         exception testing.
6915         (UNDERFLOW_EXCEPTION): New macro.
6916         (UNDERFLOW_EXCEPTION_OK): Likewise.
6917         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6918         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6919         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6920         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6921         (INVALID_EXCEPTION_OK): Update value.
6922         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6923         (OVERFLOW_EXCEPTION_OK): Likewise.
6924         (IGNORE_ZERO_INF_SIGN): Likewise.
6925         (test_exceptions): Handle underflow exceptions.
6926         (acos_test): Update for underflow exception expectations.
6927         (cexp_test): Likewise.
6928         (clog_test): Likewise.
6929         (clog10_test): Likewise.
6930         (csqrt_test): Likewise.
6931         (ctan_test): Likewise.
6932         (ctanh_test): Likewise.
6933         (exp_test): Likewise.
6934         (exp10_test): Likewise.
6935         (exp2_test): Likewise.
6936         (expm1_test): Likewise.
6937         (fma_test): Likewise.
6938         (j0_test): Likewise.
6939         (jn_test): Likewise.
6940         (nexttoward_test): Likewise.
6941         (pow_test): Likewise.
6942         (scalbn_test): Likewise.
6943         (scalbln_test): Likewise.
6944         (tan_test): Likewise.
6945         (y1_test): Likewise.
6946         * sysdeps/i386/fpu/libm-test-ulps: Update.
6947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6948
6949 2012-05-23  David S. Miller  <davem@davemloft.net>
6950
6951         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6952         (__libc_sigaction): Remove unused local variables.
6953
6954 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6957
6958 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6959
6960         mktime: avoid signed integer overflow
6961         * time/mktime.c (__mktime_internal): Do not mishandle the case
6962         where diff == INT_MIN.
6963
6964         mktime: simplify computation of average
6965         * time/mktime.c (ranged_convert): Use new time_t_avg function
6966         instead of rolling our own (probably-slower) code.
6967
6968         mktime: do not assume signed right shift propagates sign bit
6969         * time/mktime.c (isdst_differ): New static function.
6970         (__mktime_internal): No need to normalize tm_isdst now.
6971         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6972         tm_isdst values.
6973
6974         mktime: merge another wrapv change from gnulib
6975         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6976         from some compilers.
6977
6978         mktime: remove incorrect attempt at unusual arithmetics
6979         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6980         The code didn't really work on such machines anyway.
6981         (TYPE_MINIMUM): Assume two's complement.
6982         (twos_complement_arithmetic): Verify that long_int and time_t
6983         are two's complement (or unsigned, in the latter case).
6984
6985         mktime: check signed shifts on long_int and time_t, too
6986         * time/mktime.c (SHR): Check that shifts work as desired
6987         on the types long_int and time_t too, as SHR is used on
6988         such types.
6989
6990         mktime: do not assume 'long' is wide enough
6991         * time/mktime.c (verify): Move decl up.
6992         (long_int): New type.
6993         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6994         to remove assumption in the code that 'long' is wide enough to
6995         store year values.  This assumption is not true on x32 and on
6996         some non-glibc platforms.
6997
6998         mktime: merge wrapv change from gnulib
6999         * time/mktime.c (WRAPV): New macro.
7000         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7001         (guess_time_tm, __mktime_internal): Do not assume that signed
7002         integer overflow wraps around; modern compilers generate code
7003         where this assumption is no longer valid.
7004
7005 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7006
7007         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7008         Replace "jmp L(pseudo_end)" with "ret".
7009         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7010         Likewise.
7011
7012 2012-05-23  Andreas Jaeger  <aj@suse.de>
7013
7014         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7015         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7016
7017 2012-05-23  Andreas Jaeger  <aj@suse.de>
7018             Maximilian Attems  <max@stro.at>
7019
7020         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7021         New macros.
7022
7023 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7024
7025         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7026         code so that pseudo_end is just ret and the stack pointer is
7027         correct also for static library in error case.
7028
7029 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7030
7031         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7032         move to syscalls.list.
7033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7037
7038         * manual/install.texi (Running make install): Do not mention Linux
7039         kernel version for which pt_chown is not needed.
7040         (Linux): Do not mention problems with nscd with 2.0 kernels.
7041         * INSTALL: Regenerated.
7042
7043 2012-05-23  Andreas Jaeger  <aj@suse.de>
7044
7045         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7046         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7047         macro.
7048         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7049         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7050         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7051         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7052         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7053         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7054         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7055         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7056         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7057         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7058         * sysdeps/unix/sysv/linux/bits/in.h
7059         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7060
7061 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7062
7063         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7064         (PREPARE_VERSION): Just use assert instead, it will be elided
7065         under [NDEBUG] anyway.
7066
7067 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7068
7069         * sysdeps/unix/sysv/linux/Makefile: Include
7070         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7071         (sysdep_routines): Remove sysctl.
7072         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7073         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7074         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7075         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7076         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7077
7078 2012-05-22  Andreas Jaeger  <aj@suse.de>
7079
7080         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7081         that pseudo_end is just ret and the stack pointer is correct also
7082         for static library in error case.
7083
7084 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7085
7086         [BZ #14122]
7087         * nss/nsswitch.c (defconfig_entries): New variable.
7088         (__nss_database_lookup): Don't leak defconfig entries.
7089         (nss_parse_service_list): Don't leak on error paths.
7090         (free_database_entries): New function.
7091         (free_defconfig): New function.
7092         (free_mem): Move common code to free_database_entries.
7093
7094 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7095
7096         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7097         Add arch_prctl.
7098         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7099
7100         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7101         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7102         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7103         New macro.
7104         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7105         (INTERNAL_SYSCALL_TYPES): Likewise.
7106         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7107         (LOAD_REGS_TYPES_[1-6]): Likewise.
7108         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7109         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7110
7111 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7112
7113         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7114         copysignl for GLIBC_2_0.
7115         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7116         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7117         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7118         logbl for GLIBC_2_0.
7119         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7120         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7121
7122 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7125         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7126
7127         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7128         Use "neg %eax".
7129
7130         * time/mktime.c: Update copyright years.
7131
7132 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7133
7134         mktime: merge comment-quoting-style change from gnulib
7135         * time/mktime.c: Quote 'like this' in comments.
7136         The GNU coding standards suggest that we no longer quote `like this',
7137         as "`" and "'" are typically rendered asymmetrically nowadays.
7138         The typical gnulib style is to quote 'like this' when quoting
7139         code, and "like this" when quoting English.
7140
7141         * time/mktime.c (compile-command): Add "-I.".
7142
7143         mktime: merge mktime-internal.h change from gnulib
7144         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7145
7146         mktime: merge time_r change from gnulib
7147         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7148
7149         mktime: merge DEBUG change from gnulib
7150         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7151         case system <time.h> has a #define.
7152
7153         mktime: merge <sys/types.h> change from gnulib
7154         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7155         since <time.t> is now guaranteed to define time_t.
7156
7157         mktime: merge HAVE_CONFIG_H change from gnulib
7158         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7159
7160 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7161
7162         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7163         Use "neg %eax".
7164
7165         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7166         __rlim_t cast.
7167         (struct rusage): Use anonymous union to pad each field to
7168         __syscall_slong_t.
7169
7170 2012-05-21  David S. Miller  <davem@davemloft.net>
7171
7172         * Makefules (o-iterator): Remove .s cases.
7173         (compile-command.s): Delete.
7174         (COMPILE.s): Delete.
7175         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7176
7177 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7178
7179         * configure.in (libc_cv_predef_stack_protector): Only consider
7180         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7181         * configure: Regenerated.
7182
7183 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7184
7185         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7186         New macro.  Use R*LP on int and pointer.
7187         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7188         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7189         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7190         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7191
7192         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7193         [__WORDSIZE_TIME64_COMPAT32] instead of
7194         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7195         (struct utmp): Likewise.
7196         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7197         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7198         Renamed to ...
7199         (__WORDSIZE_TIME64_COMPAT32): This.
7200         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7201         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7202         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7203         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7204         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7205         (__WORDSIZE_TIME64_COMPAT32): New macro.
7206
7207 2012-05-21  Andreas Jaeger  <aj@suse.de>
7208
7209         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7210         only if [SHARED]. Add prototype for __wcschr_ia32.
7211
7212 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7213
7214         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7215         of %rbp unmolested in the jmp_buf while mangling the low bits.
7216         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7217         unmolested high bits of %rbp while demangling the low bits.
7218         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7219
7220 2012-05-21  Andreas Jaeger  <aj@suse.de>
7221
7222         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7223         * sunrpc/svc_simple.c: Use it for registerrpc.
7224         * sunrpc/xcrypt.c: Use it for passwd2des.
7225
7226         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7227
7228 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7229
7230         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7231         Don't define if [__SYSCALL_WORDSIZE != 32].
7232         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7233         New macro.
7234
7235 2012-05-21  Bruno Haible  <bruno@clisp.org>
7236             Andreas Jaeger  <aj@suse.de>
7237
7238         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7239         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7240         inptr and inend for must_buffer_ch.
7241         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7242         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7243         * stdio-common/Makefile (tests): Remove bug15.
7244         (bug15-ENV): Remove macro.
7245         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7246         anymore.
7247
7248 2012-05-19  Andreas Jaeger  <aj@suse.de>
7249             Roland McGrath  <roland@hack.frob.com>
7250
7251         * manual/contrib.texi: Completely rewritten. It contains now an
7252         alphabetical list of contributors and their contributions.
7253
7254 2012-05-21  Richard Henderson  <rth@twiddle.net>
7255
7256         * misc/getauxval.c (__getauxval): Use unsigned long int.
7257         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7258         (getauxval): Use unsigned long int.
7259
7260 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7261
7262         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7263
7264 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7265
7266         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7267         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7268         __alignof__ (long double).
7269
7270 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7271
7272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7273
7274 2012-05-20  Richard Henderson  <rth@twiddle.net>
7275
7276         * misc/getauxval.c: New file.
7277         * misc/sys/auxv.h: New file.
7278         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7279         (routines): Add getauxval.
7280         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7281         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7282         * elf/dl-sysdep.c (_dl_auxv): Remove.
7283         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7284         * elf/dl-support.c (_dl_auxv): New variable.
7285         (_dl_aux_init): Initialize it.
7286         * manual/startup.texi (Auxiliary Vector): New node.
7287         * sysdeps/generic/bits/hwcap.h: New file.
7288         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7289         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7290         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7291         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7292         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7293         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7295         Update.
7296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7299         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7300         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7302         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7303         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7304
7305 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7306
7307         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7308
7309 2012-05-19  David S. Miller  <davem@davemloft.net>
7310
7311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7312
7313 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7314
7315         [BZ #14123]
7316         * math/s_ccosh.c: Include <float.h>
7317         (__ccosh): Avoid internal overflow calculating sinh and cosh
7318         values before multiplying by sin and cos values.
7319         * math/s_ccoshf.c: Likewise.
7320         * math/s_ccoshl.c: Likewise.
7321         * math/s_csin.c: Likewise.
7322         * math/s_csinf.c: Likewise.
7323         * math/s_csinl.c: Likewise.
7324         * math/s_csinh.c: Likewise.
7325         * math/s_csinhf.c: Likewise.
7326         * math/s_csinhl.c: Likewise.
7327         * math/libm-test.inc (ccos_test): Add more tests.
7328         (ccosh_test): Likewise.
7329         (csin_test): Likewise.
7330         (csinh_test): Likewise.
7331         * sysdeps/i386/fpu/libm-test-ulps: Update.
7332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7333
7334 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7335
7336         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7337         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7338
7339         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7340
7341 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7342
7343         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7344         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7345         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7346         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7347         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7348         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7349         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7350         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7351         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7352         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7353         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7354         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7355         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7356         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7357         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7358         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7359         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7360         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7361         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7362         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7363         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7364         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7365         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7366         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7367         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7368         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7369         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7370         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7371         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7372         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7373         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7374
7375 2012-05-18  Andreas Jaeger  <aj@suse.de>
7376
7377         * csu/.gitignore: Delete.
7378
7379 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7380
7381         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7382         (timex): Use __syscall_slong_t.
7383
7384 2012-05-18  Andreas Jaeger  <aj@suse.de>
7385             Carlos O'Donell  <carlos_odonell@mentor.com>
7386
7387         * manual/install.texi (Configuring and compiling): Update
7388         description about files modified in the source directory.
7389         * INSTALL: Regenerated.
7390
7391 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7394         value.  Use "or" to set return value to -1.
7395         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7396         negate return value.
7397
7398 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7399
7400         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7401         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7402         failure if the compiler has Graphite support disabled.
7403         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7404         Likewise.
7405         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7406         CFLAGS-memmove.c): Likewise.
7407         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7408         Likewise.
7409
7410 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7411
7412         * sysdeps/x86_64/x32/_itoa.h: New file.
7413
7414         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7415         getdents system call only if kernel and user dirents have the
7416         same d_ino and d_off.
7417
7418         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7419         LLONG_MAX != LONG_MAX.
7420         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7421         (_fitoa_word): Likewise.
7422
7423         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7424         years.
7425         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7426         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7427         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7428
7429         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7430         include <bits/wordsize.h>.  Check __x86_64__ instead of
7431         __WORDSIZE.
7432         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7433         if __x86_64__ is defined.  Use anonymous union on fpstate.
7434
7435         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7436         anonymous union.
7437
7438 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7439
7440         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7441         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7442         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7443         Refer to _rtld_local_ro instead of _rtld_global_ro.
7444         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7445         Likewise.
7446         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7447         Likewise.
7448         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7449         Likewise.
7450         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7451         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7452         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7453
7454         * sysdeps/powerpc/powerpc32/dl-machine.c
7455         (__elf_machine_runtime_setup) [PROF]: Don't reference
7456         _dl_prof_resolve.
7457
7458 2012-05-18  Andreas Jaeger  <aj@suse.de>
7459
7460         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7461         function only available for GCCs before 3.4 since GCC 3.4
7462         introduced a builtin.
7463         (lrint): Likewise.
7464         (llrintf): Likewise.
7465         (llrint): Likewise.
7466         (fmaxf): Likewise.
7467         (fmax): Likewise.
7468         (fminf): Likewise.
7469         (fmin): Likewise.
7470         (rint): Likewise.
7471         (rintf): Likewise.
7472         (nearbyint): Likewise.
7473         (nearbyintf): Likewise.
7474         (ceil): Likewise.
7475         (ceilf): Likewise.
7476         (floor): Likewise.
7477         (floorf): Likewise.
7478
7479 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7480
7481         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7482         on both fields and cast pointer to __syscall_ulong_t.
7483
7484         * bits/types.h (__fsword_t): New type.
7485         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7486         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7487         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7488         (__FSWORD_T_TYPE): Likewise.
7489         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7490         (__FSWORD_T_TYPE): Likewise.
7491         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7492         (__FSWORD_T_TYPE): Likewise.
7493         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7494         (__FSWORD_T_TYPE): Likewise.
7495         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7496         __SWORD_TYPE with __fsword_t.
7497         (statfs64): Likewise.
7498
7499 2012-05-17  David S. Miller  <davem@davemloft.net>
7500
7501         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7502
7503 2012-05-17  Andreas Jaeger  <aj@suse.de>
7504
7505         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7506         warning.
7507
7508 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7509
7510         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7511
7512 2012-05-17  Andreas Jaeger  <aj@suse.de>
7513
7514         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7515         when it is used.
7516
7517 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7518
7519         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7520
7521 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7522
7523         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7524         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7525
7526 2012-05-17  Andreas Jaeger  <aj@suse.de>
7527             Carlos O'Donell  <carlos_odonell@mentor.com>
7528
7529         [BZ #14059]
7530         * sysdeps/x86_64/multiarch/init-arch.h
7531         (bit_YMM_Usable): Rename to...
7532         (bit_AVX_Usable): ... this.
7533         (bit_FMA4_Usable): New macro.
7534         (bit_XMM_state): New macro.
7535         (bit_YMM_state): New macro.
7536         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7537         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7538         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7539         (CPUID_OSXSAVE): New macro.
7540         (CPUID_AVX): New macro.
7541         (CPUID_FMA4): New macro.
7542         (index_YMM_Usable): Rename to...
7543         (index_AVX_Usable): ... this.
7544         (HAS_AVX): Use HAS_ARCH_FEATURE.
7545         (HAS_FMA4): Likewise.
7546         (HAS_YMM_USABLE): Remove.
7547         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7548         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7549         are present.
7550         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7551         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7552         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7553         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7554         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7555
7556 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7557
7558         * math/libm-test.c: Support platforms without multiple rounding modes.
7559         * math/bug-nextafter.c: Support platforms without FP exceptions.
7560         * math/bug-nexttoward.c: Likewise.
7561         * math/test-fenv.c: Likewise.
7562         * math/test-misc.c: Likewise.
7563         * stdlib/bug-getcontext.c: Likewise.
7564
7565 2012-05-17  Andreas Jaeger  <aj@suse.de>
7566
7567         * manual/examples/search.c (critter_cmp): Change signature to
7568         avoid warnings.
7569         * manual/string.texi (Collation Functions): Likewise.
7570
7571 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7572
7573         * bits/types.h: Fold copyright years.
7574         * bits/typesizes.h: Likewise.
7575         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7576         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7577         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7578         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7579         * time/time.h: Likewise.
7580
7581 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7582
7583         [BZ #208]
7584         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7585         in instead of returning them.  Return void.
7586         (__libc_mallinfo): Accumulate over all arenas.
7587         (__malloc_stats): Adjust for change in int_mallinfo interface.
7588
7589 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7590
7591         [BZ #10375]
7592         * configure.in (NM): Add AC_CHECK_TOOL for it.
7593         (libc_extra_cflags): New substituted variable.
7594         Check for -fstack-protector being used implicitly.
7595         * configure: Regenerated.
7596         * config.make.in (config-extra-cflags): New variable,
7597         gets @libc_extra_cflags@.
7598         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7599
7600         [BZ #10375]
7601         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7602         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7603         * configure: Regenerated.
7604         * config.make.in (CPPUNDEFS): New substituted variable.
7605         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7606         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7607         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7608
7609 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7610
7611         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7612         (mq_attr): Use __syscall_slong_t.
7613
7614 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7615
7616         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7617         Check __x86_64__ instead of __WORDSIZE.
7618         (_STAT_VER_LINUX): Likewise.
7619         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7620         __syscall_ulong_t and __syscall_slong_t.
7621         (stat64): Likewise.
7622
7623 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7624
7625         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7626
7627 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7628
7629         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7630
7631 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7632
7633         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7634         __syscall_ulong_t.
7635
7636         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7637         include <bits/wordsize.h>.  Check __x86_64__ instead of
7638         __WORDSIZE.
7639         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7640         defined.
7641         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7642
7643         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7644         include <bits/wordsize.h>.  Check __x86_64__ instead of
7645         __WORDSIZE.
7646         (user_regs_struct): Use "__extension__ unsigned long long"
7647         instead of "unsigned long" if __x86_64__ is defined.
7648         (user): Likewise.  Pad after pointer field if __ILP32__ is
7649         defined.
7650
7651 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7652
7653         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7654         versions 5 to 9.
7655         * configure: Regenerated.
7656         * manual/install.texi (texinfo): Increase version requirement to
7657         4.5 or later.
7658         * INSTALL: Regenerated.
7659
7660         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7661
7662 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7663
7664         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7665
7666         * sysdeps/x86_64/x32/ffs.c: New file.
7667
7668         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7669         __syscall_ulong_t.
7670         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7671         defined.  Use __syscall_ulong_t.
7672         (shminfo): Use __syscall_ulong_t.
7673         (shm_info): Likewise.
7674
7675         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7676         __syscall_ulong_t.
7677
7678         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7679         <bits/wordsize.h>.
7680         (msgqnum_t): Use __syscall_ulong_t.
7681         (msglen_t): Likewise.
7682         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7683         __syscall_ulong_t.
7684
7685         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7686         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7687
7688         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7689
7690         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7691         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7692
7693         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7694         __syscall_slong_t.
7695
7696         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7697         include <bits/wordsize.h>.  Check __x86_64__ instead of
7698         __WORDSIZE.
7699
7700         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7701         "unsigned long long int" if __x86_64__ is defined.
7702         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7703
7704         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7705         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7706         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7707
7708         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7709         <stdint.h>.
7710         (GET_PC): Cast to uintptr_t first.
7711         (GET_FRAME): Likewise.
7712         (GET_STACK): Likewise.
7713
7714         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7715         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7716         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7717         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7718         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7719         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7720         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7721         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7722         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7723         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7724         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7725         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7726         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7727         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7728         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7729         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7730         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7731         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7732         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7733         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7734         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7735         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7736         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7737         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7738         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7739         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7740         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7741         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7742         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7743
7744 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7745
7746         * Makerules (+depfiles): Also collect depfiles from .oS in
7747         $(extra-objs).
7748         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7749         .oS, $(libnldbl-routines)).
7750
7751         * Makerules (native-compile-mkdep-flags): Define.
7752         * sunrpc/Makefile (extra-objs): Add $(addprefix
7753         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7754         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7755         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7756         calling $(make-target-directory).
7757
7758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7759
7760         * bits/types.h (__snseconds_t): Removed.
7761         * time/time.h (struct timespec): Replace __snseconds_t with
7762         __syscall_slong_t.
7763         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7764         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7765         Likewise.
7766         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7767         (__SNSECONDS_T_TYPE): Likewise.
7768         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7769         (__SNSECONDS_T_TYPE): Likewise.
7770         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7771         (__SNSECONDS_T_TYPE): Likewise.
7772
7773 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7774
7775         * sysdeps/mach/hurd/bits/typesizes.h
7776         (__SYSCALL_SLONG_TYPE): New macro.
7777         (__SYSCALL_ULONG_TYPE): Likewise.
7778
7779 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7780
7781         * bits/types.h (__syscall_slong_t): New type.
7782         (__syscall_ulong_t): Likewise.
7783
7784         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7785         (__SYSCALL_ULONG_TYPE): Likewise.
7786         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7787         (__SYSCALL_SLONG_TYPE): Likewise.
7788         (__SYSCALL_ULONG_TYPE): Likewise.
7789         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7790         (__SYSCALL_SLONG_TYPE): Likewise.
7791         (__SYSCALL_ULONG_TYPE): Likewise.
7792         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7793         (__SYSCALL_SLONG_TYPE): Likewise.
7794         (__SYSCALL_ULONG_TYPE): Likewise.
7795
7796 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7797
7798         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7799         Add sigaltstack-offsets.sym.
7800         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7801         <sigaltstack-offsets.h>.
7802         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7803         longjmp_msg pointer.
7804         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7805         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7806         signal stack.
7807         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7808
7809 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * elf/stackguard-macros.h: Remove file.
7812         * sysdeps/generic/stackguard-macros.h: New file.
7813         * sysdeps/i386/stackguard-macros.h: Likewise.
7814         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7815         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7816         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7817         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7818         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7819         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7820         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7821         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7822         <elf/stackguard-macros.h>.
7823
7824         [BZ #14109]
7825         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7826         __aligned__ in attribute.
7827         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7828         (gregset_t): Likewise.
7829
7830 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7831
7832         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7833         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7834         * sysdeps/x86_64/x32/Implies-after: New file.
7835
7836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7837
7838         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7839         and access return value for _dl_profile_fixup.  Use R10_LP to
7840         load frame size.
7841
7842 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7843
7844         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7845
7846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7847
7848         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7849         * sysdeps/x86_64/x32/sysdep.h: New file.
7850
7851 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7852
7853         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7854         * sysdeps/x86_64/setjmp.S: Likewise.
7855
7856 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7857
7858         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7859         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7860         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7861         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7862         remove unused global constant.
7863
7864 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7865
7866         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7867         include of <not-cancel.h>.
7868
7869 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7870
7871         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7872
7873 2012-05-15  Jeff Law  <law@redhat.com>
7874             Andreas Jaeger  <aj@suse.de>
7875
7876         [BZ #13594]
7877         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7878         out from...
7879         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7880         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7881         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7882         code changing __hst_map_handle.map.
7883
7884 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7885
7886         * configure.in (sysnames): Look for Implies-before and Implies-after
7887         files.
7888         * configure: Regenerated.
7889
7890 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7891
7892         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7893         8-byte data alignment with LP_SIZE alignment.
7894
7895 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7896
7897         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7898         into R10_LP.
7899
7900 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7901
7902         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7903
7904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7905
7906         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7907         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7908         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7909         Likewise.
7910         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7911
7912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7913
7914         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7915         (stackinfo_sub_sp): Likewise.
7916
7917 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7918
7919         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7920         RAX_LP.
7921
7922 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7923
7924         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7925         into R*_LP.
7926
7927 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7928
7929         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7930         sizes into R*_LP.
7931
7932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7933
7934         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7935
7936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7937
7938         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7939         into R11_LP and load __x86_64_shared_cache_size_half into
7940         R8_LP.
7941
7942 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7943
7944         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7945         R8_LP.
7946
7947 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7948
7949         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7950         logb for POWER7.
7951         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7952         logbf for POWER7.
7953         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7954         logbl for POWER7.
7955         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7956         powerpc32/power7/fpu/s_logb.c via #include.
7957         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7958         powerpc32/power7/fpu/s_logbf.c via #include.
7959         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7960         powerpc32/power7/fpu/s_logbl.c via #include.
7961
7962 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * README.libm: Remove file.
7965
7966 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7967
7968         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7969         count for x32.  Use R*_LP and omit operand-size suffix.
7970
7971 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7972
7973         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7974         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7975         * sysdeps/x86_64/x32/shlib-versions: New file.
7976
7977 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7978
7979         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7980         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7981         Use _dl_fatal_printf instead.
7982
7983 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7984
7985         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7986         set if not set by the user.  Do not allow for being unset.
7987         * sysdeps/unix/sysv/linux/configure: Regenerated.
7988
7989 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7990
7991         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7992         the `q' suffix from lea and replace .quad with ASM_ADDR.
7993
7994 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7995
7996         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7997         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7998         instead of $17.
7999         (PTR_DEMANGLE): Likewise.
8000
8001 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8004         (LP_OP): Likewise.
8005         (ASM_ADDR): Likewise.
8006         (RAX_LP): Likewise.
8007         (RBP_LP): Likewise.
8008         (RBX_LP): Likewise.
8009         (RCX_LP): Likewise.
8010         (RDI_LP): Likewise.
8011         (RSI_LP): Likewise.
8012         (RSP_LP): Likewise.
8013         (R8_LP): Likewise.
8014         (R9_LP): Likewise.
8015         (R10_LP): Likewise.
8016         (R10_LP): Likewise.
8017         (R11_LP): Likewise.
8018         (R12_LP): Likewise.
8019         (R13_LP): Likewise.
8020         (R14_LP): Likewise.
8021         (R15_LP): Likewise.
8022
8023 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8024
8025         * sysdeps/x86_64/x32/dl-machine.h: New file.
8026
8027 2012-05-14  Andreas Jaeger  <aj@suse.de>
8028
8029         * manual/Makefile (subdir): Remove export of subdir.
8030         (all): Remove target.
8031         (.PHONY): Remove all from list.
8032         (mkinstalldirs): Remove.
8033         (.PHONY): Remove installdirs from list.
8034         ($(inst_infodir)/libc.info): Use make-target-directory.
8035         (installdirs): Remove.
8036         (subdir_%): Remove.
8037         (glibc-targets): Remove.
8038         (lib): Remove.
8039         (stubs): Remove.
8040         ($(objpfx)stubs ../po/manual.pot): Remove.
8041         ($(objpfx)stamp%): Remove.
8042         (make-target-directory): Remove.
8043         (subdir_install): Remove.
8044         (routines): Remove.
8045         (aux): Remove.
8046         (sources): Remove.
8047         (objects): Remove.
8048         (headers): Remove.
8049
8050         [BZ #13750]
8051         * manual/.gitignore: Remove, it's not needed anymore.
8052         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8053         all files in it.
8054         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8055         directory.
8056         (texis): Renamed to $(objpfx)texis.
8057         (texis-path): New, contains path to generated files.
8058         (chapters.%): Use texis-path for complete path, add extra argument
8059         libc-texinfo.sh.
8060         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8061         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8062         (summary,texi, stamp-summary): Use complete path of
8063         files. Generate files in build dir.
8064         (dir-add.texi): Build in build dir.
8065         (libm-err.texi,stamp-libm-err): Likewise.
8066         (version.texi, stamp-version): Likewise.
8067         (.%c.texi): Likewise.
8068         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8069         (mostlyclean): Remove target.
8070         (realclean): Remove target.
8071         (generated): Add new variable with contents from mostlyclean and
8072         realclean, remove entries duplicated in common-mostlyclean, add
8073         stamp-libm-err and stamp-version.
8074         (generated-dirs): Add libc directory.
8075         ($(inst_infodir)/libc.info): Install files from build dir.
8076
8077         * manual/install.texi (Configuring and compiling): Adjust since
8078         the info files are not part of the tar ball anymore.
8079
8080 2012-05-14  Andreas Jaeger  <aj@suse.de>
8081
8082         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8083         variable.
8084
8085 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8086
8087         [BZ #13717]
8088         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8089         to 2.2.0 where earlier.
8090         * sysdeps/unix/sysv/linux/configure: Regenerated.
8091         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8092         Remove conditional code.
8093         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8094         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8095         Remove conditional code.
8096         [!__NR_lchown]: Likewise.
8097         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8098         [__NR_lchown]: Likewise.
8099         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8100         comment referencing __ASSUME_LCHOWN_SYSCALL.
8101         * sysdeps/unix/sysv/linux/i386/sigaction.c
8102         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8103         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8104         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8105         Remove conditional code.
8106         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8107         (__protocol_available): Remove #if 0 code.
8108         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8109         conditional code.
8110         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8111         * sysdeps/unix/sysv/linux/kernel-features.h
8112         (__ASSUME_GETCWD_SYSCALL): Don't define.
8113         (__ASSUME_REALTIME_SIGNALS): Likewise.
8114         (__ASSUME_PREAD_SYSCALL): Likewise.
8115         (__ASSUME_PWRITE_SYSCALL): Likewise.
8116         (__ASSUME_POLL_SYSCALL): Likewise.
8117         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8118         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8119         non-SPARC.
8120         (__ASSUME_SIOCGIFNAME): Don't define.
8121         (__ASSUME_MSG_NOSIGNAL): Likewise.
8122         (__ASSUME_SENDFILE): Define unconditionally.
8123         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8124         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8125         conditional code.
8126         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8127         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8128         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8129         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8130         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8131         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8132         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8134         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8135         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8137         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8138         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8140         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8141         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8143         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8144         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8146         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8147         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8149         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8150         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8152         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8153         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8155         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8156         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8157         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8158         Remove conditional code.
8159         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8160         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8161         Remove conditional code.
8162         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8163         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8164         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8165         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8166         Remove conditional code.
8167         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8168         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8169         Remove conditional code.
8170         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8171         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8172         Remove conditional code.
8173         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8174         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8175         Remove conditional code.
8176         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8177         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8178         Remove conditional code.
8179         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8180         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8181         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8182         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8183         * sysdeps/unix/sysv/linux/sigaction.c
8184         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8185         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8186         * sysdeps/unix/sysv/linux/sigpending.c
8187         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8188         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8189         * sysdeps/unix/sysv/linux/sigprocmask.c
8190         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8191         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8192         * sysdeps/unix/sysv/linux/sigsuspend.c
8193         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8194         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8195         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8196         (__libc_missing_rt_sigs): Remove.
8197         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8198         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8199         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8200         Remove conditional code.
8201         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8202         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8203         return 1.
8204         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8205         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8206         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8207         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8208
8209 2012-05-14  Andreas Jaeger  <aj@suse.de>
8210
8211         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8212         it's not used in glibc.
8213         (__coshm1): Likewise.
8214         (__acosh1p): Likewise.
8215         (__sgn): Likewise.
8216
8217         * manual/string.texi (Copying and Concatenation): Add missing
8218         variable in concat example.
8219         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8220
8221 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8222
8223         [BZ #14103]
8224         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8225         __builtin_clzl with __builtin_clzll.
8226
8227 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8228
8229         [BZ #14104]
8230         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8231         libc_freeres_ptr.
8232
8233 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8234
8235         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8236         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8237         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8238         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8239
8240 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8241
8242         * NEWS: Update ia64 info.
8243
8244 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8245
8246         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8247         used as bcopy.
8248
8249 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8250
8251         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8252         * sysdeps/unix/syscalls.list (dup3): Likewise.
8253         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8254         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8255
8256 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8257
8258         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8259         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8260
8261 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8262
8263         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8264         thread pointer.
8265         (TLS_IE): Use mov/add instead of movq/addq to load thread
8266         pointer.
8267         (TLS_GD_PREFIX): New.
8268         (TLS_GD): Use it.
8269
8270 2012-05-11  David S. Miller  <davem@davemloft.net>
8271
8272         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8273         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8274         (_FPU_SETCW): Likewise.
8275
8276 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8277
8278         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8279         is 32-byte aligned.
8280
8281 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8282
8283         [BZ #11837]
8284         * iconvdata/gb18030.c: Update tables.
8285         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8286         characters specially.
8287         (BODY for TO_LOOP): Add encoding of missing ranges.
8288
8289 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8290
8291         [BZ #13673]
8292         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8293         * sysdeps/mach/hurd/dup3.c: Likewise.
8294         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8295         * sysdeps/powerpc/memmove.c:: Likewise.
8296
8297 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8298
8299         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8300         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8301
8302 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8303
8304         * elf/elf.h (R_X86_64_RELATIVE64): New.
8305         (R_X86_64_NUM): Updated.
8306         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8307         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8308         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8309         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8310         tst-quad1pie tst-quad2pie
8311         (modules-names): Add tst-quadmod1 tst-quadmod2.
8312         ($(objpfx)tst-quad1): New dependency.
8313         ($(objpfx)tst-quad2): Likewise.
8314         ($(objpfx)tst-quad1pie): Likewise.
8315         ($(objpfx)tst-quad2pie): Likewise.
8316         * sysdeps/x86_64/tst-quad1.c: New file.
8317         * sysdeps/x86_64/tst-quad1pie.c: New file.
8318         * sysdeps/x86_64/tst-quad2.c: Likewise.
8319         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8320         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8321         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8322         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8323         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8324
8325 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8326
8327         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8328         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8329         * streams/stropts.h (t_scalar_t): Define type.
8330
8331         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8332         (_PATH_PRESERVE): Set to "/var/lib".
8333         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8334
8335         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8336         instead of int.
8337
8338         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8339         if __dir_mkfile succeeded.
8340
8341         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8342         checking for _hurd_dtablesize.  Unlock it right after having
8343         finished _hurd_dtable allocation.
8344
8345 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8346
8347         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8348         * sysdeps/mach/hurd/configure: Regenerated.
8349         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8350         special-casing to...
8351         * sysdeps/gnu/configure.in: ... this new file.
8352         * sysdeps/unix/sysv/linux/configure: Regenerated.
8353         * sysdeps/gnu/configure: New generated file.
8354
8355         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8356         for Linux: use nsec instead of usec, as well as:
8357         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8358         members of type struct timespec.
8359         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8360         New macros.
8361         (struct stat64): Likewise.
8362         (_STATBUF_ST_NSEC): New macro.
8363         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8364
8365         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8366         __strtoul_internal rather than strtoul.
8367
8368 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8369
8370         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8371         and reject them.
8372
8373 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8374
8375         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8376         which preserves existing values.
8377         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8378
8379 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8380
8381         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8382         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8383         greater than FD_SETSIZE.
8384
8385 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8386
8387         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8388         allocated, call __vm_protect to finish enabling the existing space, and
8389         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8390         allocate the remainder.
8391
8392 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8393
8394         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8395         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8396
8397 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8398
8399         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8400         sysdeps/mach/hurd/readlink.c.
8401
8402         * posix/tst-sysconf.c (posix_options): Only use
8403         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8404         _POSIX_SYNCHRONIZED_IO when they are defined
8405         * sysdeps/mach/hurd/bits/posix_opt.h:
8406         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8407         (_XOPEN_REALTIME): Undefine macro.
8408         (_XOPEN_REALTIME_THREADS): Undefine macro.
8409         (_XOPEN_SHM): Undefine macro.
8410         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8411         macro to -1.
8412         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8413         macro to -1.
8414         (_POSIX_ASYNC_IO): Undefine macro.
8415         (_POSIX_PRIORITIZED_IO): Undefine macro.
8416         (_POSIX_SPIN_LOCKS): Define macro to -1.
8417
8418         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8419         SA_NODEFER, SA_RESETHAND.
8420         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8421         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8422         F_DUPFD_CLOEXEC.
8423
8424 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8425
8426         * elf/Makefile (pldd-modules): Define unconditionally.
8427
8428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8429
8430         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8431
8432 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8433
8434         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8435         Return ENOENT when name is empty.
8436         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8437
8438 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8439
8440         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8441
8442         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8443
8444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8445
8446         Fix mlock in all cases except non-readable pages.
8447         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8448         instead of VM_PROT_ALL as parameter to __vm_wire function.
8449
8450         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8451         (__mkdir): When path is `/', just fail with EEXIST.
8452         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8453
8454 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8455
8456         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8457         <sys/uio.h> (for writev).
8458         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8459         and <sys/param.h> (for MIN).
8460
8461 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8462
8463         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8464         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8465         if interrupted.
8466
8467 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8468
8469         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8470         Depend on against $(link-rpcuserlibs).
8471
8472 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8473
8474         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8475         (__libc_stack_end): Do not use attribute_relro.
8476         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8477         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8478         to libthread-provided value.
8479         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8480         attribute_relro.
8481
8482 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8483
8484         [BZ #3748]
8485         * bits/libc-lock.h (__libc_once_get): New macro.
8486         * sysdeps/mach/bits/libc-lock.h: Likewise.
8487         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8488         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8489         instead of using implementation details.
8490
8491         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8492         * libio/freopen.c: Likewise.
8493         * libio/freopen64.c: Likewise.
8494         * misc/syslog.c: Likewise.
8495         * nscd/connections.c: Likewise.
8496         * nscd/netgroupcache.c: Likewise.
8497         * sysdeps/posix/getcwd.c: Likewise.
8498
8499 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8500
8501         * math/w_ilogbf.c: Add #include <limits.h>.
8502
8503 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8504
8505         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8506         path instead of returning without unlocking.
8507
8508         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8509         immediate-write ioctls.
8510         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8511
8512 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8513
8514         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8515         __builtin_frame_address instead of making assumptions about the
8516         location of the return address relative to DATA.  Force early load of
8517         the return address.
8518         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8519         __builtin_frame_address.
8520
8521         dup3 for GNU Hurd.
8522         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8523         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8524         implement dup3 and do some further code clean-ups.
8525         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8526         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8527
8528 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8529
8530         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8531
8532         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8533         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8534         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8535         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8536         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8537         d->port.lock.
8538
8539         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8540         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8541         when handler == SIG_ERR, not when handler != SIG_ERR.
8542
8543 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8544
8545         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8546         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8547         definitions.
8548
8549         accept4 for GNU Hurd.
8550         * include/sys/socket.h (__libc_accept4): New prototype.
8551         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8552         to implement __libc_accept4.
8553         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8554         __libc_accept4.
8555         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8556
8557         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8558         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8559         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8560         signal-defines.sym.
8561
8562 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8563
8564         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8565
8566 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8567
8568         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8569         assertion on O_CLOEXEC flag.
8570         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8571         * hurd/intern-fd.c: Likewise.
8572         * hurd/port2fd.c: Likewise.
8573
8574 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8575
8576         [BZ #3906]
8577         * bits/in.h (IPV6_PKTINFO): Define new macro.
8578         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8579
8580 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8581
8582         [BZ #13954]
8583         [BZ #13955]
8584         [BZ #13956]
8585         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8586         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8587         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8588         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8589         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8590         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8591         * math/libm-test.inc (logb_test) : Additional logb tests.
8592
8593 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8594             Andreas Jaeger  <aj@suse.de>
8595
8596         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8597         * configure: Regenerated.
8598         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8599         * config.make.in (link-obsolete-rpc): New substituted variable.
8600         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8601         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8602         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8603         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8604         so that libc.a contains the symbols.
8605         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8606         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8607         * sunrpc/auth_none.c: Likewise.
8608         * sunrpc/auth_unix.c: Likewise.
8609         * sunrpc/authdes_prot.c: Likewise.
8610         * sunrpc/authuxprot.c: Likewise.
8611         * sunrpc/clnt_gen.c: Likewise.
8612         * sunrpc/clnt_perr.c: Likewise.
8613         * sunrpc/clnt_raw.c: Likewise.
8614         * sunrpc/clnt_simp.c: Likewise.
8615         * sunrpc/clnt_tcp.c: Likewise.
8616         * sunrpc/clnt_udp.c: Likewise.
8617         * sunrpc/clnt_unix.c: Likewise.
8618         * sunrpc/des_crypt.c: Likewise.
8619         * sunrpc/des_soft.c: Likewise.
8620         * sunrpc/get_myaddr.c: Likewise.
8621         * sunrpc/key_call.c: Likewise.
8622         * sunrpc/key_prot.c: Likewise.
8623         * sunrpc/netname.c: Likewise.
8624         * sunrpc/pm_getmaps.c: Likewise.
8625         * sunrpc/pm_getport.c: Likewise.
8626         * sunrpc/pmap_clnt.c: Likewise.
8627         * sunrpc/pmap_prot.c: Likewise.
8628         * sunrpc/pmap_prot2.c: Likewise.
8629         * sunrpc/pmap_rmt.c: Likewise.
8630         * sunrpc/publickey.c: Likewise.
8631         * sunrpc/rpc_cmsg.c: Likewise.
8632         * sunrpc/rpc_common.c: Likewise.
8633         * sunrpc/rpc_dtable.c: Likewise.
8634         * sunrpc/rpc_prot.c: Likewise.
8635         * sunrpc/rpc_thread.c: Likewise.
8636         * sunrpc/rtime.c: Likewise.
8637         * sunrpc/svc.c: Likewise.
8638         * sunrpc/svc_auth.c: Likewise.
8639         * sunrpc/svc_raw.c: Likewise.
8640         * sunrpc/svc_run.c: Likewise.
8641         * sunrpc/svc_tcp.c: Likewise.
8642         * sunrpc/svc_udp.c: Likewise.
8643         * sunrpc/svc_unix.c: Likewise.
8644         * sunrpc/svcauth_des.c: Likewise.
8645         * sunrpc/xcrypt.c: Likewise.
8646         * sunrpc/xdr.c: Likewise.
8647         * sunrpc/xdr_array.c: Likewise.
8648         * sunrpc/xdr_float.c: Likewise.
8649         * sunrpc/xdr_intXX_t.c: Likewise.
8650         * sunrpc/xdr_mem.c: Likewise.
8651         * sunrpc/xdr_rec.c: Likewise.
8652         * sunrpc/xdr_ref.c: Likewise.
8653         * sunrpc/xdr_sizeof.c: Likewise.
8654         * sunrpc/xdr_stdio.c: Likewise.
8655
8656 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8657
8658         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8659         change.  Update copyright years.
8660
8661 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8662
8663         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8664
8665 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8666             Joseph Myers  <joseph@codesourcery.com>
8667             Paul Pluzhnikov  <ppluzhnikov@google.com>
8668
8669         [BZ #14012]
8670         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8671         requiring rpcgen.
8672         [cross-compiling] (extra-libs): Likewise.
8673         [cross-compiling] (extra-libs-others): Likewise.
8674         [cross-compiling] (librpcsvc-routines): Likewise.
8675         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8676         [cross-compiling] (omit-deps): Likewise.
8677         (sunrpc-CPPFLAGS): New variable.
8678         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8679         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8680         (cross-rpcgen-objs): New variable.
8681         (extra-objs): Append $(cross-rpcgen-objs).
8682         ($(cross-rpcgen-objs)): New rule.
8683         ($(objpfx)cross-rpcgen): Likewise.
8684         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8685         comment.
8686         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8687         ($(objpfx)x%.stmp): Likewise.
8688         * sunrpc/proto.h [IS_IN_build] (_): Define.
8689         [IS_IN_build] (_libc_intl_domainname): Likewise.
8690
8691 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8692
8693         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8694         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8695         and R_X86_64_TPOFF64.
8696
8697 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8698
8699         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8700         sysdeps/unix/sysv/syscalls.list.
8701         (stime): Likewise.
8702         (utime): Likewise.
8703         * sysdeps/unix/sysv/syscalls.list: Remove file.
8704
8705 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8706
8707         [BZ #3440]
8708         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8709         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8710         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8711         (__LC_IDENTIFICATION): Make these macros useful in #if
8712         expressions, as required by C99.
8713
8714 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8715
8716         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8717         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8718         after this.
8719
8720 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8721
8722         * stdlib/longlong.h: Updated from GCC.
8723
8724 2012-05-09  Andreas Jaeger  <aj@suse.de>
8725
8726         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8727         default is first entry.
8728         (run_mode): Set type.
8729         (main): Remove informal message about syslog.
8730         (options): Fix typo.
8731
8732         [BZ #14053]
8733         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8734         to asm.
8735         (lrint): Likewise.
8736         (llrintf): Likewise.
8737         (llrint): Likewise.
8738         (rint): Likewise.
8739         (rintf): Likewise.
8740         (nearbyint): Likewise.
8741         (nearbyintf): Likewise.
8742
8743 2012-05-09  Andreas Jaeger  <aj@suse.de>
8744             Pedro Alves  <palves@redhat.com>
8745
8746         * nscd/nscd.c (run_mode): Use enum.
8747         (main): Cleanup coding style issue.
8748
8749 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8750             Andreas Jaeger  <aj@suse.de>
8751
8752         * nscd/nscd.c (go_background): Replaced with...
8753         (run_mode): ... this.
8754         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8755         (options): Add -F --foreground.
8756         (main): Implement it.
8757         (parse_opt): Parse it.
8758
8759 2012-05-09  Andreas Jaeger  <aj@suse.de>
8760
8761         [BZ #14083]
8762         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8763         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8764         -Wconversion warning.
8765         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8766         Likewise.
8767
8768 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8769
8770         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8771         == 0.
8772         (LC_ALL): Use macro-int-constant.
8773         (LC_COLLATE): Likewise.
8774         (LC_CTYPE): Likewise.
8775         (LC_MESSAGES): Likewise.
8776         (LC_MONETARY): Likewise.
8777         (LC_NUMERIC): Likewise.
8778         (LC_TIME): Likewise.
8779         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8780         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8781         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8782         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8783         Specify type.
8784         [C99-based standards] (float_t): Expect type.
8785         [C99-based standards] (double_t): Expect type.
8786         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8787         type.
8788         [C99-based standards] (HUGE_VALL): Likewise.
8789         [C99-based standards] (INFINITY): Likewise.
8790         [C99-based standards] (NAN): Likewise.
8791         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8792         [C99-based standards] (FP_NAN): Likewise.
8793         [C99-based standards] (FP_NORMAL): Likewise.
8794         [C99-based standards] (FP_SUBNORMAL): Likewise.
8795         [C99-based standards] (FP_ZERO): Likewise.
8796         [C99-based standards] (FP_FAST_FMA): Use
8797         optional-macro-int-constant.  Specify type.  Require == 1.
8798         [C99-based standards] (FP_FAST_FMAF): Likewise.
8799         [C99-based standards] (FP_FAST_FMAL): Likewise.
8800         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8801         [C99-based standards] (FP_ILOGBNAN): Likewise.
8802         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8803         Specify type.
8804         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8805         [C99-based standards] (math_errhandling): Specify type.
8806         [ISO99 || ISO11] (signgam): Do not allow.
8807         [non-C99-based standards] (copysignf): Do not allow.
8808         [non-C99-based standards] (exp2f): Likewise.
8809         [non-C99-based standards] (log2f): Likewise.
8810         [non-C99-based standards] (modff): Allow.
8811         [non-C99-based standards] (erff): Do not allow.
8812         [non-C99-based standards] (erfcf): Likewise.
8813         [non-C99-based standards] (gammaf): Likewise.
8814         [non-C99-based standards] (hypotf): Likewise.
8815         [non-C99-based standards] (j0f): Likewise.
8816         [non-C99-based standards] (j1f): Likewise.
8817         [non-C99-based standards] (jnf): Likewise.
8818         [non-C99-based standards] (lgammaf): Likewise.
8819         [non-C99-based standards] (tgammaf): Likewise.
8820         [non-C99-based standards] (y0f): Likewise.
8821         [non-C99-based standards] (y1f): Likewise.
8822         [non-C99-based standards] (ynf): Likewise.
8823         [non-C99-based standards] (isnanf): Likewise.
8824         [non-C99-based standards] (acoshf): Likewise.
8825         [non-C99-based standards] (asinhf): Likewise.
8826         [non-C99-based standards] (atanhf): Likewise.
8827         [non-C99-based standards] (cbrtf): Likewise.
8828         [non-C99-based standards] (expm1f): Likewise.
8829         [non-C99-based standards] (ilogbf): Likewise.
8830         [non-C99-based standards] (log1pf): Likewise.
8831         [non-C99-based standards] (logbf): Likewise.
8832         [non-C99-based standards] (nextafterf): Likewise.
8833         [non-C99-based standards] (remainderf): Likewise.
8834         [non-C99-based standards] (rintf): Likewise.
8835         [non-C99-based standards] (scalbf): Likewise.
8836         [non-C99-based standards] (copysignl): Likewise.
8837         [non-C99-based standards] (exp2l): Likewise.
8838         [non-C99-based standards] (log2l): Likewise.
8839         [non-C99-based standards] (modfl): Allow.
8840         [non-C99-based standards] (erfl): Do not allow.
8841         [non-C99-based standards] (erfcl): Likewise.
8842         [non-C99-based standards] (gammal): Likewise.
8843         [non-C99-based standards] (hypotl): Likewise.
8844         [non-C99-based standards] (j0l): Likewise.
8845         [non-C99-based standards] (j1l): Likewise.
8846         [non-C99-based standards] (jnl): Likewise.
8847         [non-C99-based standards] (lgammal): Likewise.
8848         [non-C99-based standards] (tgammal): Likewise.
8849         [non-C99-based standards] (y0l): Likewise.
8850         [non-C99-based standards] (y1l): Likewise.
8851         [non-C99-based standards] (ynl): Likewise.
8852         [non-C99-based standards] (isnanl): Likewise.
8853         [non-C99-based standards] (acoshl): Likewise.
8854         [non-C99-based standards] (asinhl): Likewise.
8855         [non-C99-based standards] (atanhl): Likewise.
8856         [non-C99-based standards] (cbrtl): Likewise.
8857         [non-C99-based standards] (expm1l): Likewise.
8858         [non-C99-based standards] (ilogbl): Likewise.
8859         [non-C99-based standards] (log1pl): Likewise.
8860         [non-C99-based standards] (logbl): Likewise.
8861         [non-C99-based standards] (nextafterl): Likewise.
8862         [non-C99-based standards] (remainderl): Likewise.
8863         [non-C99-based standards] (rintl): Likewise.
8864         [non-C99-based standards] (scalbl): Likewise.
8865         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8866         [non-C99-based standards] (FP_*): Do not allow.
8867         [C99-based standards] (FP_*): Change to
8868         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8869         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8870         allow.
8871         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8872         (SIG_ERR): Likewise.
8873         [X/Open-based standards] (SIG_HOLD): Likewise.
8874         (SIG_IGN): Likewise.
8875         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8876         positive value.
8877         (SIGFPE): Likewise.
8878         (SIGILL): Likewise.
8879         (SIGINT): Likewise.
8880         (SIGSEGV): Likewise.
8881         (SIGTER): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8900         [X/Open-based standards] (SIGTRAP): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8905         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8906         allow.
8907
8908 2012-05-08  Ian Wienand  <ianw@vmware.com>
8909
8910         [BZ #14080]
8911         * time/tzset.c (__tzset_parse_tz): Update default rules for
8912         daylight time changes in the Energy Policy Act of 2005.
8913
8914 2012-05-09  Andreas Jaeger  <aj@suse.de>
8915
8916         [BZ #13983]
8917         * elf/ldconfig.c (parse_conf): Change string to make clear that
8918         ldconfig only issued a warning if ld.so.conf does not exist.
8919
8920 2012-05-08  David S. Miller  <davem@davemloft.net>
8921
8922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8923         movxtod instead of popping the value on the stack.
8924
8925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8926
8927 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8928
8929         * config.h.in: Add HAVE_ARM_PCS_VFP.
8930
8931 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8932
8933         [BZ #13979]
8934         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8935         checking but the checks are disabled for any reason.
8936
8937 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8938
8939         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8940         and ELF64_R_TYPE with ELFW(R_TYPE).
8941
8942 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8943
8944         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8945         (ulimit): Likewise.
8946
8947         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8948         (settimeofday): Likewise.
8949
8950 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8951
8952         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8953         a struct th_u2 inside the union, and move tu_block/tu_code into
8954         a new th_u3 union of tu_block/tu_code inside of that.  Move
8955         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8956         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8957         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8958         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8959         (th_stuff): Change to th_u1.tu_stuff.
8960         (th_data): Define.
8961         (th_msg): Change to th_u1.th_u2.tu_data.
8962
8963 2012-05-07  David S. Miller  <davem@davemloft.net>
8964
8965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8966
8967         [BZ #14074]
8968         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8969         (SETUP_PIC_REG): Use it.
8970         (SETUP_PIC_REG_LEAF): Use it.
8971
8972 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8973
8974         [BZ #13885]
8975         [BZ #13923]
8976         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8977         USE_AS_EXPM1L.
8978         (EXPL_FINITE): Likewise.
8979         (FLDLOG): Likewise.
8980         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8981         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8982         e_expl.S.
8983         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8984         USE_AS_EXPM1L.
8985         (EXPL_FINITE): Likewise.
8986         (FLDLOG): Likewise.
8987         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8988         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8989         e_expl.S.
8990         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8991         test of -max_value argument for long double.
8992         * sysdeps/i386/fpu/libm-test-ulps: Update.
8993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8994
8995 2012-05-06  David S. Miller  <davem@davemloft.net>
8996
8997         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8998         quad soft-float symbols whose references which are compiler
8999         generated.
9000         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9001
9002 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9003
9004         [BZ #13884]
9005         [BZ #13914]
9006         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9007         USE_AS_EXP10L.
9008         (EXPL_FINITE): Likewise.
9009         (FLDLOG): Likewise.
9010         (c0): Likewise.
9011         (c1): Likewise.
9012         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9013         Adjust comments for base varying.
9014         (__expl_finite): Change alias to EXPL_FINITE.
9015         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9016         e_expl.S.
9017         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9018         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9019         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9020         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9021         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9022         USE_AS_EXP10L.
9023         (EXPL_FINITE): Likewise.
9024         (FLDLOG): Likewise.
9025         (c0): Likewise.
9026         (c1): Likewise.
9027         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9028         Adjust comments for base varying.
9029         (__expl_finite): Change alias to EXPL_FINITE.
9030         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9031         tests for bugs.
9032         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9033
9034         [BZ #14064]
9035         * math/libm-test.inc (check_float_internal): Correct ulp
9036         calculation for subnormal expected results.
9037
9038 2012-05-06  Andreas Jaeger  <aj@suse.de>
9039
9040         * Makeconfig (+math-flags): New, set to -frounding-math.
9041         (+cflags): Add +math-flags so that all of glibc gets compiled with
9042         it.
9043
9044         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9045
9046 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9047
9048         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9049         Disable one test.
9050
9051         [BZ #13787]
9052         [BZ #13922]
9053         [BZ #14036]
9054         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9055         (__ieee754_expl): Allow for and saturate large arguments.
9056         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9057         (u_threshold): Likewise.
9058         (__exp): Call __ieee754_exp before checking for overflow and
9059         underflow.
9060         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9061         (u_threshold): Likewise.
9062         (__expf): Call __ieee754_expf before checking for overflow and
9063         underflow.
9064         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9065         (u_threshold): Likewise.
9066         (__expl): Call __ieee754_expl before checking for overflow and
9067         underflow.
9068         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9069         (__ieee754_expl): Allow for and saturate large arguments.
9070         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9071         missing overflow exception on overflow.
9072         (expm1_test): Do not allow missing overflow exception on overflow.
9073
9074         * sysdeps/i386/fpu/e_expl.c: Move to ...
9075         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9076         rather than using inline asm.
9077         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9078         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9079         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9080
9081         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9082         (nice): Likewise.
9083         (poll): Likewise.
9084         (signal): Likewise.
9085         (time): Likewise.
9086         (times): Likewise.
9087
9088 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9089
9090         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9091         sysdeps/unix/common/syscalls.list.
9092         (fchmod): Likewise.
9093         (fchown): Likewise.
9094         (ftruncate): Likewise.
9095         (getrusage): Likewise.
9096         (gettimeofday): Likewise.
9097         (setpgid): Likewise.
9098         (setregid): Likewise.
9099         (setreuid): Likewise.
9100         (sigaction): Likewise.
9101         (truncate): Likewise.
9102         (vhangup): Likewise.
9103         * sysdeps/unix/common/syscalls.list: Remove file.
9104         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9105         * sysdeps/unix/sysv/linux/Implies: Likewise.
9106
9107 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9108
9109         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9110         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9111         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9112         Moved to ...
9113         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9114         Here.
9115         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9116         to ...
9117         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9118         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9119         to ...
9120         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9121         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9122         to ...
9123         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9124         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9125         to ...
9126         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9127         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9128         to ...
9129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9130         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9131         to ...
9132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9133         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9134         to ...
9135         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9136         Here.
9137         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9138         to ...
9139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9140         Here.
9141         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9142         to ...
9143         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9144         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9145         Moved to ...
9146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9147         Here.
9148         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9149         to ...
9150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9151
9152 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9153
9154         * sysdeps/unix/common/bits/dirent.h: Remove file.
9155         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9156
9157         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9158         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9159         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9160         * sysdeps/unix/bsd/isatty.c: Likewise.
9161         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9162         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9163         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9164
9165 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9166
9167         [BZ #13563]
9168         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9169         long double comparison inaccuracies.
9170         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9171         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9172
9173 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9174
9175         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9176         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9177
9178 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9179
9180         [BZ #14049]
9181         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9182         nonzero digits before rounding a hex value.
9183         * stdlib/tst-strtod.c (tests): Add another test.
9184
9185 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9186
9187         * sysdeps/s390/fpu/libm-test-ulps: Update.
9188
9189 2012-05-03  Andreas Jaeger  <aj@suse.de>
9190
9191         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9192         does not get optimized out.
9193         (malloc_opt_barrier): New.
9194
9195 2012-05-03  Andreas Jaeger  <aj@suse.de>
9196             Roland McGrath  <roland@hack.frob.com>
9197
9198         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9199         intermediate file deletion.
9200         (generated): Add .symlist files.
9201
9202 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9203
9204         [BZ #13775]
9205         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9206         Redirect under this condition.
9207         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9208         [__USE_GNU] (__dprintf_chk): Not under this condition.
9209         [__USE_GNU] (__vdprintf_chk): Likewise.
9210         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9211         under this condition.
9212         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9213         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9214         [__USE_XOPEN2K8] (vdprintf): Likewise.
9215         [__USE_GNU] (__dprintf_chk): Not under this condition.
9216         [__USE_GNU] (__vdprintf_chk): Likewise.
9217         [__USE_GNU] (dprintf): Likewise.
9218         [__USE_GNU] (vdprintf): Likewise.
9219
9220 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9221
9222         * elf/Makefile (common-generated): Set this instead of generated for
9223         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9224         $(all-built-dso)-derived lists.
9225
9226 2012-05-03  Andreas Jaeger  <aj@suse.de>
9227
9228         * sysdeps/i386/fpu/libm-test-ulps: Update.
9229
9230         * FAQ: Removed.
9231         * FAQ.in: Likewise.
9232         * scripts/gen-FAQ.pl: Likewise.
9233         * manual/install.texi (Installation): Point to online location of
9234         FAQ.
9235         * Makefile (files-for-dist): Remove FAQ.
9236         (FAQ): Remove.
9237
9238 2012-05-02  Allan McRae  <allan@archlinux.org>
9239
9240         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9241         (LDFLAGS-reldepmod5.so): Likewise.
9242         (LDFLAGS-reldep6mod1.so): Likewise.
9243         (LDFLAGS-reldep6mod4.so): Likewise.
9244         (LDFLAGS-reldep8mod3.so): Likewise.
9245         (LDFLAGS-unload4mod1.so): Likewise.
9246         (LDFLAGS-unload4mod2.so): Likewise.
9247         (LDFLAGS-tst-initorder): Likewise.
9248         (LDFLAGS-tst-initordera2.so): Likewise.
9249         (LDFLAGS-tst-initordera3.so): Likewise.
9250         (LDFLAGS-tst-initordera4.so): Likewise.
9251         (LDFLAGS-tst-initorderb2.so): Likewise.
9252         (LDFLAGS-noload): Likewise.
9253         (LDFLAGS-next): Likewise.
9254         (LDFLAGS-order2mod1.so): Likewise.
9255         (LDFLAGS-order2mod2.so): Likewise.
9256         (LDFLAGS-tst-initorder2): Likewise.
9257         (LDFLAGS-tst-initorder2a.so): Likewise.
9258         (LDFLAGS-tst-initorder2b.so): Likewise.
9259         (LDFLAGS-tst-initorder2c.so): Likewise.
9260         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9261
9262 2012-05-02  David S. Miller  <davem@davemloft.net>
9263
9264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9265
9266 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9267
9268         [BZ #14055]
9269         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9270
9271 2012-05-02  Andreas Jaeger  <aj@suse.de>
9272
9273         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9274         since we manipulate rounding mode.
9275         (CPPFLAGS-test-idouble.c): Likewise.
9276         (CPPFLAGS-test-ifloat.c): Likewise.
9277         (CFLAGS-test-ldouble.c): Likewise.
9278         (CFLAGS-test-double.c): Likewise.
9279         (CFLAGS-test-float.c): Likewise.
9280         (CFLAGS-test-misc.c): Likewise.
9281         (CFLAGS-test-test-fenv.c): Likewise.
9282
9283 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9284
9285         [BZ #2550]
9286         [BZ #2570]
9287         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9288         comparisons to determine direction to adjust input.
9289
9290 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9291
9292         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9293         output to the target.
9294
9295         * scripts/localplt.awk: New file.
9296         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9297         (check-localplt-CFLAGS): Variable removed.
9298         ($(all-built-dso:=.jmprel)): New static pattern rule.
9299         (generated): Add those targets.
9300         (localplt-built-dso): New variable.
9301         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9302
9303         * elf/check-localplt.c: File removed.
9304
9305         * scripts/check-execstack.awk: New file.
9306         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9307         (check-execstack-CFLAGS): Variable removed.
9308         ($(objpfx)check-execstack.h): Target removed.
9309         ($(objpfx)execstack-default): New target.
9310         (generated): Add that instead of check-execstack.h.
9311         ($(all-built-dso:=.phdr)): New static pattern rule.
9312         (generated): Add those targets.
9313         * elf/check-execstack.c: File removed.
9314
9315         * scripts/check-textrel.awk: New file.
9316         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9317         (check-textrel-CFLAGS): Variable removed.
9318         (all-built-dso): Use := to define.o
9319         ($(all-built-dso:=.dyn)): New static pattern rule.
9320         (generated): Add those targets.
9321         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9322         * config.make.in (READELF): New substituted variable.
9323         * elf/check-textrel.c: File removed.
9324
9325 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9326
9327         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9328         allow.
9329         * conform/data/ctype.h-data [C99-based standards] (isblank):
9330         Expect function.
9331         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9332         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9333         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9334         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9335         Specify type.  Require positive value.
9336         (EILSEQ): Likewise.
9337         (ERANGE): Likewise.
9338         [ISO || POSIX] (EILSEQ): Do not expect.
9339         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9340         Specify type.  Require positive value.
9341         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9342         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9343         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9344         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9345         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9346         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9347         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9348         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9349         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9350         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9351         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9352         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9353         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9354         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9355         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9356         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9357         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9358         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9359         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9360         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9361         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9362         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9363         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9364         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9365         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9366         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9367         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9368         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9369         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9370         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9371         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9372         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9373         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9374         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9375         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9376         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9377         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9378         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9379         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9380         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9381         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9382         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9383         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9384         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9385         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9386         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9387         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9388         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9389         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9390         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9391         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9392         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9393         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9394         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9395         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9396         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9397         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9398         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9399         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9400         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9401         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9402         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9403         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9404         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9405         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9406         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9407         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9408         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9409         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9410         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9411         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9412         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9413         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9414         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9415         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9416         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9417         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9418         Require >= 2.
9419         (FLT_ROUNDS): Expect as macro, not constant.
9420         (FLT_MANT_DIG): Use macro-int-constant.
9421         (DBL_MANT_DIG): Likewise.
9422         (LDBL_MANT_DIG): Likewise.
9423         (FLT_DIG): Likewise.
9424         (DBL_DIG): Likewise.
9425         (LDBL_DIG): Likewise.
9426         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9427         (DBL_MIN_EXP): Likewise.
9428         (LDBL_MIN_EXP): Likewise.
9429         (FLT_MAX_EXP): Use macro-int-constant.
9430         (DBL_MAX_EXP): Likewise.
9431         (LDBL_MAX_EXP): Likewise.
9432         (FLT_MAX_10_EXP): Likewise.
9433         (DBL_MAX_10_EXP): Likewise.
9434         (LDBL_MAX_10_EXP): Likewise.
9435         (FLT_MAX): Use macro-constant.
9436         (DBL_MAX): Likewise.
9437         (LDBL_MAX): Likewise.
9438         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9439         (DBL_EPSILON): Likewise.
9440         (LDBL_EPSILON): Likewise.
9441         (FLT_MIN): Likewise.
9442         (DBL_MIN): Likewise.
9443         (LDBL_MIN): Likewise.
9444         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9445         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9446         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9447         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9448         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9449         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9450         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9451         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9452         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9453         [ISO11] (FLT_TRUE_MIN): Likewise.
9454         [ISO11] (LDBL_TRUE_MIN): Likewise.
9455         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9456         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9457         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9458         (SCHAR_MAX): Likewise.
9459         (UCHAR_MAX): Likewise.
9460         (CHAR_MIN): Likewise.
9461         (CHAR_MAX): Likewise.
9462         (MB_LEN_MAX): Use macro-int-constant.
9463         (SHRT_MIN): Use macro-int-constant.  Specify type.
9464         (SHRT_MAX): Likewise.
9465         (USHRT_MAX): Likewise.
9466         (INT_MAX): Likewise.
9467         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9468         bound negative.
9469         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9470         bound with "U".
9471         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9472         bound with "L".
9473         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9474         bound negative.  Suffix upper bound with "L".
9475         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9476         bound with "UL".
9477         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9478         Specify type.
9479         [C99-based standards] (LLONG_MAX): Likewise.
9480         [C99-based standards] (ULLONG_MAX): Likewise.
9481         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9482         == 0.
9483         [ISO11] (max_align_t): Require type.
9484         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9485
9486         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9487         from $CFLAGS, without defining away __attribute__ calls.
9488         (checknamespace): Use $CFLAGS_namespace.
9489
9490         * conform/conformtest.pl (@keywords): Only include C99 keywords
9491         for standards based on C99 or C11.
9492
9493         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9494         Disable tests.
9495         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9496         UNIX98]: Likewise.
9497
9498         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9499         usability of symbols in #if.
9500
9501         * conform/conformtest.pl: If macro or constant types start
9502         "promoted:", expect the symbol to be of the following type
9503         promoted by the integer promotions.
9504
9505         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9506         in one place.  Also handle "macro-constant".
9507
9508         * conform/conformtest.pl: Only accept expected macro values with
9509         "==".  Parse all "macro" lines in one place.
9510         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9511
9512         * conform/conformtest.pl: Handle braced types on "constant" lines
9513         instead of handling "typed-constant".
9514         * conform/data/signal.h-data: Use "constant" instead of
9515         "typed-constant".
9516
9517         * conform/conformtest.pl: Handle "optional-" at start of lines in
9518         one place rather than duplicating several cases.  Handle each
9519         format of "macro" line with initial "optional-".
9520
9521         * conform/conformtest.pl: Only accept expected constant or
9522         optional-constant values with "==".  Parse all "constant" lines in
9523         one place.  Parse all "optional-constant" lines in one place.
9524         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9525         * conform/data/fmtmsg.h-data: Likewise.
9526         * conform/data/netinet/in.h-data: Likewise.
9527         * conform/data/tar.h-data: Likewise.
9528         * conform/data/limits.h-data: Use "==" form on "constant" and
9529         "optional-constant" lines.
9530
9531         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9532         Use -std=c99 for XOPEN2K.
9533         (@knownproblems): Remove.
9534         (newtoken): Don't check %isknown.
9535
9536         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9537         Do not expect macro.
9538         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9539         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9540         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9541         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9542         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9543         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9544         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9545         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9546         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9547         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9548         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9549         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9550         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9551         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9552         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9560         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9561         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9562         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9563         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9568         [XPG3] (acosh): Likewise.
9569         [XPG3] (asinh): Likewise.
9570         [XPG3] (atanh): Likewise.
9571         [XPG3] (cbrt): Likewise.
9572         [XPG3] (expm1): Likewise.
9573         [XPG3] (ilogb): Likewise.
9574         [XPG3] (log1p): Likewise.
9575         [XPG3] (logb): Likewise.
9576         [XPG3] (nextafter): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9579         [XPG3] (remainder): Likewise.
9580         [XPG3] (rint): Likewise.
9581         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9582         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9583         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9584         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9585         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9586         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9587         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9588         [UNIX98 || XOPEN2K] (scalb): Expect.
9589         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9590         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9591         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9592         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9594         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9595         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9596         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9597         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9598         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9599         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9600         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9601         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9602         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9603         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9604         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9605         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9606         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9607         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9608         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9609         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9610         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9611         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9612         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9613         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9614         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9615         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9616         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9617         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9618         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9619         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9620         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9621         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9622         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9623         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9624         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9625         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9626         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9627         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9628         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9629         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9630         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9631         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9632         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9633         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9634         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9635         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9636         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9637         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9638         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9639         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9640         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9641         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9642         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9643         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9644         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9645         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9646         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9647         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9648         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9649         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9650         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9651         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9652         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9653         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9654         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9655         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9656         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9657         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9658         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9659         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9660         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9661         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9662         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9663         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9664         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9665         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9666         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9667         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9668         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9669         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9670         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9671         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9672         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9673         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9674         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9675         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9676         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9677         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9678         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9679         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9680         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9681         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9682         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9683         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9684         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9685         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9686         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9687         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9688         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9689         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9690         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9691         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9692         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9693         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9694         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9695         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9696         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9697         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9698         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9699         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9700         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9701         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9702         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9703         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9704         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9705         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9706         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9707         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9708         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9709         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9710         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9711         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9712         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9713         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9714         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9715         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9716         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9717         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9718         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9719         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9720         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9721         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9722         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9723         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9724         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9725         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9726
9727         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9728         _XOPEN_SOURCE_EXTENDED for XPG4.
9729
9730         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9731
9732         * Makeconfig (localtime): Remove variable.
9733         (inst_localtime-file): Likewise.
9734
9735 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9736
9737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9738         Update.
9739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9740         Update.
9741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9742         Update.
9743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9744         Update.
9745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9746         Update.
9747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9748         Update.
9749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9750         Update.
9751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9752         Update.
9753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9754         Update.
9755
9756 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9757
9758         [BZ #2550]
9759         [BZ #2570]
9760         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9761         comparisons to determine direction to adjust input.
9762         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9763         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9764         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9765         Likewise.
9766         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9767         Likewise.
9768         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9769         Likewise.
9770         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9771         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9772         Likewise.
9773         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9774         Likewise.
9775         * math/libm-test.inc (nexttoward_test): Add more tests.
9776
9777 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9778
9779         [BZ #14040]
9780         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9781         in version GLIBC_2.1, not GLIBC_2.0.
9782         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9783         Likewise.
9784
9785 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9786
9787         [BZ #13942]
9788         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9789         (1 - x) * (1 + x).
9790         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9791         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9792         * math/libm-test.inc (acos_test): Add more tests.
9793         (asin_test): Likewise.
9794         * sysdeps/i386/fpu/libm-test-ulps: Update.
9795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9796
9797         [BZ #14034]
9798         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9799         of square root.
9800         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9801         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9802         * math/libm-test.inc (acos_test_tonearest): New function.
9803         (acos_test_towardzero): Likewise.
9804         (acos_test_downward): Likewise.
9805         (acos_test_upward): Likewise.
9806         (asin_test_tonearest): Likewise.
9807         (asin_test_towardzero): Likewise.
9808         (asin_test_downward): Likewise.
9809         (asin_test_upward): Likewise.
9810         (main): Call the new functions.
9811         * sysdeps/i386/fpu/libm-test-ulps: Update.
9812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9813
9814         [BZ #13884]
9815         [BZ #13924]
9816         * math/e_exp10.c: Include <float.h>.
9817         (__ieee754_exp10): Handle underflow here rather than multiplying
9818         large negative argument by M_LN10.
9819         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9820         of __ieee754_expf.
9821         * math/e_exp10l.c: Include <float.h>.
9822         (__ieee754_exp10l): Handle underflow here rather than multiplying
9823         large negative argument by M_LN10l.
9824         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9825         spurious overflow exception on underflow.
9826
9827 2012-04-29  Marek Polacek  <polacek@redhat.com>
9828
9829         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9830         (__fortify_function): New macro.
9831         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9832         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9833         __extern_always_inline.
9834         * libio/bits/stdio2.h: Likewise.
9835         * libio/bits/stdio.h: Likewise.
9836         * string/string.h: Likewise.
9837         * string/bits/string3.h: Likewise.
9838         * include/stdio.h: Likewise.
9839         * stdlib/bits/stdlib.h: Likewise.
9840         * stdlib/stdlib.h: Likewise.
9841         * rt/bits/mqueue2.h: Likewise.
9842         * rt/mqueue.h: Likewise.
9843         * posix/bits/unistd.h: Likewise.
9844         * posix/unistd.h: Likewise.
9845         * io/bits/poll2.h: Likewise.
9846         * io/bits/fcntl2.h: Likewise.
9847         * io/fcntl.h: Likewise.
9848         * io/sys/poll.h: Likewise.
9849         * misc/bits/syslog.h: Likewise.
9850         * misc/bits/syslog-ldbl.h: Likewise.
9851         * misc/sys/syslog.h: Likewise.
9852         * socket/bits/socket2.h: Likewise.
9853         * socket/sys/socket.h: Likewise.
9854         * debug/tst-chk1.c: Likewise.
9855         * wcsmbs/bits/wchar2.h: Likewise.
9856         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9857         * wcsmbs/wchar.h: Likewise.
9858
9859 2012-04-29  Andreas Jaeger  <aj@suse.de>
9860
9861         * Makerules (tests): Remove enable-check-abi protection.
9862         (check-abi-warn): Remove.
9863         (check-abi-%): Remove check-abi-warn usage.
9864
9865         * configure.in: Remove check-abi configure option.
9866         * configure: Regenerated.
9867         * config.make.in (enable-check-abi): Remove.
9868
9869 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9870
9871         [BZ #14033]
9872         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9873         double functions to double *_finite functions.
9874
9875         [BZ #13941]
9876         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9877         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9878         LDBL_MIN_EXP.
9879         * stdio-common/Makefile (tests): Add tst-sprintf3.
9880         * stdio-common/tst-sprintf3.c: New file.
9881
9882         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9883         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9884
9885 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9886
9887         * conform/conformtest.pl: Remove duplicate typed-constant
9888         handling.
9889
9890 2012-04-28  David S. Miller  <davem@davemloft.net>
9891
9892         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9893         (check-abi-%): Remove AWK script prerequisite and explicit
9894         abilist directory.
9895         (check-abi): Rewrite to just diff the symlist with the abilist.
9896         (config-tls, config-abi-config): Delete, no longer used.
9897         (update-abi-%): Remove AWK script and explicit abilist directory.
9898         (update-abi): Rewrite to simply compare and conditionally copy the
9899         symlist and the sysdep abilist file.  Remove update-abi-config
9900         checks.
9901         * abilist/ld.abilist: Remove.
9902         * abilist/libBrokenLocale.abilist: Remove.
9903         * abilist/libanl.abilist: Remove.
9904         * abilist/libcrypt.abilist: Remove.
9905         * abilist/libdl.abilist: Remove.
9906         * abilist/librt.abilist: Remove.
9907         * abilist/libthread_db.abilist: Remove.
9908         * abilist/libutil.abilist: Remove.
9909         * scripts/extract-abilist.awk: Remove.
9910         * scripts/merge-abilist.awk: Remove.
9911         * sysdeps/generic/libcidn.abilist: New file.
9912         * sysdeps/generic/libnss_compat.abilist: New file.
9913         * sysdeps/generic/libnss_db.abilist: New file.
9914         * sysdeps/generic/libnss_dns.abilist: New file.
9915         * sysdeps/generic/libnss_files.abilist: New file.
9916         * sysdeps/generic/libnss_hesiod.abilist: New file.
9917         * sysdeps/generic/libnss_nis.abilist: New file.
9918         * sysdeps/generic/libnss_nisplus.abilist: New file.
9919         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9920         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9921         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9922         file.
9923         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9924         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9925         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9926         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9927         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9928         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9929         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9930         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9931         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9932         file.
9933         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9934         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9935         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9936         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9937         file.
9938         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9939         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9940         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9941         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9942         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9943         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9944         file.
9945         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9946         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9947         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9948         file.
9949         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9950         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9951         New file.
9952         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9953         New file.
9954         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9955         New file.
9956         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9957         New file.
9958         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9959         New file.
9960         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9961         New file.
9962         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9963         New file.
9964         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9965         New file.
9966         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9967         New file.
9968         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9969         New file.
9970         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9971         New file.
9972         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9973         New file.
9974         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9975         New file.
9976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9977         file.
9978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9979         New file.
9980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9981         New file.
9982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9983         file.
9984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9985         New file.
9986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9987         New file.
9988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9989         file.
9990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9991         New file.
9992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9993         New file.
9994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9995         New file.
9996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9997         New file.
9998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9999         New file.
10000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10001         New file.
10002         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10004         file.
10005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10006         New file.
10007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10008         file.
10009         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10010         file.
10011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10012         file.
10013         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10014         file.
10015         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10016         file.
10017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10018         New file.
10019         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10020         file.
10021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10022         file.
10023         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10024         New file.
10025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10026         file.
10027         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10029         file.
10030         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10031         New file.
10032         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10033         file.
10034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10035         file.
10036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10037         file.
10038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10039         file.
10040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10041         file.
10042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10043         New file.
10044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10045         file.
10046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10047         file.
10048         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10049         New file.
10050         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10051         file.
10052         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10053         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10054         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10055         file.
10056         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10057         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10058         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10059         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10060         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10061         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10062         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10063         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10064         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10065         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10066         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10068         file.
10069         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10070         New file.
10071         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10072         file.
10073         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10074         file.
10075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10076         file.
10077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10078         file.
10079         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10080         file.
10081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10082         New file.
10083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10084         New file.
10085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10086         file.
10087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10088         New file.
10089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10090         file.
10091         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10093         file.
10094         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10095         New file.
10096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10097         file.
10098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10099         file.
10100         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10101         file.
10102         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10103         file.
10104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10105         file.
10106         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10107         New file.
10108         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10109         New file.
10110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10111         file.
10112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10113         New file.
10114         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10115         file.
10116
10117 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10118
10119         * conform/conformtest.pl: Fix typo in handling typed-constant from
10120         allow-header.
10121
10122 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * README: Cut down references to pre-2.6 Linux kernels and
10125         Linuxthreads.  Update lists of configurations in libc and ports
10126         and sort alphabetically.  Say "or newer" with Linux kernel version
10127         requirements.
10128
10129         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10130
10131 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10132
10133         [BZ #887]
10134         * math/libm-test.inc (logb_test_downward): New test to expose
10135         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10136         rounding mode.
10137
10138 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10139
10140         [BZ #14027]
10141         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10142         to be done.
10143         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10144         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10145
10146 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10147
10148         * sysdeps/unix/i386/brk.S: Remove file.
10149         * sysdeps/unix/i386/dl-brk.S: Likewise.
10150         * sysdeps/unix/i386/pipe.S: Likewise.
10151         * sysdeps/unix/i386/sigreturn.S: Likewise.
10152         * sysdeps/unix/i386/syscall.S: Likewise.
10153         * sysdeps/unix/i386/vfork.S: Likewise.
10154         * sysdeps/unix/i386/wait.S: Likewise.
10155
10156         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10157         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10158
10159         * configure.in (arm*-none*): Do not allow without
10160         --enable-hacker-mode.
10161         (netbsd*): Remove case setting base_os.
10162         (386bsd*): Likewise.
10163         (freebsd*): Likewise.
10164         (bsdi*): Likewise.
10165         (osf*): Likewise.
10166         (sunos*): Likewise.
10167         (ultrix*): Likewise.
10168         (newsos*): Likewise.
10169         (dynix*): Likewise.
10170         (*bsd*): Likewise.
10171         (sysv*): Likewise.
10172         (isc*): Likewise.
10173         (esix*): Likewise.
10174         (sco*): Likewise.
10175         (minix*): Likewise.
10176         (irix4*): Likewise.
10177         (irix6*): Likewise.
10178         (solaris[2-9]*): Likewise.
10179         (none): Likewise.
10180         * configure: Regenerated.
10181
10182 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10183
10184         [BZ #11521]
10185         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10186         overflow or cancellation in calculating denominator.
10187         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10188         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10189         down expression to avoid unexpected rounding in newer GCCs.
10190         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10191
10192 2012-04-26  David S. Miller  <davem@davemloft.net>
10193
10194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10195         long-double compat symbols.
10196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10201         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10203         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10209
10210 2012-04-25  David S. Miller  <davem@davemloft.net>
10211
10212         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10213         HWCAP_* values only after the memory barriers have been defined.
10214         (atomic_full_barrier): Define.
10215         (atomic_read_barrier): Define.
10216         (atomic_write_barrier): Define.
10217
10218 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10219
10220         * shlib-versions: Add libgcc_s version information.
10221         * sysdeps/generic/libgcc_s.h: Remove.
10222         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10223         libgcc_s.h.
10224         * sysdeps/gnu/unwind-resume.c: Likewise.
10225         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10226
10227 2012-04-25  David S. Miller  <davem@davemloft.net>
10228
10229         * sysdeps/unix/sparc/brk.S: Delete.
10230         * sysdeps/unix/sparc/dl-brk.S: Delete.
10231         * sysdeps/unix/sparc/pipe.S: Delete.
10232         * sysdeps/unix/sparc/sysdep.S: Delete.
10233         * sysdeps/unix/sparc/sysdep.h: Delete.
10234         * sysdeps/unix/sparc/vfork.S: Delete.
10235         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10236         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10237         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10238         ret_ERRVAL, r0, r1, MOVE): Define.
10239         (JUMPTARGET): Remove.
10240         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10241         sysdeps/unix/sparc/sysdep.h
10242         (ENTRY, END): Remove.
10243         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10244
10245 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10246
10247         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10248         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10249         -DIS_IN_build.
10250
10251         * timezone/README: Update upstream location and email address for
10252         tzcode and tzdata.
10253         * timezone/zdump.c: Update from tzcode 2012b.
10254         * timezone/zic.c: Likewise.
10255
10256         * configure.in (libc_cv_as_needed): Remove test.
10257         * configure: Regenerated.
10258         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10259         conditional definition.
10260         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10261         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10262         * config.make.in (have-as-needed): Remove variable.
10263
10264 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10265             Paul Pluzhnikov  <ppluzhnikov@google.com>
10266
10267         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10268         strings correctly.
10269
10270 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10271
10272         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10273         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10274         * sysdeps/sh/strlen.S: Likewise.
10275
10276 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10277
10278         * sysdeps/unix/fork.S: Remove file.
10279         * sysdeps/unix/i386/fork.S: Likewise.
10280         * sysdeps/unix/sparc/fork.S: Likewise.
10281
10282         * sysdeps/unix/system.c: Remove file.
10283         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10284
10285         * sysdeps/unix/getegid.S: Remove file.
10286         * sysdeps/unix/geteuid.S: Likewise.
10287
10288 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10289
10290         * scripts/check-localplt.awk: New file.
10291         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10292         of diff.
10293         * scripts/data/localplt-generic.data: Add a comment.
10294
10295         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10296         NODE when __dir_mkfile failed.
10297         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10298         Reported by Ludovic Courtès <ludo@gnu.org>.
10299
10300 2012-04-24  Andreas Jaeger  <aj@suse.de>
10301
10302         * Makerules (common-clean): Also remove gen-as-const-headers
10303         files.
10304
10305 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10306
10307         * Makerules (native-compile): Do not change working directory for
10308         build.  Use $(OUTPUT_OPTION) in command.
10309         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10310
10311 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10312
10313         [BZ #13886]
10314         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10315         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10316         * math/libm-test.inc (floor_test): Add more tests.
10317         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10318
10319 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10320
10321         * sysdeps/unix/getdents.c: Remove file.
10322         * sysdeps/unix/sysv/getdents.c: Likewise.
10323         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10324
10325         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10326         sysdeps/unix/mman/syscalls.list.
10327         (mmap): Likewise.
10328         (mprotect): Likewise.
10329         (msync): Likewise.
10330         (munmap): Likewise.
10331         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10332         * sysdeps/unix/mman/syscalls.list: Remove.
10333         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10334
10335         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10336         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10337         * configure: Regenerated.
10338         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10339         $(libgcc_s_suffix).
10340         * config.make.in (libgcc_s_suffix): Remove variable.
10341
10342 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10343
10344         * sysdeps/unix/sysv/gethostname.c: Move to ...
10345         * sysdeps/posix/gethostname.c: ... here.
10346
10347         * sysdeps/unix/execve.S: Remove file.
10348
10349         * sysdeps/unix/_exit.S: Remove file.
10350
10351 2012-04-23  Andreas Jaeger  <aj@suse.de>
10352
10353         [BZ #13739]
10354         * manual/Makefile: Remove make dist support, there's no
10355         need for a stand-alone documentation tar ball.
10356         (TEXI2DVI): Define always, it's not in Makeconfig.
10357         (dist): Removed.
10358         (tar-it): Removed.
10359         (edition): Removed.
10360         (glibc-doc-$(edition).tar): Removed
10361         (%.Z): Removed.
10362         (%.gz): Removed.
10363         (%.uu): Removed.
10364         (ETAGS): Remove, it's in Makeconfig.
10365         (move-if-change): Remove, it's in Makeconfig.
10366
10367 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10368
10369         [BZ #13970]
10370         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10371         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10372         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10373         (strtod_l, strtof_l, strtold_l): Remove __wur.
10374         It is not necessarily an error to ignore strtol's return value.
10375         One can reliably look at the stored endptr to decide whether
10376         the number had valid syntax.
10377
10378 2012-04-21  Andreas Jaeger  <aj@suse.de>
10379
10380         [BZ #13739]
10381         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10382
10383 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10384
10385         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10386         * sysdeps/unix/sysv/Versions: Remove file.
10387
10388 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10389
10390         [BZ #13927]
10391         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10392
10393 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10394
10395         [BZ #7064]
10396         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10397         version from __vm86.
10398
10399 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10400
10401         * sysdeps/unix/common/lxstat.c: Remove file.
10402         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10403
10404         * sysdeps/unix/sysv/Makefile: Remove file.
10405
10406         * sysdeps/unix/sysv/direct.h: Remove file.
10407
10408         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10409         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10410         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10411         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10412         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10413         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10414         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10415
10416         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10417
10418         * sysdeps/unix/xmknod.c: Remove file.
10419         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10420
10421         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10422
10423         * sysdeps/unix/sysv/i386/time.S: Remove file.
10424
10425         * sysdeps/unix/fxstat.c: Remove file.
10426         * sysdeps/unix/xstat.c: Likewise.
10427         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10428
10429         * sysdeps/unix/sysv/sigaction.c: Remove file.
10430
10431         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10432         (sysdep_headers): Remove variable.
10433         [termio.h not in sysdep_headers] (generated): Likewise.
10434         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10435         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10436         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10437         * sysdeps/unix/sysv/tcflow.c: Likewise.
10438         * sysdeps/unix/sysv/tcflush.c: Likewise.
10439         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10440         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10441         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10442         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10443         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10444
10445         * sysdeps/unix/siglist.c: Remove file.
10446
10447         * sysdeps/unix/getppid.S: Remove file.
10448
10449         * sysdeps/unix/mkdir.c: Remove file.
10450         * sysdeps/unix/rmdir.c: Likewise.
10451
10452 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10453
10454         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10455         ERR_MAX value.
10456         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10457         errlist-compat value.
10458
10459 2012-04-18  David S. Miller  <davem@davemloft.net>
10460
10461         * sysdeps/generic/memcopy.h (reg_char): Delete.
10462         * debug/strcat_chk.c: Use char, not reg_char.
10463         * debug/strcpy_chk.c: Likewise.
10464         * debug/strncat_chk.c: Likewise.
10465         * debug/strncpy_chk.c: Likewise.
10466         * string/memchr.c: Likewise.
10467         * string/memrchr.c: Likewise.
10468         * string/rawmemchr.c: Likewise.
10469         * string/strcat.c: Likewise.
10470         * string/strchr.c: Likewise.
10471         * string/strchrnul.c: Likewise.
10472         * string/strcmp.c: Likewise.
10473         * string/strcpy.c: Likewise.
10474         * string/strncat.c: Likewise.
10475         * string/strncmp.c: Likewise.
10476         * string/strncpy.c: Likewise.
10477
10478 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10479
10480         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10481         __builtin_memcopy is called when src and dest ranges are known to not
10482         overlap.
10483
10484 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10485
10486         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10487         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10488         fwd_align_merge macro call.
10489         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10490         bwd_align_merge macro call.
10491         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10492
10493 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10494
10495         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10496         bwd_align_merge macros.
10497         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10498         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10499         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10500
10501 2012-04-18  David S. Miller  <davem@davemloft.net>
10502
10503         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10504
10505 2012-04-18  Andreas Jaeger  <aj@suse.de>
10506
10507         [BZ# 6794]
10508         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10509         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10510         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10511
10512         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10513         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10514         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10515
10516         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10517         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10518         Adjust for changed ldbl-128 files.
10519
10520         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10521         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10522         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10523
10524 2012-04-17  David S. Miller  <davem@davemloft.net>
10525
10526         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10527
10528 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10529
10530         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10531         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10532         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10533         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10534         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10535         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10536
10537 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10538
10539         [BZ #6794]
10540         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10541         * math/libm-test.inc: Add ilogb errno and exception tests.
10542         * math/w_ilogb.c: New file: ilogb wrapper.
10543         * math/w_ilogbf.c: New file: ilogbf wrapper.
10544         * math/w_ilogbl.c: New file: ilogbl wrapper.
10545         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10546         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10547         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10548         exception being thrown with 0.0 as argument.
10549         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10550         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10551         exception being thrown with 0.0 as argument.
10552         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10553         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10554         exception being thrown with 0.0 as argument.
10555         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10556         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10557         exception being thrown with 0.0 as argument.
10558         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10559         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10560         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10561         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10562         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10563         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10564         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10565         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10566         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10567
10568 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10569
10570         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10571         with altivec.
10572
10573 2012-04-16  Marek Polacek  <polacek@redhat.com>
10574
10575         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10576
10577 2012-04-16  Marek Polacek  <polacek@redhat.com>
10578
10579         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10580         operands of fdivp instruction.
10581
10582 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10583
10584         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10585         * elf/tst-auditmod3b.c: Likewise.
10586         * elf/tst-auditmod4b.c: Likewise.
10587         * elf/tst-auditmod5b.c: Likewise.
10588         * elf/tst-auditmod6b.c: Likewise.
10589         * elf/tst-auditmod6c.c: Likewise.
10590         * elf/tst-auditmod7b.c: Likewise.
10591         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10592         * sysdeps/x86_64/preconfigure.in: Likewise.
10593         * sysdeps/x86_64/preconfigure: Regenerated.
10594
10595 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10596
10597         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10598         __ILP32__.
10599
10600 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10601
10602         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10603         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10604
10605 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10606
10607         [BZ #13973]
10608         * locale/iso-639.def: Fix gl language name. Spotted by
10609         Yaron Shahrabani.
10610
10611 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10612
10613         [BZ #2074]
10614         * libio/libio.h (__io_write_fn): Update comment.
10615
10616 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10617
10618         [BZ #2074]
10619         * stdio.texi (Hook Functions): The user provided writer function
10620         is not allowed to return -1.
10621
10622 2012-04-11  David S. Miller  <davem@davemloft.net>
10623
10624         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10625
10626 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10627
10628         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10629         Add a leading slash to rtkaio.
10630
10631 2012-04-11  Jim Meyering  <meyering@redhat.com>
10632
10633         [BZ #11959]
10634         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10635         It is not necessarily an error to ignore fwrite's return
10636         value.  One can reliably use ferror to test for errors after
10637         the fact.
10638
10639 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10640
10641         * bits/types.h (__snseconds_t): New type.
10642         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10643
10644         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10645         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10646         (__SNSECONDS_T_TYPE): Likewise.
10647         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10648         (__SNSECONDS_T_TYPE): Likewise.
10649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10650         (__SNSECONDS_T_TYPE): Likewise.
10651
10652 2012-04-10  Andreas Jaeger  <aj@suse.de>
10653
10654         [BZ #2636]
10655         * manual/time.texi (Processor Time): Return type of times is
10656         elapsed real time since an arbitrary point in the past.
10657         (CPU Time): Move CLK_TCK from here...
10658         (Processor Time): ...to here.  Correct description.
10659         * manual/conf.texi (Constants for Sysconf): Correct description of
10660         _SC_CLK_TCK.
10661
10662 2012-04-10  David S. Miller  <davem@davemloft.net>
10663
10664         [BZ #13967]
10665         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10666         where the is a gap between DT_REL(A) and DT_JMPREL.
10667
10668 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10669
10670         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10671         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10672         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10673
10674 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10675
10676         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10677         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10678         (dl_main): Handle --inhibit-cache.
10679         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10680         _dl_inhibit_cache.
10681         * elf/dl-load.c (_dl_map_object): Use it.
10682         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10683
10684 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10685
10686         [BZ #13872]
10687         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10688         (__ieee754_powl): Saturate large exponents rather than testing for
10689         overflow of y*log2(x).
10690         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10691         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10692         exceptions.
10693
10694         [BZ #11521]
10695         * math/s_ctan.c: Include <float.h>.
10696         (__ctan): Avoid internal overflow or cancellation in calculating
10697         denominator.
10698         * math/s_ctanf.c: Likewise.
10699         * math/s_ctanl.c: Likewise.
10700         * math/s_ctanh.c: Likewise.
10701         * math/s_ctanhf.c: Likewise.
10702         * math/s_ctanhl.c: Likewise.
10703         * math/libm-test.inc (ctan_test): Add more tests.
10704         (ctanh_test): Likewise.
10705         * sysdeps/i386/fpu/libm-test-ulps: Update.
10706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10707
10708 2012-04-09  Andreas Jaeger  <aj@suse.de>
10709
10710         [BZ #6894]
10711         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10712         is an optional BSD extension.
10713
10714         [BZ #10254]
10715         * manual/stdio.texi (Opening Streams): Document additional fopen
10716         parameters.
10717
10718 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10719
10720         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10721         %eax without telling the compiler.
10722
10723 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10724
10725         [BZ # 13963]
10726         * manual/install.texi: Use sourceware.org.
10727
10728 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10729
10730         [BZ #13873]
10731         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10732         (__ieee754_pow): Generate overflow and underflow using huge*huge
10733         and tiny*tiny rather than just returning constant infinity or zero
10734         for large exponents.
10735         * math/libm-test.inc (pow_test): Require overflow exceptions for
10736         applicable cases of large exponents.
10737
10738         [BZ #706]
10739         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10740         (__ieee754_pow): Use iterative multiplication algorithm only for
10741         integer exponents with absolute value below 1024.  Check for odd
10742         integer exponents when using algorithm for real exponents.
10743         * math/libm-test.inc (pow_test): Add more tests.
10744         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10745
10746 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10747
10748         [BZ #13705]
10749         * math/libm-test.inc (exp_test): Do not allow overflow exception
10750         on underflow test.
10751
10752 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10753
10754         [BZ #13705]
10755         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10756         instead of __kernel_standard_f.
10757
10758 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10759
10760         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10761         * sysdeps/x86_64/memset_chk.S: Likewise.
10762
10763 2012-04-08  Andreas Jaeger  <aj@suse.de>
10764
10765         [BZ #10153]
10766         * manual/startup.texi (Environment Access): Describe return value
10767         for putenv and setenv.
10768
10769         [BZ #6895]
10770         * manual/filesys.texi (Directory Entries): Add description for
10771         DT_LNK.
10772
10773         [BZ #6890]
10774         * manual/filesys.texi (Directory Entries): Clarify that it's file
10775         system not operating system in the description of DT_UNKNOWN.
10776
10777         [BZ #6578]
10778         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10779
10780 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10781
10782         [BZ #6649]
10783         * manual/llio.texi (Opening and Closing Files): Add cross
10784         reference to explain mode argument.
10785
10786 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10787
10788         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10789         * sysdeps/x86_64/memset_chk.S: Likewise.
10790
10791 2012-04-07  David S. Miller  <davem@davemloft.net>
10792
10793         * elf/elf.h (R_SPARC_WDISP10): Define.
10794         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10795         R_SPARC_SIZE32.
10796         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10797         R_SPARC_SIZE64 and R_SPARC_H34.
10798
10799 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10800
10801         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10802         conditions and remove no longer applicable assertion.
10803
10804 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10805
10806         * bits/byteswap.h: Include <features.h>.
10807         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10808         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10809
10810 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         * bits/byteswap.h (__bswap_16): Removed.
10813         Include <bits/byteswap-16.h> to get __bswap_16.
10814         * sysdeps/i386/bits/byteswap.h: Likewise.
10815         * sysdeps/s390/bits/byteswap.h: Likewise.
10816         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10817         * bits/byteswap-16.h: New file.
10818         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10819         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10820         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10821         * string/Makefile (headers): Add bits/byteswap-16.h.
10822
10823 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10824
10825         [BZ #13895]
10826         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10827         extra indirection.
10828         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10829         * nss/tst-nss-static.c: New.
10830
10831 2012-04-06  Robert Millan  <rmh@gnu.org>
10832
10833         [BZ #6486]
10834         * manual/llio.texi (File Position Primitive): lseek
10835         refers to WHENCE when it really means OFFSET.
10836
10837 2012-04-06  Andreas Jaeger  <aj@suse.de>
10838
10839         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10840         strncmp declarations.
10841
10842         * abilist/libc.abilist: Add __poll and __ppoll.
10843
10844 2012-04-05  David S. Miller  <davem@davemloft.net>
10845
10846         * scripts/check-local-headers.sh: Accept a host triplet in the
10847         path matched by the exclude regexp.
10848
10849         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10850         definition.
10851         * sysdeps/powerpc/powerpc32/dl-machine.h
10852         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10853         * sysdeps/s390/s390-32/dl-machine.h
10854         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10855         * sysdeps/sparc/sparc32/dl-machine.h
10856         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10857         * sysdeps/sparc/sparc64/dl-machine.h
10858         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10859
10860         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10861         lazy binding.
10862         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10863         undefined symbol errors.
10864
10865         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10866         DT_NEEDED entries.
10867
10868 2012-04-05  Michael Matz  <matz@suse.de>
10869
10870         [BZ #13592]
10871         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10872
10873 2012-04-05  Andreas Jaeger  <aj@suse.de>
10874
10875         [BZ #13908]
10876         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10877         comment.
10878
10879 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10880
10881         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10882         which ROUND is no valid rounding mode.
10883
10884 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10885
10886         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10887         read again.
10888         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10889
10890 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10891
10892         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10893         an exception using FPU order intentionally.
10894
10895 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10896
10897         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10898         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10899         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10900         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10901
10902 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10903
10904         [BZ #12340]
10905         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10906         EINVAL when BUFLEN is too smal.
10907
10908 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10909
10910         [BZ #13553]
10911         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10912         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10913
10914 2012-04-03  Andreas Jaeger  <aj@suse.de>
10915
10916         [BZ #13938]
10917         * manual/setjmp.texi (System V contexts): Fix sentence.
10918
10919         [BZ #13926]
10920         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10921         New macro for this case.
10922         [!__GNUC__] (__bswap_64): New inline function for this case.
10923         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10924         * bits/byteswap.h: Likewise.
10925         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10926         ull, guard with __GLIBC_HAVE_LONG_LONG.
10927
10928         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10929         __GLIBC_HAVE_LONG_LONG.
10930
10931         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10932         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10933
10934 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10935
10936         [BZ #13691]
10937         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10938         inptr and inend, rather than using last_ch.
10939
10940 2012-04-02  David S. Miller  <davem@davemloft.net>
10941
10942         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10943         * stdio-common/printf-parse.h (read_int): Change return type to
10944         'int', return -1 on INT_MAX overflow.
10945         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10946         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10947         overflows INT_MAX.  Check for overflow of in-format-string precision
10948         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10949         SIZE_MAX not INT_MAX for integer overflow test.
10950         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10951         skip the construct in the format string but do not record anything.
10952         * stdio-common/bug22.c: Adjust to test both width/prevision
10953         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10954         explicitly for proper errno values.
10955
10956 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10957
10958         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10959         CHAR_MAX.
10960         * string/test-strcmp.c [! WIDE]: Likewise.
10961         * time/tst-mktime2.c: Likewise for INT_MAX.
10962         * string/test-string.h: #include <sys/param.h> for MIN.
10963
10964         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10965         * sysdeps/i386/init-first.c (init): Likewise.
10966         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10967         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10968         * sysdeps/sh/init-first.c (init): Likewise.
10969
10970 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10971
10972         * po/ru.po: Update from translation team.
10973         * po/vi.po: Likewise.
10974
10975 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10976
10977         * resolv/nss_dns/dns-host.c: Merge copyright years.
10978
10979 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10980
10981         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10982         Optimize memcpy with prefetch if
10983         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10984         src, dst pointers have unequal 16 byte alignments.
10985
10986 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10987
10988         [BZ #13928]
10989         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10990         from a CNAME entry and return the minimum ttl for the query.
10991         (gaih_getanswer_slice): Likewise.
10992
10993 2012-03-30  Jeff Law  <law@redhat.com>
10994
10995         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10996         due to long keys.
10997         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10998         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10999
11000         * resolv/nss_dns/dns-host.c: Update copyright year.
11001
11002 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11003
11004         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11005         requests to save a system call.  Fix check that all bytes are sent.
11006
11007         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11008         comments for sendmmsg.
11009
11010 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11011
11012         [BZ #13691]
11013         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11014         with only 1 character between 0x0041 and 0x01b0.
11015         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11016         * wcsmbs/tst-mbsnrtowcs.c: New file.
11017
11018 2012-03-29  David S. Miller  <davem@davemloft.net>
11019
11020         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11021         small copies by hand.
11022
11023 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11024
11025         [BZ #13761]
11026         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11027         _nss_compat_initgroups_dyn): Fall back to malloc/free
11028         for large group memberships.
11029
11030 2012-03-28  David S. Miller  <davem@davemloft.net>
11031
11032         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11033         that branches into memcpy.
11034         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11035         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11036         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11037         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11038         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11039         bits.
11040         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11041         implementation too.
11042         * sysdeps/sparc/mempcpy.S: New file.
11043
11044         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11045         the IFUNC routine in the libc case.
11046         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11047
11048         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11049         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11050         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11052         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11053         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11054         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11055         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11056
11057         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11058         loop to 256 bytes instead of 64 bytes and fix test signedness.
11059
11060         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11061         * sysdeps/sparc/sparc32/Makefile: rather than here...
11062         * sysdeps/sparc/sparc64/Makefile: and here.
11063
11064 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11065
11066         * malloc/mallocbug.c: Avoid warnings about unused variables.
11067
11068 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11069
11070         [BZ #13760]
11071         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11072         in the right place. Discard and retry query if response is
11073         larger than input buffer size.
11074
11075 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11076
11077         [BZ #369]
11078         [BZ #2678]
11079         [BZ #3866]
11080         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11081         x for large integer exponent.
11082         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11083         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11084         sign of result as needed afterwards.
11085         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11086         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11087         result for underflowing pow the same as for overflow.
11088         (__kernel_standard_l): Handle powl overflow and underflow here
11089         rather than calling __kernel_standard.
11090         * math/libm-test.inc (pow_test): Add more tests.
11091
11092         [BZ #3868]
11093         [BZ #13879]
11094         [BZ #13910]
11095         [BZ #13911]
11096         [BZ #13912]
11097         [BZ #13913]
11098         [BZ #13915]
11099         [BZ #13916]
11100         [BZ #13917]
11101         [BZ #13918]
11102         [BZ #13919]
11103         [BZ #13920]
11104         [BZ #13921]
11105         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11106         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11107         (__kernel_standard_l): New function.
11108         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11109         __kernel_standard.
11110         * math/w_acosl.c (__acosl): Likewise.
11111         * math/w_asinl.c (__asinl): Likewise.
11112         * math/w_atan2l.c (__atan2l): Likewise.
11113         * math/w_atanhl.c (__atanhl): Likewise.
11114         * math/w_coshl.c (__coshl): Likewise.
11115         * math/w_exp10l.c (__exp10l): Likewise.
11116         * math/w_exp2l.c (__exp2l): Likewise.
11117         * math/w_fmodl.c (__fmodl): Likewise.
11118         * math/w_hypotl.c (__hypotl): Likewise.
11119         * math/w_j0l.c (__j0l, __y0l): Likewise.
11120         * math/w_j1l.c (__j1l, __y1l): Likewise.
11121         * math/w_jnl.c (__jnl, __ynl): Likewise.
11122         * math/w_lgammal.c (__lgammal): Likewise.
11123         * math/w_log10l.c (__log10l): Likewise.
11124         * math/w_log2l.c (__log2l): Likewise.
11125         * math/w_logl.c (__logl): Likewise.
11126         * math/w_powl.c (__powl): Likewise.
11127         * math/w_remainderl.c (__remainderl): Likewise.
11128         * math/w_scalbl.c (sysv_scalbl): Likewise.
11129         * math/w_sinhl.c (__sinhl): Likewise.
11130         * math/w_sqrtl.c (__sqrtl): Likewise.
11131         * math/w_tgammal.c (__tgammal): Likewise.
11132         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11133         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11134         * math/libm-test.inc (acos_test): Add more tests.
11135         (acosh_test): Likewise.
11136         (asin_test): Likewise.
11137         (atanh_test): Likewise.
11138         (exp_test): Likewise.
11139         (exp10_test): Likewise.
11140         (exp2_test): Likewise.
11141         (expm1_test): Likewise.
11142         (lgamma_test): Likewise.
11143         (log_test): Likewise.
11144         (log10_test): Likewise.
11145         (log1p_test): Likewise.
11146         (log2_test): Likewise.
11147         (pow_test): Do not allow some spurious overflow exceptions.
11148         (sqrt_test): Add more tests.
11149         (tgamma_test): Likewise.
11150         (y0_test): Likewise.
11151         (y1_test): Likewise.
11152         (yn_test): Likewise.
11153
11154 2012-03-27  Anton Blanchard  <anton@samba.org>
11155
11156         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11157         MAP_HUGETLB.
11158         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11159         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11160         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11161
11162 2012-03-27  David S. Miller  <davem@davemloft.net>
11163
11164         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11165
11166         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11167         have-as-vis3 check.
11168
11169 2012-03-27  Andreas Jaeger  <aj@suse.de>
11170
11171         * sysdeps/x86_64/elf/configure.in: Moved to ...
11172         * sysdeps/x86_64/configure.in: ... here.
11173         * sysdeps/x86_64/elf/start.S: Moved to ...
11174         * sysdeps/x86_64/start.S: ... here.
11175         * sysdeps/x86_64/elf/configure: Delete.
11176
11177         * sysdeps/x86_64/configure.in: Merge contents from
11178         sysdeps/i386/configure.in (without i686 check).
11179
11180         * sysdeps/i386/elf/Versions: Merge into ...
11181         * sysdeps/i386/Versions: ... this.
11182         * sysdeps/i386/elf/Versions: Delete file.
11183         * sysdeps/i386/elf/start.S: Moved to ...
11184         * sysdeps/i386/start.S: ...here.
11185         * sysdeps/i386/elf/configure.in: Merge into...
11186         * sysdeps/i386/configure.in: ...here.
11187         * sysdeps/i386/elf/configure.in: Delete file.
11188         * sysdeps/i386/elf/configure: Delete file.
11189
11190         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11191         * debug/backtracesyms.c: ... here.
11192         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11193         * debug/backtracesymsfd.c: ... here.
11194         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11195         * sysdeps/generic/ifunc-sel.h: ... here.
11196
11197         * sysdeps/unix/i386/start.c: Delete file.
11198         * sysdeps/unix/sparc/start.c: Delete file.
11199         * sysdeps/unix/start.c: Delete file.
11200
11201         * sysdeps/sh/elf/configure.in: Moved to ...
11202         * sysdeps/sh/configure.in: ... here.
11203         * sysdeps/sh/elf/start.S: Moved to ...
11204         * sysdeps/sh/start.S: ... here.
11205         * sysdeps/sh/elf/configure: Delete file.
11206
11207         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11208         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11209         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11210         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11211         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11212         * sysdeps/powerpc/powerpc64/start.S: here.
11213         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11214         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11215         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11216         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11217         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11218
11219         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11220         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11221         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11222         * sysdeps/powerpc/powerpc32/start.S: ... here.
11223         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11224         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11225         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11226
11227         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11228         * sysdeps/powerpc/ifunc-sel.h: ... here.
11229         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11230         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11231
11232         * sysdeps/sparc/elf/configure.in: Moved to ...
11233         * sysdeps/sparc/configure.in: ... here.
11234         * sysdeps/sparc/elf/configure: Delete file.
11235         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11236         * sysdeps/sparc/sparc32/start.S: ... here.
11237         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11238         * sysdeps/sparc/sparc64/start.S: ... here.
11239         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11240         * sysdeps/sparc/sparc32/Makefile: ... this.
11241         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11242         * sysdeps/sparc/sparc64/Makefile: ... this.
11243
11244         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11245         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11246         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11247         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11248         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11249         * sysdeps/s390/s390-32/setjmp.S: ... here.
11250         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11251         * sysdeps/s390/s390-32/configure.in: ... here.
11252         * sysdeps/s390/s390-32/elf/configure: Delete file.
11253         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11254         * sysdeps/s390/s390-32/start.S: ... here.
11255
11256         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11257         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11258         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11259         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11260         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11261         * sysdeps/s390/s390-64/setjmp.S: ... here.
11262         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11263         * sysdeps/s390/s390-64/configure.in: ... here
11264         * sysdeps/s390/s390-64/elf/configure: Delete file.
11265         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11266         * sysdeps/s390/s390-64/start.S: ... here.
11267         * sysdeps/s390/s390-64/elf/configure: Delete.
11268
11269         * configure.in: Remove support for elf directories in sysdeps.
11270
11271         * configure: Regenerated.
11272         * sysdeps/i386/configure: Regenerated.
11273         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11274         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11275         * sysdeps/s390/s390-32/configure: Regenerated.
11276         * sysdeps/s390/s390-64/configure: Regenerated.
11277         * sysdeps/sh/configure: Regenerated.
11278         * sysdeps/sparc/configure: Regenerated.
11279         * sysdeps/x86_64/configure: Regenerated.
11280
11281 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11282
11283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11284
11285         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11286         denormal result into account.
11287
11288 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11289
11290         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11291         Reported by Allan McRae <allan@archlinux.org>.
11292
11293 2012-03-23  Jeff Law  <law@redhat.com>
11294
11295         * nss/getnssent.c (__nss_getent): Fix typo.
11296
11297 2012-03-23  David S. Miller  <davem@davemloft.net>
11298
11299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11300
11301 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11302
11303         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11304         to pad to uint64_t for each field.
11305         (dl_tls_index): Replace unsigned long with uint64_t.
11306
11307 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11308         Paul Pluzhnikov  <ppluzhnikov@google.com>
11309
11310         [BZ #6528]
11311         * grp/Makefile (otherlibs): Don't set it.
11312         * inet/Makefile (otherlibs): Likewise.
11313         * login/Makefile (otherlibs): Likewise.
11314         * nscd/Makefile (otherlibs): Likewise.
11315         * posix/Makefile (otherlibs): Likewise.
11316         * pwd/Makefile (otherlibs): Likewise.
11317         * rt/Makefile (otherlibs): Likewise.
11318         * sunrpc/Makefile (otherlibs): Likewise.
11319         * nss/Makefile (otherlibs): Likewise.
11320         Add libnss_files to routines and static-only-routines.
11321         ($(objpfx)getent): Remove rule.
11322         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11323         static-only-routines.
11324
11325 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11326
11327         [BZ #13892]
11328         * math/s_cexp.c: Include <float.h>.
11329         (__cexp): Handle exp result overflowing not necessarily
11330         overflowing both real and imaginary parts of result.
11331         * math/s_cexpf.c: Likewise.
11332         * math/s_cexpl.c: Likewise.
11333         * math/libm-test.inc (cexp_test): Add more tests.
11334         * sysdeps/i386/fpu/libm-test-ulps: Update.
11335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11336
11337 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11338
11339         * include/link.h (ELFW): New macro.
11340         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11341         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11342
11343 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11344
11345         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11346         with uint64_t.
11347
11348 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11349
11350         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11351         declaration.
11352         (struct La_x32_retval): Likewise.
11353
11354 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11355
11356         * sysdeps/x86_64/preconfigure.in: New file.
11357         * sysdeps/x86_64/preconfigure: New generated file.
11358
11359 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11360
11361         [BZ #13824]
11362         * math/e_exp2l.c: Include <float.h>.
11363         (__ieee754_exp2l): Handle overflow and underflow cases
11364         separately.  Only pass fractional part of argument to
11365         __ieee754_expl.
11366         * math/libm-test.inc (exp2_test): Add more tests.
11367
11368         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11369         negating x to take absolute value.
11370         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11371         Likewise.
11372         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11373         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11374         Likewise.
11375         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11376         computing low part if x was negated.
11377         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11378
11379 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11380
11381         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11382         la_x32_gnu_pltexit.
11383         (pltexit): Cast int_retval to ptrdiff_t.
11384         * elf/tst-auditmod3b.c: Likewise.
11385         * elf/tst-auditmod4b.c: Likewise.
11386         * elf/tst-auditmod5b.c: Likewise.
11387         * elf/tst-auditmod6b.c: Likewise.
11388         * elf/tst-auditmod6c.c: Likewise.
11389         * elf/tst-auditmod7b.c: Likewise.
11390
11391         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11392         and x32_gnu_pltexit.
11393
11394         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11395         __ELF_NATIVE_CLASS.
11396         (La_x32_regs): New macro.
11397         (La_x32_retval): Likewise.
11398         (la_x32_gnu_pltenter): New function prototype.
11399         (la_x32_gnu_pltexit): Likewise.
11400
11401 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11402
11403         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11404         exponent.
11405
11406         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11407
11408         * configure.in (libc_cv_cc_nofma): Check for option to disable
11409         generation of FMA instructions.
11410         * configure: Regenerate.
11411         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11412         * sysdeps/ieee754/dbl-64/Makefile: New file.
11413         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11414         Remove brandred-fma4.
11415         (CFLAGS-brandred-fma4.c): Remove.
11416         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11417         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11418         define.
11419         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11420         define.
11421
11422 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11423
11424         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11425         LLONG_MAX != LONG_MAX.
11426         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11427         (_fitoa_word): Likewise.
11428         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11429         LLONG_MAX != LONG_MAX.
11430         * stdio-common/_itowa.h: Include <_itoa.h>.
11431         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11432         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11433         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11434         only if not defined.
11435         (_ITOA_WORD_TYPE): Likewise.
11436         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11437         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11438
11439 2012-03-21  David S. Miller  <davem@davemloft.net>
11440
11441         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11442
11443 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11444
11445         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11446         of x86_64 when setting libc_cv_slibdir, libdir and
11447         libc_cv_localedir.
11448         * sysdeps/unix/sysv/linux/configure: Regenerated.
11449
11450 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * manual/lang.texi (Old Varargs): Remove section.
11453         (How Variadic): Update menu.
11454         (va_start): Do not mention varargs.h.
11455
11456 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11457             Joseph Myers  <joseph@codesourcery.com>
11458
11459         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11460         link test.
11461         * configure: Regenerated.
11462
11463 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11464
11465         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11466         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11467         conformtest.pl
11468
11469 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11470
11471         * NOTES: Remove.
11472         * Makefile (files-for-dist): Remove NOTES.
11473         (NOTES): Remove rule.
11474         * README: Don't refer to NOTES.
11475         * manual/creature.texi: Don't include macros.texi.
11476         * manual/intro.texi (creature.texi): Remove comment referring to
11477         NOTES.
11478
11479         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11480         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11481         * configure: Regenerated.
11482         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11483         LIBC_TRY_CC_OPTION.
11484         (libc_cv_as_i686): Likewise.
11485         (libc_cv_cc_avx): Likewise.
11486         (libc_cv_cc_sse2avx): Likewise.
11487         (libc_cv_cc_fma4): Likewise.
11488         (libc_cv_cc_novzeroupper): Likewise.
11489         * sysdeps/i386/configure: Regenerated.
11490
11491         [BZ #13883]
11492         * sysdeps/i386/fpu/s_cexp.S: Remove.
11493         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11494         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11495         * math/libm-test.inc (cexp_test): Add more tests.
11496         * sysdeps/i386/fpu/libm-test-ulps: Update.
11497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11498
11499 2012-03-21  Allan McRae  <allan@archlinux.org>
11500
11501         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11502
11503 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11504
11505         [BZ #13871]
11506         * math/w_exp2.c: Do not include <float.h>.
11507         (o_threshold, u_threshold): Remove.
11508         (__exp2): Calculate result before checking finiteness and calling
11509         __kernel_standard.
11510         * math/w_exp2f.c: Likewise.
11511         * math/w_exp2l.c: Likewise.
11512         * math/libm-test.inc (exp2_test): Require overflow exception for
11513         1e6 input.
11514
11515         [BZ #3866]
11516         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11517         range of signed 64-bit integers before using fistpll.  Remove
11518         checks for whether integers fit in mantissa bits.
11519         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11520         the range of signed 32-bit integers before using fistpl.  Remove
11521         checks for whether integers fit in mantissa bits.
11522         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11523         (__ieee754_powl): Test for y outside the range of signed 64-bit
11524         integers before using fistpll.  Reduce 64-bit values to 63-bit
11525         ones as needed.
11526         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11527         divide-by-zero is raised for zero to large negative powers.
11528         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11529         (__ieee754_powl): Test for y outside the range of signed 64-bit
11530         integers before using fistpll.  Reduce 64-bit values to 63-bit
11531         ones as needed.
11532         * math/libm-test.inc (pow_test): Add more tests.
11533
11534 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11535
11536         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11537         <stdio-common/_itoa.h>.
11538         * debug/segfault.c: Likewise.
11539         * elf/dl-cache.c: Likewise.
11540         * elf/dl-minimal.c: Likewise.
11541         * elf/dl-misc.c: Likewise.
11542         * elf/dl-sysdep.c: Likewise.
11543         * elf/dl-version.c: Likewise.
11544         * elf/rtld.c: Likewise.
11545         * hurd/hurdsock.c: Likewise.
11546         * hurd/lookup-retry.c: Likewise.
11547         * malloc/malloc.c: Likewise.
11548         * malloc/mtrace.c: Likewise.
11549         * nscd/nscd_getgr_r.c: Likewise.
11550         * nscd/nscd_getpw_r.c: Likewise.
11551         * nscd/nscd_getserv_r.c: Likewise.
11552         * posix/getopt_init.c: Likewise.
11553         * posix/wordexp.c: Likewise.
11554         * stdio-common/_itoa.c: Likewise.
11555         * stdio-common/printf_fphex.c: Likewise.
11556         * stdio-common/vfprintf.c: Likewise.
11557         * string/_strerror.c: Likewise.
11558         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11559         * sysdeps/i386/i686/hp-timing.h: Likewise.
11560         * sysdeps/mach/_strerror.c: Likewise.
11561         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11562         * sysdeps/mach/hurd/sethostid.c: Likewise.
11563         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11564         * sysdeps/mach/xpg-strerror.c: Likewise.
11565         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11566         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11567         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11568         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11569         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11570         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11571         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11572         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11573         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11574         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11575         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11576         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11577         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11578         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11579         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11580         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11581         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11582         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11583         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11584         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11585         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11586
11587         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11588
11589         * stdio-common/_itoa.h: Moved to ...
11590         * sysdeps/generic/_itoa.h: Here.
11591
11592         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11593
11594         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11595         instead of "_itoa.h" and "_itowa.h".
11596         * stdio-common/vfprintf.: Likewise.
11597
11598 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11599
11600         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11601         <bits/wordsize.h>.
11602         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11603         (__signbit): Likwise.
11604         (llrintf): Likwise.
11605         (llrint): Likwise.
11606
11607 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11608
11609         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11610         __WORDSIZE != 64.
11611
11612 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11613
11614         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11615         OVERFLOW_EXCEPTION_OK.
11616         * math/libm-test.inc ("Philosophy"): Update comment about
11617         exception testing.
11618         (OVERFLOW_EXCEPTION): Define.
11619         (OVERFLOW_EXCEPTION_OK): Likewise.
11620         (INVALID_EXCEPTION_OK): Renumber.
11621         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11622         (IGNORE_ZERO_INF_SIGN): Likewise.
11623         (test_exceptions): Handle FE_OVERFLOW.
11624         (exp10_test): Expect overflow exceptions.
11625         (exp2_test): Likewise.
11626         (expm1_test): Likewise.
11627         (nextafter_test): Likewise.
11628         (pow_test): Likewise.
11629         (scalbn_test): Likewise.
11630         (scalbln_test): Likewise.
11631
11632 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11633
11634         * sysdeps/x86_64/bits/atomic.h
11635         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11636         64bit integer.
11637         (atomic_exchange_acq): Likewise.
11638         (__arch_exchange_and_add_body): Likewise.
11639         (__arch_add_body): Likewise.
11640         (atomic_add_negative): Likewise.
11641         (atomic_add_zero): Likewise.
11642
11643 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11644
11645         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11646         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11647
11648 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11649
11650         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11651         Check __x86_64__ instead of __WORDSIZE.
11652
11653 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11654
11655         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11656
11657 2012-03-19  David S. Miller  <davem@davemloft.net>
11658
11659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11660
11661         * sysdeps/sparc/fpu/fenv_private.h: New file.
11662         * sysdeps/sparc/fpu/math_private.h: Use it.
11663         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11664         Remove.
11665         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11666         (libc_feholdexcept_setroundl): Remove.
11667         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11668         Remove.
11669         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11670         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11671
11672 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11673
11674         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11675         int64_t instead of long int.
11676         (INSERT_WORDS64): Likwise.
11677
11678 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11679
11680         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11681         _Unwind_GetCFA return to _Unwind_Ptr first.
11682
11683 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11684
11685         [BZ #13629]
11686         * math/s_clog.c: Include <float.h>.
11687         (__clog): Scale large or subnormal inputs.
11688         * math/s_clogf.c: Likewise.
11689         * math/s_clogl.c: Likewise.
11690         * math/s_clog10.c: Include <float.h>.
11691         (M_LOG10_2): Define.
11692         (__clog10): Scale large or subnormal inputs.
11693         * math/s_clog10f.c: Likewise.
11694         * math/s_clog10l.c: Likewise.
11695         * math/libm-test.inc (clog_test): Add more tests.
11696         (clog10_test): Likewise.
11697         * sysdeps/i386/fpu/libm-test-ulps: Update.
11698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11699
11700         [BZ #11451]
11701         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11702         x and y.
11703         * math/libm-test.inc (atan2_test): Add another test.
11704
11705         * Makerules (common-objdir-compile): Remove.
11706         * sysdeps/unix/Makefile (config-generated): Do not add
11707         $(unix-generated) to variable.
11708         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11709         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11710         Remove rule.
11711         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11712         Likewise.
11713         [generic bits/local_lim.h] (before-compile): Do not append to
11714         variable.
11715         [generic bits/local_lim.h] (common-generated): Likewise.
11716         [generic sys/param.h] (before-compile): Do not append to variable.
11717         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11718         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11719         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11720         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11721         include.
11722         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11723         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11724         [generic sys/param.h] ($(addprefix
11725         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11726         [generic sys/param.h] (common-generated): Do not append to
11727         variable.
11728         [generic sys/param.h] (sysdep_headers): Likewise.
11729         [generic bits/errno.h] (before-compile): Do not append to
11730         variable.
11731         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11732         rule.
11733         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11734         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11735         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11736         [generic bits/errno.h] (common-generated): Do not append to
11737         variable.
11738         [generic bits/ioctls.h] (before-compile): Do not append to
11739         variable.
11740         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11741         rule.
11742         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11743         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11744         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11745         rule.
11746         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11747         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11748         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11749         [generic bits/ioctls.h] (common-generated): Do not append to
11750         variable.
11751         [generic sys/syscall.h] (syscall.h): Remove variable.
11752         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11753         rule.
11754         [generic sys/syscall.h] (before-compile): Do not append to
11755         variable.
11756         [generic sys/syscall.h] (common-generated): Likewise.
11757         * sysdeps/unix/errnos-tmpl.c: Remove file.
11758         * sysdeps/unix/errnos.awk: Likewise.
11759         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11760         * sysdeps/unix/ioctls.awk: Likewise.
11761         * sysdeps/unix/mk-local_lim.c: Likewise.
11762         * sysdeps/unix/snarf-ioctls: Likewise.
11763
11764 2012-03-19  Richard Henderson  <rth@twiddle.net>
11765
11766         * sysdeps/i386/fpu/fenv_private.h: New file.
11767         * sysdeps/i386/fpu/math_private.h: Use it.
11768         (math_opt_barrier, math_force_eval): Remove.
11769         (libc_feholdexcept_setround_53bit): Remove.
11770         (libc_feupdateenv_53bit): Remove.
11771         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11772         (math_opt_barrier, math_force_eval): Remove.
11773         (libc_feholdexcept): Remove.
11774         (libc_feholdexcept_setround): Remove.
11775         (libc_fetestexcept, libc_fesetenv): Remove.
11776         (libc_feupdateenv_test): Remove.
11777         (libc_feupdateenv, libc_feholdsetround): Remove.
11778         (libc_feresetround): Remove.
11779
11780         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11781         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11782
11783         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11784         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11785         (libc_feupdateenv_testl): New.
11786         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11787         (libc_feupdateenv_testf): New.
11788         (libc_feupdateenv): Use libc_feupdateenv_test.
11789         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11790         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11791
11792         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11793         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11794         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11795         (libc_feresetround_noex): New.
11796         (libc_feresetround_noexf): New.
11797         (libc_feresetround_noexl): New.
11798         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11799         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11800         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11801         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11802         SET_RESTORE_ROUND.
11803         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11804         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11805         (__cos): Likewise.
11806         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11807         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11808         SET_RESTORE_ROUND_NOEX.
11809         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11810         SET_RESTORE_ROUND_NOEXF.
11811         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11812         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11813         (libc_feholdsetroundf): New.
11814         (libc_feresetround, libc_feresetroundf): New.
11815
11816         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11817         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11818         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11819
11820         * sysdeps/generic/math_private.h: Include <fenv.h>.
11821         (default_libc_feholdexcept): New.
11822         (default_libc_feholdexcept_setround): New.
11823         (default_libc_fesetenv, default_libc_feupdateenv): New.
11824         (libc_feholdexcept): Only define if undefined.
11825         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11826         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11827         (libc_feholdexcept_setroundl): Likewise.
11828         (libc_feholdexcept_setround_53bit): Likewise.
11829         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11830         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11831         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11832         (libc_feupdateenv_53bit): Likewise.
11833         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11834         (libc_feholdexcept): Convert from macro to inline function.
11835         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11836         (libc_fesetenv, libc_feupdateenv): Likewise.
11837
11838         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11839         not previously defined.
11840         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11841         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11842         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11843         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11844         * sysdeps/ieee754/flt-32/math_private.h: New file.
11845         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11846         math_private.h below SET_FLOAT_WORD.
11847         (__isnan, __isinf_ns, __finite): Remove.
11848         (__isnanf, __isinf_nsf, __finitef): Remove.
11849
11850 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11851
11852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11853
11854 2012-03-17  David S. Miller  <davem@davemloft.net>
11855
11856         [BZ #6471]
11857         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11858         for 2.16.
11859
11860 2012-03-16  David S. Miller  <davem@davemloft.net>
11861
11862         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11863         warnings.
11864
11865         [BZ #6471]
11866         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11867         properly.
11868         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11869         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11870         sysdep_routines when subdir is sysvipc.
11871         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11872         __getshmlba helper.
11873
11874         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11875
11876 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11877
11878         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11879         [__LP64__].
11880
11881 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11882
11883         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11884         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11885         (__lround): Renamed to ...
11886         (__llround): This.  Replace long int with long long int.
11887         Define lround functions as aliases of llround functions.
11888         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11889
11890 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11891
11892         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11893         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11894         adresses to uintptr_t.  Replace "long int" and "unsigned long
11895         int" with "greg_t" on va_arg.
11896
11897 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11898
11899         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11900         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11901
11902         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11903         Move e_machine check before EI_CLASS check.  Handle x32
11904         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11905         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11906         SKIP_EM_IA_64 and include
11907         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11908
11909         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11910         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11911         (add_system_dir): New macro.
11912
11913         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11914         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11915
11916 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11917
11918         [BZ #2551]
11919         [BZ #2552]
11920         [BZ #2553]
11921         [BZ #2554]
11922         [BZ #2562]
11923         [BZ #2563]
11924         [BZ #2565]
11925         [BZ #2566]
11926         [BZ #2576]
11927         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11928         (y0): Likewise.
11929         * math/w_j0f.c (j0f): Likewise.
11930         (y0f): Likewise.
11931         * math/w_j0l.c (__j0l): Likewise.
11932         (__y0l): Likewise.
11933         * math/w_j1.c (j1): Likewise.
11934         (y1): Likewise.
11935         * math/w_j1f.c (j1f): Likewise.
11936         (y1f): Likewise.
11937         * math/w_j1l.c (__j1l): Likewise.
11938         (__y1l): Likewise.
11939         * math/w_jn.c (jn): Likewise.
11940         (yn): Likewise.
11941         * math/w_jnf.c (jnf): Likewise.
11942         (ynf): Likewise.
11943         * math/w_jnl.c (__jnl): Likewise.
11944         (__ynl): Likewise.
11945         * math/libm-test.inc (j0_test): Add more tests.
11946         (j1_test): Likewise.
11947         (jn_test): Likewise.  Add trailing semicolon to existing test.
11948         (y0_test): Likewise.
11949         (y1_test): Likewise.
11950         * sysdeps/i386/fpu/libm-test-ulps: Update.
11951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11952
11953         [BZ #13851]
11954         [BZ #13854]
11955         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11956         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11957         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11958         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11959         (__tanl): Set errno for infinite argument.
11960         * sysdeps/i386/fpu/mptan.c: Remove.
11961         * sysdeps/i386/fpu/s_tan.S: Likewise.
11962         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11963         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11964         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11965         * math/libm-test.inc (tan_test): Add more tests and enable more
11966         tests for double and long double.
11967         * sysdeps/i386/fpu/libm-test-ulps: Update.
11968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11969
11970 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11971
11972         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11973         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11974
11975 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11976
11977         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11978         * configure.in: Use it for both main tree and add-ons.
11979         * configure: Regenerated.
11980
11981 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11984
11985 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11986
11987         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11988         in comment.
11989
11990         [BZ #13851]
11991         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11992         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11993         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11994         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11995         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11996         infinite argument.
11997         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11998         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11999         != 0 for prec == 2.
12000         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12001         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12002         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12003         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12004         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12005         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12006         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12007         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12008         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12009         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12010         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12011         * math/libm-test.inc (cos_test): Add more tests and enable more
12012         tests for long double.
12013         (sin_test): Likewise.
12014         (sincos_test): Likewise.
12015         * sysdeps/i386/fpu/libm-test-ulps: Update.
12016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12017
12018 2012-03-16  David S. Miller  <davem@davemloft.net>
12019
12020         * sysdeps/sparc/fpu/math_private.h: New file.
12021
12022 2012-03-15  David S. Miller  <davem@davemloft.net>
12023
12024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12025         file.
12026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12028         file.
12029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12030         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12031         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12032         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12033         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12034         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12035         sysdep routines.
12036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12037
12038         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12039         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12040
12041         * sysdeps/sparc/sparc-ifunc.h: New file.
12042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12043         sparc-ifunc.h
12044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12046         Likewise.
12047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12048         Likewise.
12049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12053         Likewise.
12054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12059         Likewise.
12060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12061         Likewise.
12062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12066         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12068         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12069         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12070         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12071         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12072         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12073         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12074         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12075         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12076         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12077         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12080         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12081         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12082         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12083         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12084         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12085         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12086
12087 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12088
12089         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12090         scaling.
12091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12092
12093 2012-03-15  Andreas Jaeger  <aj@suse.de>
12094
12095         [BZ #13852]
12096         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12097         ieee754/flt-32 implementation for sin, cos and sincos.
12098         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12099         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12100         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12101         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12102         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12103         ieee754/flt-32 implementation for tan.
12104
12105         * math/libm-test.inc (cos_test): Enable some large input tests for
12106         float as well
12107         (sin_test): Likewise.
12108         (sincos_test): Likewise.
12109         (tan_test): Add tests for large input.
12110
12111         * sysdeps/i386/fpu/libm-test-ulps: Update.
12112
12113 2012-03-15  Andreas Jaeger  <aj@suse.de>
12114
12115         [BZ #13658]
12116         * math/libm-test.inc (cos_test): Add more test cases.
12117         (sin_test): Likewise.
12118         (sincos_test): Likewise.
12119
12120 2012-03-15  Andreas Jaeger  <aj@suse.de>
12121
12122         [BZ #13837]
12123         * math/libm-test.inc (cos_test): Add a test case for large input
12124         value.
12125         (sin_test): Likewise.
12126         (sincos_test): Likewise.
12127
12128 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12129         Joseph Myers  <joseph@codesourcery.com>
12130
12131         [BZ #13658]
12132         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12133         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12134         * sysdeps/i386/fpu/branred.c: Likewise.
12135         * sysdeps/i386/fpu/dosincos.c: Likewise.
12136         * sysdeps/i386/fpu/mpa.c: Likewise.
12137         * sysdeps/i386/fpu/s_cos.S: Likewise.
12138         * sysdeps/i386/fpu/s_sin.S: Likewise.
12139         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12140         * sysdeps/i386/fpu/sincos32.c: Likewise.
12141
12142         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12143         Define.
12144         (libc_feupdateenv_53bit): Define.
12145         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12146         Define.
12147         (libc_feupdateenv_53bit): Define.
12148
12149         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12150         53 bit (without extend i386 double precision).
12151
12152         * math/libm-test.inc (sincos_test): Add tests for large input.
12153         (sin): Likewise.
12154         (cos): Likewise.
12155
12156         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12157
12158 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12159
12160         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12161
12162 2012-03-15  David S. Miller  <davem@davemloft.net>
12163
12164         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12165         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12166         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12167         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12168         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12170         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12172         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12173         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12174         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12177         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12178         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12180         file.
12181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12183         file.
12184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12186         file.
12187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12189         file.
12190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12191         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12192         fmin/fmax sysdep routines.
12193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12194
12195 2012-03-14  David S. Miller  <davem@davemloft.net>
12196
12197         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12198         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12199         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12200         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12201         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12202         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12203         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12204         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12205         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12206         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12207         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12208         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12209         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12210         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12211         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12212         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12213         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12214         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12215         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12216         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12217         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12218         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12219         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12220         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12221         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12222         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12223         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12224         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12225         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12226         routines.
12227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12228         file.
12229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12231         file.
12232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12234         file.
12235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12237         file.
12238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12240         file.
12241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12243         file.
12244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12245         file.
12246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12247         file.
12248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12249         file.
12250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12251         New file.
12252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12253         file.
12254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12255         file.
12256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12258         file.
12259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12261         file.
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12264         file.
12265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12267         VIS3 routines.
12268
12269         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12270         New file.
12271
12272         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12273
12274         * sysdeps/sparc/configure.in: New file.
12275         * sysdeps/sparc/configure: Generate.
12276         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12277         * configure: Regenerate.
12278         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12279         * config.make.in (have-as-vis3): New.
12280         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12281         available use -Av9d instead of -Av9a.
12282         * sysdeps/sparc/sparc64/Makefile: Likewise.
12283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12285         New file.
12286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12287         file.
12288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12289         New file.
12290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12291         file.
12292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12293         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12294         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12295         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12296         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12297
12298         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12299         fzeros/fnegs to load 0x80000000 into a float register instead of
12300         using the stack.
12301         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12302
12303 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12304
12305         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12306         bits/syscall.h.
12307         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12308         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12309         ($(inst_includedir)/bits/syscall.h): Remove rule.
12310         ($(objpfx)bits/syscall.d): Include instead of
12311         $(objpfx)syscall-list.d.
12312         (generated): Change syscall-list.h and syscall-list.d to
12313         bits/syscall.h and bits/syscall.d.
12314
12315 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12316
12317         [BZ #13846]
12318         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12319
12320 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12321
12322         [BZ #13841]
12323         * math/s_csqrt.c: Include <float.h>.
12324         (__csqrt): Scale large or subnormal inputs.
12325         * math/s_csqrtf.c: Likewise.
12326         * math/s_csqrtl.c: Likewise.
12327         * math/libm-test.inc (csqrt_test): Add more tests.
12328         * sysdeps/i386/fpu/libm-test-ulps: Update.
12329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12330
12331         [BZ #13840]
12332         * math/libm-test.inc (hypot_test): Add more tests.
12333
12334 2012-03-13  David S. Miller  <davem@davemloft.net>
12335
12336         [BZ #13840]
12337         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12338         double-precision for the calculation instead of scaling.
12339
12340 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12341
12342         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12343         manipulate bits before adding and subtracting TWO52[sx].
12344         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12345         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12346         Likewise.
12347         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12348
12349 2012-03-13  David S. Miller  <davem@davemloft.net>
12350
12351         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12352         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12353         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12354         rtld-global-offsets.h
12355         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12356
12357         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12358         large parameters.
12359
12360         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12361
12362         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12363         'err' in the ifdef scope in which it is actually used.
12364
12365         * nss/nss_db/db-init.c: Include string.h
12366
12367 2012-03-12  David S. Miller  <davem@davemloft.net>
12368
12369         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12370         masking out of the most significant byte of random value used.
12371         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12372         Fix coding style in previous change.
12373
12374         * sysdeps/unix/sysv/linux/kernel-features.h
12375         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12376         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12377         expression.
12378         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12379         later.
12380
12381 2012-03-11  David S. Miller  <davem@davemloft.net>
12382
12383         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12384         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12385         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12386         for 'resultvar' otherwise things get truncated on 64-bit.
12387
12388         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12389         Fix masking out of the most significant byte of random value used.
12390
12391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12392
12393 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12394
12395         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12396
12397 2012-03-09  David S. Miller  <davem@davemloft.net>
12398
12399         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12400         variables with appropriate CPP guards.
12401         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12402         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12403         on resulting framesize and the management of the outregs buffer for pltexit.
12404         Preserve floating point return values across _dl_call_pltexit call.
12405         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12406         framesize and the management of the outregs buffer for pltexit.
12407         Preserve floating point return values across _dl_call_pltexit
12408         call.
12409         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12410         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12411         (print_exit): Fix format string for return register value.
12412
12413 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12414
12415         * sunrpc/Makefile (others): Add rpcgen.
12416         ($(objpfx)rpcgen): Remove special build rule and dependency on
12417         libc.
12418         * sunrpc/rpcgen.c: New file.
12419
12420 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12421
12422         [BZ #13673]
12423         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12424         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12425         * sysdeps/i386/crti.S: Likewise.
12426         * sysdeps/i386/crtn.S: Likewise.
12427         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12428         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12429         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12430         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12431         * sysdeps/sh/crti.S: Likewise.
12432         * sysdeps/sh/crtn.S: Likewise.
12433         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12434
12435         [BZ #13673]
12436         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12437         with URL.
12438         * locale/programs/locfile-kw.gperf: Likewise.
12439         * locale/programs/charmap-kw.h: Regenerated.
12440         * locale/programs/locfile-kw.h: Likewise.
12441
12442         [BZ #13673]
12443         * intl/plural.y: Replace FSF snail mail address with URL.
12444         * intl/plural.c: Regenerated.
12445
12446 2012-03-09  Richard Henderson  <rth@twiddle.net>
12447
12448         * include/math_private.h: Remove file.
12449         * math/math_private.h: Move file ...
12450         * sysdeps/generic/math_private.h: ... here.
12451
12452         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12453         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12454         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12455
12456         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12457         and <math_private.h>.
12458         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12459         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12460         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12461         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12462         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12463         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12464         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12465         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12466         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12467         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12468         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12469         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12470         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12471         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12472         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12473         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12474         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12475         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12476         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12477         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12478         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12479         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12480         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12481         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12482         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12483         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12484         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12485         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12486         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12487         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12488         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12489         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12490         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12491         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12492         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12493         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12494         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12495         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12496         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12497         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12498         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12499         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12500         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12501         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12502         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12503         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12504         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12509         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12510         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12511         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12512         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12513         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12514         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12515         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12516         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12517         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12518         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12519         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12520         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12521         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12522         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12523         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12524         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12525         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12526         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12527         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12528         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12529         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12530         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12531         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12532         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12533         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12534         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12535         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12536         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12537         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12538         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12539         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12540         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12541         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12542         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12543         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12544         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12545         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12546         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12547         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12548         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12549         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12550         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12551         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12552         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12553         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12554         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12555         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12556         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12557         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12558         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12559         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12560         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12561         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12562         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12563         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12564         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12565         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12566         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12567         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12568         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12569         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12570         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12571         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12572         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12573         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12574         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12575         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12576         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12577         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12578         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12579         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12580         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12581         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12582         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12583         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12584         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12585         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12586         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12587         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12588         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12589         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12590         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12591         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12592         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12593         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12594         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12595         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12596         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12597         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12598         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12599         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12600         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12601         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12602         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12603         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12604         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12605         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12606         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12607         * sysdeps/ieee754/k_standard.c: Likewise.
12608         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12609         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12610         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12611         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12612         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12613         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12614         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12615         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12616         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12617         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12618         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12619         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12620         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12621         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12622         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12624         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12625         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12626         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12629         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12630         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12631         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12632         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12633         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12634         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12635         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12637         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12638         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12639         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12641         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12643         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12644         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12647         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12648         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12649         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12651         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12653         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12654         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12655         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12656         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12657         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12658         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12659         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12660         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12661         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12662         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12663         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12664         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12665         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12666         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12667         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12668         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12669         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12670         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12671         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12672         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12673         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12674         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12675         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12676         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12677         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12678         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12679         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12680         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12681         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12682         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12683         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12684         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12685         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12686         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12687         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12688         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12689         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12690         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12691         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12692         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12693         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12694         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12695         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12696         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12697         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12698         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12699         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12700         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12701         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12702         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12703         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12704         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12705         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12706         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12707         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12709         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12710         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12711         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12712         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12713         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12714         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12715         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12716         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12717         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12718         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12719         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12720         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12721         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12722         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12723         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12724         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12725         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12726         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12727         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12728         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12729         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12730         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12731         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12732         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12733         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12734         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12735         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12736         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12737         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12738         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12739         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12740         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12741         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12742         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12743         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12744         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12745         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12746         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12747         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12748         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12749         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12750         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12751         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12752         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12753         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12754         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12755         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12756         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12757         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12758         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12759         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12760         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12761         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12762         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12763         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12764         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12765         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12766         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12767         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12768         * sysdeps/ieee754/s_lib_version.c: Likewise.
12769         * sysdeps/ieee754/s_matherr.c: Likewise.
12770         * sysdeps/ieee754/s_signgam.c: Likewise.
12771         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12772         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12773         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12774         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12775         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12776         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12777         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12778         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12779         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12780         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12781         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12782         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12783         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12784         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12785         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12786         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12787         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12788         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12789         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12790         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12791         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12792
12793 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12794
12795         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12796         * sunrpc/rpc_main.c: Likewise.
12797         * sunrpc/rpc_svcout.c: Likewise.
12798
12799 2012-03-09  David S. Miller  <davem@davemloft.net>
12800
12801         * include/math_private.h: New file.
12802
12803 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12804
12805         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12806         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12807         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12808         from <bits/socket_type.h>.
12809         (enum __socket_type): Don't define here.
12810         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12811         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12812         bits/socket_type.h.
12813
12814         [BZ #13566]
12815         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12816         checking __USE_GNU.
12817
12818         * Makerules ($(inst_includedir)/%.h): New rule.
12819         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12820         (install-others): Remove variable setting.
12821         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12822
12823 2012-03-08  Richard Henderson  <rth@twiddle.net>
12824
12825         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12826         from macro to inline function; merge with the
12827         !__LIBC_INTERNAL_MATH_INLINES version.
12828         (__ieee754_sqrtf): Likewise.
12829
12830         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12831         to inline function.
12832         (__rintf, __floor, __floorf): Likewise.
12833
12834         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12835         macro to inline function.
12836         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12837
12838         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12839         not <math/math_private.h>.
12840
12841 2012-03-08  David S. Miller  <davem@davemloft.net>
12842
12843         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12844         copyright year.
12845         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12846
12847 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12848
12849         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12850         normalization.
12851         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12852         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12853
12854 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12855
12856         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12857         be defined individually, they must be defined as a block.  Define
12858         S for printing a string instead of hidint the different by using a
12859         macro for adding the 'l'.
12860         * stdio-common/tst-fphex-wide.c: Adjust.
12861
12862 2012-03-07  Marek Polacek  <polacek@redhat.com>
12863
12864         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12865
12866 2012-03-08  Marek Polacek  <polacek@redhat.com>
12867
12868         [BZ #13806]
12869         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12870         * stdio-common/tst-fphex.c: Define a few macros to make the
12871         test reusable.  Use them.
12872         * stdio-common/tst-fphex-wide.c: New file.
12873
12874 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12875
12876         [BZ #6911]
12877         * manual/macros.texi (gnusystems): New macro.
12878         (nongnusystems): Likewise.
12879         (gnulinuxhurdsystems): Likewise.
12880         (gnuhurdsystems): Likewise..
12881         (gnulinuxsystems): Likewise.
12882         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12883         variants of the GNU system, not "GNU system".
12884         * manual/conf.texi: Likewise.
12885         * manual/errno.texi: Likewise.  Update example of errno macro
12886         expansion.
12887         * manual/filesys.texi: Likewise.
12888         (getumask): Document as specific to GNU/Hurd.
12889         * manual/install.texi: Likewise.  Reword some references to
12890         GNU/Linux.
12891         * manual/intro.texi: Likewise.
12892         * manual/io.texi: Likewise.
12893         (File Name Portability): Detail which constraints are inapplicable
12894         to all GNU systems and which are only inapplicable to GNU/Hurd.
12895         * manual/job.texi: Likewise.
12896         * manual/llio.texi: Likewise.
12897         (O_NOCTTY): Document as present on GNU/Linux.
12898         * manual/maint.texi: Likewise.
12899         * manual/memory.texi: Likewise.
12900         * manual/pattern.texi: Likewise.
12901         * manual/pipe.texi: Likewise.
12902         * manual/process.texi: Likewise.
12903         * manual/resource.texi: Likewise.
12904         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12905         child on GNU/Hurd.
12906         * manual/setjmp.texi: Likewise.
12907         * manual/signal.texi: Likewise.
12908         * manual/startup.texi: Likewise.
12909         * manual/stdio.texi: Likewise.
12910         * manual/terminal.texi: Likewise.
12911         (ONLCR): Document as POSIX.
12912         (OXTABS): Document availability on GNU/Linux as XTABS.
12913         (ONOEOT): Document availability separately from other bits.
12914         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12915         * manual/time.texi: Likewise.
12916         * manual/users.texi: Likewise.
12917         * INSTALL: Regenerated.
12918         * sysdeps/gnu/errlist.c: Regenerated.
12919
12920         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12921         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12922         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12923         puts.
12924         * configure: Regenerated.
12925
12926 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12927
12928         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12929         default includes instead of AC_HEADER_CHECK.
12930         * sysdeps/i386/configure: Regenerated.
12931
12932         [BZ #10716]
12933         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12934         * math/s_cacoshf.c (__cacoshf): Likewise.
12935         * math/s_cacoshl.c (__cacoshl): Likewise.
12936         * math/s_casinh.c (__casinh): Set signs of result from argument.
12937         * math/s_casinhf.c (__casinhf): Likewise.
12938         * math/s_casinhl.c (__casinhl): Likewise.
12939         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12940         (casinh_test): Add more tests.
12941         * sysdeps/i386/fpu/libm-test-ulps: Update.
12942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12943
12944 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12945
12946         * po/zh_TW.po: Update from translation team.
12947
12948         * login/Makefile (distribute): Remove variable.
12949         * catgets/Makefile: Likewise.
12950         * mach/Makefile: Likewise.
12951         * malloc/Makefile: Likewise.
12952         * misc/Makefile: Likewise.
12953         * iconv/Makefile: Likewise.
12954         * nscd/Makefile: Likewise.
12955         * hurd/Makefile: Likewise.
12956         * manual/Makefile: Likewise.
12957         * locale/Makefile: Likewise.
12958         * intl/Makefile: Likewise.
12959         * conform/Makefile: Likewise.
12960         * nss/Makefile: Likewise.
12961         * time/Makefile: Likewise.
12962         * soft-fp/Makefile: Likewise.
12963         * dirent/Makefile: Likewise.
12964         * gmon/Makefile: Likewise.
12965         * po/Makefile: Likewise.
12966         * rt/Makefile: Likewise.
12967         * socket/Makefile: Likewise.
12968         * math/Makefile: Likewise.
12969         * signal/Makefile: Likewise.
12970         * debug/Makefile: Likewise.
12971         * elf/Makefile: Likewise.
12972         * timezone/Makefile: Likewise.
12973         * stdlib/Makefile: Likewise.
12974         * iconvdata/Makefile: Likewise.
12975         * sunrpc/Makefile: Likewise.
12976         * io/Makefile: Likewise.
12977         * argp/Makefile: Likewise.
12978         * inet/Makefile: Likewise.
12979         * hesiod/Makefile: Likewise.
12980         * grp/Makefile: Likewise.
12981         * csu/Makefile: Likewise.
12982         * wctype/Makefile: Likewise.
12983         * crypt/Makefile: Likewise.
12984         * libio/Makefile: Likewise.
12985         * string/Makefile: Likewise.
12986         * nis/Makefile: Likewise.
12987         * resolv/Makefile: Likewise.
12988         * stdio-common/Makefile: Likewise.
12989         * wcsmbs/Makefile: Likewise.
12990         * dlfcn/Makefile: Likewise.
12991         * posix/Makefile: Likewise.
12992
12993         [BZ #6959]
12994         * timezone/Makefile: Don't install timezone files, just the programs
12995         and scripts.
12996
12997 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12998
12999         * nss/databases.def: Add missing gshadow entry.
13000
13001         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13002
13003 2012-03-06  Marek Polacek  <polacek@redhat.com>
13004
13005         [BZ #13726]
13006         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13007         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13008         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13009         * stdio-common/tst-long-dbl-fphex.c: New file.
13010
13011 2012-03-06  David S. Miller  <davem@davemloft.net>
13012
13013         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13014         (set_obp_int): New function.
13015         (get_obp_int): New function.
13016         (__get_clockfreq_via_dev_openprom): Likewise.
13017         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13018         Avoid unused variable warnings on 'val' and use builtin_expect.
13019         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13020         __builtin_expect.
13021         (INLINE_CLONE_SYSCALL): Likewise.
13022
13023 2012-03-05  David S. Miller  <davem@davemloft.net>
13024
13025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13026
13027 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13028
13029         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13030
13031         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13032         only for |x| >= 40.
13033         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13034
13035 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13036
13037         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13038         Replace gettimeofday with __vdso_gettimeofday.
13039
13040         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13041         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13042         __vdso_clock_gettime and __vdso_getcpu.
13043
13044         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13045         time with __vdso_time.
13046
13047 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13048
13049         * manual/lang.texi (size_t): Note types to which size_t may be
13050         equivalent with the GNU C Library, but do not describe when
13051         differences between them are significant.
13052
13053 2012-03-05  Andreas Jaeger  <aj@suse.de>
13054
13055         * sysdeps/i386/fpu/libm-test-ulps: Update.
13056
13057 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13058
13059         [BZ #3976]
13060         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13061         (__ieee754_pow): Save and restore rounding mode and use
13062         round-to-nearest for main computations.
13063         * math/libm-test.inc (pow_test_tonearest): New function.
13064         (pow_test_towardzero): Likewise.
13065         (pow_test_downward): Likewise.
13066         (pow_test_upward): Likewise.
13067         (main): Call the new functions.
13068         * sysdeps/i386/fpu/libm-test-ulps: Update.
13069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13070
13071         [BZ #3976]
13072         * math/libm-test.inc (cosh_test_tonearest): New function.
13073         (cosh_test_towardzero): Likewise.
13074         (cosh_test_downward): Likewise.
13075         (cosh_test_upward): Likewise.
13076         (sinh_test_tonearest): Likewise.
13077         (sinh_test_towardzero): Likewise.
13078         (sinh_test_downward): Likewise.
13079         (sinh_test_upward): Likewise.
13080         (main): Call the new functions.
13081         * sysdeps/i386/fpu/libm-test-ulps: Update.
13082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13083
13084 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13085
13086         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13087         default stack guard is set in last bytes.
13088         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13089
13090 2012-03-05  Kees Cook  <keescook@chromium.org>
13091
13092         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13093
13094         [BZ #13656]
13095         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13096         possibly allocate from heap instead of stack.
13097         * stdio-common/bug-vfprintf-nargs.c: New file.
13098         * stdio-common/Makefile (tests): Add nargs overflow test.
13099
13100 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13101
13102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13103
13104 2012-03-03  Marek Polacek  <polacek@redhat.com>
13105
13106         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13107         * math/math_private.h: Likewise.
13108         * stdlib/tst-strtod.c: Likewise.
13109         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13110         * sysdeps/x86_64/bits/atomic.h: Likewise.
13111
13112 2012-03-02  David S. Miller  <davem@davemloft.net>
13113
13114         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13118         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13119         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13120         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13121         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13122
13123 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13124
13125         [BZ #13792]
13126         * manual/examples/README: New file, says the example source files
13127         can be used under GPL>=2.
13128         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13129         line containing just "*/".
13130         * manual/examples/add.c: Add copyright header (GPL>=2).
13131         * manual/examples/argp-ex1.c: Likewise.
13132         * manual/examples/argp-ex2.c: Likewise.
13133         * manual/examples/argp-ex3.c: Likewise.
13134         * manual/examples/argp-ex4.c: Likewise.
13135         * manual/examples/atexit.c: Likewise.
13136         * manual/examples/db.c: Likewise.
13137         * manual/examples/dir.c: Likewise.
13138         * manual/examples/dir2.c: Likewise.
13139         * manual/examples/execinfo.c: Likewise.
13140         * manual/examples/filecli.c: Likewise.
13141         * manual/examples/filesrv.c: Likewise.
13142         * manual/examples/fmtmsgexpl.c: Likewise.
13143         * manual/examples/genpass.c: Likewise.
13144         * manual/examples/inetcli.c: Likewise.
13145         * manual/examples/inetsrv.c: Likewise.
13146         * manual/examples/isockad.c: Likewise.
13147         * manual/examples/longopt.c: Likewise.
13148         * manual/examples/memopen.c: Likewise.
13149         * manual/examples/memstrm.c: Likewise.
13150         * manual/examples/mkfsock.c: Likewise.
13151         * manual/examples/mkisock.c: Likewise.
13152         * manual/examples/mygetpass.c: Likewise.
13153         * manual/examples/pipe.c: Likewise.
13154         * manual/examples/popen.c: Likewise.
13155         * manual/examples/rprintf.c: Likewise.
13156         * manual/examples/search.c: Likewise.
13157         * manual/examples/select.c: Likewise.
13158         * manual/examples/setjmp.c: Likewise.
13159         * manual/examples/sigh1.c: Likewise.
13160         * manual/examples/sigusr.c: Likewise.
13161         * manual/examples/stpcpy.c: Likewise.
13162         * manual/examples/strdupa.c: Likewise.
13163         * manual/examples/strftim.c: Likewise.
13164         * manual/examples/strncat.c: Likewise.
13165         * manual/examples/subopt.c: Likewise.
13166         * manual/examples/swapcontext.c: Likewise.
13167         * manual/examples/termios.c: Likewise.
13168         * manual/examples/testopt.c: Likewise.
13169         * manual/examples/testpass.c: Likewise.
13170         * manual/examples/timeval_subtract.c: Likewise.
13171
13172         [BZ #13792]
13173         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13174         function to ...
13175         * manual/timeval_subtract.c.texi: ... here, new file.
13176
13177 2012-03-02  David S. Miller  <davem@davemloft.net>
13178
13179         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13180
13181 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13182
13183         [BZ #3976]
13184         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13185         (__sin): Save and restore rounding mode and use round-to-nearest
13186         for all computations.
13187         (__cos): Save and restore rounding mode and use round-to-nearest
13188         for all computations.
13189         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13190         <fenv.h>.
13191         (tan): Save and restore rounding mode and use round-to-nearest for
13192         all computations.
13193         * math/libm-test.inc (cos_test_tonearest): New function.
13194         (cos_test_towardzero): Likewise.
13195         (cos_test_downward): Likewise.
13196         (cos_test_upward): Likewise.
13197         (sin_test_tonearest): Likewise.
13198         (sin_test_towardzero): Likewise.
13199         (sin_test_downward): Likewise.
13200         (sin_test_upward): Likewise.
13201         (tan_test_tonearest): Likewise.
13202         (tan_test_towardzero): Likewise.
13203         (tan_test_downward): Likewise.
13204         (tan_test_upward): Likewise.
13205         (main): Call the new functions.
13206         * sysdeps/i386/fpu/libm-test-ulps: Update.
13207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13208
13209         [BZ #10135]
13210         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13211         small n, then large n, before computing and testing k+n.
13212         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13213         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13214         Likewise.
13215         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13216         Likewise.
13217         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13218         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13219         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13220         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13221         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13222         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13223         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13225         * math/libm-test.inc (scalbn_test): Add more tests.
13226         (scalbln_test): Likewise.
13227
13228         * manual/filesys.texi (mode_t): Describe constraints on size and
13229         signedness, not exact equivalence to a particular type.
13230         (ino_t): Likewise.
13231         (ino64_t): Likewise.
13232         (dev_t): Likewise.
13233         (nlink_t): Likewise.
13234         (blkcnt_t): Likewise.
13235         (blkcnt64_t): Likewise.
13236         * manual/llio.texi (off_t): Likewise.
13237
13238         [BZ #3976]
13239         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13240         (__ieee754_exp): Save and restore rounding mode and use
13241         round-to-nearest for all computations.
13242         * math/libm-test.inc (exp_test_tonearest): New function.
13243         (exp_test_towardzero): Likewise.
13244         (exp_test_downward): Likewise.
13245         (exp_test_upward): Likewise.
13246         (main): Call the new functions.
13247         * sysdeps/i386/fpu/libm-test-ulps: Update.
13248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13249
13250 2012-03-01  Chris Demetriou  <cgd@google.com>
13251
13252         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13253         have predictable order.
13254
13255 2012-03-01  David S. Miller  <davem@davemloft.net>
13256
13257         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13258
13259         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13260         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13261         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13262         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13263
13264         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13265         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13266         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13268         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13269         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13270         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13271         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13272         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13273
13274         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13275
13276         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13277         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13278         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13279
13280         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13281         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13282         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13283         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13284         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13285         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13286         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13287         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13288         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13289         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13290         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13291         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13292         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13293         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13294         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13295         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13296         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13297         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13298         * sysdeps/sparc/elf/configure: Regenerated.
13299
13300 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13301
13302         * configure.in (AS, LD): Require binutils 2.20 or later.
13303         * configure: Regenerated.
13304         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13305         as required minimum version.
13306         * INSTALL: Regenerated.
13307
13308         [BZ #2541]
13309         [BZ #4108]
13310         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13311         before squaring exponent.
13312         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13313         bottom long double and 27 bits of top long double before squaring
13314         exponent.
13315         * math/libm-test.inc (erfc_test): Add more tests.
13316         * sysdeps/i386/fpu/libm-test-ulps: Update.
13317         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13319
13320 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13321
13322         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13323         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13324         containing bit-fields.
13325         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13326         * soft-fp/single.h (_FP_UNION_S): Likewise.
13327         * soft-fp/double.h (_FP_UNION_D): Likewise.
13328
13329 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13330
13331         [BZ #13786]
13332         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13333         not include ../strcmp.S.
13334         [USE_AS_STRNCASECMP_L]: Likewise.
13335         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13336         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13337         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13338         (__strncasecmp_l_ia32): Define as alias to
13339         __strncasecmp_l_nonascii.
13340
13341         [BZ #5794]
13342         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13343         * sysdeps/i386/fpu/libm-test-ulps: Update.
13344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13345
13346         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13348
13349 2012-02-29  Jeff Law  <law@redhat.com>
13350
13351         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13352         out of bounds read.
13353
13354 2012-02-29  Marek Polacek  <polacek@redhat.com>
13355
13356         [BZ #13706]
13357         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13358         * elf/Makefile: Add rules to run tst-unused-dep.out.
13359
13360 2012-02-28  David S. Miller  <davem@davemloft.net>
13361
13362         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13363         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13364         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13365         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13366         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13367         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13368
13369 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13370
13371         * math/libm-test.inc (llround_test): Move one test from
13372         lround_test.  Use TEST_f_L in moved test.
13373         (lround_test): Move misplaced test to llround_test.  Add testcase
13374         from bug 2561.
13375
13376 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13377
13378         * sysdeps/x86_64/fpu/e_expf.S: New file.
13379         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13380
13381 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13382
13383         [BZ #13637]
13384         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13385         of remain_len that may cause incomplete multi-byte character and
13386         false match.
13387         * posix/bug-regex33.c: New file.
13388         * posix/Makefile (tests): Add bug-regex33.
13389
13390 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13391
13392         * manual/macros.texi: New file.
13393         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13394         * manual/libc.texinfo: Include macros.texi.
13395         * manual/creatute.texi: Likewise.
13396         * manual/install.texi: Likewise.
13397         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13398         @glibcadj{} in references to the GNU C Library.
13399         * manual/charset.texi: Likewise.
13400         * manual/conf.texi: Likewise.
13401         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13402         when not using those macros.
13403         * manual/creature.texi: Likewise.
13404         * manual/crypt.texi: Likewise.
13405         * manual/errno.texi: Likewise.
13406         * manual/filesys.texi: Likewise.
13407         * manual/header.texi: Likewise.
13408         * manual/install.texi: Likewise.
13409         * manual/intro.texi: Likewise.
13410         * manual/io.texi: Likewise.
13411         * manual/job.texi: Likewise.
13412         * manual/lang.texi: Likewise.
13413         * manual/libc.texiinfo: Likewise.
13414         * manual/llio.texi: Likewise.
13415         * manual/locale.texi: Likewise.
13416         * manual/maint.texi: Likewise.
13417         * manual/math.texi: Likewise.
13418         * manual/memory.texi: Likewise.
13419         * manual/message.texi: Likewise.
13420         * manual/nss.texi: Likewise.
13421         * manual/pattern.texi: Likewise.
13422         * manual/process.texi: Likewise.
13423         * manual/resource.texi: Likewise.
13424         * manual/search.texi: Likewise.
13425         * manual/setjmp.texi: Likewise.
13426         * manual/signal.texi: Likewise.
13427         * manual/socket.texi: Likewise.
13428         * manual/startup.texi: Likewise.
13429         * manual/stdio.texi: Likewise.
13430         * manual/string.texi: Likewise.
13431         * manual/sysinfo.texi: Likewise.
13432         * manual/syslog.texi: Likewise.
13433         * manual/terminal.texi: Likewise.
13434         * manual/time.texi: Likewise.
13435         * manual/users.texi: Likewise.
13436         * INSTALL: Regenerated.
13437         * NOTES: Regenerated.
13438         * sysdeps/gnu/errlist.c: Regenerated.
13439
13440 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13441
13442         * include/dirent.h: Include <dirstream.h> before
13443         <dirent/dirent.h>.
13444
13445 2012-02-28  David S. Miller  <davem@davemloft.net>
13446
13447         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13448         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13449         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13450         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13451
13452 2012-02-27  David S. Miller  <davem@davemloft.net>
13453
13454         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13456         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13457         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13458
13459         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13460         frame pointer instead of stack pointer relative arg slot.
13461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13462         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13463         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13464
13465 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13466
13467         [BZ #3992]
13468         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13469
13470 2012-02-27  David S. Miller  <davem@davemloft.net>
13471
13472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13476         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13477         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13478         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13479         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13480
13481 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13482
13483         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13484         later.  Allow versions 5-9.
13485         * configure: Regenerated.
13486         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13487         required minimum version and 4.6 as recommended version.  Do not
13488         mention bugs in GCC 2.7 and 2.8.
13489         * INSTALL: Regenerated.
13490
13491 2012-02-27  David S. Miller  <davem@davemloft.net>
13492
13493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13497         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13498         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13499         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13500         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13501
13502         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13503         manipulate bits before adding and subtracting TWO112[sx].
13504         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13505
13506 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13507
13508         [BZ #13775]
13509         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13510         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13511         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13512         being in POSIX, because they are in 1003.1-2008.
13513
13514         * rt/tst-aio.c: Include <fcntl.h>.
13515         * rt/tst-aio7.c: Likewise.
13516         * rt/tst-aio64.c: Likewise.
13517
13518         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13519
13520 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13521
13522         * manual/install.texi (--with-headers): Describe headers as
13523         interface headers, not private headers.
13524         (Specific advice for GNU/Linux systems): Describe use of headers
13525         from "make headers_install", not private headers from older
13526         kernels.
13527         * INSTALL: Regenerated.
13528         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13529         Change to 2.6.19.
13530         * sysdeps/unix/sysv/linux/configure: Regenerated.
13531
13532         * manual/llio.texi (fclean): Remove documentation.
13533
13534         * manual/Makefile (libc-texi-generated): New variable.  Include
13535         version.texi.
13536         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13537         $(libc-texi-generated), not duplicated list of files.
13538         (version.texi, stamp-version): New rules.
13539         (realclean): Remove $(libc-texi-generated), not individual files
13540         from that list.  Do not remove dir-add.texinfo.
13541         * manual/libc.texinfo: Comment out uses of edition numbers and
13542         references to printed manual.  Remove last-updated dates.
13543         (EDITION): Comment out.
13544         (ISBN): Likewise.
13545         (VERSION, UPDATED): Remove.
13546         (version.texi): Include.
13547
13548 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13549
13550         * sysdeps/posix/spawni.c: Include <signal.h>.
13551         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13552         * sysdeps/pthread/aio_fsync.c: Likewise.
13553
13554 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13555
13556         * conform/Makefile (tests): Run only when not cross-compiling and
13557         when fast-check is not defined.
13558
13559         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13560         * conform/data/limits.h-data: Fixes for POSIX2008.
13561         * conform/run-conformtest.sh: Run all tests.
13562         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13563         headers.
13564         * include/bits/dlfcn.h: Likewise.
13565         * include/langinfo.h: Likewise.
13566         * include/monetary.h: Likewise.
13567         * include/sys/poll.h: Likewise.
13568
13569         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13570         for __USE_GNU.
13571         * posix/spawn.h: Define __need_sigset_t.
13572         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13573         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13574         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13575         to get sigevent_t only.
13576         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13577         only for __USE_GNU.
13578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13579         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13580         process_vm_writev only for __USE_GNU.
13581         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13582
13583         * conform/Makefile: For now ignore errors from run-conformtest.
13584         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13585         POSIX to avoid namespace pollution.  Don't prepend headers.
13586         * conform/data/aio.h-data: Fixes for POSIX testing.
13587         * conform/data/fcntl.h-data: Likewise.
13588         * conform/data/glob.h-data: Likewise.
13589         * conform/data/grp.h-data: Likewise.
13590         * conform/data/pthread.h-data: Likewise.
13591         * conform/data/pwd.h-data: Likewise.
13592         * conform/data/signal.h-data: Likewise.
13593         * conform/data/spawn.h-data: Likewise.
13594         * conform/data/stdio.h-data: Likewise.
13595         * conform/data/stdlib.h-data: Likewise.
13596         * conform/data/stropts.h-data: Likewise.
13597         * conform/data/sys/mman.h-data: Likewise.
13598         * conform/data/sys/stat.h-data: Likewise.
13599         * conform/data/sys/types.h-data: Likewise.
13600         * conform/data/sys/wait.h-data: Likewise.
13601         * conform/data/time.h-data: Likewise.
13602         * conform/data/unistd.h-data: Likewise.
13603         * conform/data/utime.h-data: Likewise.
13604
13605         * io/sys/stat.h: fchmod was always in POSIX.
13606         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13607         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13608         * rt/aio.h: Define __need_timespec before including <time.h>.
13609         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13610         struct.  Add forward declaration of pthread_attr_t and use it in
13611         sigevent.
13612         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13613         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13614         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13615         always remove CLK_TCK definition.
13616
13617 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13618
13619         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13620
13621 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13622
13623         * conform/run-conformtest.sh: New file.
13624         * conform/Makefile: Run run-conformtest for tests.
13625         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13626         support.
13627
13628         * conform/data/uchar.h-data: New file.
13629         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13630         * conform/data/arpa/inet.h-data: Likewise.
13631         * conform/data/assert.h-data: Likewise.
13632         * conform/data/complex.h-data: Likewise.
13633         * conform/data/cpio.h-data: Likewise.
13634         * conform/data/ctype.h-data: Likewise.
13635         * conform/data/dirent.h-data: Likewise.
13636         * conform/data/dlfcn.h-data: Likewise.
13637         * conform/data/errno.h-data: Likewise.
13638         * conform/data/fcntl.h-data: Likewise.
13639         * conform/data/float.h-data: Likewise.
13640         * conform/data/fmtmsg.h-data: Likewise.
13641         * conform/data/fnmatch.h-data: Likewise.
13642         * conform/data/ftw.h-data: Likewise.
13643         * conform/data/glob.h-data: Likewise.
13644         * conform/data/grp.h-data: Likewise.
13645         * conform/data/iconv.h-data: Likewise.
13646         * conform/data/inttypes.h-data: Likewise.
13647         * conform/data/langinfo.h-data: Likewise.
13648         * conform/data/libgen.h-data: Likewise.
13649         * conform/data/limits.h-data: Likewise.
13650         * conform/data/locale.h-data: Likewise.
13651         * conform/data/math.h-data: Likewise.
13652         * conform/data/monetary.h-data: Likewise.
13653         * conform/data/mqueue.h-data: Likewise.
13654         * conform/data/ndbm.h-data: Likewise.
13655         * conform/data/net/if.h-data: Likewise.
13656         * conform/data/netdb.h-data: Likewise.
13657         * conform/data/netinet/in.h-data: Likewise.
13658         * conform/data/nl_types.h-data: Likewise.
13659         * conform/data/poll.h-data: Likewise.
13660         * conform/data/pthread.h-data: Likewise.
13661         * conform/data/pwd.h-data: Likewise.
13662         * conform/data/regex.h-data: Likewise.
13663         * conform/data/sched.h-data: Likewise.
13664         * conform/data/search.h-data: Likewise.
13665         * conform/data/semaphore.h-data: Likewise.
13666         * conform/data/setjmp.h-data: Likewise.
13667         * conform/data/signal.h-data: Likewise.
13668         * conform/data/spawn.h-data: Likewise.
13669         * conform/data/stdarg.h-data: Likewise.
13670         * conform/data/stdio.h-data: Likewise.
13671         * conform/data/stdlib.h-data: Likewise.
13672         * conform/data/string.h-data: Likewise.
13673         * conform/data/strings.h-data: Likewise.
13674         * conform/data/stropts.h-data: Likewise.
13675         * conform/data/sys/ipc.h-data: Likewise.
13676         * conform/data/sys/mman.h-data: Likewise.
13677         * conform/data/sys/msg.h-data: Likewise.
13678         * conform/data/sys/resource.h-data: Likewise.
13679         * conform/data/sys/select.h-data: Likewise.
13680         * conform/data/sys/sem.h-data: Likewise.
13681         * conform/data/sys/shm.h-data: Likewise.
13682         * conform/data/sys/socket.h-data: Likewise.
13683         * conform/data/sys/stat.h-data: Likewise.
13684         * conform/data/sys/statvfs.h-data: Likewise.
13685         * conform/data/sys/time.h-data: Likewise.
13686         * conform/data/sys/timeb.h-data: Likewise.
13687         * conform/data/sys/times.h-data: Likewise.
13688         * conform/data/sys/types.h-data: Likewise.
13689         * conform/data/sys/uio.h-data: Likewise.
13690         * conform/data/sys/un.h-data: Likewise.
13691         * conform/data/sys/utsname.h-data: Likewise.
13692         * conform/data/sys/wait.h-data: Likewise.
13693         * conform/data/syslog.h-data: Likewise.
13694         * conform/data/tar.h-data: Likewise.
13695         * conform/data/termios.h-data: Likewise.
13696         * conform/data/utime.h-data: Likewise.
13697         * conform/data/utmpx.h-data: Likewise.
13698         * conform/data/varargs.h-data: Likewise.
13699         * conform/data/wchar.h-data: Likewise.
13700         * conform/data/wctype.h-data: Likewise.
13701         * conform/data/wordexp.h-data: Likewise.
13702
13703         * include/stropts.h: New file.
13704         * include/uchar.h: New file.
13705         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13706         * include/assert.h: Likewise.
13707         * include/ctype.h: Likewise.
13708         * include/dirent.h: Likewise.
13709         * include/dlfcn.h: Likewise.
13710         * include/fcntl.h: Likewise.
13711         * include/fnmatch.h: Likewise.
13712         * include/glob.h: Likewise.
13713         * include/grp.h: Likewise.
13714         * include/libio.h: Likewise.
13715         * include/locale.h: Likewise.
13716         * include/math.h: Likewise.
13717         * include/net/if.h: Likewise.
13718         * include/netdb.h: Likewise.
13719         * include/netinet/in.h: Likewise.
13720         * include/pthread.h: Likewise.
13721         * include/pwd.h: Likewise.
13722         * include/regex.h: Likewise.
13723         * include/sched.h: Likewise.
13724         * include/search.h: Likewise.
13725         * include/setjmp.h: Likewise.
13726         * include/signal.h: Likewise.
13727         * include/stdio.h: Likewise.
13728         * include/stdlib.h: Likewise.
13729         * include/string.h: Likewise.
13730         * include/sys/cdefs.h: Likewise.
13731         * include/sys/mman.h: Likewise.
13732         * include/sys/msg.h: Likewise.
13733         * include/sys/resource.h: Likewise.
13734         * include/sys/select.h: Likewise.
13735         * include/sys/socket.h: Likewise.
13736         * include/sys/stat.h: Likewise.
13737         * include/sys/statvfs.h: Likewise.
13738         * include/sys/time.h: Likewise.
13739         * include/sys/times.h: Likewise.
13740         * include/sys/uio.h: Likewise.
13741         * include/sys/utsname.h: Likewise.
13742         * include/sys/wait.h: Likewise.
13743         * include/termios.h: Likewise.
13744         * include/time.h: Likewise.
13745         * include/ulimit.h: Likewise.
13746         * include/unistd.h: Likewise.
13747         * include/utime.h: Likewise.
13748         * include/wchar.h: Likewise.
13749         * include/wctype.h: Likewise.
13750         * include/wordexp.h: Likewise.
13751
13752         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13753
13754         * time/time.h: TIME_UTC must be a macro.
13755         Make timespec_get available for ISO C11 only as well.
13756
13757 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13758
13759         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13760         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13761
13762 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13763
13764         * configure.in: Use -o not -a in test for unsupported multi-arch.
13765
13766 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13767
13768         * manual/texinfo.tex: Update to version 2012-01-19.16.
13769
13770 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13771
13772         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13773
13774 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13775
13776         [BZ #13738]
13777         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13778         * manual/fdl-1.3.texi: New file.
13779         * manual/fdl-1.1.texi: File removed.
13780
13781         [BZ #13738]
13782         * manual/libc.texinfo (FDL_VERSION): New @set.
13783         Use it for mention of FDL in cover text.
13784         (Documentation License): Use it in @include file name.
13785
13786 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13787             Roland McGrath  <roland@hack.frob.com>
13788
13789         [BZ #5461]
13790         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13791         not LONG_LONG_MAX and LONG_LONG_MIN.
13792         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13793         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13794         name.
13795         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13796
13797 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13798
13799         [BZ #2547]
13800         [BZ #11365]
13801         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13802         manipulate bits before adding and subtracting TWO23[sx].
13803         * math/libm-test.inc (nearbyint_test): Add more tests.
13804
13805 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13806
13807         [BZ #2548]
13808         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13809         bits before adding and subtracting TWO23[sx].
13810         * math/libm-test.inc (rint_test): Add more tests.
13811         (rint_test_tonearest): Likewise.
13812         (rint_test_towardzero): Likewise.
13813         (rint_test_downward): Likewise.
13814         (rint_test_upward: Likewise.
13815
13816 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13817
13818         [BZ #10110]
13819         * include/stdc-predef.h: New file.  Extracted from features.h.
13820         * include/features.h: Include stdc-predef.h.
13821         * Makefile (headers): Add stdc-predef.h.
13822         * CONFORMANCE (Compiler limitations): Update.
13823
13824 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13825
13826         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13827
13828 2012-02-21  David S. Miller  <davem@davemloft.net>
13829
13830         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13831         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13832
13833 2012-02-20  David S. Miller  <davem@davemloft.net>
13834
13835         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13836         using a normal save/restore sequence, rather than allocating a
13837         dummy stack frame just to store a frame pointer and restore.
13838         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13839
13840 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13841
13842         * manual/install.texi: Fix stray word in line-wrapped comment.
13843
13844 2012-02-20  David S. Miller  <davem@davemloft.net>
13845
13846         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13847         both binutils and gcc support GOTDATA.
13848
13849         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13850         "rd %pc" in the PIC register setup sequences.
13851
13852         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13853         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13854         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13855         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13856         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13857         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13858         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13859         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13860         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13861         (SYSCALL_ERROR_HANDLER): Likewise.
13862         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13863         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13864         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13865         (SYSCALL_ERROR_HANDLER): Likewise.
13866
13867         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13868         (HAVE_GCC_GOTDATA): New.
13869         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13870         relocation support in both binutils and gcc.
13871         * sysdeps/sparc/elf/configure: Regenerate.
13872
13873         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13874         * sysdeps/sparc/sparc32/elf/configure: Delete.
13875         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13876         * sysdeps/sparc/sparc64/elf/configure: Delete.
13877         * sysdeps/sparc/elf/configure.in: New file.
13878         * sysdeps/sparc/elf/configure: Generate.
13879
13880         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13881         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13882         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13883         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13884         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13885
13886 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * manual/install.texi: Do not mention specific glibc version
13889         numbers.
13890         * manual/libc.texinfo (VERSION, UPDATED): Update.
13891         (@copying): Use @copyright{} and range of years.
13892
13893 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13894
13895         [BZ #13695]
13896         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13897         [crti.S not in sysdirs] (generated): Do not append.
13898         [crti.S not in sysdirs] (omit-deps): Likewise.
13899         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13900         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13901         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13902         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13903         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13904         Likewise.
13905         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13906         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13907         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13908         * csu/defs.awk: Remove file.
13909         * sysdeps/generic/initfini.c: Likewise.
13910         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13911         variable.
13912         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13913         Likewise.
13914
13915 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13916
13917         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13918         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13919         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13920         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13921         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13922         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13923         <bits/epoll.h>.
13924         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13925         (__EPOLL_PACKED): Define to empty if not defined by
13926         <bits/epoll.h>.
13927         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13928         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13929         bits/epoll.h.
13930
13931 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13932
13933         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13934         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13935         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13936         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13937         <bits/timerfd.h>.
13938         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13939         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13940         bits/timerfd.h.
13941
13942 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13943
13944         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13945         in C locale.
13946         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13947         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13948         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13950
13951 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13952
13953         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13954         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13955
13956 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13957
13958         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13959         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13960         defined.
13961         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13962         Likewise.
13963         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13964         entry for 2.16.
13965
13966 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13967
13968         * math/w_acos.c: Use non-signaling floating-point comparisons.
13969         * math/w_acosf.c: Likewise.
13970         * math/w_acosh.c: Likewise.
13971         * math/w_acoshf.c: Likewise.
13972         * math/w_acoshl.c: Likewise.
13973         * math/w_acosl.c: Likewise.
13974         * math/w_asin.c: Likewise.
13975         * math/w_asinf.c: Likewise.
13976         * math/w_asinl.c: Likewise.
13977         * math/w_atanh.c: Likewise.
13978         * math/w_atanhf.c: Likewise.
13979         * math/w_atanhl.c: Likewise.
13980         * math/w_exp2.c: Likewise.
13981         * math/w_exp2f.c: Likewise.
13982         * math/w_exp2l.c: Likewise.
13983         * math/w_j0.c: Likewise.
13984         * math/w_j0f.c: Likewise.
13985         * math/w_j0l.c: Likewise.
13986         * math/w_j1.c: Likewise.
13987         * math/w_j1f.c: Likewise.
13988         * math/w_j1l.c: Likewise.
13989         * math/w_jn.c: Likewise.
13990         * math/w_jnf.c: Likewise.
13991         * math/w_log.c: Likewise.
13992         * math/w_log10.c: Likewise.
13993         * math/w_log10f.c: Likewise.
13994         * math/w_log10l.c: Likewise.
13995         * math/w_log2.c: Likewise.
13996         * math/w_log2f.c: Likewise.
13997         * math/w_log2l.c: Likewise.
13998         * math/w_logf.c: Likewise.
13999         * math/w_logl.c: Likewise.
14000         * math/w_sqrt.c: Likewise.
14001         * math/w_sqrtf.c: Likewise.
14002         * math/w_sqrtl.c: Likewise.
14003         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14004         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14005         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14006         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14007         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14008
14009 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14010
14011         [BZ #9739]
14012         * manual/string.texi (strnlen): Use correct parameter name in
14013         equivalent expression.
14014
14015 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14016
14017         [BZ #11174]
14018         * manual/users.texi (seteuid): Consistently use neweuid for
14019         argument name.
14020
14021 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14022
14023         [BZ #13704]
14024         * manual/nss.texi (Services in the NSS configuration): Correct
14025         list of services in example configuration file.
14026
14027 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14028
14029         [BZ #11322]
14030         * manual/arith.texi: Remove statements about negative zero
14031         behaving identically to zero.
14032
14033 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14034
14035         [BZ #5993]
14036         * manual/install.texi: Do not document upgrading from libc5.
14037
14038 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14039
14040         [BZ #4596]
14041         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14042
14043 2012-02-18  David S. Miller  <davem@davemloft.net>
14044
14045         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14046         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14047         %o7 across the call.
14048         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14049         instead.
14050         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14051         SETUP_PIC_REG_LEAF.
14052         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14053         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14054         * sysdeps/sparc/crtn.S: Likewise.
14055
14056 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14057
14058         * aout/Makefile: Remove.
14059
14060 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14061
14062         [BZ #13058]
14063         * manual/examples/argp-ex1.c (main): Format definition in GNU
14064         style.
14065         * manual/examples/argp-ex2.c (main): Likewise.
14066         * manual/examples/argp-ex3.c (main): Likewise.
14067         * manual/examples/argp-ex4.c (main): Likewise.
14068         * manual/examples/longopt.c (main): Use new-style prototype
14069         definition.
14070         * manual/examples/strncat.c (main): Specify return type and use
14071         (void) for arguments.
14072         * manual/examples/subopt.c (main): Use char **argv argument.
14073
14074 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14075
14076         [BZ #5077]
14077         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14078         rounding modes.
14079
14080 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14081
14082         [BZ #6907]
14083         * manual/string.texi (strchr): Change when strchrnul is
14084         recommended.
14085
14086 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14087
14088         [BZ #174]
14089         * manual/locale.texi (setlocale): Document LOCPATH.
14090
14091 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14092
14093         [BZ #10210]
14094         * manual/process.texi (execle): Move @dots{} before last argument.
14095
14096 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14097
14098         [BZ #12047]
14099         * manual/charset.texi (Generic Charset Conversion): Fix typo
14100         (LC_TYPE -> LC_CTYPE).
14101
14102 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14103
14104         [BZ #5805]
14105         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14106         (scalbnf): Likewise.
14107         (scalbnl): Likewise.
14108         (scalbln): Likewise.
14109         (scalblnf): Likewise.
14110         (scalblnl): Likewise.
14111         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14112         (vwarnx): Likewise.
14113         (verr): Likewise.
14114         (verrx): Likewise.
14115         * manual/filesys.texi (telldir): Use braces around return type.
14116         * manual/llio.texi (mmap): Add space after comma.
14117         (mmap64): Likewise.
14118         * manual/math.texi (jn): Use @var{} on parameter names.
14119         (jnf): Likewise.
14120         (jnl): Likewise.
14121         (yn): Likewise.
14122         (ynf): Likewise.
14123         (ynl): Likewise.
14124         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14125         line.
14126         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14127         "...".
14128         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14129         (sched_get_priority_max): Likewise.
14130         * manual/signal.texi (sigvec): Add space after comma.
14131         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14132         names.
14133         (if_indextoname): Likewise.
14134         (if_freenameindex): Likewise.
14135         (sendto): Use ',' instead of '.' in prototype.
14136         * manual/startup.texi (syscall): Use @dots{} instead of literal
14137         "...".
14138         * manual/stdio.texi (__fpending): Separate initial words of
14139         paragraph from @deftypefun line.
14140         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14141         "...".
14142         (vsyslog): Use @var{} on parameter names.
14143         * manual/terminal.texi (stty): Use @var{} on parameter names.
14144         * manual/users.texi (getutmp): Use @var{} on parameter names.
14145         (getutmpx): Likewise.
14146
14147 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14148
14149         [BZ #6884]
14150         * manual/stdio.texi (fopen): Fix typos in description of
14151         ",ccs=STRING".
14152
14153 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14154
14155         [BZ #4026]
14156         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14157         get clock_id definition.
14158
14159 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14160
14161         [BZ #4822]
14162         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14163         (madvise): Cast every argument to void on its own.
14164
14165 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14166
14167         [BZ #9902]
14168         * manual/startup.texi (Exit Status): Fix typo.
14169
14170 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14171
14172         [BZ #10140]
14173         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14174         * manual/examples/argp-ex2.c: Likewise.
14175         * manual/examples/argp-ex3.c: Likewise.
14176
14177 2012-02-16  Richard Henderson  <rth@redhat.com>
14178
14179         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14180         * sysdeps/s390/s390-32/initfini.c: Remove.
14181         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14182         * sysdeps/s390/s390-64/initfini.c: Remove.
14183
14184 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14185
14186         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14187         compiler output for sysdeps/generic/initfini.c.
14188         * sysdeps/sh/elf/initfini.c: Remove file.
14189
14190 2012-02-16  David S. Miller  <davem@davemloft.net>
14191
14192         [BZ #11494]
14193         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14194
14195         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14196         * sysdeps/sparc/crti.S: New file.
14197         * sysdeps/sparc/crtn.S: New file.
14198         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14199         * sysdeps/sparc/sparc64/Makefile: Likewise.
14200
14201 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14202
14203         [BZ #3335]
14204         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14205
14206 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14207
14208         [BZ #4822]
14209         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14210
14211         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14212         (write, read, close): Likewise.
14213         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14214
14215 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14216
14217         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14218         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14219         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14220         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14221         <bits/signalfd.h>.
14222         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14223         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14224         bits/signalfd.h.
14225
14226 2012-02-14  Marek Polacek  <polacek@redhat.com>
14227
14228         * sysdeps/x86_64/crti.S: New file.
14229         * sysdeps/x86_64/crtn.S: New file.
14230         * sysdeps/x86_64/elf/initfini.c: Remove file.
14231
14232 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14233
14234         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14235         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14236         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14237         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14238         <bits/inotify.h>.
14239         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14240         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14241         bits/inotify.h.
14242
14243 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14244
14245         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14246         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14247         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14248         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14249         <bits/eventfd.h>.
14250         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14251         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14252         bits/eventfd.h.
14253
14254 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14255
14256         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14257         __feraiseexcept instead of feraiseexcept.
14258
14259         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14260         nanosleep invocations.
14261         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14262         strings, and add error checking for a nanosleep invocations.
14263
14264 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14265
14266         Replace FSF snail mail address with URLs, as per GNU coding standards.
14267         Most of the snail mail addresses were wrong anyway, and omitting
14268         them makes the source code easier to maintain.  Almost all of the
14269         changes are to license notices and to locale LC_IDENTIFICATION
14270         addresses, except for this one:
14271         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14272         not its snail mail address.
14273
14274 2012-02-09  Richard Henderson  <rth@twiddle.net>
14275
14276         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14277         of kernel-features.h.
14278
14279         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14280
14281 2012-02-08  Marek Polacek  <polacek@redhat.com>
14282
14283         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14284         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14285         * sysdeps/gnu/_G_config.h: Likewise.
14286         * sysdeps/generic/_G_config.h: Likewise.
14287
14288 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14289
14290         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14291         tests.
14292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14293
14294         * sysdeps/powerpc/powerpc32/crti.S: New file.
14295         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14296         * sysdeps/powerpc/powerpc64/crti.S: New file.
14297         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14298
14299         * Makeconfig (have-initfini): Don't set.
14300         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14301         * configure.in (nopic_initfini): Don't substitute.
14302         * config.h.in (HAVE_INITFINI): Don't #undef.
14303         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14304         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14305
14306 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14307
14308         Support crti.S and crtn.S provided directly by architectures.
14309         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14310         [crti.S in sysdirs] (omit-deps): Likewise.
14311         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14312         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14313         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14314         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14315         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14316         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14317         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14318         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14319         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14320         compiler output for sysdeps/generic/initfini.c.
14321         * sysdeps/i386/elf/Makefile: Remove file.
14322         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14323
14324 2012-02-07  Marek Polacek  <polacek@redhat.com>
14325
14326         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14327         * sysdeps/gnu/_G_config.h: Likewise.
14328         * sysdeps/mach/hurd/_G_config.h: Likewise.
14329
14330 2012-02-07  Marek Polacek  <polacek@redhat.com>
14331
14332         * math/Makefile (tests): Add tst-CMPLX2.
14333         * math/tst-CMPLX2.c: New file.
14334
14335 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14336
14337         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14338
14339         * math/libm-test.inc (jn_test): Add missing L suffix.
14340
14341 2012-02-06  Marek Polacek  <polacek@redhat.com>
14342
14343         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14344         * sysdeps/i386/fpu/e_powf.S: Likewise.
14345         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14346         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14347         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14348         * sysdeps/i386/fpu/e_pow.S: Likewise.
14349         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14350         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14351         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14352         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14353         * sysdeps/i386/fpu/e_log2.S: Likewise.
14354         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14355         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14356         * sysdeps/i386/fpu/e_powl.S: Likewise.
14357         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14358         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14359         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14360         * sysdeps/i386/fpu/e_logl.S: Likewise.
14361         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14362         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14363         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14364         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14365         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14366         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14367         * sysdeps/i386/fpu/e_log.S: Likewise.
14368         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14369         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14370         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14371         * sysdeps/i386/fpu/e_logf.S: Likewise.
14372         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14373         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14374         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14375         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14376         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14377         * sysdeps/i386/fpu/e_log10.S: Likewise.
14378         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14379         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14380         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14381         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14382         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14383         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14384         * sysdeps/i386/asm-syntax.h: Likewise.
14385         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14386         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14387         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14388         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14389         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14390         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14391         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14392         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14393         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14394         * sysdeps/powerpc/sysdep.h: Likewise.
14395         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14396         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14397
14398 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14399
14400         [BZ #411]
14401         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14402
14403 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14404
14405         * sysdeps/i386/sysdep.h: Include <features.h>.
14406         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14407         version.
14408
14409 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14410
14411         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14412         Define.
14413         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14414         LOAD_PIC_REG_STR.
14415
14416 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14417
14418         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14419         (SETUP_PIC_REG): Use GET_PC_THUNK.
14420         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14421         macro.
14422
14423 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14424
14425         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14426         for non-PIC compilation.
14427         (SETUP_PIC_REG): Add .p2align directive.
14428         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14429         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14430         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14431         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14432         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14433         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14434         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14435         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14436         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14437         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14438         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14439         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14440         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14441         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14442         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14443         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14444         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14445         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14446         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14447         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14448         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14449         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14450         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14451         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14452         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14453         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14454         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14455         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14456         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14457         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14458         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14459         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14460         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14461         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14462         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14463         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14464         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14465         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14466         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14467         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14468         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14469
14470 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14471
14472         * math/tst-CMPLX.c: Include <stdio.h>.
14473
14474 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14475
14476         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14477         float.
14478         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14479         * sysdeps/sparc/bits/mathdef.h: Likewise.
14480
14481 2012-01-31  Marek Polacek  <polacek@redhat.com>
14482
14483         * libio/libio.h: Don't define _PARAMS.
14484         * locale/programs/config.h: Don't define PARAMS.
14485         * stdlib/strtol_l.c: Likewise.
14486         (__strtol_l): Remove PARAMS from the prototype.
14487
14488 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14489
14490         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14491         names.  Just use the correct names.  Remove unnecessary wrapper
14492         functions.
14493         * malloc/arena.c: Likewise.
14494         * malloc/hooks.c: Likewise.
14495
14496         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14497         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14498         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14499
14500 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14501
14502         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14503         into tail calls.
14504         (update_get_addr): New function.
14505         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14506         GET_ADDR_MODULE parameter.
14507
14508 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14509
14510         * crypt/cert.c: Remove __STDC__ conditionals.
14511         * crypt/crypt-entry.c: Likewise.
14512         * crypt/crypt_util.c: Likewise.
14513         * libio/filedoalloc.c: Likewise.
14514         * libio/fileops.c: Likewise.
14515         * libio/genops.c: Likewise.
14516         * libio/iofclose.c: Likewise.
14517         * libio/iofdopen.c: Likewise.
14518         * libio/iofopen.c: Likewise.
14519         * libio/iofopen64.c: Likewise.
14520         * libio/iogetdelim.c: Likewise.
14521         * libio/iopopen.c: Likewise.
14522         * libio/obprintf.c: Likewise.
14523         * libio/oldfileops.c: Likewise.
14524         * libio/oldiofclose.c: Likewise.
14525         * libio/oldiofdopen.c: Likewise.
14526         * libio/oldiofopen.c: Likewise.
14527         * libio/oldiopopen.c: Likewise.
14528         * libio/wfiledoalloc.c: Likewise.
14529         * libio/wgenops.c: Likewise.
14530         * locale/programs/xmalloc.c: Likewise.
14531         * misc/syslog.c: Likewise.
14532         * stdio-common/xbug.c: Likewise.
14533         * string/memchr.c: Likewise.
14534         * string/memcmp.c: Likewise.
14535         * string/memrchr.c: Likewise.
14536         * string/rawmemchr.c: Likewise.
14537         * sysdeps/posix/getcwd.c: Likewise.
14538         * time/strftime_l.c: Likewise.
14539
14540 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14541
14542         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14543         * config.make.in (config-cflags-sse2avx): Define.
14544         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14545         Fix typo.
14546
14547 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14548
14549         * scripts/config.guess: Update from upstream config git repository.
14550         * scripts/config.sub: Likewise.
14551
14552 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14553
14554         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14555         (EM_NUM): Update.
14556         (R_TILEPRO_*, R_TILEGX_*): New macros.
14557
14558         * scripts/firstversions.awk: Fix bug in version range handling.
14559
14560         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14561
14562         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14563
14564         * include/sys/epoll.h: New file.
14565         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14566         libc_hidden_def.
14567
14568 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14569
14570         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14571         Avoid unnecessary __WORDSIZE == 64 test.
14572         (fmaxf): Use VEX format if possible.
14573         (fmax): Likewise.
14574         (fminf): Likewise.
14575         (fmin): Likewise.
14576
14577         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14578         * math/math_private.h: Remove libc_fegetround* and
14579         libc_fesetround*.
14580         * sysdeps/i386/configure.in: Check for -msse2avx.
14581         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14582         also if SSE2AVX is defined.
14583         Remove libc_fegetround* and libc_fesetround*.
14584         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14585         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14586         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14587         of HAS_YMM_USABLE.
14588         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14589         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14590         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14591         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14592         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14593
14594         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14595
14596 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14597
14598         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14599         size is not set.
14600         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14601
14602 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14603
14604         [BZ #13618]
14605         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14606         relocation.
14607         * Makeconfig (libm): Define.
14608         * elf/Makefile: Add rules to build and run tst-relsort1.
14609         * elf/tst-relsort1.c: New file.
14610         * elf/tst-relsort1mod1.c: New file.
14611         * elf/tst-relsort1mod2.c: New file.
14612
14613 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14614
14615         * math/s_ldexp.c: Remove __STDC__ conditionals.
14616         * math/s_ldexpf.c: Likewise.
14617         * math/s_ldexpl.c: Likewise.
14618         * math/s_nextafter.c: Likewise.
14619         * math/s_nexttowardf.c: Likewise.
14620         * math/s_significand.c: Likewise.
14621         * math/s_significandf.c: Likewise.
14622         * math/s_significandl.c: Likewise.
14623         * math/w_jnl.c: Likewise.
14624         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14625         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14626         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14627         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14628         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14640         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14643         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14644         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14645         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14646         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14647         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14648         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14649         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14650         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14653         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14654         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14656         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14658         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14660         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14661         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14662         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14663         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14664         * sysdeps/ieee754/k_standard.c: Likewise.
14665         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14667         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14668         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14711         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14712         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14713         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14714         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14715         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14717         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14718         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14719         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14720         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14721         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14722         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14723         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14724         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14725         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14726         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14727         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14728         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14729         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14730         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14731         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14732         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14733         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14734         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14735         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14736         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14737         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14738         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14739         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14740         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14741         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14742         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14743         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14744         * sysdeps/ieee754/s_matherr.c: Likewise.
14745         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14746         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14747         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14748         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14749
14750 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14751
14752         * crypt/md5.h: Remove __STDC__ conditionals.
14753         * libio/libioP.h: Likewise.
14754         * locale/programs/config.h: Likewise.
14755         * sysdeps/generic/sysdep.h: Likewise.
14756         * sysdeps/i386/asm-syntax.h: Likewise.
14757         * sysdeps/s390/asm-syntax.h: Likewise.
14758         * sysdeps/unix/sysdep.h: Likewise.
14759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14761
14762 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14763
14764         * libio/libio.h: Remove __STDC__ conditionals.
14765         * malloc/obstack.h: Likewise.
14766         * math/complex.h: Likewise.
14767         * math/math.h: Likewise.
14768         * sysdeps/generic/_G_config.h: Likewise.
14769         * sysdeps/gnu/_G_config.h: Likewise.
14770         * sysdeps/mach/hurd/_G_config.h: Likewise.
14771         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14772         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14773         * sysdeps/sparc/bits/mathdef.h: Likewise.
14774
14775 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14776
14777         [BZ #13583]
14778         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14779         Clean up HAS_* macros.
14780         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14781         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14782         possible.
14783         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14784         HAS_AVX.
14785         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14786         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14787         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14788         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14789         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14790
14791 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14792
14793         * elf/tst-unique3.cc (gets): Remove declaration.
14794         * elf/tst-unique3lib.cc (gets): Likewise.
14795         * elf/tst-unique3lib2.cc (gets): Likewise.
14796         * elf/tst-unique4.cc (gets): Likewise.
14797
14798 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14799
14800         * include/stdio.h: Add C++ protection.  Add gets declarations and
14801         definitions.
14802         * debug/tst-chk1.c: Don't declare gets here.
14803         * stdio-common/tst-gets.c: Likewise.
14804
14805 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14806
14807         * posix/glob: Remove directory.
14808
14809 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14810
14811         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14812
14813 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14814
14815         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14816         of the non-standard EPFNOSUPPORT.
14817
14818 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14819
14820         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14821         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14822         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14823
14824 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14825
14826         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14827
14828 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14829
14830         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14831         transient errors.
14832         * nscd/grpcache.c (cache_addgr): Likewise.
14833         * nscd/hstcache.c (cache_addhst): Likewise.
14834         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14835         * nscd/pwdcache.c (cache_addpw): Likewise.
14836         * nscd/servicescache.c (cache_addserv): Likewise.
14837
14838 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14839
14840         * malloc/malloc.c: Various cleanups.
14841         * malloc/hooks.c: Likewise.
14842
14843         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14844         * stdlib/bug-fmtmsg1.c: New file.
14845
14846         * stdlib/fmtmsg.c (init): Add missing unlock.
14847         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14848
14849 2012-01-12  Marek Polacek  <polacek@redhat.com>
14850
14851         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14852         and _GNU_SOURCE.
14853
14854 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14855
14856         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14857         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14858         macro to ensure uniqueness of label name.
14859         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14860         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14861
14862 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14863
14864         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14865
14866         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14867         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14868         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14869         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14870
14871 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14872
14873         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14874
14875         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14876         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14877         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14878
14879         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14880
14881         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14882         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14883         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14884         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14885
14886         * math/bits/math-finite.h: Add ldexp support.
14887
14888 2012-01-10  Marek Polacek  <polacek@redhat.com>
14889
14890         * locale/programs/localedef.h (show_archive_content): Add noreturn
14891         attribute.
14892
14893 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14894
14895         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14896
14897 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14898
14899         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14900
14901         * io/Makefile (headers): Add bits/poll2.h.
14902
14903 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14904
14905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14906         typo #include statement.
14907
14908 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14909
14910         * include/sys/cdefs.h: Define __attribute_alloc_size.
14911         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14912         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14913         * elf/pldd.c: Likewise.
14914         * iconv/iconv_charmap.c: Likewise.
14915         * iconv/iconvconfig.c: Likewise.
14916         * iconv/strtab.c: Likewise.
14917         * locale/programs/locale.c: Likewise.
14918         * locale/programs/localedef.h: Likewise.
14919         * locale/programs/simple-hash.c: Likewise.
14920         * nscd/nscd.h: Likewise.
14921         * nss/makedb.c: Likewise.
14922         * sysdeps/generic/ldconfig.h: Likewise.
14923         * locale/programs/localedef.c: Remove xmalloc prototype.
14924         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14925
14926 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14927
14928         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14929         appropriate.
14930
14931 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14932
14933         * math/Makefile (tests): Add tst-CMPLX.
14934         * math/tst-CMPLX.c: New file.
14935
14936         * math/complex.h (CMPLXL): Fix typo.
14937
14938         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14939         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14940         GLIBC_2.16.
14941         * debug/tst-chk1.c: Add poll and ppoll tests.
14942         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14943         * include/sys/poll.h: Add hidden proto for ppoll.
14944         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14945         * sysdeps/mach/hurd/ppoll.c: Likewise.
14946         * io/ppoll.c: Likewise.
14947         * debug/poll_chk.c: New file.
14948         * debug/ppoll_chk.c: New file.
14949         * include/bits/poll2.h: New file.
14950         * io/bits/poll2.h: New file.
14951
14952         [BZ #1350]
14953         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14954
14955         * configure.in: static is always set to yes.  Remove.
14956         * config.make.in: Don't set build-static.
14957         * Makeconfig: Remove use of build-static.
14958         * dlfcn/Makefile: Likewise.
14959         * elf/Makefile: Likewise.
14960         * math/Makefile: Likewise.
14961         * misc/Makefile: Likewise.
14962         * nptl/Makefile: Likewise.
14963         * sysdeps/mach/hurd/Makefile: Likewise.
14964
14965         * configure.in: PWD_P is not used anymore.
14966         * config.make.in: Remove PWD_P entry.
14967
14968         * configure.in: Remove last remnants of RANLIB.
14969         No need to check for signed size_t anymore.
14970         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14971         and IA-64.
14972         Remove __builtin_expect test because we require at least gcc 3.4.
14973         * aclocal.m4: Likewise.
14974
14975         * wcsmbs/mbrtoc16.c: Implement using towc function.
14976         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14977         * wcsmbs/wcsmbsload.c: Likewise.
14978         * iconv/gconv_simple.c: Likewise.
14979         * iconv/gconv_int.h: Likewise.
14980         * iconv/gconv_builtin.h: Likewise.
14981         * iconv/iconv_prog.c: Remove CHAR16 handling.
14982
14983         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14984
14985         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14986
14987         * configure.in: Remove --with-elf and --enable-bounded options.
14988         Dont set base_machine for ia64.  More non-ELF conditions removed.
14989         Remove testing and setting of leading underscore information.
14990         * config.make.in (build-bounded): Set to no.
14991         * config.h.in: Remove NO_UNDERSCORES entry.
14992         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14993         them.
14994         * csu/start.c: Remove !NO_UNDERSCORE code.
14995         * locale/localeinfo.h: Likewise.
14996         * sysdeps/generic/machine-gmon.h: Likewise.
14997         * sysdeps/generic/sysdep.h: Likewise.
14998         * sysdeps/i386/sysdep.h: Likewise.
14999         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15000         * sysdeps/mach/sysdep.h: Likewise.
15001         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15002         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15003         * sysdeps/sh/sysdep.h: Likewise.
15004         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15005         * sysdeps/unix/i386/sysdep.S: Likewise.
15006         * sysdeps/unix/sparc/start.c: Likewise.
15007         * sysdeps/unix/sparc/sysdep.S: Likewise.
15008         * sysdeps/unix/sparc/sysdep.h: Likewise.
15009         * sysdeps/unix/start.c: Likewise.
15010         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15011         * sysdeps/x86_64/sysdep.h: Likewise.
15012
15013 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15014
15015         [BZ #13553]
15016         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15017         for non-gcc.
15018         * argp/argp-fmtstream.h: Use const instead __const.
15019         * argp/argp.h: Likewise.
15020         * assert/assert.h: Likewise.
15021         * bits/fenv.h: Likewise.
15022         * bits/sched.h: Likewise.
15023         * bits/sigset.h: Likewise.
15024         * bits/sigthread.h: Likewise.
15025         * catgets/nl_types.h: Likewise.
15026         * conform/data/pthread.h-data: Likewise.
15027         * crypt/crypt-private.h: Likewise.
15028         * crypt/crypt.h: Likewise.
15029         * crypt/crypt_util.c: Likewise.
15030         * ctype/ctype.h: Likewise.
15031         * debug/execinfo.h: Likewise.
15032         * debug/mbsnrtowcs_chk.c: Likewise.
15033         * debug/mbsrtowcs_chk.c: Likewise.
15034         * debug/wcsnrtombs_chk.c: Likewise.
15035         * debug/wcsrtombs_chk.c: Likewise.
15036         * debug/wcstombs_chk.c: Likewise.
15037         * dirent/dirent.h: Likewise.
15038         * dlfcn/dlfcn.h: Likewise.
15039         * elf/neededtest4.c: Likewise.
15040         * grp/grp.h: Likewise.
15041         * gshadow/gshadow.h: Likewise.
15042         * iconv/gconv.h: Likewise.
15043         * iconv/gconv_int.h: Likewise.
15044         * iconv/gconv_simple.c: Likewise.
15045         * iconv/iconv.h: Likewise.
15046         * iconv/loop.c: Likewise.
15047         * iconv/skeleton.c: Likewise.
15048         * include/aio.h: Likewise.
15049         * include/aliases.h: Likewise.
15050         * include/argz.h: Likewise.
15051         * include/arpa/inet.h: Likewise.
15052         * include/assert.h: Likewise.
15053         * include/dirent.h: Likewise.
15054         * include/dlfcn.h: Likewise.
15055         * include/execinfo.h: Likewise.
15056         * include/fcntl.h: Likewise.
15057         * include/fenv.h: Likewise.
15058         * include/glob.h: Likewise.
15059         * include/grp.h: Likewise.
15060         * include/libintl.h: Likewise.
15061         * include/mntent.h: Likewise.
15062         * include/netdb.h: Likewise.
15063         * include/pwd.h: Likewise.
15064         * include/rpc/netdb.h: Likewise.
15065         * include/sched.h: Likewise.
15066         * include/search.h: Likewise.
15067         * include/shadow.h: Likewise.
15068         * include/signal.h: Likewise.
15069         * include/stdio.h: Likewise.
15070         * include/stdlib.h: Likewise.
15071         * include/string.h: Likewise.
15072         * include/sys/socket.h: Likewise.
15073         * include/sys/stat.h: Likewise.
15074         * include/sys/statfs.h: Likewise.
15075         * include/sys/statvfs.h: Likewise.
15076         * include/sys/syslog.h: Likewise.
15077         * include/sys/time.h: Likewise.
15078         * include/sys/uio.h: Likewise.
15079         * include/time.h: Likewise.
15080         * include/unistd.h: Likewise.
15081         * include/utmp.h: Likewise.
15082         * include/wchar.h: Likewise.
15083         * include/wctype.h: Likewise.
15084         * inet/aliases.h: Likewise.
15085         * inet/arpa/inet.h: Likewise.
15086         * inet/netinet/ether.h: Likewise.
15087         * inet/netinet/in.h: Likewise.
15088         * intl/libintl.h: Likewise.
15089         * io/bits/fcntl2.h: Likewise.
15090         * io/fcntl.h: Likewise.
15091         * io/ftw.h: Likewise.
15092         * io/sys/poll.h: Likewise.
15093         * io/sys/stat.h: Likewise.
15094         * io/sys/statfs.h: Likewise.
15095         * io/sys/statvfs.h: Likewise.
15096         * io/utime.h: Likewise.
15097         * libio/bits/stdio.h: Likewise.
15098         * libio/bits/stdio2.h: Likewise.
15099         * libio/libio.h: Likewise.
15100         * libio/libioP.h: Likewise.
15101         * libio/stdio.h: Likewise.
15102         * locale/lc-ctype.c: Likewise.
15103         * locale/locale.h: Likewise.
15104         * login/utmp.h: Likewise.
15105         * malloc/arena.c: Likewise.
15106         * malloc/malloc.c: Likewise.
15107         * malloc/malloc.h: Likewise.
15108         * malloc/mcheck.c: Likewise.
15109         * malloc/mtrace.c: Likewise.
15110         * math/bits/mathcalls.h: Likewise.
15111         * math/fenv.h: Likewise.
15112         * math/math_private.h: Likewise.
15113         * misc/bits/error.h: Likewise.
15114         * misc/bits/syslog.h: Likewise.
15115         * misc/err.h: Likewise.
15116         * misc/error.h: Likewise.
15117         * misc/fstab.h: Likewise.
15118         * misc/mntent.h: Likewise.
15119         * misc/regexp.h: Likewise.
15120         * misc/search.h: Likewise.
15121         * misc/sgtty.h: Likewise.
15122         * misc/sys/mman.h: Likewise.
15123         * misc/sys/syslog.h: Likewise.
15124         * misc/sys/uio.h: Likewise.
15125         * misc/sys/xattr.h: Likewise.
15126         * misc/ttyent.h: Likewise.
15127         * nis/rpcsvc/ypclnt.h: Likewise.
15128         * nss/nss.h: Likewise.
15129         * posix/bits/unistd.h: Likewise.
15130         * posix/fnmatch.h: Likewise.
15131         * posix/glob.h: Likewise.
15132         * posix/sched.h: Likewise.
15133         * posix/spawn.h: Likewise.
15134         * posix/sys/wait.h: Likewise.
15135         * posix/unistd.h: Likewise.
15136         * posix/wordexp.h: Likewise.
15137         * pwd/pwd.h: Likewise.
15138         * resolv/netdb.h: Likewise.
15139         * resource/sys/resource.h: Likewise.
15140         * rt/aio.h: Likewise.
15141         * rt/bits/mqueue2.h: Likewise.
15142         * rt/mqueue.h: Likewise.
15143         * shadow/shadow.h: Likewise.
15144         * signal/signal.h: Likewise.
15145         * socket/send.c: Likewise.
15146         * socket/sendto.c: Likewise.
15147         * socket/sys/socket.h: Likewise.
15148         * stdio-common/printf.h: Likewise.
15149         * stdlib/bits/stdlib.h: Likewise.
15150         * stdlib/fmtmsg.h: Likewise.
15151         * stdlib/monetary.h: Likewise.
15152         * stdlib/stdlib.h: Likewise.
15153         * stdlib/ucontext.h: Likewise.
15154         * streams/stropts.h: Likewise.
15155         * string/argz.h: Likewise.
15156         * string/bits/string2.h: Likewise.
15157         * string/string.h: Likewise.
15158         * string/strings.h: Likewise.
15159         * sunrpc/rpc/auth.h: Likewise.
15160         * sunrpc/rpc/auth_des.h: Likewise.
15161         * sunrpc/rpc/clnt.h: Likewise.
15162         * sunrpc/rpc/netdb.h: Likewise.
15163         * sunrpc/rpc/pmap_clnt.h: Likewise.
15164         * sunrpc/rpc/xdr.h: Likewise.
15165         * sysdeps/generic/inttypes.h: Likewise.
15166         * sysdeps/generic/net/if.h: Likewise.
15167         * sysdeps/generic/sys/swap.h: Likewise.
15168         * sysdeps/gnu/net/if.h: Likewise.
15169         * sysdeps/gnu/utmpx.h: Likewise.
15170         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15171         * sysdeps/i386/i486/bits/string.h: Likewise.
15172         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15173         * sysdeps/s390/bits/string.h: Likewise.
15174         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15175         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15176         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15177         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15178         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15179         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15180         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15181         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15182         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15183         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15184         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15185         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15186         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15187         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15188         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15189         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15190         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15191         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15192         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15193         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15194         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15195         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15196         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15197         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15198         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15199         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15200         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15201         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15202         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15203         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15204         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15205         * sysvipc/sys/ipc.h: Likewise.
15206         * sysvipc/sys/msg.h: Likewise.
15207         * sysvipc/sys/sem.h: Likewise.
15208         * sysvipc/sys/shm.h: Likewise.
15209         * termios/termios.h: Likewise.
15210         * time/sys/time.h: Likewise.
15211         * time/time.h: Likewise.
15212         * wcsmbs/bits/wchar2.h: Likewise.
15213         * wcsmbs/uchar.h: Likewise.
15214         * wcsmbs/wchar.h: Likewise.
15215         * wctype/wctype.h: Likewise.
15216
15217         [BZ #13551]
15218         * Makeconfig: Remove all but ELF support including AIX support.
15219         * Makerules: Likewise.
15220         * config.h.in: Likewise.
15221         * config.make.in: Likewise.
15222         * configure: Likewise.
15223         * configure.in: Likewise.
15224         * csu/Makefile: Likewise.
15225         * csu/version.c: Likewise.
15226         * debug/Makefile: Likewise.
15227         * dlfcn/Makefile: Likewise.
15228         * elf/Makefile: Likewise.
15229         * extra-lib.mk: Likewise.
15230         * iconv/Makefile: Likewise.
15231         * include/libc-symbols.h: Likewise.
15232         * include/shlib-compat.h: Likewise.
15233         * resolv/Makefile: Likewise.
15234         * resolv/res_libc.c: Likewise.
15235         * rt/Makefile: Likewise.
15236         * sysdeps/i386/asm-syntax.h: Likewise.
15237         * sysdeps/i386/sysdep.h: Likewise.
15238         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15239         * sysdeps/mach/sysdep.h: Likewise.
15240         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15241         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15242         * sysdeps/s390/asm-syntax.h: Likewise.
15243         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15244         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15245         * sysdeps/sh/sysdep.h: Likewise.
15246         * sysdeps/unix/sparc/sysdep.h: Likewise.
15247         * sysdeps/wordsize-32/divdi3.c: Likewise.
15248         * sysdeps/x86_64/sysdep.h: Likewise.
15249
15250         * argp/Versions: Remove _argp_unlock_xxx.
15251
15252         [BZ #13559]
15253         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15254         * abilist/libBrokenLocale.abilist: Likewise.
15255         * abilist/libanl.abilist: Likewise.
15256         * abilist/libc.abilist: Likewise.
15257         * abilist/libcrypt.abilist: Likewise.
15258         * abilist/libdl.abilist: Likewise.
15259         * abilist/libm.abilist: Likewise.
15260         * abilist/libnsl.abilist: Likewise.
15261         * abilist/libpthread.abilist: Likewise.
15262         * abilist/libresolv.abilist: Likewise.
15263         * abilist/librt.abilist: Likewise.
15264         * abilist/libthread_db.abilist: Likewise.
15265         * abilist/libutil.abilist: Likewise.
15266         * abilist/libnss_db.abilist: New file.
15267
15268         * scripts/abilist.awk: Add support for indirect functions.
15269
15270         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15271
15272         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15273
15274         * shlib-versions: Remove entries for ports architectures.
15275
15276         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15277         files in ports.
15278         * elf/stackguard-macros.h: Remove support for IA-64.
15279         * elf/tst-auditmod1.c: Likewise.
15280         * sysdeps/generic/ldsodefs.h: Likewise.
15281
15282         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15283         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15284         configure files.
15285
15286         [BZ #13552]
15287         * configure.in: Remove --enable-omitfp support.
15288         * FAQ.in: Adjust.
15289         * config.make.in: Likewise.
15290         * Makeconfig: Likewise.
15291         * manual/install.texi: Likewise.
15292
15293         In case anyone cares, the IA-64 architecture could move to ports.
15294         * sysdeps/ia64/*: Removed.
15295         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15296         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15297
15298         [BZ #13555]
15299         * configure.in: Remove entries for unsupported architectures.
15300
15301         [BZ #13533]
15302         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15303         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15304         routines.
15305         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15306         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15307         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15308         fall back to using wcrtomb.
15309         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15310         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15311         renaming.
15312         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15313         * wcsmbs/tst-c16c32-1.c: New file.
15314
15315         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15316         local variable.
15317
15318         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15319
15320         * elf/tst-unique3.cc: Add explicit declaration of gets.
15321         * elf/tst-unique3lib.cc: Likewise.
15322         * elf/tst-unique3lib2.cc: Likewise.
15323         * elf/tst-unique4.cc: Likewise.
15324
15325         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15326
15327 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15328
15329         [BZ #13566]
15330         * assert/assert.h (static_assert): Don't define for C++.
15331         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15332         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15333
15334 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15335
15336         * iconv/loop.c (single loop): Fix assertion in storing of
15337         remaining bytes.
15338
15339         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15340
15341 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15342
15343         * posix/getconf.c: Update copyright year.
15344         * nss/getent.c: Likewise.
15345         * nss/makedb.c: Likewise.
15346         * iconv/iconvconfig.c: Likewise.
15347         * iconv/iconv_prog.c: Likewise.
15348         * elf/ldconfig.c: Likewise.
15349         * elf/pldd.c: Likewise.
15350         * elf/sotruss.ksh: Likewise.
15351         * catgets/gencat.c: Likewise.
15352         * csu/version.c: Likewise.
15353         * elf/ldd.bash.in: Likewise.
15354         * elf/sprof.c (print_version): Likewise.
15355         * locale/programs/locale.c: Likewise.
15356         * locale/programs/localedef.c: Likewise.
15357         * login/programs/pt_chown.c: Likewise.
15358         * nscd/nscd.c (print_version): Likewise.
15359         * debug/xtrace.sh: Likewise.
15360         * malloc/memusage.sh: Likewise.
15361         * malloc/mtrace.pl: Likewise.
15362         * debug/catchsegv.sh: Likewise.
15363
15364 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15365
15366         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15367         pure attribute.
15368
15369 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15370
15371         [BZ #13533]
15372         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15373         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15374         transformations.
15375         * iconv/gconv_int.h: Likewise.
15376         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15377         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15378         from libc for GLIBC_2.16.
15379         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15380         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15381         * wcsmbs/uchar.h: Really define mbstate_t.
15382         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15383         * wcsmbs/c16rtomb.c: New file.
15384         * wcsmbs/mbrtoc16.c: New file.
15385         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15386         for C/POSIX locale.
15387         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15388         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15389
15390         * wcsmbs/wchar.h: Add missing __restrict.
15391
15392 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15393
15394         [BZ #13532]
15395         * time/Makefile (routines): Add timespec_get.
15396         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15397         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15398         timespec for ISO C11.
15399         * time/timespec_get.c: New file.
15400         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15401         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15402
15403         [BZ #13531]
15404         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15405         * stdlib/stdlib.h: Declare aligned_alloc.
15406         * Versions.def: Add GLIBC_2.16 for libc.
15407         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15408
15409         [BZ 13527]
15410         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15411         ISO C11.
15412
15413         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15414         code.
15415
15416         [BZ #13528]
15417         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15418
15419         [BZ #13529]
15420         * assert/assert.h (static_assert): Define.
15421
15422         * version.h: Update for 2.16 development version.
15423
15424         [BZ #13526]
15425         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15426         _ISOC11_SOURCE.
15427
15428         * version.h (RELEASE): Bump for 2.15 release.
15429         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15430
15431         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15432         Patch by Marek Polacek <mpolacek@redhat.com>.
15433
15434         * bits/byteswap.h: Protect long long constants with __extension__.
15435         * sysdeps/i386/bits/byteswap.h: Likewise.
15436         * sysdeps/ia64/bits/byteswap.h: Likewise.
15437         * sysdeps/s390/bits/byteswap.h: Likewise.
15438         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15439
15440 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15441
15442         [BZ #13540]
15443         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15444         destination buffer.
15445         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15446
15447 2011-12-23  Marek Polacek  <polacek@redhat.com>
15448
15449         * elf/dl-addr.c (determine_info): Add inline keyword.
15450         * elf/tst-auditmod4b.c (check_avx): Likewise.
15451         * elf/tst-auditmod6b.c (check_avx): Likewise.
15452         * elf/tst-auditmod6c.c (check_avx): Likewise.
15453         * elf/tst-auditmod7b.c (check_avx): Likewise.
15454
15455 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15456
15457         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15458         !__SSE_MATH__.
15459
15460 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15461
15462         [BZ #13540]
15463         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15464         processing for last bytes.
15465
15466 2011-08-06  Bruno Haible  <bruno@clisp.org>
15467
15468         [BZ #13061]
15469         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15470         U+0385, not to U+1FEE.
15471
15472         [BZ #13062]
15473         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15474         entry for U+00A5 U+0301.
15475
15476 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15477
15478         [BZ #13166]
15479         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15480         buffer for the output is too small.
15481
15482         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15483         optimization.
15484
15485         [BZ #13185]
15486         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15487         SSE flags if possible.
15488
15489 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15490
15491         [BZ #13540]
15492         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15493         processing for last bytes.
15494
15495 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15496
15497         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15498         (syscall-list-default-options, syscall-list-default-condition)
15499         (syscall-list-includes): Define.
15500         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15501         list of ABIs and options and #if conditions for each ABI.  Do not
15502         handle common syscalls between ABIs specially.
15503         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15504         Remove.
15505         (syscall-list-variants, syscall-list-32bit-options)
15506         (syscall-list-32bit-condition, syscall-list-64bit-options)
15507         (syscall-list-64bit-condition): Define.
15508         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15509         (syscall-list-variants, syscall-list-32bit-options)
15510         (syscall-list-32bit-condition, syscall-list-64bit-options)
15511         (syscall-list-64bit-condition): Define.
15512         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15513         Remove.
15514         (syscall-list-variants, syscall-list-32bit-options)
15515         (syscall-list-32bit-condition, syscall-list-64bit-options)
15516         (syscall-list-64bit-condition): Define.
15517         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15518         Remove.
15519         (syscall-list-variants, syscall-list-32bit-options)
15520         (syscall-list-32bit-condition, syscall-list-64bit-options)
15521         (syscall-list-64bit-condition): Define.
15522
15523 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15524
15525         * locale/iso-639.def: Add brx entry.
15526
15527         [BZ #13328]
15528         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15529         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15530
15531         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15532         __feraiseexcept_renamed.
15533
15534 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15535
15536         [BZ #13538]
15537         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15538         EPOLLET with unsigned values.
15539         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15540         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15541
15542         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15543         to large cancellation.
15544         * math/s_cacoshf.c: Likewise.
15545         * math/s_cacoshl.c: Likewise.
15546
15547 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15548
15549         [BZ #13305]
15550         [BZ #12786]
15551         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15552         * math/s_cacoshf.c: Likewise.
15553         * math/s_cacoshl.c: Likewise.
15554
15555 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15556
15557         [BZ #13439]
15558         * iconv/gconv.h: Define __GCONV_SWAP.
15559         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15560         * iconvdata/utf-16.c: Likewise.
15561         * iconvdata/utf-32.c: Likewise.
15562
15563 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15564
15565         [BZ #13524]
15566         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15567         numerator after shifting it by one limb.
15568
15569 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15570
15571         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15572         under [__USE_EXTERN_INLINES].
15573
15574 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15575
15576         [BZ #13446]
15577         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15578
15579 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15580
15581         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15582         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15583         optimized code.
15584         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15585         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15586         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15587         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15588         for strncasecmp/strncasecmp_l compilation.
15589         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15590         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15591
15592 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15593
15594         [BZ #13484]
15595         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15596         of __asm__.
15597
15598 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15599
15600         [BZ #13506]
15601         * time/tzfile.c (__tzfile_read): Check values from file header.
15602
15603 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15604
15605         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15606         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15607         * powerpc/powerpc32/dl-start.S: Likewise.
15608         * powerpc/powerpc32/elf/start.S: Likewise.
15609         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15610         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15611         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15612         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15613         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15614         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15615         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15616         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15617         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15618         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15619         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15620         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15621         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15622         * powerpc/powerpc32/memset.S: Likewise.
15623         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15624         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15625         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15626         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15627         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15628         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15629         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15630         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15631         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15632         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15633         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15634         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15635         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15636
15637 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15638
15639         * math/libm-test.inc: Added more nearbyint tests.
15640         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15641         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15642         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15643         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15644
15645 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15646
15647         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15648         FD_CLOEXEC.
15649
15650 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15651
15652         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15653         Add wcscpy-ssse3 wcscpy-c.
15654         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15655         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15656         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15657         * sysdeps/x86_64/wcschr.S: New file.
15658         * sysdeps/x86_64/wcsrchr.S: New file.
15659         * string/test-strcmp.c: Remove checking of wcscmp function for
15660         wrong alignments.
15661         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15662         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15663         wcsrchr-sse2 wcsrchr-c.
15664         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15665         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15666         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15667         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15668         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15669         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15670         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15671         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15672         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15673         * wcsmbc/wcschr.c (WCSCHR): New macro.
15674
15675 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15676
15677         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15678         * wcsmbs/test-wcsrchr.c: New file.
15679         * string/test-strrchr.c: Add wcsrchr support.
15680         (WIDE): New macro.
15681         * wcsmbs/test-wcscpy.c: New file.
15682         * string/test-strcpy.c: Add wcscpy support.
15683         (WIDE): New macro.
15684
15685 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15686
15687         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15688         the inner loop.
15689
15690 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15691
15692         [BZ #13472]
15693         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15694
15695 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15696
15697         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15698         Minor optimizations.
15699
15700         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15701         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15702         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15703
15704 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15705
15706         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15707         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15708         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15709         for gcc to avoid warnings.
15710         * inet/Makefile (tests): Add tst-checks.
15711         * inet/tst-checks.c: New file.
15712
15713         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15714         warning.
15715
15716         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15717         __wmemcmp_sse2.
15718
15719         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15720         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15721
15722         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15723
15724 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15725
15726         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15727         problem.
15728
15729         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15730
15731 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15732
15733         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15734         conditional on GCC version.
15735         (__arch_compare_and_exchange_val_8_acq)
15736         (__arch_compare_and_exchange_val_16_acq)
15737         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15738         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15739         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15740
15741 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15742
15743         * sysdeps/sh/backtrace.c: New file.
15744
15745 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15746
15747         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15748         parenthesis.
15749
15750 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15751
15752         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15753         falling back to utime.
15754
15755 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15756
15757         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15758         expectations for float.
15759
15760 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15761
15762         * locale/weight.h (findidx): Add parameter len.
15763         * locale/weightwc.h (findidx): Likewise.
15764         * posix/fnmatch_loop.c (FCT): Adjust caller.
15765         * posix/regcomp.c (build_equiv_class): Likewise.
15766         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15767         * posix/regexec.c (check_node_accept_bytes): Likewise.
15768         * string/strcoll_l.c (STRCOLL): Likewise.
15769         * string/strxfrm_l.c (STRXFRM): Likewise.
15770
15771 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15772
15773         * Makefile.in: Remove CVSOPT handling.
15774         * configure.in: Remove use of AC_REVISION.
15775         * iconvdata/Makefile (distribute): No need to filter out CVS.
15776         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15777         handling.
15778
15779 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15780
15781         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15782         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15783         [USE_AS_STRNCASECMP_L]: Likewise.
15784         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15785         NO_TLS_DIRECT_SEG_REFS.
15786         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15787         Fix argument offsets for non-PIC.
15788         [USE_AS_STRNCASECMP_L]: Likewise.
15789         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15790         NO_TLS_DIRECT_SEG_REFS.
15791
15792 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15793
15794         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15795         O_CLOEXEC.
15796         * locale/loadlocale.c (_nl_load_locale): Likewise.
15797
15798 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15799
15800         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15801         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15802         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15803         (SYSCALL_GETTIME): Set errno on error.
15804
15805         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15806         count references to noai6ai_cached.
15807
15808 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15809
15810         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15811
15812         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15813         FD_CLOEXEC for /proc/self/maps.
15814
15815         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15816         FD_CLOEXEC for /proc/meminfo.
15817
15818         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15819         gai.conf.
15820
15821         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15822         FD_CLOEXEC for given file.
15823
15824         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15825
15826         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15827         FD_CLOEXEC for /etc/hosts.
15828         (_gethtent): Likewise.
15829
15830         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15831
15832         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15833         cancellation and set FD_CLOEXEC for /etc/netgroup.
15834
15835         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15836         reading /etc/publickey.
15837
15838         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15839         allow cancellation when reading /etc/group.
15840
15841         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15842         cancellation.
15843         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15844
15845         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15846         when using data file.
15847
15848         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15849
15850         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15851         (write_nis_obj): Use "c" and "e" in fopen.
15852
15853         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15854
15855         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15856
15857         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15858
15859         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15860
15861         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15862         locale.alias.
15863
15864         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15865
15866         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15867
15868         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15869
15870         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15871         file parsing and set FD_CLOEXEC.
15872
15873 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15874
15875         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15876
15877 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15878
15879         * malloc/arena.c (arena_get2): Don't call reused_arena when
15880         _int_new_arena failed.
15881
15882 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15883
15884         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15885         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15886         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15887         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15888         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15889         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15890         to compile strcasecmp and strncasecmp.
15891         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15892         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15893
15894         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15895
15896 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15897
15898         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15899         locale-defines.sym to gen-as-const-headers.
15900         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15901         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15902         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15903         to compile strcasecmp and strncasecmp.
15904         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15905         strcasecmp_l and strncasecmp_l.
15906         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15907         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15908         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15909         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15910         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15911         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15912         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15913         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15914         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15915         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15916         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15917
15918 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15919
15920         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15921         result of SYSDEP_GETTIME_CPU to retval.
15922         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15923         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15924
15925         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15926         variable.
15927
15928         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15929         mantissa words.
15930         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15931
15932         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15933         from unused variable.
15934
15935         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15936         DWARF definitions.
15937         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15938         for assembling.
15939
15940         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15941         over namespaces.
15942
15943         * sunrpc/rpc_prot.c (rejected): Fix case value.
15944
15945         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15946         unsigned long long int to avoid warnings in shift.
15947
15948         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15949         of use of trans.
15950         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15951         variable tmp.
15952
15953         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15954         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15955         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15956
15957         * nis/nis_table.c (nis_list): Use variable of correct type for
15958         result of __follow_path call.
15959
15960 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15961
15962         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15963         of math functions ceil, trunc, floor, round, and sqrt, when
15964         avaliable on the platform.
15965         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15966         name clash.
15967         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15968         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15969         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15970
15971 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15972
15973         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15974         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15975
15976 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15977
15978         * include/unistd.h: Fix __readlink return type.
15979         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15980
15981 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15982
15983         * stdlib/ucontext.h: Undo last change for makecontext.
15984
15985 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15986
15987         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15988
15989         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15990         * setjmp/setjmp.h: Mark functions as non-leaf.
15991         * setjmp/bits/setjmp2.h: Likewise.
15992         * stdlib/ucontext.h: Likewise.
15993
15994 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15995
15996         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15997         (reused_arena): Don't check arena limit.
15998         (arena_get2): Atomically check arena limit.
15999
16000 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16001
16002         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16003         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16004
16005         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16006         instructions.
16007
16008 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16009
16010         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16011         handler when locking.
16012
16013         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16014         Fix size of allocated buffer.
16015
16016 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16017
16018         [BZ #10103]
16019         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16020         declarations for long double functions.
16021         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16022
16023         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16024
16025 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16026
16027         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16028         installed.
16029
16030         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16031         is disabled.
16032
16033 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16034
16035         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16036
16037 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16038
16039         * include/alloca.h (stackinfo_alloca_round): Define.
16040         (extend_alloca): Use it.
16041         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16042         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16043         here.
16044
16045         * scripts/check-local-headers.sh: Ignore libaudit.h.
16046
16047         * nscd/Makefile (extra-objs): Make recursively expanded.
16048
16049 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16050
16051         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16052         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16053
16054         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16055         * posix/tst-rfc3484-2.c: Likewise.
16056         * posix/tst-rfc3484-3.c: Likewise.
16057
16058         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16059         process_vm_writev.
16060         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16061         process_vm_writev.
16062         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16063         process_vm_writev from libc using GLIBC_2.15 version.
16064
16065         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16066
16067 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16068
16069         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16070         stack usage.
16071
16072 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16073
16074         [BZ #13367]
16075         * nss/getent.c (initgroups_keys): Show error message in case no group
16076         names are given.
16077
16078         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16079         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16080         __bump_nl_timestamp.
16081         * nscd/connections (nscd_init): When host database is served open
16082         netlink socket and request notification about configuration changes.
16083         (main_loop_poll): Track netlink file descriptor and bump timestamp
16084         in case data becomes available.
16085         (main_loop_epoll): Likewise.
16086         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16087         (database_pers_head): Add extra_data fileds.
16088         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16089         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16090         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16091         Adjust caller.
16092         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16093         in6ai data, call __free_in6ai.
16094         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16095         Add -DHAVE_NETLINK.
16096         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16097         interface information.  Reuse previous data if netlink timestamp
16098         is not changed.
16099         (__bump_nl_timestamp): New function.
16100         (__free_in6ai): New function.
16101
16102 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16103
16104         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16105         close_not_cancel_no_status here.
16106         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16107
16108 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16109
16110         [BZ #13276]
16111         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16112         return value.
16113
16114         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16115         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16116         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16117
16118 2011-07-03  Andreas Jaeger  <aj@suse.de>
16119
16120         [BZ #10709]
16121         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16122         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16123         * math/libm-test.inc (sin_test): Add test case.
16124
16125 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16126
16127         [BZ #13337]
16128         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16129         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16130
16131         * elf/chroot_canon.c (chroot_canon): Cleanups.
16132
16133         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16134
16135         [BZ #13335]
16136         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16137         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16138
16139         * string/test-strchr.c: Make usable for strchrnul testing.
16140         * string/test-strchrnul.c: New file.
16141         * string/Makefile (strop-tests): Add strchrnul.
16142
16143         * po/it.po: Update from translation team.
16144         * po/es.po: Likewise.
16145
16146 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16147
16148         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16149         the three constants needed as parameters.  Drop the others.
16150         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16151         __m128i_strloadu_tolower.
16152         Create and initialize variable zero and use it in all the places
16153         where _mm_setzero_si128 was used.
16154
16155         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16156         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16157         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16158         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16159         anymore.
16160         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16161         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16162         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16163         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16164         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16165         __mpranred, __mptan.
16166         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16167         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16168         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16169         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16170         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16171         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16172         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16173         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16174         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16175
16176 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16177
16178         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16179         redefine if SHARED.
16180         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16181
16182         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16183         wide char related routines to wcsmbs subdir.
16184
16185 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16186
16187         [BZ #13344]
16188         * misc/sys/cdefs.h (__THROWNL): Define.
16189         * posix/unistd.h: Use __THREADNL instead of __THREAD
16190         for memory synchronization functions.
16191
16192 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16193
16194         [BZ #13349]
16195         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16196         doesn't exist.
16197         * manual/stdio.texi (Obstack Streams): Node removed.
16198
16199 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16200
16201         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16202         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16203         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16204
16205         * math/math_private.h (math_force_eval): Allow non-addressable
16206         arguments.
16207         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16208
16209 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16210
16211         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16212         file is not needed.
16213
16214         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16215         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16216         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16217         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16218         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16219         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16220         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16221         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16222         Add AVX variants.
16223         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16224         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16225         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16226         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16227         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16228         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16229         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16230         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16231         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16232         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16233         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16234         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16235         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16236         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16237         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16238         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16239         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16240         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16241         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16242
16243         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16244         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16245
16246         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16247         place.  Use VEX encoding when compiling for AVX.
16248
16249 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16250
16251         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16252         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16253
16254         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16255
16256 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16257
16258         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16259         useless if() expression.
16260         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16261         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16262         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16263         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16264         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16265         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16266         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16267         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16268         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16269         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16270         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16271         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16272         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16273         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16274         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16275         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16276         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16277         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16278         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16279
16280         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16281
16282 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16283
16284         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16285         condition.
16286         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16287
16288 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16289
16290         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16291         .text section.  Avoid duplicate constants.
16292         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16293         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16294         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16295         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16296         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16297         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16298         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16299         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16300         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16301         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16302         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16303         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16304         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16305         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16306         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16307         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16308         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16309         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16310         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16311         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16312         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16313         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16314         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16315         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16316         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16317         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16318         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16319         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16320         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16321         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16322         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16323         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16324         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16325         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16326         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16327         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16328         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16329         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16330         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16331         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16332         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16333         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16334         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16335         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16336         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16337
16338 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16339
16340         * sysdeps/x86_64/dla.h: Move to ...
16341         * sysdeps/x86_64/fpu/dla.h: ...here.
16342         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16343         situations.  Use __builtin_fma only for gcc 4.6 and up.
16344
16345         * config.make.in: Add have-mfma4 entry.
16346         * configure.in: Substitute libc_cv_cc_fma4.
16347         * math/Makefile (dbl-only-routines): Add sincostab.
16348         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16349         Use __sincostab not sincos.
16350         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16351         name is a macro.
16352         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16353         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16354         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16355         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16356         using __copysign.
16357         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16358         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16359         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16360         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16361         and __inv.
16362         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16363         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16364         __copysign.
16365         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16366         define aliases when function name is a macro.
16367         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16368         sysdeps/ieee754/dbl-64/sincos.tbl.
16369         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16370         fma4-enabled routines.
16371         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16372         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16373         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16374         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16375         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16376         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16377         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16378         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16379         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16380         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16381         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16382         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16383         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16384         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16385         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16386         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16387         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16388         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16389         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16390         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16391         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16392         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16393         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16394         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16395         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16396         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16397         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16398         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16399         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16400         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16401
16402         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16403         rename.
16404         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16405         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16406         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16407         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16408         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16409         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16410         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16411         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16412
16413 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16414
16415         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16416
16417 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16418
16419         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16420
16421         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16422         prediction.
16423         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16424
16425         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16426         Remove unused variable magic_bits.
16427         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16428
16429         * string/strnlen.c: Define and use STRNLEN macro.
16430         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16431         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16432         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16433         * wcsmbs/wcslen.c: Define and use WCSLEN.
16434         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16435         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16436         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16437         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16438         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16439         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16440         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16441
16442 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16443
16444         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16445         strnlen-sse2-no-bsf.
16446         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16447         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16448         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16449         Add strnlen support.
16450         (USE_AS_STRNLEN): New macro.
16451         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16452         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16453         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16454         * sysdeps/x86_64/wcslen.S: New file.
16455
16456 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16457
16458         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16459         XMM-moves are used for copying on small sizes.
16460
16461 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16462
16463         * wcsmbs/Makefile (strop-tests): Add wcschr.
16464         * wcsmbs/test-wcschr.c: New file.
16465         * string/test-strchr.c: Update.
16466         Add wcschr support.
16467         (WIDE): New macro.
16468
16469 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16470
16471         * wcsmbs/Makefile (strop-tests): Add wcslen.
16472         * wcsmbs/test-wcslen.c: New file.
16473         * string/test-strlen.c: Update.
16474         Add wcslen support.
16475         (WIDE): New macro.
16476
16477 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16478
16479         * po/it.po: Update from translation team.
16480
16481 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16482
16483         * sysdeps/x86_64/wcscmp.S: Update.
16484         Fix wrong comparison semantics.
16485         wcscmp shall use signed comparison not unsigned.
16486         Don't use substraction to avoid overflow bug.
16487         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16488         * wcsmbc/wcscmp.c: Likewise.
16489         * string/test-strcmp.c: Likewise.
16490         Add new tests to check cases with negative values.
16491
16492 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16493
16494         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16495         * sysdeps/x86_64/dla.h: ...here.  New file.
16496         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16497         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16498         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16499         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16500         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16501         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16502         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16503         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16504         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16505
16506 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16507
16508         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16509         __ynl_finite aliases.
16510
16511 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16512
16513         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16514
16515         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16516         define DLA_FMA.
16517         [DLA_FMA] (EMULV): Use DLA_FMA.
16518         [DLA_FMA] (MUL12): Use EMULV.
16519         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16520         that are not needed.
16521         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16522         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16523         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16524         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16527         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16528
16529 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16530
16531         * math/s_nan.c: Undef __nan.
16532         * math/s_nanf.c: Undef __nanf.
16533         * math/s_nanl.c: Undef __nanl.
16534         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16535         "math_private.h".
16536
16537 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16538
16539         * math/s_catan.c: Add branch predictions.
16540         * math/s_catanf.c: Likewise.
16541         * math/s_catanh.c: Likewise.
16542         * math/s_catanhf.c: Likewise.
16543         * math/s_catanhl.c: Likewise.
16544         * math/s_catanl.c: Likewise.
16545         * math/s_cexp.c: Likewise.
16546         * math/s_cexpf.c: Likewise.
16547         * math/s_cexpl.c: Likewise.
16548         * math/s_clog.c: Likewise.
16549         * math/s_clog10.c: Likewise.
16550         * math/s_clog10f.c: Likewise.
16551         * math/s_clog10l.c: Likewise.
16552         * math/s_clogf.c: Likewise.
16553         * math/s_clogl.c: Likewise.
16554         * math/s_csqrt.c: Likewise.
16555         * math/s_csqrtf.c: Likewise.
16556         * math/s_csqrtl.c: Likewise.
16557         * math/s_ctanf.c: Likewise.
16558         * math/s_ctanh.c: Likewise.
16559         * math/s_ctanhf.c: Likewise.
16560         * math/s_ctanhl.c: Likewise.
16561         * math/s_ctanl.c: Likewise.
16562
16563         * math/math_private.h: Define __nan, __nanf, __nanl.
16564         * math/s_cacosh.c: Include <math_private.h>.
16565         * math/s_cacoshl.c: Likewise.
16566         * math/s_casinh.c: Likewise.
16567         * math/s_casinhf.c: Likewise.
16568         * math/s_casinhl.c: Likewise.
16569         * math/s_ccos.c: Rely entire on ccosh.
16570         * math/s_ccosf.c: Rely entire on ccoshf.
16571         * math/s_ccosl.c: Rely entirely on ccoshl.
16572         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16573         Remove tests for FE_INVALID.
16574         * math/s_ccoshf.c: Likewise.
16575         * math/s_ccoshl.c: Likewise.
16576         * math/s_csin.c: Likewise.
16577         * math/s_csinf.c: Likewise.
16578         * math/s_csinh.c Likewise.
16579         * math/s_csinhf.c: Likewise.
16580         * math/s_csinhl.c: Likewise.
16581         * math/s_csinl.c: Likewise.
16582         * math/s_ctan.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16584         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16585         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16586
16587 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16588
16589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16590         compilation problems.
16591
16592         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16593         __builtin_expect.
16594
16595 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16596
16597         * sysdeps/i386/configure.in: Test for -mfma4 option.
16598         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16599         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16600         COMMON_CPUID_INDEX_80000001.
16601         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16602         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16603         use it if FMA3 is not supported.
16604         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16605
16606         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16607         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16608
16609 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16610
16611         [BZ #12892]
16612         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16613         it would create a cycle with a link time dependency.
16614
16615 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16616
16617         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16618         instruction.
16619         * string/Makefile (strop-tests): Add rawmemchr.
16620         * string/test-rawmemchr.c: New file.
16621
16622         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16623         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16624         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16625         when compiling str{,n}casecmp and when AVX is available.  Hook up
16626         new optimized code in initializers.
16627
16628 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16629
16630         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16631         __feraiseexcept instead of feraiseexcept.
16632
16633 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * math/math_private.h: Define defaults for libc_fetestexcept and
16636         libc_feupdateenv.
16637         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16638         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16639         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16640         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16641         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16642         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16643         libc_fetestexcept and libc_feupdateenv.
16644
16645         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16646         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16647         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16648         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16649         libc_feholdexcept_setround.
16650
16651         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16652         Add s_nearbyint-c and s_nearbyintf-c.
16653         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16654         nearbyintf inlines.
16655         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16656         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16657         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16658         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16659
16660         * math/math_private.h: Define defaults for libc_fegetround,
16661         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16662         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16663         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16664         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16665         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16666         standard functions.
16667         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16668         Remove comments and hacks for old compiler versions.
16669         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16670         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16671         libc_feholdexceptl.
16672
16673 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16674
16675         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16676         (__feraiseexcept_renamed): Add __NTH.
16677         (feraiseexcept): Add __NTH.  Rename local variables to fix
16678         namespace violations.
16679
16680 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16681
16682         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16683
16684         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16685
16686         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16687         recently added interfaces.
16688         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16689
16690         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16691         about macro parameter expansion.
16692
16693         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16694         __NO_MATH_INLINES is defined.  Cleanups.
16695
16696         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16697         and __floorf is target has SSE4.1.
16698         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16699         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16700         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16701         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16702
16703         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16704         name.
16705         (floorf): Likewise.
16706
16707         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16708
16709 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16710
16711         * misc/sys/cdefs.h: Fix last change.
16712
16713         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16714         database lookup.
16715
16716 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16717
16718         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16719
16720         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16721         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16722         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16723         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16724         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16725         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16726         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16727         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16728         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16729         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16730         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16731         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16732         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16733         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16734         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16735         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16736         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16737         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16738         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16739         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16740         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16741         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16742
16743         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16744         ceil, ceilf, floor, floorf.
16745
16746         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16747         Perform IRELATIVE relocations last.
16748
16749         * elf/do-rel.h: Add another parameter nrelative, replacing the
16750         local variable with the same name.  Change name of the function
16751         to end in Rel or Rela (uppercase).
16752         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16753         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16754         elf_dynamic_do_##reloc function.
16755
16756 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16757
16758         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16759         is sufficient, at least on modern CPUs.
16760
16761         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16762
16763         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16764         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16765
16766         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16767         __expl_finite.
16768         * math/bits/math-finite.h: Add entries for exp.
16769         * math/e_expl.c: Add __*_finite alias.
16770         * sysdeps/i386/fpu/e_exp.S: Likewise.
16771         * sysdeps/i386/fpu/e_expf.S: Likewise.
16772         * sysdeps/i386/fpu/e_expl.c: Likewise.
16773         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16774         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16775         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16776         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16777         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16778         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16779         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16780
16781         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16782         is sufficient, at least on modern CPUs.
16783
16784         * ctype/ctype-info.c (__ctype_init): Define.
16785         * include/ctype.h (__ctype_init): Declare.
16786         (__ctype_b_loc): The variable is always initialized.
16787         (__ctype_toupper_loc): Likewise.
16788         (__ctype_tolower_loc): Likewise.
16789         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16790         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16791
16792 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16793
16794         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16795
16796         * configure.in: Also look in $cxxmachine/include for C++ system
16797         headers.
16798
16799 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16800
16801         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16802         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16803         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16804         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16805         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16806         (USE_AS_WMEMCMP): New macro.
16807         Fixing indents.
16808         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16809         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16810         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16811         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16812         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16813         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16814         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16815         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16816         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16817         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16818         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16819         (USE_AS_WMEMCMP): New macro.
16820         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16821         * sysdeps/string/test-memcmp.c: Update.
16822         Fix simple_wmemcmp.
16823         Add new tests.
16824         * wcsmbs/wmemcmp.c: Update.
16825         (WMEMCMP): New macro.
16826         Fix overflow bug.
16827
16828 2011-10-12  Andreas Jaeger  <aj@suse.de>
16829
16830         [BZ #13268]
16831         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16832
16833 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16834
16835         * libio/iofwide.c (do_length): Avoid warning.
16836
16837         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16838
16839 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16840
16841         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16842
16843         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16844         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16845         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16846         * sysdeps/i386/i686/fpu/e_log.S: New file.
16847         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16848         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16849
16850         * ctype/ctype.h: Add support for inlined isXXX functions when
16851         compiling C++ code.
16852
16853 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16854
16855         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16856
16857         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16858
16859 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16860
16861         [BZ #13291]
16862         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16863
16864 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16865
16866         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16867         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16868         feraiseexcept.
16869
16870         * sysdeps/x86_64/memrchr.S: Check for zero size.
16871
16872         * string/stratcliff.c: Add memrchr tests.
16873
16874 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16875
16876         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16877         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16878         rawmemchr-sse2 rawmemchr-sse2-bsf.
16879         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16880         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16881         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16882         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16883         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16884         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16885         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16886         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16887         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16888         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16889         * string/memrchr.c (MEMRCHR): New macro.
16890
16891 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16892
16893         Add integration with gcc's -ffinite-math-only and optimize wrapper
16894         functions in libm.
16895         * Versions.def: Define GLIBC_2.15 version for libm.
16896         * math/Makefile (headers): Add bits/math-finite.h.
16897         * math/bits/math-finite.h: New file.
16898         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16899         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16900         * math/e_acoshl.c: Add __*_finite alias.
16901         * math/e_acosl.c: Likewise.
16902         * math/e_asinl.c: Likewise.
16903         * math/e_atan2l.c: Likewise.
16904         * math/e_atanhl.c: Likewise.
16905         * math/e_coshl.c: Likewise.
16906         * math/e_exp10.c: Likewise.
16907         * math/e_exp10f.c: Likewise.
16908         * math/e_exp10l.c: Likewise.
16909         * math/e_exp2l.c: Likewise.
16910         * math/e_fmodl.c: Likewise.
16911         * math/e_gammal_r.c: Likewise.
16912         * math/e_hypotl.c: Likewise.
16913         * math/e_j0l.c: Likewise.
16914         * math/e_j1l.c: Likewise.
16915         * math/e_jnl.c: Likewise.
16916         * math/e_lgammal_r.c: Likewise.
16917         * math/e_log10l.c: Likewise.
16918         * math/e_log2l.c: Likewise.
16919         * math/e_logl.c: Likewise.
16920         * math/e_powl.c: Likewise.
16921         * math/e_sinhl.c: Likewise.
16922         * math/e_sqrtl.c: Likewise.
16923         * math/e_scalb.c: Completely rewritten and optimized.
16924         * math/e_scalbf.c: Likewise.
16925         * math/e_scalbl.c: Likewise.
16926         * math/w_acos.c: Likewise.
16927         * math/w_acosf.c: Likewise.
16928         * math/w_acosl.c: Likewise.
16929         * math/w_acosh.c: Likewise.
16930         * math/w_acoshf.c: Likewise.
16931         * math/w_acoshl.c: Likewise.
16932         * math/w_asin.c: Likewise.
16933         * math/w_asinf.c: Likewise.
16934         * math/w_asinl.c: Likewise.
16935         * math/w_atan2.c: Likewise.
16936         * math/w_atan2f.c: Likewise.
16937         * math/w_atan2l.c: Likewise.
16938         * math/w_atanh.c: Likewise.
16939         * math/w_atanhf.c: Likewise.
16940         * math/w_atanhl.c: Likewise.
16941         * math/w_exp10.c: Likewise.
16942         * math/w_exp10f.c: Likewise.
16943         * math/w_exp10l.c: Likewise.
16944         * math/w_fmod.c: Likewise.
16945         * math/w_fmodf.c: Likewise.
16946         * math/w_fmodl.c: Likewise.
16947         * math/w_j0.c: Likewise.
16948         * math/w_j0f.c: Likewise.
16949         * math/w_j0l.c: Likewise.
16950         * math/w_j1.c: Likewise.
16951         * math/w_j1f.c: Likewise.
16952         * math/w_j1l.c: Likewise.
16953         * math/w_jn.c: Likewise.
16954         * math/w_jnf.c: Likewise.
16955         * math/w_log.c: Likewise.
16956         * math/w_logf.c: Likewise.
16957         * math/w_logl.c: Likewise.
16958         * math/w_log10.c: Likewise.
16959         * math/w_log10f.c: Likewise.
16960         * math/w_log10l.c: Likewise.
16961         * math/w_log2.c: Likewise.
16962         * math/w_log2f.c: Likewise.
16963         * math/w_log2l.c: Likewise.
16964         * math/w_pow.c: Likewise.
16965         * math/w_powf.c: Likewise.
16966         * math/w_powl.c: Likewise.
16967         * math/w_remainder.c: Likewise.
16968         * math/w_remainderf.c: Likewise.
16969         * math/w_remainderl.c: Likewise.
16970         * math/w_scalb.c: Likewise.
16971         * math/w_scalbf.c: Likewise.
16972         * math/w_scalbl.c: Likewise.
16973         * math/w_sqrt.c: Likewise.
16974         * math/w_sqrtf.c: Likewise.
16975         * math/w_sqrtl.c: Likewise.
16976         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16977         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16978         used.
16979         * math/math_private.h: Declare __kernel_standard_f.
16980         * math/w_cosh.c: Remove cruft and optimize a bit.
16981         * math/w_coshf.c: Likewise.
16982         * math/w_coshl.c: Likewise.
16983         * math/w_exp2.c: Likewise.
16984         * math/w_exp2f.c: Likewise.
16985         * math/w_exp2l.c: Likewise.
16986         * math/w_hypot.c: Likewise.
16987         * math/w_hypotf.c: Likewise.
16988         * math/w_hypotl.c: Likewise.
16989         * math/w_lgamma.c: Likewise.
16990         * math/w_lgamma_r.c: Likewise.
16991         * math/w_lgammaf.c: Likewise.
16992         * math/w_lgammaf_r.c: Likewise.
16993         * math/w_lgammal.c: Likewise.
16994         * math/w_lgammal_r.c: Likewise.
16995         * math/w_sinh.c: Likewise.
16996         * math/w_sinhf.c: Likewise.
16997         * math/w_sinhl.c: Likewise.
16998         * math/w_tgamma.c: Likewise.
16999         * math/w_tgammaf.c: Likewise.
17000         * math/w_tgammal.c: Likewise.
17001         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17002         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17003         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17004         Minor optimizations.  Pretty printing.  Remove cruft.
17005         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17006         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17007         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17008         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17009         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17010         * sysdeps/i386/fpu/e_asin.S: Likewise.
17011         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17012         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17013         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17014         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17015         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17016         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17017         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17018         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17019         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17020         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17021         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17022         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17023         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17024         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17025         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17026         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17027         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17028         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17029         * sysdeps/i386/fpu/e_log.S: Likewise.
17030         * sysdeps/i386/fpu/e_log10.S: Likewise.
17031         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17032         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17033         * sysdeps/i386/fpu/e_log2.S: Likewise.
17034         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17035         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17036         * sysdeps/i386/fpu/e_logf.S: Likewise.
17037         * sysdeps/i386/fpu/e_logl.S: Likewise.
17038         * sysdeps/i386/fpu/e_pow.S: Likewise.
17039         * sysdeps/i386/fpu/e_powf.S: Likewise.
17040         * sysdeps/i386/fpu/e_powl.S: Likewise.
17041         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17042         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17043         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17044         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17045         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17046         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17047         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17048         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17049         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17050         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17051         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17052         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17053         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17054         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17055         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17056         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17057         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17058         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17059         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17060         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17061         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17062         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17063         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17064         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17065         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17066         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17067         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17068         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17069         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17070         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17071         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17072         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17073         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17074         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17075         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17076         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17077         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17078         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17079         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17080         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17081         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17082         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17083         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17084         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17085         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17086         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17087         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17088         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17089         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17090         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17091         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17092         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17093         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17094         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17095         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17096         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17097         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17098         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17099         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17100         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17101         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17102         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17103         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17104         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17105         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17106         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17107         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17108         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17109         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17110         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17111         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17112         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17113         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17114         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17115         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17116         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17117         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17118         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17119         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17120         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17121         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17122         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17123         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17124         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17125         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17126         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17127         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17128         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17129         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17130         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17131         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17132         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17133         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17134         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17135         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17136         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17137         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17138         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17139         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17140         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17141         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17142         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17143         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17144         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17145         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17146         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17147         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17148         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17149         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17150         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17151         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17152         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17153         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17154         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17155         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17156         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17157         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17158         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17159         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17160         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17161         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17162         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17163         (__isnanf): Likewise.
17164         (__isinf_ns): Likewise.
17165         (__isinf_nsf): Likewise.
17166         (__finite): Likewise.
17167         (__finitef): Likewise.
17168         (__ieee754_sqrt): Define as macro.
17169         (__ieee754_sqrtf): Define as macro.
17170         (__ieee754_sqrtl): Define as macro.
17171         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17172         inlined copy.
17173         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17174         __FINITE_MATH_ONLY__ consistent.
17175         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17176
17177 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17178
17179         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17180         of rawmemchr.
17181
17182         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17183
17184 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17185
17186         * po/ja.po: Update from translation team.
17187
17188 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17189
17190         * locale/programs/locarchive.c (prepare_address_space): New function.
17191         (create_archive, enlarge_archive, open_archive): Use it.
17192
17193         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17194         inside [SHARED], where it is used.
17195
17196         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17197
17198         * nss/getent.c (netgroup_keys): Remove unused variable.
17199         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17200
17201 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17202
17203         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17204         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17205         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17206         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17207         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17208         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17209         * math/Makefile (libm-calls): Add s_isinf_ns.
17210         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17211         * math/multc3.c: Likewise.
17212         * math/s_casin.c: Likewise.
17213         * math/s_casinf.c: Likewise.
17214         * math/s_casinl.c: Likewise.
17215         * math/s_ccos.c: Likewise.
17216         * math/s_ccosf.c: Likewise.
17217         * math/s_ccosl.c: Likewise.
17218         * math/s_ctan.c: Likewise.
17219         * math/s_ctanf.c: Likewise.
17220         * math/s_ctanh.c: Likewise.
17221         * math/s_ctanhf.c: Likewise.
17222         * math/s_ctanhl.c: Likewise.
17223         * math/s_ctanl.c: Likewise.
17224         * math/w_fmod.c: Likewise.
17225         * math/w_fmodf.c: Likewise.
17226         * math/w_fmodl.c: Likewise.
17227         * math/w_remainder.c: Likewise.
17228         * math/w_remainderf.c: Likewise.
17229         * math/w_remainderl.c: Likewise.
17230         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17231         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17232         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17233         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17234         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17235         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17236         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17237         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17238
17239         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17240         of the number.
17241         * stdio-common/printf_fphex.c: Likewise.
17242         * stdio-common/printf_size.c: Likewise.
17243
17244         * math/e_exp10.c: Include math_private.h using <...> not "...".
17245         * math/e_exp10f.c: Likewise.
17246         * math/e_exp10l.c: Likewise.
17247         * math/e_exp2l.c: Likewise.
17248         * math/e_j0l.c: Likewise.
17249         * math/e_j1l.c: Likewise.
17250         * math/e_jnl.c: Likewise.
17251         * math/e_lgammal_r.c: Likewise.
17252         * math/e_rem_pio2l.c: Likewise.
17253         * math/e_scalb.c: Likewise.
17254         * math/e_scalbf.c: Likewise.
17255         * math/e_scalbl.c: Likewise.
17256         * math/k_cosl.c: Likewise.
17257         * math/k_sinl.c: Likewise.
17258         * math/k_tanl.c: Likewise.
17259         * math/s_cacoshf.c: Likewise.
17260         * math/s_catan.c: Likewise.
17261         * math/s_catanf.c: Likewise.
17262         * math/s_catanh.c: Likewise.
17263         * math/s_catanhf.c: Likewise.
17264         * math/s_catanhl.c: Likewise.
17265         * math/s_catanl.c: Likewise.
17266         * math/s_ccosh.c: Likewise.
17267         * math/s_ccoshf.c: Likewise.
17268         * math/s_ccoshl.c: Likewise.
17269         * math/s_cexp.c: Likewise.
17270         * math/s_cexpf.c: Likewise.
17271         * math/s_cexpl.c: Likewise.
17272         * math/s_clog.c: Likewise.
17273         * math/s_clog10.c: Likewise.
17274         * math/s_clog10f.c: Likewise.
17275         * math/s_clog10l.c: Likewise.
17276         * math/s_clogf.c: Likewise.
17277         * math/s_clogl.c: Likewise.
17278         * math/s_csin.c: Likewise.
17279         * math/s_csinf.c: Likewise.
17280         * math/s_csinh.c: Likewise.
17281         * math/s_csinhf.c: Likewise.
17282         * math/s_csinhl.c: Likewise.
17283         * math/s_csinl.c: Likewise.
17284         * math/s_csqrt.c: Likewise.
17285         * math/s_csqrtf.c: Likewise.
17286         * math/s_csqrtl.c: Likewise.
17287         * math/s_ctan.c: Likewise.
17288         * math/s_ctanf.c: Likewise.
17289         * math/s_ctanh.c: Likewise.
17290         * math/s_ctanhf.c: Likewise.
17291         * math/s_ctanhl.c: Likewise.
17292         * math/s_ctanl.c: Likewise.
17293         * math/s_ldexp.c: Likewise.
17294         * math/s_ldexpf.c: Likewise.
17295         * math/s_ldexpl.c: Likewise.
17296         * math/s_significand.c: Likewise.
17297         * math/s_significandf.c: Likewise.
17298         * math/s_significandl.c: Likewise.
17299         * math/w_acos.c: Likewise.
17300         * math/w_acosf.c: Likewise.
17301         * math/w_acosh.c: Likewise.
17302         * math/w_acoshf.c: Likewise.
17303         * math/w_acoshl.c: Likewise.
17304         * math/w_acosl.c: Likewise.
17305         * math/w_asin.c: Likewise.
17306         * math/w_asinf.c: Likewise.
17307         * math/w_asinl.c: Likewise.
17308         * math/w_atan2.c: Likewise.
17309         * math/w_atan2f.c: Likewise.
17310         * math/w_atan2l.c: Likewise.
17311         * math/w_atanh.c: Likewise.
17312         * math/w_atanhf.c: Likewise.
17313         * math/w_atanhl.c: Likewise.
17314         * math/w_cosh.c: Likewise.
17315         * math/w_coshf.c: Likewise.
17316         * math/w_coshl.c: Likewise.
17317         * math/w_dremf.c: Likewise.
17318         * math/w_exp10.c: Likewise.
17319         * math/w_exp10f.c: Likewise.
17320         * math/w_exp10l.c: Likewise.
17321         * math/w_exp2.c: Likewise.
17322         * math/w_exp2f.c: Likewise.
17323         * math/w_fmod.c: Likewise.
17324         * math/w_fmodf.c: Likewise.
17325         * math/w_fmodl.c: Likewise.
17326         * math/w_hypot.c: Likewise.
17327         * math/w_hypotf.c: Likewise.
17328         * math/w_hypotl.c: Likewise.
17329         * math/w_j0.c: Likewise.
17330         * math/w_j0f.c: Likewise.
17331         * math/w_j0l.c: Likewise.
17332         * math/w_j1.c: Likewise.
17333         * math/w_j1f.c: Likewise.
17334         * math/w_j1l.c: Likewise.
17335         * math/w_jn.c: Likewise.
17336         * math/w_jnf.c: Likewise.
17337         * math/w_jnl.c: Likewise.
17338         * math/w_lgamma.c: Likewise.
17339         * math/w_lgamma_r.c: Likewise.
17340         * math/w_lgammaf.c: Likewise.
17341         * math/w_lgammaf_r.c: Likewise.
17342         * math/w_lgammal.c: Likewise.
17343         * math/w_lgammal_r.c: Likewise.
17344         * math/w_log.c: Likewise.
17345         * math/w_log10.c: Likewise.
17346         * math/w_log10f.c: Likewise.
17347         * math/w_log10l.c: Likewise.
17348         * math/w_log2.c: Likewise.
17349         * math/w_log2f.c: Likewise.
17350         * math/w_log2l.c: Likewise.
17351         * math/w_logf.c: Likewise.
17352         * math/w_logl.c: Likewise.
17353         * math/w_pow.c: Likewise.
17354         * math/w_powf.c: Likewise.
17355         * math/w_powl.c: Likewise.
17356         * math/w_remainder.c: Likewise.
17357         * math/w_remainderf.c: Likewise.
17358         * math/w_remainderl.c: Likewise.
17359         * math/w_scalb.c: Likewise.
17360         * math/w_scalbf.c: Likewise.
17361         * math/w_scalbl.c: Likewise.
17362         * math/w_sinh.c: Likewise.
17363         * math/w_sinhf.c: Likewise.
17364         * math/w_sinhl.c: Likewise.
17365         * math/w_sqrt.c: Likewise.
17366         * math/w_sqrtf.c: Likewise.
17367         * math/w_sqrtl.c: Likewise.
17368         * math/w_tgamma.c: Likewise.
17369         * math/w_tgammaf.c: Likewise.
17370         * math/w_tgammal.c: Likewise.
17371
17372         * po/ja.po: Update from translation team.
17373
17374 2011-09-29  Andreas Jaeger  <aj@suse.de>
17375
17376         [BZ #13179]
17377         * sunrpc/netname.c (netname2host): Fix logic.
17378
17379         [BZ #6779]
17380         [BZ #6783]
17381         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17382         correctly.
17383         * math/w_remainder.c (__remainder): Likewise.
17384         * math/w_remainderf.c (__remainderf): Likewise.
17385         * math/libm-test.inc (remainder_test): Add test cases.
17386
17387 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17388
17389         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17390         sdiv_qrnnd.
17391
17392 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17393
17394         * string/test-memcmp.c: Avoid unncessary #defines.
17395         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17396
17397 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17398
17399         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17400         Use new sse2 version for core i3 - i7 as it's faster
17401         than sse42 version.
17402         (bit_Prefer_PMINUB_for_stringop): New.
17403         * sysdeps/x86_64/rawmemchr.S: Update.
17404         Replace with faster SSE2 version.
17405         * sysdeps/x86_64/memrchr.S: New file.
17406         * sysdeps/x86_64/memchr.S: Update.
17407         Replace with faster SSE2 version.
17408
17409 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17410
17411         * elf/dl-load.c (lose): Add cast to avoid warning.
17412
17413 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17414
17415         * po/ca.po: Update from translation team.
17416
17417         * inet/getnetgrent_r.c: Hook up nscd.
17418         * nscd/Makefile (routines): Add nscd_netgroup.
17419         (nscd-modules): Add netgroupcache.
17420         (CFLAGS-netgroupcache.c): Define.
17421         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17422         (cache_search): Add const to second parameter.
17423         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17424         INNETGR.
17425         (dbs): Add netgrdb entry.
17426         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17427         (verify_persistent_db): Handle netgrdb.
17428         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17429         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17430         GETFDNETGR.
17431         (netgroup_response_header): Define.
17432         (innetgroup_response_header): Define.
17433         (datahead): Add netgroup_response_header and innetgroup_response_header
17434         elements.
17435         * nscd/nscd.conf: Add entries for netgroup cache.
17436         * nscd/nscd.h (dbtype): Add netgrdb.
17437         (_PATH_NSCD_NETGROUP_DB): Define.
17438         (netgroup_iov_disabled): Declare.
17439         (xmalloc, xcalloc, xrealloc): Move declarations here.
17440         (cache_search): Adjust prototype.
17441         Add netgroup-related prototypes.
17442         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17443         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17444         (__nscd_innetgr): Declare.
17445         * nscd/selinux.c (perms): Use access_vector_t as element type and
17446         add netgroup-related initializers.
17447         * nscd/netgroupcache.c: New file.
17448         * nscd/nscd_netgroup.c: New file.
17449         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17450         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17451         For four parameters use innetgr.
17452         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17453         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17454         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17455         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17456
17457         * nscd/connections.c (register_traced_file): Don't register file
17458         for disabled databases.
17459
17460 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17461
17462         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17463
17464         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17465         from tree and freeing node.
17466
17467 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17468
17469         * nss/nsswitch.c (__nss_database_lookup): Handle
17470         nss_parse_service_list out of memory case.
17471
17472 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17473
17474         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17475         out of memory case.
17476
17477 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17478
17479         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17480         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17481         pass it down.
17482         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17483         elf_machine_rela, elf_machine_lazy_rel.
17484         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17485         (ELF_DYNAMIC_DO_REL): Likewise.
17486         (ELF_DYNAMIC_DO_RELA): Likewise.
17487         (ELF_DYNAMIC_RELOCATE): Likewise.
17488         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17489         to ELF_DYNAMIC_DO_REL.
17490         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17491         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17492         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17493         elf_machine_rela.
17494         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17495         skip_ifunc, don't call ifunc function if non-zero.
17496         (elf_machine_rela): Likewise.
17497         (elf_machine_lazy_rel): Likewise.
17498         (elf_machine_lazy_rela): Likewise.
17499         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17500         (elf_machine_lazy_rel): Likewise.
17501         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17502         Likewise.
17503         (elf_machine_lazy_rel): Likewise.
17504         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17505         Likewise.
17506         (elf_machine_lazy_rel): Likewise.
17507         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17508         (elf_machine_lazy_rel): Likewise.
17509         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17510         (elf_machine_lazy_rel): Likewise.
17511         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17512         (elf_machine_lazy_rel): Likewise.
17513         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17514         (elf_machine_lazy_rel): Likewise.
17515         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17516         (elf_machine_lazy_rel): Likewise.
17517         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17518         (elf_machine_lazy_rel): Likewise.
17519
17520 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17521
17522         * nss/nss_files/files-init.c (_nss_files_init): Use static
17523         initialization for all the *_traced_file variables.
17524
17525 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17526
17527         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17528
17529 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17530
17531         [BZ #13226]
17532         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17533
17534 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17535
17536         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17537         Reread the line before reparsing it.
17538
17539 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17540
17541         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17542
17543 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17544             Maxim Kuvyrkov  <maxim@codesourcery.com>
17545             Joseph Myers  <joseph@codesourcery.com>
17546
17547         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17548         if needed for __stack_chk_guard.
17549
17550 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17551
17552         * sysdeps/posix/spawni.c (script_execute): Always define it.
17553         It will be optimized away if unused.
17554         (maybe_script_execute): New function.
17555         (__spawni): Call it.
17556
17557         * Makerules: Don't include tls.make.
17558         (config-tls): Always set to thread.
17559         * tls.make.c: File removed.
17560
17561 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17562
17563         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17564         * config.make.in (CPPFLAGS-config): New substituted variable.
17565
17566 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17567
17568         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17569
17570         [BZ #13192]
17571         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17572         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17573
17574 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17575
17576         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17577         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17578         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17579         (CALL_FAIL): Likewise.
17580         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17581         (CALL_FAIL): Macro removed.
17582         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17583
17584 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17585
17586         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17587         for __FINITE_MATH_ONLY__ == 1.
17588
17589 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17590
17591         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17592         __ieee754_sqrt instead of sqrt.
17593         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17594         __ieee754_sqrtf instead of sqrtf.
17595         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17596         __floorf instead of floorf.
17597         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17598         __floorf, __truncf instead of floorf, truncf.
17599
17600 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17601
17602         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17603
17604         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17605         __extern_always_inline.
17606         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17607         32-bit.
17608
17609 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17610
17611         * elf/rtld.c (dl_main): Also relocate in dependency order when
17612         doing symbol dependency testing.
17613
17614 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17615
17616         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17617         Always define `refsym'.
17618
17619 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17620
17621         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17622         (__FD_ELT): Renamed from __FDELT.
17623         * misc/bits/select2.h (__FD_ELT): Likewise.
17624         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17625         __FD_MASK instead of __FDELT, __FDMASK.
17626         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17627         Likewise.
17628         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17629         Likewise.
17630
17631         * elf/Makefile (gen-ldd): Fix pattern.
17632
17633         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17634         (init_tls): Likewise.
17635
17636 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17637
17638         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17639
17640 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17641
17642         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17643         `struct cmsghdr *' instead of `void *'.
17644         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17645         Likewise.
17646
17647 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17648
17649         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17650         if non-absolute.
17651         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17652         ldd_rewrite_script.
17653
17654 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17655
17656         * configure.in: Remove --with-tls option.
17657         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17658         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17659         out in case it is missing.
17660         * sysdeps/ia64/elf/configure.in: Likewise.
17661         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17662         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17663         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17664         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17665         * sysdeps/sh/elf/configure.in: Likewise.
17666         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17667         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17668         * sysdeps/x86_64/elf/configure.in: Likewise.
17669         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17670         * sysdeps/mach/hurd/tls.h: Likewise.
17671
17672         [BZ #13067]
17673         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17674
17675         [BZ #13090]
17676         * configure.in: Fix use of AC_INIT.
17677
17678         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17679
17680 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17681
17682         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17683         __set_errno.
17684         * malloc/hooks.c: Likewise.
17685
17686         [BZ #11929]
17687         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17688         variables statically.
17689         (narenas): Initialize.
17690         (list_lock): Initialize.
17691         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17692         initializtion of main_arena and list_lock.  Small cleanups.
17693         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17694         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17695         Add initializers to main_arena and mp_.
17696         (malloc_state): Remove pagesize member.  Change all users to use
17697         GLRO(dl_pagesize).
17698
17699         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17700         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17701         is always initialized.
17702
17703         * malloc/malloc.c: Removed unused configurations and dead code.
17704         * malloc/arena.c: Likewise.
17705         * malloc/hooks.c: Likewise.
17706         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17707
17708         * include/tls.h: Removed.  USE___THREAD must always be defined.
17709         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17710         * elf/dl-libc.c: Likewise.
17711         * elf/dl-tsd.c: Likewise.
17712         * include/errno.h: Likewise.
17713         * include/netdb.h: Likewise.
17714         * include/resolv.h: Likewise.
17715         * inet/herrno-loc.c: Likewise.
17716         * inet/herrno.c: Likewise.
17717         * malloc/arena.c: Likewise.
17718         * malloc/hooks.c: Likewise.
17719         * malloc/malloc.c: Likewise.
17720         * resolv/res-state.c: Likewise.
17721         * resolv/res_libc.c: Likewise.
17722         * sysdeps/i386/dl-machine.h: Likewise.
17723         * sysdeps/ia64/dl-machine.h: Likewise.
17724         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17725         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17726         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17727         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17728         * sysdeps/sh/dl-machine.h: Likewise.
17729         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17730         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17731         * sysdeps/unix/i386/sysdep.S: Likewise.
17732         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17733         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17734         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17735         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17736         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17737         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17738         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17739         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17740         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17742         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17743         * sysdeps/x86_64/dl-machine.h: Likewise.
17744         * tls.make.c: Likewise.
17745
17746         * configure.in: Remove --with-__thread option.  Make tests for
17747         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17748         tls_model attribute fail if no support is available.  Remove
17749         USE_IN_LIBIO.
17750         * Makeconfig: Adjust for dropped configure option.  All features are
17751         now mandatory.
17752         * Makerules: Likewise.
17753         * Versions.def: Likewise.
17754         * argp/argp-fmtstream.c: Likewise.
17755         * argp/argp-fmtstream.h: Likewise.
17756         * argp/argp-help.c: Likewise.
17757         * assert/assert.c: Likewise.
17758         * config.h.in: Likewise.
17759         * config.make.in: Likewise.
17760         * configure: Likewise.
17761         * configure.in: Likewise.
17762         * csu/Versions: Likewise.
17763         * csu/init.c: Likewise.
17764         * elf/tst-audit2.c: Likewise.
17765         * elf/tst-tls10.c: Likewise.
17766         * elf/tst-tls10.h: Likewise.
17767         * elf/tst-tls11.c: Likewise.
17768         * elf/tst-tls12.c: Likewise.
17769         * elf/tst-tls14.c: Likewise.
17770         * elf/tst-tlsmod11.c: Likewise.
17771         * elf/tst-tlsmod12.c: Likewise.
17772         * elf/tst-tlsmod13.c: Likewise.
17773         * elf/tst-tlsmod13a.c: Likewise.
17774         * elf/tst-tlsmod14a.c: Likewise.
17775         * elf/tst-tlsmod15b.c: Likewise.
17776         * elf/tst-tlsmod16a.c: Likewise.
17777         * elf/tst-tlsmod16b.c: Likewise.
17778         * elf/tst-tlsmod7.c: Likewise.
17779         * elf/tst-tlsmod8.c: Likewise.
17780         * elf/tst-tlsmod9.c: Likewise.
17781         * gmon/gmon.c: Likewise.
17782         * grp/fgetgrent_r.c: Likewise.
17783         * grp/putgrent.c: Likewise.
17784         * hurd/fopenport.c: Likewise.
17785         * include/libc-symbols.h: Likewise.
17786         * include/tls.h: Likewise.
17787         * intl/gettextP.h: Likewise.
17788         * intl/loadinfo.h: Likewise.
17789         * locale/global-locale.c: Likewise.
17790         * locale/localeinfo.h: Likewise.
17791         * mach/devstream.c: Likewise.
17792         * malloc/arena.c: Likewise.
17793         * malloc/set-freeres.c: Likewise.
17794         * misc/err.c: Likewise.
17795         * misc/getttyent.c: Likewise.
17796         * misc/mntent_r.c: Likewise.
17797         * posix/getopt.c: Likewise.
17798         * posix/wordexp.c: Likewise.
17799         * pwd/fgetpwent_r.c: Likewise.
17800         * resolv/Versions: Likewise.
17801         * resolv/res_hconf.c: Likewise.
17802         * shadow/fgetspent_r.c: Likewise.
17803         * shadow/putspent.c: Likewise.
17804         * stdio-common/printf_fphex.c: Likewise.
17805         * stdio-common/tmpfile.c: Likewise.
17806         * stdlib/abort.c: Likewise.
17807         * stdlib/fmtmsg.c: Likewise.
17808         * sunrpc/auth_unix.c: Likewise.
17809         * sunrpc/clnt_perr.c: Likewise.
17810         * sunrpc/clnt_tcp.c: Likewise.
17811         * sunrpc/clnt_udp.c: Likewise.
17812         * sunrpc/clnt_unix.c: Likewise.
17813         * sunrpc/openchild.c: Likewise.
17814         * sunrpc/svc_simple.c: Likewise.
17815         * sunrpc/svc_tcp.c: Likewise.
17816         * sunrpc/svc_udp.c: Likewise.
17817         * sunrpc/svc_unix.c: Likewise.
17818         * sunrpc/xdr.c: Likewise.
17819         * sunrpc/xdr_array.c: Likewise.
17820         * sunrpc/xdr_rec.c: Likewise.
17821         * sunrpc/xdr_ref.c: Likewise.
17822         * sunrpc/xdr_stdio.c: Likewise.
17823
17824 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17825
17826         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17827
17828 2011-07-03  Andreas Jaeger  <aj@suse.de>
17829
17830         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17831         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17832         regenerate with gen-libm-tests.pl.
17833
17834 2010-05-12  Petr Baudis  <pasky@suse.cz>
17835
17836         [BZ #11589]
17837         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17838         around j0() zero points by switching to j1().
17839         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17840         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17841         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17842         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17843
17844 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17845
17846         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17847         instead of 0.
17848         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17849         instead of 0.                              .
17850         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17851         Patch in part by Pavel Roskin <proski@gnu.org>.
17852
17853         [BZ #13138]
17854         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17855         realloc.
17856         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17857         Free memory block if necessary.
17858
17859         [BZ #12847]
17860         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17861         be NULL.  Don't lock in this case.
17862
17863 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17864
17865         * elf/elf.h (ELFOSABI_GNU): New macro.
17866         (ELFOSABI_LINUX): Define to that.
17867
17868 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17869
17870         * string/strncat.c (strncat): Undef the symbol in case it has been
17871         defined in bits/string.h.
17872
17873 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17874
17875         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17876
17877         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17878         link map.
17879
17880 2011-08-17  Andreas Jaeger  <aj@suse.de>
17881
17882         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17883
17884 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17885             Ian Lance Taylor  <iant@google.com>
17886
17887         * math/libm-test.inc (lround_test): New testcase.
17888         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17889
17890 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17891
17892         * Makefile: Remove support for automatic cvs check-ins.
17893         * Makerules: Likewise.
17894         * config.make.in: Likewise.
17895         * configure.in: Likewise.
17896         * intl/Makefile: Likewise.
17897         * locale/Makefile: Likewise.
17898         * po/Makefile: Likewise.
17899         * posix/Makefile: Likewise.
17900         * sysdeps/gnu/Makefile: Likewise.
17901         * sysdeps/mach/hurd/Makefile: Likewise.
17902         * sysdeps/sparc/sparc32/Makefile: Likewise.
17903
17904         [BZ #13118]
17905         * posix/Makefile (bug-regex32-ENV): Define.
17906         Patch by John Stanley <jpsinthemix@verizon.net>.
17907
17908         * misc/Makefile (headers): Add bits/select2.h.
17909         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17910         * misc/bits/select2.h: New file.
17911         * include/bits/select2.h: New file.
17912         * debug/Makefile (routines): Add fdelt_chk.
17913         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17914         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17915         FD_ISSET.
17916         * debug/fdelt_chk.c: New file.
17917
17918         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17919         * wcsmbs/test-wmemcmp.c: Likewise.
17920         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17921         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17922
17923 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17924
17925         * string/Makefile (strop-tests): Add memcmp.
17926         * string/test-wmemcmp.c: New file.
17927         * string/test-memcmp.c: Add wmemcmp support.
17928
17929 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17930
17931         [BZ #13153]
17932         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17933         2011-07-19 change.
17934
17935         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17936         garbage value in a __mach_port_mod_refs call in the cases of the
17937         task-self and thread-self ports.
17938
17939 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17940
17941         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17942
17943 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17944
17945         * elf/dl-load.c (lose): Check for non-null L.
17946
17947 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17948
17949         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17950
17951         * elf/dl-libc.c (dlerror_run): Pass back error code from
17952         dl_catch_error.
17953
17954         [BZ #13123]
17955         * elf/dl-load.c (lose): Free l_origin if it is valid.
17956
17957         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17958         names.
17959         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17960         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17961         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17962         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17963         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17964         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17965
17966 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17967
17968         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17969         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17970         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17971         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17972         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17973         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17974         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17975         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17976         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17977         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17978
17979 2011-08-15  Alan Modra  <amodra@gmail.com>
17980
17981         [BZ #13092]
17982         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17983         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17984         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17985         ppc_mcount to static-only-routines.
17986         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17987         __mcount_internal.
17988         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17989         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17990
17991 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17992
17993         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17994         for finite and infinity parameters.
17995
17996 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17997
17998         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17999         and add nop instructions for throughput optimization.
18000         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18001
18002 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18003
18004         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18005         aligned copy for power7 with vector-scalar instructions.
18006         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18007
18008 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18009
18010         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18011         AVX check.
18012
18013 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18014
18015         [BZ #13144]
18016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18017         last change.
18018
18019 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18020
18021         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18022         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18023         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18024         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18025         clock_gettime.
18026
18027 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18028
18029         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18030         Forgot to demangle the pointer.
18031
18032         * sysdeps/i386/sysdep.h: Define atom_text_section.
18033         * sysdeps/x86_64/sysdep.h: Likewise.
18034         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18035         section with atom_text_section.
18036         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18037         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18038         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18039         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18040         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18041
18042         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18043         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18044         already be defined.  Change to take two parameters and don't assign
18045         result to variable.  Adjust all users.
18046         Define INTERNAL_GETTIME if not already defined.
18047         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18048         call.
18049         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18050         HAVE_CLOCK_GETTIME_VSYSCALL.
18051         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18052
18053         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18054         gettimeofday vsyscall, just use time.
18055
18056 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18057
18058         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18059         <errno.h>.
18060
18061 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18062
18063         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18064         syscall on x86-64.
18065         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18066         syscall.
18067         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18068         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18069         syscall if possible.
18070
18071 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18072
18073         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18074         e_ident.  Don't pass to find_mapsXX.
18075         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18076
18077 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18078
18079         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18080         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18081         * sysdeps/x86_64/multiarch/strchr.S: Update.
18082         Check bit_slow_BSF bit.
18083         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18084         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18085         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18086
18087 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18088
18089         [BZ #13134]
18090         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18091         before glibc 2.15.
18092         (tryshell): Define.
18093         (__spawni): Change last parameter to be flag.  Test
18094         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18095         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18096         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18097         * posix/spawni.c: Likewise.
18098         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18099         * posix/spawnp.c: Likewise.  Change normal version to use
18100         SPAWN_XFLAGS_USE_PATH.
18101         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18102         SPAWN_XFLAGS_TRY_SHELL.
18103
18104         [BZ #13150]
18105         * posix/glob.h: Remove gcc 1.x support.
18106
18107         [BZ #13068]
18108         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18109
18110 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18111
18112         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18113         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18114         strrchr-sse2-bsf
18115         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18116         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18117         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18118         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18119         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18120         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18121
18122 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18123
18124         * sysdeps/x86_64/wcscmp.S: New file.
18125
18126         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18127         wcscmp-c wcscmp-sse2
18128         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18129         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18130         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18131         * wcsmbs/wcscmp.c: Allow renaming.
18132
18133 2011-09-05  David S. Miller  <davem@davemloft.net>
18134
18135         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18136         stack slot, rather than the struct return pointer slot.
18137         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18138         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18140         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18141
18142 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18143
18144         * po/ja.po: Update from translation team.
18145
18146         [BZ #13144]
18147         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18148         kernel in 64-bit binaries.
18149
18150 2011-09-01  David S. Miller  <davem@davemloft.net>
18151
18152         * elf/elf.h (HWCAP_SPARC_*): Move to..
18153         * sysdeps/sparc/sysdep.h: this new file and add new values.
18154         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18155         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18156         _DL_HWCAP_COUNT to 24.
18157         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18158         entries.
18159         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18160         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18161         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18162         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18163         instead of magic constants.
18164         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18165
18166 2011-08-31  David S. Miller  <davem@davemloft.net>
18167
18168         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18169         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18170         Reimplement to do errno handling inline.
18171         (SYSCALL_ERROR_HANDLER): New macro.
18172         (__SYSCALL_STRING): Do not do errno handling in asm.
18173         (__CLONE_SYSCALL_STRING): Delete.
18174         (__INTERNAL_SYSCALL_STRING): Delete.
18175         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18176         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18177         (PSEUDO): Reimplement to do errno handling inline.
18178         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18179         (SYSCALL_ERROR_HANDLER): New macro.
18180         (__SYSCALL_STRING): Do not do errno handling in asm.
18181         (__CLONE_SYSCALL_STRING): Delete.
18182         (__INTERNAL_SYSCALL_STRING): Delete.
18183         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18184         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18185         i386.
18186         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18187         (inline_syscall*): Add 'err' argument.
18188         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18189         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18190         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18191         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18192
18193         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18194         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18195
18196 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18197
18198         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18199
18200 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18201
18202         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18203         directive.
18204
18205 2011-08-24  David S. Miller  <davem@davemloft.net>
18206
18207         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18208
18209 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18210
18211         * elf/Makefile: Add rules to build and run unload8 test.
18212         * elf/unload8.c: New file.
18213         * elf/unload8mod1.c: New file.
18214         * elf/unload8mod1x.c: New file.
18215         * elf/unload8mod2.c: New file.
18216         * elf/unload8mod3.c: New file.
18217
18218         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18219         it wasn't used.
18220
18221 2011-08-23  David S. Miller  <davem@davemloft.net>
18222
18223         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18224         subtract stack bias.
18225         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18226         %sp not %fp in calculations.
18227         (_JMPBUF_UNWINDS_ADJ): Likewise.
18228
18229         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18230         (aio_suspend): Call it to force an exception region around the
18231         AIO_MISC_WAIT() invocation.
18232
18233 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18234
18235         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18236         backslash.
18237
18238 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18239
18240         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18241         protection macro.
18242         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18243         and <dl-machine.h>.
18244         (Elf64_FuncDesc): Remove.
18245
18246 2011-08-22  David S. Miller  <davem@davemloft.net>
18247
18248         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18249         sigaltstack check, add missing cfi directives.
18250         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18251         missing cfi directives, and sigaltstack handling.
18252
18253 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18254
18255         [BZ #11724]
18256         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18257         object is seen twice.
18258         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18259
18260         * elf/Makefile (distribute): Add tst-initorder2.c.
18261         (tests): Add tst-initorder2.
18262         (modules-names): Add tst-initorder2a tst-initorder2b
18263         tst-initorder2c tst-initorder2d.  Add rules to build them.
18264         ($(objpfx)tst-initorder2.out): New rule.
18265         * elf/tst-initorder2.c: New file.
18266         * elf/tst-initorder2.exp: New file.
18267
18268 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18269
18270         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18271
18272         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18273         dependencies back to end of function.
18274
18275         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18276         $(elfobjdir)/ld.so.
18277
18278 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18279
18280         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18281         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18282         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18283         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18284         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18285         of __vdso_gettimeofday.
18286         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18287         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18288         attribute_hidden.
18289         (_libc_vdso_platform_setup): Remove initialization of
18290         __vdso_gettimeofday and __vdso_time.
18291
18292 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18293
18294         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18295         and fgetc_unlocked.
18296         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18297         getc_unlocked.
18298
18299         * elf/dl-open.c (add_to_global): Report additions to the global scope
18300         for LD_DEBUG=scopes.
18301         (dl_open_worker): Also print scope of newly loaded dependencies.
18302         (_dl_show_scope): Indicate if there is no scope.
18303
18304         [BZ #13114]
18305         * stdio-common/Makefile (tests): Add bug24.
18306         * stdio-common/bug24.c: New file.
18307
18308 2011-08-19  Andreas Jaeger  <aj@suse.de>
18309
18310         [BZ #13114]
18311         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18312         non-existant file when using close-on-exec mode.
18313
18314 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18315
18316         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18317         the very first instruction.
18318
18319         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18320         the CFI state in the end.
18321         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18322         inclusion of dl-trampoline.h.
18323         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18324
18325 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18326
18327         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18328         expectations for long double.
18329
18330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18331         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18332
18333 2011-08-14  David S. Miller  <davem@davemloft.net>
18334
18335         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18336         artificual limit depends upon the system page size.
18337
18338 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18339
18340         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18341         * resolv/Makefile: Define CFLAGS-libresolv.
18342
18343 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18344
18345         * nss/makedb.c (compute_tables): Make variables used in nested
18346         function static.
18347
18348 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18349
18350         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18351         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18352         if buffer was too small.
18353
18354         * elf/pldd.c (main): Attach to all threads in the process.
18355         Rewrite /proc handling to use *at functions.
18356
18357 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18360         specifies first scope to show.
18361         (dl_open_worker): Update callers.  Move printing scope of new
18362         object to before the relocation.
18363         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18364         * sysdeps/generic/ldsodefs.h: Update declaration.
18365
18366         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18367         string for the scope number.
18368
18369 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * nscd/servicescache.c (cache_addserv): Make sure written is always
18372         initialized.
18373
18374 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18375
18376         * sysdeps/i386/i486/bits/atomic.h
18377         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18378         statement expression, so as to suppress "set but not used" warning.
18379         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18380
18381         * string/strncat.c (STRNCAT): Use prototype definition.
18382
18383         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18384         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18385         -Iprograms here.
18386         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18387         (localedef-modules): Add localedef.
18388         (locale-modules): Add locale.
18389
18390         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18391         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18392         to avoid a warning.
18393
18394 2011-08-14  David S. Miller  <davem@davemloft.net>
18395
18396         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18397         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18398
18399 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18400
18401         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18402         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18403         * elf/rtld.c (dl_main): Set l_name of vDSO.
18404         Call _dl_show_scope when DL_DEBUG_SCOPES.
18405         (process_dl_debug): Recognize scopes flag and also set it for all.
18406         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18407         Declare _dl_show_scope.
18408
18409         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18410         (do_dlopen): Pass caller_dlopen to dl_open.
18411         (__libc_dlopen_mode): Initialize caller_dlopen.
18412
18413         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18414         of libc.  Make tolower call locale-independent.  Optimize a bit by
18415         using isdigit instead of isalnum.
18416         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18417
18418 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18419
18420         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18421         was a dependency or dynamically loaded.
18422
18423 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18424
18425         * intl/l10nflist.c: Allow architecture-specific pop function.
18426         * sysdeps/x86_64/l10nflist.c: New file.
18427
18428         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18429         classification.
18430
18431 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18432
18433         * include/dirent.h: Add libc_hidden_proto for scandirat and
18434         scandirat64.  Don't declare __scandirat64.
18435         * dirent/scandirat.c: Add libc_hidden_def.
18436         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18437         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18438
18439 2011-08-10  David S. Miller  <davem@davemloft.net>
18440
18441         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18442         enum.
18443         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18444         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18445         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18446
18447 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18448
18449         * Versions.def [libc]: Add GLIBC_2.15.
18450         * dirent/Makefile (routines): Add scandirat and scandirat64.
18451         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18452         GLIBC_2.15.
18453         * dirent/dirent.h: Declare scandirat and scandirat64.
18454         * dirent/scandirat.c: New file.
18455         * dirent/scandirat64.c: New file.
18456         * sysdeps/wordsize-64/scandirat.c: New file.
18457         * sysdeps/wordsize-64/scandirat64.c: New file.
18458         * dirent/opendir.c: Define opendirat.
18459         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18460         using scandirat.
18461         * dirent/scandir64.c: Adjust for scandir.c change.
18462         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18463         __scandirat64, and __scandir_cancel_handler.
18464         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18465         additional parameter and use openat instead of open (outside of ld.so).
18466         Add new __opendir as wrapper around __opendirat.
18467         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18468         here without requiring old scandirat implementation.
18469
18470 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18471
18472         * dirent/scandir.c (cancel_handler): Renamed to
18473         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18474         defined.  Adjust users.
18475         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18476         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18477
18478 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18479
18480         * string/test-string.h (IMPL): Use __STRING to expand name and then
18481         stringify it.
18482
18483         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18484         of cleanups.
18485
18486 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18487
18488         * string/Makefile: Update.
18489         (strop-tests): Append strncat.
18490         * string/test-wcscmp.c: New file.
18491         New comprehensive test for wcscmp.
18492         * string/test-strcmp.c: Update.
18493         (WIDE): New define.
18494
18495 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18496
18497         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18498         line.
18499
18500 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18501
18502         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18503         encoding to ACE if AI_IDN.
18504
18505 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18506
18507         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18508         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18509
18510 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18511
18512         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18513         Fix overflow bug in strncat.
18514         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18515
18516         * string/test-strncat.c: Update.
18517         Add new tests for checking overflow bugs.
18518
18519 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18520
18521         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18522         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18523         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18524         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18525         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18526         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18527         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18528         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18529         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18530
18531         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18532         (USE_AS_STRCAT): Define.
18533         Add strcat and strncat support.
18534         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18535
18536 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18537
18538         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18539         __n bigger than INT_MAX+1.
18540         (__strncmp_g): Likewise.
18541
18542 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18543
18544         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18545         * libio/stido.h: Likewise.
18546
18547         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18548         (AF_NFC): Define.
18549         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18550         (AF_NFC): Define.
18551
18552         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18553         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18554         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18555         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18556         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18557
18558         [BZ #13021]
18559         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18560         installed.
18561
18562         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18563         typo.
18564         (_dl_x86_64_save_sse): Likewise.
18565
18566 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18567
18568         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18569         OSXSAVE.
18570         (_dl_x86_64_save_sse): Likewise.
18571
18572         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18573
18574         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18575
18576 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18577
18578         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18579         change.
18580         (_dl_x86_64_save_sse): Use correct AVX check.
18581
18582 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18583
18584         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18585         bug in strncpy/strncat.
18586         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18587
18588 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18589
18590         * string/tester.c (test_strcat): Add tests for different alignments
18591         of source and destination.
18592         (test_strncat): Likewise.
18593
18594 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18595
18596         [BZ #12852]
18597         * posix/glob.c (glob): Check passed in values before using them in
18598         expressions to avoid some overflows.
18599         (glob_in_dir): Likewise.
18600
18601         [BZ #13007]
18602         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18603         check for AVX enablement so that we don't crash with old kernels and
18604         new hardware.
18605         * elf/tst-audit4.c: Add same checks here.
18606         * elf/tst-audit6.c: Likewise.
18607
18608         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18609
18610 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18611
18612         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18613
18614 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18615
18616         * po/cs.po: Update from translation team.
18617         * po/bg.po: Likewise.
18618
18619 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18620
18621         * misc/sys/cdefs.h: Add support for const attribute.
18622         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18623         to gnu_dev_{major,minor,makedev} functions.
18624
18625 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18626
18627         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18628
18629 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18630
18631         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18632         strlen results.
18633
18634 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18635
18636         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18637         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18638         register in order to avoid conflicts with the soft frame pointer
18639         being held in r11 when necessary.
18640         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18641         (INTERNAL_VSYSCALL_NCS): Likewise.
18642
18643 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18644
18645         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18646         * elf/dl-fini.c (_dl_fini): Adjust caller.
18647         * elf/dl-close.c (_dl_close_worker): Likewise.
18648         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18649
18650 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18651
18652         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18653         "aux_cache->nlibs < 0".
18654
18655         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18656         in the reload-count case.
18657
18658 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18659
18660         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18661         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18662         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18663         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18664         * sysdeps/x86_64/multiarch/strcat.S: New file.
18665         * sysdeps/x86_64/multiarch/strncat.S: New file.
18666         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18667         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18668         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18669         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18670         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18671         (USE_AS_STRCAT): Define.
18672         Add strcat and strncat support.
18673         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18674         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18675         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18676         * string/strncat.c: Update.
18677         (USE_AS_STRNCAT): Define.
18678         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18679         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18680         and i7.
18681         * sysdeps/x86_64/multiarch/init-arch.h
18682         (bit_Prefer_PMINUB_for_stringop): New.
18683         (index_Prefer_PMINUB_for_stringop): Likewise.
18684         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18685         bit_Prefer_PMINUB_for_stringop.
18686
18687 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18690         buffer64.
18691         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18692         of casting of buffer.
18693         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18694         buffer32 and buffer64.
18695         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18696         writes instead of casting of buffer.
18697         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18698         buffer32.
18699         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18700         casting of buffer.
18701
18702 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18703
18704         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18705
18706 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18707
18708         * nscd/nscd.c (termination_handler): Don't do anything for a database
18709         if it has not yet been initialized.
18710
18711 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18712
18713         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18714
18715 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18716
18717         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18718
18719 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18720
18721         * po/nl.po: Update from translation team.
18722         * po/sv.po: Likewise.
18723
18724 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18725
18726         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18727         now disallowed by GCC.
18728
18729         * configure.in (use-default-link): Default to yes if a test -shared
18730         link meets our qualifications.
18731         * configure: Regenerated.
18732
18733         * config.make.in (output-format): New variable.
18734         * configure.in: Check for ld --print-output-format support.
18735         * configure: Regenerated.
18736         * Makerules ($(common-objpfx)format.lds)
18737         [$(output-format) != unknown]: Just use $(output-format),
18738         instead of the linker-script munging.
18739
18740 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18741
18742         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18743         of $(common-objpfx)shlib.lds.
18744         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18745
18746         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18747         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18748
18749         * configure.in (-z relro check): Adjust test code to add a large
18750         writable data section after it.
18751         * configure: Regenerated.
18752
18753 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18754
18755         * configure.in (-z relro check): Fix test code to make the variable
18756         truly const.
18757         * configure: Regenerated.
18758
18759 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18760
18761         * nscd/nscd.h (struct traced_file): Define.
18762         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18763         elements.  Add traced_files.
18764         (inotify_fd): Declare.
18765         (register_traced_file): Declare.
18766         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18767         (inotify_fd): Export.
18768         (resolv_conf_descr): Remove.
18769         (nscd_init): Move inotify descriptor creation to main.
18770         Don't register files for notification here.
18771         (register_traced_file): New function.
18772         (invalidate_cache): Don't use reset_res to determine whether to call
18773         res_init, go through the list of registered files.
18774         (main_loop_poll): The inotify descriptors are now stored in the
18775         structures for the traced files.
18776         (main_loop_epoll): Likewise
18777         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18778         to __nss_disable_nscd.
18779         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18780         for a database anymore.  Check the records for all the registered
18781         files instead.
18782         * nss/Makefile (libnss_files-routines): Add files-init.
18783         (libnss_db-routines): Add db-init.
18784         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18785         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18786         * nss/nss_db/db-init.c: New file.
18787         * nss/nss_files/files-init.c: New file.
18788         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18789         __nss_lookup_function.
18790         (__nss_lookup_function): Call nss_load_library.
18791         (nss_load_all_libraries): New function.
18792         (__nss_disable_nscd): Take parameter with callback function for files
18793         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18794         used for the cached services.
18795         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18796         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18797         options for features to all the files in nscd.
18798
18799         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18800
18801 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18802
18803         * csu/elf-init.c (__libc_csu_init): Comment typo.
18804
18805 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18806
18807         * po/pl.po: Update from translation team.
18808         * po/ja.po: Likewise.
18809         * po/ru.po: Likewise.
18810         * po/ko.po: Likewise.
18811         * po/fr.po: Likewise.
18812
18813 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18814
18815         * configure.in (.ctors/.dtors header and trailer check):
18816         Use an empirical test on a built program.
18817         * configure: Regenerated.
18818
18819         * configure.in (-z relro check): Use an empirical test on a built DSO.
18820         Detect, but do not require, on ia64.
18821         * configure: Regenerated.
18822
18823         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18824         Update tests that use readelf to use $READELF instead.
18825         * configure: Regenerated.
18826
18827 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18828
18829         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18830         if the result is not used.
18831
18832 2011-07-05  Andreas Jaeger  <aj@suse.de>
18833
18834         [BZ#9696]
18835         * stdlib/tst-strtod.c: Add testcase.
18836
18837 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18838
18839         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18840         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18841         The latter has a higher limit.  Take additional parameter to pass to
18842         the new function.
18843         (__pathconf): Pass file to __statfs_link_max.
18844         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18845         __statfs_link_max.
18846         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18847         __statfs_link_max.
18848
18849         [BZ #12868]
18850         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18851         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18852         Handle Lustre.
18853         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18854         (__statfs_filesize_max): Likewise.
18855         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18856
18857 2011-07-05  Andreas Jaeger  <aj@suse.de>
18858
18859         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18860
18861 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18862
18863         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18864         `status' variable.
18865         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18866         Likewise.
18867
18868 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18869
18870         * Makefile (strop-tests): Add strncat.
18871         * string/test-strncat.c: New file.
18872
18873 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18874
18875         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18876
18877 2011-06-21  Andreas Jaeger  <aj@suse.de>
18878
18879         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18880         Copy rule from iconvdata/Makefile.
18881
18882 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18883
18884         [BZ #12922]
18885         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18886         but no long options are defined, just return 'W'.
18887
18888 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18889
18890         [BZ #9696]
18891         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18892
18893 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18894
18895         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18896         netgroups to read.
18897         (innetgr): Likewise.
18898
18899 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18900
18901         * config.make.in (install_root): Default to $(DESTDIR).
18902
18903 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18904
18905         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18906
18907 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18908
18909         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18910
18911         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18912         containing directory rather than embedding absolute directory names.
18913
18914         * scripts/check-local-headers.sh: Rewritten using awk.
18915         Match by word, not by line.  Print error messages for matches.
18916         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18917
18918         * Makerules [shlib-lds-flags empty]:
18919         ($(common-objpfx)libc_pic.opts): New target.
18920         ($(common-objpfx)libc_pic.os.clean): New target.
18921         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18922
18923         * config.make.in (OBJCOPY): New variable.
18924         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18925         * configure: Regenerated.
18926
18927         * config.make.in (use-default-link): New variable.
18928         * configure.in (use_default_link): Grok --with-default-link to set it.
18929         * configure: Regenerated.
18930         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18931         (shlib-lds, shlib-lds-flags): Define to empty.
18932
18933         * Makerules (shlib-lds): New variable.
18934         (shlib-lds-flags): New variable.
18935         (build-shlib, build-moduile, build-module-asneeded): Use it.
18936         ($(common-objpfx)libc.so): Use $(shlib-lds).
18937         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18938         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18939
18940         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18941         DT_FLAGS/DT_FLAGS_1 with zero flags.
18942
18943         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18944         linker script munging.
18945
18946 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18947
18948         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18949         as 128-bit value.
18950         * crypt/sha512.c (sha512_process_block): Perform total addition using
18951         128-bit if possible.
18952         (__sha512_finish_ctx): Likewise.
18953         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18954         as 64-bit value.
18955         * crypt/sha256.c (SWAP64): Define.
18956         (sha256_process_block): Perform total addition using 64-bit if
18957         possible.
18958         (__sha256_finish_ctx): Likewise.
18959
18960 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18961
18962         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18963         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18964         * nscd/hstcache.c (cache_addhst): Likewise.
18965         * nscd/grpcache.c (cache_addgr): Likewise.
18966         * nscd/aicache.c (addhstaiX): Likewise
18967         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18968
18969 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18970
18971         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18972         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18973         * nscd/hstcache.c (cache_addhst): Likewise.
18974         * nscd/grpcache.c (cache_addgr): Likewise.
18975         * nscd/aicache.c (addhstaiX): Likewise
18976
18977 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18978
18979         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18980         domain only when needed.
18981
18982 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18983
18984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18985         is always restored.
18986
18987 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18988
18989         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18990         are re-adding the entry.
18991         * nscd/servicescache.c (cache_addserv): Likewise.
18992
18993 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18994
18995         * sysdeps/generic/dl-irel.h: fix protection against multiple
18996         inclusions.
18997         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18998
18999 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19000
19001         [BZ #12935]
19002         * malloc/memusage.sh: Fix quoting in message.
19003         * debug/xtrace.sh: Likewise.
19004
19005         * configure.in: Remove support for --experimental-malloc option, make
19006         it the default.
19007         * config.make.in: Likewise.
19008         * malloc/Makefile: Likewise.
19009
19010 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19011
19012         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19013         two-byte characters.
19014
19015 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19016
19017         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19018         AC_CACHE_CHECK invocation.
19019         * configure: Regenerated.
19020
19021         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19022
19023 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19024
19025         [BZ #12350]
19026         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19027         bit from old_res_options.
19028
19029         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19030
19031         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19032         value type for setfct.
19033
19034 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19035
19036         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19037         __gettimeofday instead of gettimeofday.
19038
19039 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19040
19041         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19042
19043 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19044
19045         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19046
19047         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19048         info.
19049
19050 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19051
19052         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19053         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19054         strcpy-sse2-unaligned strncpy-sse2-unaligned
19055         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19056         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19057         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19058         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19059         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19060         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19061         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19062         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19063         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19064         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19065         (STRCPY): Support SSE2 and SSSE3 versions.
19066
19067 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19068
19069         [BZ #12874]
19070         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19071         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19072         kernels which artificially limit size of requests.
19073
19074 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19075
19076         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19077         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19078         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19079         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19080         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19081         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19082         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19083         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19084         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19085         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19086         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19087         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19088         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19089         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19090         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19091         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19092         Enable unaligned load optimization for Intel Core i3, i5 and i7
19093         processors.
19094         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19095         Define.
19096         (index_Fast_Unaligned_Load): Define.
19097         (HAS_FAST_UNALIGNED_LOAD): Define.
19098
19099 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19100
19101         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19102
19103 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19104
19105         [BZ #12907]
19106         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19107         until it is clear that the information is realy needed.
19108         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19109
19110 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19111
19112         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19113
19114 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19115
19116         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19117         /sys/devices/system/cpu/online if it is usable.
19118
19119         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19120         reading the information from the /proc filesystem to once a second.
19121
19122 2011-06-21  Andreas Jaeger  <aj@suse.de>
19123
19124         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19125         NULL after inclusion of kernel headers.
19126
19127 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19128
19129         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19130         calls to internal_setent.
19131
19132         [BZ #12885]
19133         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19134         addresses using gethostbyname4_r ignore IPv4 addresses.
19135
19136         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19137         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19138
19139         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19140
19141 2011-06-20  David S. Miller  <davem@davemloft.net>
19142
19143         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19144         inclusions.
19145         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19146
19147         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19148         (elf_irel): Use it.
19149         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19150         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19151         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19152         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19153         * sysdeps/x86_64/dl-irel.h: Likewise.
19154
19155         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19156         * elf/dl-sym.c: Likewise.
19157
19158 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19159
19160         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19161         need to dereference resplen2.
19162
19163 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19164
19165         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19166
19167 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19168
19169         * Makeconfig: Define vardbdir and inst_vardbdir.
19170         * nss/Makefile: Add rules to install db-Makefile.
19171
19172         * nss/nss_db/db-XXX.c: Cleanup.
19173
19174         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19175         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19176         GLIBC_PRIVATE.
19177         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19178         * nss/makedb.c: Implement -g option to specify that value strings
19179         are generated and should not be added to table iterated over for
19180         get*ent calls.
19181         * nss/nss_db/db-initgroups.c: New file.
19182
19183         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19184         interface.
19185
19186         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19187         (internal_getgrouplist): Adjust to name change.
19188         Update use_initgroups_entry if this is not the first call.
19189         * nss/databases.def: Add initgroups entry.
19190
19191         * nss/makedb.c (compute_tables): Check result of multiple hash table
19192         sizes to minimize maximum chain length.
19193
19194 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19195
19196         * Versions.def: Add entry for libnss_db.
19197         * shlib-versions: Likewise.
19198         * nss/Makefile: Add rules to build libnss_db.
19199         * nss/Versions: Add libnss_db information.  Organize libnss_files
19200         entries better.
19201         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19202         makedb progra.  Some minor improvements to generate smaller files.
19203         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19204         here from...
19205         * nss/makedb.c: ...here.
19206         Improve database format to be smaller and require less memory at
19207         runtime.
19208         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19209         db anymore.
19210         * nss/nss_db/db-netgrp.c: Likewise.
19211         * nss/nss_db/db-open.c: Likewise.
19212         * nss/nss_files/flies-XXX.x: Adjust comments.
19213         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19214         * nss/nss_files/files-grp.c: Likewise.
19215         * nss/nss_files/files-hosts.c: Likewise.
19216         * nss/nss_files/files-network.c: Likewise.
19217         * nss/nss_files/files-proto.c: Likewise.
19218         * nss/nss_files/files-pwd.c: Likewise.
19219         * nss/nss_files/files-rpc.c: Likewise.
19220         * nss/nss_files/files-service.c: Likewise.
19221         * nss/nss_files/files-sgrp.c: Likewise.
19222         * nss/nss_files/files-spwd.c: Likewise.
19223         * nss/nss_db/db-alias.c: Removed.
19224         * nss/nss_db/dummy-db.h: Removed.
19225
19226 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19227
19228         * nss/makedb.c: Rewritten to not use database library.
19229         * nss/Makefile: Update to build new makedb program.
19230
19231 2011-06-14  Andreas Jaeger  <aj@suse.de>
19232
19233         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19234         memset declaration.
19235
19236 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19237
19238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19239         tmpbuf.
19240
19241 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19242
19243         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19244         * elf/Makefile ($(objpfx)ld.so): Likewise.
19245
19246         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19247         Don't list ld.so twice in dependencies.
19248
19249         * posix/bug-regex31.c: Include <stdlib.h>.
19250
19251         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19252
19253         * nis/nss_compat/compat-spwd.c
19254         (getspent_next_nss_netgr): Remove unused variable.
19255         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19256
19257         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19258         nonmembers" output to use the right array.
19259
19260         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19261
19262         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19263
19264         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19265         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19266         * catgets/gencat.c (read_input_file): Likewise.
19267         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19268
19269         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19270         variable definition inside #if's controlling its use.
19271
19272         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19273
19274         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19275
19276         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19277
19278         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19279         unreachable code.
19280
19281         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19282
19283         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19284         * configure: Regenerated.
19285
19286         * Makerules: Revert last change.
19287         * elf/Makefile: Likewise.
19288
19289 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19290
19291         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19292         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19293         (reloc-link): Likewise.
19294
19295 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19296
19297         * elf/Makefile: Add rules to build pldd.
19298         * elf/pldd.c: New file.
19299         * elf/pldd-xx.c: New file.
19300
19301 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19302
19303         * version.h: Update for 2.15 development version.
19304
19305 2011-06-07  David S. Miller  <davem@davemloft.net>
19306
19307         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19308         ifuncs.
19309         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19310         elf_machine_lazy_rel): Likewise.
19311         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19312         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19313         elf_machine_lazy_rel): Likewise.
19314         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19315         dl_hwcap via passed in argument.
19316         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19317         Likewise.
19318
19319 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19320
19321         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19322
19323 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19324
19325         [BZ #12849]
19326         * manual/fdl-1.1.texi: New file, verbatim from:
19327         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19328         * manual/lgpl-2.1.texi: New file, verbatim from:
19329         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19330         * manual/Makefile (licenses): New variable, list those new file names.
19331         (texis): Use it.
19332         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19333
19334         * manual/fdl.texi: File removed.
19335         * manual/lesser.texi: File removed.
19336         * manual/libc.texinfo (Copying, Documentation License):
19337         Use new @include file names, put @appendix directive before @include.
19338
19339 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19340
19341         [BZ #12841]
19342         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19343         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19344         (mq_open): Add __NTH.
19345
19346 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19347
19348         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19349         Assume Intel Core i3/i5/i7 processor if AVX is available.
19350
19351 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19352
19353         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19354         typo.
19355
19356 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19357
19358         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19359         memory.  Use alloca_account.  Fix memory leak when retrying.
19360
19361 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19362
19363         * version.h (RELEASE): Bump for 2.14 release.
19364         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19365
19366         * config.make.in (RANLIB): Remove entry.
19367
19368 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19369
19370         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19371         (libc.pot): Work around missing support for .ksh extension in xgettext.
19372
19373         [BZ #12684]
19374         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19375         if both request failed.
19376         (send_dg): In case of server errors clear resplen or *resplen2.
19377
19378         [BZ #12454]
19379         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19380         when there are multiple maps.
19381         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19382         (_dl_fini): Remove test here.
19383
19384         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19385
19386 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19387
19388         [BZ #12350]
19389         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19390         bit from old_res_options.
19391         (gaih_inet): Likewise.
19392
19393         [BZ #11099]
19394         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19395         as signed.
19396
19397         * resolv/res_init.c (res_setoptions): Make the code more compact.
19398
19399         [BZ #11558]
19400         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19401         set RES_USEVC.
19402
19403         [BZ #11634]
19404         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19405
19406         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19407
19408         [BZ #11781]
19409         * malloc/malloc.h: Declare malloc hook variables as volatile.
19410
19411         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19412         in last patch.
19413
19414         [BZ #11799]
19415         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19416         raise in the comment.
19417         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19418         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19419         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19420
19421 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19422
19423         [BZ #12811]
19424         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19425         grow the buffers more if it already has to be sufficient.
19426         (build_wcs_upper_buffer): Likewise.
19427         * posix/regexec.c (check_matching): Likewise.
19428         (clean_state_log_if_needed): Likewise.
19429         (extend_buffers): Don't enlarge buffers beyond size of the input
19430         buffer.
19431         Patches mostly by Emil Wojak <emil@wojak.eu>.
19432         * posix/bug-regex32.c: New file.
19433         * posix/Makefile (tests): Add bug-regex32.
19434
19435         * locale/findlocale.c (_nl_find_locale): Return right away if
19436         _nl_explode_name failed.
19437         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19438
19439         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19440
19441         * debug/xtrace.sh: Unify messages.
19442         * malloc/memusage.sh: Likewise.
19443
19444         [BZ #12813]
19445         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19446         time symbol from vDSO.  Substitute with vsyscall if not available.
19447         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19448         __vdso_time.
19449
19450         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19451         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19452         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19453         Add sendmmsg and internal_sendmmsg.
19454         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19455         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19456         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19457
19458         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19459         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19460         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19461
19462 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19463
19464         [BZ #12813]
19465         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19466         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19467         available.
19468         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19469         __vdso_getcpu.
19470
19471         [BZ #12814]
19472         * iconvdata/Makefile (tests): Add bug-iconv9.
19473         * iconvdata/bug-iconv9.c: New file.
19474
19475 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19476
19477         [BZ #12814]
19478         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19479
19480 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19481
19482         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19483         (struct user_regs_struct): Change intcs field back to cs.
19484
19485 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19486
19487         * po/ja.po: Update from translation team.
19488
19489 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19490
19491         [BZ #12795]
19492         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19493         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19494
19495 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19496
19497         * stdlib/longlong.h: Update from GCC.
19498
19499 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19500
19501         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19502         parameter name.
19503         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19504         Add parameter name.
19505         (__sysconf): Pass it down.
19506
19507 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19508
19509         [BZ #12671]
19510         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19511         some situations.
19512         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19513         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19514         add in in __libc_use_alloca calls.  Adjust callers.
19515         (glob): Use malloc in some situations.
19516
19517         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19518         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19519         pltexit.
19520
19521 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19522
19523         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19524         and CLOCK_BOOTTIME_ALARM.
19525
19526         [BZ #12782]
19527         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19528         is returned.
19529
19530         * string/_strerror.c (__strerror_r): Print negative errors as signed
19531         numbers.
19532
19533         [BZ #12777]
19534         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19535         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19536         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19537
19538         * configure.in: Fix typo in redirection and correct removal of test
19539         files in two cases.
19540
19541         [BZ #12788]
19542         * locale/setlocale.c (new_composite_name): Fix test to check for
19543         identical name of all categories.
19544
19545         [BZ #12792]
19546         * libio/filedoalloc.c (local_isatty): New function.
19547         (_IO_file_doallocate): Use local_isatty.
19548         * stdio-common/perror.c (perror): In case a new stream is used
19549         forward the stream error.
19550         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19551         error flag.
19552
19553 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19554
19555         [BZ #11869]
19556         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19557         alloca.
19558         * include/alloca.h (extend_alloca_account): Define.
19559
19560         [BZ #11857]
19561         * posix/regex.h: Fix comments with documentation of user-accessible
19562         fields after compilation and describe correct free'ing of pattern
19563         after re_compile_pattern.
19564         Patch by Reuben Thomas <rrt@sc3d.org>.
19565
19566 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19567
19568         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19569         and -mno-altivec to prevent the compiler from using Altivec and/or
19570         VSX instructions when the corresponding registers are not available.
19571
19572 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19573
19574         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19575
19576 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19577
19578         * libio/freopen.c (freopen): Use __dup2, not dup2.
19579         * libio/freopen64.c (freopen64): Likewise.
19580
19581 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19582
19583         [BZ #12775]
19584         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19585         * math/Makefile (tests): Add test-powl.
19586         (CFLAGS-test-powl.c): Define.
19587         * math/test-powl.c: New file.
19588
19589 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19590
19591         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19592
19593 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19594
19595         [BZ #11837]
19596         * iconvdata/gb18030.c: Update to GB18020-2005.
19597
19598 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19599
19600         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19601         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19602         Patch by Aharon Robbins <arnold@skeeve.com>.
19603
19604         [BZ #11892]
19605         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19606         on the stack.
19607
19608         [BZ #11895]
19609         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19610         through underflows.
19611
19612         [BZ #12766]
19613         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19614         point to strings before performing equality test for error_one_per_line
19615         mode.
19616
19617         [BZ #11697]
19618         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19619
19620         [BZ #11820]
19621         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19622         (struct user_fpregs_struct): Avoid __uint*_t types.
19623
19624         [BZ #6420]
19625         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19626         symbol info.  Use it instead of calling _dl_addr locally.
19627         (lock_and_info): New function.
19628         (tr_freehook): Call lock_and_info and pass symbol info as additional
19629         parameter to tr_where.
19630         (tr_mallochook): Likewise.
19631         (tr_reallochook): Likewise.
19632         (tr_memalignhook): Likewise.
19633
19634         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19635         used and couldn't be at all thread-safe.
19636
19637 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19638
19639         * libio/freopen.c (freopen): Don't close old file descriptor
19640         before the new one is opened.  Instead dup the new file descriptor
19641         to the old one after the new stream is created.
19642         * libio/freopen64.c (freopen64): Likewise.
19643         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19644         * libio/fileops.c (_IO_new_file_close_it): Handle new
19645         _IO_FLAGS2_NOCLOSE flag.
19646         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19647         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19648         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19649         _IO_FLAGS2_NOCLOSE flag.
19650         * include/unistd.h: Add hidden_proto for dup3.
19651         Define __have_dup3.
19652         * io/dup3.c: Define hidden symbol.
19653         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19654
19655         [BZ #7101]
19656         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19657         when an incomplete long option is used.
19658         * posix/tst-getopt_long1.c: New file.
19659         * posix/Makefile (tests): Add tst-getopt_long1.
19660
19661         [BZ #10138]
19662         * scripts/config.guess: Update from autoconf-2.68.
19663         * scripts/config.sub: Likewise.
19664
19665         [BZ #10157]
19666         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19667         tests into ...
19668         (has_cpuclock): ...this.  New function.
19669         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19670         macro here based on has_cpuclock code.
19671
19672         [BZ #10149]
19673         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19674         First byte (not low byte) is now always NUL.
19675         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19676
19677         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19678         Use non-cancelable interfaces.
19679
19680         [BZ #9809]
19681         * locale/iso-639.def: Add entry for Sorani.
19682
19683         [BZ #11901]
19684         * include/stdlib.h: Move include protection to the right place.
19685         Define abort_msg_s.  Declare __abort_msg with it.
19686         * stdlib/abort.c (__abort_msg): Adjust type.
19687         * assert/assert.c (__assert_fail_base): New function.  Majority
19688         of code from __assert_fail.  Allocate memory for __abort_msg with
19689         mmap.
19690         (__assert_fail): Now call __assert_fail_base.
19691         * assert/assert-perr.c: Remove bulk of implementation.  Use
19692         __assert_fail_base.
19693         * include/assert.hL Declare __assert_fail_base.
19694         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19695         mmap.
19696         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19697
19698 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19699
19700         [BZ #11952]
19701         [BZ #12453]
19702         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19703         until all modules are registered in the DTV.
19704         * elf/Makefile: Add rules to build and run tst-tls19.
19705         * elf/tst-tls19.c: New file.
19706         * elf/tst-tls19mod1.c: New file.
19707         * elf/tst-tls19mod2.c: New file.
19708         * elf/tst-tls19mod3.c: New file.
19709         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19710
19711         [BZ #12083]
19712         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19713         correctly.
19714
19715         [BZ #12601]
19716         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19717         two-byte sequence errors.
19718         * iconvdata/Makefile (tests): Add bug-iconv8.
19719         * iconvdata/bug-iconv8.c: New file.
19720
19721         [BZ #12626]
19722         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19723         buf2 definition.
19724
19725         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19726
19727         [BZ #12432]
19728         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19729         (dummy_getcfa): New function.
19730         (init): Get _Unwind_GetCFA address, use dummy if not found.
19731         (backtrace_helper): In recursion check, also check whether CFA changes.
19732         (__backtrace): Completely initialize arg.
19733
19734         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19735         storing incomplete byte sequence in state object.  Avoid testing for
19736         guaranteed too small input if we know there is enough data available.
19737
19738 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19739
19740         * Makeconfig (+link-pie): Indent.
19741         * Rules (binaries-pie): Define if $(have-fpie) and
19742         $(build-shared).
19743         (binaries-shared): Also filter out $(binaries-pie).
19744         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19745         * nscd/Makefile (others-pie): Add nscd.
19746         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19747         ($(objpfx)nscd): Remove command override.
19748         * login/Makefile (others-pie): Add pt_chown.
19749         ($(objpfx)pt_chown): Remove command override.
19750         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19751         remove command overrides.
19752
19753 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19754
19755         * libio/tst_putwc.c: Fix error messages.
19756
19757         [BZ #12724]
19758         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19759         currently writing and seek to current position when not.
19760         * libio/Makefile (tests): Add bug-fclose1.
19761         * libio/bug-fclose1.c: New file.
19762
19763 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19764
19765         [BZ #12511]
19766         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19767         don't set DF_1_NODELETE here.
19768         (do_lookup_x): When entering new entry test for copy relocation
19769         and if necessary set DF_1_NODELETE flag.
19770         * elf/tst-unique4.cc: New file.
19771         * elf/tst-unique4.h: New file.
19772         * elf/tst-unique4lib.cc: New file.
19773         * elf/Makefile: Add rules to build and run tst-unique4.
19774         Patch by Piotr Bury <pbury@goahead.com>.
19775
19776 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19777
19778         [BZ #12052]
19779         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19780
19781         [BZ #12625]
19782         * misc/mntent_r.c (addmntent): Flush the stream after the output
19783
19784         [BZ #12393]
19785         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19786         (is_trusted_path_normalize): Skip initial colon.  Append slash
19787         to empty buffer.  Duplicate is_trusted_path code but allow
19788         constructed patch to be prefix.
19789         (is_dst): Allow $ORIGIN followed by /.
19790         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19791         Correct testing of result of is_trusted_path_normalize
19792         (decompose_rpath): Fix warning.
19793
19794 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19795
19796         [BZ #11257]
19797         * grp/initgroups.c (internal_getgrouplist): When we found the service
19798         list through the initgroups entry in nsswitch.conf do not always
19799         continue on a successful lookup.  Don't always use the
19800         __nss_group_database value if it is set.
19801         * nss/nsswitch.conf (initgroups): Change action for successful db
19802         lookup to continue for compatibility.
19803
19804 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19805
19806         [BZ #11532]
19807         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19808         and CP774 modules.
19809         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19810         and CP774 modules.
19811         * iconvdata/tst-tables.sh: Likewise.
19812         * iconvdata/cp770.c: New file.
19813         * iconvdata/cp771.c: New file.
19814         * iconvdata/cp772.c: New file.
19815         * iconvdata/cp773.c: New file.
19816         * iconvdata/cp774.c: New file.
19817         * iconvdata/testdata/CP770: New file.
19818         * iconvdata/testdata/CP770..UTF8: New file.
19819         * iconvdata/testdata/CP771: New file.
19820         * iconvdata/testdata/CP771..UTF8: New file.
19821         * iconvdata/testdata/CP772: New file.
19822         * iconvdata/testdata/CP772..UTF8: New file.
19823         * iconvdata/testdata/CP773: New file.
19824         * iconvdata/testdata/CP773..UTF8: New file.
19825         * iconvdata/testdata/CP774: New file.
19826         * iconvdata/testdata/CP774..UTF8: New file.
19827
19828         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19829         END CHARMAP line.
19830         * iconvdata/gen-8bit-gap.sh: Likewise.
19831         * iconvdata/gen-8bit.sh: Likewise.
19832
19833         * locale/iso-639.def: Add ary entry.
19834
19835         [BZ #11258]
19836         * locale/C-translit.h.in: Add U20A1 transliteration.
19837
19838         [BZ #12178]
19839         * locale/iso-639.def: Add wae entry.
19840         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19841
19842         [BZ #12545]
19843         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19844         for n.
19845
19846         [BZ #12711]
19847         * locale/C-translit.h.in: Add entry for U20B9.
19848         Patch by pravin.d.s@gmail.com.
19849
19850 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19851
19852         [BZ #12713]
19853         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19854         ENAMETOOLONG use generic getcwd.
19855         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19856         in rtld.  Use *stat64.
19857         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19858         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19859         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19860         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19861         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19862         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19863         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19864         __fstatat64 macros.
19865         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19866         * dirent/rewinddir.c: Add libc_hidden_def.
19867         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19868         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19869
19870         * include/dirent.h (__alloc_dir): Add flags parameter.
19871         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19872         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19873         __alloc_dir.
19874         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19875         from fdopendir if O_CLOEXEC is already set.
19876
19877 2011-03-15  Alan Modra  <amodra@gmail.com>
19878
19879         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19880         l_tls_firstbyte_offset non-zero.  Save padding offset in
19881         l_tls_firstbyte_offset for later use.
19882         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19883         freeing static tls block.
19884
19885 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19886
19887         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19888         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19889         being defined by the kernel headers.
19890
19891 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19892
19893         [BZ #12734]
19894         * resolv/resolv.h: Define RES_NOTLDQUERY.
19895         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19896         no-tld-query and set RES_NOTLDQUERY.
19897         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19898         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19899         modern BIND to search name as TLD unless forbidden.
19900
19901 2011-05-07  Petr Baudis  <pasky@suse.cz>
19902             Ulrich Drepper  <drepper@gmail.com>
19903
19904         [BZ #12393]
19905         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19906         (is_trusted_path): ...to here.
19907         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19908         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19909         using is_trusted_path_normalize() in setuid scripts.
19910
19911 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19912
19913         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19914         __BEGIN/__END_DECLS.
19915
19916 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19917
19918         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19919         NSS_STATUS_NOTFOUND if no record was found.
19920
19921 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19922
19923         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19924         (headers-not-in-tirpc): Remove rpc/netdb.h
19925         * resolv/netdb.h: Revert last change.
19926
19927 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19928
19929         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19930         circular dependency between libgcc.a and libc.a.
19931
19932 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19933
19934         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19935         * nis/Makefile: Don't install rpcsvc/*.
19936         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19937         instead of <rpc/types.h>.
19938         (MAXHOSTNAMELEN): Define.
19939
19940 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19941
19942         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19943
19944 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19945
19946         [BZ #12714]
19947         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19948         gethostbyname4_r when IPv6 results are possible.
19949
19950 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19951
19952         [BZ #12723]
19953         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19954         _PC_PIPE_BUF handling.
19955
19956 2011-04-30  Bruno Haible  <bruno@clisp.org>
19957
19958         [BZ #12717]
19959         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19960         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19961         to 'int'.
19962         * inet/getnameinfo.c (getnameinfo): Likewise.
19963
19964 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19965
19966         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19967         to groups setting in database lookup.
19968         * nss/nsswitch.conf: Add initgroups entry.
19969
19970 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19971
19972         [BZ #12685]
19973         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19974         mode string.
19975         Patch by Eric Blake <eblake@redhat.com>.
19976
19977 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19978
19979         * sunrpc/Makefile (need-export-routines): Add svc_run.
19980         (routines): Remove svc_run.
19981         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19982         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19983         * sunrpc/svc_run.c (svc_run): Likewise.
19984         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19985
19986 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19987
19988         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19989         problem in reallocation in last patch.
19990
19991 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19992
19993         * sunrpc/Makefile: Move inclusion of Rules.
19994
19995 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19996
19997         * nss/nss_files/files-initgroups.c: New file.
19998         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19999         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20000         _nss_files_initgroups_dyn.
20001
20002 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20003
20004         * elf/elf.h (R_ARM_IRELATIVE): Define.
20005
20006 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20007
20008         * po/ru.po: Update from translation team.
20009
20010 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20011
20012         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20013         dependencies.
20014
20015 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20016
20017         [BZ #12653]
20018         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20019         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20020         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20021         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20022         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20023
20024 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20025
20026         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20027         differing bytes.
20028         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20029         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20030         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20031
20032 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20033
20034         [BZ #12420]
20035         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20036         storing it.
20037         * stdlib/bug-getcontext.c: New file.
20038         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20039
20040 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20041
20042         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20043         instructions into .machine "z9-109".
20044         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20045         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20046
20047 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20048
20049         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20050         between environment variables and auxiliary vector.
20051
20052 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20053
20054         * Makefile: Add rules to build linkobj/libc.so.
20055         * include/libc-symbols.h: Define libc_hidden_nolink.
20056         * include/rpc/auth.h: Mark functions which are to be hidden.
20057         * include/rpc/auth_des.h: Likewise.
20058         * include/rpc/auth_unix.h: Likewise.
20059         * include/rpc/clnt.h: Likewise.
20060         * include/rpc/des_crypt.h: Likewise.
20061         * include/rpc/key_prot.h: Likewise.
20062         * include/rpc/pmap_clnt.h: Likewise.
20063         * include/rpc/pmap_prot.h: Likewise.
20064         * include/rpc/pmap_rmt.h: Likewise.
20065         * include/rpc/rpc_msg.h: Likewise.
20066         * include/rpc/svc.h: Likewise.
20067         * include/rpc/svc_auth.h: Likewise.
20068         * include/rpc/xdr.h: Likewise.
20069         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20070         * nss/Makefile: Likewise.
20071         * sunrpc/Makefile: Don't install headers.  Build library with normal
20072         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20073         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20074         for the compat linking library.  Remove use of INTDEF/INTUSE.
20075         * sunrpc/auth_none.c: Likewise.
20076         * sunrpc/auth_unix.c: Likewise.
20077         * sunrpc/authdes_prot.c: Likewise.
20078         * sunrpc/authuxprot.c: Likewise.
20079         * sunrpc/clnt_gen.c: Likewise.
20080         * sunrpc/clnt_perr.c: Likewise.
20081         * sunrpc/clnt_raw.c: Likewise.
20082         * sunrpc/clnt_simp.c: Likewise.
20083         * sunrpc/clnt_tcp.c: Likewise.
20084         * sunrpc/clnt_udp.c: Likewise.
20085         * sunrpc/clnt_unix.c: Likewise.
20086         * sunrpc/des_crypt.c: Likewise.
20087         * sunrpc/des_soft.c: Likewise.
20088         * sunrpc/get_myaddr.c: Likewise.
20089         * sunrpc/key_call.c: Likewise.
20090         * sunrpc/key_prot.c: Likewise.
20091         * sunrpc/netname.c: Likewise.
20092         * sunrpc/pm_getmaps.c: Likewise.
20093         * sunrpc/pm_getport.c: Likewise.
20094         * sunrpc/pmap_clnt.c: Likewise.
20095         * sunrpc/pmap_prot.c: Likewise.
20096         * sunrpc/pmap_prot2.c: Likewise.
20097         * sunrpc/pmap_rmt.c: Likewise.
20098         * sunrpc/publickey.c: Likewise.
20099         * sunrpc/rpc_cmsg.c: Likewise.
20100         * sunrpc/rpc_common.c: Likewise.
20101         * sunrpc/rpc_dtable.c: Likewise.
20102         * sunrpc/rpc_prot.c: Likewise.
20103         * sunrpc/rpc_thread.c: Likewise.
20104         * sunrpc/rtime.c: Likewise.
20105         * sunrpc/svc.c: Likewise.
20106         * sunrpc/svc_auth.c: Likewise.
20107         * sunrpc/svc_authux.c: Likewise.
20108         * sunrpc/svc_raw.c: Likewise.
20109         * sunrpc/svc_run.c: Likewise.
20110         * sunrpc/svc_simple.c: Likewise.
20111         * sunrpc/svc_tcp.c: Likewise.
20112         * sunrpc/svc_udp.c: Likewise.
20113         * sunrpc/svc_unix.c: Likewise.
20114         * sunrpc/svcauth_des.c: Likewise.
20115         * sunrpc/xcrypt.c: Likewise.
20116         * sunrpc/xdr.c: Likewise.
20117         * sunrpc/xdr_array.c: Likewise.
20118         * sunrpc/xdr_float.c: Likewise.
20119         * sunrpc/xdr_intXX_t.c: Likewise.
20120         * sunrpc/xdr_mem.c: Likewise.
20121         * sunrpc/xdr_rec.c: Likewise.
20122         * sunrpc/xdr_ref.c: Likewise.
20123         * sunrpc/xdr_sizeof.c: Likewise.
20124         * sunrpc/xdr_stdio.c: Likewise.
20125
20126 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20127
20128         [BZ #12650]
20129         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20130         * sysdeps/ia64/dl-tls.h: Likewise.
20131         * sysdeps/powerpc/dl-tls.h: Likewise.
20132         * sysdeps/s390/dl-tls.h: Likewise.
20133         * sysdeps/sh/dl-tls.h: Likewise.
20134         * sysdeps/sparc/dl-tls.h: Likewise.
20135         * sysdeps/x86_64/dl-tls.h: Likewise.
20136         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20137
20138 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20139
20140         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20141         rpath element also skip the following colon.
20142         (expand_dynamic_string_token): Add is_path parameter and pass
20143         down to DL_DST_REQUIRED and _dl_dst_substitute.
20144         (decompose_rpath): Call expand_dynamic_string_token with
20145         non-zero is_path.  Ignore empty rpaths.
20146         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20147         with zero is_path.
20148
20149 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20150
20151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20152         Make cancelable.
20153
20154 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20155
20156         [BZ #12655]
20157         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20158         Patch by Filipe David Manana <fdmanana@apache.org>.
20159
20160 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20161
20162         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20163         Maintain aligned stack.
20164         (CHECK_RSP): Remove unused macro.
20165
20166 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20167
20168         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20169         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20170
20171 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20172
20173         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20174
20175         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20176
20177 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20178
20179         [BZ #12518]
20180         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20181         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20182         * sysdeps/x86_64/memmove.c: New file.
20183         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20184         (memcpy): Renamed to ...
20185         (__new_memcpy): This.
20186         (memcpy): Provide GLIBC_2_14 memcpy.
20187         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20188         (memcpy): Provide GLIBC_2_2_5 memcpy.
20189
20190 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20191
20192         [BZ #12631]
20193         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20194
20195 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20196
20197         * misc/syncfs.c: New file.
20198         * misc/Makefile (routines): Add syncfs.
20199         * posix/unistd.h: Declare syncfs.
20200         * sysdeps/unix/syscalls.list: Add syncfs.
20201
20202 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20203
20204         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20205         open_by_handle_at.
20206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20208         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20209         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20210         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20211         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20212         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20213
20214 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20215
20216         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20217         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20218         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20219         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20220         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20221         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20222         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20223
20224         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20225         sync_file_range.c with -fexceptions.
20226         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20227         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20228         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20229         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20230         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20231         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20232         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20233         sync_file_range as cancellation point
20234         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20235         now a wrapper around __call_sync_file_range with cancellation handling.
20236         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20237         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20238         function name to __call_sync_file_range.
20239         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20240         Add call_sync_file_range.
20241
20242 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20243
20244         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20245         bits/timex.h.
20246
20247 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20248
20249         * iconv/iconv.h: Fix typo in comment.
20250         * io/fcntl.h: Likewise.
20251         * libio/stdio.h: Likewise.
20252         * posix/spawn.h: Likewise.
20253         * posix/unistd.h: Likewise.
20254         * stdlib/stdlib.h: Likewise.
20255         * time/time.h: Likewise.
20256         * wcsmbs/wchar.h: Likewise.
20257
20258         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20259         open_by_handle): Add.
20260         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20261         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20262         Augment a few comments.
20263         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20264         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20265         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20266         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20267         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20268         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20269         open_by_handle.
20270
20271         * io/fcntl.h (AT_EMPTY_PATH): Define.
20272
20273 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20274
20275         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20276         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20277         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20278         to...
20279         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20280         * Versions.def: Add GLIBC_2.14.
20281         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20282         Export.
20283
20284 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20285
20286         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20287         round counter.
20288         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20289
20290 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20291
20292         [BZ #12597]
20293         * string/test-strncmp.c (do_page_test): New function.
20294         (check2): Likewise.
20295         (test_main): Call check2.
20296         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20297
20298 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20299
20300         [BZ #12587]
20301         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20302         Handle cache information in CPU leaf 4.
20303         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20304
20305 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20306
20307         [BZ #12583]
20308         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20309         character representation.
20310         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20311
20312 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20313
20314         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20315         END(__isnan) to END(__isnanf) to match function entry point/label
20316         EALIGN(__isnanf,...).
20317
20318 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20319
20320         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20321
20322 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20323
20324         [BZ #12510]
20325         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20326         copy from the symbol referenced in the relocation to initialize the
20327         used variable.
20328         Patch by Piotr Bury <pbury@goahead.com>.
20329         * elf/Makefile: Add rules to build and tst-unique3.
20330         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20331         * elf/tst-unique3.cc: New file.
20332         * elf/tst-unique3.h: New file.
20333         * elf/tst-unique3lib.cc: New file.
20334         * elf/tst-unique3lib2.cc: New file.
20335
20336         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20337
20338 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20339
20340         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20341         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20342         to _start.
20343
20344 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20345
20346         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20347         to-be-loaded object along a path to loader is ld.so.
20348
20349 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20350             Ulrich Drepper  <drepper@gmail.com>
20351
20352         * sysdeps/x86_64/memset.S: After aligning destination, code
20353         branches to different locations depending on the value of
20354         misalignment, when multiarch is enabled. Fix this.
20355
20356 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20357
20358         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20359         Set _x86_64_preferred_memory_instruction for AMD processsors.
20360         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20361         Set bit_Prefer_SSE_for_memop for AMD processors.
20362
20363 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20364
20365         * libio/fmemopen.c (fmemopen): Optimize a bit.
20366
20367 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20368
20369         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20370
20371 2011-03-03  Roland McGrath  <roland@redhat.com>
20372
20373         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20374
20375 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20376
20377         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20378         __bzero_ultra1 instead of __memset_ultra1.
20379
20380 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20381             Ulrich Drepper  <drepper@gmail.com>
20382
20383         [BZ #12509]
20384         * include/link.h (struct link_map): Add l_orig_initfini.
20385         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20386         returning unsuccessfully.
20387         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20388         close of a file loaded at startup, restore the original l_initfini
20389         list.
20390         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20391         list, store the pointer.
20392         * elf/Makefile ($(objpfx)noload-mem): New rule.
20393         (noload-ENV): Define.
20394         (tests): Add $(objpfx)noload-mem.
20395         * elf/noload.c: Include <memcheck.h>.
20396         (main): Call mtrace.  Close all opened handles.
20397
20398 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20399
20400         [BZ #12454]
20401         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20402         dependencies are missing.
20403
20404 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20405
20406         Fix __if_freereq crash: Unlike the generic version which uses free,
20407         Hurd needs munmap.
20408         * sysdeps/mach/hurd/ifreq.h: New file.
20409
20410 2011-01-27  Petr Baudis  <pasky@suse.cz>
20411             Ulrich Drepper  <drepper@gmail.com>
20412
20413         [BZ 12445]#
20414         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20415         to extend_alloca().
20416         * stdio-common/bug23.c: New file.
20417         * stdio-common/Makefile (tests): Add bug23.
20418
20419 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20420             Ulrich Drepper  <drepper@gmail.com>
20421
20422         [BZ #12489]
20423         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20424         before performing relro protection.  At old place add assertion
20425         to make sure nothing changed.
20426
20427 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20428             Glauber de Oliveira Costa  <glommer@gmail.com>
20429
20430         * elf/elf.h: Add new ARM TLS relocs.
20431
20432 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20433
20434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20435         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20436         cast from r3.
20437         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20438         'tests' variable.
20439         * sysdeps/wordsize-64/tst-writev.c: New file.
20440
20441 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20442
20443         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20444         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20445         insns in _dl_start to prevent a TOC reference before relocs are
20446         resolved.
20447
20448 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20449
20450         [BZ #12469]
20451         * Makeconfig: Remove RANLIB definition.
20452         * Makerules: Don't use RANLIB.
20453         * aclocal.m4: Remove ranlib test.
20454         * configure.in: No need to check for ranlib.
20455         * elf/rtld-Rules: Don't use RANLIB.
20456
20457 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20458
20459         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20460         protection macro.
20461         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20462         inclusion protection macro.
20463
20464         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20465         SIGRTMIN and SIGRTMAX and print information in that case only when
20466         SIGRTMIN is defined.
20467
20468 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20469
20470         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20471         arginfo fn returning -1.
20472
20473         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20474         and thousands string is zero terminated.
20475
20476 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20477
20478         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20479         sysdeps/unix/sysv/linux/bits/socket.h.
20480
20481 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20482
20483         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20484         (__CPU_COUNT): Remove old macros.
20485         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20486         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20487         (__CPU_ALLOC, __CPU_FREE): Add macros.
20488         (__sched_cpualloc, __sched_cpufree): Add declarations.
20489
20490 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20491
20492         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20493         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20494         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20495         (readdhstai): Return value of addhstaiX call.
20496         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20497         (addgrbyX): Return value returned by cache_addgr.
20498         (readdgrbyname): Return value returned by addgrbyX.
20499         (readdgrbygid): Likewise.
20500         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20501         (addpwbyX): Return value returned by cache_addpw.
20502         (readdpwbyname): Return value returned by addhstbyX.
20503         (readdpwbyuid): Likewise.
20504         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20505         (addservbyX): Return value returned by cache_addserv.
20506         (readdservbyname): Return value returned by addservbyX:
20507         (readdservbyport): Likewise.
20508         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20509         (addhstbyX): Return value returned by cache_addhst.
20510         (readdhstbyname): Return value returned by addhstbyX.
20511         (readdhstbyaddr): Likewise.
20512         (readdhstbynamev6): Likewise.
20513         (readdhstbyaddrv6): Likewise.
20514         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20515         (readdinitgroups): Return value returned by addinitgroupsX.
20516         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20517         (prune_cache): Keep track of timeout value of re-added entries.
20518         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20519         * nscd/nscd.h: Adjust prototypes of readd* functions.
20520
20521 2011-02-04  Roland McGrath  <roland@redhat.com>
20522
20523         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20524         (nis_stats): Likewise.
20525         * nis/nis_modify.c (nis_modify): Likewise.
20526         * nis/nis_remove.c (nis_remove): Likewise.
20527         * nis/nis_add.c (nis_add): Likewise.
20528
20529         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20530
20531         * posix/fnmatch_loop.c: Add some consts.
20532
20533         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20534
20535 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20536
20537         [BZ #12460]
20538         * config.make.in (config-cflags-novzeroupper): Define.
20539         * configure.in: Substitute libc_cv_cc_novzeroupper.
20540         * elf/Makefile (AVX-CFLAGS): Define.
20541         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20542         (CFLAGS-tst-auditmod4a.c): Likewise.
20543         (CFLAGS-tst-auditmod4b.c): Likewise.
20544         (CFLAGS-tst-auditmod6b.c): Likewise.
20545         (CFLAGS-tst-auditmod6c.c): Likewise.
20546         (CFLAGS-tst-auditmod7b.c): Likewise.
20547         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20548
20549 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20550
20551         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20552         function to the callback.
20553         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20554
20555 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20556
20557         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20558         of errno.
20559
20560 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20561
20562         [BZ #11724]
20563         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20564         of constructors.
20565         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20566         of destructors.
20567         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20568
20569         [BZ #11724]
20570         * elf/Makefile: Add rules to build and run new test.
20571         * elf/tst-initorder.c: New file.
20572         * elf/tst-initorder.exp: New file.
20573         * elf/tst-initordera1.c: New file.
20574         * elf/tst-initordera2.c: New file.
20575         * elf/tst-initordera3.c: New file.
20576         * elf/tst-initordera4.c: New file.
20577         * elf/tst-initorderb1.c: New file.
20578         * elf/tst-initorderb2.c: New file.
20579         * elf/tst-order-a1.c: New file.
20580         * elf/tst-order-a2.c: New file.
20581         * elf/tst-order-a3.c: New file.
20582         * elf/tst-order-a4.c: New file.
20583         * elf/tst-order-b1.c: New file.
20584         * elf/tst-order-b2.c: New file.
20585         * elf/tst-order-main.c: New file.
20586         New test case by George Gensure <werkt0@gmail.com>.
20587
20588 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20589
20590         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20591         decoding ACE if AI_CANONIDN.
20592
20593 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20594
20595         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20596
20597 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20598
20599         * version.h (RELEASE): Bump for 2.13 release.
20600         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20601
20602         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20603
20604         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20605         MADV_NOHUGEPAGE.
20606         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20607         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20608         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20609         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20610         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20611         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20612
20613         * posix/getconf.c: Update copyright year.
20614         * catgets/gencat.c: Likewise.
20615         * csu/version.c: Likewise.
20616         * debug/catchsegv.sh: Likewise.
20617         * debug/xtrace.sh: Likewise.
20618         * elf/ldconfig.c: Likewise.
20619         * elf/ldd.bash.in: Likewise.
20620         * elf/sprof.c (print_version): Likewise.
20621         * iconv/iconv_prog.c: Likewise.
20622         * iconv/iconvconfig.c: Likewise.
20623         * locale/programs/locale.c: Likewise.
20624         * locale/programs/localedef.c: Likewise.
20625         * malloc/memusage.sh: Likewise.
20626         * malloc/mtrace.pl: Likewise.
20627         * nscd/nscd.c (print_version): Likewise.
20628         * nss/getent.c: Likewise.
20629
20630         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20631         PF_CAIF, and PF_ALG.
20632         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20633
20634 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20635
20636         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20637         (modules-names): Use them.
20638         (ifunc-test-modules, ifunc-pie-tests): Define.
20639         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20640         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20641         (test-extras): Likewise.
20642         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20643         $(compile-command.c).
20644         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20645         (all-built-dso): Define.
20646         (check-textrel.out, check-execstack.out): Depend on it.
20647
20648         * configure.in: Don't override --enable-multi-arch.
20649
20650 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20651
20652         [BZ #6812]
20653         * nscd/hstcache.c (tryagain): Define.
20654         (cache_addhst): Return tryagain not notfound for temporary errors.
20655         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20656         failed.
20657
20658 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20659
20660         [BZ #10563]
20661         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20662         to make the syscall.
20663         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20664
20665         [BZ #12378]
20666         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20667         and fall back to matching as normal character if the string ends before
20668         the matching ']' is found.  This is what POSIX requires.
20669         * posix/testfnm.c: Adjust test result.
20670         * posix/globtest.sh: Adjust test result.  Add new test.
20671         * posix/tst-fnmatch.input: Likewise.
20672         * posix/tst-fnmatch2.c: Add new test.
20673
20674 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20675
20676         * elf/Makefile (check-execstack): Revert last change.  Depend on
20677         check-execstack.h.
20678         (check-execstack.h): New target.
20679         (generated): Add check-execstack.h.
20680         * elf/check-execstack.c: Include "check-execstack.h".
20681         (main): Revert last change.
20682         (handle_file): Return zero if GNU_STACK is absent and
20683         DEFAULT_STACK_PERMS doesn't include PF_X.
20684
20685 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20686
20687         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20688         in child fails because the descriptor is already closed.
20689         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20690         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20691         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20692
20693         [BZ #12397]
20694         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20695         syscall.
20696
20697         [BZ #10484]
20698         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20699         temporary buffer used to handle multi lookups locally.
20700         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20701
20702 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20703
20704         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20705         loader is ld.so.
20706
20707 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20708
20709         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20710         alignment for SSE2.
20711
20712 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20713
20714         [BZ #12394]
20715         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20716         characters.  When rounding increased number of integer digits recompute
20717         number of groups.
20718         * stdio-common/tst-grouping.c: New file.
20719         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20720
20721 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20722
20723         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20724         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20725
20726         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20727         void.
20728         * bits/select.h: Likewise.
20729
20730 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20731
20732         * po/ja.po: Update from translation team.
20733
20734 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20735
20736         [BZ #11155]
20737         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20738         implementation just like for lxstat, fxstatat, et al.
20739
20740 2010-12-27  Jim Meyering  <meyering@redhat.com>
20741
20742         [BZ #12348]
20743         * posix/regexec.c (build_trtable): Return failure indication upon
20744         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20745
20746 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20747
20748         [BZ #12201]
20749         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20750         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20751         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20752         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20753
20754         [BZ #12207]
20755         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20756
20757         [BZ #12204]
20758         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20759         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20760
20761 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20762
20763         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20764         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20765         script has SORT_BY_INIT_PRIORITY.
20766         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20767         NO_CTORS_DTORS_SECTIONS is defined.
20768         * elf/soinit.c: Likewise.
20769         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20770         NO_CTORS_DTORS_SECTIONS is defined.
20771         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20772         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20773         * sysdeps/sh/init-first.c: Likewise.
20774         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20775
20776 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20777
20778         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20779         always use the slow path.
20780
20781 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20782
20783         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20784         similar rule which adds the sysdep directories to the header search in
20785         order to pick up the correct platform stackinfo.h.
20786         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20787         perform test if it is, otherwise return successfully without testing.
20788         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20789         DEFAULT_STACK_PERMS define in stackinfo.h.
20790         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20791         defined in stackinfo.h.
20792         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20793         DEFAULT_STACK_PERMS defined in stackinfo.h.
20794         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20795         * sysdeps/ia64/stackinfo.h: Likewise.
20796         * sysdeps/s390/stackinfo.h: Likewise.
20797         * sysdeps/sh/stackinfo.h: Likewise.
20798         * sysdeps/sparc/stackinfo.h: Likewise.
20799         * sysdeps/x86_64/stackinfo.h: Likewise.
20800         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20801         PF_X for powerpc64.  Retain PF_X for powerpc32.
20802
20803 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20804
20805         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20806         accurately.
20807         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20808         GETDENTS_64BIT_ALIGNED.
20809
20810 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20811
20812         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20813
20814 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20815
20816         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20817         _GNU_SOURCE.
20818
20819         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20820         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20821         Remove __restrict.
20822         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20823         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20824
20825 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20826
20827         [BZ #11655]
20828         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20829         are initialized.
20830
20831 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20832
20833         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20834
20835 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20836
20837         * po/it.po: Update from translation team.
20838
20839 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20840
20841         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20842         unused codes.
20843
20844 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20845
20846         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20847
20848 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20849
20850         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20851         specially.
20852         (gaih_getanswer_slice): Likewise.
20853
20854 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20855
20856         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20857
20858 2010-05-31  Petr Baudis  <pasky@suse.cz>
20859
20860         [BZ #11149]
20861         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20862         silently even in the chroot mode.
20863
20864 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20865
20866         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20867         last patch a bit.  Pretty printing
20868
20869 2010-05-31  Petr Baudis <pasky@suse.cz>
20870
20871         [BZ #10085]
20872         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20873         initialization of skip_initgroups_dyn.
20874
20875 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20876
20877         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20878         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20879
20880 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20881
20882         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20883
20884 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20885
20886         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20887         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20888         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20889         ($(objpfx)tst-fnmatch-mem): New rule.
20890         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20891         * posix/tst-fnmatch.c (main): Call mtrace.
20892
20893 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20894
20895         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20896         Support Intel processor model 6 and model 0x2c.
20897
20898 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20899
20900         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20901           signed comparison.
20902
20903 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20904
20905         [BZ #12205]
20906         * string/test-strncasecmp.c (check_result): New function.
20907         (do_one_test): Use it.
20908         (check1): New function.
20909         (test_main): Use it.
20910         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20911         Support strcasecmp and strncasecmp.
20912
20913 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20914
20915         [BZ #12194]
20916         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20917         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20918
20919 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20920
20921         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20922         IFUNC support.
20923         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20924         memset-x86-64.
20925         * sysdeps/x86_64/multiarch/bzero.S: New file.
20926         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20927         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20928         * sysdeps/x86_64/multiarch/memset.S: New file.
20929         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20931         Set bit_Prefer_SSE_for_memop for Intel processors.
20932         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20933         Define.
20934         (index_Prefer_SSE_for_memop): Define.
20935         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20936
20937 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20938
20939         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20940         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20941
20942 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20943
20944         [BZ #12191]
20945         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20946         (__x86_64_raw_data_cache_size_half): Likewise.
20947         (__x86_64_raw_shared_cache_size): Likewise.
20948         (__x86_64_raw_shared_cache_size_half): Likewise.
20949
20950         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20951         (__x86_64_raw_data_cache_size_half): Likewise.
20952         (__x86_64_raw_shared_cache_size): Likewise.
20953         (__x86_64_raw_shared_cache_size_half): Likewise.
20954         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20955         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20956         and __x86_64_raw_shared_cache_size_half.  Round
20957         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20958         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20959         to multiple of 256 bytes.
20960
20961 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20962
20963         [BZ #12167]
20964         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20965         of inacessible symlinks.  Verify result of symlink before returning it.
20966         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20967         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20968
20969 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20970
20971         * math/math.h (isinf): Fix typo in comment.
20972
20973 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20974
20975         * po/da.po: Update from translation team.
20976
20977 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20978
20979         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20980         is added to the list.
20981
20982 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20983             Ulrich Drepper  <drepper@gmail.com>
20984
20985         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20986         the global list here.  Move code to...
20987         (_dl_add_to_namespace_list): ...here.  New function.
20988         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20989         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20990         * elf/dl-load.c (lose): Don't remove the element from the list.
20991         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20992         (_dl_map_object): Likewise.
20993
20994 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20995
20996         [BZ #12159]
20997         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20998         into all bytes of SSE register.
20999         Patch by Richard Li <richardpku@gmail.com>.
21000
21001 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21002
21003         [BZ #12140]
21004         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21005         perturbing.
21006
21007 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21008
21009         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21010         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21011         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21012         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21014         submachine.
21015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21016
21017 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21018
21019         * include/dlfcn.h (__RTLD_SECURE): Define.
21020         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21021         mode & __RTLD_SECURE instead.
21022         (open_path): Rename preloaded parameter to secure.
21023         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21024         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21025         * elf/dl-deps.c (openaux): Likewise.
21026         * elf/rtld.c (struct map_args): Remove is_preloaded.
21027         (map_doit): Don't use it.
21028         (dl_main): Likewise.
21029         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21030         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21031
21032 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21033
21034         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21035         (sysd-rules-targets): Remove duplicates.
21036         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21037         rtld-%.$o dependency.
21038
21039 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21040
21041         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21042         _dl_map_object do it.
21043
21044 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21045
21046         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21047         fast fma builtins, define the macros in the C99 standard.
21048         (FP_FAST_FMAF): Likewise.
21049         (FP_FAST_FMAL): Likewise.
21050         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21051
21052         * bits/mathdef.h: Update copyright year.
21053         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21054
21055 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21056
21057         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21058         builtins, define the macros in the C99 standard.
21059         (FP_FAST_FMAF): Likewise.
21060         (FP_FAST_FMAL): Likewise.
21061         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21062         multiply/add.
21063         (FP_FAST_FMAF): Likewise.
21064
21065 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21066
21067         [BZ #3268]
21068         * math/libm-test.inc (fma_test): Some new testcases.
21069         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21070         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21071         y and infinite z.  Do multiplication by C already in long double.
21072         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21073         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21074         y and infinite z.  Do bitwise or of inexact bit into u.d.
21075         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21076         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21077         * sysdeps/i386/fpu/s_fma.S: Removed.
21078         * sysdeps/i386/fpu/s_fmal.S: Removed.
21079
21080 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21081
21082         [BZ #3268]
21083         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21084         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21085         computation is not scheduled after fetestexcept.  Fix value
21086         of minimum denormal long double.
21087
21088 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21089
21090         [BZ #3268]
21091         * math/libm-test.inc (fma_test): Add some more tests.
21092         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21093         correctly.
21094
21095 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21096
21097         * scripts/data/localplt-s390-linux-gnu.data: New file.
21098         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21099
21100 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21101
21102         [BZ #3268]
21103         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21104         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21105         instead of dbl-64.
21106         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21107         inlines.
21108         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21110         if one of x and y is very large and the other is subnormal.
21111         * sysdeps/s390/fpu/s_fmaf.c: New file.
21112         * sysdeps/s390/fpu/s_fma.c: New file.
21113         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21114         * sysdeps/powerpc/fpu/s_fma.S: New file.
21115         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21116         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21117         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21118
21119 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21120
21121         [BZ #3268]
21122         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21123         fma tests.
21124         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21125         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21126         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21127         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21128         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21129         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21130         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21131
21132 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21133
21134         [BZ #12078]
21135         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21136         * posix/bug-regex31.input: Add test case.
21137
21138 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21139
21140         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21141         * posix/bug-regex31.input: New file.
21142
21143         [BZ #12078]
21144         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21145         (parse_sub_exp): Fix last change, use postorder.
21146
21147         * posix/bug-regex31.c: New file.
21148         * posix/Makefile: Add rules to build and run bug-regex31.
21149
21150         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21151
21152         [BZ #12078]
21153         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21154
21155         [BZ #12108]
21156         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21157         to have entries in sys_siglist.
21158
21159         [BZ #12093]
21160         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21161         be NULL.
21162
21163 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21164
21165         [BZ #3268]
21166         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21167         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21168         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21169         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21170         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21171         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21172         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21173         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21174         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21175         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21176         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21177         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21178         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21179         * math/ftestexcept.c (fetestexcept): Likewise.
21180         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21181         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21182         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21183         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21184         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21185         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21186         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21187
21188 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21189
21190         [BZ #12107]
21191         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21192         newline.
21193
21194 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21195
21196         * string/bug-strstr1.c: New file.
21197         * string/Makefile: Add rules to build and run bug-strstr1.
21198
21199 2010-10-05  Eric Blake  <eblake@redhat.com>
21200
21201         [BZ #12092]
21202         * string/str-two-way.h (two_way_long_needle): Always clear memory
21203         when skipping input due to the shift table.
21204
21205 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21206
21207         [BZ #12005]
21208         * malloc/mcheck.c: Handle large requests.
21209
21210         [BZ #12077]
21211         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21212         for strncmp and strncasecmp.
21213         * string/stratcliff.c: Add tests for strcmp and strncmp.
21214         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21215
21216 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21217
21218         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21219         __set_fpscr.
21220
21221 2010-09-30  Andreas Jaeger  <aj@suse.de>
21222
21223         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21224         (CGROUP_SUPER_MAGIC): Define.
21225         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21226         Handle btrfs and cgroup file systems.
21227         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21228         Likewise.
21229
21230 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21231
21232         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21233         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21234
21235 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21236
21237         [BZ #12067]
21238         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21239         trying to locate the ELF header.
21240
21241 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21242
21243         [BZ #11611]
21244         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21245         Mask out sign-bit copies when constructing f_fsid.
21246
21247 2010-09-24  Petr Baudis <pasky@suse.cz>
21248
21249         * debug/stack_chk_fail_local.c: Add missing licence exception.
21250         * debug/warning-nop.c: Likewise.
21251
21252 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21253
21254         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21255         implementing getdents64 using getdents syscall, set d_type if
21256         __ASSUME_GETDENTS32_D_TYPE.
21257
21258 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21259
21260         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21261         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21262
21263 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21264
21265         [BZ #12037]
21266         * posix/unistd.h: Undo change of feature selection for ftruncate from
21267         2010-01-11.
21268
21269 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21270
21271         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21272         detection.
21273
21274 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21275
21276         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21277         fanotify_mark.
21278         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21279
21280 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21281
21282         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21283         variables after CHECK_SP call.
21284         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21285
21286 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21287             Ulrich Drepper  <drepper@redhat.com>
21288
21289         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21290         re-relocationg ld.so.
21291         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21292         _dl_init_paths call.
21293         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21294         here anymore.
21295
21296 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21297
21298         * resolv/res_init.c (__res_vinit): Count the default server we added.
21299
21300 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21301             Ulrich Drepper  <drepper@redhat.com>
21302
21303         [BZ #11968]
21304         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21305         (____longjmp_chk): Use %ebx for saving value across system call.
21306         Add unwind info.
21307
21308 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21309
21310         * manual/Makefile: Don't mix pattern rules with normal rules.
21311
21312 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21313
21314         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21315         operation.
21316         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21317         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21318         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21319         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21320         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21321         Likewise.
21322
21323 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21324
21325         [BZ #11979]
21326         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21327         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21328
21329 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21330
21331         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21332         * sysdeps/x86_64/addmul_1.S: Likewise.
21333         * sysdeps/x86_64/lshift.S: Likewise.
21334         * sysdeps/x86_64/mul_1.S: Likewise.
21335         * sysdeps/x86_64/rshift.S: Likewise.
21336         * sysdeps/x86_64/sub_n.S: Likewise.
21337         * sysdeps/x86_64/submul_1.S: Likewise.
21338
21339 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21340
21341         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21342         Define __sched_param instead of SCHED_* and sched_param when
21343         <bits/sched.h> is included with __need_schedparam defined.
21344         * bits/sched.h [__need_schedparam]
21345         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21346         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21347         (__defined_schedparam): Define to 1.
21348         (__sched_param): New structure, identical to sched_param.
21349         (__need_schedparam): Undefine.
21350
21351 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21352
21353         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21354         (epoll_create1): Declare.
21355
21356         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21357
21358 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21359
21360         [BZ #7066]
21361         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21362         shifting retval into place.
21363
21364 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21365
21366         * nis/rpcsvc/nis.h: Update copyright notice.
21367         * nis/rpcsvc/nis.x: Likewise.
21368         * nis/rpcsvc/nis_callback.h: Likewise.
21369         * nis/rpcsvc/nis_callback.x: Likewise.
21370         * nis/rpcsvc/nis_object.x: Likewise.
21371         * nis/rpcsvc/nis_tags.h: Likewise.
21372         * nis/rpcsvc/yp.h: Likewise.
21373         * nis/rpcsvc/yp.x: Likewise.
21374         * nis/rpcsvc/ypupd.h: Likewise.
21375         * nis/yp_xdr.c: Likewise.
21376         * nis/ypupdate_xdr.c: Likewise.
21377
21378         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21379         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21380         (pmap_getport): Use __libc_rpc_getport.
21381         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21382         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21383         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21384
21385 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21386
21387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21388         fanotify_mark.
21389
21390 2010-08-27  Roland McGrath  <roland@redhat.com>
21391
21392         * sysdeps/i386/i686/multiarch/Makefile
21393         (CFLAGS-varshift.c): New variable.
21394
21395 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21396
21397         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21398         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21399
21400         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21401
21402         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21403
21404 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21405
21406         * sysdeps/x86_64/strlen.S: Unroll the loop.
21407         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21408         strlen-sse2 strlen-sse2-bsf.
21409         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21410         __strlen_no_bsf if bit_Slow_BSF is set.
21411         (__strlen_sse42): Removed.
21412         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21413         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21414
21415 2010-08-25  Roland McGrath  <roland@redhat.com>
21416
21417         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21418         * sysdeps/x86_64/multiarch/varshift.c: New file.
21419         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21420         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21421         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21422         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21423
21424 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21425
21426         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21427         strlen-sse2 strlen-sse2-bsf.
21428         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21429         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21430         (__strlen_sse2): Removed.
21431         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21432         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21433         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21434         bit_Slow_BSF for Atom.
21435         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21436         (index_Slow_BSF): Define.
21437         (HAS_SLOW_BSF): Define.
21438
21439 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21440
21441         [BZ #10851]
21442         * resolv/res_init.c (__res_vinit): When no server address at all
21443         is given default to loopback.
21444
21445 2010-08-24  Roland McGrath  <roland@redhat.com>
21446
21447         * configure.in: Remove config-name.h generation.
21448         * configure: Regenerated.
21449         * config-name.in: File removed.
21450         * scripts/config-uname.sh: New file.
21451         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21452         ($(objdir)config-name.h): New target.
21453
21454         * sunrpc/rpc_parse.h: Avoid nested comment.
21455
21456 2010-08-24  Richard Henderson  <rth@redhat.com>
21457             Ulrich Drepper  <drepper@redhat.com>
21458             H.J. Lu  <hongjiu.lu@intel.com>
21459
21460         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21461         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21462         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21463         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21464         _mm_alignr_epi8 with _mm_loadu_si128.
21465         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21466         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21467         (__m128i_shift_right): Removed.
21468         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21469         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21470         * sysdeps/x86_64/multiarch/varshift.h: New file.
21471         * sysdeps/x86_64/multiarch/varshift.S: New file.
21472
21473 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21474
21475         * configure.in: Move assembler checks to before sysdep dir checking.
21476
21477 2010-08-20  Petr Baudis  <pasky@suse.cz>
21478
21479         * LICENSES: Sync the sunrpc license.
21480
21481 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21482
21483         * sunrpc/auth_des.c: Update copyright notice once again.
21484         * sunrpc/auth_none.c: Likewise.
21485         * sunrpc/auth_unix.c: Likewise.
21486         * sunrpc/authdes_prot.c: Likewise.
21487         * sunrpc/authuxprot.c: Likewise.
21488         * sunrpc/bindrsvprt.c: Likewise.
21489         * sunrpc/clnt_gen.c: Likewise.
21490         * sunrpc/clnt_perr.c: Likewise.
21491         * sunrpc/clnt_raw.c: Likewise.
21492         * sunrpc/clnt_simp.c: Likewise.
21493         * sunrpc/clnt_tcp.c: Likewise.
21494         * sunrpc/clnt_udp.c: Likewise.
21495         * sunrpc/clnt_unix.c: Likewise.
21496         * sunrpc/des_crypt.c: Likewise.
21497         * sunrpc/des_soft.c: Likewise.
21498         * sunrpc/get_myaddr.c: Likewise.
21499         * sunrpc/getrpcport.c: Likewise.
21500         * sunrpc/key_call.c: Likewise.
21501         * sunrpc/key_prot.c: Likewise.
21502         * sunrpc/openchild.c: Likewise.
21503         * sunrpc/pm_getmaps.c: Likewise.
21504         * sunrpc/pm_getport.c: Likewise.
21505         * sunrpc/pmap_clnt.c: Likewise.
21506         * sunrpc/pmap_prot.c: Likewise.
21507         * sunrpc/pmap_prot2.c: Likewise.
21508         * sunrpc/pmap_rmt.c: Likewise.
21509         * sunrpc/rpc/auth.h: Likewise.
21510         * sunrpc/rpc/auth_unix.h: Likewise.
21511         * sunrpc/rpc/clnt.h: Likewise.
21512         * sunrpc/rpc/des_crypt.h: Likewise.
21513         * sunrpc/rpc/key_prot.h: Likewise.
21514         * sunrpc/rpc/netdb.h: Likewise.
21515         * sunrpc/rpc/pmap_clnt.h: Likewise.
21516         * sunrpc/rpc/pmap_prot.h: Likewise.
21517         * sunrpc/rpc/pmap_rmt.h: Likewise.
21518         * sunrpc/rpc/rpc.h: Likewise.
21519         * sunrpc/rpc/rpc_des.h: Likewise.
21520         * sunrpc/rpc/rpc_msg.h: Likewise.
21521         * sunrpc/rpc/svc.h: Likewise.
21522         * sunrpc/rpc/svc_auth.h: Likewise.
21523         * sunrpc/rpc/types.h: Likewise.
21524         * sunrpc/rpc/xdr.h: Likewise.
21525         * sunrpc/rpc_clntout.c: Likewise.
21526         * sunrpc/rpc_cmsg.c: Likewise.
21527         * sunrpc/rpc_common.c: Likewise.
21528         * sunrpc/rpc_cout.c: Likewise.
21529         * sunrpc/rpc_dtable.c: Likewise.
21530         * sunrpc/rpc_hout.c: Likewise.
21531         * sunrpc/rpc_main.c: Likewise.
21532         * sunrpc/rpc_parse.c: Likewise.
21533         * sunrpc/rpc_parse.h: Likewise.
21534         * sunrpc/rpc_prot.c: Likewise.
21535         * sunrpc/rpc_sample.c: Likewise.
21536         * sunrpc/rpc_scan.c: Likewise.
21537         * sunrpc/rpc_scan.h: Likewise.
21538         * sunrpc/rpc_svcout.c: Likewise.
21539         * sunrpc/rpc_tblout.c: Likewise.
21540         * sunrpc/rpc_util.c: Likewise.
21541         * sunrpc/rpc_util.h: Likewise.
21542         * sunrpc/rpcinfo.c: Likewise.
21543         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21544         * sunrpc/rpcsvc/key_prot.x: Likewise.
21545         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21546         * sunrpc/rpcsvc/mount.x: Likewise.
21547         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21548         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21549         * sunrpc/rpcsvc/rex.x: Likewise.
21550         * sunrpc/rpcsvc/rstat.x: Likewise.
21551         * sunrpc/rpcsvc/rusers.x: Likewise.
21552         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21553         * sunrpc/rpcsvc/spray.x: Likewise.
21554         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21555         * sunrpc/rtime.c: Likewise.
21556         * sunrpc/svc.c: Likewise.
21557         * sunrpc/svc_auth.c: Likewise.
21558         * sunrpc/svc_authux.c: Likewise.
21559         * sunrpc/svc_raw.c: Likewise.
21560         * sunrpc/svc_run.c: Likewise.
21561         * sunrpc/svc_simple.c: Likewise.
21562         * sunrpc/svc_tcp.c: Likewise.
21563         * sunrpc/svc_udp.c: Likewise.
21564         * sunrpc/svc_unix.c: Likewise.
21565         * sunrpc/svcauth_des.c: Likewise.
21566         * sunrpc/xcrypt.c: Likewise.
21567         * sunrpc/xdr.c: Likewise.
21568         * sunrpc/xdr_array.c: Likewise.
21569         * sunrpc/xdr_float.c: Likewise.
21570         * sunrpc/xdr_mem.c: Likewise.
21571         * sunrpc/xdr_rec.c: Likewise.
21572         * sunrpc/xdr_ref.c: Likewise.
21573         * sunrpc/xdr_sizeof.c: Likewise.
21574         * sunrpc/xdr_stdio.c: Likewise.
21575
21576         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21577         handling.
21578
21579 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21580
21581         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21582
21583 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21584
21585         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21586         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21587         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21588         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21589         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21590         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21591         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21592         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21593         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21594         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21595         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21596         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21597         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21598         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21599
21600 2010-07-26  Anton Blanchard  <anton@samba.org>
21601
21602         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21603         * malloc/arena.c (heap_trim): Likewise.
21604
21605 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21606
21607         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21608         here.  Not...
21609         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21610         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21611
21612 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21613
21614         * sysdeps/i386/elf/Makefile: New file.
21615
21616 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21617
21618         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21619         from fanotify_init.
21620         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21621         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21622
21623 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21624
21625         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21626         of strncasecmp_l.
21627         * sysdeps/multiarch/strcmp.S: Likewise.
21628
21629 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21630
21631         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21632         strncase_l-nonascii.
21633         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21634         Add strncase_l-ssse3.
21635         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21636         * sysdeps/x86_64/strcmp.S: Likewise.
21637         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21638         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21639         * sysdeps/x86_64/strncase.S: New file.
21640         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21641         * sysdeps/x86_64/strncase_l.S: New file.
21642         * string/Makefile (strop-tests): Add strncasecmp.
21643         * string/test-strncasecmp.c: New file.
21644
21645         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21646         warning.
21647
21648         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21649         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21650
21651 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21652
21653         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21654
21655 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21656
21657         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21658         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21659         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21660
21661 2010-05-01  Alan Modra  <amodra@gmail.com>
21662
21663         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21664         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21665         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21666         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21667         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21668         tidying.  Don't tail-call __sigjmp_save for static lib.
21669         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21670         save location.
21671         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21672         (CALL_MCOUNT): Add eh info, and nop after bl.
21673         (TAIL_CALL_SYSCALL_ERROR): New macro.
21674         (PSEUDO_RET): Use it.
21675         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21676         Correct save location of integer regs and cr.
21677         (_dl_profile_resolve): Correct cr save location.  Delete nops
21678         after bl when SHARED.  Reduce cfi size a little by better
21679         placement of cfi directives.
21680         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21681         make a stack frame.  Instead use parm save area as a temp.
21682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21683         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21685         Don't make a stack frame for parent, use parm save area.
21686         Increase child stack frame to 112 bytes.  Don't save unused reg,
21687         and adjust reg usage.  Set up cfi on error recovery and
21688         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21690         (__makecontext): Add dummy nop after jump to exit.
21691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21692         Use correct parm save area and cr save, reduce stack frame.
21693         Correct cfi for possible PSEUDO_RET frame setup.
21694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21695         Branch to local label emitted by PSEUDO_RET rather than
21696         __syscall_error.
21697
21698 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21699
21700         [BZ #11904]
21701         * locale/programs/locale.c (print_assignment): New function.
21702         (show_locale_vars): Use it.
21703
21704 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21705
21706         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21707         field.
21708         (struct statfs64): Likewise.
21709         (_STATFS_F_FLAGS): Define.
21710         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21711         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21712         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21713         (ST_VALID): Define locally.
21714         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21715         __statvfs_getflags, use the provided value.
21716         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21717         __ASSUME_STATFS_F_FLAGS.
21718
21719         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21720
21721         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21722         Add sys/fanotify.h.
21723         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21724         fanotify_mask for GLIBC_2.13.
21725         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21726         fanotify_init and fanotify_mark.
21727         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21728         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21729
21730         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21731         Add prlimit.
21732         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21733         prlimit64 for GLIBC_2.13.
21734         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21735         prlimit64.
21736         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21737         syscall.
21738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21739         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21740         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21741         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21742         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21743         add prlimit alias.
21744         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21745
21746         [BZ #11903]
21747         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21748         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21749
21750         * nss/Makefile: Add rules to build and run tst-nss-test1.
21751         * shlib-versions: Add entry for libnss_test1.
21752         * nss/nss_test1.c: New file.
21753         * nss/tst-nss-test1.c: New file.
21754
21755         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21756         (__nss_configure_lookup): Set appropriate entry in
21757         __nss_configure_lookup to true.
21758         * nss/nsswitch.h: Define enum with indeces of databases in
21759         databases and __nss_database_custom arrays.  Declare
21760         __nss_database_custom.
21761         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21762         to avoid using nscd when custom rules are installed.
21763         * nss/getXXbyYY_r.c: Likewise.
21764         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21765
21766         * nss/nss_files/files-parse.c: Whitespace fixes.
21767
21768 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21769
21770         [BZ #11883]
21771         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21772         * posix/fnmatch_loop.c: Likewise.
21773
21774 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21775
21776         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21777         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21778         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21779         * Versions.def [GLIBC_2.13]: Add.
21780
21781 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21782
21783         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21784         Also fail if tpwd after pwuid call is NULL.
21785
21786 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21787
21788         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21789         when converting to ms.
21790
21791 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21792
21793         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21794         EOPNOTSUPP errors with ENOTTY.
21795         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21796         EOPNOTSUPP errors with ENOTTY.
21797
21798 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21799
21800         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21801         Add strcasecmp_l-ssse3.
21802         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21803         strcasecmp.
21804         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21805         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21806         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21807
21808 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21809
21810         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21811
21812         * string/Makefile (strop-tests): Add strcasecmp.
21813         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21814         strcasecmp_l-nonascii.
21815         (gen-as-const-headers): Add locale-defines.sym.
21816         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21817         * sysdeps/x86_64/strcasecmp.S: New file.
21818         * sysdeps/x86_64/strcasecmp_l.S: New file.
21819         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21820         * sysdeps/x86_64/locale-defines.sym: New file.
21821         * string/test-strcasecmp.c: New file.
21822
21823         * string/test-strcasestr.c: Test both ends of the range of characters.
21824         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21825
21826 2010-07-29  Roland McGrath  <roland@redhat.com>
21827
21828         [BZ #11856]
21829         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21830
21831 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21832
21833         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21834         for ld.so.
21835
21836 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21837
21838         * manual/memory.texi (Malloc Tunable Parameters): Document
21839         M_PERTURB.
21840
21841 2010-07-26  Roland McGrath  <roland@redhat.com>
21842
21843         [BZ #11840]
21844         * configure.in (-fgnu89-inline check): Set and substitute
21845         gnu89_inline, not libc_cv_gnu89_inline.
21846         * configure: Regenerated.
21847         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21848
21849 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21850
21851         * string/test-strnlen.c: New file.
21852         * string/Makefile (strop-tests): Add strnlen.
21853         * string/tester.c (test_strnlen): Add a few more test cases.
21854         * string/tst-strlen.c: Better error reporting.
21855
21856         * sysdeps/x86_64/strnlen.S: New file.
21857
21858 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21859
21860         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21861         lower-latency instructions.
21862
21863 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21864
21865         * string/test-strcasestr.c: New file.
21866         * string/test-strstr.c: New file.
21867         * string/Makefile (strop-tests): Add strstr and strcasestr.
21868         * string/str-two-way.h: Don't undefine MAX.
21869         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21870
21871 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21872
21873         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21874         strcasestr-nonascii.
21875         (CFLAGS-strcasestr-nonascii.c): Define.
21876         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21877         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21878         Remove unused attribute.
21879
21880 2010-07-20  Roland McGrath  <roland@redhat.com>
21881
21882         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21883         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21884         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21885         like LD_HWCAP_MASK can disable hwcaps.
21886
21887 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21888
21889         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21890
21891 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21892
21893         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21894         call in strcasestr.
21895         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21896         __strcasestr_sse42_nonascii.
21897         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21898         strcasestr-nonascii.c.
21899         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21900
21901 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21902
21903         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21904         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21905         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21906         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21907
21908 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21909
21910         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21911         fcntl.
21912
21913 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21914
21915         [BZ #11577]
21916         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21917         dl_signal_cerror.
21918
21919 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21920
21921         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21922         _PC_PIPE_BUF using F_GETPIPE_SZ.
21923
21924 2010-07-05  Roland McGrath  <roland@redhat.com>
21925
21926         * manual/arith.texi (Rounding Functions): Fix rint description
21927         implicit in round description.
21928
21929 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21930
21931         * elf/Makefile: Fix linking for a few tests to make recent linker
21932         happy.
21933
21934 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21935
21936         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21937         $(common-objpfx)libc_nonshared.a.
21938
21939 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21940
21941         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21942         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21943         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21944         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21945         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21946         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21947         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21948         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21963         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21964         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21965         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21966         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21967         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21968         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21969         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21970         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21971         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21972         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21973         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21974         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21989
21990 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21991
21992         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21993         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21994         * string/memmove.c (memmove): Renamed to ...
21995         (MEMMOVE): ...this.  Default to memmove.
21996         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21997         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21998         (END_CHK): Define.
21999         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22000         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22001         mempcpy-ssse3-back memmove-ssse3-back.
22002         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22003         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22004         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22005         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22006         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22007         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22008         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22009         * sysdeps/x86_64/multiarch/memmove.c: New file.
22010         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22011         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22012         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22013         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22014         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22015         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22016         Define.
22017         (index_Fast_Copy_Backward): Define.
22018         (HAS_ARCH_FEATURE): Define.
22019         (HAS_FAST_REP_STRING): Define.
22020         (HAS_FAST_COPY_BACKWARD): Define.
22021
22022 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22023
22024         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22025         Restore proper fallback handling.
22026
22027 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22028
22029         [BZ #11701]
22030         * posix/group_member.c (__group_member): Correct checking loop.
22031
22032         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22033         OOM in getpwuid_r correctly.  Return error number when the caller
22034         should return, otherwise -1.
22035         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22036         call returning > 0 value.
22037         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22038
22039 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22040
22041         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22042         libc_nonshared.a from targets in modules-names.
22043
22044 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22045
22046         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22047         requires it.
22048
22049 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22050
22051         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22052         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22053         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22054         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22055
22056 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22057
22058         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22059
22060 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22061
22062         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22063         and F_GETPIPE_SZ.
22064         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22066         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22067         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22068         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22069         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22070
22071 2010-06-14  Roland McGrath  <roland@redhat.com>
22072
22073         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22074
22075 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22076
22077         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22078         __REDIRECT followed by __THROW.
22079         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22080         * posix/getopt.h (getopt): Likewise.
22081
22082 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22083
22084         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22085         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22086         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22087         in AT_FLAGS.
22088         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22089         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22090
22091 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22092
22093         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22094
22095 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22096
22097         [BZ #11640]
22098         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22099         Properly check family and model.
22100
22101 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22102
22103         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22104
22105 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22106
22107         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22108
22109 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22110
22111         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22112         symbol reference.
22113
22114 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22115
22116         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22117         symbol reference.
22118
22119 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22120
22121         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22122         and internal_recvmmsg.
22123         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22124         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22125         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22126         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22127
22128         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22129         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22130         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22131
22132 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22133
22134         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22135
22136 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22137
22138         POWER7 optimizations.
22139         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22140         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22141
22142 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22143
22144         * version.h: Update for 2.13 development version.
22145
22146 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22147
22148         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22149         exceptions.  Return 0.
22150
22151 2010-05-07  Roland McGrath  <roland@redhat.com>
22152
22153         * elf/ldconfig.c (main): Add a const.
22154
22155 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22156
22157         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22158         (args_options): Add no-idn option.
22159         (ahosts_keys_int): Add idn_flags to ai_flags.
22160         (parse_option): Handle 'i' option to clear idn_flags.
22161
22162         * malloc/malloc.c (_int_free): Possible race in the most recently
22163         added check.  Only act on the data if no current modification
22164         happened.
22165
22166 See ChangeLog.17 for earlier changes.