Update tzcode to 2012i.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
2
3         * timezone/checktab.awk: Update from tzcode 2012i.
4         * timezone/ialloc.c: Likewise.
5         * timezone/private.h: Likewise.
6         * timezone/scheck.c: Likewise.
7         * timezone/tzfile.h: Likewise.
8         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
9         (TZVERSION): Hardcode tzcode version number.
10         * timezone/zdump.c: Update from tzcode 2012i.
11         * timezone/zic.c: Likewise.
12         * timezone/version.h: New file.
13         * timezone/README: Describe version.h.  Update upstream location.
14
15         [BZ #14824]
16         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
17         (mktemp): Enable declaration.
18         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
19         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
20         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
21         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
22         Likewise.
23         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24         Likewise.
25         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
26         Likewise.
27         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
28         Likewise.
29         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
30         Likewise.
31         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
32         Likewise.
33
34         [BZ #14821]
35         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
36         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
37         for copies of such integer values.
38         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
39         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
40
41 2012-11-09  Andreas Jaeger  <aj@suse.de>
42
43         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
44         definitions and declarations that are provided by
45         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
46
47 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48
49         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
50         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
51         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
52         definition.
53
54 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55
56         * elf/elf.h: Update comment before AArch64 relocations.
57
58 2012-11-07  David S. Miller  <davem@davemloft.net>
59
60         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
62         (__start_context): Declare.
63         (__makecontext_ret): Delete.
64         (__makecontext): Hook up __start_context instead of
65         __makecontext_ret.
66         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
67         (sysdep_routines): Add __start_context when in stdlib.
68
69 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
70
71         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
72         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
73         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
74         hardcoded "nm".
75         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
76         (READELF): New variable.  Use it instead of hardcoded "readelf".
77
78 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
79
80         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
81         * sysdeps/x86/Makefile: Here.
82         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
83         * sysdeps/x86/tst-xmmymm.sh: This.
84
85 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
86
87         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
88         expectations.
89         [UNIX98] (pthread_barrier_t): Do not expect.
90         [UNIX98] (pthread_barrierattr_t): Likewise.
91         [UNIX98] (pthread_spinlock_t): Likewise.
92         [UNIX98] (pthread_barrier_destroy): Likewise.
93         [UNIX98] (pthread_barrier_init): Likewise.
94         [UNIX98] (pthread_barrier_wait): Likewise.
95         [UNIX98] (pthread_barrierattr_destroy): Likewise.
96         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
97         [UNIX98] (pthread_barrierattr_init): Likewise.
98         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
99         [UNIX98] (pthread_getcpuclockid): Likewise.
100         [UNIX98] (pthread_mutex_timedlock): Likewise.
101         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
102         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
103         [UNIX98] (pthread_sigmask): Likewise.
104         [UNIX98] (pthread_spin_destroy): Likewise.
105         [UNIX98] (pthread_spin_init): Likewise.
106         [UNIX98] (pthread_spin_lock): Likewise.
107         [UNIX98] (pthread_spin_trylock): Likewise.
108         [UNIX98] (pthread_spin_unlock): Likewise.
109         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
110         Do not expect.
111         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
112         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
113         [XPG3 || XPG4] (pthread_cond_t): Likewise.
114         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
115         [XPG3 || XPG4] (pthread_key_t): Likewise.
116         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
117         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
118         [XPG3 || XPG4] (pthread_once_t): Likewise.
119         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
120         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
121         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
122         [XPG3 || XPG4] (pthread_t): Likewise.
123
124         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
125         not expect.
126         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
127
128         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
129         Change function return type to int.
130
131         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
132         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
133         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
134         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
135         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
136         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
137         [!POSIX] (posix_madvise): Likewise.
138         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
139         && !UNIX98].
140         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
141         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
142         (mode_t): Likewise.
143         (posix_mem_offset): Likewise.
144         (posix_typed_mem_get_info): Likewise.
145         (posix_typed_mem_open): Likewise.
146
147         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
148         Change condition to [XOPEN2K8].
149
150         * conform/conformtest.pl: Preprocess allow-header data with -x c
151         instead of from stdin.
152         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
153         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
154         [C99-based standards] (cerfc): Likewise.
155         [C99-based standards] (cexp2): Likewise.
156         [C99-based standards] (cexpm1): Likewise.
157         [C99-based standards] (clog10): Likewise.
158         [C99-based standards] (clog1p): Likewise.
159         [C99-based standards] (clog2): Likewise.
160         [C99-based standards] (clgamma): Likewise.
161         [C99-based standards] (ctgamma): Likewise.
162         [C99-based standards] (cerff): Likewise.
163         [C99-based standards] (cerfcf): Likewise.
164         [C99-based standards] (cexp2f): Likewise.
165         [C99-based standards] (cexpm1f): Likewise.
166         [C99-based standards] (clog10f): Likewise.
167         [C99-based standards] (clog1pf): Likewise.
168         [C99-based standards] (clog2f): Likewise.
169         [C99-based standards] (clgammaf): Likewise.
170         [C99-based standards] (ctgammaf): Likewise.
171         [C99-based standards] (cerfl): Likewise.
172         [C99-based standards] (cerfcl): Likewise.
173         [C99-based standards] (cexp2l): Likewise.
174         [C99-based standards] (cexpm1l): Likewise.
175         [C99-based standards] (clog10l): Likewise.
176         [C99-based standards] (clog1pl): Likewise.
177         [C99-based standards] (clog2l): Likewise.
178         [C99-based standards] (clgammal): Likewise.
179         [C99-based standards] (ctgammal): Likewise.
180         * conform/data/inttypes.h-data [C99-based standards]: Include
181         stdint.h-data.  Remove all expectations for stdint.h contents.
182         [C99-based standards] (PRI*): Do not allow.
183         [C99-based standards] (SCN*): Likewise.
184         [C99-based standards] (*_t): Likewise.
185         [C99-based-standards] (PRId8): Expect macro.
186         [C99-based-standards] (PRIi8): Likewise.
187         [C99-based-standards] (PRIo8): Likewise.
188         [C99-based-standards] (PRIu8): Likewise.
189         [C99-based-standards] (PRIx8): Likewise.
190         [C99-based-standards] (PRIX8): Likewise.
191         [C99-based-standards] (SCNd8): Likewise.
192         [C99-based-standards] (SCNi8): Likewise.
193         [C99-based-standards] (SCNo8): Likewise.
194         [C99-based-standards] (SCNu8): Likewise.
195         [C99-based-standards] (SCNx8): Likewise.
196         [C99-based-standards] (PRIdLEAST8): Likewise.
197         [C99-based-standards] (PRIiLEAST8): Likewise.
198         [C99-based-standards] (PRIoLEAST8): Likewise.
199         [C99-based-standards] (PRIuLEAST8): Likewise.
200         [C99-based-standards] (PRIxLEAST8): Likewise.
201         [C99-based-standards] (PRIXLEAST8): Likewise.
202         [C99-based-standards] (SCNdLEAST8): Likewise.
203         [C99-based-standards] (SCNiLEAST8): Likewise.
204         [C99-based-standards] (SCNoLEAST8): Likewise.
205         [C99-based-standards] (SCNuLEAST8): Likewise.
206         [C99-based-standards] (SCNxLEAST8): Likewise.
207         [C99-based-standards] (PRIdFAST8): Likewise.
208         [C99-based-standards] (PRIiFAST8): Likewise.
209         [C99-based-standards] (PRIoFAST8): Likewise.
210         [C99-based-standards] (PRIuFAST8): Likewise.
211         [C99-based-standards] (PRIxFAST8): Likewise.
212         [C99-based-standards] (PRIXFAST8): Likewise.
213         [C99-based-standards] (SCNdFAST8): Likewise.
214         [C99-based-standards] (SCNiFAST8): Likewise.
215         [C99-based-standards] (SCNoFAST8): Likewise.
216         [C99-based-standards] (SCNuFAST8): Likewise.
217         [C99-based-standards] (SCNxFAST8): Likewise.
218         [C99-based-standards] (PRId16): Likewise.
219         [C99-based-standards] (PRIi16): Likewise.
220         [C99-based-standards] (PRIo16): Likewise.
221         [C99-based-standards] (PRIu16): Likewise.
222         [C99-based-standards] (PRIx16): Likewise.
223         [C99-based-standards] (PRIX16): Likewise.
224         [C99-based-standards] (SCNd16): Likewise.
225         [C99-based-standards] (SCNi16): Likewise.
226         [C99-based-standards] (SCNo16): Likewise.
227         [C99-based-standards] (SCNu16): Likewise.
228         [C99-based-standards] (SCNx16): Likewise.
229         [C99-based-standards] (PRIdLEAST16): Likewise.
230         [C99-based-standards] (PRIiLEAST16): Likewise.
231         [C99-based-standards] (PRIoLEAST16): Likewise.
232         [C99-based-standards] (PRIuLEAST16): Likewise.
233         [C99-based-standards] (PRIxLEAST16): Likewise.
234         [C99-based-standards] (PRIXLEAST16): Likewise.
235         [C99-based-standards] (SCNdLEAST16): Likewise.
236         [C99-based-standards] (SCNiLEAST16): Likewise.
237         [C99-based-standards] (SCNoLEAST16): Likewise.
238         [C99-based-standards] (SCNuLEAST16): Likewise.
239         [C99-based-standards] (SCNxLEAST16): Likewise.
240         [C99-based-standards] (PRIdFAST16): Likewise.
241         [C99-based-standards] (PRIiFAST16): Likewise.
242         [C99-based-standards] (PRIoFAST16): Likewise.
243         [C99-based-standards] (PRIuFAST16): Likewise.
244         [C99-based-standards] (PRIxFAST16): Likewise.
245         [C99-based-standards] (PRIXFAST16): Likewise.
246         [C99-based-standards] (SCNdFAST16): Likewise.
247         [C99-based-standards] (SCNiFAST16): Likewise.
248         [C99-based-standards] (SCNoFAST16): Likewise.
249         [C99-based-standards] (SCNuFAST16): Likewise.
250         [C99-based-standards] (SCNxFAST16): Likewise.
251         [C99-based-standards] (PRId32): Likewise.
252         [C99-based-standards] (PRIi32): Likewise.
253         [C99-based-standards] (PRIo32): Likewise.
254         [C99-based-standards] (PRIu32): Likewise.
255         [C99-based-standards] (PRIx32): Likewise.
256         [C99-based-standards] (PRIX32): Likewise.
257         [C99-based-standards] (SCNd32): Likewise.
258         [C99-based-standards] (SCNi32): Likewise.
259         [C99-based-standards] (SCNo32): Likewise.
260         [C99-based-standards] (SCNu32): Likewise.
261         [C99-based-standards] (SCNx32): Likewise.
262         [C99-based-standards] (PRIdLEAST32): Likewise.
263         [C99-based-standards] (PRIiLEAST32): Likewise.
264         [C99-based-standards] (PRIoLEAST32): Likewise.
265         [C99-based-standards] (PRIuLEAST32): Likewise.
266         [C99-based-standards] (PRIxLEAST32): Likewise.
267         [C99-based-standards] (PRIXLEAST32): Likewise.
268         [C99-based-standards] (SCNdLEAST32): Likewise.
269         [C99-based-standards] (SCNiLEAST32): Likewise.
270         [C99-based-standards] (SCNoLEAST32): Likewise.
271         [C99-based-standards] (SCNuLEAST32): Likewise.
272         [C99-based-standards] (SCNxLEAST32): Likewise.
273         [C99-based-standards] (PRIdFAST32): Likewise.
274         [C99-based-standards] (PRIiFAST32): Likewise.
275         [C99-based-standards] (PRIoFAST32): Likewise.
276         [C99-based-standards] (PRIuFAST32): Likewise.
277         [C99-based-standards] (PRIxFAST32): Likewise.
278         [C99-based-standards] (PRIXFAST32): Likewise.
279         [C99-based-standards] (SCNdFAST32): Likewise.
280         [C99-based-standards] (SCNiFAST32): Likewise.
281         [C99-based-standards] (SCNoFAST32): Likewise.
282         [C99-based-standards] (SCNuFAST32): Likewise.
283         [C99-based-standards] (SCNxFAST32): Likewise.
284         [C99-based-standards] (PRId64): Likewise.
285         [C99-based-standards] (PRIi64): Likewise.
286         [C99-based-standards] (PRIo64): Likewise.
287         [C99-based-standards] (PRIu64): Likewise.
288         [C99-based-standards] (PRIx64): Likewise.
289         [C99-based-standards] (PRIX64): Likewise.
290         [C99-based-standards] (SCNd64): Likewise.
291         [C99-based-standards] (SCNi64): Likewise.
292         [C99-based-standards] (SCNo64): Likewise.
293         [C99-based-standards] (SCNu64): Likewise.
294         [C99-based-standards] (SCNx64): Likewise.
295         [C99-based-standards] (PRIdLEAST64): Likewise.
296         [C99-based-standards] (PRIiLEAST64): Likewise.
297         [C99-based-standards] (PRIoLEAST64): Likewise.
298         [C99-based-standards] (PRIuLEAST64): Likewise.
299         [C99-based-standards] (PRIxLEAST64): Likewise.
300         [C99-based-standards] (PRIXLEAST64): Likewise.
301         [C99-based-standards] (SCNdLEAST64): Likewise.
302         [C99-based-standards] (SCNiLEAST64): Likewise.
303         [C99-based-standards] (SCNoLEAST64): Likewise.
304         [C99-based-standards] (SCNuLEAST64): Likewise.
305         [C99-based-standards] (SCNxLEAST64): Likewise.
306         [C99-based-standards] (PRIdFAST64): Likewise.
307         [C99-based-standards] (PRIiFAST64): Likewise.
308         [C99-based-standards] (PRIoFAST64): Likewise.
309         [C99-based-standards] (PRIuFAST64): Likewise.
310         [C99-based-standards] (PRIxFAST64): Likewise.
311         [C99-based-standards] (PRIXFAST64): Likewise.
312         [C99-based-standards] (SCNdFAST64): Likewise.
313         [C99-based-standards] (SCNiFAST64): Likewise.
314         [C99-based-standards] (SCNoFAST64): Likewise.
315         [C99-based-standards] (SCNuFAST64): Likewise.
316         [C99-based-standards] (SCNxFAST64): Likewise.
317         [C99-based-standards] (PRIdMAX): Likewise.
318         [C99-based-standards] (PRIiMAX): Likewise.
319         [C99-based-standards] (PRIoMAX): Likewise.
320         [C99-based-standards] (PRIuMAX): Likewise.
321         [C99-based-standards] (PRIxMAX): Likewise.
322         [C99-based-standards] (PRIXMAX): Likewise.
323         [C99-based-standards] (SCNdMAX): Likewise.
324         [C99-based-standards] (SCNiMAX): Likewise.
325         [C99-based-standards] (SCNoMAX): Likewise.
326         [C99-based-standards] (SCNuMAX): Likewise.
327         [C99-based-standards] (SCNxMAX): Likewise.
328         [C99-based-standards] (PRIdPTR): Likewise.
329         [C99-based-standards] (PRIiPTR): Likewise.
330         [C99-based-standards] (PRIoPTR): Likewise.
331         [C99-based-standards] (PRIuPTR): Likewise.
332         [C99-based-standards] (PRIxPTR): Likewise.
333         [C99-based-standards] (PRIXPTR): Likewise.
334         [C99-based-standards] (SCNdPTR): Likewise.
335         [C99-based-standards] (SCNiPTR): Likewise.
336         [C99-based-standards] (SCNoPTR): Likewise.
337         [C99-based-standards] (SCNuPTR): Likewise.
338         [C99-based-standards] (SCNxPTR): Likewise.
339         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
340         allow.
341         * conform/data/stdint.h-data: Update comments to clarify
342         requirements.
343         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
344         type.
345         [C99-based standards] (INT8_MAX): Likewise.
346         [C99-based standards] (INT16_MIN): Likewise.
347         [C99-based standards] (INT16_MAX): Likewise.
348         [C99-based standards] (INT32_MIN): Likewise.
349         [C99-based standards] (INT32_MAX): Likewise.
350         [C99-based standards] (INT64_MIN): Likewise.
351         [C99-based standards] (INT64_MAX): Likewise.
352         [C99-based standards] (UINT8_MAX): Likewise.
353         [C99-based standards] (UINT16_MAX): Likewise.
354         [C99-based standards] (UINT32_MAX): Likewise.
355         [C99-based standards] (UINT64_MAX): Likewise.
356         [C99-based standards] (INT_LEAST8_MIN): Likewise.
357         [C99-based standards] (INT_LEAST8_MAX): Likewise.
358         [C99-based standards] (INT_LEAST16_MIN): Likewise.
359         [C99-based standards] (INT_LEAST16_MAX): Likewise.
360         [C99-based standards] (INT_LEAST32_MIN): Likewise.
361         [C99-based standards] (INT_LEAST32_MAX): Likewise.
362         [C99-based standards] (INT_LEAST64_MIN): Likewise.
363         [C99-based standards] (INT_LEAST64_MAX): Likewise.
364         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
365         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
366         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
367         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
368         [C99-based standards] (INT_FAST8_MIN): Likewise.
369         [C99-based standards] (INT_FAST8_MAX): Likewise.
370         [C99-based standards] (INT_FAST16_MIN): Likewise.
371         [C99-based standards] (INT_FAST16_MAX): Likewise.
372         [C99-based standards] (INT_FAST32_MIN): Likewise.
373         [C99-based standards] (INT_FAST32_MAX): Likewise.
374         [C99-based standards] (INT_FAST64_MIN): Likewise.
375         [C99-based standards] (INT_FAST64_MAX): Likewise.
376         [C99-based standards] (UINT_FAST8_MAX): Likewise.
377         [C99-based standards] (UINT_FAST16_MAX): Likewise.
378         [C99-based standards] (UINT_FAST32_MAX): Likewise.
379         [C99-based standards] (UINT_FAST64_MAX): Likewise.
380         [C99-based standards] (INTPTR_MIN): Likewise.
381         [C99-based standards] (INTPTR_MAX): Likewise.
382         [C99-based standards] (UINTPTR_MAX): Likewise.
383         [C99-based standards] (INTMAX_MIN): Likewise.
384         [C99-based standards] (INTMAX_MAX): Likewise.
385         [C99-based standards] (UINTMAX_MAX): Likewise.
386         [C99-based standards] (PTRDIFF_MIN): Likewise.
387         [C99-based standards] (PTRDIFF_MAX): Likewise.
388         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
389         [C99-based standards] (SIZE_MAX): Likewise.
390         [C99-based standards] (WCHAR_MAX): Likewise.
391         [C99-based standards] (WINT_MAX): Likewise.
392         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
393         constraint on value.
394         [C99-based standards] (WCHAR_MIN): Likewise.
395         [C99-based standards] (WINT_MIN): Likewise.
396         [C99-based standards] (*_t): Allow.
397         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
398         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
399         Include math.h-data and complex.h-data.  Remove all expectations
400         of math.h and complex.h contents.
401         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
402         at end of line.
403         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
404         (struct tm): Expect tag.
405         [C99-based-standards] (wcstof): Expect function.
406         [C99-based-standards] (wcstold): Likewise.
407         [C99-based-standards] (wcstoll): Likewise.
408         [C99-based-standards] (wcstoull): Likewise.
409         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
410         macro-int-constant.  Specify type.
411         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
412         constraint on value.
413         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
414         Specify type.
415         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
416         Specify value.
417         [ISO C standards]: Do not allow headers.
418         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
419         wcs[abcdefghijklmnopqrstuvwxyz]*.
420         [ISO C standards] (*_t): Do not allow.
421         * conform/data/wctype.h-data [C99-based standards] (iswblank):
422         Expect function.
423         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
424         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
425         Specify type.
426         [ISO C standards]: Do not allow headers.
427         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
428         is[abcdefghijklmnopqrstuvwxyz]*.
429         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
430         to[abcdefghijklmnopqrstuvwxyz]*.
431         [ISO C standards] (*_t): Do not allow.
432         * conform/data/stdalign.h-data: New file.
433         * conform/data/stdbool.h-data: Likewise.
434         * conform/data/stdnoreturn.h-data: Likewise.
435
436 2012-11-07  Andreas Jaeger  <aj@suse.de>
437
438         [BZ #14809]
439         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
440         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
441         guards are changed.  Only define if not yet defined, #undef back
442         after including linux/sysctl.h if defined here.
443
444 2012-11-07  Roland McGrath  <roland@hack.frob.com>
445
446         [BZ #14815]
447         * manual/filesys.texi (Directory Entries): Typo fix.
448         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
449
450 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
451
452         * elf/elf.h (EM_AARCH64): New macro.
453         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
454         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
455         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
456         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
457         (R_AARCH64_TLSDESC): Likewise.
458         (NT_ARM_TLS): Likewise.
459         (NT_ARM_HW_BREAK): Likewise.
460         (NT_ARM_HW_WATCH): Likewise.
461
462 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
463
464         [BZ #14811]
465         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
466         (__ieee754_powl): Saturate nonzero exponents with absolute value
467         below 0x1p-79 to +/- 0x1p-79.
468         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
469         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
470         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
471         nonzero exponents with absolute value below 0x1p-32 to +/-
472         0x1p-32.
473         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
474         (__ieee754_powl): Saturate nonzero exponents with absolute value
475         below 0x1p-79 to +/- 0x1p-79.
476         * math/libm-test.inc (pow_test): Add more tests.
477
478 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
479
480         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
481         _dl_s390_cap_flags with kernel. Increase string length.
482         (_dl_s390_platforms): Add z196 and zEC12.
483
484 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
485
486         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
487         Change XOPEN21K to XOPEN2K.
488
489 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
490
491         * string/memmove.c: Use memcpy when possible.
492
493 2012-11-06  Andreas Jaeger  <aj@suse.de>
494
495         * po/eo.po: Update from translation team.
496
497 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
498
499         [BZ #14793]
500         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
501         exponent and small x and y exponents, scale x or y up.  Increase
502         by 2 the exponent used in scaling up.
503         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
504         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
505         * math/libm-test.inc (fma_test): Add more tests.
506         (fma_test_towardzero): Likewise.
507         (fma_test_downward): Likewise.
508         (fma_test_upward): Likewise.
509
510 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
511
512         [BZ #14805]
513         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
514         fenv_t *.
515
516         [BZ #14801]
517         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
518         namespace for names of struct fields.
519         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
520         fenv_t fields.
521         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
522         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
523
524 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
525
526         [BZ #3665]
527         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
528
529 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
530
531         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
532         PTR_DEMANGLE.
533
534         [BZ #5246]
535         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
536         PTR_DEMANGLE.
537
538 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
539
540         [BZ #14797]
541         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
542         definitely overflow as x * y not x * y + z.
543         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
544         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
545         * math/libm-test.inc (fma_test): Add more tests.
546         (fma_test_towardzero): Likewise.
547         (fma_test_downward): Likewise.
548         (fma_test_upward): Likewise.
549
550 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
551
552         [BZ #157]
553
554         * include/stub-tag.h: Remove file.
555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
556         '#include' of it.
557         * manual/maint.texi (Porting): Don't reference it.
558         * Makerules ($(objpfx)stubs): Likewise.
559         * dirent/closedir.c: Don't include <stub-tag.h>.
560         * dirent/dirfd.c: Likewise.
561         * dirent/fdopendir.c: Likewise.
562         * dirent/getdents.c: Likewise.
563         * dirent/getdents64.c: Likewise.
564         * dirent/opendir.c: Likewise.
565         * dirent/readdir.c: Likewise.
566         * dirent/readdir64.c: Likewise.
567         * dirent/readdir64_r.c: Likewise.
568         * dirent/readdir_r.c: Likewise.
569         * dirent/rewinddir.c: Likewise.
570         * dirent/seekdir.c: Likewise.
571         * dirent/telldir.c: Likewise.
572         * gmon/profil.c: Likewise.
573         * grp/setgroups.c: Likewise.
574         * inet/if_index.c: Likewise.
575         * io/access.c: Likewise.
576         * io/chdir.c: Likewise.
577         * io/chmod.c: Likewise.
578         * io/chown.c: Likewise.
579         * io/close.c: Likewise.
580         * io/dup.c: Likewise.
581         * io/dup2.c: Likewise.
582         * io/dup3.c: Likewise.
583         * io/euidaccess.c: Likewise.
584         * io/faccessat.c: Likewise.
585         * io/fchdir.c: Likewise.
586         * io/fchmod.c: Likewise.
587         * io/fchmodat.c: Likewise.
588         * io/fchown.c: Likewise.
589         * io/fchownat.c: Likewise.
590         * io/fcntl.c: Likewise.
591         * io/flock.c: Likewise.
592         * io/fstatfs.c: Likewise.
593         * io/fstatfs64.c: Likewise.
594         * io/fstatvfs.c: Likewise.
595         * io/fstatvfs64.c: Likewise.
596         * io/futimens.c: Likewise.
597         * io/fxstat.c: Likewise.
598         * io/fxstat64.c: Likewise.
599         * io/fxstatat.c: Likewise.
600         * io/fxstatat64.c: Likewise.
601         * io/getcwd.c: Likewise.
602         * io/isatty.c: Likewise.
603         * io/lchmod.c: Likewise.
604         * io/lchown.c: Likewise.
605         * io/link.c: Likewise.
606         * io/linkat.c: Likewise.
607         * io/lseek.c: Likewise.
608         * io/lseek64.c: Likewise.
609         * io/lxstat64.c: Likewise.
610         * io/mkdir.c: Likewise.
611         * io/mkdirat.c: Likewise.
612         * io/mkfifo.c: Likewise.
613         * io/mkfifoat.c: Likewise.
614         * io/open.c: Likewise.
615         * io/open64.c: Likewise.
616         * io/openat.c: Likewise.
617         * io/openat64.c: Likewise.
618         * io/pipe.c: Likewise.
619         * io/pipe2.c: Likewise.
620         * io/poll.c: Likewise.
621         * io/posix_fadvise.c: Likewise.
622         * io/posix_fadvise64.c: Likewise.
623         * io/posix_fallocate.c: Likewise.
624         * io/posix_fallocate64.c: Likewise.
625         * io/read.c: Likewise.
626         * io/readlink.c: Likewise.
627         * io/readlinkat.c: Likewise.
628         * io/rmdir.c: Likewise.
629         * io/sendfile.c: Likewise.
630         * io/sendfile64.c: Likewise.
631         * io/statfs.c: Likewise.
632         * io/statfs64.c: Likewise.
633         * io/statvfs.c: Likewise.
634         * io/statvfs64.c: Likewise.
635         * io/symlink.c: Likewise.
636         * io/symlinkat.c: Likewise.
637         * io/ttyname.c: Likewise.
638         * io/ttyname_r.c: Likewise.
639         * io/umask.c: Likewise.
640         * io/unlink.c: Likewise.
641         * io/unlinkat.c: Likewise.
642         * io/utime.c: Likewise.
643         * io/utimensat.c: Likewise.
644         * io/write.c: Likewise.
645         * io/xmknod.c: Likewise.
646         * io/xmknodat.c: Likewise.
647         * io/xstat.c: Likewise.
648         * io/xstat64.c: Likewise.
649         * login/getpt.c: Likewise.
650         * login/grantpt.c: Likewise.
651         * login/unlockpt.c: Likewise.
652         * math/e_acoshl.c: Likewise.
653         * math/e_acosl.c: Likewise.
654         * math/e_asinl.c: Likewise.
655         * math/e_atan2l.c: Likewise.
656         * math/e_atanhl.c: Likewise.
657         * math/e_coshl.c: Likewise.
658         * math/e_expl.c: Likewise.
659         * math/e_fmodl.c: Likewise.
660         * math/e_gammal_r.c: Likewise.
661         * math/e_hypotl.c: Likewise.
662         * math/e_j0l.c: Likewise.
663         * math/e_j1l.c: Likewise.
664         * math/e_jnl.c: Likewise.
665         * math/e_lgammal_r.c: Likewise.
666         * math/e_log10l.c: Likewise.
667         * math/e_log2l.c: Likewise.
668         * math/e_logl.c: Likewise.
669         * math/e_powl.c: Likewise.
670         * math/e_rem_pio2l.c: Likewise.
671         * math/e_sinhl.c: Likewise.
672         * math/e_sqrtl.c: Likewise.
673         * math/fclrexcpt.c: Likewise.
674         * math/fedisblxcpt.c: Likewise.
675         * math/feenablxcpt.c: Likewise.
676         * math/fegetenv.c: Likewise.
677         * math/fegetexcept.c: Likewise.
678         * math/fegetround.c: Likewise.
679         * math/feholdexcpt.c: Likewise.
680         * math/fesetenv.c: Likewise.
681         * math/fesetround.c: Likewise.
682         * math/feupdateenv.c: Likewise.
683         * math/fgetexcptflg.c: Likewise.
684         * math/fraiseexcpt.c: Likewise.
685         * math/fsetexcptflg.c: Likewise.
686         * math/ftestexcept.c: Likewise.
687         * math/k_cosl.c: Likewise.
688         * math/k_rem_pio2l.c: Likewise.
689         * math/k_sinl.c: Likewise.
690         * math/k_tanl.c: Likewise.
691         * math/s_asinhl.c: Likewise.
692         * math/s_atanl.c: Likewise.
693         * math/s_cbrtl.c: Likewise.
694         * math/s_erfl.c: Likewise.
695         * math/s_expm1l.c: Likewise.
696         * math/s_log1pl.c: Likewise.
697         * math/s_tanhl.c: Likewise.
698         * misc/acct.c: Likewise.
699         * misc/brk.c: Likewise.
700         * misc/chflags.c: Likewise.
701         * misc/chroot.c: Likewise.
702         * misc/fchflags.c: Likewise.
703         * misc/fgetxattr.c: Likewise.
704         * misc/flistxattr.c: Likewise.
705         * misc/fremovexattr.c: Likewise.
706         * misc/fsetxattr.c: Likewise.
707         * misc/fsync.c: Likewise.
708         * misc/ftruncate.c: Likewise.
709         * misc/futimes.c: Likewise.
710         * misc/futimesat.c: Likewise.
711         * misc/getdomain.c: Likewise.
712         * misc/getdtsz.c: Likewise.
713         * misc/gethostid.c: Likewise.
714         * misc/gethostname.c: Likewise.
715         * misc/getloadavg.c: Likewise.
716         * misc/getpagesize.c: Likewise.
717         * misc/getsysstats.c: Likewise.
718         * misc/getxattr.c: Likewise.
719         * misc/gtty.c: Likewise.
720         * misc/ioctl.c: Likewise.
721         * misc/lgetxattr.c: Likewise.
722         * misc/listxattr.c: Likewise.
723         * misc/llistxattr.c: Likewise.
724         * misc/lremovexattr.c: Likewise.
725         * misc/lsetxattr.c: Likewise.
726         * misc/lutimes.c: Likewise.
727         * misc/madvise.c: Likewise.
728         * misc/mincore.c: Likewise.
729         * misc/mlock.c: Likewise.
730         * misc/mlockall.c: Likewise.
731         * misc/mmap.c: Likewise.
732         * misc/mprotect.c: Likewise.
733         * misc/msync.c: Likewise.
734         * misc/munlock.c: Likewise.
735         * misc/munlockall.c: Likewise.
736         * misc/munmap.c: Likewise.
737         * misc/preadv.c: Likewise.
738         * misc/preadv64.c: Likewise.
739         * misc/ptrace.c: Likewise.
740         * misc/pwritev.c: Likewise.
741         * misc/pwritev64.c: Likewise.
742         * misc/readv.c: Likewise.
743         * misc/reboot.c: Likewise.
744         * misc/remap_file_pages.c: Likewise.
745         * misc/removexattr.c: Likewise.
746         * misc/revoke.c: Likewise.
747         * misc/select.c: Likewise.
748         * misc/setdomain.c: Likewise.
749         * misc/setegid.c: Likewise.
750         * misc/seteuid.c: Likewise.
751         * misc/sethostid.c: Likewise.
752         * misc/sethostname.c: Likewise.
753         * misc/setregid.c: Likewise.
754         * misc/setreuid.c: Likewise.
755         * misc/setxattr.c: Likewise.
756         * misc/sstk.c: Likewise.
757         * misc/stty.c: Likewise.
758         * misc/swapoff.c: Likewise.
759         * misc/swapon.c: Likewise.
760         * misc/sync.c: Likewise.
761         * misc/syncfs.c: Likewise.
762         * misc/syscall.c: Likewise.
763         * misc/truncate.c: Likewise.
764         * misc/ualarm.c: Likewise.
765         * misc/usleep.c: Likewise.
766         * misc/ustat.c: Likewise.
767         * misc/utimes.c: Likewise.
768         * misc/vhangup.c: Likewise.
769         * misc/writev.c: Likewise.
770         * posix/_exit.c: Likewise.
771         * posix/alarm.c: Likewise.
772         * posix/execve.c: Likewise.
773         * posix/fexecve.c: Likewise.
774         * posix/fork.c: Likewise.
775         * posix/fpathconf.c: Likewise.
776         * posix/getaddrinfo.c: Likewise.
777         * posix/getegid.c: Likewise.
778         * posix/geteuid.c: Likewise.
779         * posix/getgid.c: Likewise.
780         * posix/getgroups.c: Likewise.
781         * posix/getlogin.c: Likewise.
782         * posix/getlogin_r.c: Likewise.
783         * posix/getpgid.c: Likewise.
784         * posix/getpid.c: Likewise.
785         * posix/getppid.c: Likewise.
786         * posix/getresgid.c: Likewise.
787         * posix/getresuid.c: Likewise.
788         * posix/getsid.c: Likewise.
789         * posix/getuid.c: Likewise.
790         * posix/glob64.c: Likewise.
791         * posix/nanosleep.c: Likewise.
792         * posix/pathconf.c: Likewise.
793         * posix/pause.c: Likewise.
794         * posix/posix_madvise.c: Likewise.
795         * posix/pread.c: Likewise.
796         * posix/pread64.c: Likewise.
797         * posix/pwrite.c: Likewise.
798         * posix/pwrite64.c: Likewise.
799         * posix/sched_getaffinity.c: Likewise.
800         * posix/sched_getp.c: Likewise.
801         * posix/sched_gets.c: Likewise.
802         * posix/sched_primax.c: Likewise.
803         * posix/sched_primin.c: Likewise.
804         * posix/sched_rr_gi.c: Likewise.
805         * posix/sched_setaffinity.c: Likewise.
806         * posix/sched_setp.c: Likewise.
807         * posix/sched_sets.c: Likewise.
808         * posix/sched_yield.c: Likewise.
809         * posix/setgid.c: Likewise.
810         * posix/setlogin.c: Likewise.
811         * posix/setpgid.c: Likewise.
812         * posix/setresgid.c: Likewise.
813         * posix/setresuid.c: Likewise.
814         * posix/setsid.c: Likewise.
815         * posix/setuid.c: Likewise.
816         * posix/sleep.c: Likewise.
817         * posix/spawni.c: Likewise.
818         * posix/sysconf.c: Likewise.
819         * posix/times.c: Likewise.
820         * posix/wait.c: Likewise.
821         * posix/wait3.c: Likewise.
822         * posix/wait4.c: Likewise.
823         * posix/waitpid.c: Likewise.
824         * resolv/gai_sigqueue.c: Likewise.
825         * resource/getpriority.c: Likewise.
826         * resource/getrlimit.c: Likewise.
827         * resource/getrusage.c: Likewise.
828         * resource/nice.c: Likewise.
829         * resource/setpriority.c: Likewise.
830         * resource/setrlimit.c: Likewise.
831         * resource/ulimit.c: Likewise.
832         * rt/aio_cancel.c: Likewise.
833         * rt/aio_fsync.c: Likewise.
834         * rt/aio_read.c: Likewise.
835         * rt/aio_sigqueue.c: Likewise.
836         * rt/aio_suspend.c: Likewise.
837         * rt/aio_write.c: Likewise.
838         * rt/clock_getres.c: Likewise.
839         * rt/clock_gettime.c: Likewise.
840         * rt/clock_nanosleep.c: Likewise.
841         * rt/clock_settime.c: Likewise.
842         * rt/lio_listio.c: Likewise.
843         * rt/mq_close.c: Likewise.
844         * rt/mq_getattr.c: Likewise.
845         * rt/mq_notify.c: Likewise.
846         * rt/mq_open.c: Likewise.
847         * rt/mq_receive.c: Likewise.
848         * rt/mq_send.c: Likewise.
849         * rt/mq_setattr.c: Likewise.
850         * rt/mq_timedreceive.c: Likewise.
851         * rt/mq_timedsend.c: Likewise.
852         * rt/mq_unlink.c: Likewise.
853         * rt/shm_open.c: Likewise.
854         * rt/shm_unlink.c: Likewise.
855         * rt/timer_create.c: Likewise.
856         * rt/timer_delete.c: Likewise.
857         * rt/timer_getoverr.c: Likewise.
858         * rt/timer_gettime.c: Likewise.
859         * rt/timer_settime.c: Likewise.
860         * setjmp/__longjmp.c: Likewise.
861         * setjmp/setjmp.c: Likewise.
862         * signal/kill.c: Likewise.
863         * signal/killpg.c: Likewise.
864         * signal/raise.c: Likewise.
865         * signal/sigaction.c: Likewise.
866         * signal/sigaltstack.c: Likewise.
867         * signal/sigblock.c: Likewise.
868         * signal/sigignore.c: Likewise.
869         * signal/sigintr.c: Likewise.
870         * signal/signal.c: Likewise.
871         * signal/sigpause.c: Likewise.
872         * signal/sigpending.c: Likewise.
873         * signal/sigqueue.c: Likewise.
874         * signal/sigreturn.c: Likewise.
875         * signal/sigset.c: Likewise.
876         * signal/sigsetmask.c: Likewise.
877         * signal/sigstack.c: Likewise.
878         * signal/sigsuspend.c: Likewise.
879         * signal/sigtimedwait.c: Likewise.
880         * signal/sigvec.c: Likewise.
881         * signal/sigwait.c: Likewise.
882         * signal/sigwaitinfo.c: Likewise.
883         * signal/sysv_signal.c: Likewise.
884         * socket/accept.c: Likewise.
885         * socket/accept4.c: Likewise.
886         * socket/bind.c: Likewise.
887         * socket/connect.c: Likewise.
888         * socket/getpeername.c: Likewise.
889         * socket/getsockname.c: Likewise.
890         * socket/getsockopt.c: Likewise.
891         * socket/isfdtype.c: Likewise.
892         * socket/listen.c: Likewise.
893         * socket/recv.c: Likewise.
894         * socket/recvfrom.c: Likewise.
895         * socket/recvmsg.c: Likewise.
896         * socket/send.c: Likewise.
897         * socket/sendmsg.c: Likewise.
898         * socket/sendto.c: Likewise.
899         * socket/setsockopt.c: Likewise.
900         * socket/shutdown.c: Likewise.
901         * socket/sockatmark.c: Likewise.
902         * socket/socket.c: Likewise.
903         * socket/socketpair.c: Likewise.
904         * stdio-common/ctermid.c: Likewise.
905         * stdio-common/cuserid.c: Likewise.
906         * stdio-common/remove.c: Likewise.
907         * stdio-common/rename.c: Likewise.
908         * stdio-common/renameat.c: Likewise.
909         * stdio-common/tempname.c: Likewise.
910         * stdlib/getcontext.c: Likewise.
911         * stdlib/makecontext.c: Likewise.
912         * stdlib/setcontext.c: Likewise.
913         * stdlib/swapcontext.c: Likewise.
914         * stdlib/system.c: Likewise.
915         * streams/fattach.c: Likewise.
916         * streams/fdetach.c: Likewise.
917         * streams/getmsg.c: Likewise.
918         * streams/getpmsg.c: Likewise.
919         * streams/putmsg.c: Likewise.
920         * streams/putpmsg.c: Likewise.
921         * sysdeps/unix/bsd/getpt.c: Likewise.
922         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
923         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
924         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
926         Likewise.
927         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
928         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
929         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
930         * sysvipc/msgctl.c: Likewise.
931         * sysvipc/msgget.c: Likewise.
932         * sysvipc/msgrcv.c: Likewise.
933         * sysvipc/msgsnd.c: Likewise.
934         * sysvipc/semctl.c: Likewise.
935         * sysvipc/semget.c: Likewise.
936         * sysvipc/semop.c: Likewise.
937         * sysvipc/semtimedop.c: Likewise.
938         * sysvipc/shmat.c: Likewise.
939         * sysvipc/shmctl.c: Likewise.
940         * sysvipc/shmdt.c: Likewise.
941         * sysvipc/shmget.c: Likewise.
942         * termios/tcdrain.c: Likewise.
943         * termios/tcflow.c: Likewise.
944         * termios/tcflush.c: Likewise.
945         * termios/tcgetattr.c: Likewise.
946         * termios/tcgetpgrp.c: Likewise.
947         * termios/tcsendbrk.c: Likewise.
948         * termios/tcsetattr.c: Likewise.
949         * termios/tcsetpgrp.c: Likewise.
950         * time/adjtime.c: Likewise.
951         * time/clock.c: Likewise.
952         * time/getitimer.c: Likewise.
953         * time/gettimeofday.c: Likewise.
954         * time/setitimer.c: Likewise.
955         * time/settimeofday.c: Likewise.
956         * time/stime.c: Likewise.
957         * time/time.c: Likewise.
958
959 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
960
961         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
962         /usr/old/bin.
963
964         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
965         instead of spaces.
966         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
967
968 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
969
970         [BZ #14796]
971         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
972         FE_TONEAREST before applying Dekker multiplication and Knuth
973         addition.  Clear inexact exceptions and check for exact zero
974         results afterwards.
975         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
976         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
977         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
978         * math/libm-test.inc (fma_test): Add more tests.
979         (fma_test_towardzero): Likewise.
980         (fma_test_downward): Likewise.
981         (fma_test_upward): Likewise.
982         * sysdeps/generic/math_private.h (default_libc_fesetround): New
983         function.
984         (libc_fesetround): New macro.
985         (libc_fesetroundf): Likewise.
986         (libc_fesetroundl): Likewise.
987         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
988         function.
989         (libc_fesetround_387): Likewise.
990         (libc_fesetroundf): New macro.
991         (libc_fesetround): Likewise.
992         (libc_fesetroundl): Likewise.
993         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
994         function.
995         (libc_fesetroundf): New macro.
996         (libc_fesetround): Likewise.
997         (libc_fesetroundl): Likewise.
998         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
999         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1000         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1001         libm_hidden_ver.
1002         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1003         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1004         libm_hidden_def.
1005         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1006         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1007         libm_hidden_ver.
1008         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1009         libm_hidden_def.
1010
1011         [BZ #3439]
1012         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1013         integer constant usable in #if and use that to give value to enum
1014         constant.
1015         (FE_DIVBYZERO): Likewise.
1016         (FE_UNDERFLOW): Likewise.
1017         (FE_OVERFLOW): Likewise.
1018         (FE_INVALID): Likewise.
1019         (FE_INVALID_SNAN): Likewise.
1020         (FE_INVALID_ISI): Likewise.
1021         (FE_INVALID_IDI): Likewise.
1022         (FE_INVALID_ZDZ): Likewise.
1023         (FE_INVALID_IMZ): Likewise.
1024         (FE_INVALID_COMPARE): Likewise.
1025         (FE_INVALID_SOFTWARE): Likewise.
1026         (FE_INVALID_SQRT): Likewise.
1027         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1028         (FE_TONEAREST): Likewise.
1029         (FE_TOWARDZERO): Likewise.
1030         (FE_UPWARD): Likewise.
1031         (FE_DOWNWARD): Likewise.
1032         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1033         (FE_DIVBYZERO): Likewise.
1034         (FE_OVERFLOW): Likewise.
1035         (FE_UNDERFLOW): Likewise.
1036         (FE_INEXACT): Likewise.
1037         (FE_TONEAREST): Likewise.
1038         (FE_DOWNWARD): Likewise.
1039         (FE_UPWARD): Likewise.
1040         (FE_TOWARDZERO): Likewise.
1041         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1042         (FE_UNDERFLOW): Likewise.
1043         (FE_OVERFLOW): Likewise.
1044         (FE_DIVBYZERO): Likewise.
1045         (FE_INVALID): Likewise.
1046         (FE_TONEAREST): Likewise.
1047         (FE_TOWARDZERO): Likewise.
1048         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1049         (FE_OVERFLOW): Likewise.
1050         (FE_UNDERFLOW): Likewise.
1051         (FE_DIVBYZERO): Likewise.
1052         (FE_INEXACT): Likewise.
1053         (FE_TONEAREST): Likewise.
1054         (FE_TOWARDZERO): Likewise.
1055         (FE_UPWARD): Likewise.
1056         (FE_DOWNWARD): Likewise.
1057         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1058         (FE_DIVBYZERO): Likewise.
1059         (FE_OVERFLOW): Likewise.
1060         (FE_UNDERFLOW): Likewise.
1061         (FE_INEXACT): Likewise.
1062         (FE_TONEAREST): Likewise.
1063         (FE_DOWNWARD): Likewise.
1064         (FE_UPWARD): Likewise.
1065         (FE_TOWARDZERO): Likewise.
1066
1067 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1068
1069         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1070
1071 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1072
1073         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1074         commands.  Quote $PWD.
1075         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1076         -x" by "export".
1077         (remove_newlines): Remove.
1078
1079 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1080
1081         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1082         * stdlib/stdlib.h (atof): Moved to ...
1083         * include/bits/stdlib-float.h: Here.  New file.
1084         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1085         * stdlib/bits/stdlib-float.h: New file.
1086         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1087         -mno-sse -mno-mmx.
1088         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1089         <xmmintrin.h>.
1090
1091 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1092
1093         * conform/conformtest.pl (@headers): Add fenv.h.
1094         * conform/data/fenv.h-data: New file.
1095         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1096         include of <math/fenv.h>.
1097
1098         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1099         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1100         && !UNIX98].  Enables tests for XOPEN2K8.
1101         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1102         POSIX2008]: Likewise.
1103
1104         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1105         (struct rusage): Do not expect type or its members.
1106
1107         [BZ #3439]
1108         * math/math.h (FP_NAN): Define macro to integer constant usable in
1109         #if and use that to give value to enum constant.
1110         (FP_INFINITE): Likewise.
1111         (FP_ZERO): Likewise.
1112         (FP_SUBNORMAL): Likewise.
1113         (FP_NORMAL): Likewise.
1114
1115 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1116
1117         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1118         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1119         arguments.
1120
1121 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1122
1123         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1124         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1125         autoconf-time if not.
1126         * configure.in: Remove AC_PREREQ.
1127
1128 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1129
1130         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1131         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1132         of the internal implementation.
1133
1134 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1135
1136         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1137         except include of <misc/sys/syslog.h>.
1138
1139 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1140
1141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1142         function returns with a NULL context exit with zero.
1143
1144 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1145
1146         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1147
1148 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1149
1150         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1151         (run_program_cmd): This.
1152         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1153         (tst_langinfo): New variable.  Use it.
1154
1155 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1156
1157         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1158         floating point opcodes.
1159
1160 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1161
1162         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1163         variable.
1164
1165         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1166
1167         * sysdeps/mach/hurd/powerpc: Remove directory.
1168         * sysdeps/mach/powerpc: Likewise.
1169
1170 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1171
1172         * scripts/check-local-headers.sh: Ignore c++ headers.
1173
1174 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1175
1176         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1177         __libc_cleanup_region_start argument.
1178
1179 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1180
1181         [BZ #14784]
1182         [BZ #14785]
1183         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1184         x * y using scaling, not as x * y + z.
1185         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1186         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1187         * math/libm-test.inc (fma_test): Add more tests.
1188         (fma_test_towardzero): Likewise.
1189         (fma_test_downward): Likewise.
1190         (fma_test_upward): Likewise.
1191
1192 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1193
1194         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1195
1196 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1197
1198         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1199         New variable.
1200
1201 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1202
1203         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1204
1205 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1206
1207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1208         Fix sort order.
1209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1210         Likewise.
1211
1212 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1213
1214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1215         Fix the order of the list for glibc 2.17.
1216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1217         Likewise.
1218
1219 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1220
1221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1222
1223 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1224
1225         [BZ #14610]
1226         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1227         for low part of x being zero before using __atanl (y).
1228         * math/libm-test.inc (atan2_test): Add another test.
1229
1230         * manual/install.texi (Configuring and compiling): Document
1231         general use of test-wrapper and test-wrapper-env.
1232         * INSTALL: Regenerated.
1233
1234         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1235         (__fma): Do not extract and scale down low bits on after-rounding
1236         systems when result rounded to normal precision would have normal
1237         exponent.
1238         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1239         (__fmal): Do not extract and scale down low bits on after-rounding
1240         systems when result rounded to normal precision would have normal
1241         exponent.
1242         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1243         (__fmal): Do not extract and scale down low bits on after-rounding
1244         systems when result rounded to normal precision would have normal
1245         exponent.
1246         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1247         macro.
1248         (fma_test): Add more tests.
1249         (fma_test_towardzero): Likewise.
1250         (fma_test_downward): Likewise.
1251         (fma_test_upward): Likewise.
1252
1253 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1254
1255         * sysdeps/i386/tininess.h: Renamed to ...
1256         * sysdeps/x86/tininess.h: This.
1257         * sysdeps/x86_64/tininess.h: Removed.
1258
1259 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1260
1261         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1262         input.  Use $(build-program-cmd).
1263         ($(objpfx)tst-array1-static.out): Likewise.
1264         ($(objpfx)tst-array2.out): Likewise.
1265         ($(objpfx)tst-array3.out): Likewise.
1266         ($(objpfx)tst-array4.out): Likewise.
1267         ($(objpfx)tst-array5.out): Likewise.
1268         ($(objpfx)tst-array5-static.out): Likewise.
1269
1270 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1271
1272         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1273         if defined.
1274
1275         * nss/nsswitch.h (nss_interface_function): Provide new
1276         macro for use with NSS functions.
1277         * grp/initgroups.c: Use new macro.
1278         * nss/getXXbyYY.c: Likewise.
1279         * nss/getXXbyYY_r.c: Likewise.
1280         * nss/getXXent.c: Likewise.
1281         * nss/getXXent_r.c: Likewise.
1282         * sysdeps/posix/getaddrinfo.c: Likewise.
1283
1284 2012-10-30  Andreas Jaeger  <aj@suse.de>
1285
1286         * po/ru.po: Update Russion translation from translation project.
1287
1288 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1289
1290         [BZ #14152]
1291         [BZ #14783]
1292         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1293         result and shift together with sticky bit instead of replicating
1294         round-to-nearest rounding.
1295         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1296         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1297         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1298         missing underflow exceptions.
1299         (fma_test_towardzero): Add more tests.
1300         (fma_test_downward): Likewise.
1301         (fma_test_upward): Likewise.
1302
1303         [BZ #14047]
1304         * sysdeps/generic/tininess.h: New file.
1305         * sysdeps/i386/tininess.h: Likewise.
1306         * sysdeps/sh/tininess.h: Likewise.
1307         * sysdeps/x86_64/tininess.h: Likewise.
1308         * stdlib/tst-strtod-underflow.c: Likewise.
1309         * stdlib/tst-tininess.c: Likewise.
1310         * stdlib/strtod_l.c: Include <tininess.h>.
1311         (round_and_return): Do not set errno for exact underflow cases.
1312         Force an underflow exception when setting errno for underflow.
1313         Determine underflow based on rounding to normal precision if
1314         TININESS_AFTER_ROUNDING.
1315         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1316         ERANGE for exact underflow cases.
1317         * stdlib/Makefile (tests): Add tst-tininess and
1318         tst-strtod-underflow.
1319         ($(objpfx)tst-tininess): Use $(link-libm).
1320         ($(objpfx)tst-strtod-underflow): Likewise.
1321
1322 2012-10-30  Andreas Jaeger  <aj@suse.de>
1323
1324         [BZ#14767]
1325         * elf/Makefile (tests): Remove conditional for have-initfini-array
1326         since this is now always required and the variable does not exist
1327         anymore.
1328         (tests-static): Likewise.
1329         (modules-names): Likewise.
1330
1331         * po/eo.po: Add Esperanto translation from translation project.
1332
1333         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1334         merged with constructor/destructor.
1335         (init_array): Likewise.
1336         * elf/tst-array2dep.c (fini_array): Likewise.
1337         (init_array): Likewise.
1338
1339 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1340
1341         * manual/message.texi: Delete @cartouche tags.
1342
1343 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1344
1345         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1346         EOPNOTSUPP.
1347         * sysdeps/mach/hurd/fsync.c: Likewise.
1348
1349         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1350         [_POSIX_REALTIME_SIGNALS]: Change condition to
1351         [_POSIX_REALTIME_SIGNALS > 0].
1352
1353 2012-10-27  Andreas Jaeger  <aj@suse.de>
1354
1355         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1356         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1357         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1358         [__WORDSIZE != 64]: Likewise.
1359
1360 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1361
1362         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1363         *  iconvdata/tst-tables.sh: Likewise.
1364
1365 2012-10-25  David S. Miller  <davem@davemloft.net>
1366
1367         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1368         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1369         of strtoull.
1370
1371         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1372         ifunc-impl-list.c
1373         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1374         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1375         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1376         file.
1377
1378 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1379
1380         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1381         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1382         __getdirentries.
1383
1384 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1385             Jim Blandy  <jimb@codesourcery.com>
1386
1387         * scripts/cross-test-ssh.sh: New file.
1388         * manual/install.texi (Configuring and compiling): Document use of
1389         cross-test-ssh.sh.
1390         * INSTALL: Regenerated.
1391
1392 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1393
1394         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1395         EOPNOTSUPP.
1396
1397 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1398
1399         * Makeconfig (run-program-prefix): Fix comment.
1400
1401 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1402             Jim Blandy  <jimb@codesourcery.com>
1403
1404         * Makeconfig (test-wrapper): New variable,
1405         (test-wrapper-env): Likewise.
1406         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1407         (run-built-tests): Define to yes.
1408         (run-program-prefix): Use $(test-wrapper).
1409         (built-program-cmd): Likewise.
1410         * Rules (make-test-out): Use $(test-wrapper-env) and
1411         $(host-built-program-cmd).
1412         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1413         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1414         tst-pathopt.sh.
1415         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1416         $(test-wrapper-env) to tst-rtld-load-self.sh.
1417         ($(objpfx)order2.out): Use $(test-wrapper).
1418         ($(objpfx)tst-initorder.out): Likewise.
1419         ($(objpfx)tst-initorder2.out): Likewise.
1420         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1421         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1422         (test_wrapper_env): New variable.  Use it to run ld.so.
1423         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1424         Use it to run ld.so.
1425         (test_wrapper_env): Likewise.
1426         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1427         $(test-wrapper) to run-iconv-test.sh.
1428         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1429         (ICONV): Use $test_wrapper.
1430         * posix/Makefile ($(objpfx)globtest.out): Pass
1431         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1432         globtest.sh, not $(run-program-prefix).
1433         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1434         (test_wrapper): Likewise.
1435         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1436         set together with run_via_rtld_prefix.
1437         (run_program_prefix): Define in terms of test_wrapper and
1438         run_via_rtld_prefix.
1439
1440 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1441
1442         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1443         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1444         Targets removed.
1445
1446         [BZ #14743]
1447         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1448         Declare __clock_getres, __clock_gettime, __clock_settime,
1449         __clock_nanosleep, and __clock_getcpuclockid.
1450         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1451         Remove librt_hidden_def (clock_gettime).
1452         * sysdeps/unix/clock_gettime.c: Likewise.
1453         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1454         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1455         * rt/clock_getres.c: Define __clock_getres as an alias.
1456         * sysdeps/posix/clock_getres.c: Likewise.
1457         * rt/clock_settime.c: Define __clock_settime as an alias.
1458         * sysdeps/unix/clock_settime.c: Likewise.
1459         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1460         * sysdeps/unix/clock_nanosleep.c: Likewise.
1461         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1462         * rt/clock-compat.c: New file.
1463         * rt/Makefile (librt-routines): Add clock-compat and move
1464         $(clock-routines) to ...
1465         (routines): ... here, new variable.
1466         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1467         Don't add get_clockfreq here.
1468         * rt/Versions (libc: GLIBC_2.17): New version set.
1469         Add clock_* symbols here.
1470         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1471         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1472         (GLIBC_2.17): Add clock_* symbols.
1473         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1474         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1475         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1477         Likewise.
1478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1479         Likewise.
1480         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1481         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1482         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1484         * NEWS: Mention the move.
1485
1486         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1487         Use __open, __read, __close rather than their public counterparts.
1488         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1489         (__get_clockfreq_via_cpuinfo): Likewise.
1490         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1491         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1492
1493         * config.h.in (HAVE_IFUNC): New #undef.
1494         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1495         was successful.
1496         * configure: Regenerated.
1497
1498 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1499
1500         * configure.in: Move READELF check to start of file.
1501         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1502         libc_cv_asm_gnu_indirect_function in the process.
1503         * configure: Regenerated.
1504
1505 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1506
1507         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1508         send the output to /dev/null.
1509         (libc_cv_cc_with_libunwind): Likewise.
1510         (libc_cv_as_noexecstack): Likewise.
1511         * configure: Regenerate.
1512
1513 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1514
1515         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1516
1517         * posix/globtest.sh (TMPDIR): Do not set.
1518         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1519         (testout): Likewise.
1520
1521 2012-10-24  Andreas Jaeger  <aj@suse.de>
1522
1523         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1524         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1525         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1526         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1527         posix_fadvise64, posix_fallocate64.
1528
1529         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1530         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1531         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1532         Likewise.
1533         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1534         Likewise.
1535         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1536
1537         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1538         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1539         <bits/fcntl-linux.h>.
1540         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1541
1542         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1543         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1544         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1545         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1546         [__WORDSIZE != 64]: Likewise.
1547
1548 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1549
1550         * Makeconfig (run-built-tests): New variable.
1551         * Rules [$(cross-compiling) = yes]: Change condition to
1552         [$(run-built-tests) = no].
1553         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1554         to [$(run-built-tests) = yes].
1555         * elf/Makefile [$(cross-compiling) = no]: Likewise
1556         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1557         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1558         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1559         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1560         * io/Makefile [$(cross-compiling) = no]: Likewise.
1561         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1562         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1563         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1564         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1565         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1566         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1567         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1568         * string/Makefile [$(cross-compiling) = no]: Likewise.
1569
1570         * posix/Makefile ($(objpfx)globtest.out): Pass
1571         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1572         $(rtld-installed-name).
1573         * posix/globtest.sh (elf_objpfx): Remove variable.
1574         (rtld_installed_name): Likewise.
1575         (library_path): Likewise.
1576         (run_program_prefix): New variable.  Use for running globtest
1577         binary.
1578
1579 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1580             Joseph Myers  <joseph@codesourcery.com>
1581
1582         * Makeconfig (host-built-program-cmd): New variable.
1583         * elf/Makefile (tst-stackguard1-ARGS): Use
1584         $(host-built-program-cmd).
1585         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1586         (tst-spawn-ARGS): Likewise.
1587         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1588
1589 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1590             Jim Blandy  <jimb@codesourcery.com>
1591
1592         * Makeconfig (run-via-rtld-prefix): New variable.
1593         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1594         (built-program-cmd): Likewise.
1595
1596 2012-10-22  Andreas Jaeger  <aj@suse.de>
1597
1598         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1599         __O_RSYNC if it exists, otherwise to O_SYNC.
1600
1601 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1602             Joseph Myers  <joseph@codesourcery.com>
1603
1604         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1605         /dev/null.
1606         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1607         from /dev/null
1608         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1609         /dev/null.
1610
1611 2012-10-22  Andreas Jaeger  <aj@suse.de>
1612
1613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1614         Define always.
1615         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1616
1617         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1618         bits/fcntl-linux.h.
1619
1620         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1621         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1622
1623         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1624         to __O_LARGEFILE.
1625         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1626         to __O_LARGEFILE.
1627
1628 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1629             Joseph Myers  <joseph@codesourcery.com>
1630
1631         * config.make.in (NM): New variable.
1632
1633 2012-10-21  Andreas Jaeger  <aj@suse.de>
1634
1635         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1636         definitions and declarations that are provided by
1637         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1638
1639 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1640
1641         [BZ #14683]
1642         * elf/Makefile (tests-static): Add tst-leaks1-static.
1643         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1644         ($(objpfx)tst-leaks1-static): New rule.
1645         ($(objpfx)tst-leaks1-static-mem): Likewise.
1646         (tst-leaks1-static-ENV): New macro.
1647         * elf/dl-open.c (dl_open_worker): Check the main application
1648         only if SHARED is defined.
1649         * elf/tst-leaks1-static.c: New file.
1650
1651 2012-10-20  Andreas Jaeger  <aj@suse.de>
1652
1653         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1654         generic values for Linux.
1655         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1656         and declarations that are provided by <bits/fcntl-linux.h> and
1657         include <bits/fcntl-linux.h>.
1658         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1659         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1660
1661 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1662
1663         * io/fcntl.h: Move include of <bits/types.h> to the top and
1664         include it unconditionally.
1665
1666 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1667
1668         * wcsmbs/Makefile (tests-ifunc): New variable.
1669         (tests): Add $(tests-ifunc).
1670         * wcsmbs/test-wcschr-ifunc.c: New file.
1671         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1672         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1673         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1674         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1675         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1676
1677         * string/Makefile (tests-ifunc): New variable.
1678         (tests): Add $(tests-ifunc).
1679         * string/test-memccpy.c (TEST_NAME): New macro.
1680         * string/test-memchr.c (TEST_NAME): Likewise.
1681         * string/test-memcmp.c (TEST_NAME): Likewise.
1682         * string/test-memcpy.c (TEST_NAME): Likewise.
1683         * string/test-memmem.c (TEST_NAME): Likewise.
1684         * string/test-memmove.c (TEST_NAME): Likewise.
1685         * string/test-memset.c (TEST_NAME): Likewise.
1686         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1687         * string/test-stpcpy.c (TEST_NAME): Likewise.
1688         * string/test-stpncpy.c (TEST_NAME): Likewise.
1689         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1690         * string/test-strcasestr.c (TEST_NAME): Likewise.
1691         * string/test-strcat.c (TEST_NAME): Likewise.
1692         * string/test-strchr.c (TEST_NAME): Likewise.
1693         * string/test-strcmp.c(TEST_NAME): Likewise.
1694         * string/test-strcpy.c (TEST_NAME): Likewise.
1695         * string/test-strcspn.c (TEST_NAME): Likewise.
1696         * string/test-strlen.c (TEST_NAME): Likewise.
1697         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1698         * string/test-strncmp.c (TEST_NAME): Likewise.
1699         * string/test-strncpy.c (TEST_NAME): Likewise.
1700         * string/test-strnlen.c (TEST_NAME): Likewise.
1701         * string/test-strpbrk.c (TEST_NAME): Likewise.
1702         * string/test-strrchr.c (TEST_NAME): Likewise.
1703         * string/test-strspn.c (TEST_NAME): Likewise.
1704         * string/test-strstr.c (TEST_NAME): Likewise.
1705         * string/test-bcopy-ifunc.c: New file.
1706         * string/test-bzero-ifunc.c: Likewise.
1707         * string/test-memccpy-ifunc.c: Likewise.
1708         * string/test-memchr-ifunc.c: Likewise.
1709         * string/test-memcmp-ifunc.c: Likewise.
1710         * string/test-memcpy-ifunc.c: Likewise.
1711         * string/test-memmem-ifunc.c: Likewise.
1712         * string/test-memmove-ifunc.c: Likewise.
1713         * string/test-mempcpy-ifunc.c: Likewise.
1714         * string/test-memset-ifunc.c: Likewise.
1715         * string/test-rawmemchr-ifunc.c: Likewise.
1716         * string/test-stpcpy-ifunc.c: Likewise.
1717         * string/test-stpncpy-ifunc.c: Likewise.
1718         * string/test-strcasecmp-ifunc.c: Likewise.
1719         * string/test-strcasestr-ifunc.c: Likewise.
1720         * string/test-strcat-ifunc.c: Likewise.
1721         * string/test-strchr-ifunc.c: Likewise.
1722         * string/test-strchrnul-ifunc.c: Likewise.
1723         * string/test-strcmp-ifunc.c: Likewise.
1724         * string/test-strcpy-ifunc.c: Likewise.
1725         * string/test-strcspn-ifunc.c: Likewise.
1726         * string/test-strlen-ifunc.c: Likewise.
1727         * string/test-strncasecmp-ifunc.c: Likewise.
1728         * string/test-strncat-ifunc.c: Likewise.
1729         * string/test-strncmp-ifunc.c: Likewise.
1730         * string/test-strncpy-ifunc.c: Likewise.
1731         * string/test-strnlen-ifunc.c: Likewise.
1732         * string/test-strpbrk-ifunc.c: Likewise.
1733         * string/test-strrchr-ifunc.c: Likewise.
1734         * string/test-strspn-ifunc.c: Likewise.
1735         * string/test-strstr-ifunc.c: Likewise.
1736
1737         * debug/Makefile (tests-ifunc): New variable.
1738         (tests): Add $(tests-ifunc).
1739         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1740         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1741         * debug/test-stpcpy_chk-ifunc.c: New file.
1742         * debug/test-strcpy_chk-ifunc.c: Likewise.
1743
1744 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1745
1746         [BZ #13601]
1747         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1748         header is not read in.
1749
1750 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1751
1752         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1753         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1754         directly.  Pass built executable to script as
1755         $(built-program-cmd).
1756         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1757         $testprogram without using LD_LIBRARY_PATH and $ldso.
1758
1759         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1760         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1761         $(rtld-installed-name).
1762         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1763         (rtld_installed_name): Likewise.
1764         (library_path): Likewise.
1765         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1766         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1767         $(run-program-prefix) to tst-tables.sh.
1768         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1769         it to run tst-table-from and tst-table-to.
1770         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1771         Pass it to tst-table.sh.
1772         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1773         $(run-program-prefix) to tst-gettext.sh.
1774         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1775         tst-translit.sh.
1776         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1777         tst-gettext2.sh.
1778         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1779         to run tst-gettext.
1780         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1781         to run tst-gettext2.
1782         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1783         to run tst-translit.
1784         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1785         $(run-program-prefix) to tst-mtrace.sh.
1786         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1787         to run tst-mtrace.
1788         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1789         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1790         $(rtld-installed-name).
1791         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1792         (rtld_installed_name): Likewise.
1793         (run_program_prefix): New variable.  Use it to run wordexp-test.
1794
1795         * Makeconfig (ARCH): Remove all definitions.
1796         (machine): Likewise.
1797         [ARCH]: Remove conditional code.
1798         [!objdir]: Give error.
1799         [!objdir] (objpfx): Remove.
1800         [!objdir] (common-objpfx): Likewise.
1801         [!objdir] (common-objdir): Likewise.
1802         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1803         AC_CONFIG_FILES call.
1804         * configure: Regenerated.
1805
1806         [BZ #13888]
1807         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1808         or TMPDIR.
1809         (testout): Likewise.
1810
1811         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1812         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1813         $(rtld-installed-name).
1814         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1815         (rtld_installed_name): Likwise.
1816         (runit): Remove function.
1817         (run_getconf): New variable,  Use it for running getconf binary.
1818
1819 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1820
1821         [BZ #14716]
1822         * string/test-memmem.c (check_result): New function.
1823         (do_one_test): Use it.
1824         (check1): New function.
1825         (test_main): Use it.
1826
1827 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1828
1829         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1830
1831 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1832
1833         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1834         (_G_LSEEK64): Likewise.
1835         (_G_MMAP64): Likewise.
1836         (_G_FSTAT64): Likewise.
1837         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1838         (_G_LSEEK64): Likewise.
1839         (_G_MMAP64): Likewise.
1840         (_G_FSTAT64): Likewise.
1841         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1842         unconditional.  Call __mmap64 directly.
1843         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1844         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1845         __lseek64 directly.
1846         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1847         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1848         __mmap64 directly.
1849         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1850         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1851         __lseek64 directly.
1852         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1853         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1854         __lseek64 directly.
1855         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1856         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1857         __lseek64 directly.
1858         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1859         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1860         __fxstat64 directly.
1861         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1862         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1863         unconditional.
1864         (freopen64) [!_G_OPEN64]: Remove conditional code.
1865         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1866         unconditional.
1867         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1868         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1869         unconditional.
1870         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1871         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1872         unconditional.
1873         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1874         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1875         unconditional.
1876         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1877         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1878         unconditional.
1879         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1880         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1881         unconditional.
1882         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1883         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1884         unconditional.
1885         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1886
1887 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1888
1889         [BZ #12140]
1890         * manual/memory.texi (Malloc Tunable Parameters): Add note
1891         about free list pointers overwriting some perturb bytes.
1892         Wording suggested by Roland McGrath.
1893
1894 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1895
1896         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1897         (lgamma_test): Likewise.
1898         (tgamma_test): Likewise.
1899
1900 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1901
1902         [BZ #14700]
1903         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1904         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1905
1906 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1907
1908         * NEWS: Mention BZ #14716.
1909         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1910         when removing AVAILABLE1_USES_J macro.
1911
1912 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1915         (__bswap_64): __uint64_t for unsigned 64-bit int.
1916
1917 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1918
1919         * include/string.h (memmem): Declare libc hidden alias.
1920         * string/memmem.c (memmem): Define libc hidden alias.
1921         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1922         __read, __close instead of open, read, close.
1923
1924 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1925
1926         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1927         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1928         global and hidden.
1929         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1930         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1931         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1932         Likewise.
1933         (__rawmemchr_sse2): Likewise.
1934         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1935         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1936         (__strchr_sse2): Likewise.
1937         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1938         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1939         (__strcasecmp_sse2): Likewise.
1940         (__strncasecmp_sse2): Likewise.
1941         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1942         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1943         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1944         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1945         (__strrchr_sse2): Likewise.
1946         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1947         ifunc-impl-list.c.
1948         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1949         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1950         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1951         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1952         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1953         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1954         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1955         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1956         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1957         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1958         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1959         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1960         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1961         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1962         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1963         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1964         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1965         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1966         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1967         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1968         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1969         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1970         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1971         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1972         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1973         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1974         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1975         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1976         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1977         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1978
1979         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1980         global and hidden.
1981         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1982         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1983         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1984         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1985         Likewise.
1986         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1987         Likewise.
1988         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1989         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1990         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1991         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1992         ifunc-impl-list.c.
1993         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1994         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1995         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1996         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1997         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1998         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1999         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2000         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2001         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2002         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2003         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2004         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2005         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2006         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2007         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2008         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2009         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2010         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2011         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2012         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2013         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2014         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2015         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2016         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2017         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2018         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2019         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2020         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2021         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2022         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2023         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2024         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2025         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2026         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2027         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2028         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2029         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2030         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2031         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2032         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2033         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2034
2035         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2036         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2037         * include/ifunc-impl-list.h: New file.
2038         * misc/ifunc-impl-list.c: Likewise.
2039         * misc/Makefile (routines): Add ifunc-impl-list.
2040         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2041         * string/test-string.h: Include <ifunc-impl-list.h>.
2042         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2043         impl_array): New variables.
2044         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2045         are defined.
2046         (test_init): Call __libc_ifunc_impl_list to initialize
2047         func_list if TEST_IFUNC and TEST_NAME are defined.
2048
2049         * string/Makefile (strop-tests): Add bcopy and bzero.
2050         * string/test-bcopy.c: New file.
2051         * string/test-bzero.c: Likewise.
2052         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2053         defined.
2054         * string/test-memset.c: Support bzero test if TEST_BZERO is
2055         defined.
2056         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2057         __libc_memmove.
2058         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2059         __libc_memset.
2060         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2061         of memset.
2062
2063 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2064
2065         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2066         * configure: Regenerated.
2067
2068         * Makeconfig (+link-static-before-libc): Don't include
2069         $(link-static-libc).
2070
2071         * libio/libio.h (_IO_pos_t): Remove.
2072
2073 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2074
2075         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2076         McGrath.
2077
2078 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2079
2080         * crypt/crypt-entry.c: Include fips-private.h.
2081         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2082         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2083         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2084         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2085
2086 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2087
2088         * crypt/crypt-private.h: Include stdbool.h.
2089         (_ufc_setup_salt_r): Return bool.
2090         * crypt/crypt-entry.c: Include errno.h.
2091         (__crypt_r): Return NULL with EINVAL for bad salt.
2092         * crypt/crypt_util.c (bad_for_salt): New.
2093         (_ufc_setup_salt_r): Check that salt is long enough and within
2094         the specified alphabet.
2095         * crypt/badsalttest.c: New file.
2096         * crypt/Makefile (tests): Add it.
2097         ($(objpfx)badsalttest): New.
2098
2099 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2100
2101         * NEWS: Add entry for BZ #14602.
2102
2103 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2104
2105         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2106         type-generic.
2107         * math/libm-test.inc: Update comment listing what functions and
2108         macros are tested.
2109         (isgreater_test): New function.
2110         (isgreaterequal_test): Likewise.
2111         (isless_test): Likewise.
2112         (islessequal_test): Likewise.
2113         (islessgreater_test): Likewise.
2114         (isunordered_test): Likewise.
2115         (main): Call the new functions.
2116
2117 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2118
2119         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2120         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2121         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2122         * sysdeps/i386/configure: Regenerated.
2123         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2124         * sysdeps/mach/configure: Regenerated.
2125         * sysdeps/mach/hurd/configure: Regenerated.
2126         * sysdeps/powerpc/configure: Regenerated.
2127         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2128         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2129         * sysdeps/s390/s390-32/configure: Regenerated.
2130         * sysdeps/s390/s390-64/configure: Regenerated.
2131         * sysdeps/sh/configure: Regenerated.
2132         * sysdeps/sparc/configure: Regenerated.
2133         * sysdeps/unix/sysv/linux/configure: Regenerated.
2134         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2135         * sysdeps/x86_64/configure: Regenerated.
2136
2137         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2138         defined.  Don't check if MAP is NULL.
2139
2140 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2141
2142         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2143         (_G_stat64): Likewise.
2144         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2145         (_G_stat64): Likewise.
2146         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2147         instead of struct _G_stat64.
2148         * libio/fileops.c (mmap_remap_check): Likewise.
2149         (decide_maybe_mmap): Likewise.
2150         (_IO_new_file_seekoff): Likewise.
2151         (_IO_file_stat): Likewise.
2152         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2153         _G_off64_t.
2154         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2155         instead of struct _G_stat64.
2156         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2157
2158 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2159
2160         [BZ #14602]
2161         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2162         Replace with ...
2163         (CHECK_EOL): New macro.
2164         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2165         CHECK_EOL.
2166         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2167         Replace with CHECK_EOL.
2168         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2169         Replace with CHECK_EOL.
2170
2171 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2172
2173         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2174         type-generic.
2175         * math/libm-test.inc: Update comment listing what functions and
2176         macros are tested.
2177         (finite_test): New function.
2178         (isinf_test): Likewise.
2179         (isnan_test): Likewise.
2180         (fpclassify_test): Test subnormal input.
2181         (isfinite_test): Likewise.
2182         (isnormal_test): Likewise.
2183         (main): Call the new functions.
2184
2185 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2186
2187         [BZ #14660]
2188         * Makerules (%.dynsym): Force C locale when running
2189         $(OBJDUMP) --dynamic-syms.
2190
2191 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2192
2193         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2194         <stdint.h>.
2195
2196 2012-10-06  David S. Miller  <davem@davemloft.net>
2197
2198         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2199         upper 32-bits of the length value in %o2 since we use branch-on-register
2200         tests which consider the entire 64-bit register.
2201
2202 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2203
2204         * string/test-strstr.c (check2): Add a test for page boundary.
2205
2206 2012-10-05  David S. Miller  <davem@davemloft.net>
2207
2208         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2209         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2210         file.
2211         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2212         sysdep_routines.
2213         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2214         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2215         and bzero when HWCAP_SPARC_CRYPTO is present.
2216
2217 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2218
2219         [BZ #14602]
2220         * string/test-strstr.c (check2): New function.
2221         (test_main): Call check2.
2222
2223         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2224         and bug-strchr1.
2225         * string/bug-strcasestr1.c (do_test): Moved to ...
2226         * string/test-strcasestr.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-strchr1.c (do_test): Moved to ...
2232         * string/test-strchr.c (check1): Here.  New function.
2233         (do_one_test): Break out result checking code into ...
2234         (check_result): This.  New function.
2235         (do_one_test): Call check_result.
2236         (test_main): Call check1.
2237         * string/bug-strstr1.c (main): Moved to ...
2238         * string/test-strchr.c (check1): Here.  New function.
2239         (do_one_test): Break out result checking code into ...
2240         (check_result): This.  New function.
2241         (do_one_test): Call check_result.
2242         (test_main): Call check1.
2243         * string/bug-strcasestr1.c: Removed.
2244         * string/bug-strchr1.c: Likewise.
2245         * string/bug-strstr1.c: Likewise.
2246
2247         * elf/Makefile (dl-routines): Add hwcaps.
2248         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2249         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2250         (_dl_important_hwcaps): Moved to ...
2251         * elf/dl-hwcaps.c: Here.  New file.
2252         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2253
2254         [BZ #14557]
2255         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2256         if IS_IN_rtld isn't defined.
2257
2258         * elf/dl-support.c (_dl_sysinfo_map): New.
2259         Include "get-dynamic-info.h" and "setup-vdso.h".
2260         (_dl_non_dynamic_init): Call setup_vdso.
2261         * elf/dynamic-link.h: Don't include <assert.h>.
2262         (elf_get_dynamic_info): Moved to ...
2263         * elf/get-dynamic-info.h: Here.  New file.
2264         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2265         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2266         * elf/setup-vdso.h: Here.  New file.
2267         * elf/rtld.c: Include "setup-vdso.h".
2268         (dl_main): Call setup_vdso.
2269
2270 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2271
2272         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2273         creal in comment listing functions tested.  List finite, isinf,
2274         isnan, isless, islessequal, isgreater, isgreaterequal,
2275         islessgreater, isunordered, lgamma_r and pow10 as functions and
2276         macros not tested.  Mention which functions not tested are aliases
2277         for other functions.  Fix typo.  Note that signs of NaNs are not
2278         tested.
2279
2280         * scripts/config.guess: Update from config.git.
2281         * scripts/config.sub: Likewise.
2282
2283 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2284
2285         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2286         * misc/madvise.c (madvise): Renamed to __madvise.
2287         Make madvise a weak alias.
2288         * include/sys/mman.h: Declare __madvise.
2289         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2290         * sysdeps/unix/syscalls.list
2291         (madvise): Make __madvise the strong name, and madvise a weak alias.
2292         * sysdeps/unix/sysv/linux/syscalls.list
2293         (madvise, mmap): Remove redundant entries.
2294         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2295         * malloc/malloc.c (mtrim): Likewise.
2296         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2297
2298 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2299
2300         * sysdeps/mach/hurd/dl-cache.c: File removed.
2301         * config.h.in (USE_LDCONFIG): New #undef.
2302         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2303         * configure: Regenerated.
2304         * elf/Makefile (dl-routines): Add dl-cache only under
2305         [$(use-ldconfig) = yes].
2306         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2307         cache on [USE_LDCONFIG].
2308         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2309         [USE_LDCONFIG].
2310         * elf/rtld.c (dl_main): Likewise.
2311
2312 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2313
2314         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2315         _SC_LEVEL4_CACHE_LINESIZE.
2316
2317 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2318
2319         * sysdeps/unix/bsd/confstr.h: File removed.
2320
2321 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2322
2323         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2324         sys/sdt-config.h.
2325
2326 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2327
2328         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2329         Make 'mapoff' field ElfW(Off) rather than off_t.
2330
2331 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2332
2333         * nscd/Makefile: Remove nscd-cflags and all its users.
2334         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2335         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2336
2337         [BZ #10631]
2338         * malloc.c (malloc_printerr): Clarify error message.
2339
2340 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2341
2342         [BZ #14648]
2343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2344         Set bit_FMA_Usable if FMA is supported.
2345         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2346         macro.
2347         (bit_FMA4_Usable): Updated.
2348         (index_FMA_Usable): New macro.
2349         (CPUID_FMA): Likewise
2350         (HAS_FMA): Defined with bit_FMA_Usable.
2351
2352 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2353
2354         * bits/types.h (__swblk_t): Type removed.
2355         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2356         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2357         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2358         (__SWBLK_T_TYPE): Likewise.
2359         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2360         (__SWBLK_T_TYPE): Likewise.
2361         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2362         (__SWBLK_T_TYPE): Likewise.
2363         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2364         (__SWBLK_T_TYPE): Likewise.
2365
2366 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2367             Honza Horak <hhorak@redhat.com>
2368
2369         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2370         (xdr_mapname): Use YPMAXMAP as maxsize.
2371         (xdr_peername): Use YPMAXPEER as maxsize.
2372         (xdr_keydat): Use YPAXRECORD as maxsize.
2373         (xdr_valdat): Use YPMAXRECORD as maxsize.
2374
2375 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2376
2377         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2378
2379         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2380         * csu/init-first.c: ... here.
2381         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2382         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2383         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2384         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2385         * sysdeps/i386/init-first.c: File removed.
2386         * sysdeps/sh/init-first.c: File removed.
2387
2388 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2389
2390         [BZ #14645]
2391         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2392         if x * y might underflow to zero and z is zero.
2393         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2394         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2395         * math/libm-test.inc (min_subnorm_value): New variable.
2396         (fma_test): Add more tests.
2397         (fma_test_towardzero): Likewise.
2398         (fma_test_downward): Likewise
2399         (fma_test_upward): Likewise.
2400         (initialize): Set min_subnorm_value.
2401
2402 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2403
2404         [BZ #14638]
2405         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2406         0 + 0.
2407         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2408         mode for addition resulting in exact zero.
2409         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2410         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2411         exact 0 + 0.
2412         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2413         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2414         * math/libm-test.inc (fma_test): Add more tests.
2415         (fma_test_towardzero): New function.
2416         (fma_test_downward): Likewise.
2417         (fma_test_upward): Likewise.
2418         (main): Call the new functions.
2419
2420 2012-09-28  David S. Miller  <davem@davemloft.net>
2421
2422         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2423
2424 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2425
2426         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2427         instead of SIGALRM.
2428
2429         * sysdeps/gnu/_G_config.h: Moved to ...
2430         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2431         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2432         * sysdeps/generic/_G_config.h: ... here.
2433
2434         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2435
2436         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2437
2438         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2439         Conditionalize target on [libnss_test1.so-version].
2440
2441         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2442
2443         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2444         (elfobjdir): Move out of conditionals.
2445
2446         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2447         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2448         (__nss_lookup_function): Conditionalize label remove_from_tree on
2449         [!DO_STATIC_NSS || SHARED], matching its only use.
2450
2451 2012-09-28  David S. Miller  <davem@davemloft.net>
2452
2453         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2454         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2455         file.
2456         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2457         sysdep_routines.
2458         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2459         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2460         when HWCAP_SPARC_CRYPTO is present.
2461
2462 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2463
2464         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2465
2466 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2467
2468         [BZ #6530]
2469         * stdio-common/vfprintf.c (process_string_arg): Revert
2470         2000-07-22 change.
2471
2472 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2473
2474         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2475         for testcase.
2476         * stdio-common/tst-sprintf.c: Include <locale.h>
2477         (main): Test sprintf's handling of incomplete multibyte
2478         characters.
2479
2480 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2481
2482         * elf/dl-runtime.c (VERSYMIDX): Removed.
2483         * elf/dl-version.c (VERSYMIDX): Likewise.
2484         * elf/do-rel.h (VERSYMIDX): Likewise.
2485         (VALIDX): Likewise.
2486         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2487         * elf/rtld.c (VALIDX): Likewise.
2488         (ADDRIDX): Likewise.
2489         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2490         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2491         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2492         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2493         (VALIDX): Likewise.
2494         (ADDRIDX): Likewise.
2495
2496 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2497
2498         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2499
2500 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2501
2502         [BZ #11438]
2503         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2504         to global scope.
2505         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2506         addresses are in the same scope as 192.0.2/24.
2507         * posix/gai.conf: Document new scope table defaults.
2508
2509 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2510
2511         [BZ #5298]
2512         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2513         for ftell.  Compute offsets from write pointers instead.
2514         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2515
2516 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2517
2518         [BZ #14543]
2519         * libio/Makefile (tests): New test case tst-fseek.
2520         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2521         combination works in wide mode.
2522         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2523         state when the external buffer state changes.
2524
2525 2012-09-27  David S. Miller  <davem@davemloft.net>
2526
2527         [BZ #14376]
2528         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2529         pass reloc->r_addend in as the 'high' argument to
2530         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2531
2532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2533
2534 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2535
2536         * rt/tst-aio2.c: Include <pthread.h>.
2537         * rt/tst-aio3.c: Likewise.
2538
2539 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2540
2541         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2542
2543 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2544
2545         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2546         contents on [SHARED].
2547
2548 2012-09-26  Marek Polacek  <polacek@redhat.com>
2549
2550         [BZ #14530]
2551         [BZ #13741]
2552         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2553         for C++ and GCC <4.3 as well as for non GCC compilers.
2554
2555 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2556
2557         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2558
2559 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2560
2561         * Makefile.in (all, install): Declare with .PHONY.
2562         Reported by Michael Hope <michael.hope@linaro.org>.
2563
2564 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2565
2566         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2567         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2568         system header.
2569         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2570         Likewise.
2571         (sydep_routines): Add the new and the internal functions.
2572         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2573         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2575         (GLIBC_2.17): Add the new function.
2576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2577         (GLIBC_2.17): Likewise.
2578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2579         (GLIBC_2.17): Likewise.
2580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2581         (GLIBC_2.17): Likewise.
2582         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2583
2584 2012-09-25  Alan Modra  <amodra@gmail.com>
2585
2586         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2587         Add release barrier before setting once_control to say
2588         initialisation is done.  Add hints on lwarx.  Use macro in
2589         place of isync.
2590         (clear_once_control): Add release barrier.
2591
2592 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2593
2594         [BZ #13629]
2595         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2596         specially.
2597         * math/s_clog10.c (__clog10): Likewise.
2598         * math/s_clog10f.c (__clog10f): Likewise.
2599         * math/s_clog10l.c (__clog10l): Likewise.
2600         * math/s_clogf.c (__clogf): Likewise.
2601         * math/s_clogl.c (__clogl): Likewise.
2602         * math/Makefile (libm-calls): Add x2y2m1.
2603         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2604         (__x2y2m1): Likewise.
2605         (__x2y2m1l): Likewise.
2606         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2607         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2608         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2609         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2610         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2611         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2612         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2613         * sysdeps/i386/fpu/libm-test-ulps: Update.
2614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2615
2616         [BZ #14621]
2617         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2618         int as type of variable DEPTH.
2619         (glob): Use size_t instead of int as type of variables NEWCOUNT
2620         and OLD_PATHC.
2621
2622 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2623
2624         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2625         Add s_sincosf-sse2.
2626         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2627         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2628         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2629         macros for using routine as __sincosf_ia32.
2630         Use macro for function declaration and weak_alias.
2631         * sysdeps/i386/fpu/libm-test-ulps: Update.
2632
2633         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2634         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2635
2636         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2637         subnormal argument.
2638         * math/s_cexpf.c (__cexpf): Likewise.
2639         * math/s_csinf.c (__csinf): Likewise.
2640         * math/s_csinhf.c (__csinhf): Likewise.
2641         * math/s_ctanf.c (__ctanf): Likewise.
2642         * math/s_ctanhf.c (__ctanhf): Likewise.
2643         * math/s_ccosh.c (__ccoshf): Likewise.
2644         * math/s_cexp.c (__cexpl): Likewise.
2645         * math/s_csin.c (__csin): Likewise.
2646         * math/s_csinh.c (__csinh): Likewise.
2647         * math/s_ctan.c (__ctan): Likewise.
2648         * math/s_ctanh.c (ctanh): Likewise.
2649         * math/s_ccoshl.c (__ccoshl): Likewise.
2650         * math/s_cexpl.c (__cexpl): Likewise.
2651         * math/s_csinl.c (__csinl): Likewise.
2652         * math/s_csinhl.c (__csinhl): Likewise.
2653         * math/s_ctanl.c (__ctanl): Likewise.
2654         * math/s_ctanhl.c (__ctanhl): Likewise.
2655
2656 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2657
2658         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2659         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2660         (_IO_off_t): Define to __off_t, not _G_off_t.
2661         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2662         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2663         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2664         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2665         type of __dummy and __dummy2 fields.
2666         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2667         (_G_ssize_t): Likewise.
2668         (_G_off_t): Likewise.
2669         (_G_pid_t): Likewise.
2670         (_G_uid_t): Likewise.
2671         (_G_wchar_t): Likewise.
2672         (_G_wint_t): Likewise.
2673         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2674         (_G_ssize_t): Likewise.
2675         (_G_off_t): Likewise.
2676         (_G_pid_t): Likewise.
2677         (_G_uid_t): Likewise.
2678         (_G_wchar_t): Likewise.
2679         (_G_wint_t): Likewise.
2680         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2681         (_G_ssize_t): Likewise.
2682         (_G_off_t): Likewise.
2683         (_G_pid_t): Likewise.
2684         (_G_uid_t): Likewise.
2685         (_G_wchar_t): Likewise.
2686         (_G_wint_t): Likewise.
2687
2688 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2689
2690         * malloc/arena.c: Include malloc-sysdep.h.
2691         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2692         is sufficient to shrink the heap or an unmap is needed.
2693         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2694         new function check_may_shrink_heap.
2695         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2696         new function check_may_shrink_heap.
2697
2698 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2699
2700         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2701         comments.
2702
2703 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2704
2705         * catgets/test-gencat.sh: Add "set -e".
2706         * elf/tst-pathopt.sh: Likewise.
2707         * grp/tst_fgetgrent.sh: Likewise.
2708         * iconvdata/run-iconv-test.sh: Likewise.
2709         * intl/tst-gettext.sh: Likewise.
2710         * intl/tst-gettext2.sh: Likewise.
2711         * intl/tst-gettext4.sh: Likewise.
2712         * intl/tst-gettext6.sh: Likewise.
2713         * intl/tst-translit.sh: Likewise.
2714         * io/ftwtest-sh: Likewise.
2715         * libio/test-freopen.sh: Likewise.
2716         * malloc/tst-mtrace.sh: Likewise.
2717         * posix/globtest.sh: Likewise.
2718         * posix/tst-getconf.sh: Likewise.
2719         * posix/wordexp-tst.sh: Likewise.
2720         * stdio-common/tst-printf.sh: Likewise.
2721         * stdio-common/tst-unbputc.sh: Likewise.
2722         * stdlib/tst-fmtmsg.sh: Likewise.
2723         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2724         * catgets/Makefile: Do not specify -e option when running
2725         testsuite shell scripts.
2726         * elf/Makefile: Likewise.
2727         * grp/Makefile: Likewise.
2728         * iconvdata/Makefile: Likewise.
2729         * intl/Makefile: Likewise.
2730         * io/Makefile: Likewise.
2731         * libio/Makefile: Likewise.
2732         * malloc/Makefile: Likewise.
2733         * posix/Makefile: Likewise.
2734         * stdio-common/Makefile: Likewise.
2735         * stdlib/Makefile: Likewise.
2736         * sysdeps/x86_64/Makefile: Likewise.
2737
2738         * io/ftwtest-sh: Add copyright header.
2739         * posix/globtest.sh: Likewise.
2740         * posix/tst-getconf.sh: Likewise.
2741         * posix/wordexp-tst.sh: Likewise.
2742         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2743
2744 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2745
2746         [BZ #13679]
2747         * Makeconfig (+link): Defined as $(+link-static) if
2748         $(build-shared) isn't yes.
2749         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2750         isn't yes.
2751         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2752
2753         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2754
2755         [BZ #14562]
2756         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2757         new chunk size with MALLOC_ALIGN_MASK.
2758
2759 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2760
2761         [BZ #5044]
2762         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2763         <rounding-mode.h>.
2764         (__printf_fphex): Determine rounding using get_rounding_mode and
2765         round_away.
2766         * stdio-common/tst-printf-round.c (struct hex_test): New
2767         structure.
2768         (hex_tests): New variable.
2769         (test_hex_in_one_mode): New function.
2770         (do_test): Also run tests for hex float output.
2771
2772 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2773
2774         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2775         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2776         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2777         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2778         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2779         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2780         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2781         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2782
2783 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2784
2785         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2786         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2787         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2788         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2789
2790 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2791
2792         [BZ #14579]
2793         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2794         mode only.
2795         * elf/tst-rtld-load-self.sh: New test.
2796         * elf/Makefile: Run it.
2797
2798 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2799
2800         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2801         (tst-writev-ENV): Remove.
2802         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2803
2804 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2805
2806         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2807
2808 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2809
2810         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2811         unconditional.
2812         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2813         Likewise.
2814         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2815         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2816         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2817         Likewise.
2818
2819 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2820
2821         [BZ #14587]
2822         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2823         * config.make.in (have-cpp-asm-debuginfo): Removed.
2824         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2825         * configure: Regenerated.
2826
2827 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2828
2829         [BZ #5044]
2830         * stdio-common/printf_fp.c: Include <stdbool.h> and
2831         <rounding-mode.h>.
2832         (___printf_fp): Determine rounding using get_rounding_mode and
2833         round_away.
2834         * stdio-common/tst-printf-round.c: New file.
2835         * stdio-common/Makefile (tests): Add tst-printf-round.
2836         (link-libm): New variable.
2837         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2838
2839 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2840
2841         [BZ #14576]
2842         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2843         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2844         Likewise.
2845         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2846         Likewise.
2847
2848 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2849
2850         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2851         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2852         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2853         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2854
2855 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2856
2857         [BZ #14518]
2858         * include/rounding-mode.h: New file.
2859         * sysdeps/generic/get-rounding-mode.h: Likewise.
2860         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2861         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2862         (MAX_VALUE): New macro.
2863         (MIN_VALUE): Likewise.
2864         (overflow_value): New function.
2865         (underflow_value): Likewise.
2866         (round_and_return): Use overflow_value and underflow_value to
2867         determine return values in overflow and underflow cases.  Use
2868         round_away to determine rounding depending on rounding mode.
2869         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2870         determine return values in overflow and underflow cases.
2871         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2872         (struct test_results): New structure.
2873         (struct test): Use struct test_results to store expected results
2874         for all rounding modes.
2875         (TEST): Include expected results for all rounding modes.
2876         (test_in_one_mode): New function.
2877         (do_test): Use test_in_one_mode to compute and check results.
2878         Check results for all rounding modes.
2879         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2880         $(link-libm).
2881
2882 2012-12-09  Allan McRae  <allan@archlinux.org>
2883
2884         * sysdeps/i386/fpu/libm-test-ulps: Update
2885
2886 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2887
2888         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2889         (_G_int32_t): Likewise.
2890         (_G_uint16_t): Likewise.
2891         (_G_uint32_t): Likewise.
2892         (_G_HAVE_BOOL): Likewise.
2893         (_G_HAVE_ATEXIT): Likewise.
2894         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2895         (_G_HAVE_IO_FILE_OPEN): Likewise.
2896         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2897         (_G_int32_t): Likewise.
2898         (_G_uint16_t): Likewise.
2899         (_G_uint32_t): Likewise.
2900         (_G_HAVE_BOOL): Likewise.
2901         (_G_HAVE_ATEXIT): Likewise.
2902         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2903         (_G_HAVE_IO_FILE_OPEN): Likewise.
2904         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2905         (_G_int32_t): Likewise.
2906         (_G_uint16_t): Likewise.
2907         (_G_uint32_t): Likewise.
2908         (_G_HAVE_BOOL): Likewise.
2909         (_G_HAVE_ATEXIT): Likewise.
2910         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2911         (_G_HAVE_IO_FILE_OPEN): Likewise.
2912
2913 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2914
2915         * csu/libc-tls.c: Update copyright years.
2916
2917 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2918
2919         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2920         [!_G_USING_THUNKS]: Remove conditional code.
2921         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2922         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2923
2924         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2925         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2926         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2927         (_G_VTABLE_LABEL_PREFIX): Likewise.
2928         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2929         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2930         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2931         (_G_VTABLE_LABEL_PREFIX): Likewise.
2932         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2933         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2934         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2935         (_G_VTABLE_LABEL_PREFIX): Likewise.
2936         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2937
2938 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2939
2940         * libio/Makefile: Include ../Makeconfig before tests.
2941         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2942         only if $(build-shared) is yes.
2943
2944         * iconv/gconv_db.c: Update copyright years.
2945
2946 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2947
2948         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2949         unwind info if defined PIC. Fix special cases description.
2950         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2951
2952         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2953         DP_HI_MASK entry.
2954         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2955
2956 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2957
2958         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2959
2960         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2961         is NULL.
2962
2963         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2964         (LDLIBS-tst-chk4): This.
2965         (LDFLAGS-tst-chk5): Renamed to ...
2966         (LDLIBS-tst-chk5): This.
2967         (LDFLAGS-tst-chk6): Renamed to ...
2968         (LDLIBS-tst-chk6): This.
2969         (LDFLAGS-tst-lfschk4): Renamed to ...
2970         (LDLIBS-tst-lfschk4): This.
2971         (LDFLAGS-tst-lfschk5): Renamed to ...
2972         (LDLIBS-tst-lfschk5): This.
2973         (LDFLAGS-tst-lfschk6): Renamed to ...
2974         (LDLIBS-tst-lfschk6): This.
2975
2976         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2977         on $(common-objpfx)soversions.mk.
2978
2979 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2980
2981         [BZ #10014]
2982         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2983         example host name.
2984
2985 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2986
2987         * malloc/arena.c (arena_get_retry): New function that gets
2988         another arena for the caller to try its request on.
2989         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2990         current arena cannot fulfill the request.
2991         (__libc_memalign): Likewise.
2992         (__libc_memalign): Likewise.
2993         (__libc_pvalloc): Likewise.
2994         (__libc_calloc): Likewise.
2995
2996 2012-09-05  John Tobey  <john.tobey@gmail.com>
2997
2998         [BZ #13542]
2999         * manual/arith.texi (Operations on Complex): Fix description
3000         of carg branch cut.
3001
3002 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3003
3004         [BZ #10014]
3005         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3006         host name.
3007
3008         [BZ #10038]
3009         * manual/memory.texi (Memory): Make order of menu items match
3010         order of sections.
3011
3012 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3013
3014         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3015         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3016         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3017
3018 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3019
3020         * csu/libc-tls.c (static_dtv): Renamed to ...
3021         (_dl_static_dtv): This.  Make it global.
3022         (_dl_initial_dtv): Removed.
3023         (__libc_setup_tls): Updated.
3024         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3025         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3026         DL_INITIAL_DTV.
3027
3028 2012-09-06  Petr Machata  <pmachata@redhat.com>
3029
3030         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3031         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3032         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3033         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3034
3035 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3036
3037         [BZ #14545]
3038         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3039         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3040         freeing dtv[-1].
3041
3042 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         [BZ #14544]
3045         * Makeconfig (link-static-before-libc): Replace $(+prector)
3046         with $(+prectorT).
3047         (link-static-after-libc): Replace $(+postctor) with
3048         $(+postctorT).
3049         (link-bounded): Replace $(+prector)/$(+postctor) with
3050         $(+prectorT)/$(+postctorT).
3051         (+prectorT): New macro.
3052         (+postctorT): Likewise.
3053
3054 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3055
3056         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3057         (round_str): Handle values above the maximum for IBM long double
3058         as inexact.
3059         * stdlib/tst-strtod-round.c (tests): Regenerated.
3060
3061 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3062
3063         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3064         assembler flag.
3065         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3066         zarch_nohighgprs around the zarch optimized routines.
3067         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3068         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3069         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3070         for zarch.
3071
3072 2012-09-05  David S. Miller  <davem@davemloft.net>
3073
3074         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3075
3076         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3077         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3078         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3079         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3080         entries.
3081
3082 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3083
3084         * malloc/arena.c: Fold copyright years.
3085         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3086
3087 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3088
3089         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3090
3091 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3092
3093         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3094
3095 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3096
3097         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3098         change internal state upon failure.
3099
3100 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3101
3102         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3103         * malloc/memusage.c (mmap): Likewise.
3104         (mmap64, mremap): Likewise.  Adjust name in comment.
3105
3106 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3107
3108         * libio/fileops.c: Fix typos in comments.
3109         * libio/oldfileops.c: Likewise.
3110         * libio/wfileops.c: Likewise.
3111
3112 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3113
3114         [BZ #1349]
3115         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3116         (tst-malloc-usable-ENV): Set environment for test case.
3117         * malloc/hooks.c (malloc_check_get_size): New function to get
3118         requested size.
3119         * malloc/malloc.c (musable): Use malloc_check_get_size.
3120         * malloc/tst-malloc-usable.c: New test case.
3121
3122 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3123
3124         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3125
3126 2012-09-05  Allan McRae  <allan@archlinux.org>
3127
3128         [BZ #13966]
3129         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3130         determine header location.
3131         * configure: Regenerated.
3132
3133 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3134
3135         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3136         float format.
3137         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3138         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3139         format.
3140         (test): Regenerate.
3141
3142 2012-09-04  David S. Miller  <davem@davemloft.net>
3143
3144         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3145         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3146         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3147
3148 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3149
3150         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3151         failures.
3152
3153         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3154
3155 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3156
3157         [BZ #9914]
3158         * libio/iogetdelim.c: Include <limits.h>.
3159         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3160         + len + 1 would overflow.
3161
3162 2012-09-03  Andreas Jaeger  <aj@suse.de>
3163
3164         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3165         * sysdeps/i386/fpu/libm-test-ulps: Update.
3166
3167 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3168
3169         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3170         Add s_sinf-sse2, s_conf-sse2.
3171
3172         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3173         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3174         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3175         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3176
3177         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3178         for using routine as __sinf_ia32.
3179         Use macro for function declaration and weak_alias.
3180         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3181         for using routine as __cosf_ia32.
3182         Use macro for function declaration and weak_alias.
3183
3184         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3185         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3186
3187         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3188         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3189         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3190
3191         * math/libm-test.inc (cos_test): Add more test cases.
3192         (sin_test): Likewise.
3193         (sincos_test): Likewise.
3194
3195 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3196
3197         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3198         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3199         hidden.
3200         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3201
3202 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3203
3204         [BZ #14538]
3205         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3206         first element of the GOT.
3207         (elf_machine_load_address): Return the difference between
3208         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3209
3210 2012-09-01  Allan McRae  <allan@archlinux.org>
3211
3212         [BZ #13412]
3213         * configure.in (AWK): Require gawk version 3.0 or later.
3214         * configure: Regenerated.
3215
3216 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3217
3218         * sysdeps/unix/sysv/linux/kernel-features.h
3219         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3220         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3221         [__NR_clock_getres]: Make code unconditional.
3222         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3223         (clock_getcpuclockid): Remove code left unreachable by removal of
3224         conditionals.
3225         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3226         code unconditional.
3227         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3228         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3229         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3230         Make code unconditional.
3231         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3232         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3233         * sysdeps/unix/sysv/linux/clock_settime.c
3234         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3235         conditional code.
3236         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3237         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3238
3239 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3240
3241         [BZ #14476]
3242         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3243         scripts/test-installation.pl.
3244
3245         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3246         and $ld_so_version if it is set.
3247
3248 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3249
3250         [BZ #14516]
3251         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3252         failure if reading from procfs failed.
3253         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3254
3255 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3256
3257         * sysdeps/unix/sysv/linux/kernel-features.h
3258         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3259         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3260         Remove conditional code.
3261         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3262         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3263         Remove conditional code.
3264         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3265         * sysdeps/unix/sysv/linux/i386/fxstat.c
3266         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3267         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3268         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3269         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3270         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3271         * sysdeps/unix/sysv/linux/i386/lxstat.c
3272         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3273         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3274         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3275         Remove conditional code.
3276         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3277         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3278         Remove conditional code.
3279         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3280         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3281         <kernel-features.h>.
3282         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3283         Remove.
3284         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3285         Remove conditional code.
3286         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3287         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3288         Remove conditional.
3289
3290 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3291
3292         [BZ #5400]
3293         * NEWS: Add fixed bug number.
3294
3295 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3296
3297         [BZ #14519]
3298         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3299         underflowing exponent in case of negative sign.
3300         * stdlib/tst-strtod-round-data: Add more tests.
3301         * stdlib/tst-strtod-round.c (tests): Regenerated.
3302
3303         [BZ #3479]
3304         * stdlib/strtod_l.c (NDIG): Remove.
3305         (HEXNDIG): Likewise.
3306         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3307         smallest representable value.
3308         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3309         lie within an exact representation of 1/2 ulp of the result.
3310         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3311         unconditionally.
3312         (TENS_P9_IDX): Define unconditionally.
3313         (TENS_P9_SIZE): Likewise.
3314         (TENS_P10_IDX): Likewise.
3315         (TENS_P10_SIZE): Likewise.
3316         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3317         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3318         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3319         entries for 10^2^13 and 10^2^14.
3320         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3321         (TENS_P13_IDX): Define.
3322         (TENS_P13_SIZE): Likewise.
3323         (TENS_P14_IDX): Likewise.
3324         (TENS_P14_SIZE): Likewise.
3325         (_fpioconst_pow10): Change array size to
3326         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3327         unconditional.
3328         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3329         1024]: Add entries for 10^2^13 and 10^2^14.
3330         [LAST_POW10 > _LAST_POW10]: Remove #error.
3331         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3332         (_fpioconst_pow10): Change array size to
3333         FPIOCONST_POW10_ARRAY_SIZE.
3334         * stdlib/gen-fpioconst.c: New file.
3335         * stdlib/gen-tst-strtod-round.c: Likewise.
3336         * stdlib/tst-strtod-round-data: Likewise.
3337         * stdlib/tst-strtod-round.c: Likewise.
3338         * stdlib/Makefile (tests): Add tst-strtod-round.
3339
3340         [BZ #14459]
3341         * stdlib/strtod_l.c: Include <stdint.h>.
3342         (NDEBUG): Do not define.
3343         (round_and_return): Change EXPONENT parameter to type intmax_t.
3344         Rearrange calculations to avoid internal overflow possibilities.
3345         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3346         Rearrange calculations to avoid internal overflow possibilities.
3347         Assert that number fits inside MPNSIZE limbs.
3348         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3349         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3350         calculations and add assertions to avoid internal overflow
3351         possibilities.  Add casts to avoid signed/unsigned operations.
3352         * stdlib/tst-strtod-overflow.c: New file.
3353         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3354
3355 2012-08-25  Marek Polacek  <polacek@redhat.com>
3356
3357         * time/time.h: Fix some typos in comments.
3358
3359 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3360
3361         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3362         * posix/tst-rfc3484-2.c: Likewise.
3363         * posix/tst-rfc3484-3.c: Likewise.
3364
3365 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3366
3367         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3368         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3369
3370 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3371
3372         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3373         #include of fxstatat64.c.
3374
3375 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3376
3377         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3378         * shadow/getspent_r.c: Likewise.
3379         * shadow/getspnam.c: Likewise.
3380         * shadow/getspnam_r.c: Likewise.
3381         * gshadow/getsgent.c: Likewise.
3382         * gshadow/getsgent_r.c: Likewise.
3383         * gshadow/getsgnam.c: Likewise.
3384         * gshadow/getsgnam_r.c: Likewise.
3385         * inet/getnetbyad.c: Likewise.
3386         * inet/getnetbyad_r.c: Likewise.
3387         * inet/getnetbynm.c: Likewise.
3388         * inet/getnetbynm_r.c: Likewise.
3389         * inet/getnetent.c: Likewise.
3390         * inet/getnetent_r.c: Likewise.
3391         * inet/getproto.c: Likewise.
3392         * inet/getproto_r.c: Likewise.
3393         * inet/getprtent.c: Likewise.
3394         * inet/getprtent_r.c: Likewise.
3395         * inet/getprtname.c: Likewise.
3396         * inet/getprtname_r.c: Likewise.
3397         * inet/getrpcbyname.c: Likewise.
3398         * inet/getrpcbyname_r.c: Likewise.
3399         * inet/getrpcbynumber.c: Likewise.
3400         * inet/getrpcbynumber_r.c: Likewise.
3401         * inet/getrpcent.c: Likewise.
3402         * inet/getrpcent_r.c: Likewise.
3403         * inet/getaliasent.c: Likewise.
3404         * inet/getaliasent_r.c: Likewise.
3405         * inet/getaliasname.c: Likewise.
3406         * inet/getaliasname_r.c: Likewise.
3407         * nscd/getgrgid_r.c: Likewise.
3408         * nscd/getgrnam_r.c: Likewise.
3409         * nscd/gethstbyad_r.c: Likewise.
3410         * nscd/gethstbynm3_r.c: Likewise.
3411         * nscd/getpwnam_r.c: Likewise.
3412         * nscd/getpwuid_r.c: Likewise.
3413         * nscd/getsrvbynm_r.c: Likewise.
3414         * nscd/getsrvbypt_r.c: Likewise.
3415         * nscd/gai.c: Likewise.
3416
3417         * configure.in (build_nscd): New substituted variable, set
3418         by --disable-build-nscd and defaults to $use_nscd.
3419         * configure: Regenerated.
3420         * config.make.in (build-nscd): New substituted variable.
3421         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3422         Change conditional to require [$(build-nscd) = yes] as well.
3423         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3424
3425         [BZ# 13696]
3426         * configure.in (use_nscd): New substituted variable, set by
3427         --disable-nscd.  If enabled, define USE_NSCD.
3428         * configure: Regenerated.
3429         * config.h.in: Add USE_NSCD.
3430         * config.make.in (use-nscd): New substituted variable.
3431         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3432         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3433         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3434         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3435         (CFLAGS-getgrnam_r.c): Likewise.
3436         (CFLAGS-initgroups.c): Likewise.
3437         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3438         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3439         Variables removed.
3440         * inet/getnetgrent_r.c
3441         (nscd_setnetgrent): New function, broken out of ...
3442         (setnetgrent): ... here.  Call it.
3443         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3444         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3445         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3446         * nscd/Makefile (routines, aux): Move definitions after include of
3447         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3448         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3449         Conditionalize on [USE_NSCD].
3450         (is_nscd, nscd_init_cb): Likewise.
3451         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3452         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3453         * nss/nss_db/db-init.c: Likewise.
3454         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3455         [USE_NSCD].
3456         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3457         (make_request): Use it.
3458         (cache_valid_p): New function.
3459         (__check_pf): Use it.
3460         * NEWS: Add item for --disable-nscd.
3461
3462 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3463
3464         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3465         to support sed >= 4.2.1-20-ga9bf076.
3466         * configure: Regenerated.
3467
3468 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3469
3470         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3471         Conditionalize whole body on [IREL].
3472
3473 2012-08-22  Jeff Law <law@redhat.com>
3474
3475         [BZ #14505]
3476         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3477         if the family is PF_UNSPEC.
3478
3479 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3480
3481         * Makerules (lib-version): Rename from V.
3482         (install-lib-nosubdir): Change V to lib-version.
3483
3484 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3485
3486         [BZ #14252]
3487         * powerpc32/power6/wcschr.c: New file.
3488         * powerpc32/power6/wcscpy.c: New file.
3489         * powerpc32/power6/wcsrchr.c: New file.
3490         * powerpc64/power6/wcschr.c: New file.
3491         * powerpc64/power6/wcscpy.c: New file.
3492         * powerpc64/power6/wcsrchr.c: New file.
3493
3494 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3495
3496         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3497         (two_way_short_needle): Use it.
3498         * string/strstr.c (AVAILABLE1_USES_J): Define.
3499         * string/strcasestr.c: Likewise.
3500
3501         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3502         array references.
3503         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3504
3505         [BZ #11607]
3506         * NEWS: Add an entry.
3507         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3508         define their defaults.
3509         (two_way_short_needle): Detect end-of-string on-the-fly.
3510         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3511         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3512         * string/bug-strcasestr1.c: New test.
3513         * string/Makefile: Run it.
3514
3515 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3516
3517         [BZ #11607]
3518         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3519         the first character.
3520
3521 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3522
3523         * csu/elf-init.c (__libc_csu_irel): Function removed.
3524         * csu/libc-start.c (apply_irel): New function.
3525         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3526
3527 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3528
3529         * sysdeps/unix/sysv/linux/kernel-features.h
3530         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3531         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3532         <kernel-features.h>.
3533         [__NR_fadvise64_64]: Make code unconditional.
3534         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3535         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3536         !__NR_fadvise64_64)]: Likewise.
3537         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3538         !__NR_fadvise64_64))]: Likewise.
3539         [__NR_fadvise64]: Make code unconditional.
3540         [!__NR_fadvise64]: Remove conditional code.
3541         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3542         <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         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3548         not include <kernel-features.h>.
3549         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3550         unconditional.
3551         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3552         conditional code.
3553         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3554         include <kernel-features.h>.
3555         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3556         unconditional.
3557         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3558         conditional code.
3559
3560 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3561
3562         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3563         slight instruction rearrangements per scrollpipe analysis.
3564         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3565
3566 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3567
3568         * manual/syslog.texi (syslog; vsyslog, closelog):
3569         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3570         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3571
3572         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3573         DSOCAPS to match condition on defining it.
3574
3575 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3576
3577         * sysdeps/unix/sysv/linux/kernel-features.h
3578         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3580         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3581         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3583         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3584         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3586         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3587         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3588
3589         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3590         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3591
3592         * sysdeps/unix/sysv/linux/kernel-features.h
3593         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3594         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3595         unconditional.
3596         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3597         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3598         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3599         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3600         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3601         Make code unconditional.
3602         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3603         (__mmap64) [!__NR_mmap2]: Likewise.
3604         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3605         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3606         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3607         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3608         [__NR_mmap2]: Make code unconditional.
3609         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3610         (__mmap64) [!__NR_mmap2]: Likewise.
3611
3612 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3613
3614         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3615
3616 2012-08-18  Andreas Jaeger  <aj@suse.de>
3617
3618         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3619
3620 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3621
3622         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3623         * include/unistd.h (__have_sock_cloexec): Likewise.
3624         (__have_pipe2): Likewise.
3625         (__have_dup3): Likewise.
3626
3627 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3628
3629         [BZ #9685]
3630         * include/unistd.h (__have_pipe2): Change define into an extern int.
3631         (__have_dup3): Likewise.
3632         * socket/have_sock_cloexec.c: Include fcntl.h.
3633         (__have_pipe2): New variable.
3634         (__have_dup3): Likewise.
3635
3636 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3637
3638         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3639
3640 2012-08-17  Marek Polacek  <polacek@redhat.com>
3641
3642         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3643         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3644
3645 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3646
3647         * configure.in: Add AC_SUBST for sysheaders.
3648         * configure: Regenerated.
3649         * config.make.in (sysheaders): New substituted variable.
3650
3651         * sysdeps/unix/mkfifo.c: Moved ...
3652         * sysdeps/posix/mkfifo.c: ... here.
3653         * sysdeps/unix/mkfifoat.c: Moved ...
3654         * sysdeps/posix/mkfifoat.c: ... here.
3655
3656         * sysdeps/unix/utime.c: Moved ...
3657         * sysdeps/posix/utime.c: ... here.
3658
3659         * sysdeps/unix/time.c: Moved ...
3660         * sysdeps/posix/time.c: ... here.
3661         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3662         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3663
3664         * sysdeps/unix/nice.c: Moved ...
3665         * sysdeps/posix/nice.c: ... here.
3666
3667         * sysdeps/unix/alarm.c: Moved ...
3668         * sysdeps/posix/alarm.c: ... here.
3669
3670         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3671
3672 2012-08-17  Jeff Law <law@redhat.com>
3673
3674         * intl/Makefile (codeset_mo): New variable.
3675         ($(codeset_mo)): New target.
3676         (tst-codeset.out): Depend on that.  Remove explicit rule.
3677         (tst-gettext3.out, tst-gettext5.out): Likewise.
3678         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3679         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3680         * intl/tst-codeset.sh: Remove.
3681         * intl/tst-gettext3.sh: Likewise.
3682         * intl/tst-gettext5.sh: Likewise.
3683
3684 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3685
3686         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3687         * sysdeps/unix/syscalls.list: ... here.
3688
3689         * sysdeps/posix/getaddrinfo.c
3690         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3691         (gaiconf_init, gaiconf_reload): Use them.
3692         [!_STATBUF_ST_NSEC]
3693         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3694         Define using time_t rather than struct timespec.
3695
3696         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3697         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3698         Macros removed.
3699         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3700         [!NO_THREADS].
3701         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3702         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3703         Likewise.
3704
3705         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3706         __libc_cleanup_push argument.
3707
3708         * bits/param.h: New file.
3709         * misc/sys/param.h: New file.
3710         * include/sys/param.h: New file.
3711         * misc/Makefile (headers): Add bits/param.h.
3712         * sysdeps/generic/sys/param.h: File removed.
3713         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3714         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3715         * sysdeps/mach/hurd/bits/param.h: New file.
3716         * sysdeps/mach/hurd/sys/param.h: File removed.
3717
3718         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3719         last change.
3720
3721         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3722         [_IO_MTSAFE_IO].
3723         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3724         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3725         New macros.
3726
3727         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3728         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3729         rather than -D_IO_MTSAFE_IO conditionally.
3730         * stdio-common/Makefile (CPPFLAGS): Likewise.
3731         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3732         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3733         Use $(libio-mtsafe).
3734         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3735         of -D_IO_MTSAFE_IO.
3736         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3737         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3738         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3739         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3740         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3741         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3742         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3743         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3744         (CFLAGS-fread_u_chk.c): Likewise.
3745         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3746         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3747         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3748         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3749         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3750         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3751         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3752         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3753         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3754
3755         * libio/Makefile: Test [$(libc-reentrant) = yes]
3756         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3757
3758         * Makeconfig
3759         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3760         * sysdeps/pthread/configure: File removed.
3761         * sysdeps/pthread/Makeconfig: New file.
3762         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3763         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3764
3765 2012-08-16  Gary Benson  <gbenson@redhat.com>
3766
3767         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3768         unmapping the first object in a namespace.
3769
3770 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3771
3772         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3773         (__internal_setnetgrent): ... this.  Add internal_function to
3774         definition.  Add libc_hidden_def.
3775         (setnetgrent): Update caller.
3776         (internal_endnetgrent): Renamed to ...
3777         (__internal_endnetgrent): ... this.  Add internal_function to
3778         definition.  Add libc_hidden_def.
3779         (endnetgrent): Update caller.
3780         (internal_getnetgrent_r): Renamed to ...
3781         (__internal_getnetgrent_r): ... this.  Add internal_function to
3782         definition.  Add libc_hidden_def.
3783         (__getnetgrent_r): Update caller.
3784         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3785
3786 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3787
3788         * stdlib/longlong.h: Update from GCC.
3789
3790 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3791
3792         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3793         on _QL, which is set by umul_ppmm but never used.
3794         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3795         variables, which are set by GMP macros but never used.
3796         * stdio-common/_itowa.c (_itowa): Likewise.
3797         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3798         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3799
3800 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3801
3802         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3803         struct La_sh_regs is not constant.
3804         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3805         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3806         and struct La_sparc64_regs are not constant.
3807
3808 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3809
3810         * sysdeps/unix/sysv/linux/kernel-features.h
3811         (__ASSUME_POSIX_TIMERS): Remove.
3812         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3813         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3814         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3815         Make code unconditional.
3816         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3817         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3818         Make code unconditional.
3819         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3820         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3821         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3822         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3823         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3824         Make code unconditional.
3825         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3826         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3827         (__libc_missing_posix_timers): Remove.
3828
3829 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3830
3831         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3832         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3833
3834         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3835
3836         * elf/dl-sym.c: Include <stdlib.h>.
3837
3838         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3839         constants, which avoids warnings in 32-bit builds.
3840
3841         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3842         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3843
3844         * misc/lseek.c: File moved to ...
3845         * io/lseek.c: ... here.
3846
3847         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3848
3849         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3850         shifting LEN more than 31 bits at once.
3851
3852 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3853
3854         [BZ #14195]
3855         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3856         segmentation fault for a case of two empty input strings.
3857         * string/test-strncasecmp.c (check1): Renamed to...
3858         (bz12205): ...this.
3859         (bz14195): Add new testcase for two empty input strings and N > 0.
3860         (test_main): Call new testcase, adapt for renamed function.
3861
3862 2012-08-15  Andreas Jaeger  <aj@suse.de>
3863
3864         [BZ #14090]
3865         * crypt/md5test2.c: New test, based on test supplied by Serge
3866         Belyshev <belyshev@depni.sinp.msu.ru>.
3867         * crypt/Makefile (xtests): Add md5test-giant..
3868         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3869
3870 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3871
3872         [BZ #14090]
3873         * crypt/md5.c (md5_process_block): Don't assume the buffer
3874         length is less than 2**32.
3875         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3876         length is less than 2**64.
3877
3878 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3879
3880         * string/str-two-way.h: Include <sys/param.h>.
3881         (MAX): Macro removed.
3882
3883         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3884         Move #define and #undef of memmove to just before and after
3885         including <string.h>.
3886
3887         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3888         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3889         and after including <string.h>.  Move declarations of
3890         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3891         to before #include "string/memmove.c".
3892
3893         * include/dirent.h: Declare __getdirentries.
3894
3895         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3896         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3897
3898 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3899
3900         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3901         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3902         * sysdeps/i386/configure: Regenerated.
3903         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3904         STABS_CURRENT_FILE, and STABS_FUN.
3905         (END): Remove call to STABS_FUN_END.
3906         (STABS_CURRENT_FILE1): Delete.
3907         (STABS_CURRENT_FILE): Likewise.
3908         (STABS_FUN): Likewise.
3909         (STABS_FUN_END): Likewise.
3910         (STABS_FUN2): Likewise.
3911         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3912         * sysdeps/x86_64/configure: Regenerated.
3913
3914 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3915
3916         * elf/dl-open.c: Include <atomic.h>.
3917         * elf/dl-lookup.c: Likewise.
3918
3919 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3920
3921         * sysdeps/unix/sysv/linux/kernel-features.h
3922         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3923         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3924         unconditionally.
3925         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3926         unconditionally.
3927         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3928         condition on __ASSUME_CLONE_THREAD_FLAGS.
3929
3930 2012-08-14  Andreas Jaeger  <aj@suse.de>
3931
3932         * sysdeps/i386/fpu/libm-test-ulps: Update.
3933
3934 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3935
3936         * include/atomic.h (atomic_exchange_and_add): Split into ...
3937         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3938         New atomic macros.
3939
3940 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3941
3942         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3943
3944 2012-08-13  Jeff Law <law@redhat.com>
3945
3946         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3947         null byte in the output string.
3948
3949 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3950
3951         * sysdeps/unix/sysv/linux/kernel-features.h
3952         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3953         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3954         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3955         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3956         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3957         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3958         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3959
3960 2012-08-09  Jeff Law <law@redhat.com>
3961
3962         [BZ #13939]
3963         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3964         When avoid_arena is set, don't retry in the that arena.  Pick the
3965         next one, whatever it might be.
3966         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3967         (arena_lock): Pass in new parameter to arena_get2.
3968         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3969         arena_get2.
3970         (__libc_malloc): Unify retrying after main arena failure with
3971         __libc_memalign version.
3972         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3973
3974 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         [BZ #14166]
3977         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3978         to __redirect_strstr.
3979         (__strstr_sse42): Use typeof __redirect_strstr.
3980         (__strstr_ia32): Likewise.
3981         (__libc_strstr): New prototype.
3982         (strstr): Renamed to ...
3983         (__libc_strstr): This.
3984         (strstr): New strong alias of __libc_strstr.
3985         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3986         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3987         __redirect_time.
3988         Include <time.h>.
3989         (__libc_time): New prototype.
3990         (time_ifunc): Replace time with __libc_time.
3991         (time): New strong alias and hidden definition of __libc_time.
3992         (__GI_time): Remove strong alias.
3993         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3994         Include <stddef.h>.
3995         (memmove): Redefined to __redirect_memmove.
3996         (__memmove_sse2): Use typeof __redirect_memmove.
3997         (__memmove_ssse3): Likewise.
3998         (__memmove_ssse3_back): Likewise.
3999         (__libc_memmove): New prototype.
4000         (memmove): Renamed to ...
4001         (__libc_memmove): This.
4002         (memmove): New strong alias of __libc_memmove.
4003
4004 2012-08-08  Mark Salter  <msalter@redhat.com>
4005
4006         * elf/elf.h
4007         (R_MN10300_TLS_GD): Define.
4008         (R_MN10300_TLS_LD): Likewise.
4009         (R_MN10300_TLS_LDO): Likewise.
4010         (R_MN10300_TLS_GOTIE): Likewise.
4011         (R_MN10300_TLS_IE): Likewise.
4012         (R_MN10300_TLS_LE): Likewise.
4013         (R_MN10300_TLS_DTPMOD): Likewise.
4014         (R_MN10300_TLS_DTPOFF): Likewise.
4015         (R_MN10300_TLS_TPOFF): Likewise.
4016         (R_MN10300_SYM_DIFF): Likewise.
4017         (R_MN10300_ALIGN): Likewise.
4018         (R_MN10300_NUM): Update.
4019
4020 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4021
4022         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4023         Remove.
4024
4025 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4026
4027         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4028
4029         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4030         sysdeps/unix -> sysdeps/posix move.
4031         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4032
4033 2012-08-07      Allan McRae     <allan@archlinux.org>
4034
4035         [BZ #14303]
4036         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4037         (SUNOS_CPP): Likewise.
4038         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4039         not found.
4040         (open_input): Call CPP using execvp.
4041
4042 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4043
4044         * sysdeps/unix/sysv/linux/kernel-features.h
4045         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4046         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4047         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4048         (__ASSUME_WAITID_SYSCALL): Likewise.
4049         * sysdeps/unix/sysv/linux/dl-execstack.c
4050         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4051         code unconditional.
4052         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4053         conditional code.
4054         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4055         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4056         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4057         code.
4058         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4059         unconditional.
4060         [__ASSUME_WAITID_SYSCALL]: Likewise.
4061         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4062
4063 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4064
4065         * sysdeps/unix/closedir.c: Renamed to ...
4066         * sysdeps/posix/closedir.c: ... here.
4067         * sysdeps/unix/dirfd.c: Renamed to ...
4068         * sysdeps/posix/dirfd.c: ... here.
4069         * sysdeps/unix/dirstream.h: Renamed to ...
4070         * sysdeps/posix/dirstream.h: ... here.
4071         * sysdeps/unix/fdopendir.c: Renamed to ...
4072         * sysdeps/posix/fdopendir.c: ... here.
4073         * sysdeps/unix/opendir.c: Renamed to ...
4074         * sysdeps/posix/opendir.c: ... here.
4075         * sysdeps/unix/readdir.c: Renamed to ...
4076         * sysdeps/posix/readdir.c: ... here.
4077         * sysdeps/unix/readdir_r.c: Renamed to ...
4078         * sysdeps/posix/readdir_r.c: ... here.
4079         * sysdeps/unix/rewinddir.c: Renamed to ...
4080         * sysdeps/posix/rewinddir.c: ... here.
4081         * sysdeps/unix/seekdir.c: Renamed to ...
4082         * sysdeps/posix/seekdir.c: ... here.
4083         * sysdeps/unix/telldir.c: Renamed to ...
4084         * sysdeps/posix/telldir.c: ... here.
4085         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4086         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4087         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4088         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4089
4090         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4091         * bits/fcntl.h: ... here.
4092
4093         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4094         not 0.
4095         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4096         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4097         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4098         (struct flock): Move l_start, l_len to the beginning.
4099         Use __pid_t for l_pid.
4100         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4101         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4102         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4103         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4104         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4105         [__USE_LARGEFILE64] (struct flock64): New type.
4106         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4107
4108         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4109         * bits/dirent.h: ... here.
4110
4111         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4112         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4113
4114 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4115
4116         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4117         Change from 2.6.0 to 2.6.16.
4118         * sysdeps/unix/sysv/linux/configure: Regenerated.
4119         * sysdeps/unix/sysv/linux/kernel-features.h
4120         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4121         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4122         version.
4123         (__ASSUME_UTIMES): Likewise.
4124         (__ASSUME_CLONE_STOPPED): Remove.
4125         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4126         architectures, not kernel version.
4127         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4128         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4129         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4130         (__ASSUME_WAITID_SYSCALL): Likewise.
4131         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4132         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4133         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4134         refer to older versions.
4135
4136 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4137
4138         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4139         Define alphasort64 as an alias.
4140         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4141         Define versionsort64 as an alias.
4142         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4143         Define scandir64 as an alias.
4144         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4145         Define scandirat64 as an alias.
4146         * dirent/alphasort64.c (alphasort64):
4147         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4148         * dirent/versionsort64.c: Likewise.
4149         * dirent/scandir64.c: Likewise.
4150         * dirent/scandirat64.c: Likewise.
4151         * sysdeps/wordsize-64/alphasort.c: File removed.
4152         * sysdeps/wordsize-64/alphasort64.c: File removed.
4153         * sysdeps/wordsize-64/scandir.c: File removed.
4154         * sysdeps/wordsize-64/scandir64.c: File removed.
4155         * sysdeps/wordsize-64/scandirat.c: File removed.
4156         * sysdeps/wordsize-64/scandirat64.c: File removed.
4157         * sysdeps/wordsize-64/versionsort.c: File removed.
4158         * sysdeps/wordsize-64/versionsort64.c: File removed.
4159         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4160         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4161         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4162         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4163         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4164         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4165         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4166         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4167
4168         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4169         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4170         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4171         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4172         [defined __arch64__ || defined __sparcv9]
4173         (__INO_T_MATCHES_INO64_T): New macro.
4174         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4175         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4176         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4177         * sysdeps/unix/sysv/linux/bits/dirent.h
4178         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4179         (_DIRENT_MATCHES_DIRENT64): New macro.
4180
4181         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4182         Define lockf64 as an alias.
4183         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4184         Define fseeko64 as an alias.
4185         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4186         Define ftello64 as an alias.
4187         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4188         Define _IO_fgetpos64 and fgetpos64 as aliases.
4189         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4190         Define _IO_fsetpos64 and fsetpos64 as aliases.
4191         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4192         Conditionalize body on this.
4193         * libio/fseeko64.c: Likewise.
4194         * libio/ftello64.c: Likewise.
4195         * libio/iofgetpos64.c: Likewise.
4196         * libio/iofsetpos64.c: Likewise.
4197         * sysdeps/wordsize-64/lockf.c: File removed.
4198         * sysdeps/wordsize-64/lockf64.c: File removed.
4199         * sysdeps/wordsize-64/fseeko.c: File removed.
4200         * sysdeps/wordsize-64/fseeko64.c: File removed.
4201         * sysdeps/wordsize-64/ftello.c: File removed.
4202         * sysdeps/wordsize-64/ftello64.c: File removed.
4203         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4204         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4205         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4206         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4207         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4208         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4209         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4210         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4211         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4212         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4213         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4214         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4215         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4216         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4217
4218         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4219         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4220         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4221         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4222         [defined __arch64__ || defined __sparcv9]
4223         (__OFF_T_MATCHES_OFF64_T): New macro.
4224         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4225         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4226         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4227         (__OFF_T_MATCHES_OFF64_T): New macro.
4228
4229 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4230
4231         * stdlib/secure-getenv.c (__secure_getenv): Replace
4232         GLIBC_2_16 with GLIBC_2_17.
4233
4234 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4235
4236         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4237         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4238
4239 2012-08-03  David S. Miller  <davem@davemloft.net>
4240
4241         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4242
4243 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4244
4245         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4246         Remove.
4247         (__ASSUME_CORRECT_SI_PID): Likewise.
4248         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4249         (__ASSUME_TMPFS_NAME): Likewise.
4250         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4251         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4252         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4253         (HAVE_AUX_SECURE): Make definition unconditional.
4254         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4255         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4256
4257 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4258
4259         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4260         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4261         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4262         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4263         __eloop_threshold instead of SYMLOOP_MAX.
4264
4265         * sysdeps/generic/eloop-threshold.h: New file.
4266         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4267         of MAXSYMLINKS.
4268         * elf/chroot_canon.c (chroot_canon): Likewise.
4269
4270 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4271
4272         [BZ #13717]
4273         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4274         Change to 2.6.0 everywhere.
4275         * sysdeps/unix/sysv/linux/configure: Regenerated.
4276         * sysdeps/unix/sysv/linux/kernel-features.h
4277         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4278         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4279         kernel versions.
4280         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4281         (__ASSUME_FUTEX_REQUEUE): Remove.
4282         (__ASSUME_STATFS64): Define unconditionally.
4283         (__ASSUME_AT_SECURE): Likewise.
4284         (__ASSUME_CORRECT_SI_PID): Likewise.
4285         (__ASSUME_TGKILL): Define without depending on kernel version for
4286         i386.
4287         (__ASSUME_UTIMES): Likewise.
4288         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4289         kernel version.
4290         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4291         (__ASSUME_TMPFS_NAME): Likewise.
4292         * README: Update reference to Linux kernel versions.
4293
4294 2012-08-02  Marek Polacek  <polacek@redhat.com>
4295
4296         [BZ# 14150]
4297         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4298         libc_cv_asm_type_prefix with %.
4299         * configure: Regenerated.
4300         * include/libc-symbols.h: Remove comment about
4301         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4302         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4303         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4304         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4305         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4306         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4307         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4308         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4309         * elf/tst-unique2mod1.c: Likewise.
4310         * elf/tst-unique1mod2.c: Likewise.
4311         * elf/tst-unique1mod1.c: Likewise.
4312         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4313         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4314         Replace ASM_TYPE_DIRECTIVE with .type.
4315         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4316         * sysdeps/i386/sysdep.h: Likewise.
4317         * sysdeps/x86_64/sysdep.h: Likewise.
4318         * sysdeps/sh/sysdep.h: Likewise.
4319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4320         Do not define ASM_TYPE_DIRECTIVE.
4321         * sysdeps/powerpc/sysdep.h: Likewise.
4322         * sysdeps/powerpc/powerpc32/sysdep.h:
4323         Replace ASM_TYPE_DIRECTIVE with .type.
4324         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4325         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4326         * sysdeps/i386/fpu/e_powf.S: Likewise.
4327         * sysdeps/i386/fpu/e_expl.S: Likewise.
4328         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4329         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4330         * sysdeps/i386/fpu/e_pow.S: Likewise.
4331         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4332         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4333         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4334         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4335         * sysdeps/i386/fpu/e_log2.S: Likewise.
4336         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4337         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4338         * sysdeps/i386/fpu/e_powl.S: Likewise.
4339         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4340         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4341         * sysdeps/i386/fpu/e_logl.S: Likewise.
4342         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4343         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4344         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4345         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4346         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4347         * sysdeps/i386/fpu/e_log.S: Likewise.
4348         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4349         * sysdeps/i386/fpu/e_logf.S: Likewise.
4350         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4351         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4352         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4353         * sysdeps/i386/fpu/e_log10.S: Likewise.
4354         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4355         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4356         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4357         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4358         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4359         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4360         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4361         * sysdeps/i386/i686/strtok.S: Likewise.
4362         * sysdeps/i386/i386-mcount.S: Likewise.
4363         * sysdeps/i386/strtok.S: Likewise.
4364         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4365         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4366         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4367         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4368         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4369         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4370         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4371         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4372         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4373         * sysdeps/x86_64/_mcount.S: Likewise.
4374         * sysdeps/x86_64/strtok.S: Likewise.
4375         * sysdeps/sh/_mcount.S: Likewise.
4376
4377 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4378
4379         * libio/iofopen.c: Include <fcntl.h>.
4380         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4381         (_IO_fopen64, fopen64): Define as aliases.
4382         * libio/iofopen64.c: Include <fcntl.h>.
4383         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4384         Conditionalize body on this.
4385         * sysdeps/wordsize-64/iofopen.c: File removed.
4386         * sysdeps/wordsize-64/iofopen64.c: File removed.
4387
4388 2012-08-01  Marek Polacek  <polacek@redhat.com>
4389
4390         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4391         Use dlfcn directly instead of a variable.
4392         (binfmt-subdir): Do not define.
4393         (dlfcn): Likewise.
4394
4395 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4396
4397         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4398         Remove all definitions.
4399         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4400         <kernel-features.h>.
4401         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4402         (miss_F_GETOWN_EX): Remove all definitions.
4403         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4404         macro definition.
4405         [!__ASSUME_FCNTL64]: Remove conditional code.
4406         [__ASSUME_FCNTL64]: Make code unconditional.
4407         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4408         <kernel-features.h>.
4409         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4410         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4411         (lockf64) [__NR_fcntl64]: Make code unconditional.
4412         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4413
4414         * sysdeps/unix/sysv/linux/kernel-features.h
4415         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4416         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4417         Make code unconditional.
4418         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4419         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4421         [__NR_vfork]: Make code unconditional.
4422         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4423         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4425         [__NR_vfork]: Make code unconditional.
4426         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4427         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4428
4429 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4430
4431         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4432         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4433
4434         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4435         Define mkstemp64 as an alias.
4436         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4437         Define mkstemps64 as an alias.
4438         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4439         Define mkostemp64 as an alias.
4440         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4441         Define mkostemps64 as an alias.
4442         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4443         Conditionalize body on this.
4444         * misc/mkostemp64.c: Likewise.
4445         * misc/mkostemps64.c: Likewise.
4446         * misc/mkstemps64.c: Likewise.
4447         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4448         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4449         * sysdeps/wordsize-64/mkostemp.c: File removed.
4450         * sysdeps/wordsize-64/mkstemp.c: File removed.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4455
4456         [BZ #14138]
4457         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4458         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4459         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4460         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4461
4462         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4463         compat_symbol macros from <shlib-compat.h> rather than the underlying
4464         default_symbol_version and symbol_version macros, so that DEFAULT
4465         lines in shlib-versions are respected.
4466         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4467
4468 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4469
4470         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4471         Declare with warn_unused_result.
4472         (setgid, setregid, setegid, setresgid): Likewise.
4473         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4474         Likewise.
4475         * WUR-REPORT: Remove set*id functions.
4476
4477 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4478
4479         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4480
4481 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4482
4483         * include/sys/socket.h (__libc_accept, __libc_accept4):
4484         Add attribute_hidden.
4485         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4486
4487         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4488         use of PTR_MANGLE.
4489         * inet/getnetgrent_r.c (setup): Likewise.
4490
4491         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4492
4493 2012-07-31  David S. Miller  <davem@davemloft.net>
4494
4495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4496
4497 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4498
4499         [BZ #13629]
4500         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4501         value between 1.0 and 2.0 and smaller part has absolute value less
4502         than 1.0.
4503         * math/s_clog10.c (__clog10): Likewise.
4504         * math/s_clog10f.c (__clog10f): Likewise.
4505         * math/s_clog10l.c (__clog10l): Likewise.
4506         * math/s_clogf.c (__clogf): Likewise.
4507         * math/s_clogl.c (__clogl): Likewise.
4508         * math/libm-test.inc (clog_test): Add more tests.
4509         (clog10_test): Likewise.
4510         * sysdeps/i386/fpu/libm-test-ulps: Update.
4511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4512
4513 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4514
4515         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4516         Exit with zero in case no suitable GID is found, and write a
4517         message to standard error.
4518
4519 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4520
4521         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4522         rather than to 1.
4523         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4524         (MAXPATHLEN): Removed.
4525         (NOGROUP, NODEV): New macros.
4526         (setbit, clrbit, isset, isclr): New macros.
4527         (howmany, roundup, powerof2): New macros.
4528         (DEV_BSIZE): New macro.
4529
4530         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4531         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4532
4533         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4534         definition on [!__NO_LONG_DOUBLE_MATH].
4535
4536         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4537         PTR_MANGLE and PTR_DEMANGLE.
4538
4539         * socket/accept4.c (accept4): Rename to __libc_accept4.
4540         Define accept4 as a weak alias.
4541
4542         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4543         on [_DIRENT_HAVE_D_TYPE].
4544         * io/ftw.c (ftw_dir): Likewise.
4545
4546         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4547
4548         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4549
4550         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4551         Use the BSD numbers rather than the arbitrary ones we had.
4552         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4553         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4554         (SIGXCPU, SIGXFSZ): New macros.
4555         (_NSIG): Now 32.
4556
4557         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4558         initializer on [_LIBC_REENTRANT].
4559
4560         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4561         definitions inside [_POSIX_MAPPED_FILES].
4562
4563         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4564
4565         * dirent/opendir.c: Include <fcntl.h>.
4566
4567         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4568         (__libc_getspecific): Likewise.
4569         (__libc_key_create): Likewise.
4570
4571         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4572         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4573         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4574         (tmpfile64): Define as alias.
4575         * sysdeps/wordsize-64/tmpfile.c: File removed.
4576         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4577         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4578         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4579
4580         * stdio-common/vfscanf.c: Include <stdbool.h>.
4581         * nss/makedb.c: Likewise.
4582         * stdio-common/_i18n_number.h: Likewise.
4583         * argp/argp-help.c: Likewise.
4584         * posix/wordexp.c: Likewise.
4585         * sysdeps/posix/spawni.c: Likewise.
4586         * nss/nss_files/files-initgroups.c: Likewise.
4587         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4588         * nss/nss_files/files-initgroups.c: Likewise.
4589         * nss/nss_db/db-netgrp.c: Likewise.
4590         * nss/nss_db/db-initgroups.c: Likewise.
4591         * io/fchmodat.c: Include <sys/stat.h>.
4592
4593         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4594         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4595
4596         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4597         [HAVE_MMAP].
4598
4599         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4600         Add multiple inclusion protection.
4601
4602 2012-07-27  David S. Miller  <davem@davemloft.net>
4603
4604         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4605
4606 2012-07-27  Gary Benson  <gbenson@redhat.com>
4607
4608         [BZ #14298]
4609         * elf/rtld.c: Include <stap-probe.h>.
4610         (dl_main): Added static probes "init_start" and "init_complete".
4611         * elf/dl-load.c: Include <stap-probe.h>.
4612         (lose): Take new parameter "nsid".
4613         Added static probe "map_failed".
4614         (_dl_map_object_from_fd): Pass namespace id to lose.
4615         Added static probe "map_start".
4616         (open_verify): Pass namespace id to lose.
4617         * elf/dl-open.c: Include <stap-probe.h>.
4618         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4619         and "reloc_complete".
4620         * elf/dl-close.c: Include <stap-probe.h>.
4621         (_dl_close_worker): Added static probes "unmap_start" and
4622         "unmap_complete".
4623         * elf/rtld-debugger-interface.txt: New file documenting the above.
4624
4625 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4626
4627         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4628         rather than a string variable.
4629         * sunrpc/rpc_main.c (h_output): Likewise.
4630         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4631
4632 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4633
4634         * inet/check_native.c: New file.
4635
4636 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4637
4638         [BZ #13629]
4639         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4640         if larger part has absolute value 1.0.
4641         * math/s_clog10.c (__clog10): Likewise.
4642         * math/s_clog10f.c (__clog10f): Likewise.
4643         * math/s_clog10l.c (__clog10l): Likewise.
4644         * math/s_clogf.c (__clogf): Likewise.
4645         * math/s_clogl.c (__clogl): Likewise.
4646         * math/libm-test.inc (clog_test): Add more tests.
4647         (clog10_test): Likewise.
4648         * sysdeps/i386/fpu/libm-test-ulps: Update.
4649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4650
4651         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4652         (pltexit): Likewise.
4653         (La_regs): Likewise.
4654         (La_retval): Likewise.
4655         (int_retval): Likewise.
4656         Update #error for removed macros to refer only to definitions in
4657         tst-audit.h.
4658         * elf/tst-auditmod3b.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-auditmod4b.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-auditmod5b.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-auditmod6b.c (pltenter): Remove all definitions of
4677         macro.
4678         (pltexit): Likewise.
4679         (La_regs): Likewise.
4680         (La_retval): Likewise.
4681         (int_retval): Likewise.
4682         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4683         macro.
4684         (pltexit): Likewise.
4685         (La_regs): Likewise.
4686         (La_retval): Likewise.
4687         (int_retval): Likewise.
4688         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4689         macro.
4690         (pltexit): Likewise.
4691         (La_regs): Likewise.
4692         (La_retval): Likewise.
4693         (int_retval): Likewise.
4694         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4695         macro definitions in tst-audit.h.
4696         * sysdeps/i386/tst-audit.h: New file.
4697         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4698         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4699         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4700         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4701         * sysdeps/sh/tst-audit.h: Likewise.
4702         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4703         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4704         * sysdeps/x86_64/tst-audit.h: Likewise.
4705
4706 2012-07-26  Andreas Jaeger  <aj@suse.de>
4707
4708         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4709         ptrace.
4710
4711         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4712         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4713         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4714         PTRACE_O_MASK.
4715         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4716         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4717         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4718
4719         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4720         value.
4721
4722         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4723         _sigsys.
4724         (si_call_addr, si_syscall, si_arch): Define new macro.
4725         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4726         _sigsys.
4727         (si_call_addr, si_syscall, si_arch): Define new marcro.
4728         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4729         _sigsys.
4730         (si_call_addr, si_syscall, si_arch): Define new macro.
4731         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4732         _sigsys.
4733         (si_call_addr, si_syscall, si_arch): Define new macro.
4734
4735 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4736
4737         [BZ #13717]
4738         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4739         Change to 2.4.21 where previously 2.4.1.
4740         * sysdeps/unix/sysv/linux/configure: Regenerated.
4741         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4742         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4743         Linux kernel version.
4744         (__ASSUME_STD_AUXV): Remove.
4745         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4746         kernel version.
4747         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4748         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4749         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4750         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4751         (__ASSUME_NETLINK_SUPPORT): Likewise.
4752         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4753         (__no_netlink_support): Remove conditional definition.
4754         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4755         Remove.
4756         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4757         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4758         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4759         (if_nameindex_ioctl): Remove.
4760         (if_nameindex_netlink): Do not handle __no_netlink_support.
4761         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4762         code.
4763         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4764         Remove conditional code.
4765         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4766         code.
4767         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4768         unconditional.
4769         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4770         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4771         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4772         Remove.
4773         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4774         [!__ASSUME_STD_AUXV]: Remove conditional code.
4775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4776         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4777         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4779         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4780         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4781         code.
4782         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4784         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4785         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4786         conditional code.
4787         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4789         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4790         code.
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4792         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4793         conditional code.
4794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4795         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4796         code unconditional.
4797         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4798         conditional code.
4799         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4800         unconditional.
4801         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4802         conditional code.
4803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4804         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4805         unconditional.
4806         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4807         conditional code.
4808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4809         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4810         code unconditional.
4811         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4812         conditional code.
4813         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4814         unconditional.
4815         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4816         conditional code.
4817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4818         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4819         code unconditional.
4820         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4821         conditional code.
4822         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4823         unconditional.
4824         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4825         conditional code.
4826
4827 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4828
4829         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4830         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4831         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4832         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4833         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4834         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4835         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4836         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4837         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4838         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4839         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4840         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4841         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4842         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4843         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4844         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4845         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4846         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4847         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4848         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4849         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4850         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4851         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4852
4853 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4854
4855         * Versions.def: Add GLIBC_2.17.
4856         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4857         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4858         Introduce __libc_secure_getenv.
4859         * stdlib/Versions (2.17): Add secure_getenv
4860         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4861         * stdlib/secure-getenv.c: Rename __secure_getenv to
4862         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4863         symbol __secure_getenv for GLIBC_2.0.
4864         * stdlib/tst-secure-getenv.c: New.
4865         * stdlib/Makefile (tests): Add testcase.
4866         * manual/startup.texi (Environment Access): Document
4867         secure_getenv.
4868         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4869         __libc_secure_getenv.
4870         * inet/ruserpass.c (ruserpass): Likewise.
4871         * malloc/mtrace.c (mtrace): Likewise.
4872         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4873         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4874         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4875         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4876         HAVE_SECURE_GETENV.
4877         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4878         __secure_getenv to __libc_secure_getenv.
4879         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4881         Likewise.
4882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4883         Likewise.
4884         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4886         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4887         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4889         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4891
4892 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4893
4894         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4895         (struct La_i86_retval): Likewise.
4896         (struct La_x86_64_regs): Likewise.
4897         (struct La_x86_64_retval): Likewise.
4898         (struct La_x32_regs): Likewise.
4899         (struct La_x32_retval): Likewise.
4900         (struct La_ppc32_regs): Likewise.
4901         (struct La_ppc32_retval): Likewise.
4902         (struct La_ppc64_regs): Likewise.
4903         (struct La_ppc64_retval): Likewise.
4904         (struct La_sh_regs): Likewise.
4905         (struct La_sh_retval): Likewise.
4906         (struct La_s390_32_regs): Likewise.
4907         (struct La_s390_32_retval): Likewise.
4908         (struct La_s390_64_regs): Likewise.
4909         (struct La_s390_64_retval): Likewise.
4910         (struct La_sparc32_regs): Likewise.
4911         (struct La_sparc32_retval): Likewise.
4912         (struct La_sparc64_regs): Likewise.
4913         (struct La_sparc64_retval): Likewise.
4914         (struct audit_ifaces): Remove architecture-specific pltenter and
4915         pltexit members.
4916         * sysdeps/i386/ldsodefs.h: New file.
4917         * sysdeps/powerpc/ldsodefs.h: Likewise.
4918         * sysdeps/s390/ldsodefs.h: Likewise.
4919         * sysdeps/sh/ldsodefs.h: Likewise.
4920         * sysdeps/sparc/ldsodefs.h: Likewise.
4921         * sysdeps/x86_64/ldsodefs.h: Likewise.
4922
4923 2012-07-25  Marek Polacek  <polacek@redhat.com>
4924
4925         [BZ #6808]
4926         * math/libm-test.inc (yn_test): Add another test.
4927         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4928         to ERANGE when the result is +-Inf.
4929         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4930         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4931         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4932         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4933
4934 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4935
4936         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4937         equal to 0.
4938         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4939         clock_t.
4940         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4941
4942 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4943
4944         * configure.in <sysdeps resolving>: Correct printing
4945         Implies_before.
4946         * configure: Regenerate.
4947
4948 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4949
4950         * math/w_ilogb.c: Include <limits.h>.
4951         * math/w_ilogbl.c: Likewise.
4952
4953 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4954
4955         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4956         va_copy.  Document allowing for unavailable va_copy only as
4957         pre-C99 compatibility.
4958         * manual/string.texi (Copying and Concatenation): Use va_copy
4959         instead of __va_copy in concat example.
4960
4961 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4962
4963         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4964         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4965         it if not null.
4966
4967         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4968         with O_NOLINK passed to __file_name_lookup.
4969
4970         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4971         with O_NOLINK passed to __file_name_lookup.
4972
4973         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4974         negative N or less than NGIDS.
4975
4976         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4977         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4978         enough.  Use memcpy instead of strncpy.
4979
4980 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4981
4982         * elf/Makefile (check-data): Remove.
4983         (localplt.data): New vpath directive.
4984         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4985         instead of $(check-data).
4986         * scripts/data/localplt-generic.data: Move to ...
4987         * sysdeps/generic/localplt.data: ... here.
4988         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4989         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4990         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4992         ... here.
4993         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4995         ... here.
4996         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4997         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4998         ... here.
4999         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5000         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5001         ... here.
5002         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5004         ... here.
5005         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5006         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5007         ... here.
5008
5009 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5010
5011         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5012         PPC32 and PPC64 files.
5013         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5014         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5015
5016 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5017
5018         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5019         __makecontext_ret to ...
5020         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5021         ... here and call exit if uc_link is NULL.  New file.
5022         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5023         __makecontext_ret.S.
5024         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5025         __makecontext_ret to ...
5026         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5027         ... here and call exit if uc_link is NULL.  New file.
5028         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5029         __makecontext_ret.S.
5030
5031 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5032
5033         * elf/elf.h (R_390_IRELATIVE): New definition.
5034         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5035         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5036         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5037         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5038         (elf_machine_lazy_rel): Likewise.
5039         * sysdeps/s390/dl-irel.h: New file.
5040         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5041         * sysdeps/s390/s390-64/memset.S: New asm code.
5042         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5043         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5044         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5045         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5046         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5047         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5048         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5049         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5050         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5051         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5052         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5053         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5054         * sysdeps/s390/s390-32/memset.S: New asm code.
5055         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5056
5057 2012-07-17  Marek Polacek  <polacek@redhat.com>
5058
5059         [BZ #14349]
5060         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5061         * sysdeps/s390/s390-64/configure.in: Likewise.
5062         * sysdeps/sparc/configure.in: Likewise.
5063         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5064         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5065         * sysdeps/i386/configure.in: Likewise.
5066         * sysdeps/x86_64/configure.in: Likewise.
5067         * sysdeps/sh/configure.in: Likewise.
5068         * sysdeps/s390/s390-32/configure: Regenerated.
5069         * sysdeps/s390/s390-64/configure: Likewise.
5070         * sysdeps/x86_64/configure: Likewise.
5071         * sysdeps/sh/configure: Likewise.
5072         * sysdeps/powerpc/powerpc64/configure: Likewise.
5073         * sysdeps/powerpc/powerpc32/configure: Likewise.
5074         * sysdeps/sparc/configure: Likwise.
5075         * sysdeps/i386/configure: Likewise.
5076
5077         * elf/dl-open.c: Comment fixes.
5078
5079 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5080
5081         * Makefile [CXX] (check-data): Remove.
5082         [CXX] (c++-types.data): New vpath directive.
5083         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5084         vpath.  Do not allow for C++ type data being missing.
5085         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5086         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5087         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5088         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5089         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5090         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5091         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5093         ... here.
5094         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5096         ... here.
5097         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5098         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5099         ... here.
5100         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5102         ... here.
5103         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5104         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5105         ... here.
5106         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5107         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5108         ... here.
5109         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5110         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5111         ... here.
5112         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5113         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5114
5115         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5116         definitions to architecture-specific files.
5117         (TLS_IE): Likewise.
5118         (TLS_LD): Likewise.
5119         (TLS_GD): Likewise.
5120         * sysdeps/i386/tls-macros.h: New file.
5121         * sysdeps/powerpc/tls-macros.h: Likewise.
5122         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5123         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5124         * sysdeps/sh/tls-macros.h: Likewise.
5125         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5126         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5127         * sysdeps/x86_64/tls-macros.h: Likewise.
5128
5129 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5130
5131         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5132         zero value for regular exit case.
5133
5134         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5135         (__start_context): Preserve zero value for regular exit case.
5136
5137 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5138             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5139
5140         * manual/setjmp.texi (setcontext): Clarify normal process
5141         termination when uc_link is the null pointer.
5142         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5143         exit call.
5144
5145 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5146
5147         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5148         preprocessor.  Test for each exception mask separately.
5149
5150 2012-07-16  Andreas Jaeger  <aj@suse.de>
5151
5152         * po/ru.po: Update from translation team.
5153
5154 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5157         equal to 0.
5158         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5159         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5160         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5161         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5162         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5163
5164 2012-07-13  Andreas Jaeger  <aj@suse.de>
5165
5166         * po/fr.po: Update from translation team.
5167
5168 2012-07-12  Marek Polacek  <polacek@redhat.com>
5169
5170         [BZ #14173]
5171         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5172         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5173         loop condition.
5174
5175 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5176
5177         [BZ #13717]
5178         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5179         Change to 2.4.1 where previously 2.4.0.
5180         * sysdeps/unix/sysv/linux/configure: Regenerated.
5181         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5182         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5183         version.
5184         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5185         (__ASSUME_AT_CLKTCK): Remove.
5186         (__ASSUME_AT_PAGESIZE): Likewise.
5187         (__ASSUME_AT_XID): Likewise.
5188         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5189         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5190         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5191         unconditionally.
5192         (HAVE_AUX_PAGESIZE): Likewise.
5193         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5194         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5195         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5196
5197 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5198
5199         [BZ #14307]
5200         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5201         the temporary buffer used to invoke __gethostbyname2_r,
5202         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5203         host_data / struct gaih_addrtuple.
5204         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5205         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5206         header file nss/nsswitch.h.
5207         * nss/nsswitch.h (global scope): Add definition of implementation
5208         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5209         resolv/nss_dns/dns-host.c).
5210
5211 2012-07-11  Andreas Jaeger  <aj@suse.de>
5212
5213         * po/fr.po: Update from translation team.
5214
5215         * po/sv.po: Update from translation team
5216         * po/fr.po: Another update from translation team.
5217
5218 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5219
5220         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5221         for subnormals or multiply small sinh result by itself.
5222         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5224
5225 2012-07-11  David S. Miller  <davem@davemloft.net>
5226
5227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5228
5229 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5230
5231         [BZ #14347]
5232         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5233         (INTERNAL_MARK): Shift it here.
5234
5235 2012-07-10  Marek Polacek  <polacek@redhat.com>
5236
5237         [BZ #14151]
5238         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5239         libc_cv_asm_global_directive with .globl.
5240         * configure: Regenerated.
5241         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5242         with .globl.
5243         * sysdeps/i386/configure: Regenerated.
5244         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5245         with .globl.
5246         * sysdeps/x86_64/configure: Regenerated.
5247         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5248         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5249         * elf/tst-unique2mod2.c: Likewise.
5250         * elf/tst-unique2mod1.c: Likewise.
5251         * elf/tst-unique1mod2.c: Likewise.
5252         * elf/tst-unique1mod1.c: Likewise.
5253         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5254         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5255         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5256         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5257         * sysdeps/mach/sysdep.h: Likewise.
5258         * sysdeps/i386/sysdep.h: Likewise.
5259         * sysdeps/i386/i386-mcount.S: Likewise.
5260         * sysdeps/x86_64/_mcount.S: Likewise.
5261         * sysdeps/x86_64/sysdep.h: Likewise.
5262         * sysdeps/sh/_mcount.S: Likewise.
5263         * sysdeps/sh/sysdep.h: Likewise.
5264         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5265         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5266         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5267         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5268         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5269         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5270         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5271         * locale/localeinfo.h: Likewise.
5272         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5273         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5274
5275 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5276
5277         [BZ #14336]
5278         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5279         system".
5280         * manual/message.texi (The Uniforum approach): Likewise.
5281         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5282         (glibc iconv Implementation): Likewise.
5283
5284 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5285
5286         [BZ #14337]
5287         * math/s_clog.c (__clog): Avoid scaling a value down where that
5288         could result in underflow.
5289         * math/s_clog10.c (__clog10): Likewise.
5290         * math/s_clog10f.c (__clog10f): Likewise.
5291         * math/s_clog10l.c (__clog10l): Likewise.
5292         * math/s_clogf.c (__clogf): Likewise.
5293         * math/s_clogl.c (__clogl): Likewise.
5294         * math/libm-test.inc (clog_test): Add more tests.
5295         (clog10_test): Likewise.
5296         * sysdeps/i386/fpu/libm-test-ulps: Update.
5297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5298
5299 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5300
5301         [BZ #14283]
5302         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5303         by 7 not 8 to examine high bit of fractional part.
5304
5305         [BZ #14042]
5306         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5307         for call to __mcount_internal.
5308         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5309         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5310         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5311
5312 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5313
5314         [BZ #14154]
5315         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5316         approximation for values within 0x1p-13f of an odd multiple of
5317         pi/4.
5318         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5319         exception.  Add more tests.
5320         * sysdeps/i386/fpu/libm-test-ulps: Update.
5321
5322         [BZ #6778]
5323         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5324         inputs and return -1 for them.  Do not check for +Inf in case not
5325         reachable for +Inf.
5326         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5327         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5328         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5329         and return -1 for them.  Do not check for +Inf in case not
5330         reachable for +Inf.
5331         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5332         define.
5333         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5334         and return -1 for them.  Do not check for +Inf in case not
5335         reachable for +Inf.
5336         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5337         spurious underflow.
5338         * sysdeps/i386/fpu/libm-test-ulps: Update.
5339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5340
5341 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5342
5343         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5344
5345 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5346
5347         [BZ #14157]
5348         [BZ #14331]
5349         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5350         could result in spurious underflow.  Scale down values above
5351         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5352         * math/s_csqrtf.c (__csqrtf): Likewise.
5353         * math/s_csqrtl.c (__csqrtl): Likewise.
5354         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5355         spurious underflow.
5356         * sysdeps/i386/fpu/libm-test-ulps: Update.
5357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5358
5359 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5360
5361         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5362         xopen-msg.sed.
5363         * catgets/xopen-msg.awk: New file.
5364         * catgets/xopen-msg.sed: Removed.
5365
5366         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5367         po2text.sed.
5368         * intl/po2test.awk: New file.
5369         * intl/po2test.sed: Removed.
5370
5371 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5372
5373         [BZ #14328]
5374         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5375         or multiply small sinh result by itself.
5376         * math/s_ctanf.c (__ctanf): Likewise.
5377         * math/s_ctanh.c (__ctanh): Likewise.
5378         * math/s_ctanhf.c (__ctanhf): Likewise.
5379         * math/s_ctanhl.c (__ctanhl): Likewise.
5380         * math/s_ctanl.c (__ctanl): Likewise.
5381         * math/libm-test.inc (ctan_test_tonearest): New function.
5382         (ctan_test_towardzero): Likewise.
5383         (ctan_test_downward): Likewise.
5384         (ctan_test_upward): Likewise.
5385         (ctanh_test_tonearest): Likewise.
5386         (ctanh_test_towardzero): Likewise.
5387         (ctanh_test_downward): Likewise.
5388         (ctanh_test_upward): Likewise.
5389         (main): Call these new functions.
5390         * sysdeps/i386/fpu/libm-test-ulps: Update.
5391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5392
5393 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5394
5395         * .gitignore: Delete /ports entry.
5396
5397 2012-07-03  Andreas Jaeger  <aj@suse.de>
5398
5399         * po/bg.po: Update from translation team.
5400         * po/cs.po: Likewise.
5401         * po/de.po: Likewise.
5402         * po/hr.po: Likewise.
5403         * po/nl.pl: Likewise.
5404         * po/pl.po: Likewise.
5405         * po/vi.po: Likewise.
5406
5407 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5408
5409         * Makeconfig [!+link] (+link-before-libc): New variable.
5410         [!+link] (+link-after-libc): Likewise.
5411         [!+link] (+link-tests): Likewise.
5412         [!+link] (+link): Define in terms of $(+link-before-libc) and
5413         $(+link-after-libc).
5414         [!+link-static] (+link-static-before-libc): New variable.
5415         [!+link-static] (+link-static-after-libc): Likewise.
5416         [!+link-static] (+link-static-tests): Likewise.
5417         [!+link-static] (+link-static): Define in terms of
5418         $(+link-static-before-libc) and $(+link-static-after-libc).
5419         [build-shared] (link-libc-before-gnulib): New variable.
5420         [build-shared] (link-libc-tests): Likewise.
5421         [build-shared] (link-libc): Define in terms of
5422         $(link-libc-before-gnulib).
5423         [!build-shared] (link-libc-tests): New variable.
5424         (link-libc-static-tests): New variable.
5425         [!gnulib] (gnulib-arch): New variable.
5426         [!gnulib] (gnulib-tests): Likewise.
5427         [!gnulib] (static-gnulib-arch): Likewise.
5428         [!gnulib] (static-gnulib-tests): Likewise.
5429         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5430         Define with "=" instead of ":=".
5431         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5432         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5433         * Rules (binaries-all-notests): New variable.
5434         (binaries-all-tests): Likewise.
5435         (binaries-static-notests): Likewise.
5436         (binaries-static-tests): Likewise.
5437         (binaries-all): Define using $(binaries-all-notests) and
5438         $(binaries-all-tests).
5439         (binaries-static): Define using $(binaries-static-notests) and
5440         $(binaries-static-tests).
5441         (binaries-shared-tests): New variable.
5442         (binaries-shared-notests): Likewise.
5443         (binaries-shared): Remove variable.
5444         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5445         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5446         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5447         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5448         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5449         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5450         * elf/Makefile (sln-modules): New variable.
5451         (extra-objs): Add $(sln-modules:=.o).
5452         (ldconfig-modules): Add static-stubs.
5453         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5454         * elf/static-stubs.c: New file.
5455
5456         [BZ #14283]
5457         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5458         by 7 not 8 to examine high bit of fractional part.  Use volatile
5459         variables when splitting into final array of floats if
5460         __FLT_EVAL_METHOD__ != 0.
5461         * math/libm-test.inc (cos_test): Add another test.
5462         (sin_test): Likewise.
5463         * sysdeps/i386/fpu/libm-test-ulps: Update.
5464
5465         [BZ #14273]
5466         * math/libm-test.inc (cosh_test): Add more tests.
5467
5468         * version.h (RELEASE): Set to "development".
5469         (VERSION): Set to "2.16.90".
5470
5471 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5472
5473         * NEWS: Update copyright. Remove last-updated date.
5474         Mention math library bug fixes and timezone data changes.
5475         * README: Mention GNU/Hurd, x32, and HPPA support status.
5476
5477 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5478
5479         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5480
5481 2012-06-27  Andreas Jaeger  <aj@suse.de>
5482
5483         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5484
5485 2012-06-25  Andreas Jaeger  <aj@suse.de>
5486
5487         * sysdeps/s390/fpu/libm-test-ulps: Update.
5488
5489 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5490             Thomas Schwinge  <thomas@codesourcery.com>
5491
5492         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5493         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5494         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5495         fanotify_mark.
5496
5497 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5498
5499         * sysdeps/mach/start.c: Remove file.
5500         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5501         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5502         * sysdeps/sh/init-first.c: Likewise.
5503
5504         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5505         registers for frame unwinding purposes, add CFI directives.
5506         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5507         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5508         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5509         Likewise.
5510
5511         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5512         __fortify_fail returning.
5513         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5514
5515         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5516         sysdeps/sh/____longjmp_chk.S.
5517         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5518         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5519         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5520         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5521
5522         * sysdeps/sh/abort-instr.h: New file.
5523         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5524         process in case exit returns.
5525
5526         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5527         initialize the GOT register before use.
5528
5529         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5530         calculation of ARGC > 4.
5531
5532         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5533         meaningful names to some local labels.
5534
5535 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5536             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5537
5538         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5539         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5540         (__arch_compare_and_exchange_val_16_acq): Likewise.
5541         (__arch_compare_and_exchange_val_32_acq): Likewise.
5542         (atomic_exchange_and_add): Fix gUSA sequence.
5543         (atomic_add): Likewise.
5544         (atomic_add_negative): Likewise.
5545         (atomic_add_zero): Likewise.
5546         (atomic_bit_test_set): Likewise.
5547
5548 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5549
5550         [BZ #13579]
5551         * include/link.h (struct link_map): Add l_free_initfini.
5552         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5553         l_initfini.
5554         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5555         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5556         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5557         set.
5558
5559 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5560
5561         * configure.in: Use AC_LANG_SOURCE.
5562         * configure: Regenerate.
5563
5564 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5565
5566         * configure.in (libc_cv_localstatedir): New substituted variable.
5567         * configure: Regenerated.
5568         * config.make.in (localstatedir): New variable, substituted from
5569         libc_cv_localstatedir.
5570         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5571         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5572         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5573         * sysdeps/gnu/configure: Regenerated.
5574
5575 2012-06-21  Jeff Law  <law@redhat.com>
5576
5577         [BZ #14277]
5578         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5579         free.  Simplify list management for _LIBC case.
5580
5581 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5582
5583         [BZ #14273]
5584         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5585         Clear sign bit of 64-bit integer value before comparing against
5586         overflow value.
5587
5588         * sysdeps/mach/configure: Regenerated.
5589
5590 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5591
5592         [BZ #14278]
5593         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5594
5595 2012-06-21  Jeff Law  <law@redhat.com>
5596
5597         [BZ #13882]
5598         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5599         uint16_t for elements in the "seen" array to avoid char overflows.
5600         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5601         * elf/dl-open.c (dl_open_worker): Likewise.
5602
5603 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5604
5605         * scripts/list-sources.sh: Scan PORTS for translations.
5606         * po/libc.pot: Regenerated.
5607
5608 2012-06-21  Andreas Jaeger  <aj@suse.de>
5609
5610         [BZ #12194]
5611         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5612         warning.
5613         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5614         * bits/byteswap-16.h (__bswap_16): Likewise.
5615         * bits/byteswap.h (__bswap_constant_16): Likewise.
5616
5617 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5618
5619         [BZ #14117]
5620         * sysdeps/i386/fpu_control.h: Removed.
5621         * sysdeps/x86_64/fpu_control.h: Moved to ...
5622         * sysdeps/x86/fpu_control.h: Here.
5623
5624         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5625         (_FPU_SETCW): Likewise.
5626
5627 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5628
5629         [BZ #14117]
5630         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5631         * sysdeps/x86/fpu/bits/mathinline.h: This.
5632         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5633
5634         [BZ #14050]
5635         [BZ #14117]
5636         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5637         functions if __x86_64__ is defined.
5638
5639 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5640
5641         * string/endian.h: Add !__ASSEMBLER__ condition for including
5642         conversion interfaces.
5643
5644 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5645
5646         [BZ #14241]
5647         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5648         of ABS(x) in calculating zero to negative powers other than odd
5649         integers.
5650         * math/libm-test.inc (pow_test): Add more tests.
5651
5652 2012-06-15  Andreas Jaeger  <aj@suse.de>
5653
5654         * manual/contrib.texi (Contributors): Update entry of Liubov
5655         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5656         Machado Filho.
5657
5658 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5659
5660         * string/string.h: Add __wur to GNU version of strerror_r.
5661
5662 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         [BZ #14229]
5665         * string/Makefile (tests): Add tst-strtok_r.
5666         * string/tst-strtok_r.c: New file.
5667         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5668         RAX_LP/RDX_LP on SAVE_PTR.
5669
5670 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5671
5672         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5673
5674 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5675
5676         * libm_test.inc (csqrt_test): Allow more spurious underflow
5677         exceptions.
5678         (j0_test): Likewise.
5679         (j1_test): Likewise.
5680         (y0_test): Likewise.
5681         (y1_test): Likewise.
5682
5683 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5684
5685         * po/Makefile (libc.pot): Use UTF-8 charset.
5686
5687 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5688
5689         [BZ #14210]
5690         Suppress sign-conversion warning from FD_SET.
5691         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5692         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5693         not unsigned long int.
5694         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5695
5696 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5697
5698         [BZ #14050]
5699         [BZ #14117]
5700         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5701         __extern_always_inline instead of __extern_inline.
5702         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5703         (__signbit): Likewise.
5704         (__signbitl): Support C++ namespace.
5705         (lrintf): New inline function.
5706         (lrint): Likewise.
5707         (llrintf): Likewise.
5708         (llrint): Likewise.
5709         (fmaxf): Likewise.
5710         (fmax): Likewise.
5711         (fminf): Likewise.
5712         (fmin): Likewise.
5713         (rint): Likewise.
5714         (rintf): Likewise.
5715         (ceil): Likewise.
5716         (ceilf): Likewise.
5717         (floor): Likewise.
5718         (floorf): Likewise.
5719         (nearbyint): Likewise.
5720         (nearbyintf): Likewise.
5721
5722 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5723
5724         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5725         non-default versions.
5726
5727 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5728
5729         [BZ #14218]
5730         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5731
5732 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5733
5734         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5735         (FE_UPWARD, FE_DOWNWARD): Don't define.
5736         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5737         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5738
5739         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5740         reading it.
5741         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5742         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5743
5744 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5745
5746         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5747         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5748         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5749         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5750
5751 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5752
5753         [BZ #14117]
5754         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5755         * sysdeps/i386/fpu/Implies: New file.
5756         * sysdeps/x86_64/fpu/Implies: Likewise.
5757         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5758         * sysdeps/x86/fpu/bits/fenv.h: This.
5759
5760         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5761         __SSE_MATH__.
5762
5763 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5764
5765         [BZ #14134]
5766         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5767         character 0xffff that matches the last element of the
5768         conversion table.
5769
5770 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5771
5772         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5773         fmodl commit.
5774
5775 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5776
5777         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5778         values higher than 25.6283.
5779
5780 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5781
5782         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5783         subnormal exponent extraction and add some __builtin_expect.
5784         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5785         Fix for subnormal mantissa calculation.
5786
5787 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5788
5789         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5790         cpu2 is -1 and errno is not ENOSYS.
5791
5792 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5793
5794         [BZ #14117]
5795         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5796         * sysdeps/x86/bits/string.h: This.
5797         * sysdeps/x86_64/bits/string.h: Removed.
5798
5799         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5800         if not compiling for x86-64, but compiling for >= i486.
5801
5802         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5803         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5804
5805         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5806         New macro from Linux kernel 3.4.0.
5807         (FP_XSTATE_MAGIC2): Likewise.
5808         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5809         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5810         (struct _fpx_sw_bytes): New struct.
5811         (struct _xsave_hdr): Likewise.
5812         (struct _ymmh_state): Likewise.
5813         (struct _xstate): Likewise.
5814
5815         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5816         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5817         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5818         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5819         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5820         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5821
5822         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5823         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5824         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5825         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5826         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5827         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5828
5829 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5830
5831         [BZ #13743]
5832         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5833         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5834         (sysdep_headers): Include sys/platform/ppc.h.
5835         * sysdeps/powerpc/test-gettimebase.c: Test for
5836         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5837         * manual/Makefile (appendices): Include platform.texi.
5838         * manual/contrib.texi (Contributors): Update @node pointers.
5839         * manual/maint.texi (Maintenance): Likewise.
5840         (Platform): New node.
5841         * manual/platform.texi: New file.  Document the new features.
5842
5843 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5844             Jakub Jelinek  <jakub@redhat.com>
5845
5846         [BZ #14188]
5847         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5848         where __builtin_expect is unavailable.
5849
5850 2012-06-03  David S. Miller  <davem@davemloft.net>
5851
5852         * stdlib/longlong.h: Updated from GCC.
5853
5854 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5855
5856         [BZ #14042]
5857         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5858         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5859         __mcount_internal.
5860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5861         (GLIBC_2.16): Likewise.
5862
5863 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5866
5867 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5868
5869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5870         (default-abi): New variable.
5871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5872         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5873         variable.
5874         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5875         Likewise.
5876         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5877         Likewise.
5878         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5879         Likewise.
5880
5881         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5882         definition.  Document in comment.
5883
5884 2012-06-01  David S. Miller  <davem@davemloft.net>
5885
5886         * stdlib/longlong.h: Updated from GCC.
5887
5888 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         [BZ #14117]
5891         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5892         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5893         sys/debugreg.h sys/io.h here.
5894         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5895         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5896         sys/io.h.
5897         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5898         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5899         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5900         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5901         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5902         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5903
5904         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5905         Define only if __x86_64__ is defined.
5906
5907 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5908
5909         [BZ #14048]
5910         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5911         Use int64_t for variable i.
5912         * math/libm-test.inc (fmod_test): Add more tests.
5913
5914         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5915         z computation is not scheduled after fetestexcept.
5916         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5917         Use math_force_eval instead of asm to ensure calculation scheduled
5918         before exception test.
5919         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5920         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5921
5922 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5923
5924         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5925         computation is not scheduled after fetestexcept.
5926
5927 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5928
5929         [BZ #14117]
5930         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5931         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5932
5933 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5934
5935         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5936         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5937
5938 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         [BZ #14117]
5941         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5942         <bits/wordsize.h>.
5943         (__WCHAR_MIN): Support __WORDSIZE == 64.
5944         (__WCHAR_MAX): Likewise.
5945
5946         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5947         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5948
5949         [BZ #14183]
5950         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5951         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5952
5953         [BZ #14117]
5954         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5955         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5956
5957         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5958         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5959
5960         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5961         Defined to 1 if __x86_64__ isn't defined.
5962         (_STAT_VER_LINUX_OLD): New.
5963         (st_atime): Remove duplicate.
5964         (st_mtime): Likewise.
5965         (st_ctime): Likewise.
5966
5967 2012-05-31  David S. Miller  <davem@davemloft.net>
5968
5969         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5970         entries.
5971
5972 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5973
5974         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5975         gen-libm-test.pl.
5976
5977         [BZ #14132]
5978         * elf/dl-reloc.c: Include <_itoa.h>.
5979         (_dl_reloc_bad_type): Remove use of INTUSE.
5980         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5981         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5982         * stdio-common/psiginfo.c (psiginfo): Likewise.
5983         * stdio-common/psignal.c (psignal): Likewise.
5984         * string/strsignal.c (strsignal): Likewise.
5985         * include/signal.h (_sys_siglist): Declare hidden proto.
5986         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5987         INTVARDEF with libc_hidden_data_def.
5988         * stdio-common/itoa-udigits.c: Likewise.
5989         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5990         (_itoa_lower_digits_internal): Remove declaration.
5991         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5992         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5993         (_sys_sigabbrev_internal): Remove aliases.
5994         (_sys_siglist): Define hidden alias.
5995
5996 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5997
5998         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5999         bits/sysctl.h.
6000
6001 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         [BZ #14117]
6004         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6005         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6006
6007         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6008         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6009         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6010         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6011         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6012         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6013
6014         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6015         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6016         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6017
6018         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6019         with __addr.
6020         (insw): Likewise.
6021         (insl): Likewise.
6022         (outsb): Likewise.
6023         (outsw): Likewise.
6024         (outsl): Likewise.
6025
6026         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6027         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6028         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6029
6030         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6031         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6032         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6033         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6034         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6035         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6036
6037         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6038         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6039
6040         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6041         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6042
6043         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6044         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6045         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6046
6047         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6048         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6049         to ...
6050         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6051
6052         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6053         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6054         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6055
6056         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6057         for x86-64.
6058         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6059
6060 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6061
6062         * math/math.h (M_El): Use two more decimal places.
6063         (M_LOG2El): Likewise.
6064         (M_LOG10El): Likewise.
6065         (M_LN2l): Likewise.
6066         (M_LN10l): Likewise.
6067         (M_PIl): Likewise.
6068         (M_PI_2l): Likewise.
6069         (M_PI_4l): Likewise.
6070         (M_1_PIl): Likewise.
6071         (M_2_PIl): Likewise.
6072         (M_2_SQRTPIl): Likewise.
6073         (M_SQRT2l): Likewise.
6074         (M_SQRT1_2l): Likewise.
6075
6076 2012-05-31  David S. Miller  <davem@davemloft.net>
6077
6078         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6079         values between float registers.
6080         * sysdeps/sparc/sparc64/memset.S: Likewise.
6081         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6082
6083 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6084
6085         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6086         -D_FORTIFY_SOURCE=1.
6087         (CPPFLAGS-tst-longjmp_chk.c): Define.
6088         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6089         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6090         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6091         CFLAGS-tst-wchar-h.c.
6092
6093 2012-05-31  Marek Polacek  <polacek@redhat.com>
6094
6095         [BZ #14132]
6096         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6097         __endmntent_internal): Remove declaration.
6098         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6099         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6100         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6101
6102 2012-05-30  David S. Miller  <davem@davemloft.net>
6103
6104         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6105         (___Q_simulate_exceptions): Use real FP ops rather than writing
6106         into the %fsr.
6107         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6108         Likewise.
6109
6110 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6111
6112         [BZ #14117]
6113         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6114         * sysdeps/x86/bits/xtitypes.h: This.
6115
6116         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6117         * sysdeps/x86/bits/wordsize.h: This.
6118
6119         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6120         * sysdeps/x86/bits/huge_vall.h: This.
6121
6122         * sysdeps/i386/bits/select.h: Removed.
6123         * sysdeps/x86_64/bits/select.h: Renamed to ...
6124         * sysdeps/x86/bits/select.h: This.
6125
6126         * sysdeps/i386/bits/setjmp.h: Removed.
6127         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6128         * sysdeps/x86/bits/setjmp.h: This.
6129
6130         * sysdeps/i386/bits/mathdef.h: Removed.
6131         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6132         * sysdeps/x86/bits/mathdef.h: This.
6133
6134 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6135
6136         [BZ #14132]
6137         * include/sys/socket.h (__connect_internal)
6138         (__libc_sa_len_internal): Remove declaration.
6139         (__connect, __libc_sa_len): Declare hidden_proto.
6140         (SA_LEN): Remove use of INTUSE.
6141         * socket/connect.c: Add libc_hidden_def.
6142         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6143         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6144         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6145         alias.
6146         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6147         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6148         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6149         of adding _internal alias.
6150
6151 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6152
6153         [BZ #14117]
6154         * sysdeps/i386/bits/link.h: Removed.
6155         * sysdeps/i386/bits/linkmap.h: Likewise.
6156         * sysdeps/x86_64/bits/link.h: Renamed to ...
6157         * sysdeps/x86/bits/link.h: This.
6158         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6159         * sysdeps/x86/bits/linkmap.h: This.
6160
6161         * sysdeps/i386/bits/endian.h: Removed.
6162         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6163         * sysdeps/x86/bits/endian.h: This.
6164
6165         * sysdeps/i386/bits/byteswap.h: Removed.
6166         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6167         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6168         * sysdeps/x86/bits/byteswap.h: This.
6169         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6170         * sysdeps/x86/bits/byteswap-16.h: This.
6171         * sysdeps/i386/Implies: Add x86.
6172         * sysdeps/x86_64/Implies: Likewise.
6173
6174 2012-05-30  David S. Miller  <davem@davemloft.net>
6175
6176         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6177         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6178         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6179         (FP_TRAPPING_EXCEPTIONS): Define.
6180         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6181         (FP_TRAPPING_EXCEPTIONS): Define.
6182         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6183         subnormals only when inexact has been signalled or underflow
6184         exceptions are enabled.
6185         (_FP_PACK_CANONICAL): Likewise.
6186
6187 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         [BZ #14183]
6190         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6191         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6192
6193 2012-05-30  Richard Henderson  <rth@twiddle.net>
6194
6195         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6196         with #ifndef NOT_IN_libc.
6197
6198         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6199         marked to avoid plt entry.
6200
6201 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6202
6203         [BZ #14112]
6204         * Makeconfig (default-abi): New macro.
6205         (abi-includes): Likewise.
6206         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6207         $(abi-$(default-abi)-lib-soname) for soname if defined.
6208         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6209         abi-variants.
6210         * Makefile (installed-stubs): Likewise.
6211         * include/stubs-biarch.h: Removed.
6212         * scripts/lib-names.awk: Only handle one library at a time.
6213         * scripts/soversions.awk: Remove WORDSIZE support.
6214         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6215         entries.
6216         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6217         Removed.
6218         (syscall-list-default-condition): Likewise.
6219         (syscall-list-default-condition): Likewise.
6220         (syscall-list-includes): Likewise.
6221         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6222         syscall-list-* with abi-*.  Handle undefined abi-variants.
6223         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6224         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6225         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6226         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6227         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6228         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6229         Removed.
6230         (syscall-list-32-options): Likewise.
6231         (syscall-list-32-condition): Likewise.
6232         (syscall-list-64-options): Likewise.
6233         (syscall-list-64-condition): Likewise.
6234         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6235         macro.
6236         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6237         Renamed to ...
6238         (abi-*): This.
6239         (abi-64-ld-soname): New macro.
6240         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6241         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6242         Renamed to ...
6243         (abi-*): This.
6244         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6245         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6246
6247 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6248
6249         * sysdeps/unix/sysv/linux/kernel-features.h
6250         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6251         * sysdeps/unix/sysv/linux/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/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         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6264         include <kernel-features.h>.
6265         [!__NR_ftruncate64]: Remove conditional code.
6266         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6267         [__NR_ftruncate64]: Make code unconditional.
6268         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6270         include <kernel-features.h>.
6271         [!__NR_ftruncate64]: Remove conditional code.
6272         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6273         [__NR_ftruncate64]: Make code unconditional.
6274         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6275
6276         * configure.in (libc_cv_fpie): Weaken to a compile test using
6277         LIBC_TRY_CC_OPTION.
6278         * configure: Regenerated.
6279
6280 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6281
6282         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6286         Refreshed.
6287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6289         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6291         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6293         Refreshed.
6294
6295 2012-05-27  David S. Miller  <davem@davemloft.net>
6296
6297         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6298         (___Q_zero): New.
6299         (__Q_simulate_exceptions): Return void.  Change to simulate
6300         exceptions by writing into the %fsr.
6301         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6302         (__Qp_handle_exceptions): Likewise.
6303         (numbers): Delete.
6304         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6305         __Qp_handle_exceptions.
6306         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6307         __Qp_handle_exceptions.
6308         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6309         as unused and give dummy FP_RND_NEAREST initializer.
6310         (FP_INHIBIT_RESULTS): Define.
6311         (___Q_simulate_exceptions): Update declaration.
6312         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6313         formatting.
6314         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6315         as unused and give dummy FP_RND_NEAREST initializer.
6316         (__Qp_handle_exceptions): Update declaration.
6317         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6318         formatting.
6319
6320 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6321
6322         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6323         the temporary FPU control word.
6324         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6325         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6326         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6327         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6328         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6329         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6330         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6331         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6332         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6333         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6334         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6335
6336 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6337
6338         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6339         fields.
6340
6341 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6342
6343         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6344         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6345         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6346         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6347         Likewise.
6348         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6349         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6350         Likewise.
6351
6352 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6353
6354         * po/h.po: Update from translation team.
6355
6356 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6357
6358         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6359
6360         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6361         handling of denormals.
6362         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6363         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6364         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6365         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6366         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6367         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6368         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6369         Likewise.
6370
6371 2012-05-26  Marek Polacek  <polacek@redhat.com>
6372
6373         [BZ #14152]
6374         * math/libm-test.inc (fma_test): Don't always expect underflow
6375         exception.
6376
6377 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6378
6379         [BZ #12416]
6380         * elf/tst-execstack.c: Include stackinfo.h.
6381         (do_test): Adjust test case to ensure that pthread_getattr_np
6382         behaviour remains the same after marking stack executable.
6383
6384 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6385
6386         * sysdeps/unix/sysv/linux/kernel-features.h
6387         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6388         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6389         kernel-features.h.
6390         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6391         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6392         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6393         kernel-features.h.
6394         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6395         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6396
6397 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6398
6399         * configure.in: Define the default includes to being none.
6400         * configure: Regenerated.
6401
6402 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6403
6404         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6405         * sysdeps/x86_64/setjmp.S: Likewise.
6406         * sysdeps/i386/bsd-setjmp.S: Likewise.
6407         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6408         * sysdeps/i386/setjmp.S: Likewise.
6409         * sysdeps/i386/__longjmp.S: Likewise.
6410         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6411         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6412
6413         * include/stap-probe.h: New file.
6414         * configure.in: Handle --enable-systemtap.
6415         * configure: Regenerated.
6416         * config.h.in (USE_STAP_PROBE): New #undef.
6417         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6418         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6419         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6420
6421 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6422
6423         [BZ #13717]
6424         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6425         to 2.4.0 where earlier.
6426         * sysdeps/unix/sysv/linux/configure: Regenerated.
6427         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6428         <kernel-features.h>.
6429         [__ASSUME_32BITUIDS]: Make code unconditional.
6430         [!__ASSUME_32BITUIDS]: Remove conditional code.
6431         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6432         <kernel-features.h>.
6433         [__ASSUME_32BITUIDS]: Make code unconditional.
6434         [!__ASSUME_32BITUIDS]: Remove conditional code.
6435         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6436         [__ASSUME_32BITUIDS]: Make code unconditional.
6437         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6438         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.c: Do not include
6467         <kernel-features.h>.
6468         [__ASSUME_32BITUIDS]: Make code unconditional.
6469         [!__ASSUME_32BITUIDS]: Remove conditional code.
6470         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6471         <kernel-features.h>.
6472         [__ASSUME_32BITUIDS]: Make code unconditional.
6473         [!__ASSUME_32BITUIDS]: Remove conditional code.
6474         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6475         <kernel-features.h>.
6476         [__ASSUME_32BITUIDS]: Make code unconditional.
6477         [!__ASSUME_32BITUIDS]: Remove conditional code.
6478         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6479         <kernel-features.h>.
6480         [__NR_setresgid] (__setresgid): Do not declare.
6481         [__ASSUME_32BITUIDS]: Make code unconditional.
6482         [!__ASSUME_32BITUIDS]: Remove conditional code.
6483         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6484         <kernel-features.h>.
6485         [__NR_setresuid] (__setresuid): Do not declare.
6486         [__ASSUME_32BITUIDS]: Make code unconditional.
6487         [!__ASSUME_32BITUIDS]: Remove conditional code.
6488         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/i386/setreuid.c: Do not include
6517         <kernel-features.h>.
6518         [__ASSUME_32BITUIDS]: Make code unconditional.
6519         [!__ASSUME_32BITUIDS]: Remove conditional code.
6520         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6521         <kernel-features.h>.
6522         [__ASSUME_32BITUIDS]: Make code unconditional.
6523         [!__ASSUME_32BITUIDS]: Remove conditional code.
6524         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6525         <kernel-features.h>.
6526         [__ASSUME_32BITUIDS]: Make code unconditional.
6527         [!__ASSUME_32BITUIDS]: Remove conditional code.
6528         * sysdeps/unix/sysv/linux/kernel-features.h
6529         (__ASSUME_SETRESUID_SYSCALL): Remove.
6530         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6531         (__ASSUME_32BITUIDS): Likewise.
6532         (__ASSUME_LDT_WORKS): Likewise.
6533         (__ASSUME_O_DIRECTORY): Likewise.
6534         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6535         architecture but not kernel version.
6536         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6537         (__ASSUME_MMAP2_SYSCALL): Likewise.
6538         (__ASSUME_STAT64_SYSCALL): Likewise.
6539         (__ASSUME_IPC64): Likewise.
6540         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6541         <kernel-features.h>.
6542         [__ASSUME_32BITUIDS]: Make code unconditional.
6543         [!__ASSUME_32BITUIDS]: Remove conditional code.
6544         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6545         <kernel-features.h>.
6546         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6547         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6548         132096]: Remove conditional code.
6549         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6550         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6551         <kernel-features.h>.
6552         [__ASSUME_32BITUIDS]: Make code unconditional.
6553         [!__ASSUME_32BITUIDS]: Remove conditional code.
6554         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6555         <kernel-features.h>.
6556         [__ASSUME_32BITUIDS]: Make code unconditional.
6557         [!__ASSUME_32BITUIDS]: Remove conditional code.
6558         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6559         <kernel-features.h>.
6560         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6561         unconditional.
6562         (__setresgid): Do not declare.
6563         [__ASSUME_32BITUIDS]: Make code unconditional.
6564         [!__ASSUME_32BITUIDS]: Remove conditional code.
6565         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6566         <kernel-features.h>.
6567         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6568         unconditional.
6569         (__setresuid): Do not declare.
6570         [__ASSUME_32BITUIDS]: Make code unconditional.
6571         [!__ASSUME_32BITUIDS]: Remove conditional code.
6572         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6573         <kernel-features.h>.
6574         [__ASSUME_32BITUIDS]: Make code unconditional.
6575         [!__ASSUME_32BITUIDS]: Remove conditional code.
6576         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6577         <kernel-features.h>.
6578         [__ASSUME_32BITUIDS]: Make code unconditional.
6579         [!__ASSUME_32BITUIDS]: Remove conditional code.
6580
6581 2012-05-25  Richard Henderson  <rth@twiddle.net>
6582
6583         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6584         dl_hwcap to ifunc resolver.
6585         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6586         elf_ifunc_invoke.
6587         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6588         dl_hwcap to ifunc resolver.
6589         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6590
6591 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6592
6593         [BZ #14153]
6594         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6595         for |x| <= 2**-26, not 2**-57.
6596         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6597         exception.
6598
6599 2012-05-24  Jeff Law  <law@redhat.com>
6600
6601         * stdio-common/Makefile (tests): Add bug25.
6602         * stdio-common/bug25.c: New test.
6603
6604 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6605
6606         [BZ #13576]
6607         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6608         multiple of MALLOC_ALIGNMENT in size.
6609         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6610
6611 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6612
6613         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6614         Require >= 256.
6615         (FILENAME_MAX): Use macro-int-constant.
6616         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6617         (_IOFBF): Use macro-int-constant.
6618         (_IOLBF): Likewise.
6619         (_IONBF): Likewise.
6620         (SEEK_CUR): Likewise.
6621         (SEEK_END): Likewise.
6622         (SEEK_SET): Likewise.
6623         (TMP_MAX): Likewise.
6624         (EOF): Use macro-int-constant.  Require < 0.
6625         (NULL): Use macro-constant.  Require == 0.
6626         (stdin): Require type to be FILE *.
6627         (stdout): Likewise.
6628         (stderr): Likewise.
6629         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6630         macro-int-constant.
6631         (EXIT_SUCCESS): Likewise.
6632         (NULL): Use macro-constant.  Require == 0.
6633         (RAND_MAX): Use macro-int-constant.
6634         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6635         [C99-based standards] (strtof): Require function.
6636         [C99-based standards] (strtold): Likewise.
6637         [C99-based standards] (strtoll): Likewise.
6638         [C99-based standards] (strtoull): Likewise.
6639         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6640         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6641         [ISO || ISO99 || ISO11] (math.h): Likewise.
6642         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6643         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6644         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6645
6646 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6647
6648         [BZ #14132]
6649         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6650         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6651         * intl/dgettext.c (DCGETTEXT): Likewise.
6652         * intl/gettext.c (DCGETTEXT): Likewise.
6653         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6654         * posix/regex_internal.h (gettext): Likewise.
6655         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6656         Remove declaration.
6657         * include/argz.h (__argz_count_internal)
6658         (__argz_stringify_internal): Remove declaration.
6659         (__argz_count, __argz_stringify): Declare hidden proto.
6660         * intl/dcgettext.c: Remove use of INTDEF.
6661         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6662         * string/argz-stringify.c: Likewise.
6663         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6664         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6665         Declare hidden proto.
6666         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6667         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6668         Declare hidden proto.
6669         * include/stdio.h (__asprintf_internal): Don't declare.
6670         (__asprintf): Don't define as macro.  Declare hidden proto.
6671         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6672         (__fsetlocking): Declare hidden proto.
6673         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6674         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6675         hidden proto.
6676         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6677         (_IO_setlinebuf): Remove use of INTUSE.
6678         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6679         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6680         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6681         Remove declaration.
6682         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6683         (_IO_do_flush): Remove use of INTUSE.
6684         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6685         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6686         (_IO_adjust_column, _IO_least_wmarker)
6687         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6688         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6689         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6690         (_IO_default_doallocate, _IO_wdefault_doallocate)
6691         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6692         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6693         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6694         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6695         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6696         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6697         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6698         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6699         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6700         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6701         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6702         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6703         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6704         proto.
6705         (_IO_flush_all_internal, _IO_adjust_column_internal)
6706         (_IO_default_uflow_internal, _IO_default_finish_internal)
6707         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6708         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6709         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6710         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6711         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6712         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6713         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6714         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6715         (_IO_file_close_internal, _IO_file_close_it_internal)
6716         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6717         (_IO_file_init_internal, _IO_file_attach_internal)
6718         (_IO_file_fopen_internal, _IO_file_read_internal)
6719         (_IO_file_sync_internal, _IO_file_seek_internal)
6720         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6721         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6722         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6723         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6724         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6725         (_IO_list_all_internal, _IO_link_in_internal)
6726         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6727         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6728         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6729         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6730         (_IO_do_write_internal, _IO_padn_internal)
6731         (_IO_getline_info_internal, _IO_getline_internal)
6732         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6733         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6734         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6735         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6736         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6737         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6738         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6739         with libc_hidden_ver, remove use of INTUSE.
6740         * libio/genops.c: Likewise.
6741         * libio/freopen.c: Likewise.
6742         * libio/freopen64.c: Likewise.
6743         * libio/iofclose.c: Likewise.
6744         * libio/iofdopen.c: Likewise.
6745         * libio/iofflush.c: Likewise.
6746         * libio/iofflush_u.c: Likewise.
6747         * libio/iofgets.c: Likewise.
6748         * libio/iofgets_u.c: Likewise.
6749         * libio/iofopen.c: Likewise.
6750         * libio/iofopncook.c: Likewise.
6751         * libio/iofread.c: Likewise.
6752         * libio/iofread_u.c: Likewise.
6753         * libio/ioftell.c: Likewise.
6754         * libio/iofwrite.c: Likewise.
6755         * libio/iogetline.c: Likewise.
6756         * libio/iogets.c: Likewise.
6757         * libio/iogetwline.c: Likewise.
6758         * libio/iopadn.c: Likewise.
6759         * libio/iopopen.c: Likewise.
6760         * libio/ioseekoff.c: Likewise.
6761         * libio/ioseekpos.c: Likewise.
6762         * libio/iosetbuffer.c: Likewise.
6763         * libio/iosetvbuf.c: Likewise.
6764         * libio/ioungetc.c: Likewise.
6765         * libio/ioungetwc.c: Likewise.
6766         * libio/iovdprintf.c: Likewise.
6767         * libio/iovsprintf.c: Likewise.
6768         * libio/iovsscanf.c: Likewise.
6769         * libio/memstream.c: Likewise.
6770         * libio/obprintf.c: Likewise.
6771         * libio/oldfileops.c: Likewise.
6772         * libio/oldiofclose.c: Likewise.
6773         * libio/oldiofdopen.c: Likewise.
6774         * libio/oldiofopen.c: Likewise.
6775         * libio/oldiopopen.c: Likewise.
6776         * libio/oldstdfiles.c: Likewise.
6777         * libio/putc.c: Likewise.
6778         * libio/setbuf.c: Likewise.
6779         * libio/setlinebuf.c: Likewise.
6780         * libio/stdfiles.c: Likewise.
6781         * libio/strops.c: Likewise.
6782         * libio/vasprintf.c: Likewise.
6783         * libio/vscanf.c: Likewise.
6784         * libio/vsnprintf.c: Likewise.
6785         * libio/vswprintf.c: Likewise.
6786         * libio/wfiledoalloc.c: Likewise.
6787         * libio/wfileops.c: Likewise.
6788         * libio/wgenops.c: Likewise.
6789         * libio/wmemstream.c: Likewise.
6790         * libio/wstrops.c: Likewise.
6791         * libio/__fpurge.c: Likewise.
6792         * libio/__fsetlocking.c: Likewise.
6793         * assert/assert.c: Likewise.
6794         * debug/fgets_chk.c: Likewise.
6795         * debug/fgets_u_chk.c: Likewise.
6796         * debug/fread_chk.c: Likewise.
6797         * debug/fread_u_chk.c: Likewise.
6798         * debug/gets_chk.c: Likewise.
6799         * debug/obprintf_chk.c: Likewise.
6800         * debug/vasprintf_chk.c: Likewise.
6801         * debug/vdprintf_chk.c: Likewise.
6802         * debug/vsnprintf_chk.c: Likewise.
6803         * debug/vsprintf_chk.c: Likewise.
6804         * malloc/mtrace.c: Likewise.
6805         * misc/error.c: Likewise.
6806         * misc/syslog.c: Likewise.
6807         * stdio-common/asprintf.c: Likewise.
6808         * stdio-common/fxprintf.c: Likewise.
6809         * stdio-common/getw.c: Likewise.
6810         * stdio-common/isoc99_fscanf.c: Likewise.
6811         * stdio-common/isoc99_scanf.c: Likewise.
6812         * stdio-common/isoc99_vfscanf.c: Likewise.
6813         * stdio-common/isoc99_vscanf.c: Likewise.
6814         * stdio-common/isoc99_vsscanf.c: Likewise.
6815         * stdio-common/printf-prs.c: Likewise.
6816         * stdio-common/printf_fp.c: Likewise.
6817         * stdio-common/printf_fphex.c: Likewise.
6818         * stdio-common/printf_size.c: Likewise.
6819         * stdio-common/putw.c: Likewise.
6820         * stdio-common/scanf.c: Likewise.
6821         * stdio-common/sprintf.c: Likewise.
6822         * stdio-common/tmpfile.c: Likewise.
6823         * stdio-common/vfprintf.c: Likewise.
6824         * stdio-common/vfscanf.c: Likewise.
6825         * stdlib/strfmon_l.c: Likewise.
6826         * sunrpc/openchild.c: Likewise.
6827         * sunrpc/xdr_stdio.c: Likewise.
6828         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6829         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6830
6831 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6832
6833         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6834
6835         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6836         in the third column, to generate for the shared library an IFUNC
6837         that uses _dl_vdso_vsym.
6838         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6839         * Makeconfig (object-suffixes-noshared): New variable.
6840
6841         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6842         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6843         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6844         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6845
6846         [BZ #14132]
6847         * include/sys/time.h (__gettimeofday): Remove macro.
6848         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6849         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6850         Remove INTDEF.
6851         (__gettimeofday): Add libc_hidden_def.
6852         (gettimeofday): Add libc_hidden_weak.
6853         * sysdeps/mach/gettimeofday.c: Likewise.
6854         * sysdeps/posix/gettimeofday.c: Likewise.
6855         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6856         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6857         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6858         (__gettimeofday_internal): Remove strong_alias.
6859         (__gettimeofday): Add libc_hidden_def.
6860         (gettimeofday): Add libc_hidden_weak.
6861         * sysdeps/unix/syscalls.list (gettimeofday):
6862         Remove __gettimeofday_internal alias.
6863
6864 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6865             H.J. Lu  <hongjiu.lu@intel.com>
6866
6867         [BZ #12495]
6868         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6869         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6870         (largebin_index_32_big): New.
6871         (largebin_index): Use it for 16-byte alignment.
6872         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6873         correction with front_misalign.
6874
6875 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6876
6877         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6879         Likewise.
6880         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6881         Likewise.
6882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6883         Likewise.
6884         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6885         Likewise.
6886         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6887         Likewise.
6888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6889         Likewise.
6890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6891         Likewise.
6892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6893         Likewise.
6894         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6895         Likewise.
6896         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6897         Likewise.
6898         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6899         Likewise.
6900         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6901         Likewise.
6902
6903         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6904         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6905
6906 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6907
6908         [BZ #10846]
6909         [BZ #14036]
6910         * math/libm-test.inc (exp_test): Add test from bug 14036.
6911         (pow_test): Add test from bug 10846.
6912
6913         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6914         and other flags.
6915         (special_function): Do not include flags in test name.
6916         (parse_args): Likewise.
6917         * sysdeps/i386/fpu/libm-test-ulps: Update.
6918         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6919         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6920         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6922
6923         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6924         exceptions.
6925         * math/libm-test.inc ("Philosophy"): Update comment about
6926         exception testing.
6927         (UNDERFLOW_EXCEPTION): New macro.
6928         (UNDERFLOW_EXCEPTION_OK): Likewise.
6929         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6930         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6931         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6932         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6933         (INVALID_EXCEPTION_OK): Update value.
6934         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6935         (OVERFLOW_EXCEPTION_OK): Likewise.
6936         (IGNORE_ZERO_INF_SIGN): Likewise.
6937         (test_exceptions): Handle underflow exceptions.
6938         (acos_test): Update for underflow exception expectations.
6939         (cexp_test): Likewise.
6940         (clog_test): Likewise.
6941         (clog10_test): Likewise.
6942         (csqrt_test): Likewise.
6943         (ctan_test): Likewise.
6944         (ctanh_test): Likewise.
6945         (exp_test): Likewise.
6946         (exp10_test): Likewise.
6947         (exp2_test): Likewise.
6948         (expm1_test): Likewise.
6949         (fma_test): Likewise.
6950         (j0_test): Likewise.
6951         (jn_test): Likewise.
6952         (nexttoward_test): Likewise.
6953         (pow_test): Likewise.
6954         (scalbn_test): Likewise.
6955         (scalbln_test): Likewise.
6956         (tan_test): Likewise.
6957         (y1_test): Likewise.
6958         * sysdeps/i386/fpu/libm-test-ulps: Update.
6959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6960
6961 2012-05-23  David S. Miller  <davem@davemloft.net>
6962
6963         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6964         (__libc_sigaction): Remove unused local variables.
6965
6966 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6967
6968         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6969
6970 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6971
6972         mktime: avoid signed integer overflow
6973         * time/mktime.c (__mktime_internal): Do not mishandle the case
6974         where diff == INT_MIN.
6975
6976         mktime: simplify computation of average
6977         * time/mktime.c (ranged_convert): Use new time_t_avg function
6978         instead of rolling our own (probably-slower) code.
6979
6980         mktime: do not assume signed right shift propagates sign bit
6981         * time/mktime.c (isdst_differ): New static function.
6982         (__mktime_internal): No need to normalize tm_isdst now.
6983         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6984         tm_isdst values.
6985
6986         mktime: merge another wrapv change from gnulib
6987         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6988         from some compilers.
6989
6990         mktime: remove incorrect attempt at unusual arithmetics
6991         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6992         The code didn't really work on such machines anyway.
6993         (TYPE_MINIMUM): Assume two's complement.
6994         (twos_complement_arithmetic): Verify that long_int and time_t
6995         are two's complement (or unsigned, in the latter case).
6996
6997         mktime: check signed shifts on long_int and time_t, too
6998         * time/mktime.c (SHR): Check that shifts work as desired
6999         on the types long_int and time_t too, as SHR is used on
7000         such types.
7001
7002         mktime: do not assume 'long' is wide enough
7003         * time/mktime.c (verify): Move decl up.
7004         (long_int): New type.
7005         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7006         to remove assumption in the code that 'long' is wide enough to
7007         store year values.  This assumption is not true on x32 and on
7008         some non-glibc platforms.
7009
7010         mktime: merge wrapv change from gnulib
7011         * time/mktime.c (WRAPV): New macro.
7012         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7013         (guess_time_tm, __mktime_internal): Do not assume that signed
7014         integer overflow wraps around; modern compilers generate code
7015         where this assumption is no longer valid.
7016
7017 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7018
7019         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7020         Replace "jmp L(pseudo_end)" with "ret".
7021         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7022         Likewise.
7023
7024 2012-05-23  Andreas Jaeger  <aj@suse.de>
7025
7026         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7027         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7028
7029 2012-05-23  Andreas Jaeger  <aj@suse.de>
7030             Maximilian Attems  <max@stro.at>
7031
7032         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7033         New macros.
7034
7035 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7036
7037         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7038         code so that pseudo_end is just ret and the stack pointer is
7039         correct also for static library in error case.
7040
7041 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7042
7043         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7044         move to syscalls.list.
7045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7049
7050         * manual/install.texi (Running make install): Do not mention Linux
7051         kernel version for which pt_chown is not needed.
7052         (Linux): Do not mention problems with nscd with 2.0 kernels.
7053         * INSTALL: Regenerated.
7054
7055 2012-05-23  Andreas Jaeger  <aj@suse.de>
7056
7057         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7058         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7059         macro.
7060         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7061         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7062         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7063         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7064         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7065         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7066         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7067         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7068         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7069         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7070         * sysdeps/unix/sysv/linux/bits/in.h
7071         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7072
7073 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7074
7075         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7076         (PREPARE_VERSION): Just use assert instead, it will be elided
7077         under [NDEBUG] anyway.
7078
7079 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7080
7081         * sysdeps/unix/sysv/linux/Makefile: Include
7082         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7083         (sysdep_routines): Remove sysctl.
7084         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7085         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7086         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7087         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7088         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7089
7090 2012-05-22  Andreas Jaeger  <aj@suse.de>
7091
7092         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7093         that pseudo_end is just ret and the stack pointer is correct also
7094         for static library in error case.
7095
7096 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7097
7098         [BZ #14122]
7099         * nss/nsswitch.c (defconfig_entries): New variable.
7100         (__nss_database_lookup): Don't leak defconfig entries.
7101         (nss_parse_service_list): Don't leak on error paths.
7102         (free_database_entries): New function.
7103         (free_defconfig): New function.
7104         (free_mem): Move common code to free_database_entries.
7105
7106 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7107
7108         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7109         Add arch_prctl.
7110         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7111
7112         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7113         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7114         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7115         New macro.
7116         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7117         (INTERNAL_SYSCALL_TYPES): Likewise.
7118         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7119         (LOAD_REGS_TYPES_[1-6]): Likewise.
7120         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7121         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7122
7123 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7124
7125         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7126         copysignl for GLIBC_2_0.
7127         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7128         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7129         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7130         logbl for GLIBC_2_0.
7131         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7132         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7133
7134 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7135
7136         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7137         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7138
7139         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7140         Use "neg %eax".
7141
7142         * time/mktime.c: Update copyright years.
7143
7144 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7145
7146         mktime: merge comment-quoting-style change from gnulib
7147         * time/mktime.c: Quote 'like this' in comments.
7148         The GNU coding standards suggest that we no longer quote `like this',
7149         as "`" and "'" are typically rendered asymmetrically nowadays.
7150         The typical gnulib style is to quote 'like this' when quoting
7151         code, and "like this" when quoting English.
7152
7153         * time/mktime.c (compile-command): Add "-I.".
7154
7155         mktime: merge mktime-internal.h change from gnulib
7156         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7157
7158         mktime: merge time_r change from gnulib
7159         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7160
7161         mktime: merge DEBUG change from gnulib
7162         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7163         case system <time.h> has a #define.
7164
7165         mktime: merge <sys/types.h> change from gnulib
7166         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7167         since <time.t> is now guaranteed to define time_t.
7168
7169         mktime: merge HAVE_CONFIG_H change from gnulib
7170         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7171
7172 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7173
7174         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7175         Use "neg %eax".
7176
7177         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7178         __rlim_t cast.
7179         (struct rusage): Use anonymous union to pad each field to
7180         __syscall_slong_t.
7181
7182 2012-05-21  David S. Miller  <davem@davemloft.net>
7183
7184         * Makefules (o-iterator): Remove .s cases.
7185         (compile-command.s): Delete.
7186         (COMPILE.s): Delete.
7187         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7188
7189 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7190
7191         * configure.in (libc_cv_predef_stack_protector): Only consider
7192         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7193         * configure: Regenerated.
7194
7195 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7196
7197         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7198         New macro.  Use R*LP on int and pointer.
7199         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7200         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7201         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7202         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7203
7204         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7205         [__WORDSIZE_TIME64_COMPAT32] instead of
7206         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7207         (struct utmp): Likewise.
7208         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7209         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7210         Renamed to ...
7211         (__WORDSIZE_TIME64_COMPAT32): This.
7212         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7213         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7214         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7215         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7216         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7217         (__WORDSIZE_TIME64_COMPAT32): New macro.
7218
7219 2012-05-21  Andreas Jaeger  <aj@suse.de>
7220
7221         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7222         only if [SHARED]. Add prototype for __wcschr_ia32.
7223
7224 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7225
7226         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7227         of %rbp unmolested in the jmp_buf while mangling the low bits.
7228         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7229         unmolested high bits of %rbp while demangling the low bits.
7230         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7231
7232 2012-05-21  Andreas Jaeger  <aj@suse.de>
7233
7234         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7235         * sunrpc/svc_simple.c: Use it for registerrpc.
7236         * sunrpc/xcrypt.c: Use it for passwd2des.
7237
7238         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7239
7240 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7241
7242         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7243         Don't define if [__SYSCALL_WORDSIZE != 32].
7244         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7245         New macro.
7246
7247 2012-05-21  Bruno Haible  <bruno@clisp.org>
7248             Andreas Jaeger  <aj@suse.de>
7249
7250         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7251         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7252         inptr and inend for must_buffer_ch.
7253         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7254         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7255         * stdio-common/Makefile (tests): Remove bug15.
7256         (bug15-ENV): Remove macro.
7257         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7258         anymore.
7259
7260 2012-05-19  Andreas Jaeger  <aj@suse.de>
7261             Roland McGrath  <roland@hack.frob.com>
7262
7263         * manual/contrib.texi: Completely rewritten. It contains now an
7264         alphabetical list of contributors and their contributions.
7265
7266 2012-05-21  Richard Henderson  <rth@twiddle.net>
7267
7268         * misc/getauxval.c (__getauxval): Use unsigned long int.
7269         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7270         (getauxval): Use unsigned long int.
7271
7272 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7273
7274         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7275
7276 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7277
7278         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7279         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7280         __alignof__ (long double).
7281
7282 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7283
7284         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7285
7286 2012-05-20  Richard Henderson  <rth@twiddle.net>
7287
7288         * misc/getauxval.c: New file.
7289         * misc/sys/auxv.h: New file.
7290         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7291         (routines): Add getauxval.
7292         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7293         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7294         * elf/dl-sysdep.c (_dl_auxv): Remove.
7295         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7296         * elf/dl-support.c (_dl_auxv): New variable.
7297         (_dl_aux_init): Initialize it.
7298         * manual/startup.texi (Auxiliary Vector): New node.
7299         * sysdeps/generic/bits/hwcap.h: New file.
7300         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7301         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7302         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7303         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7304         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7305         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7307         Update.
7308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7311         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7312         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7313         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7314         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7315         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7316
7317 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7318
7319         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7320
7321 2012-05-19  David S. Miller  <davem@davemloft.net>
7322
7323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7324
7325 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7326
7327         [BZ #14123]
7328         * math/s_ccosh.c: Include <float.h>
7329         (__ccosh): Avoid internal overflow calculating sinh and cosh
7330         values before multiplying by sin and cos values.
7331         * math/s_ccoshf.c: Likewise.
7332         * math/s_ccoshl.c: Likewise.
7333         * math/s_csin.c: Likewise.
7334         * math/s_csinf.c: Likewise.
7335         * math/s_csinl.c: Likewise.
7336         * math/s_csinh.c: Likewise.
7337         * math/s_csinhf.c: Likewise.
7338         * math/s_csinhl.c: Likewise.
7339         * math/libm-test.inc (ccos_test): Add more tests.
7340         (ccosh_test): Likewise.
7341         (csin_test): Likewise.
7342         (csinh_test): Likewise.
7343         * sysdeps/i386/fpu/libm-test-ulps: Update.
7344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7345
7346 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7347
7348         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7349         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7350
7351         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7352
7353 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7354
7355         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7356         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7357         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7358         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7359         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7360         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7361         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7362         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7363         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7364         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7365         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7366         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7367         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7368         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7369         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7370         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7371         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7372         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7373         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7374         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7375         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7376         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7377         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7378         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7379         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7380         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7381         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7382         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7383         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7384         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7385         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7386
7387 2012-05-18  Andreas Jaeger  <aj@suse.de>
7388
7389         * csu/.gitignore: Delete.
7390
7391 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7394         (timex): Use __syscall_slong_t.
7395
7396 2012-05-18  Andreas Jaeger  <aj@suse.de>
7397             Carlos O'Donell  <carlos_odonell@mentor.com>
7398
7399         * manual/install.texi (Configuring and compiling): Update
7400         description about files modified in the source directory.
7401         * INSTALL: Regenerated.
7402
7403 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7404
7405         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7406         value.  Use "or" to set return value to -1.
7407         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7408         negate return value.
7409
7410 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7411
7412         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7413         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7414         failure if the compiler has Graphite support disabled.
7415         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7416         Likewise.
7417         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7418         CFLAGS-memmove.c): Likewise.
7419         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7420         Likewise.
7421
7422 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7423
7424         * sysdeps/x86_64/x32/_itoa.h: New file.
7425
7426         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7427         getdents system call only if kernel and user dirents have the
7428         same d_ino and d_off.
7429
7430         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7431         LLONG_MAX != LONG_MAX.
7432         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7433         (_fitoa_word): Likewise.
7434
7435         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7436         years.
7437         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7438         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7439         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7440
7441         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7442         include <bits/wordsize.h>.  Check __x86_64__ instead of
7443         __WORDSIZE.
7444         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7445         if __x86_64__ is defined.  Use anonymous union on fpstate.
7446
7447         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7448         anonymous union.
7449
7450 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7451
7452         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7453         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7454         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7455         Refer to _rtld_local_ro instead of _rtld_global_ro.
7456         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7457         Likewise.
7458         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7459         Likewise.
7460         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7461         Likewise.
7462         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7463         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7464         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7465
7466         * sysdeps/powerpc/powerpc32/dl-machine.c
7467         (__elf_machine_runtime_setup) [PROF]: Don't reference
7468         _dl_prof_resolve.
7469
7470 2012-05-18  Andreas Jaeger  <aj@suse.de>
7471
7472         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7473         function only available for GCCs before 3.4 since GCC 3.4
7474         introduced a builtin.
7475         (lrint): Likewise.
7476         (llrintf): Likewise.
7477         (llrint): Likewise.
7478         (fmaxf): Likewise.
7479         (fmax): Likewise.
7480         (fminf): Likewise.
7481         (fmin): Likewise.
7482         (rint): Likewise.
7483         (rintf): Likewise.
7484         (nearbyint): Likewise.
7485         (nearbyintf): Likewise.
7486         (ceil): Likewise.
7487         (ceilf): Likewise.
7488         (floor): Likewise.
7489         (floorf): Likewise.
7490
7491 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7492
7493         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7494         on both fields and cast pointer to __syscall_ulong_t.
7495
7496         * bits/types.h (__fsword_t): New type.
7497         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7498         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7499         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7500         (__FSWORD_T_TYPE): Likewise.
7501         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7502         (__FSWORD_T_TYPE): Likewise.
7503         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7504         (__FSWORD_T_TYPE): Likewise.
7505         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7506         (__FSWORD_T_TYPE): Likewise.
7507         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7508         __SWORD_TYPE with __fsword_t.
7509         (statfs64): Likewise.
7510
7511 2012-05-17  David S. Miller  <davem@davemloft.net>
7512
7513         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7514
7515 2012-05-17  Andreas Jaeger  <aj@suse.de>
7516
7517         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7518         warning.
7519
7520 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7521
7522         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7523
7524 2012-05-17  Andreas Jaeger  <aj@suse.de>
7525
7526         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7527         when it is used.
7528
7529 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7530
7531         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7532
7533 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7534
7535         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7536         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7537
7538 2012-05-17  Andreas Jaeger  <aj@suse.de>
7539             Carlos O'Donell  <carlos_odonell@mentor.com>
7540
7541         [BZ #14059]
7542         * sysdeps/x86_64/multiarch/init-arch.h
7543         (bit_YMM_Usable): Rename to...
7544         (bit_AVX_Usable): ... this.
7545         (bit_FMA4_Usable): New macro.
7546         (bit_XMM_state): New macro.
7547         (bit_YMM_state): New macro.
7548         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7549         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7550         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7551         (CPUID_OSXSAVE): New macro.
7552         (CPUID_AVX): New macro.
7553         (CPUID_FMA4): New macro.
7554         (index_YMM_Usable): Rename to...
7555         (index_AVX_Usable): ... this.
7556         (HAS_AVX): Use HAS_ARCH_FEATURE.
7557         (HAS_FMA4): Likewise.
7558         (HAS_YMM_USABLE): Remove.
7559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7560         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7561         are present.
7562         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7563         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7564         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7565         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7566         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7567
7568 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7569
7570         * math/libm-test.c: Support platforms without multiple rounding modes.
7571         * math/bug-nextafter.c: Support platforms without FP exceptions.
7572         * math/bug-nexttoward.c: Likewise.
7573         * math/test-fenv.c: Likewise.
7574         * math/test-misc.c: Likewise.
7575         * stdlib/bug-getcontext.c: Likewise.
7576
7577 2012-05-17  Andreas Jaeger  <aj@suse.de>
7578
7579         * manual/examples/search.c (critter_cmp): Change signature to
7580         avoid warnings.
7581         * manual/string.texi (Collation Functions): Likewise.
7582
7583 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7584
7585         * bits/types.h: Fold copyright years.
7586         * bits/typesizes.h: Likewise.
7587         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7588         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7589         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7590         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7591         * time/time.h: Likewise.
7592
7593 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7594
7595         [BZ #208]
7596         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7597         in instead of returning them.  Return void.
7598         (__libc_mallinfo): Accumulate over all arenas.
7599         (__malloc_stats): Adjust for change in int_mallinfo interface.
7600
7601 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7602
7603         [BZ #10375]
7604         * configure.in (NM): Add AC_CHECK_TOOL for it.
7605         (libc_extra_cflags): New substituted variable.
7606         Check for -fstack-protector being used implicitly.
7607         * configure: Regenerated.
7608         * config.make.in (config-extra-cflags): New variable,
7609         gets @libc_extra_cflags@.
7610         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7611
7612         [BZ #10375]
7613         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7614         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7615         * configure: Regenerated.
7616         * config.make.in (CPPUNDEFS): New substituted variable.
7617         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7618         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7619         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7620
7621 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7622
7623         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7624         (mq_attr): Use __syscall_slong_t.
7625
7626 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7629         Check __x86_64__ instead of __WORDSIZE.
7630         (_STAT_VER_LINUX): Likewise.
7631         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7632         __syscall_ulong_t and __syscall_slong_t.
7633         (stat64): Likewise.
7634
7635 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7636
7637         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7638
7639 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7640
7641         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7642
7643 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7644
7645         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7646         __syscall_ulong_t.
7647
7648         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7649         include <bits/wordsize.h>.  Check __x86_64__ instead of
7650         __WORDSIZE.
7651         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7652         defined.
7653         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7654
7655         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7656         include <bits/wordsize.h>.  Check __x86_64__ instead of
7657         __WORDSIZE.
7658         (user_regs_struct): Use "__extension__ unsigned long long"
7659         instead of "unsigned long" if __x86_64__ is defined.
7660         (user): Likewise.  Pad after pointer field if __ILP32__ is
7661         defined.
7662
7663 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7664
7665         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7666         versions 5 to 9.
7667         * configure: Regenerated.
7668         * manual/install.texi (texinfo): Increase version requirement to
7669         4.5 or later.
7670         * INSTALL: Regenerated.
7671
7672         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7673
7674 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7675
7676         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7677
7678         * sysdeps/x86_64/x32/ffs.c: New file.
7679
7680         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7681         __syscall_ulong_t.
7682         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7683         defined.  Use __syscall_ulong_t.
7684         (shminfo): Use __syscall_ulong_t.
7685         (shm_info): Likewise.
7686
7687         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7688         __syscall_ulong_t.
7689
7690         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7691         <bits/wordsize.h>.
7692         (msgqnum_t): Use __syscall_ulong_t.
7693         (msglen_t): Likewise.
7694         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7695         __syscall_ulong_t.
7696
7697         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7698         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7699
7700         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7701
7702         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7703         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7704
7705         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7706         __syscall_slong_t.
7707
7708         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7709         include <bits/wordsize.h>.  Check __x86_64__ instead of
7710         __WORDSIZE.
7711
7712         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7713         "unsigned long long int" if __x86_64__ is defined.
7714         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7715
7716         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7717         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7718         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7719
7720         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7721         <stdint.h>.
7722         (GET_PC): Cast to uintptr_t first.
7723         (GET_FRAME): Likewise.
7724         (GET_STACK): Likewise.
7725
7726         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7727         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7728         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7729         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7730         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7731         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7732         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7733         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7734         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7735         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7736         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7737         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7738         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7739         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7740         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7741         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7742         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7743         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7744         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7745         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7746         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7747         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7748         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7749         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7750         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7751         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7752         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7753         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7754         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7755
7756 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7757
7758         * Makerules (+depfiles): Also collect depfiles from .oS in
7759         $(extra-objs).
7760         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7761         .oS, $(libnldbl-routines)).
7762
7763         * Makerules (native-compile-mkdep-flags): Define.
7764         * sunrpc/Makefile (extra-objs): Add $(addprefix
7765         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7766         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7767         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7768         calling $(make-target-directory).
7769
7770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7771
7772         * bits/types.h (__snseconds_t): Removed.
7773         * time/time.h (struct timespec): Replace __snseconds_t with
7774         __syscall_slong_t.
7775         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7776         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7777         Likewise.
7778         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7779         (__SNSECONDS_T_TYPE): Likewise.
7780         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7781         (__SNSECONDS_T_TYPE): Likewise.
7782         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7783         (__SNSECONDS_T_TYPE): Likewise.
7784
7785 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         * sysdeps/mach/hurd/bits/typesizes.h
7788         (__SYSCALL_SLONG_TYPE): New macro.
7789         (__SYSCALL_ULONG_TYPE): Likewise.
7790
7791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * bits/types.h (__syscall_slong_t): New type.
7794         (__syscall_ulong_t): Likewise.
7795
7796         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7797         (__SYSCALL_ULONG_TYPE): Likewise.
7798         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7799         (__SYSCALL_SLONG_TYPE): Likewise.
7800         (__SYSCALL_ULONG_TYPE): Likewise.
7801         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7802         (__SYSCALL_SLONG_TYPE): Likewise.
7803         (__SYSCALL_ULONG_TYPE): Likewise.
7804         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7805         (__SYSCALL_SLONG_TYPE): Likewise.
7806         (__SYSCALL_ULONG_TYPE): Likewise.
7807
7808 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7809
7810         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7811         Add sigaltstack-offsets.sym.
7812         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7813         <sigaltstack-offsets.h>.
7814         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7815         longjmp_msg pointer.
7816         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7817         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7818         signal stack.
7819         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7820
7821 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7822
7823         * elf/stackguard-macros.h: Remove file.
7824         * sysdeps/generic/stackguard-macros.h: New file.
7825         * sysdeps/i386/stackguard-macros.h: Likewise.
7826         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7827         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7828         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7829         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7830         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7831         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7832         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7833         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7834         <elf/stackguard-macros.h>.
7835
7836         [BZ #14109]
7837         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7838         __aligned__ in attribute.
7839         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7840         (gregset_t): Likewise.
7841
7842 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7843
7844         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7845         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7846         * sysdeps/x86_64/x32/Implies-after: New file.
7847
7848 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7849
7850         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7851         and access return value for _dl_profile_fixup.  Use R10_LP to
7852         load frame size.
7853
7854 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7855
7856         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7857
7858 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7859
7860         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7861         * sysdeps/x86_64/x32/sysdep.h: New file.
7862
7863 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7864
7865         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7866         * sysdeps/x86_64/setjmp.S: Likewise.
7867
7868 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7869
7870         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7871         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7872         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7873         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7874         remove unused global constant.
7875
7876 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7877
7878         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7879         include of <not-cancel.h>.
7880
7881 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7882
7883         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7884
7885 2012-05-15  Jeff Law  <law@redhat.com>
7886             Andreas Jaeger  <aj@suse.de>
7887
7888         [BZ #13594]
7889         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7890         out from...
7891         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7892         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7893         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7894         code changing __hst_map_handle.map.
7895
7896 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7897
7898         * configure.in (sysnames): Look for Implies-before and Implies-after
7899         files.
7900         * configure: Regenerated.
7901
7902 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7903
7904         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7905         8-byte data alignment with LP_SIZE alignment.
7906
7907 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7908
7909         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7910         into R10_LP.
7911
7912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7913
7914         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7915
7916 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7917
7918         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7919         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7920         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7921         Likewise.
7922         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7923
7924 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7925
7926         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7927         (stackinfo_sub_sp): Likewise.
7928
7929 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7930
7931         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7932         RAX_LP.
7933
7934 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7935
7936         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7937         into R*_LP.
7938
7939 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7940
7941         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7942         sizes into R*_LP.
7943
7944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7945
7946         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7947
7948 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7949
7950         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7951         into R11_LP and load __x86_64_shared_cache_size_half into
7952         R8_LP.
7953
7954 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7955
7956         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7957         R8_LP.
7958
7959 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7960
7961         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7962         logb for POWER7.
7963         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7964         logbf for POWER7.
7965         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7966         logbl for POWER7.
7967         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7968         powerpc32/power7/fpu/s_logb.c via #include.
7969         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7970         powerpc32/power7/fpu/s_logbf.c via #include.
7971         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7972         powerpc32/power7/fpu/s_logbl.c via #include.
7973
7974 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7975
7976         * README.libm: Remove file.
7977
7978 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7979
7980         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7981         count for x32.  Use R*_LP and omit operand-size suffix.
7982
7983 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7984
7985         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7986         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7987         * sysdeps/x86_64/x32/shlib-versions: New file.
7988
7989 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7990
7991         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7992         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7993         Use _dl_fatal_printf instead.
7994
7995 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7996
7997         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7998         set if not set by the user.  Do not allow for being unset.
7999         * sysdeps/unix/sysv/linux/configure: Regenerated.
8000
8001 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8004         the `q' suffix from lea and replace .quad with ASM_ADDR.
8005
8006 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8007
8008         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8009         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8010         instead of $17.
8011         (PTR_DEMANGLE): Likewise.
8012
8013 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8014
8015         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8016         (LP_OP): Likewise.
8017         (ASM_ADDR): Likewise.
8018         (RAX_LP): Likewise.
8019         (RBP_LP): Likewise.
8020         (RBX_LP): Likewise.
8021         (RCX_LP): Likewise.
8022         (RDI_LP): Likewise.
8023         (RSI_LP): Likewise.
8024         (RSP_LP): Likewise.
8025         (R8_LP): Likewise.
8026         (R9_LP): Likewise.
8027         (R10_LP): Likewise.
8028         (R10_LP): Likewise.
8029         (R11_LP): Likewise.
8030         (R12_LP): Likewise.
8031         (R13_LP): Likewise.
8032         (R14_LP): Likewise.
8033         (R15_LP): Likewise.
8034
8035 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8036
8037         * sysdeps/x86_64/x32/dl-machine.h: New file.
8038
8039 2012-05-14  Andreas Jaeger  <aj@suse.de>
8040
8041         * manual/Makefile (subdir): Remove export of subdir.
8042         (all): Remove target.
8043         (.PHONY): Remove all from list.
8044         (mkinstalldirs): Remove.
8045         (.PHONY): Remove installdirs from list.
8046         ($(inst_infodir)/libc.info): Use make-target-directory.
8047         (installdirs): Remove.
8048         (subdir_%): Remove.
8049         (glibc-targets): Remove.
8050         (lib): Remove.
8051         (stubs): Remove.
8052         ($(objpfx)stubs ../po/manual.pot): Remove.
8053         ($(objpfx)stamp%): Remove.
8054         (make-target-directory): Remove.
8055         (subdir_install): Remove.
8056         (routines): Remove.
8057         (aux): Remove.
8058         (sources): Remove.
8059         (objects): Remove.
8060         (headers): Remove.
8061
8062         [BZ #13750]
8063         * manual/.gitignore: Remove, it's not needed anymore.
8064         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8065         all files in it.
8066         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8067         directory.
8068         (texis): Renamed to $(objpfx)texis.
8069         (texis-path): New, contains path to generated files.
8070         (chapters.%): Use texis-path for complete path, add extra argument
8071         libc-texinfo.sh.
8072         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8073         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8074         (summary,texi, stamp-summary): Use complete path of
8075         files. Generate files in build dir.
8076         (dir-add.texi): Build in build dir.
8077         (libm-err.texi,stamp-libm-err): Likewise.
8078         (version.texi, stamp-version): Likewise.
8079         (.%c.texi): Likewise.
8080         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8081         (mostlyclean): Remove target.
8082         (realclean): Remove target.
8083         (generated): Add new variable with contents from mostlyclean and
8084         realclean, remove entries duplicated in common-mostlyclean, add
8085         stamp-libm-err and stamp-version.
8086         (generated-dirs): Add libc directory.
8087         ($(inst_infodir)/libc.info): Install files from build dir.
8088
8089         * manual/install.texi (Configuring and compiling): Adjust since
8090         the info files are not part of the tar ball anymore.
8091
8092 2012-05-14  Andreas Jaeger  <aj@suse.de>
8093
8094         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8095         variable.
8096
8097 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8098
8099         [BZ #13717]
8100         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8101         to 2.2.0 where earlier.
8102         * sysdeps/unix/sysv/linux/configure: Regenerated.
8103         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8104         Remove conditional code.
8105         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8106         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8107         Remove conditional code.
8108         [!__NR_lchown]: Likewise.
8109         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8110         [__NR_lchown]: Likewise.
8111         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8112         comment referencing __ASSUME_LCHOWN_SYSCALL.
8113         * sysdeps/unix/sysv/linux/i386/sigaction.c
8114         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8115         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8116         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8117         Remove conditional code.
8118         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8119         (__protocol_available): Remove #if 0 code.
8120         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8121         conditional code.
8122         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8123         * sysdeps/unix/sysv/linux/kernel-features.h
8124         (__ASSUME_GETCWD_SYSCALL): Don't define.
8125         (__ASSUME_REALTIME_SIGNALS): Likewise.
8126         (__ASSUME_PREAD_SYSCALL): Likewise.
8127         (__ASSUME_PWRITE_SYSCALL): Likewise.
8128         (__ASSUME_POLL_SYSCALL): Likewise.
8129         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8130         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8131         non-SPARC.
8132         (__ASSUME_SIOCGIFNAME): Don't define.
8133         (__ASSUME_MSG_NOSIGNAL): Likewise.
8134         (__ASSUME_SENDFILE): Define unconditionally.
8135         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8136         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8137         conditional code.
8138         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8139         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8140         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8141         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8142         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8143         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8144         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8146         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8147         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8149         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8150         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8152         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8153         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8155         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8156         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8158         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8159         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8161         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8162         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8164         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8165         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8167         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8168         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8169         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8170         Remove conditional code.
8171         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8172         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8173         Remove conditional code.
8174         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8175         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8176         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8177         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8178         Remove conditional code.
8179         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8180         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8181         Remove conditional code.
8182         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8183         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8184         Remove conditional code.
8185         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8186         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8187         Remove conditional code.
8188         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8189         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8190         Remove conditional code.
8191         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8192         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8193         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8194         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8195         * sysdeps/unix/sysv/linux/sigaction.c
8196         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8197         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8198         * sysdeps/unix/sysv/linux/sigpending.c
8199         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8200         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8201         * sysdeps/unix/sysv/linux/sigprocmask.c
8202         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8203         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8204         * sysdeps/unix/sysv/linux/sigsuspend.c
8205         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8206         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8207         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8208         (__libc_missing_rt_sigs): Remove.
8209         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8210         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8211         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8212         Remove conditional code.
8213         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8214         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8215         return 1.
8216         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8217         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8218         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8219         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8220
8221 2012-05-14  Andreas Jaeger  <aj@suse.de>
8222
8223         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8224         it's not used in glibc.
8225         (__coshm1): Likewise.
8226         (__acosh1p): Likewise.
8227         (__sgn): Likewise.
8228
8229         * manual/string.texi (Copying and Concatenation): Add missing
8230         variable in concat example.
8231         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8232
8233 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8234
8235         [BZ #14103]
8236         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8237         __builtin_clzl with __builtin_clzll.
8238
8239 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8240
8241         [BZ #14104]
8242         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8243         libc_freeres_ptr.
8244
8245 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8246
8247         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8248         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8249         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8250         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8251
8252 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8253
8254         * NEWS: Update ia64 info.
8255
8256 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8257
8258         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8259         used as bcopy.
8260
8261 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8262
8263         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8264         * sysdeps/unix/syscalls.list (dup3): Likewise.
8265         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8266         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8267
8268 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8269
8270         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8271         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8272
8273 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8274
8275         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8276         thread pointer.
8277         (TLS_IE): Use mov/add instead of movq/addq to load thread
8278         pointer.
8279         (TLS_GD_PREFIX): New.
8280         (TLS_GD): Use it.
8281
8282 2012-05-11  David S. Miller  <davem@davemloft.net>
8283
8284         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8285         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8286         (_FPU_SETCW): Likewise.
8287
8288 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8289
8290         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8291         is 32-byte aligned.
8292
8293 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8294
8295         [BZ #11837]
8296         * iconvdata/gb18030.c: Update tables.
8297         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8298         characters specially.
8299         (BODY for TO_LOOP): Add encoding of missing ranges.
8300
8301 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8302
8303         [BZ #13673]
8304         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8305         * sysdeps/mach/hurd/dup3.c: Likewise.
8306         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8307         * sysdeps/powerpc/memmove.c:: Likewise.
8308
8309 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8310
8311         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8312         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8313
8314 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8315
8316         * elf/elf.h (R_X86_64_RELATIVE64): New.
8317         (R_X86_64_NUM): Updated.
8318         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8319         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8320         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8321         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8322         tst-quad1pie tst-quad2pie
8323         (modules-names): Add tst-quadmod1 tst-quadmod2.
8324         ($(objpfx)tst-quad1): New dependency.
8325         ($(objpfx)tst-quad2): Likewise.
8326         ($(objpfx)tst-quad1pie): Likewise.
8327         ($(objpfx)tst-quad2pie): Likewise.
8328         * sysdeps/x86_64/tst-quad1.c: New file.
8329         * sysdeps/x86_64/tst-quad1pie.c: New file.
8330         * sysdeps/x86_64/tst-quad2.c: Likewise.
8331         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8332         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8333         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8334         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8335         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8336
8337 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8338
8339         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8340         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8341         * streams/stropts.h (t_scalar_t): Define type.
8342
8343         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8344         (_PATH_PRESERVE): Set to "/var/lib".
8345         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8346
8347         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8348         instead of int.
8349
8350         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8351         if __dir_mkfile succeeded.
8352
8353         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8354         checking for _hurd_dtablesize.  Unlock it right after having
8355         finished _hurd_dtable allocation.
8356
8357 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8358
8359         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8360         * sysdeps/mach/hurd/configure: Regenerated.
8361         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8362         special-casing to...
8363         * sysdeps/gnu/configure.in: ... this new file.
8364         * sysdeps/unix/sysv/linux/configure: Regenerated.
8365         * sysdeps/gnu/configure: New generated file.
8366
8367         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8368         for Linux: use nsec instead of usec, as well as:
8369         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8370         members of type struct timespec.
8371         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8372         New macros.
8373         (struct stat64): Likewise.
8374         (_STATBUF_ST_NSEC): New macro.
8375         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8376
8377         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8378         __strtoul_internal rather than strtoul.
8379
8380 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8381
8382         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8383         and reject them.
8384
8385 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8386
8387         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8388         which preserves existing values.
8389         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8390
8391 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8392
8393         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8394         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8395         greater than FD_SETSIZE.
8396
8397 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8398
8399         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8400         allocated, call __vm_protect to finish enabling the existing space, and
8401         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8402         allocate the remainder.
8403
8404 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8405
8406         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8407         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8408
8409 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8410
8411         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8412         sysdeps/mach/hurd/readlink.c.
8413
8414         * posix/tst-sysconf.c (posix_options): Only use
8415         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8416         _POSIX_SYNCHRONIZED_IO when they are defined
8417         * sysdeps/mach/hurd/bits/posix_opt.h:
8418         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8419         (_XOPEN_REALTIME): Undefine macro.
8420         (_XOPEN_REALTIME_THREADS): Undefine macro.
8421         (_XOPEN_SHM): Undefine macro.
8422         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8423         macro to -1.
8424         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8425         macro to -1.
8426         (_POSIX_ASYNC_IO): Undefine macro.
8427         (_POSIX_PRIORITIZED_IO): Undefine macro.
8428         (_POSIX_SPIN_LOCKS): Define macro to -1.
8429
8430         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8431         SA_NODEFER, SA_RESETHAND.
8432         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8433         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8434         F_DUPFD_CLOEXEC.
8435
8436 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8437
8438         * elf/Makefile (pldd-modules): Define unconditionally.
8439
8440 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8441
8442         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8443
8444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8445
8446         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8447         Return ENOENT when name is empty.
8448         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8449
8450 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8451
8452         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8453
8454         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8455
8456 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8457
8458         Fix mlock in all cases except non-readable pages.
8459         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8460         instead of VM_PROT_ALL as parameter to __vm_wire function.
8461
8462         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8463         (__mkdir): When path is `/', just fail with EEXIST.
8464         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8465
8466 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8467
8468         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8469         <sys/uio.h> (for writev).
8470         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8471         and <sys/param.h> (for MIN).
8472
8473 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8474
8475         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8476         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8477         if interrupted.
8478
8479 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8480
8481         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8482         Depend on against $(link-rpcuserlibs).
8483
8484 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8485
8486         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8487         (__libc_stack_end): Do not use attribute_relro.
8488         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8489         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8490         to libthread-provided value.
8491         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8492         attribute_relro.
8493
8494 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8495
8496         [BZ #3748]
8497         * bits/libc-lock.h (__libc_once_get): New macro.
8498         * sysdeps/mach/bits/libc-lock.h: Likewise.
8499         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8500         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8501         instead of using implementation details.
8502
8503         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8504         * libio/freopen.c: Likewise.
8505         * libio/freopen64.c: Likewise.
8506         * misc/syslog.c: Likewise.
8507         * nscd/connections.c: Likewise.
8508         * nscd/netgroupcache.c: Likewise.
8509         * sysdeps/posix/getcwd.c: Likewise.
8510
8511 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8512
8513         * math/w_ilogbf.c: Add #include <limits.h>.
8514
8515 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8516
8517         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8518         path instead of returning without unlocking.
8519
8520         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8521         immediate-write ioctls.
8522         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8523
8524 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8525
8526         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8527         __builtin_frame_address instead of making assumptions about the
8528         location of the return address relative to DATA.  Force early load of
8529         the return address.
8530         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8531         __builtin_frame_address.
8532
8533         dup3 for GNU Hurd.
8534         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8535         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8536         implement dup3 and do some further code clean-ups.
8537         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8538         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8539
8540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8541
8542         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8543
8544         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8545         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8546         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8547         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8548         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8549         d->port.lock.
8550
8551         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8552         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8553         when handler == SIG_ERR, not when handler != SIG_ERR.
8554
8555 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8556
8557         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8558         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8559         definitions.
8560
8561         accept4 for GNU Hurd.
8562         * include/sys/socket.h (__libc_accept4): New prototype.
8563         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8564         to implement __libc_accept4.
8565         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8566         __libc_accept4.
8567         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8568
8569         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8570         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8571         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8572         signal-defines.sym.
8573
8574 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8575
8576         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8577
8578 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8579
8580         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8581         assertion on O_CLOEXEC flag.
8582         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8583         * hurd/intern-fd.c: Likewise.
8584         * hurd/port2fd.c: Likewise.
8585
8586 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8587
8588         [BZ #3906]
8589         * bits/in.h (IPV6_PKTINFO): Define new macro.
8590         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8591
8592 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8593
8594         [BZ #13954]
8595         [BZ #13955]
8596         [BZ #13956]
8597         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8598         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8599         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8600         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8601         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8602         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8603         * math/libm-test.inc (logb_test) : Additional logb tests.
8604
8605 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8606             Andreas Jaeger  <aj@suse.de>
8607
8608         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8609         * configure: Regenerated.
8610         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8611         * config.make.in (link-obsolete-rpc): New substituted variable.
8612         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8613         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8614         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8615         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8616         so that libc.a contains the symbols.
8617         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8618         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8619         * sunrpc/auth_none.c: Likewise.
8620         * sunrpc/auth_unix.c: Likewise.
8621         * sunrpc/authdes_prot.c: Likewise.
8622         * sunrpc/authuxprot.c: Likewise.
8623         * sunrpc/clnt_gen.c: Likewise.
8624         * sunrpc/clnt_perr.c: Likewise.
8625         * sunrpc/clnt_raw.c: Likewise.
8626         * sunrpc/clnt_simp.c: Likewise.
8627         * sunrpc/clnt_tcp.c: Likewise.
8628         * sunrpc/clnt_udp.c: Likewise.
8629         * sunrpc/clnt_unix.c: Likewise.
8630         * sunrpc/des_crypt.c: Likewise.
8631         * sunrpc/des_soft.c: Likewise.
8632         * sunrpc/get_myaddr.c: Likewise.
8633         * sunrpc/key_call.c: Likewise.
8634         * sunrpc/key_prot.c: Likewise.
8635         * sunrpc/netname.c: Likewise.
8636         * sunrpc/pm_getmaps.c: Likewise.
8637         * sunrpc/pm_getport.c: Likewise.
8638         * sunrpc/pmap_clnt.c: Likewise.
8639         * sunrpc/pmap_prot.c: Likewise.
8640         * sunrpc/pmap_prot2.c: Likewise.
8641         * sunrpc/pmap_rmt.c: Likewise.
8642         * sunrpc/publickey.c: Likewise.
8643         * sunrpc/rpc_cmsg.c: Likewise.
8644         * sunrpc/rpc_common.c: Likewise.
8645         * sunrpc/rpc_dtable.c: Likewise.
8646         * sunrpc/rpc_prot.c: Likewise.
8647         * sunrpc/rpc_thread.c: Likewise.
8648         * sunrpc/rtime.c: Likewise.
8649         * sunrpc/svc.c: Likewise.
8650         * sunrpc/svc_auth.c: Likewise.
8651         * sunrpc/svc_raw.c: Likewise.
8652         * sunrpc/svc_run.c: Likewise.
8653         * sunrpc/svc_tcp.c: Likewise.
8654         * sunrpc/svc_udp.c: Likewise.
8655         * sunrpc/svc_unix.c: Likewise.
8656         * sunrpc/svcauth_des.c: Likewise.
8657         * sunrpc/xcrypt.c: Likewise.
8658         * sunrpc/xdr.c: Likewise.
8659         * sunrpc/xdr_array.c: Likewise.
8660         * sunrpc/xdr_float.c: Likewise.
8661         * sunrpc/xdr_intXX_t.c: Likewise.
8662         * sunrpc/xdr_mem.c: Likewise.
8663         * sunrpc/xdr_rec.c: Likewise.
8664         * sunrpc/xdr_ref.c: Likewise.
8665         * sunrpc/xdr_sizeof.c: Likewise.
8666         * sunrpc/xdr_stdio.c: Likewise.
8667
8668 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8669
8670         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8671         change.  Update copyright years.
8672
8673 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8674
8675         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8676
8677 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8678             Joseph Myers  <joseph@codesourcery.com>
8679             Paul Pluzhnikov  <ppluzhnikov@google.com>
8680
8681         [BZ #14012]
8682         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8683         requiring rpcgen.
8684         [cross-compiling] (extra-libs): Likewise.
8685         [cross-compiling] (extra-libs-others): Likewise.
8686         [cross-compiling] (librpcsvc-routines): Likewise.
8687         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8688         [cross-compiling] (omit-deps): Likewise.
8689         (sunrpc-CPPFLAGS): New variable.
8690         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8691         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8692         (cross-rpcgen-objs): New variable.
8693         (extra-objs): Append $(cross-rpcgen-objs).
8694         ($(cross-rpcgen-objs)): New rule.
8695         ($(objpfx)cross-rpcgen): Likewise.
8696         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8697         comment.
8698         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8699         ($(objpfx)x%.stmp): Likewise.
8700         * sunrpc/proto.h [IS_IN_build] (_): Define.
8701         [IS_IN_build] (_libc_intl_domainname): Likewise.
8702
8703 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8704
8705         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8706         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8707         and R_X86_64_TPOFF64.
8708
8709 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8710
8711         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8712         sysdeps/unix/sysv/syscalls.list.
8713         (stime): Likewise.
8714         (utime): Likewise.
8715         * sysdeps/unix/sysv/syscalls.list: Remove file.
8716
8717 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8718
8719         [BZ #3440]
8720         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8721         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8722         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8723         (__LC_IDENTIFICATION): Make these macros useful in #if
8724         expressions, as required by C99.
8725
8726 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8727
8728         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8729         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8730         after this.
8731
8732 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8733
8734         * stdlib/longlong.h: Updated from GCC.
8735
8736 2012-05-09  Andreas Jaeger  <aj@suse.de>
8737
8738         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8739         default is first entry.
8740         (run_mode): Set type.
8741         (main): Remove informal message about syslog.
8742         (options): Fix typo.
8743
8744         [BZ #14053]
8745         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8746         to asm.
8747         (lrint): Likewise.
8748         (llrintf): Likewise.
8749         (llrint): Likewise.
8750         (rint): Likewise.
8751         (rintf): Likewise.
8752         (nearbyint): Likewise.
8753         (nearbyintf): Likewise.
8754
8755 2012-05-09  Andreas Jaeger  <aj@suse.de>
8756             Pedro Alves  <palves@redhat.com>
8757
8758         * nscd/nscd.c (run_mode): Use enum.
8759         (main): Cleanup coding style issue.
8760
8761 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8762             Andreas Jaeger  <aj@suse.de>
8763
8764         * nscd/nscd.c (go_background): Replaced with...
8765         (run_mode): ... this.
8766         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8767         (options): Add -F --foreground.
8768         (main): Implement it.
8769         (parse_opt): Parse it.
8770
8771 2012-05-09  Andreas Jaeger  <aj@suse.de>
8772
8773         [BZ #14083]
8774         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8775         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8776         -Wconversion warning.
8777         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8778         Likewise.
8779
8780 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8781
8782         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8783         == 0.
8784         (LC_ALL): Use macro-int-constant.
8785         (LC_COLLATE): Likewise.
8786         (LC_CTYPE): Likewise.
8787         (LC_MESSAGES): Likewise.
8788         (LC_MONETARY): Likewise.
8789         (LC_NUMERIC): Likewise.
8790         (LC_TIME): Likewise.
8791         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8792         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8793         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8794         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8795         Specify type.
8796         [C99-based standards] (float_t): Expect type.
8797         [C99-based standards] (double_t): Expect type.
8798         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8799         type.
8800         [C99-based standards] (HUGE_VALL): Likewise.
8801         [C99-based standards] (INFINITY): Likewise.
8802         [C99-based standards] (NAN): Likewise.
8803         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8804         [C99-based standards] (FP_NAN): Likewise.
8805         [C99-based standards] (FP_NORMAL): Likewise.
8806         [C99-based standards] (FP_SUBNORMAL): Likewise.
8807         [C99-based standards] (FP_ZERO): Likewise.
8808         [C99-based standards] (FP_FAST_FMA): Use
8809         optional-macro-int-constant.  Specify type.  Require == 1.
8810         [C99-based standards] (FP_FAST_FMAF): Likewise.
8811         [C99-based standards] (FP_FAST_FMAL): Likewise.
8812         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8813         [C99-based standards] (FP_ILOGBNAN): Likewise.
8814         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8815         Specify type.
8816         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8817         [C99-based standards] (math_errhandling): Specify type.
8818         [ISO99 || ISO11] (signgam): Do not allow.
8819         [non-C99-based standards] (copysignf): Do not allow.
8820         [non-C99-based standards] (exp2f): Likewise.
8821         [non-C99-based standards] (log2f): Likewise.
8822         [non-C99-based standards] (modff): Allow.
8823         [non-C99-based standards] (erff): Do not allow.
8824         [non-C99-based standards] (erfcf): Likewise.
8825         [non-C99-based standards] (gammaf): Likewise.
8826         [non-C99-based standards] (hypotf): Likewise.
8827         [non-C99-based standards] (j0f): Likewise.
8828         [non-C99-based standards] (j1f): Likewise.
8829         [non-C99-based standards] (jnf): Likewise.
8830         [non-C99-based standards] (lgammaf): Likewise.
8831         [non-C99-based standards] (tgammaf): Likewise.
8832         [non-C99-based standards] (y0f): Likewise.
8833         [non-C99-based standards] (y1f): Likewise.
8834         [non-C99-based standards] (ynf): Likewise.
8835         [non-C99-based standards] (isnanf): Likewise.
8836         [non-C99-based standards] (acoshf): Likewise.
8837         [non-C99-based standards] (asinhf): Likewise.
8838         [non-C99-based standards] (atanhf): Likewise.
8839         [non-C99-based standards] (cbrtf): Likewise.
8840         [non-C99-based standards] (expm1f): Likewise.
8841         [non-C99-based standards] (ilogbf): Likewise.
8842         [non-C99-based standards] (log1pf): Likewise.
8843         [non-C99-based standards] (logbf): Likewise.
8844         [non-C99-based standards] (nextafterf): Likewise.
8845         [non-C99-based standards] (remainderf): Likewise.
8846         [non-C99-based standards] (rintf): Likewise.
8847         [non-C99-based standards] (scalbf): Likewise.
8848         [non-C99-based standards] (copysignl): Likewise.
8849         [non-C99-based standards] (exp2l): Likewise.
8850         [non-C99-based standards] (log2l): Likewise.
8851         [non-C99-based standards] (modfl): Allow.
8852         [non-C99-based standards] (erfl): Do not allow.
8853         [non-C99-based standards] (erfcl): Likewise.
8854         [non-C99-based standards] (gammal): Likewise.
8855         [non-C99-based standards] (hypotl): Likewise.
8856         [non-C99-based standards] (j0l): Likewise.
8857         [non-C99-based standards] (j1l): Likewise.
8858         [non-C99-based standards] (jnl): Likewise.
8859         [non-C99-based standards] (lgammal): Likewise.
8860         [non-C99-based standards] (tgammal): Likewise.
8861         [non-C99-based standards] (y0l): Likewise.
8862         [non-C99-based standards] (y1l): Likewise.
8863         [non-C99-based standards] (ynl): Likewise.
8864         [non-C99-based standards] (isnanl): Likewise.
8865         [non-C99-based standards] (acoshl): Likewise.
8866         [non-C99-based standards] (asinhl): Likewise.
8867         [non-C99-based standards] (atanhl): Likewise.
8868         [non-C99-based standards] (cbrtl): Likewise.
8869         [non-C99-based standards] (expm1l): Likewise.
8870         [non-C99-based standards] (ilogbl): Likewise.
8871         [non-C99-based standards] (log1pl): Likewise.
8872         [non-C99-based standards] (logbl): Likewise.
8873         [non-C99-based standards] (nextafterl): Likewise.
8874         [non-C99-based standards] (remainderl): Likewise.
8875         [non-C99-based standards] (rintl): Likewise.
8876         [non-C99-based standards] (scalbl): Likewise.
8877         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8878         [non-C99-based standards] (FP_*): Do not allow.
8879         [C99-based standards] (FP_*): Change to
8880         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8881         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8882         allow.
8883         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8884         (SIG_ERR): Likewise.
8885         [X/Open-based standards] (SIG_HOLD): Likewise.
8886         (SIG_IGN): Likewise.
8887         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8888         positive value.
8889         (SIGFPE): Likewise.
8890         (SIGILL): Likewise.
8891         (SIGINT): Likewise.
8892         (SIGSEGV): Likewise.
8893         (SIGTER): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8912         [X/Open-based standards] (SIGTRAP): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8917         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8918         allow.
8919
8920 2012-05-08  Ian Wienand  <ianw@vmware.com>
8921
8922         [BZ #14080]
8923         * time/tzset.c (__tzset_parse_tz): Update default rules for
8924         daylight time changes in the Energy Policy Act of 2005.
8925
8926 2012-05-09  Andreas Jaeger  <aj@suse.de>
8927
8928         [BZ #13983]
8929         * elf/ldconfig.c (parse_conf): Change string to make clear that
8930         ldconfig only issued a warning if ld.so.conf does not exist.
8931
8932 2012-05-08  David S. Miller  <davem@davemloft.net>
8933
8934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8935         movxtod instead of popping the value on the stack.
8936
8937         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8938
8939 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8940
8941         * config.h.in: Add HAVE_ARM_PCS_VFP.
8942
8943 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8944
8945         [BZ #13979]
8946         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8947         checking but the checks are disabled for any reason.
8948
8949 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8950
8951         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8952         and ELF64_R_TYPE with ELFW(R_TYPE).
8953
8954 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8957         (ulimit): Likewise.
8958
8959         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8960         (settimeofday): Likewise.
8961
8962 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8963
8964         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8965         a struct th_u2 inside the union, and move tu_block/tu_code into
8966         a new th_u3 union of tu_block/tu_code inside of that.  Move
8967         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8968         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8969         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8970         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8971         (th_stuff): Change to th_u1.tu_stuff.
8972         (th_data): Define.
8973         (th_msg): Change to th_u1.th_u2.tu_data.
8974
8975 2012-05-07  David S. Miller  <davem@davemloft.net>
8976
8977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8978
8979         [BZ #14074]
8980         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8981         (SETUP_PIC_REG): Use it.
8982         (SETUP_PIC_REG_LEAF): Use it.
8983
8984 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8985
8986         [BZ #13885]
8987         [BZ #13923]
8988         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8989         USE_AS_EXPM1L.
8990         (EXPL_FINITE): Likewise.
8991         (FLDLOG): Likewise.
8992         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8993         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8994         e_expl.S.
8995         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8996         USE_AS_EXPM1L.
8997         (EXPL_FINITE): Likewise.
8998         (FLDLOG): Likewise.
8999         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9000         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9001         e_expl.S.
9002         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9003         test of -max_value argument for long double.
9004         * sysdeps/i386/fpu/libm-test-ulps: Update.
9005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9006
9007 2012-05-06  David S. Miller  <davem@davemloft.net>
9008
9009         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9010         quad soft-float symbols whose references which are compiler
9011         generated.
9012         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9013
9014 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9015
9016         [BZ #13884]
9017         [BZ #13914]
9018         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9019         USE_AS_EXP10L.
9020         (EXPL_FINITE): Likewise.
9021         (FLDLOG): Likewise.
9022         (c0): Likewise.
9023         (c1): Likewise.
9024         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9025         Adjust comments for base varying.
9026         (__expl_finite): Change alias to EXPL_FINITE.
9027         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9028         e_expl.S.
9029         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9030         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9031         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9032         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9033         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9034         USE_AS_EXP10L.
9035         (EXPL_FINITE): Likewise.
9036         (FLDLOG): Likewise.
9037         (c0): Likewise.
9038         (c1): Likewise.
9039         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9040         Adjust comments for base varying.
9041         (__expl_finite): Change alias to EXPL_FINITE.
9042         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9043         tests for bugs.
9044         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9045
9046         [BZ #14064]
9047         * math/libm-test.inc (check_float_internal): Correct ulp
9048         calculation for subnormal expected results.
9049
9050 2012-05-06  Andreas Jaeger  <aj@suse.de>
9051
9052         * Makeconfig (+math-flags): New, set to -frounding-math.
9053         (+cflags): Add +math-flags so that all of glibc gets compiled with
9054         it.
9055
9056         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9057
9058 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9059
9060         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9061         Disable one test.
9062
9063         [BZ #13787]
9064         [BZ #13922]
9065         [BZ #14036]
9066         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9067         (__ieee754_expl): Allow for and saturate large arguments.
9068         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9069         (u_threshold): Likewise.
9070         (__exp): Call __ieee754_exp before checking for overflow and
9071         underflow.
9072         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9073         (u_threshold): Likewise.
9074         (__expf): Call __ieee754_expf before checking for overflow and
9075         underflow.
9076         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9077         (u_threshold): Likewise.
9078         (__expl): Call __ieee754_expl before checking for overflow and
9079         underflow.
9080         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9081         (__ieee754_expl): Allow for and saturate large arguments.
9082         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9083         missing overflow exception on overflow.
9084         (expm1_test): Do not allow missing overflow exception on overflow.
9085
9086         * sysdeps/i386/fpu/e_expl.c: Move to ...
9087         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9088         rather than using inline asm.
9089         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9090         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9091         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9092
9093         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9094         (nice): Likewise.
9095         (poll): Likewise.
9096         (signal): Likewise.
9097         (time): Likewise.
9098         (times): Likewise.
9099
9100 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9101
9102         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9103         sysdeps/unix/common/syscalls.list.
9104         (fchmod): Likewise.
9105         (fchown): Likewise.
9106         (ftruncate): Likewise.
9107         (getrusage): Likewise.
9108         (gettimeofday): Likewise.
9109         (setpgid): Likewise.
9110         (setregid): Likewise.
9111         (setreuid): Likewise.
9112         (sigaction): Likewise.
9113         (truncate): Likewise.
9114         (vhangup): Likewise.
9115         * sysdeps/unix/common/syscalls.list: Remove file.
9116         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9117         * sysdeps/unix/sysv/linux/Implies: Likewise.
9118
9119 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9120
9121         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9122         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9123         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9124         Moved to ...
9125         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9126         Here.
9127         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9128         to ...
9129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9130         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9131         to ...
9132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9133         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9134         to ...
9135         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9136         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9137         to ...
9138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9139         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9140         to ...
9141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9142         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9143         to ...
9144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9145         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9146         to ...
9147         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9148         Here.
9149         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9150         to ...
9151         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9152         Here.
9153         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9154         to ...
9155         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9156         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9157         Moved to ...
9158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9159         Here.
9160         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9161         to ...
9162         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9163
9164 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9165
9166         * sysdeps/unix/common/bits/dirent.h: Remove file.
9167         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9168
9169         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9170         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9171         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9172         * sysdeps/unix/bsd/isatty.c: Likewise.
9173         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9174         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9175         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9176
9177 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9178
9179         [BZ #13563]
9180         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9181         long double comparison inaccuracies.
9182         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9183         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9184
9185 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9186
9187         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9188         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9189
9190 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9191
9192         [BZ #14049]
9193         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9194         nonzero digits before rounding a hex value.
9195         * stdlib/tst-strtod.c (tests): Add another test.
9196
9197 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9198
9199         * sysdeps/s390/fpu/libm-test-ulps: Update.
9200
9201 2012-05-03  Andreas Jaeger  <aj@suse.de>
9202
9203         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9204         does not get optimized out.
9205         (malloc_opt_barrier): New.
9206
9207 2012-05-03  Andreas Jaeger  <aj@suse.de>
9208             Roland McGrath  <roland@hack.frob.com>
9209
9210         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9211         intermediate file deletion.
9212         (generated): Add .symlist files.
9213
9214 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9215
9216         [BZ #13775]
9217         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9218         Redirect under this condition.
9219         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9220         [__USE_GNU] (__dprintf_chk): Not under this condition.
9221         [__USE_GNU] (__vdprintf_chk): Likewise.
9222         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9223         under this condition.
9224         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9225         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9226         [__USE_XOPEN2K8] (vdprintf): Likewise.
9227         [__USE_GNU] (__dprintf_chk): Not under this condition.
9228         [__USE_GNU] (__vdprintf_chk): Likewise.
9229         [__USE_GNU] (dprintf): Likewise.
9230         [__USE_GNU] (vdprintf): Likewise.
9231
9232 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9233
9234         * elf/Makefile (common-generated): Set this instead of generated for
9235         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9236         $(all-built-dso)-derived lists.
9237
9238 2012-05-03  Andreas Jaeger  <aj@suse.de>
9239
9240         * sysdeps/i386/fpu/libm-test-ulps: Update.
9241
9242         * FAQ: Removed.
9243         * FAQ.in: Likewise.
9244         * scripts/gen-FAQ.pl: Likewise.
9245         * manual/install.texi (Installation): Point to online location of
9246         FAQ.
9247         * Makefile (files-for-dist): Remove FAQ.
9248         (FAQ): Remove.
9249
9250 2012-05-02  Allan McRae  <allan@archlinux.org>
9251
9252         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9253         (LDFLAGS-reldepmod5.so): Likewise.
9254         (LDFLAGS-reldep6mod1.so): Likewise.
9255         (LDFLAGS-reldep6mod4.so): Likewise.
9256         (LDFLAGS-reldep8mod3.so): Likewise.
9257         (LDFLAGS-unload4mod1.so): Likewise.
9258         (LDFLAGS-unload4mod2.so): Likewise.
9259         (LDFLAGS-tst-initorder): Likewise.
9260         (LDFLAGS-tst-initordera2.so): Likewise.
9261         (LDFLAGS-tst-initordera3.so): Likewise.
9262         (LDFLAGS-tst-initordera4.so): Likewise.
9263         (LDFLAGS-tst-initorderb2.so): Likewise.
9264         (LDFLAGS-noload): Likewise.
9265         (LDFLAGS-next): Likewise.
9266         (LDFLAGS-order2mod1.so): Likewise.
9267         (LDFLAGS-order2mod2.so): Likewise.
9268         (LDFLAGS-tst-initorder2): Likewise.
9269         (LDFLAGS-tst-initorder2a.so): Likewise.
9270         (LDFLAGS-tst-initorder2b.so): Likewise.
9271         (LDFLAGS-tst-initorder2c.so): Likewise.
9272         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9273
9274 2012-05-02  David S. Miller  <davem@davemloft.net>
9275
9276         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9277
9278 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9279
9280         [BZ #14055]
9281         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9282
9283 2012-05-02  Andreas Jaeger  <aj@suse.de>
9284
9285         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9286         since we manipulate rounding mode.
9287         (CPPFLAGS-test-idouble.c): Likewise.
9288         (CPPFLAGS-test-ifloat.c): Likewise.
9289         (CFLAGS-test-ldouble.c): Likewise.
9290         (CFLAGS-test-double.c): Likewise.
9291         (CFLAGS-test-float.c): Likewise.
9292         (CFLAGS-test-misc.c): Likewise.
9293         (CFLAGS-test-test-fenv.c): Likewise.
9294
9295 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9296
9297         [BZ #2550]
9298         [BZ #2570]
9299         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9300         comparisons to determine direction to adjust input.
9301
9302 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9303
9304         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9305         output to the target.
9306
9307         * scripts/localplt.awk: New file.
9308         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9309         (check-localplt-CFLAGS): Variable removed.
9310         ($(all-built-dso:=.jmprel)): New static pattern rule.
9311         (generated): Add those targets.
9312         (localplt-built-dso): New variable.
9313         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9314
9315         * elf/check-localplt.c: File removed.
9316
9317         * scripts/check-execstack.awk: New file.
9318         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9319         (check-execstack-CFLAGS): Variable removed.
9320         ($(objpfx)check-execstack.h): Target removed.
9321         ($(objpfx)execstack-default): New target.
9322         (generated): Add that instead of check-execstack.h.
9323         ($(all-built-dso:=.phdr)): New static pattern rule.
9324         (generated): Add those targets.
9325         * elf/check-execstack.c: File removed.
9326
9327         * scripts/check-textrel.awk: New file.
9328         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9329         (check-textrel-CFLAGS): Variable removed.
9330         (all-built-dso): Use := to define.o
9331         ($(all-built-dso:=.dyn)): New static pattern rule.
9332         (generated): Add those targets.
9333         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9334         * config.make.in (READELF): New substituted variable.
9335         * elf/check-textrel.c: File removed.
9336
9337 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9338
9339         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9340         allow.
9341         * conform/data/ctype.h-data [C99-based standards] (isblank):
9342         Expect function.
9343         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9344         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9345         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9346         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9347         Specify type.  Require positive value.
9348         (EILSEQ): Likewise.
9349         (ERANGE): Likewise.
9350         [ISO || POSIX] (EILSEQ): Do not expect.
9351         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9352         Specify type.  Require positive value.
9353         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9354         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9355         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9356         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9357         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9358         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9359         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9360         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9361         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9362         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9363         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9364         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9365         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9366         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9367         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9368         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9369         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9370         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9371         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9372         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9373         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9374         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9375         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9376         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9377         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9378         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9379         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9380         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9381         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9382         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9383         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9384         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9385         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9386         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9387         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9388         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9389         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9390         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9391         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9392         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9393         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9394         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9395         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9396         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9397         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9398         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9399         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9400         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9401         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9402         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9403         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9404         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9405         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9406         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9407         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9408         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9409         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9410         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9411         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9412         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9413         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9414         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9415         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9416         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9417         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9418         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9419         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9420         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9421         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9422         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9423         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9424         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9425         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9426         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9427         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9428         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9429         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9430         Require >= 2.
9431         (FLT_ROUNDS): Expect as macro, not constant.
9432         (FLT_MANT_DIG): Use macro-int-constant.
9433         (DBL_MANT_DIG): Likewise.
9434         (LDBL_MANT_DIG): Likewise.
9435         (FLT_DIG): Likewise.
9436         (DBL_DIG): Likewise.
9437         (LDBL_DIG): Likewise.
9438         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9439         (DBL_MIN_EXP): Likewise.
9440         (LDBL_MIN_EXP): Likewise.
9441         (FLT_MAX_EXP): Use macro-int-constant.
9442         (DBL_MAX_EXP): Likewise.
9443         (LDBL_MAX_EXP): Likewise.
9444         (FLT_MAX_10_EXP): Likewise.
9445         (DBL_MAX_10_EXP): Likewise.
9446         (LDBL_MAX_10_EXP): Likewise.
9447         (FLT_MAX): Use macro-constant.
9448         (DBL_MAX): Likewise.
9449         (LDBL_MAX): Likewise.
9450         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9451         (DBL_EPSILON): Likewise.
9452         (LDBL_EPSILON): Likewise.
9453         (FLT_MIN): Likewise.
9454         (DBL_MIN): Likewise.
9455         (LDBL_MIN): Likewise.
9456         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9457         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9458         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9459         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9460         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9461         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9462         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9463         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9464         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9465         [ISO11] (FLT_TRUE_MIN): Likewise.
9466         [ISO11] (LDBL_TRUE_MIN): Likewise.
9467         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9468         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9469         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9470         (SCHAR_MAX): Likewise.
9471         (UCHAR_MAX): Likewise.
9472         (CHAR_MIN): Likewise.
9473         (CHAR_MAX): Likewise.
9474         (MB_LEN_MAX): Use macro-int-constant.
9475         (SHRT_MIN): Use macro-int-constant.  Specify type.
9476         (SHRT_MAX): Likewise.
9477         (USHRT_MAX): Likewise.
9478         (INT_MAX): Likewise.
9479         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9480         bound negative.
9481         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9482         bound with "U".
9483         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9484         bound with "L".
9485         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9486         bound negative.  Suffix upper bound with "L".
9487         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9488         bound with "UL".
9489         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9490         Specify type.
9491         [C99-based standards] (LLONG_MAX): Likewise.
9492         [C99-based standards] (ULLONG_MAX): Likewise.
9493         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9494         == 0.
9495         [ISO11] (max_align_t): Require type.
9496         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9497
9498         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9499         from $CFLAGS, without defining away __attribute__ calls.
9500         (checknamespace): Use $CFLAGS_namespace.
9501
9502         * conform/conformtest.pl (@keywords): Only include C99 keywords
9503         for standards based on C99 or C11.
9504
9505         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9506         Disable tests.
9507         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9508         UNIX98]: Likewise.
9509
9510         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9511         usability of symbols in #if.
9512
9513         * conform/conformtest.pl: If macro or constant types start
9514         "promoted:", expect the symbol to be of the following type
9515         promoted by the integer promotions.
9516
9517         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9518         in one place.  Also handle "macro-constant".
9519
9520         * conform/conformtest.pl: Only accept expected macro values with
9521         "==".  Parse all "macro" lines in one place.
9522         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9523
9524         * conform/conformtest.pl: Handle braced types on "constant" lines
9525         instead of handling "typed-constant".
9526         * conform/data/signal.h-data: Use "constant" instead of
9527         "typed-constant".
9528
9529         * conform/conformtest.pl: Handle "optional-" at start of lines in
9530         one place rather than duplicating several cases.  Handle each
9531         format of "macro" line with initial "optional-".
9532
9533         * conform/conformtest.pl: Only accept expected constant or
9534         optional-constant values with "==".  Parse all "constant" lines in
9535         one place.  Parse all "optional-constant" lines in one place.
9536         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9537         * conform/data/fmtmsg.h-data: Likewise.
9538         * conform/data/netinet/in.h-data: Likewise.
9539         * conform/data/tar.h-data: Likewise.
9540         * conform/data/limits.h-data: Use "==" form on "constant" and
9541         "optional-constant" lines.
9542
9543         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9544         Use -std=c99 for XOPEN2K.
9545         (@knownproblems): Remove.
9546         (newtoken): Don't check %isknown.
9547
9548         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9549         Do not expect macro.
9550         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9551         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9552         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9553         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9554         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9555         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9556         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9557         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9558         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9559         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9560         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9561         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9562         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9563         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9564         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9565         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9566         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9567         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9568         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9569         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9570         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9571         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9572         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9573         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9574         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9575         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9576         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9577         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9578         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9579         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9580         [XPG3] (acosh): Likewise.
9581         [XPG3] (asinh): Likewise.
9582         [XPG3] (atanh): Likewise.
9583         [XPG3] (cbrt): Likewise.
9584         [XPG3] (expm1): Likewise.
9585         [XPG3] (ilogb): Likewise.
9586         [XPG3] (log1p): Likewise.
9587         [XPG3] (logb): Likewise.
9588         [XPG3] (nextafter): Likewise.
9589         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9590         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9591         [XPG3] (remainder): Likewise.
9592         [XPG3] (rint): Likewise.
9593         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9594         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9595         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9596         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9597         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9598         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9599         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9600         [UNIX98 || XOPEN2K] (scalb): Expect.
9601         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9602         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9603         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9604         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9605         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9606         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9607         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9608         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9609         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9610         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9611         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9612         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9613         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9614         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9615         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9616         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9617         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9618         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9619         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9620         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9621         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9622         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9623         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9624         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9625         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9626         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9627         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9628         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9629         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9630         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9631         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9632         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9633         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9634         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9635         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9636         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9637         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9638         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9639         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9640         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9641         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9642         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9643         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9644         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9645         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9646         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9647         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9648         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9649         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9650         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9651         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9652         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9653         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9654         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9655         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9656         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9657         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9658         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9659         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9660         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9661         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9662         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9663         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9664         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9665         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9666         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9667         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9668         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9669         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9670         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9671         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9672         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9673         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9674         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9675         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9676         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9677         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9678         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9679         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9680         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9681         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9682         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9683         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9684         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9685         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9686         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9687         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9688         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9689         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9690         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9691         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9692         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9693         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9694         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9695         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9696         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9697         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9698         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9699         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9700         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9701         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9702         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9703         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9704         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9705         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9706         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9707         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9708         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9709         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9710         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9711         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9712         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9713         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9714         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9715         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9716         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9717         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9718         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9719         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9720         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9721         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9722         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9723         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9724         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9725         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9726         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9727         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9728         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9729         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9730         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9731         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9732         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9733         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9734         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9735         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9736         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9737         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9738
9739         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9740         _XOPEN_SOURCE_EXTENDED for XPG4.
9741
9742         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9743
9744         * Makeconfig (localtime): Remove variable.
9745         (inst_localtime-file): Likewise.
9746
9747 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9748
9749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9750         Update.
9751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9752         Update.
9753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9754         Update.
9755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9756         Update.
9757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9758         Update.
9759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9760         Update.
9761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9762         Update.
9763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9764         Update.
9765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9766         Update.
9767
9768 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9769
9770         [BZ #2550]
9771         [BZ #2570]
9772         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9773         comparisons to determine direction to adjust input.
9774         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9775         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9776         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9777         Likewise.
9778         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9779         Likewise.
9780         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9781         Likewise.
9782         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9783         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9784         Likewise.
9785         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9786         Likewise.
9787         * math/libm-test.inc (nexttoward_test): Add more tests.
9788
9789 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9790
9791         [BZ #14040]
9792         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9793         in version GLIBC_2.1, not GLIBC_2.0.
9794         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9795         Likewise.
9796
9797 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9798
9799         [BZ #13942]
9800         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9801         (1 - x) * (1 + x).
9802         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9803         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9804         * math/libm-test.inc (acos_test): Add more tests.
9805         (asin_test): Likewise.
9806         * sysdeps/i386/fpu/libm-test-ulps: Update.
9807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9808
9809         [BZ #14034]
9810         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9811         of square root.
9812         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9813         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9814         * math/libm-test.inc (acos_test_tonearest): New function.
9815         (acos_test_towardzero): Likewise.
9816         (acos_test_downward): Likewise.
9817         (acos_test_upward): Likewise.
9818         (asin_test_tonearest): Likewise.
9819         (asin_test_towardzero): Likewise.
9820         (asin_test_downward): Likewise.
9821         (asin_test_upward): Likewise.
9822         (main): Call the new functions.
9823         * sysdeps/i386/fpu/libm-test-ulps: Update.
9824         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9825
9826         [BZ #13884]
9827         [BZ #13924]
9828         * math/e_exp10.c: Include <float.h>.
9829         (__ieee754_exp10): Handle underflow here rather than multiplying
9830         large negative argument by M_LN10.
9831         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9832         of __ieee754_expf.
9833         * math/e_exp10l.c: Include <float.h>.
9834         (__ieee754_exp10l): Handle underflow here rather than multiplying
9835         large negative argument by M_LN10l.
9836         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9837         spurious overflow exception on underflow.
9838
9839 2012-04-29  Marek Polacek  <polacek@redhat.com>
9840
9841         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9842         (__fortify_function): New macro.
9843         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9844         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9845         __extern_always_inline.
9846         * libio/bits/stdio2.h: Likewise.
9847         * libio/bits/stdio.h: Likewise.
9848         * string/string.h: Likewise.
9849         * string/bits/string3.h: Likewise.
9850         * include/stdio.h: Likewise.
9851         * stdlib/bits/stdlib.h: Likewise.
9852         * stdlib/stdlib.h: Likewise.
9853         * rt/bits/mqueue2.h: Likewise.
9854         * rt/mqueue.h: Likewise.
9855         * posix/bits/unistd.h: Likewise.
9856         * posix/unistd.h: Likewise.
9857         * io/bits/poll2.h: Likewise.
9858         * io/bits/fcntl2.h: Likewise.
9859         * io/fcntl.h: Likewise.
9860         * io/sys/poll.h: Likewise.
9861         * misc/bits/syslog.h: Likewise.
9862         * misc/bits/syslog-ldbl.h: Likewise.
9863         * misc/sys/syslog.h: Likewise.
9864         * socket/bits/socket2.h: Likewise.
9865         * socket/sys/socket.h: Likewise.
9866         * debug/tst-chk1.c: Likewise.
9867         * wcsmbs/bits/wchar2.h: Likewise.
9868         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9869         * wcsmbs/wchar.h: Likewise.
9870
9871 2012-04-29  Andreas Jaeger  <aj@suse.de>
9872
9873         * Makerules (tests): Remove enable-check-abi protection.
9874         (check-abi-warn): Remove.
9875         (check-abi-%): Remove check-abi-warn usage.
9876
9877         * configure.in: Remove check-abi configure option.
9878         * configure: Regenerated.
9879         * config.make.in (enable-check-abi): Remove.
9880
9881 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9882
9883         [BZ #14033]
9884         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9885         double functions to double *_finite functions.
9886
9887         [BZ #13941]
9888         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9889         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9890         LDBL_MIN_EXP.
9891         * stdio-common/Makefile (tests): Add tst-sprintf3.
9892         * stdio-common/tst-sprintf3.c: New file.
9893
9894         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9895         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9896
9897 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9898
9899         * conform/conformtest.pl: Remove duplicate typed-constant
9900         handling.
9901
9902 2012-04-28  David S. Miller  <davem@davemloft.net>
9903
9904         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9905         (check-abi-%): Remove AWK script prerequisite and explicit
9906         abilist directory.
9907         (check-abi): Rewrite to just diff the symlist with the abilist.
9908         (config-tls, config-abi-config): Delete, no longer used.
9909         (update-abi-%): Remove AWK script and explicit abilist directory.
9910         (update-abi): Rewrite to simply compare and conditionally copy the
9911         symlist and the sysdep abilist file.  Remove update-abi-config
9912         checks.
9913         * abilist/ld.abilist: Remove.
9914         * abilist/libBrokenLocale.abilist: Remove.
9915         * abilist/libanl.abilist: Remove.
9916         * abilist/libcrypt.abilist: Remove.
9917         * abilist/libdl.abilist: Remove.
9918         * abilist/librt.abilist: Remove.
9919         * abilist/libthread_db.abilist: Remove.
9920         * abilist/libutil.abilist: Remove.
9921         * scripts/extract-abilist.awk: Remove.
9922         * scripts/merge-abilist.awk: Remove.
9923         * sysdeps/generic/libcidn.abilist: New file.
9924         * sysdeps/generic/libnss_compat.abilist: New file.
9925         * sysdeps/generic/libnss_db.abilist: New file.
9926         * sysdeps/generic/libnss_dns.abilist: New file.
9927         * sysdeps/generic/libnss_files.abilist: New file.
9928         * sysdeps/generic/libnss_hesiod.abilist: New file.
9929         * sysdeps/generic/libnss_nis.abilist: New file.
9930         * sysdeps/generic/libnss_nisplus.abilist: New file.
9931         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9932         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9933         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9934         file.
9935         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9936         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9937         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9938         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9939         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9940         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9941         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9942         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9943         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9944         file.
9945         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9946         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9947         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9948         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9949         file.
9950         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9951         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9952         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9953         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9954         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9955         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9956         file.
9957         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9958         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9959         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9960         file.
9961         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9962         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9963         New file.
9964         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9965         New file.
9966         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9967         New file.
9968         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9969         New file.
9970         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9971         New file.
9972         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9973         New file.
9974         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9975         New file.
9976         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9977         New file.
9978         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9979         New file.
9980         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9981         New file.
9982         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9983         New file.
9984         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9985         New file.
9986         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9987         New file.
9988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9989         file.
9990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9991         New file.
9992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9993         New file.
9994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9995         file.
9996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9997         New file.
9998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9999         New file.
10000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10001         file.
10002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10003         New file.
10004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10005         New file.
10006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10007         New file.
10008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10009         New file.
10010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10011         New file.
10012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10013         New file.
10014         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10015         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10016         file.
10017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10018         New file.
10019         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10020         file.
10021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10022         file.
10023         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10024         file.
10025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10026         file.
10027         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10028         file.
10029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10030         New file.
10031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10032         file.
10033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10034         file.
10035         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10036         New file.
10037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10038         file.
10039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10041         file.
10042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10043         New file.
10044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10045         file.
10046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10047         file.
10048         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10049         file.
10050         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10051         file.
10052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10053         file.
10054         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10055         New file.
10056         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10057         file.
10058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10059         file.
10060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10061         New file.
10062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10063         file.
10064         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10065         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10066         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10067         file.
10068         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10069         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10070         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10071         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10072         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10073         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10074         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10075         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10076         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10077         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10078         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10079         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10080         file.
10081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10082         New file.
10083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10084         file.
10085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10086         file.
10087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10088         file.
10089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10090         file.
10091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10092         file.
10093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10094         New file.
10095         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10096         New file.
10097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10098         file.
10099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10100         New file.
10101         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10102         file.
10103         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10105         file.
10106         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10107         New file.
10108         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10109         file.
10110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10111         file.
10112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10113         file.
10114         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10115         file.
10116         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10117         file.
10118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10119         New file.
10120         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10121         New file.
10122         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10123         file.
10124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10125         New file.
10126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10127         file.
10128
10129 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10130
10131         * conform/conformtest.pl: Fix typo in handling typed-constant from
10132         allow-header.
10133
10134 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10135
10136         * README: Cut down references to pre-2.6 Linux kernels and
10137         Linuxthreads.  Update lists of configurations in libc and ports
10138         and sort alphabetically.  Say "or newer" with Linux kernel version
10139         requirements.
10140
10141         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10142
10143 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10144
10145         [BZ #887]
10146         * math/libm-test.inc (logb_test_downward): New test to expose
10147         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10148         rounding mode.
10149
10150 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10151
10152         [BZ #14027]
10153         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10154         to be done.
10155         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10156         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10157
10158 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10159
10160         * sysdeps/unix/i386/brk.S: Remove file.
10161         * sysdeps/unix/i386/dl-brk.S: Likewise.
10162         * sysdeps/unix/i386/pipe.S: Likewise.
10163         * sysdeps/unix/i386/sigreturn.S: Likewise.
10164         * sysdeps/unix/i386/syscall.S: Likewise.
10165         * sysdeps/unix/i386/vfork.S: Likewise.
10166         * sysdeps/unix/i386/wait.S: Likewise.
10167
10168         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10169         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10170
10171         * configure.in (arm*-none*): Do not allow without
10172         --enable-hacker-mode.
10173         (netbsd*): Remove case setting base_os.
10174         (386bsd*): Likewise.
10175         (freebsd*): Likewise.
10176         (bsdi*): Likewise.
10177         (osf*): Likewise.
10178         (sunos*): Likewise.
10179         (ultrix*): Likewise.
10180         (newsos*): Likewise.
10181         (dynix*): Likewise.
10182         (*bsd*): Likewise.
10183         (sysv*): Likewise.
10184         (isc*): Likewise.
10185         (esix*): Likewise.
10186         (sco*): Likewise.
10187         (minix*): Likewise.
10188         (irix4*): Likewise.
10189         (irix6*): Likewise.
10190         (solaris[2-9]*): Likewise.
10191         (none): Likewise.
10192         * configure: Regenerated.
10193
10194 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10195
10196         [BZ #11521]
10197         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10198         overflow or cancellation in calculating denominator.
10199         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10200         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10201         down expression to avoid unexpected rounding in newer GCCs.
10202         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10203
10204 2012-04-26  David S. Miller  <davem@davemloft.net>
10205
10206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10207         long-double compat symbols.
10208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10214         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10221
10222 2012-04-25  David S. Miller  <davem@davemloft.net>
10223
10224         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10225         HWCAP_* values only after the memory barriers have been defined.
10226         (atomic_full_barrier): Define.
10227         (atomic_read_barrier): Define.
10228         (atomic_write_barrier): Define.
10229
10230 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10231
10232         * shlib-versions: Add libgcc_s version information.
10233         * sysdeps/generic/libgcc_s.h: Remove.
10234         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10235         libgcc_s.h.
10236         * sysdeps/gnu/unwind-resume.c: Likewise.
10237         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10238
10239 2012-04-25  David S. Miller  <davem@davemloft.net>
10240
10241         * sysdeps/unix/sparc/brk.S: Delete.
10242         * sysdeps/unix/sparc/dl-brk.S: Delete.
10243         * sysdeps/unix/sparc/pipe.S: Delete.
10244         * sysdeps/unix/sparc/sysdep.S: Delete.
10245         * sysdeps/unix/sparc/sysdep.h: Delete.
10246         * sysdeps/unix/sparc/vfork.S: Delete.
10247         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10248         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10249         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10250         ret_ERRVAL, r0, r1, MOVE): Define.
10251         (JUMPTARGET): Remove.
10252         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10253         sysdeps/unix/sparc/sysdep.h
10254         (ENTRY, END): Remove.
10255         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10256
10257 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10258
10259         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10260         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10261         -DIS_IN_build.
10262
10263         * timezone/README: Update upstream location and email address for
10264         tzcode and tzdata.
10265         * timezone/zdump.c: Update from tzcode 2012b.
10266         * timezone/zic.c: Likewise.
10267
10268         * configure.in (libc_cv_as_needed): Remove test.
10269         * configure: Regenerated.
10270         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10271         conditional definition.
10272         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10273         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10274         * config.make.in (have-as-needed): Remove variable.
10275
10276 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10277             Paul Pluzhnikov  <ppluzhnikov@google.com>
10278
10279         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10280         strings correctly.
10281
10282 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10283
10284         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10285         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10286         * sysdeps/sh/strlen.S: Likewise.
10287
10288 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10289
10290         * sysdeps/unix/fork.S: Remove file.
10291         * sysdeps/unix/i386/fork.S: Likewise.
10292         * sysdeps/unix/sparc/fork.S: Likewise.
10293
10294         * sysdeps/unix/system.c: Remove file.
10295         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10296
10297         * sysdeps/unix/getegid.S: Remove file.
10298         * sysdeps/unix/geteuid.S: Likewise.
10299
10300 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10301
10302         * scripts/check-localplt.awk: New file.
10303         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10304         of diff.
10305         * scripts/data/localplt-generic.data: Add a comment.
10306
10307         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10308         NODE when __dir_mkfile failed.
10309         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10310         Reported by Ludovic Courtès <ludo@gnu.org>.
10311
10312 2012-04-24  Andreas Jaeger  <aj@suse.de>
10313
10314         * Makerules (common-clean): Also remove gen-as-const-headers
10315         files.
10316
10317 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10318
10319         * Makerules (native-compile): Do not change working directory for
10320         build.  Use $(OUTPUT_OPTION) in command.
10321         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10322
10323 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10324
10325         [BZ #13886]
10326         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10327         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10328         * math/libm-test.inc (floor_test): Add more tests.
10329         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10330
10331 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10332
10333         * sysdeps/unix/getdents.c: Remove file.
10334         * sysdeps/unix/sysv/getdents.c: Likewise.
10335         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10336
10337         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10338         sysdeps/unix/mman/syscalls.list.
10339         (mmap): Likewise.
10340         (mprotect): Likewise.
10341         (msync): Likewise.
10342         (munmap): Likewise.
10343         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10344         * sysdeps/unix/mman/syscalls.list: Remove.
10345         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10346
10347         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10348         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10349         * configure: Regenerated.
10350         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10351         $(libgcc_s_suffix).
10352         * config.make.in (libgcc_s_suffix): Remove variable.
10353
10354 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10355
10356         * sysdeps/unix/sysv/gethostname.c: Move to ...
10357         * sysdeps/posix/gethostname.c: ... here.
10358
10359         * sysdeps/unix/execve.S: Remove file.
10360
10361         * sysdeps/unix/_exit.S: Remove file.
10362
10363 2012-04-23  Andreas Jaeger  <aj@suse.de>
10364
10365         [BZ #13739]
10366         * manual/Makefile: Remove make dist support, there's no
10367         need for a stand-alone documentation tar ball.
10368         (TEXI2DVI): Define always, it's not in Makeconfig.
10369         (dist): Removed.
10370         (tar-it): Removed.
10371         (edition): Removed.
10372         (glibc-doc-$(edition).tar): Removed
10373         (%.Z): Removed.
10374         (%.gz): Removed.
10375         (%.uu): Removed.
10376         (ETAGS): Remove, it's in Makeconfig.
10377         (move-if-change): Remove, it's in Makeconfig.
10378
10379 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10380
10381         [BZ #13970]
10382         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10383         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10384         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10385         (strtod_l, strtof_l, strtold_l): Remove __wur.
10386         It is not necessarily an error to ignore strtol's return value.
10387         One can reliably look at the stored endptr to decide whether
10388         the number had valid syntax.
10389
10390 2012-04-21  Andreas Jaeger  <aj@suse.de>
10391
10392         [BZ #13739]
10393         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10394
10395 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10396
10397         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10398         * sysdeps/unix/sysv/Versions: Remove file.
10399
10400 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10401
10402         [BZ #13927]
10403         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10404
10405 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10406
10407         [BZ #7064]
10408         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10409         version from __vm86.
10410
10411 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10412
10413         * sysdeps/unix/common/lxstat.c: Remove file.
10414         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10415
10416         * sysdeps/unix/sysv/Makefile: Remove file.
10417
10418         * sysdeps/unix/sysv/direct.h: Remove file.
10419
10420         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10421         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10422         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10423         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10424         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10425         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10426         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10427
10428         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10429
10430         * sysdeps/unix/xmknod.c: Remove file.
10431         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10432
10433         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10434
10435         * sysdeps/unix/sysv/i386/time.S: Remove file.
10436
10437         * sysdeps/unix/fxstat.c: Remove file.
10438         * sysdeps/unix/xstat.c: Likewise.
10439         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10440
10441         * sysdeps/unix/sysv/sigaction.c: Remove file.
10442
10443         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10444         (sysdep_headers): Remove variable.
10445         [termio.h not in sysdep_headers] (generated): Likewise.
10446         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10447         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10448         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10449         * sysdeps/unix/sysv/tcflow.c: Likewise.
10450         * sysdeps/unix/sysv/tcflush.c: Likewise.
10451         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10452         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10453         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10454         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10455         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10456
10457         * sysdeps/unix/siglist.c: Remove file.
10458
10459         * sysdeps/unix/getppid.S: Remove file.
10460
10461         * sysdeps/unix/mkdir.c: Remove file.
10462         * sysdeps/unix/rmdir.c: Likewise.
10463
10464 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10465
10466         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10467         ERR_MAX value.
10468         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10469         errlist-compat value.
10470
10471 2012-04-18  David S. Miller  <davem@davemloft.net>
10472
10473         * sysdeps/generic/memcopy.h (reg_char): Delete.
10474         * debug/strcat_chk.c: Use char, not reg_char.
10475         * debug/strcpy_chk.c: Likewise.
10476         * debug/strncat_chk.c: Likewise.
10477         * debug/strncpy_chk.c: Likewise.
10478         * string/memchr.c: Likewise.
10479         * string/memrchr.c: Likewise.
10480         * string/rawmemchr.c: Likewise.
10481         * string/strcat.c: Likewise.
10482         * string/strchr.c: Likewise.
10483         * string/strchrnul.c: Likewise.
10484         * string/strcmp.c: Likewise.
10485         * string/strcpy.c: Likewise.
10486         * string/strncat.c: Likewise.
10487         * string/strncmp.c: Likewise.
10488         * string/strncpy.c: Likewise.
10489
10490 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10491
10492         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10493         __builtin_memcopy is called when src and dest ranges are known to not
10494         overlap.
10495
10496 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10497
10498         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10499         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10500         fwd_align_merge macro call.
10501         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10502         bwd_align_merge macro call.
10503         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10504
10505 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10506
10507         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10508         bwd_align_merge macros.
10509         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10510         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10511         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10512
10513 2012-04-18  David S. Miller  <davem@davemloft.net>
10514
10515         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10516
10517 2012-04-18  Andreas Jaeger  <aj@suse.de>
10518
10519         [BZ# 6794]
10520         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10521         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10522         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10523
10524         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10525         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10526         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10527
10528         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10529         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10530         Adjust for changed ldbl-128 files.
10531
10532         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10533         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10534         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10535
10536 2012-04-17  David S. Miller  <davem@davemloft.net>
10537
10538         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10539
10540 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10541
10542         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10543         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10544         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10545         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10546         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10547         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10548
10549 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10550
10551         [BZ #6794]
10552         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10553         * math/libm-test.inc: Add ilogb errno and exception tests.
10554         * math/w_ilogb.c: New file: ilogb wrapper.
10555         * math/w_ilogbf.c: New file: ilogbf wrapper.
10556         * math/w_ilogbl.c: New file: ilogbl wrapper.
10557         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10558         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10559         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10560         exception being thrown with 0.0 as argument.
10561         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10562         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10563         exception being thrown with 0.0 as argument.
10564         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10565         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10566         exception being thrown with 0.0 as argument.
10567         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10568         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10569         exception being thrown with 0.0 as argument.
10570         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10571         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10572         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10573         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10574         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10575         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10576         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10577         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10578         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10579
10580 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10581
10582         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10583         with altivec.
10584
10585 2012-04-16  Marek Polacek  <polacek@redhat.com>
10586
10587         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10588
10589 2012-04-16  Marek Polacek  <polacek@redhat.com>
10590
10591         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10592         operands of fdivp instruction.
10593
10594 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10595
10596         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10597         * elf/tst-auditmod3b.c: Likewise.
10598         * elf/tst-auditmod4b.c: Likewise.
10599         * elf/tst-auditmod5b.c: Likewise.
10600         * elf/tst-auditmod6b.c: Likewise.
10601         * elf/tst-auditmod6c.c: Likewise.
10602         * elf/tst-auditmod7b.c: Likewise.
10603         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10604         * sysdeps/x86_64/preconfigure.in: Likewise.
10605         * sysdeps/x86_64/preconfigure: Regenerated.
10606
10607 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10608
10609         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10610         __ILP32__.
10611
10612 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10613
10614         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10615         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10616
10617 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10618
10619         [BZ #13973]
10620         * locale/iso-639.def: Fix gl language name. Spotted by
10621         Yaron Shahrabani.
10622
10623 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10624
10625         [BZ #2074]
10626         * libio/libio.h (__io_write_fn): Update comment.
10627
10628 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10629
10630         [BZ #2074]
10631         * stdio.texi (Hook Functions): The user provided writer function
10632         is not allowed to return -1.
10633
10634 2012-04-11  David S. Miller  <davem@davemloft.net>
10635
10636         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10637
10638 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10639
10640         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10641         Add a leading slash to rtkaio.
10642
10643 2012-04-11  Jim Meyering  <meyering@redhat.com>
10644
10645         [BZ #11959]
10646         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10647         It is not necessarily an error to ignore fwrite's return
10648         value.  One can reliably use ferror to test for errors after
10649         the fact.
10650
10651 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10652
10653         * bits/types.h (__snseconds_t): New type.
10654         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10655
10656         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10657         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10658         (__SNSECONDS_T_TYPE): Likewise.
10659         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10660         (__SNSECONDS_T_TYPE): Likewise.
10661         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10662         (__SNSECONDS_T_TYPE): Likewise.
10663
10664 2012-04-10  Andreas Jaeger  <aj@suse.de>
10665
10666         [BZ #2636]
10667         * manual/time.texi (Processor Time): Return type of times is
10668         elapsed real time since an arbitrary point in the past.
10669         (CPU Time): Move CLK_TCK from here...
10670         (Processor Time): ...to here.  Correct description.
10671         * manual/conf.texi (Constants for Sysconf): Correct description of
10672         _SC_CLK_TCK.
10673
10674 2012-04-10  David S. Miller  <davem@davemloft.net>
10675
10676         [BZ #13967]
10677         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10678         where the is a gap between DT_REL(A) and DT_JMPREL.
10679
10680 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10681
10682         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10683         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10684         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10685
10686 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10687
10688         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10689         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10690         (dl_main): Handle --inhibit-cache.
10691         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10692         _dl_inhibit_cache.
10693         * elf/dl-load.c (_dl_map_object): Use it.
10694         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10695
10696 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10697
10698         [BZ #13872]
10699         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10700         (__ieee754_powl): Saturate large exponents rather than testing for
10701         overflow of y*log2(x).
10702         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10703         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10704         exceptions.
10705
10706         [BZ #11521]
10707         * math/s_ctan.c: Include <float.h>.
10708         (__ctan): Avoid internal overflow or cancellation in calculating
10709         denominator.
10710         * math/s_ctanf.c: Likewise.
10711         * math/s_ctanl.c: Likewise.
10712         * math/s_ctanh.c: Likewise.
10713         * math/s_ctanhf.c: Likewise.
10714         * math/s_ctanhl.c: Likewise.
10715         * math/libm-test.inc (ctan_test): Add more tests.
10716         (ctanh_test): Likewise.
10717         * sysdeps/i386/fpu/libm-test-ulps: Update.
10718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10719
10720 2012-04-09  Andreas Jaeger  <aj@suse.de>
10721
10722         [BZ #6894]
10723         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10724         is an optional BSD extension.
10725
10726         [BZ #10254]
10727         * manual/stdio.texi (Opening Streams): Document additional fopen
10728         parameters.
10729
10730 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10731
10732         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10733         %eax without telling the compiler.
10734
10735 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10736
10737         [BZ # 13963]
10738         * manual/install.texi: Use sourceware.org.
10739
10740 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10741
10742         [BZ #13873]
10743         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10744         (__ieee754_pow): Generate overflow and underflow using huge*huge
10745         and tiny*tiny rather than just returning constant infinity or zero
10746         for large exponents.
10747         * math/libm-test.inc (pow_test): Require overflow exceptions for
10748         applicable cases of large exponents.
10749
10750         [BZ #706]
10751         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10752         (__ieee754_pow): Use iterative multiplication algorithm only for
10753         integer exponents with absolute value below 1024.  Check for odd
10754         integer exponents when using algorithm for real exponents.
10755         * math/libm-test.inc (pow_test): Add more tests.
10756         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10757
10758 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10759
10760         [BZ #13705]
10761         * math/libm-test.inc (exp_test): Do not allow overflow exception
10762         on underflow test.
10763
10764 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10765
10766         [BZ #13705]
10767         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10768         instead of __kernel_standard_f.
10769
10770 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10771
10772         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10773         * sysdeps/x86_64/memset_chk.S: Likewise.
10774
10775 2012-04-08  Andreas Jaeger  <aj@suse.de>
10776
10777         [BZ #10153]
10778         * manual/startup.texi (Environment Access): Describe return value
10779         for putenv and setenv.
10780
10781         [BZ #6895]
10782         * manual/filesys.texi (Directory Entries): Add description for
10783         DT_LNK.
10784
10785         [BZ #6890]
10786         * manual/filesys.texi (Directory Entries): Clarify that it's file
10787         system not operating system in the description of DT_UNKNOWN.
10788
10789         [BZ #6578]
10790         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10791
10792 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10793
10794         [BZ #6649]
10795         * manual/llio.texi (Opening and Closing Files): Add cross
10796         reference to explain mode argument.
10797
10798 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10799
10800         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10801         * sysdeps/x86_64/memset_chk.S: Likewise.
10802
10803 2012-04-07  David S. Miller  <davem@davemloft.net>
10804
10805         * elf/elf.h (R_SPARC_WDISP10): Define.
10806         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10807         R_SPARC_SIZE32.
10808         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10809         R_SPARC_SIZE64 and R_SPARC_H34.
10810
10811 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10812
10813         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10814         conditions and remove no longer applicable assertion.
10815
10816 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10817
10818         * bits/byteswap.h: Include <features.h>.
10819         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10820         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10821
10822 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10823
10824         * bits/byteswap.h (__bswap_16): Removed.
10825         Include <bits/byteswap-16.h> to get __bswap_16.
10826         * sysdeps/i386/bits/byteswap.h: Likewise.
10827         * sysdeps/s390/bits/byteswap.h: Likewise.
10828         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10829         * bits/byteswap-16.h: New file.
10830         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10831         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10832         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10833         * string/Makefile (headers): Add bits/byteswap-16.h.
10834
10835 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10836
10837         [BZ #13895]
10838         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10839         extra indirection.
10840         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10841         * nss/tst-nss-static.c: New.
10842
10843 2012-04-06  Robert Millan  <rmh@gnu.org>
10844
10845         [BZ #6486]
10846         * manual/llio.texi (File Position Primitive): lseek
10847         refers to WHENCE when it really means OFFSET.
10848
10849 2012-04-06  Andreas Jaeger  <aj@suse.de>
10850
10851         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10852         strncmp declarations.
10853
10854         * abilist/libc.abilist: Add __poll and __ppoll.
10855
10856 2012-04-05  David S. Miller  <davem@davemloft.net>
10857
10858         * scripts/check-local-headers.sh: Accept a host triplet in the
10859         path matched by the exclude regexp.
10860
10861         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10862         definition.
10863         * sysdeps/powerpc/powerpc32/dl-machine.h
10864         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10865         * sysdeps/s390/s390-32/dl-machine.h
10866         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10867         * sysdeps/sparc/sparc32/dl-machine.h
10868         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10869         * sysdeps/sparc/sparc64/dl-machine.h
10870         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10871
10872         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10873         lazy binding.
10874         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10875         undefined symbol errors.
10876
10877         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10878         DT_NEEDED entries.
10879
10880 2012-04-05  Michael Matz  <matz@suse.de>
10881
10882         [BZ #13592]
10883         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10884
10885 2012-04-05  Andreas Jaeger  <aj@suse.de>
10886
10887         [BZ #13908]
10888         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10889         comment.
10890
10891 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10892
10893         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10894         which ROUND is no valid rounding mode.
10895
10896 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10897
10898         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10899         read again.
10900         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10901
10902 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10903
10904         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10905         an exception using FPU order intentionally.
10906
10907 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10908
10909         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10910         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10911         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10912         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10913
10914 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10915
10916         [BZ #12340]
10917         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10918         EINVAL when BUFLEN is too smal.
10919
10920 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10921
10922         [BZ #13553]
10923         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10924         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10925
10926 2012-04-03  Andreas Jaeger  <aj@suse.de>
10927
10928         [BZ #13938]
10929         * manual/setjmp.texi (System V contexts): Fix sentence.
10930
10931         [BZ #13926]
10932         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10933         New macro for this case.
10934         [!__GNUC__] (__bswap_64): New inline function for this case.
10935         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10936         * bits/byteswap.h: Likewise.
10937         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10938         ull, guard with __GLIBC_HAVE_LONG_LONG.
10939
10940         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10941         __GLIBC_HAVE_LONG_LONG.
10942
10943         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10944         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10945
10946 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10947
10948         [BZ #13691]
10949         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10950         inptr and inend, rather than using last_ch.
10951
10952 2012-04-02  David S. Miller  <davem@davemloft.net>
10953
10954         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10955         * stdio-common/printf-parse.h (read_int): Change return type to
10956         'int', return -1 on INT_MAX overflow.
10957         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10958         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10959         overflows INT_MAX.  Check for overflow of in-format-string precision
10960         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10961         SIZE_MAX not INT_MAX for integer overflow test.
10962         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10963         skip the construct in the format string but do not record anything.
10964         * stdio-common/bug22.c: Adjust to test both width/prevision
10965         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10966         explicitly for proper errno values.
10967
10968 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10969
10970         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10971         CHAR_MAX.
10972         * string/test-strcmp.c [! WIDE]: Likewise.
10973         * time/tst-mktime2.c: Likewise for INT_MAX.
10974         * string/test-string.h: #include <sys/param.h> for MIN.
10975
10976         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10977         * sysdeps/i386/init-first.c (init): Likewise.
10978         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10979         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10980         * sysdeps/sh/init-first.c (init): Likewise.
10981
10982 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10983
10984         * po/ru.po: Update from translation team.
10985         * po/vi.po: Likewise.
10986
10987 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10988
10989         * resolv/nss_dns/dns-host.c: Merge copyright years.
10990
10991 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10992
10993         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10994         Optimize memcpy with prefetch if
10995         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10996         src, dst pointers have unequal 16 byte alignments.
10997
10998 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10999
11000         [BZ #13928]
11001         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11002         from a CNAME entry and return the minimum ttl for the query.
11003         (gaih_getanswer_slice): Likewise.
11004
11005 2012-03-30  Jeff Law  <law@redhat.com>
11006
11007         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11008         due to long keys.
11009         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11010         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11011
11012         * resolv/nss_dns/dns-host.c: Update copyright year.
11013
11014 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11015
11016         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11017         requests to save a system call.  Fix check that all bytes are sent.
11018
11019         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11020         comments for sendmmsg.
11021
11022 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11023
11024         [BZ #13691]
11025         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11026         with only 1 character between 0x0041 and 0x01b0.
11027         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11028         * wcsmbs/tst-mbsnrtowcs.c: New file.
11029
11030 2012-03-29  David S. Miller  <davem@davemloft.net>
11031
11032         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11033         small copies by hand.
11034
11035 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11036
11037         [BZ #13761]
11038         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11039         _nss_compat_initgroups_dyn): Fall back to malloc/free
11040         for large group memberships.
11041
11042 2012-03-28  David S. Miller  <davem@davemloft.net>
11043
11044         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11045         that branches into memcpy.
11046         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11047         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11048         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11049         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11050         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11051         bits.
11052         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11053         implementation too.
11054         * sysdeps/sparc/mempcpy.S: New file.
11055
11056         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11057         the IFUNC routine in the libc case.
11058         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11059
11060         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11061         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11062         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11063         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11064         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11065         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11066         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11067         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11068
11069         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11070         loop to 256 bytes instead of 64 bytes and fix test signedness.
11071
11072         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11073         * sysdeps/sparc/sparc32/Makefile: rather than here...
11074         * sysdeps/sparc/sparc64/Makefile: and here.
11075
11076 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11077
11078         * malloc/mallocbug.c: Avoid warnings about unused variables.
11079
11080 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11081
11082         [BZ #13760]
11083         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11084         in the right place. Discard and retry query if response is
11085         larger than input buffer size.
11086
11087 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11088
11089         [BZ #369]
11090         [BZ #2678]
11091         [BZ #3866]
11092         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11093         x for large integer exponent.
11094         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11095         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11096         sign of result as needed afterwards.
11097         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11098         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11099         result for underflowing pow the same as for overflow.
11100         (__kernel_standard_l): Handle powl overflow and underflow here
11101         rather than calling __kernel_standard.
11102         * math/libm-test.inc (pow_test): Add more tests.
11103
11104         [BZ #3868]
11105         [BZ #13879]
11106         [BZ #13910]
11107         [BZ #13911]
11108         [BZ #13912]
11109         [BZ #13913]
11110         [BZ #13915]
11111         [BZ #13916]
11112         [BZ #13917]
11113         [BZ #13918]
11114         [BZ #13919]
11115         [BZ #13920]
11116         [BZ #13921]
11117         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11118         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11119         (__kernel_standard_l): New function.
11120         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11121         __kernel_standard.
11122         * math/w_acosl.c (__acosl): Likewise.
11123         * math/w_asinl.c (__asinl): Likewise.
11124         * math/w_atan2l.c (__atan2l): Likewise.
11125         * math/w_atanhl.c (__atanhl): Likewise.
11126         * math/w_coshl.c (__coshl): Likewise.
11127         * math/w_exp10l.c (__exp10l): Likewise.
11128         * math/w_exp2l.c (__exp2l): Likewise.
11129         * math/w_fmodl.c (__fmodl): Likewise.
11130         * math/w_hypotl.c (__hypotl): Likewise.
11131         * math/w_j0l.c (__j0l, __y0l): Likewise.
11132         * math/w_j1l.c (__j1l, __y1l): Likewise.
11133         * math/w_jnl.c (__jnl, __ynl): Likewise.
11134         * math/w_lgammal.c (__lgammal): Likewise.
11135         * math/w_log10l.c (__log10l): Likewise.
11136         * math/w_log2l.c (__log2l): Likewise.
11137         * math/w_logl.c (__logl): Likewise.
11138         * math/w_powl.c (__powl): Likewise.
11139         * math/w_remainderl.c (__remainderl): Likewise.
11140         * math/w_scalbl.c (sysv_scalbl): Likewise.
11141         * math/w_sinhl.c (__sinhl): Likewise.
11142         * math/w_sqrtl.c (__sqrtl): Likewise.
11143         * math/w_tgammal.c (__tgammal): Likewise.
11144         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11145         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11146         * math/libm-test.inc (acos_test): Add more tests.
11147         (acosh_test): Likewise.
11148         (asin_test): Likewise.
11149         (atanh_test): Likewise.
11150         (exp_test): Likewise.
11151         (exp10_test): Likewise.
11152         (exp2_test): Likewise.
11153         (expm1_test): Likewise.
11154         (lgamma_test): Likewise.
11155         (log_test): Likewise.
11156         (log10_test): Likewise.
11157         (log1p_test): Likewise.
11158         (log2_test): Likewise.
11159         (pow_test): Do not allow some spurious overflow exceptions.
11160         (sqrt_test): Add more tests.
11161         (tgamma_test): Likewise.
11162         (y0_test): Likewise.
11163         (y1_test): Likewise.
11164         (yn_test): Likewise.
11165
11166 2012-03-27  Anton Blanchard  <anton@samba.org>
11167
11168         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11169         MAP_HUGETLB.
11170         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11171         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11172         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11173
11174 2012-03-27  David S. Miller  <davem@davemloft.net>
11175
11176         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11177
11178         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11179         have-as-vis3 check.
11180
11181 2012-03-27  Andreas Jaeger  <aj@suse.de>
11182
11183         * sysdeps/x86_64/elf/configure.in: Moved to ...
11184         * sysdeps/x86_64/configure.in: ... here.
11185         * sysdeps/x86_64/elf/start.S: Moved to ...
11186         * sysdeps/x86_64/start.S: ... here.
11187         * sysdeps/x86_64/elf/configure: Delete.
11188
11189         * sysdeps/x86_64/configure.in: Merge contents from
11190         sysdeps/i386/configure.in (without i686 check).
11191
11192         * sysdeps/i386/elf/Versions: Merge into ...
11193         * sysdeps/i386/Versions: ... this.
11194         * sysdeps/i386/elf/Versions: Delete file.
11195         * sysdeps/i386/elf/start.S: Moved to ...
11196         * sysdeps/i386/start.S: ...here.
11197         * sysdeps/i386/elf/configure.in: Merge into...
11198         * sysdeps/i386/configure.in: ...here.
11199         * sysdeps/i386/elf/configure.in: Delete file.
11200         * sysdeps/i386/elf/configure: Delete file.
11201
11202         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11203         * debug/backtracesyms.c: ... here.
11204         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11205         * debug/backtracesymsfd.c: ... here.
11206         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11207         * sysdeps/generic/ifunc-sel.h: ... here.
11208
11209         * sysdeps/unix/i386/start.c: Delete file.
11210         * sysdeps/unix/sparc/start.c: Delete file.
11211         * sysdeps/unix/start.c: Delete file.
11212
11213         * sysdeps/sh/elf/configure.in: Moved to ...
11214         * sysdeps/sh/configure.in: ... here.
11215         * sysdeps/sh/elf/start.S: Moved to ...
11216         * sysdeps/sh/start.S: ... here.
11217         * sysdeps/sh/elf/configure: Delete file.
11218
11219         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11220         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11221         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11222         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11223         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11224         * sysdeps/powerpc/powerpc64/start.S: here.
11225         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11226         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11227         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11228         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11229         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11230
11231         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11232         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11233         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11234         * sysdeps/powerpc/powerpc32/start.S: ... here.
11235         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11236         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11237         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11238
11239         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11240         * sysdeps/powerpc/ifunc-sel.h: ... here.
11241         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11242         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11243
11244         * sysdeps/sparc/elf/configure.in: Moved to ...
11245         * sysdeps/sparc/configure.in: ... here.
11246         * sysdeps/sparc/elf/configure: Delete file.
11247         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11248         * sysdeps/sparc/sparc32/start.S: ... here.
11249         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11250         * sysdeps/sparc/sparc64/start.S: ... here.
11251         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11252         * sysdeps/sparc/sparc32/Makefile: ... this.
11253         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11254         * sysdeps/sparc/sparc64/Makefile: ... this.
11255
11256         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11257         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11258         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11259         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11260         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11261         * sysdeps/s390/s390-32/setjmp.S: ... here.
11262         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11263         * sysdeps/s390/s390-32/configure.in: ... here.
11264         * sysdeps/s390/s390-32/elf/configure: Delete file.
11265         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11266         * sysdeps/s390/s390-32/start.S: ... here.
11267
11268         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11269         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11270         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11271         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11272         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11273         * sysdeps/s390/s390-64/setjmp.S: ... here.
11274         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11275         * sysdeps/s390/s390-64/configure.in: ... here
11276         * sysdeps/s390/s390-64/elf/configure: Delete file.
11277         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11278         * sysdeps/s390/s390-64/start.S: ... here.
11279         * sysdeps/s390/s390-64/elf/configure: Delete.
11280
11281         * configure.in: Remove support for elf directories in sysdeps.
11282
11283         * configure: Regenerated.
11284         * sysdeps/i386/configure: Regenerated.
11285         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11286         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11287         * sysdeps/s390/s390-32/configure: Regenerated.
11288         * sysdeps/s390/s390-64/configure: Regenerated.
11289         * sysdeps/sh/configure: Regenerated.
11290         * sysdeps/sparc/configure: Regenerated.
11291         * sysdeps/x86_64/configure: Regenerated.
11292
11293 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11294
11295         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11296
11297         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11298         denormal result into account.
11299
11300 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11301
11302         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11303         Reported by Allan McRae <allan@archlinux.org>.
11304
11305 2012-03-23  Jeff Law  <law@redhat.com>
11306
11307         * nss/getnssent.c (__nss_getent): Fix typo.
11308
11309 2012-03-23  David S. Miller  <davem@davemloft.net>
11310
11311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11312
11313 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11314
11315         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11316         to pad to uint64_t for each field.
11317         (dl_tls_index): Replace unsigned long with uint64_t.
11318
11319 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11320         Paul Pluzhnikov  <ppluzhnikov@google.com>
11321
11322         [BZ #6528]
11323         * grp/Makefile (otherlibs): Don't set it.
11324         * inet/Makefile (otherlibs): Likewise.
11325         * login/Makefile (otherlibs): Likewise.
11326         * nscd/Makefile (otherlibs): Likewise.
11327         * posix/Makefile (otherlibs): Likewise.
11328         * pwd/Makefile (otherlibs): Likewise.
11329         * rt/Makefile (otherlibs): Likewise.
11330         * sunrpc/Makefile (otherlibs): Likewise.
11331         * nss/Makefile (otherlibs): Likewise.
11332         Add libnss_files to routines and static-only-routines.
11333         ($(objpfx)getent): Remove rule.
11334         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11335         static-only-routines.
11336
11337 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11338
11339         [BZ #13892]
11340         * math/s_cexp.c: Include <float.h>.
11341         (__cexp): Handle exp result overflowing not necessarily
11342         overflowing both real and imaginary parts of result.
11343         * math/s_cexpf.c: Likewise.
11344         * math/s_cexpl.c: Likewise.
11345         * math/libm-test.inc (cexp_test): Add more tests.
11346         * sysdeps/i386/fpu/libm-test-ulps: Update.
11347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11348
11349 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11350
11351         * include/link.h (ELFW): New macro.
11352         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11353         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11354
11355 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11356
11357         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11358         with uint64_t.
11359
11360 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11361
11362         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11363         declaration.
11364         (struct La_x32_retval): Likewise.
11365
11366 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11367
11368         * sysdeps/x86_64/preconfigure.in: New file.
11369         * sysdeps/x86_64/preconfigure: New generated file.
11370
11371 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11372
11373         [BZ #13824]
11374         * math/e_exp2l.c: Include <float.h>.
11375         (__ieee754_exp2l): Handle overflow and underflow cases
11376         separately.  Only pass fractional part of argument to
11377         __ieee754_expl.
11378         * math/libm-test.inc (exp2_test): Add more tests.
11379
11380         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11381         negating x to take absolute value.
11382         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11383         Likewise.
11384         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11385         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11386         Likewise.
11387         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11388         computing low part if x was negated.
11389         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11390
11391 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11392
11393         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11394         la_x32_gnu_pltexit.
11395         (pltexit): Cast int_retval to ptrdiff_t.
11396         * elf/tst-auditmod3b.c: Likewise.
11397         * elf/tst-auditmod4b.c: Likewise.
11398         * elf/tst-auditmod5b.c: Likewise.
11399         * elf/tst-auditmod6b.c: Likewise.
11400         * elf/tst-auditmod6c.c: Likewise.
11401         * elf/tst-auditmod7b.c: Likewise.
11402
11403         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11404         and x32_gnu_pltexit.
11405
11406         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11407         __ELF_NATIVE_CLASS.
11408         (La_x32_regs): New macro.
11409         (La_x32_retval): Likewise.
11410         (la_x32_gnu_pltenter): New function prototype.
11411         (la_x32_gnu_pltexit): Likewise.
11412
11413 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11414
11415         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11416         exponent.
11417
11418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11419
11420         * configure.in (libc_cv_cc_nofma): Check for option to disable
11421         generation of FMA instructions.
11422         * configure: Regenerate.
11423         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11424         * sysdeps/ieee754/dbl-64/Makefile: New file.
11425         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11426         Remove brandred-fma4.
11427         (CFLAGS-brandred-fma4.c): Remove.
11428         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11429         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11430         define.
11431         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11432         define.
11433
11434 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11435
11436         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11437         LLONG_MAX != LONG_MAX.
11438         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11439         (_fitoa_word): Likewise.
11440         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11441         LLONG_MAX != LONG_MAX.
11442         * stdio-common/_itowa.h: Include <_itoa.h>.
11443         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11444         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11445         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11446         only if not defined.
11447         (_ITOA_WORD_TYPE): Likewise.
11448         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11449         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11450
11451 2012-03-21  David S. Miller  <davem@davemloft.net>
11452
11453         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11454
11455 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11456
11457         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11458         of x86_64 when setting libc_cv_slibdir, libdir and
11459         libc_cv_localedir.
11460         * sysdeps/unix/sysv/linux/configure: Regenerated.
11461
11462 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11463
11464         * manual/lang.texi (Old Varargs): Remove section.
11465         (How Variadic): Update menu.
11466         (va_start): Do not mention varargs.h.
11467
11468 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11469             Joseph Myers  <joseph@codesourcery.com>
11470
11471         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11472         link test.
11473         * configure: Regenerated.
11474
11475 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11476
11477         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11478         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11479         conformtest.pl
11480
11481 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11482
11483         * NOTES: Remove.
11484         * Makefile (files-for-dist): Remove NOTES.
11485         (NOTES): Remove rule.
11486         * README: Don't refer to NOTES.
11487         * manual/creature.texi: Don't include macros.texi.
11488         * manual/intro.texi (creature.texi): Remove comment referring to
11489         NOTES.
11490
11491         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11492         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11493         * configure: Regenerated.
11494         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11495         LIBC_TRY_CC_OPTION.
11496         (libc_cv_as_i686): Likewise.
11497         (libc_cv_cc_avx): Likewise.
11498         (libc_cv_cc_sse2avx): Likewise.
11499         (libc_cv_cc_fma4): Likewise.
11500         (libc_cv_cc_novzeroupper): Likewise.
11501         * sysdeps/i386/configure: Regenerated.
11502
11503         [BZ #13883]
11504         * sysdeps/i386/fpu/s_cexp.S: Remove.
11505         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11506         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11507         * math/libm-test.inc (cexp_test): Add more tests.
11508         * sysdeps/i386/fpu/libm-test-ulps: Update.
11509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11510
11511 2012-03-21  Allan McRae  <allan@archlinux.org>
11512
11513         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11514
11515 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11516
11517         [BZ #13871]
11518         * math/w_exp2.c: Do not include <float.h>.
11519         (o_threshold, u_threshold): Remove.
11520         (__exp2): Calculate result before checking finiteness and calling
11521         __kernel_standard.
11522         * math/w_exp2f.c: Likewise.
11523         * math/w_exp2l.c: Likewise.
11524         * math/libm-test.inc (exp2_test): Require overflow exception for
11525         1e6 input.
11526
11527         [BZ #3866]
11528         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11529         range of signed 64-bit integers before using fistpll.  Remove
11530         checks for whether integers fit in mantissa bits.
11531         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11532         the range of signed 32-bit integers before using fistpl.  Remove
11533         checks for whether integers fit in mantissa bits.
11534         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11535         (__ieee754_powl): Test for y outside the range of signed 64-bit
11536         integers before using fistpll.  Reduce 64-bit values to 63-bit
11537         ones as needed.
11538         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11539         divide-by-zero is raised for zero to large negative powers.
11540         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11541         (__ieee754_powl): Test for y outside the range of signed 64-bit
11542         integers before using fistpll.  Reduce 64-bit values to 63-bit
11543         ones as needed.
11544         * math/libm-test.inc (pow_test): Add more tests.
11545
11546 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11547
11548         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11549         <stdio-common/_itoa.h>.
11550         * debug/segfault.c: Likewise.
11551         * elf/dl-cache.c: Likewise.
11552         * elf/dl-minimal.c: Likewise.
11553         * elf/dl-misc.c: Likewise.
11554         * elf/dl-sysdep.c: Likewise.
11555         * elf/dl-version.c: Likewise.
11556         * elf/rtld.c: Likewise.
11557         * hurd/hurdsock.c: Likewise.
11558         * hurd/lookup-retry.c: Likewise.
11559         * malloc/malloc.c: Likewise.
11560         * malloc/mtrace.c: Likewise.
11561         * nscd/nscd_getgr_r.c: Likewise.
11562         * nscd/nscd_getpw_r.c: Likewise.
11563         * nscd/nscd_getserv_r.c: Likewise.
11564         * posix/getopt_init.c: Likewise.
11565         * posix/wordexp.c: Likewise.
11566         * stdio-common/_itoa.c: Likewise.
11567         * stdio-common/printf_fphex.c: Likewise.
11568         * stdio-common/vfprintf.c: Likewise.
11569         * string/_strerror.c: Likewise.
11570         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11571         * sysdeps/i386/i686/hp-timing.h: Likewise.
11572         * sysdeps/mach/_strerror.c: Likewise.
11573         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11574         * sysdeps/mach/hurd/sethostid.c: Likewise.
11575         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11576         * sysdeps/mach/xpg-strerror.c: Likewise.
11577         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11578         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11579         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11580         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11581         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11582         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11583         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11584         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11585         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11586         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11587         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11588         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11589         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11590         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11591         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11592         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11593         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11594         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11595         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11596         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11597         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11598
11599         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11600
11601         * stdio-common/_itoa.h: Moved to ...
11602         * sysdeps/generic/_itoa.h: Here.
11603
11604         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11605
11606         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11607         instead of "_itoa.h" and "_itowa.h".
11608         * stdio-common/vfprintf.: Likewise.
11609
11610 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11611
11612         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11613         <bits/wordsize.h>.
11614         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11615         (__signbit): Likwise.
11616         (llrintf): Likwise.
11617         (llrint): Likwise.
11618
11619 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11620
11621         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11622         __WORDSIZE != 64.
11623
11624 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11625
11626         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11627         OVERFLOW_EXCEPTION_OK.
11628         * math/libm-test.inc ("Philosophy"): Update comment about
11629         exception testing.
11630         (OVERFLOW_EXCEPTION): Define.
11631         (OVERFLOW_EXCEPTION_OK): Likewise.
11632         (INVALID_EXCEPTION_OK): Renumber.
11633         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11634         (IGNORE_ZERO_INF_SIGN): Likewise.
11635         (test_exceptions): Handle FE_OVERFLOW.
11636         (exp10_test): Expect overflow exceptions.
11637         (exp2_test): Likewise.
11638         (expm1_test): Likewise.
11639         (nextafter_test): Likewise.
11640         (pow_test): Likewise.
11641         (scalbn_test): Likewise.
11642         (scalbln_test): Likewise.
11643
11644 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11645
11646         * sysdeps/x86_64/bits/atomic.h
11647         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11648         64bit integer.
11649         (atomic_exchange_acq): Likewise.
11650         (__arch_exchange_and_add_body): Likewise.
11651         (__arch_add_body): Likewise.
11652         (atomic_add_negative): Likewise.
11653         (atomic_add_zero): Likewise.
11654
11655 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11656
11657         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11658         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11659
11660 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11661
11662         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11663         Check __x86_64__ instead of __WORDSIZE.
11664
11665 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11666
11667         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11668
11669 2012-03-19  David S. Miller  <davem@davemloft.net>
11670
11671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11672
11673         * sysdeps/sparc/fpu/fenv_private.h: New file.
11674         * sysdeps/sparc/fpu/math_private.h: Use it.
11675         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11676         Remove.
11677         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11678         (libc_feholdexcept_setroundl): Remove.
11679         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11680         Remove.
11681         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11682         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11683
11684 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11685
11686         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11687         int64_t instead of long int.
11688         (INSERT_WORDS64): Likwise.
11689
11690 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11691
11692         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11693         _Unwind_GetCFA return to _Unwind_Ptr first.
11694
11695 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11696
11697         [BZ #13629]
11698         * math/s_clog.c: Include <float.h>.
11699         (__clog): Scale large or subnormal inputs.
11700         * math/s_clogf.c: Likewise.
11701         * math/s_clogl.c: Likewise.
11702         * math/s_clog10.c: Include <float.h>.
11703         (M_LOG10_2): Define.
11704         (__clog10): Scale large or subnormal inputs.
11705         * math/s_clog10f.c: Likewise.
11706         * math/s_clog10l.c: Likewise.
11707         * math/libm-test.inc (clog_test): Add more tests.
11708         (clog10_test): Likewise.
11709         * sysdeps/i386/fpu/libm-test-ulps: Update.
11710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11711
11712         [BZ #11451]
11713         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11714         x and y.
11715         * math/libm-test.inc (atan2_test): Add another test.
11716
11717         * Makerules (common-objdir-compile): Remove.
11718         * sysdeps/unix/Makefile (config-generated): Do not add
11719         $(unix-generated) to variable.
11720         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11721         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11722         Remove rule.
11723         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11724         Likewise.
11725         [generic bits/local_lim.h] (before-compile): Do not append to
11726         variable.
11727         [generic bits/local_lim.h] (common-generated): Likewise.
11728         [generic sys/param.h] (before-compile): Do not append to variable.
11729         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11730         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11731         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11732         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11733         include.
11734         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11735         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11736         [generic sys/param.h] ($(addprefix
11737         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11738         [generic sys/param.h] (common-generated): Do not append to
11739         variable.
11740         [generic sys/param.h] (sysdep_headers): Likewise.
11741         [generic bits/errno.h] (before-compile): Do not append to
11742         variable.
11743         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11744         rule.
11745         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11746         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11747         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11748         [generic bits/errno.h] (common-generated): Do not append to
11749         variable.
11750         [generic bits/ioctls.h] (before-compile): Do not append to
11751         variable.
11752         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11753         rule.
11754         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11755         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11756         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11757         rule.
11758         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11759         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11760         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11761         [generic bits/ioctls.h] (common-generated): Do not append to
11762         variable.
11763         [generic sys/syscall.h] (syscall.h): Remove variable.
11764         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11765         rule.
11766         [generic sys/syscall.h] (before-compile): Do not append to
11767         variable.
11768         [generic sys/syscall.h] (common-generated): Likewise.
11769         * sysdeps/unix/errnos-tmpl.c: Remove file.
11770         * sysdeps/unix/errnos.awk: Likewise.
11771         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11772         * sysdeps/unix/ioctls.awk: Likewise.
11773         * sysdeps/unix/mk-local_lim.c: Likewise.
11774         * sysdeps/unix/snarf-ioctls: Likewise.
11775
11776 2012-03-19  Richard Henderson  <rth@twiddle.net>
11777
11778         * sysdeps/i386/fpu/fenv_private.h: New file.
11779         * sysdeps/i386/fpu/math_private.h: Use it.
11780         (math_opt_barrier, math_force_eval): Remove.
11781         (libc_feholdexcept_setround_53bit): Remove.
11782         (libc_feupdateenv_53bit): Remove.
11783         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11784         (math_opt_barrier, math_force_eval): Remove.
11785         (libc_feholdexcept): Remove.
11786         (libc_feholdexcept_setround): Remove.
11787         (libc_fetestexcept, libc_fesetenv): Remove.
11788         (libc_feupdateenv_test): Remove.
11789         (libc_feupdateenv, libc_feholdsetround): Remove.
11790         (libc_feresetround): Remove.
11791
11792         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11793         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11794
11795         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11796         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11797         (libc_feupdateenv_testl): New.
11798         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11799         (libc_feupdateenv_testf): New.
11800         (libc_feupdateenv): Use libc_feupdateenv_test.
11801         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11802         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11803
11804         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11805         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11806         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11807         (libc_feresetround_noex): New.
11808         (libc_feresetround_noexf): New.
11809         (libc_feresetround_noexl): New.
11810         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11811         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11812         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11813         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11814         SET_RESTORE_ROUND.
11815         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11816         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11817         (__cos): Likewise.
11818         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11819         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11820         SET_RESTORE_ROUND_NOEX.
11821         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11822         SET_RESTORE_ROUND_NOEXF.
11823         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11824         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11825         (libc_feholdsetroundf): New.
11826         (libc_feresetround, libc_feresetroundf): New.
11827
11828         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11829         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11830         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11831
11832         * sysdeps/generic/math_private.h: Include <fenv.h>.
11833         (default_libc_feholdexcept): New.
11834         (default_libc_feholdexcept_setround): New.
11835         (default_libc_fesetenv, default_libc_feupdateenv): New.
11836         (libc_feholdexcept): Only define if undefined.
11837         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11838         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11839         (libc_feholdexcept_setroundl): Likewise.
11840         (libc_feholdexcept_setround_53bit): Likewise.
11841         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11842         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11843         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11844         (libc_feupdateenv_53bit): Likewise.
11845         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11846         (libc_feholdexcept): Convert from macro to inline function.
11847         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11848         (libc_fesetenv, libc_feupdateenv): Likewise.
11849
11850         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11851         not previously defined.
11852         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11853         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11854         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11855         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11856         * sysdeps/ieee754/flt-32/math_private.h: New file.
11857         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11858         math_private.h below SET_FLOAT_WORD.
11859         (__isnan, __isinf_ns, __finite): Remove.
11860         (__isnanf, __isinf_nsf, __finitef): Remove.
11861
11862 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11863
11864         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11865
11866 2012-03-17  David S. Miller  <davem@davemloft.net>
11867
11868         [BZ #6471]
11869         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11870         for 2.16.
11871
11872 2012-03-16  David S. Miller  <davem@davemloft.net>
11873
11874         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11875         warnings.
11876
11877         [BZ #6471]
11878         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11879         properly.
11880         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11881         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11882         sysdep_routines when subdir is sysvipc.
11883         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11884         __getshmlba helper.
11885
11886         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11887
11888 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11889
11890         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11891         [__LP64__].
11892
11893 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11894
11895         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11896         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11897         (__lround): Renamed to ...
11898         (__llround): This.  Replace long int with long long int.
11899         Define lround functions as aliases of llround functions.
11900         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11901
11902 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11903
11904         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11905         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11906         adresses to uintptr_t.  Replace "long int" and "unsigned long
11907         int" with "greg_t" on va_arg.
11908
11909 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11910
11911         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11912         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11913
11914         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11915         Move e_machine check before EI_CLASS check.  Handle x32
11916         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11917         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11918         SKIP_EM_IA_64 and include
11919         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11920
11921         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11922         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11923         (add_system_dir): New macro.
11924
11925         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11926         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11927
11928 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11929
11930         [BZ #2551]
11931         [BZ #2552]
11932         [BZ #2553]
11933         [BZ #2554]
11934         [BZ #2562]
11935         [BZ #2563]
11936         [BZ #2565]
11937         [BZ #2566]
11938         [BZ #2576]
11939         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11940         (y0): Likewise.
11941         * math/w_j0f.c (j0f): Likewise.
11942         (y0f): Likewise.
11943         * math/w_j0l.c (__j0l): Likewise.
11944         (__y0l): Likewise.
11945         * math/w_j1.c (j1): Likewise.
11946         (y1): Likewise.
11947         * math/w_j1f.c (j1f): Likewise.
11948         (y1f): Likewise.
11949         * math/w_j1l.c (__j1l): Likewise.
11950         (__y1l): Likewise.
11951         * math/w_jn.c (jn): Likewise.
11952         (yn): Likewise.
11953         * math/w_jnf.c (jnf): Likewise.
11954         (ynf): Likewise.
11955         * math/w_jnl.c (__jnl): Likewise.
11956         (__ynl): Likewise.
11957         * math/libm-test.inc (j0_test): Add more tests.
11958         (j1_test): Likewise.
11959         (jn_test): Likewise.  Add trailing semicolon to existing test.
11960         (y0_test): Likewise.
11961         (y1_test): Likewise.
11962         * sysdeps/i386/fpu/libm-test-ulps: Update.
11963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11964
11965         [BZ #13851]
11966         [BZ #13854]
11967         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11968         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11969         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11970         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11971         (__tanl): Set errno for infinite argument.
11972         * sysdeps/i386/fpu/mptan.c: Remove.
11973         * sysdeps/i386/fpu/s_tan.S: Likewise.
11974         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11975         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11976         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11977         * math/libm-test.inc (tan_test): Add more tests and enable more
11978         tests for double and long double.
11979         * sysdeps/i386/fpu/libm-test-ulps: Update.
11980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11981
11982 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11983
11984         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11985         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11986
11987 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11988
11989         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11990         * configure.in: Use it for both main tree and add-ons.
11991         * configure: Regenerated.
11992
11993 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11994
11995         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11996
11997 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11998
11999         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12000         in comment.
12001
12002         [BZ #13851]
12003         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12004         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12005         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12006         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12007         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12008         infinite argument.
12009         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12010         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12011         != 0 for prec == 2.
12012         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12013         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12014         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12015         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12016         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12017         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12018         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12019         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12020         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12021         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12022         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12023         * math/libm-test.inc (cos_test): Add more tests and enable more
12024         tests for long double.
12025         (sin_test): Likewise.
12026         (sincos_test): Likewise.
12027         * sysdeps/i386/fpu/libm-test-ulps: Update.
12028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12029
12030 2012-03-16  David S. Miller  <davem@davemloft.net>
12031
12032         * sysdeps/sparc/fpu/math_private.h: New file.
12033
12034 2012-03-15  David S. Miller  <davem@davemloft.net>
12035
12036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12037         file.
12038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12040         file.
12041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12042         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12043         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12046         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12047         sysdep routines.
12048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12049
12050         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12051         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12052
12053         * sysdeps/sparc/sparc-ifunc.h: New file.
12054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12055         sparc-ifunc.h
12056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12058         Likewise.
12059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12060         Likewise.
12061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12065         Likewise.
12066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12071         Likewise.
12072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12073         Likewise.
12074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12078         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12079         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12080         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12081         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12082         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12083         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12084         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12085         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12086         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12087         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12088         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12089         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12090         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12091         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12092         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12093         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12094         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12095         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12096         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12097         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12098
12099 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12100
12101         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12102         scaling.
12103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12104
12105 2012-03-15  Andreas Jaeger  <aj@suse.de>
12106
12107         [BZ #13852]
12108         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12109         ieee754/flt-32 implementation for sin, cos and sincos.
12110         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12111         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12112         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12113         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12114         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12115         ieee754/flt-32 implementation for tan.
12116
12117         * math/libm-test.inc (cos_test): Enable some large input tests for
12118         float as well
12119         (sin_test): Likewise.
12120         (sincos_test): Likewise.
12121         (tan_test): Add tests for large input.
12122
12123         * sysdeps/i386/fpu/libm-test-ulps: Update.
12124
12125 2012-03-15  Andreas Jaeger  <aj@suse.de>
12126
12127         [BZ #13658]
12128         * math/libm-test.inc (cos_test): Add more test cases.
12129         (sin_test): Likewise.
12130         (sincos_test): Likewise.
12131
12132 2012-03-15  Andreas Jaeger  <aj@suse.de>
12133
12134         [BZ #13837]
12135         * math/libm-test.inc (cos_test): Add a test case for large input
12136         value.
12137         (sin_test): Likewise.
12138         (sincos_test): Likewise.
12139
12140 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12141         Joseph Myers  <joseph@codesourcery.com>
12142
12143         [BZ #13658]
12144         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12145         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12146         * sysdeps/i386/fpu/branred.c: Likewise.
12147         * sysdeps/i386/fpu/dosincos.c: Likewise.
12148         * sysdeps/i386/fpu/mpa.c: Likewise.
12149         * sysdeps/i386/fpu/s_cos.S: Likewise.
12150         * sysdeps/i386/fpu/s_sin.S: Likewise.
12151         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12152         * sysdeps/i386/fpu/sincos32.c: Likewise.
12153
12154         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12155         Define.
12156         (libc_feupdateenv_53bit): Define.
12157         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12158         Define.
12159         (libc_feupdateenv_53bit): Define.
12160
12161         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12162         53 bit (without extend i386 double precision).
12163
12164         * math/libm-test.inc (sincos_test): Add tests for large input.
12165         (sin): Likewise.
12166         (cos): Likewise.
12167
12168         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12169
12170 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12171
12172         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12173
12174 2012-03-15  David S. Miller  <davem@davemloft.net>
12175
12176         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12177         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12178         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12179         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12184         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12185         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12186         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12187         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12188         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12189         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12190         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12192         file.
12193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12195         file.
12196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12198         file.
12199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12201         file.
12202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12203         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12204         fmin/fmax sysdep routines.
12205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12206
12207 2012-03-14  David S. Miller  <davem@davemloft.net>
12208
12209         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12210         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12211         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12212         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12213         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12214         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12215         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12216         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12217         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12218         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12219         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12220         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12221         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12222         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12223         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12224         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12225         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12226         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12227         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12228         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12229         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12230         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12231         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12232         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12233         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12234         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12235         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12236         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12237         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12238         routines.
12239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12240         file.
12241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12243         file.
12244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12246         file.
12247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12249         file.
12250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12252         file.
12253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12255         file.
12256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12257         file.
12258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12259         file.
12260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12261         file.
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12263         New file.
12264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12265         file.
12266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12267         file.
12268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12270         file.
12271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12273         file.
12274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12276         file.
12277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12279         VIS3 routines.
12280
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12282         New file.
12283
12284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12285
12286         * sysdeps/sparc/configure.in: New file.
12287         * sysdeps/sparc/configure: Generate.
12288         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12289         * configure: Regenerate.
12290         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12291         * config.make.in (have-as-vis3): New.
12292         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12293         available use -Av9d instead of -Av9a.
12294         * sysdeps/sparc/sparc64/Makefile: Likewise.
12295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12297         New file.
12298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12299         file.
12300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12301         New file.
12302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12303         file.
12304         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12305         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12306         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12307         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12308         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12309
12310         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12311         fzeros/fnegs to load 0x80000000 into a float register instead of
12312         using the stack.
12313         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12314
12315 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12316
12317         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12318         bits/syscall.h.
12319         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12320         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12321         ($(inst_includedir)/bits/syscall.h): Remove rule.
12322         ($(objpfx)bits/syscall.d): Include instead of
12323         $(objpfx)syscall-list.d.
12324         (generated): Change syscall-list.h and syscall-list.d to
12325         bits/syscall.h and bits/syscall.d.
12326
12327 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12328
12329         [BZ #13846]
12330         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12331
12332 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12333
12334         [BZ #13841]
12335         * math/s_csqrt.c: Include <float.h>.
12336         (__csqrt): Scale large or subnormal inputs.
12337         * math/s_csqrtf.c: Likewise.
12338         * math/s_csqrtl.c: Likewise.
12339         * math/libm-test.inc (csqrt_test): Add more tests.
12340         * sysdeps/i386/fpu/libm-test-ulps: Update.
12341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12342
12343         [BZ #13840]
12344         * math/libm-test.inc (hypot_test): Add more tests.
12345
12346 2012-03-13  David S. Miller  <davem@davemloft.net>
12347
12348         [BZ #13840]
12349         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12350         double-precision for the calculation instead of scaling.
12351
12352 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12353
12354         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12355         manipulate bits before adding and subtracting TWO52[sx].
12356         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12357         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12358         Likewise.
12359         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12360
12361 2012-03-13  David S. Miller  <davem@davemloft.net>
12362
12363         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12364         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12365         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12366         rtld-global-offsets.h
12367         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12368
12369         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12370         large parameters.
12371
12372         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12373
12374         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12375         'err' in the ifdef scope in which it is actually used.
12376
12377         * nss/nss_db/db-init.c: Include string.h
12378
12379 2012-03-12  David S. Miller  <davem@davemloft.net>
12380
12381         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12382         masking out of the most significant byte of random value used.
12383         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12384         Fix coding style in previous change.
12385
12386         * sysdeps/unix/sysv/linux/kernel-features.h
12387         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12388         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12389         expression.
12390         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12391         later.
12392
12393 2012-03-11  David S. Miller  <davem@davemloft.net>
12394
12395         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12396         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12397         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12398         for 'resultvar' otherwise things get truncated on 64-bit.
12399
12400         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12401         Fix masking out of the most significant byte of random value used.
12402
12403         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12404
12405 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12406
12407         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12408
12409 2012-03-09  David S. Miller  <davem@davemloft.net>
12410
12411         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12412         variables with appropriate CPP guards.
12413         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12414         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12415         on resulting framesize and the management of the outregs buffer for pltexit.
12416         Preserve floating point return values across _dl_call_pltexit call.
12417         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12418         framesize and the management of the outregs buffer for pltexit.
12419         Preserve floating point return values across _dl_call_pltexit
12420         call.
12421         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12422         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12423         (print_exit): Fix format string for return register value.
12424
12425 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12426
12427         * sunrpc/Makefile (others): Add rpcgen.
12428         ($(objpfx)rpcgen): Remove special build rule and dependency on
12429         libc.
12430         * sunrpc/rpcgen.c: New file.
12431
12432 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12433
12434         [BZ #13673]
12435         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12436         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12437         * sysdeps/i386/crti.S: Likewise.
12438         * sysdeps/i386/crtn.S: Likewise.
12439         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12440         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12441         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12442         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12443         * sysdeps/sh/crti.S: Likewise.
12444         * sysdeps/sh/crtn.S: Likewise.
12445         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12446
12447         [BZ #13673]
12448         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12449         with URL.
12450         * locale/programs/locfile-kw.gperf: Likewise.
12451         * locale/programs/charmap-kw.h: Regenerated.
12452         * locale/programs/locfile-kw.h: Likewise.
12453
12454         [BZ #13673]
12455         * intl/plural.y: Replace FSF snail mail address with URL.
12456         * intl/plural.c: Regenerated.
12457
12458 2012-03-09  Richard Henderson  <rth@twiddle.net>
12459
12460         * include/math_private.h: Remove file.
12461         * math/math_private.h: Move file ...
12462         * sysdeps/generic/math_private.h: ... here.
12463
12464         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12465         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12466         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12467
12468         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12469         and <math_private.h>.
12470         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12471         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12472         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12473         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12474         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12475         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12476         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12477         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12478         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12479         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12480         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12481         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12482         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12483         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12484         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12485         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12486         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12487         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12488         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12489         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12490         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12491         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12492         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12493         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12494         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12495         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12496         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12497         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12498         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12499         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12500         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12501         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12502         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12503         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12504         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12509         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12510         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12511         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12512         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12513         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12514         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12515         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12516         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12517         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12518         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12519         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12520         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12521         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12522         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12523         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12524         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12525         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12526         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12527         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12528         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12529         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12530         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12531         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12532         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12533         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12534         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12535         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12536         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12537         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12538         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12539         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12540         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12541         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12542         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12543         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12544         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12545         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12546         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12547         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12548         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12549         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12550         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12551         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12552         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12553         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12554         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12555         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12556         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12557         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12558         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12559         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12560         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12561         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12562         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12563         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12564         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12565         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12566         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12567         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12568         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12569         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12570         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12571         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12572         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12573         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12574         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12575         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12576         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12577         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12578         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12579         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12580         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12581         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12582         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12583         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12584         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12585         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12586         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12587         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12588         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12589         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12590         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12591         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12592         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12593         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12594         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12595         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12596         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12597         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12598         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12599         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12600         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12601         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12602         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12603         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12604         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12605         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12606         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12607         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12608         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12609         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12610         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12611         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12612         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12613         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12614         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12615         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12616         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12617         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12618         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12619         * sysdeps/ieee754/k_standard.c: Likewise.
12620         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12621         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12622         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12623         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12624         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12625         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12626         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12627         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12628         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12629         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12630         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12631         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12632         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12633         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12634         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12635         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12636         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12637         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12638         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12639         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12640         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12641         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12642         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12643         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12644         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12645         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12646         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12647         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12648         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12649         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12650         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12651         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12652         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12653         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12654         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12655         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12656         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12657         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12658         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12659         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12660         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12661         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12662         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12663         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12664         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12665         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12666         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12667         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12668         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12669         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12670         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12671         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12672         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12673         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12674         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12675         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12676         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12677         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12678         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12679         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12680         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12681         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12682         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12683         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12684         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12685         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12686         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12687         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12688         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12689         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12690         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12691         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12692         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12693         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12694         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12695         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12696         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12697         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12698         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12699         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12700         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12701         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12702         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12703         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12704         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12705         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12706         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12707         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12708         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12709         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12710         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12711         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12712         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12713         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12714         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12715         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12716         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12717         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12718         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12719         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12720         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12721         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12722         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12723         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12724         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12725         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12726         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12727         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12728         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12729         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12730         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12731         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12732         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12733         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12734         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12735         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12736         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12737         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12738         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12739         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12740         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12741         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12742         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12743         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12744         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12745         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12746         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12747         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12748         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12749         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12750         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12751         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12752         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12753         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12754         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12755         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12756         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12757         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12758         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12759         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12760         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12761         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12762         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12763         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12764         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12765         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12766         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12767         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12768         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12769         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12770         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12771         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12772         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12773         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12774         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12775         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12776         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12777         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12778         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12779         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12780         * sysdeps/ieee754/s_lib_version.c: Likewise.
12781         * sysdeps/ieee754/s_matherr.c: Likewise.
12782         * sysdeps/ieee754/s_signgam.c: Likewise.
12783         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12784         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12785         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12786         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12787         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12788         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12789         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12790         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12791         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12792         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12793         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12794         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12795         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12796         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12797         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12798         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12799         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12800         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12801         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12802         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12803         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12804
12805 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12806
12807         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12808         * sunrpc/rpc_main.c: Likewise.
12809         * sunrpc/rpc_svcout.c: Likewise.
12810
12811 2012-03-09  David S. Miller  <davem@davemloft.net>
12812
12813         * include/math_private.h: New file.
12814
12815 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12816
12817         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12818         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12819         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12820         from <bits/socket_type.h>.
12821         (enum __socket_type): Don't define here.
12822         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12823         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12824         bits/socket_type.h.
12825
12826         [BZ #13566]
12827         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12828         checking __USE_GNU.
12829
12830         * Makerules ($(inst_includedir)/%.h): New rule.
12831         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12832         (install-others): Remove variable setting.
12833         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12834
12835 2012-03-08  Richard Henderson  <rth@twiddle.net>
12836
12837         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12838         from macro to inline function; merge with the
12839         !__LIBC_INTERNAL_MATH_INLINES version.
12840         (__ieee754_sqrtf): Likewise.
12841
12842         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12843         to inline function.
12844         (__rintf, __floor, __floorf): Likewise.
12845
12846         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12847         macro to inline function.
12848         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12849
12850         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12851         not <math/math_private.h>.
12852
12853 2012-03-08  David S. Miller  <davem@davemloft.net>
12854
12855         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12856         copyright year.
12857         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12858
12859 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12860
12861         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12862         normalization.
12863         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12864         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12865
12866 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12867
12868         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12869         be defined individually, they must be defined as a block.  Define
12870         S for printing a string instead of hidint the different by using a
12871         macro for adding the 'l'.
12872         * stdio-common/tst-fphex-wide.c: Adjust.
12873
12874 2012-03-07  Marek Polacek  <polacek@redhat.com>
12875
12876         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12877
12878 2012-03-08  Marek Polacek  <polacek@redhat.com>
12879
12880         [BZ #13806]
12881         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12882         * stdio-common/tst-fphex.c: Define a few macros to make the
12883         test reusable.  Use them.
12884         * stdio-common/tst-fphex-wide.c: New file.
12885
12886 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12887
12888         [BZ #6911]
12889         * manual/macros.texi (gnusystems): New macro.
12890         (nongnusystems): Likewise.
12891         (gnulinuxhurdsystems): Likewise.
12892         (gnuhurdsystems): Likewise..
12893         (gnulinuxsystems): Likewise.
12894         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12895         variants of the GNU system, not "GNU system".
12896         * manual/conf.texi: Likewise.
12897         * manual/errno.texi: Likewise.  Update example of errno macro
12898         expansion.
12899         * manual/filesys.texi: Likewise.
12900         (getumask): Document as specific to GNU/Hurd.
12901         * manual/install.texi: Likewise.  Reword some references to
12902         GNU/Linux.
12903         * manual/intro.texi: Likewise.
12904         * manual/io.texi: Likewise.
12905         (File Name Portability): Detail which constraints are inapplicable
12906         to all GNU systems and which are only inapplicable to GNU/Hurd.
12907         * manual/job.texi: Likewise.
12908         * manual/llio.texi: Likewise.
12909         (O_NOCTTY): Document as present on GNU/Linux.
12910         * manual/maint.texi: Likewise.
12911         * manual/memory.texi: Likewise.
12912         * manual/pattern.texi: Likewise.
12913         * manual/pipe.texi: Likewise.
12914         * manual/process.texi: Likewise.
12915         * manual/resource.texi: Likewise.
12916         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12917         child on GNU/Hurd.
12918         * manual/setjmp.texi: Likewise.
12919         * manual/signal.texi: Likewise.
12920         * manual/startup.texi: Likewise.
12921         * manual/stdio.texi: Likewise.
12922         * manual/terminal.texi: Likewise.
12923         (ONLCR): Document as POSIX.
12924         (OXTABS): Document availability on GNU/Linux as XTABS.
12925         (ONOEOT): Document availability separately from other bits.
12926         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12927         * manual/time.texi: Likewise.
12928         * manual/users.texi: Likewise.
12929         * INSTALL: Regenerated.
12930         * sysdeps/gnu/errlist.c: Regenerated.
12931
12932         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12933         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12934         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12935         puts.
12936         * configure: Regenerated.
12937
12938 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12939
12940         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12941         default includes instead of AC_HEADER_CHECK.
12942         * sysdeps/i386/configure: Regenerated.
12943
12944         [BZ #10716]
12945         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12946         * math/s_cacoshf.c (__cacoshf): Likewise.
12947         * math/s_cacoshl.c (__cacoshl): Likewise.
12948         * math/s_casinh.c (__casinh): Set signs of result from argument.
12949         * math/s_casinhf.c (__casinhf): Likewise.
12950         * math/s_casinhl.c (__casinhl): Likewise.
12951         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12952         (casinh_test): Add more tests.
12953         * sysdeps/i386/fpu/libm-test-ulps: Update.
12954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12955
12956 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12957
12958         * po/zh_TW.po: Update from translation team.
12959
12960         * login/Makefile (distribute): Remove variable.
12961         * catgets/Makefile: Likewise.
12962         * mach/Makefile: Likewise.
12963         * malloc/Makefile: Likewise.
12964         * misc/Makefile: Likewise.
12965         * iconv/Makefile: Likewise.
12966         * nscd/Makefile: Likewise.
12967         * hurd/Makefile: Likewise.
12968         * manual/Makefile: Likewise.
12969         * locale/Makefile: Likewise.
12970         * intl/Makefile: Likewise.
12971         * conform/Makefile: Likewise.
12972         * nss/Makefile: Likewise.
12973         * time/Makefile: Likewise.
12974         * soft-fp/Makefile: Likewise.
12975         * dirent/Makefile: Likewise.
12976         * gmon/Makefile: Likewise.
12977         * po/Makefile: Likewise.
12978         * rt/Makefile: Likewise.
12979         * socket/Makefile: Likewise.
12980         * math/Makefile: Likewise.
12981         * signal/Makefile: Likewise.
12982         * debug/Makefile: Likewise.
12983         * elf/Makefile: Likewise.
12984         * timezone/Makefile: Likewise.
12985         * stdlib/Makefile: Likewise.
12986         * iconvdata/Makefile: Likewise.
12987         * sunrpc/Makefile: Likewise.
12988         * io/Makefile: Likewise.
12989         * argp/Makefile: Likewise.
12990         * inet/Makefile: Likewise.
12991         * hesiod/Makefile: Likewise.
12992         * grp/Makefile: Likewise.
12993         * csu/Makefile: Likewise.
12994         * wctype/Makefile: Likewise.
12995         * crypt/Makefile: Likewise.
12996         * libio/Makefile: Likewise.
12997         * string/Makefile: Likewise.
12998         * nis/Makefile: Likewise.
12999         * resolv/Makefile: Likewise.
13000         * stdio-common/Makefile: Likewise.
13001         * wcsmbs/Makefile: Likewise.
13002         * dlfcn/Makefile: Likewise.
13003         * posix/Makefile: Likewise.
13004
13005         [BZ #6959]
13006         * timezone/Makefile: Don't install timezone files, just the programs
13007         and scripts.
13008
13009 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13010
13011         * nss/databases.def: Add missing gshadow entry.
13012
13013         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13014
13015 2012-03-06  Marek Polacek  <polacek@redhat.com>
13016
13017         [BZ #13726]
13018         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13019         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13020         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13021         * stdio-common/tst-long-dbl-fphex.c: New file.
13022
13023 2012-03-06  David S. Miller  <davem@davemloft.net>
13024
13025         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13026         (set_obp_int): New function.
13027         (get_obp_int): New function.
13028         (__get_clockfreq_via_dev_openprom): Likewise.
13029         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13030         Avoid unused variable warnings on 'val' and use builtin_expect.
13031         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13032         __builtin_expect.
13033         (INLINE_CLONE_SYSCALL): Likewise.
13034
13035 2012-03-05  David S. Miller  <davem@davemloft.net>
13036
13037         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13038
13039 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13040
13041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13042
13043         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13044         only for |x| >= 40.
13045         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13046
13047 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13048
13049         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13050         Replace gettimeofday with __vdso_gettimeofday.
13051
13052         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13053         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13054         __vdso_clock_gettime and __vdso_getcpu.
13055
13056         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13057         time with __vdso_time.
13058
13059 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * manual/lang.texi (size_t): Note types to which size_t may be
13062         equivalent with the GNU C Library, but do not describe when
13063         differences between them are significant.
13064
13065 2012-03-05  Andreas Jaeger  <aj@suse.de>
13066
13067         * sysdeps/i386/fpu/libm-test-ulps: Update.
13068
13069 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13070
13071         [BZ #3976]
13072         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13073         (__ieee754_pow): Save and restore rounding mode and use
13074         round-to-nearest for main computations.
13075         * math/libm-test.inc (pow_test_tonearest): New function.
13076         (pow_test_towardzero): Likewise.
13077         (pow_test_downward): Likewise.
13078         (pow_test_upward): Likewise.
13079         (main): Call the new functions.
13080         * sysdeps/i386/fpu/libm-test-ulps: Update.
13081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13082
13083         [BZ #3976]
13084         * math/libm-test.inc (cosh_test_tonearest): New function.
13085         (cosh_test_towardzero): Likewise.
13086         (cosh_test_downward): Likewise.
13087         (cosh_test_upward): Likewise.
13088         (sinh_test_tonearest): Likewise.
13089         (sinh_test_towardzero): Likewise.
13090         (sinh_test_downward): Likewise.
13091         (sinh_test_upward): Likewise.
13092         (main): Call the new functions.
13093         * sysdeps/i386/fpu/libm-test-ulps: Update.
13094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13095
13096 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13097
13098         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13099         default stack guard is set in last bytes.
13100         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13101
13102 2012-03-05  Kees Cook  <keescook@chromium.org>
13103
13104         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13105
13106         [BZ #13656]
13107         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13108         possibly allocate from heap instead of stack.
13109         * stdio-common/bug-vfprintf-nargs.c: New file.
13110         * stdio-common/Makefile (tests): Add nargs overflow test.
13111
13112 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13113
13114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13115
13116 2012-03-03  Marek Polacek  <polacek@redhat.com>
13117
13118         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13119         * math/math_private.h: Likewise.
13120         * stdlib/tst-strtod.c: Likewise.
13121         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13122         * sysdeps/x86_64/bits/atomic.h: Likewise.
13123
13124 2012-03-02  David S. Miller  <davem@davemloft.net>
13125
13126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13130         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13131         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13132         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13133         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13134
13135 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13136
13137         [BZ #13792]
13138         * manual/examples/README: New file, says the example source files
13139         can be used under GPL>=2.
13140         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13141         line containing just "*/".
13142         * manual/examples/add.c: Add copyright header (GPL>=2).
13143         * manual/examples/argp-ex1.c: Likewise.
13144         * manual/examples/argp-ex2.c: Likewise.
13145         * manual/examples/argp-ex3.c: Likewise.
13146         * manual/examples/argp-ex4.c: Likewise.
13147         * manual/examples/atexit.c: Likewise.
13148         * manual/examples/db.c: Likewise.
13149         * manual/examples/dir.c: Likewise.
13150         * manual/examples/dir2.c: Likewise.
13151         * manual/examples/execinfo.c: Likewise.
13152         * manual/examples/filecli.c: Likewise.
13153         * manual/examples/filesrv.c: Likewise.
13154         * manual/examples/fmtmsgexpl.c: Likewise.
13155         * manual/examples/genpass.c: Likewise.
13156         * manual/examples/inetcli.c: Likewise.
13157         * manual/examples/inetsrv.c: Likewise.
13158         * manual/examples/isockad.c: Likewise.
13159         * manual/examples/longopt.c: Likewise.
13160         * manual/examples/memopen.c: Likewise.
13161         * manual/examples/memstrm.c: Likewise.
13162         * manual/examples/mkfsock.c: Likewise.
13163         * manual/examples/mkisock.c: Likewise.
13164         * manual/examples/mygetpass.c: Likewise.
13165         * manual/examples/pipe.c: Likewise.
13166         * manual/examples/popen.c: Likewise.
13167         * manual/examples/rprintf.c: Likewise.
13168         * manual/examples/search.c: Likewise.
13169         * manual/examples/select.c: Likewise.
13170         * manual/examples/setjmp.c: Likewise.
13171         * manual/examples/sigh1.c: Likewise.
13172         * manual/examples/sigusr.c: Likewise.
13173         * manual/examples/stpcpy.c: Likewise.
13174         * manual/examples/strdupa.c: Likewise.
13175         * manual/examples/strftim.c: Likewise.
13176         * manual/examples/strncat.c: Likewise.
13177         * manual/examples/subopt.c: Likewise.
13178         * manual/examples/swapcontext.c: Likewise.
13179         * manual/examples/termios.c: Likewise.
13180         * manual/examples/testopt.c: Likewise.
13181         * manual/examples/testpass.c: Likewise.
13182         * manual/examples/timeval_subtract.c: Likewise.
13183
13184         [BZ #13792]
13185         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13186         function to ...
13187         * manual/timeval_subtract.c.texi: ... here, new file.
13188
13189 2012-03-02  David S. Miller  <davem@davemloft.net>
13190
13191         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13192
13193 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13194
13195         [BZ #3976]
13196         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13197         (__sin): Save and restore rounding mode and use round-to-nearest
13198         for all computations.
13199         (__cos): Save and restore rounding mode and use round-to-nearest
13200         for all computations.
13201         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13202         <fenv.h>.
13203         (tan): Save and restore rounding mode and use round-to-nearest for
13204         all computations.
13205         * math/libm-test.inc (cos_test_tonearest): New function.
13206         (cos_test_towardzero): Likewise.
13207         (cos_test_downward): Likewise.
13208         (cos_test_upward): Likewise.
13209         (sin_test_tonearest): Likewise.
13210         (sin_test_towardzero): Likewise.
13211         (sin_test_downward): Likewise.
13212         (sin_test_upward): Likewise.
13213         (tan_test_tonearest): Likewise.
13214         (tan_test_towardzero): Likewise.
13215         (tan_test_downward): Likewise.
13216         (tan_test_upward): Likewise.
13217         (main): Call the new functions.
13218         * sysdeps/i386/fpu/libm-test-ulps: Update.
13219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13220
13221         [BZ #10135]
13222         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13223         small n, then large n, before computing and testing k+n.
13224         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13225         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13226         Likewise.
13227         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13228         Likewise.
13229         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13230         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13231         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13232         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13233         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13234         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13235         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13236         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13237         * math/libm-test.inc (scalbn_test): Add more tests.
13238         (scalbln_test): Likewise.
13239
13240         * manual/filesys.texi (mode_t): Describe constraints on size and
13241         signedness, not exact equivalence to a particular type.
13242         (ino_t): Likewise.
13243         (ino64_t): Likewise.
13244         (dev_t): Likewise.
13245         (nlink_t): Likewise.
13246         (blkcnt_t): Likewise.
13247         (blkcnt64_t): Likewise.
13248         * manual/llio.texi (off_t): Likewise.
13249
13250         [BZ #3976]
13251         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13252         (__ieee754_exp): Save and restore rounding mode and use
13253         round-to-nearest for all computations.
13254         * math/libm-test.inc (exp_test_tonearest): New function.
13255         (exp_test_towardzero): Likewise.
13256         (exp_test_downward): Likewise.
13257         (exp_test_upward): Likewise.
13258         (main): Call the new functions.
13259         * sysdeps/i386/fpu/libm-test-ulps: Update.
13260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13261
13262 2012-03-01  Chris Demetriou  <cgd@google.com>
13263
13264         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13265         have predictable order.
13266
13267 2012-03-01  David S. Miller  <davem@davemloft.net>
13268
13269         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13270
13271         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13272         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13273         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13274         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13275
13276         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13277         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13278         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13280         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13281         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13282         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13283         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13284         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13285
13286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13287
13288         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13289         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13290         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13291
13292         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13293         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13294         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13295         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13296         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13297         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13298         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13299         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13300         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13301         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13302         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13303         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13304         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13305         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13306         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13307         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13308         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13309         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13310         * sysdeps/sparc/elf/configure: Regenerated.
13311
13312 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13313
13314         * configure.in (AS, LD): Require binutils 2.20 or later.
13315         * configure: Regenerated.
13316         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13317         as required minimum version.
13318         * INSTALL: Regenerated.
13319
13320         [BZ #2541]
13321         [BZ #4108]
13322         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13323         before squaring exponent.
13324         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13325         bottom long double and 27 bits of top long double before squaring
13326         exponent.
13327         * math/libm-test.inc (erfc_test): Add more tests.
13328         * sysdeps/i386/fpu/libm-test-ulps: Update.
13329         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13331
13332 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13333
13334         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13335         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13336         containing bit-fields.
13337         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13338         * soft-fp/single.h (_FP_UNION_S): Likewise.
13339         * soft-fp/double.h (_FP_UNION_D): Likewise.
13340
13341 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13342
13343         [BZ #13786]
13344         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13345         not include ../strcmp.S.
13346         [USE_AS_STRNCASECMP_L]: Likewise.
13347         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13348         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13349         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13350         (__strncasecmp_l_ia32): Define as alias to
13351         __strncasecmp_l_nonascii.
13352
13353         [BZ #5794]
13354         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13355         * sysdeps/i386/fpu/libm-test-ulps: Update.
13356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13357
13358         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13360
13361 2012-02-29  Jeff Law  <law@redhat.com>
13362
13363         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13364         out of bounds read.
13365
13366 2012-02-29  Marek Polacek  <polacek@redhat.com>
13367
13368         [BZ #13706]
13369         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13370         * elf/Makefile: Add rules to run tst-unused-dep.out.
13371
13372 2012-02-28  David S. Miller  <davem@davemloft.net>
13373
13374         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13375         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13376         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13377         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13378         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13379         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13380
13381 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13382
13383         * math/libm-test.inc (llround_test): Move one test from
13384         lround_test.  Use TEST_f_L in moved test.
13385         (lround_test): Move misplaced test to llround_test.  Add testcase
13386         from bug 2561.
13387
13388 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13389
13390         * sysdeps/x86_64/fpu/e_expf.S: New file.
13391         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13392
13393 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13394
13395         [BZ #13637]
13396         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13397         of remain_len that may cause incomplete multi-byte character and
13398         false match.
13399         * posix/bug-regex33.c: New file.
13400         * posix/Makefile (tests): Add bug-regex33.
13401
13402 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13403
13404         * manual/macros.texi: New file.
13405         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13406         * manual/libc.texinfo: Include macros.texi.
13407         * manual/creatute.texi: Likewise.
13408         * manual/install.texi: Likewise.
13409         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13410         @glibcadj{} in references to the GNU C Library.
13411         * manual/charset.texi: Likewise.
13412         * manual/conf.texi: Likewise.
13413         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13414         when not using those macros.
13415         * manual/creature.texi: Likewise.
13416         * manual/crypt.texi: Likewise.
13417         * manual/errno.texi: Likewise.
13418         * manual/filesys.texi: Likewise.
13419         * manual/header.texi: Likewise.
13420         * manual/install.texi: Likewise.
13421         * manual/intro.texi: Likewise.
13422         * manual/io.texi: Likewise.
13423         * manual/job.texi: Likewise.
13424         * manual/lang.texi: Likewise.
13425         * manual/libc.texiinfo: Likewise.
13426         * manual/llio.texi: Likewise.
13427         * manual/locale.texi: Likewise.
13428         * manual/maint.texi: Likewise.
13429         * manual/math.texi: Likewise.
13430         * manual/memory.texi: Likewise.
13431         * manual/message.texi: Likewise.
13432         * manual/nss.texi: Likewise.
13433         * manual/pattern.texi: Likewise.
13434         * manual/process.texi: Likewise.
13435         * manual/resource.texi: Likewise.
13436         * manual/search.texi: Likewise.
13437         * manual/setjmp.texi: Likewise.
13438         * manual/signal.texi: Likewise.
13439         * manual/socket.texi: Likewise.
13440         * manual/startup.texi: Likewise.
13441         * manual/stdio.texi: Likewise.
13442         * manual/string.texi: Likewise.
13443         * manual/sysinfo.texi: Likewise.
13444         * manual/syslog.texi: Likewise.
13445         * manual/terminal.texi: Likewise.
13446         * manual/time.texi: Likewise.
13447         * manual/users.texi: Likewise.
13448         * INSTALL: Regenerated.
13449         * NOTES: Regenerated.
13450         * sysdeps/gnu/errlist.c: Regenerated.
13451
13452 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13453
13454         * include/dirent.h: Include <dirstream.h> before
13455         <dirent/dirent.h>.
13456
13457 2012-02-28  David S. Miller  <davem@davemloft.net>
13458
13459         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13460         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13461         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13462         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13463
13464 2012-02-27  David S. Miller  <davem@davemloft.net>
13465
13466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13468         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13469         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13470
13471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13472         frame pointer instead of stack pointer relative arg slot.
13473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13474         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13475         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13476
13477 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13478
13479         [BZ #3992]
13480         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13481
13482 2012-02-27  David S. Miller  <davem@davemloft.net>
13483
13484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13488         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13489         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13490         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13491         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13492
13493 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13494
13495         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13496         later.  Allow versions 5-9.
13497         * configure: Regenerated.
13498         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13499         required minimum version and 4.6 as recommended version.  Do not
13500         mention bugs in GCC 2.7 and 2.8.
13501         * INSTALL: Regenerated.
13502
13503 2012-02-27  David S. Miller  <davem@davemloft.net>
13504
13505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13506         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13509         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13510         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13511         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13512         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13513
13514         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13515         manipulate bits before adding and subtracting TWO112[sx].
13516         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13517
13518 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13519
13520         [BZ #13775]
13521         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13522         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13523         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13524         being in POSIX, because they are in 1003.1-2008.
13525
13526         * rt/tst-aio.c: Include <fcntl.h>.
13527         * rt/tst-aio7.c: Likewise.
13528         * rt/tst-aio64.c: Likewise.
13529
13530         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13531
13532 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13533
13534         * manual/install.texi (--with-headers): Describe headers as
13535         interface headers, not private headers.
13536         (Specific advice for GNU/Linux systems): Describe use of headers
13537         from "make headers_install", not private headers from older
13538         kernels.
13539         * INSTALL: Regenerated.
13540         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13541         Change to 2.6.19.
13542         * sysdeps/unix/sysv/linux/configure: Regenerated.
13543
13544         * manual/llio.texi (fclean): Remove documentation.
13545
13546         * manual/Makefile (libc-texi-generated): New variable.  Include
13547         version.texi.
13548         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13549         $(libc-texi-generated), not duplicated list of files.
13550         (version.texi, stamp-version): New rules.
13551         (realclean): Remove $(libc-texi-generated), not individual files
13552         from that list.  Do not remove dir-add.texinfo.
13553         * manual/libc.texinfo: Comment out uses of edition numbers and
13554         references to printed manual.  Remove last-updated dates.
13555         (EDITION): Comment out.
13556         (ISBN): Likewise.
13557         (VERSION, UPDATED): Remove.
13558         (version.texi): Include.
13559
13560 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13561
13562         * sysdeps/posix/spawni.c: Include <signal.h>.
13563         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13564         * sysdeps/pthread/aio_fsync.c: Likewise.
13565
13566 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13567
13568         * conform/Makefile (tests): Run only when not cross-compiling and
13569         when fast-check is not defined.
13570
13571         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13572         * conform/data/limits.h-data: Fixes for POSIX2008.
13573         * conform/run-conformtest.sh: Run all tests.
13574         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13575         headers.
13576         * include/bits/dlfcn.h: Likewise.
13577         * include/langinfo.h: Likewise.
13578         * include/monetary.h: Likewise.
13579         * include/sys/poll.h: Likewise.
13580
13581         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13582         for __USE_GNU.
13583         * posix/spawn.h: Define __need_sigset_t.
13584         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13585         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13586         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13587         to get sigevent_t only.
13588         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13589         only for __USE_GNU.
13590         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13591         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13592         process_vm_writev only for __USE_GNU.
13593         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13594
13595         * conform/Makefile: For now ignore errors from run-conformtest.
13596         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13597         POSIX to avoid namespace pollution.  Don't prepend headers.
13598         * conform/data/aio.h-data: Fixes for POSIX testing.
13599         * conform/data/fcntl.h-data: Likewise.
13600         * conform/data/glob.h-data: Likewise.
13601         * conform/data/grp.h-data: Likewise.
13602         * conform/data/pthread.h-data: Likewise.
13603         * conform/data/pwd.h-data: Likewise.
13604         * conform/data/signal.h-data: Likewise.
13605         * conform/data/spawn.h-data: Likewise.
13606         * conform/data/stdio.h-data: Likewise.
13607         * conform/data/stdlib.h-data: Likewise.
13608         * conform/data/stropts.h-data: Likewise.
13609         * conform/data/sys/mman.h-data: Likewise.
13610         * conform/data/sys/stat.h-data: Likewise.
13611         * conform/data/sys/types.h-data: Likewise.
13612         * conform/data/sys/wait.h-data: Likewise.
13613         * conform/data/time.h-data: Likewise.
13614         * conform/data/unistd.h-data: Likewise.
13615         * conform/data/utime.h-data: Likewise.
13616
13617         * io/sys/stat.h: fchmod was always in POSIX.
13618         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13619         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13620         * rt/aio.h: Define __need_timespec before including <time.h>.
13621         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13622         struct.  Add forward declaration of pthread_attr_t and use it in
13623         sigevent.
13624         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13625         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13626         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13627         always remove CLK_TCK definition.
13628
13629 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13630
13631         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13632
13633 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13634
13635         * conform/run-conformtest.sh: New file.
13636         * conform/Makefile: Run run-conformtest for tests.
13637         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13638         support.
13639
13640         * conform/data/uchar.h-data: New file.
13641         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13642         * conform/data/arpa/inet.h-data: Likewise.
13643         * conform/data/assert.h-data: Likewise.
13644         * conform/data/complex.h-data: Likewise.
13645         * conform/data/cpio.h-data: Likewise.
13646         * conform/data/ctype.h-data: Likewise.
13647         * conform/data/dirent.h-data: Likewise.
13648         * conform/data/dlfcn.h-data: Likewise.
13649         * conform/data/errno.h-data: Likewise.
13650         * conform/data/fcntl.h-data: Likewise.
13651         * conform/data/float.h-data: Likewise.
13652         * conform/data/fmtmsg.h-data: Likewise.
13653         * conform/data/fnmatch.h-data: Likewise.
13654         * conform/data/ftw.h-data: Likewise.
13655         * conform/data/glob.h-data: Likewise.
13656         * conform/data/grp.h-data: Likewise.
13657         * conform/data/iconv.h-data: Likewise.
13658         * conform/data/inttypes.h-data: Likewise.
13659         * conform/data/langinfo.h-data: Likewise.
13660         * conform/data/libgen.h-data: Likewise.
13661         * conform/data/limits.h-data: Likewise.
13662         * conform/data/locale.h-data: Likewise.
13663         * conform/data/math.h-data: Likewise.
13664         * conform/data/monetary.h-data: Likewise.
13665         * conform/data/mqueue.h-data: Likewise.
13666         * conform/data/ndbm.h-data: Likewise.
13667         * conform/data/net/if.h-data: Likewise.
13668         * conform/data/netdb.h-data: Likewise.
13669         * conform/data/netinet/in.h-data: Likewise.
13670         * conform/data/nl_types.h-data: Likewise.
13671         * conform/data/poll.h-data: Likewise.
13672         * conform/data/pthread.h-data: Likewise.
13673         * conform/data/pwd.h-data: Likewise.
13674         * conform/data/regex.h-data: Likewise.
13675         * conform/data/sched.h-data: Likewise.
13676         * conform/data/search.h-data: Likewise.
13677         * conform/data/semaphore.h-data: Likewise.
13678         * conform/data/setjmp.h-data: Likewise.
13679         * conform/data/signal.h-data: Likewise.
13680         * conform/data/spawn.h-data: Likewise.
13681         * conform/data/stdarg.h-data: Likewise.
13682         * conform/data/stdio.h-data: Likewise.
13683         * conform/data/stdlib.h-data: Likewise.
13684         * conform/data/string.h-data: Likewise.
13685         * conform/data/strings.h-data: Likewise.
13686         * conform/data/stropts.h-data: Likewise.
13687         * conform/data/sys/ipc.h-data: Likewise.
13688         * conform/data/sys/mman.h-data: Likewise.
13689         * conform/data/sys/msg.h-data: Likewise.
13690         * conform/data/sys/resource.h-data: Likewise.
13691         * conform/data/sys/select.h-data: Likewise.
13692         * conform/data/sys/sem.h-data: Likewise.
13693         * conform/data/sys/shm.h-data: Likewise.
13694         * conform/data/sys/socket.h-data: Likewise.
13695         * conform/data/sys/stat.h-data: Likewise.
13696         * conform/data/sys/statvfs.h-data: Likewise.
13697         * conform/data/sys/time.h-data: Likewise.
13698         * conform/data/sys/timeb.h-data: Likewise.
13699         * conform/data/sys/times.h-data: Likewise.
13700         * conform/data/sys/types.h-data: Likewise.
13701         * conform/data/sys/uio.h-data: Likewise.
13702         * conform/data/sys/un.h-data: Likewise.
13703         * conform/data/sys/utsname.h-data: Likewise.
13704         * conform/data/sys/wait.h-data: Likewise.
13705         * conform/data/syslog.h-data: Likewise.
13706         * conform/data/tar.h-data: Likewise.
13707         * conform/data/termios.h-data: Likewise.
13708         * conform/data/utime.h-data: Likewise.
13709         * conform/data/utmpx.h-data: Likewise.
13710         * conform/data/varargs.h-data: Likewise.
13711         * conform/data/wchar.h-data: Likewise.
13712         * conform/data/wctype.h-data: Likewise.
13713         * conform/data/wordexp.h-data: Likewise.
13714
13715         * include/stropts.h: New file.
13716         * include/uchar.h: New file.
13717         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13718         * include/assert.h: Likewise.
13719         * include/ctype.h: Likewise.
13720         * include/dirent.h: Likewise.
13721         * include/dlfcn.h: Likewise.
13722         * include/fcntl.h: Likewise.
13723         * include/fnmatch.h: Likewise.
13724         * include/glob.h: Likewise.
13725         * include/grp.h: Likewise.
13726         * include/libio.h: Likewise.
13727         * include/locale.h: Likewise.
13728         * include/math.h: Likewise.
13729         * include/net/if.h: Likewise.
13730         * include/netdb.h: Likewise.
13731         * include/netinet/in.h: Likewise.
13732         * include/pthread.h: Likewise.
13733         * include/pwd.h: Likewise.
13734         * include/regex.h: Likewise.
13735         * include/sched.h: Likewise.
13736         * include/search.h: Likewise.
13737         * include/setjmp.h: Likewise.
13738         * include/signal.h: Likewise.
13739         * include/stdio.h: Likewise.
13740         * include/stdlib.h: Likewise.
13741         * include/string.h: Likewise.
13742         * include/sys/cdefs.h: Likewise.
13743         * include/sys/mman.h: Likewise.
13744         * include/sys/msg.h: Likewise.
13745         * include/sys/resource.h: Likewise.
13746         * include/sys/select.h: Likewise.
13747         * include/sys/socket.h: Likewise.
13748         * include/sys/stat.h: Likewise.
13749         * include/sys/statvfs.h: Likewise.
13750         * include/sys/time.h: Likewise.
13751         * include/sys/times.h: Likewise.
13752         * include/sys/uio.h: Likewise.
13753         * include/sys/utsname.h: Likewise.
13754         * include/sys/wait.h: Likewise.
13755         * include/termios.h: Likewise.
13756         * include/time.h: Likewise.
13757         * include/ulimit.h: Likewise.
13758         * include/unistd.h: Likewise.
13759         * include/utime.h: Likewise.
13760         * include/wchar.h: Likewise.
13761         * include/wctype.h: Likewise.
13762         * include/wordexp.h: Likewise.
13763
13764         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13765
13766         * time/time.h: TIME_UTC must be a macro.
13767         Make timespec_get available for ISO C11 only as well.
13768
13769 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13770
13771         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13772         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13773
13774 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13775
13776         * configure.in: Use -o not -a in test for unsupported multi-arch.
13777
13778 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * manual/texinfo.tex: Update to version 2012-01-19.16.
13781
13782 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13783
13784         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13785
13786 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13787
13788         [BZ #13738]
13789         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13790         * manual/fdl-1.3.texi: New file.
13791         * manual/fdl-1.1.texi: File removed.
13792
13793         [BZ #13738]
13794         * manual/libc.texinfo (FDL_VERSION): New @set.
13795         Use it for mention of FDL in cover text.
13796         (Documentation License): Use it in @include file name.
13797
13798 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13799             Roland McGrath  <roland@hack.frob.com>
13800
13801         [BZ #5461]
13802         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13803         not LONG_LONG_MAX and LONG_LONG_MIN.
13804         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13805         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13806         name.
13807         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13808
13809 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13810
13811         [BZ #2547]
13812         [BZ #11365]
13813         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13814         manipulate bits before adding and subtracting TWO23[sx].
13815         * math/libm-test.inc (nearbyint_test): Add more tests.
13816
13817 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13818
13819         [BZ #2548]
13820         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13821         bits before adding and subtracting TWO23[sx].
13822         * math/libm-test.inc (rint_test): Add more tests.
13823         (rint_test_tonearest): Likewise.
13824         (rint_test_towardzero): Likewise.
13825         (rint_test_downward): Likewise.
13826         (rint_test_upward: Likewise.
13827
13828 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13829
13830         [BZ #10110]
13831         * include/stdc-predef.h: New file.  Extracted from features.h.
13832         * include/features.h: Include stdc-predef.h.
13833         * Makefile (headers): Add stdc-predef.h.
13834         * CONFORMANCE (Compiler limitations): Update.
13835
13836 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13837
13838         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13839
13840 2012-02-21  David S. Miller  <davem@davemloft.net>
13841
13842         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13843         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13844
13845 2012-02-20  David S. Miller  <davem@davemloft.net>
13846
13847         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13848         using a normal save/restore sequence, rather than allocating a
13849         dummy stack frame just to store a frame pointer and restore.
13850         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13851
13852 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13853
13854         * manual/install.texi: Fix stray word in line-wrapped comment.
13855
13856 2012-02-20  David S. Miller  <davem@davemloft.net>
13857
13858         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13859         both binutils and gcc support GOTDATA.
13860
13861         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13862         "rd %pc" in the PIC register setup sequences.
13863
13864         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13865         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13866         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13867         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13868         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13869         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13870         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13871         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13872         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13873         (SYSCALL_ERROR_HANDLER): Likewise.
13874         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13875         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13876         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13877         (SYSCALL_ERROR_HANDLER): Likewise.
13878
13879         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13880         (HAVE_GCC_GOTDATA): New.
13881         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13882         relocation support in both binutils and gcc.
13883         * sysdeps/sparc/elf/configure: Regenerate.
13884
13885         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13886         * sysdeps/sparc/sparc32/elf/configure: Delete.
13887         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13888         * sysdeps/sparc/sparc64/elf/configure: Delete.
13889         * sysdeps/sparc/elf/configure.in: New file.
13890         * sysdeps/sparc/elf/configure: Generate.
13891
13892         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13893         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13894         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13895         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13896         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13897
13898 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13899
13900         * manual/install.texi: Do not mention specific glibc version
13901         numbers.
13902         * manual/libc.texinfo (VERSION, UPDATED): Update.
13903         (@copying): Use @copyright{} and range of years.
13904
13905 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13906
13907         [BZ #13695]
13908         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13909         [crti.S not in sysdirs] (generated): Do not append.
13910         [crti.S not in sysdirs] (omit-deps): Likewise.
13911         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13912         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13913         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13914         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13915         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13916         Likewise.
13917         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13918         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13919         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13920         * csu/defs.awk: Remove file.
13921         * sysdeps/generic/initfini.c: Likewise.
13922         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13923         variable.
13924         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13925         Likewise.
13926
13927 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13928
13929         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13930         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13931         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13932         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13933         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13934         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13935         <bits/epoll.h>.
13936         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13937         (__EPOLL_PACKED): Define to empty if not defined by
13938         <bits/epoll.h>.
13939         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13940         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13941         bits/epoll.h.
13942
13943 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13946         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13947         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13948         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13949         <bits/timerfd.h>.
13950         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13951         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13952         bits/timerfd.h.
13953
13954 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13955
13956         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13957         in C locale.
13958         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13959         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13960         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13962
13963 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13964
13965         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13966         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13967
13968 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13969
13970         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13971         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13972         defined.
13973         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13974         Likewise.
13975         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13976         entry for 2.16.
13977
13978 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13979
13980         * math/w_acos.c: Use non-signaling floating-point comparisons.
13981         * math/w_acosf.c: Likewise.
13982         * math/w_acosh.c: Likewise.
13983         * math/w_acoshf.c: Likewise.
13984         * math/w_acoshl.c: Likewise.
13985         * math/w_acosl.c: Likewise.
13986         * math/w_asin.c: Likewise.
13987         * math/w_asinf.c: Likewise.
13988         * math/w_asinl.c: Likewise.
13989         * math/w_atanh.c: Likewise.
13990         * math/w_atanhf.c: Likewise.
13991         * math/w_atanhl.c: Likewise.
13992         * math/w_exp2.c: Likewise.
13993         * math/w_exp2f.c: Likewise.
13994         * math/w_exp2l.c: Likewise.
13995         * math/w_j0.c: Likewise.
13996         * math/w_j0f.c: Likewise.
13997         * math/w_j0l.c: Likewise.
13998         * math/w_j1.c: Likewise.
13999         * math/w_j1f.c: Likewise.
14000         * math/w_j1l.c: Likewise.
14001         * math/w_jn.c: Likewise.
14002         * math/w_jnf.c: Likewise.
14003         * math/w_log.c: Likewise.
14004         * math/w_log10.c: Likewise.
14005         * math/w_log10f.c: Likewise.
14006         * math/w_log10l.c: Likewise.
14007         * math/w_log2.c: Likewise.
14008         * math/w_log2f.c: Likewise.
14009         * math/w_log2l.c: Likewise.
14010         * math/w_logf.c: Likewise.
14011         * math/w_logl.c: Likewise.
14012         * math/w_sqrt.c: Likewise.
14013         * math/w_sqrtf.c: Likewise.
14014         * math/w_sqrtl.c: Likewise.
14015         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14016         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14017         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14018         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14019         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14020
14021 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14022
14023         [BZ #9739]
14024         * manual/string.texi (strnlen): Use correct parameter name in
14025         equivalent expression.
14026
14027 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14028
14029         [BZ #11174]
14030         * manual/users.texi (seteuid): Consistently use neweuid for
14031         argument name.
14032
14033 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14034
14035         [BZ #13704]
14036         * manual/nss.texi (Services in the NSS configuration): Correct
14037         list of services in example configuration file.
14038
14039 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14040
14041         [BZ #11322]
14042         * manual/arith.texi: Remove statements about negative zero
14043         behaving identically to zero.
14044
14045 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14046
14047         [BZ #5993]
14048         * manual/install.texi: Do not document upgrading from libc5.
14049
14050 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14051
14052         [BZ #4596]
14053         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14054
14055 2012-02-18  David S. Miller  <davem@davemloft.net>
14056
14057         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14058         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14059         %o7 across the call.
14060         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14061         instead.
14062         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14063         SETUP_PIC_REG_LEAF.
14064         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14065         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14066         * sysdeps/sparc/crtn.S: Likewise.
14067
14068 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14069
14070         * aout/Makefile: Remove.
14071
14072 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14073
14074         [BZ #13058]
14075         * manual/examples/argp-ex1.c (main): Format definition in GNU
14076         style.
14077         * manual/examples/argp-ex2.c (main): Likewise.
14078         * manual/examples/argp-ex3.c (main): Likewise.
14079         * manual/examples/argp-ex4.c (main): Likewise.
14080         * manual/examples/longopt.c (main): Use new-style prototype
14081         definition.
14082         * manual/examples/strncat.c (main): Specify return type and use
14083         (void) for arguments.
14084         * manual/examples/subopt.c (main): Use char **argv argument.
14085
14086 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14087
14088         [BZ #5077]
14089         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14090         rounding modes.
14091
14092 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14093
14094         [BZ #6907]
14095         * manual/string.texi (strchr): Change when strchrnul is
14096         recommended.
14097
14098 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14099
14100         [BZ #174]
14101         * manual/locale.texi (setlocale): Document LOCPATH.
14102
14103 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14104
14105         [BZ #10210]
14106         * manual/process.texi (execle): Move @dots{} before last argument.
14107
14108 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14109
14110         [BZ #12047]
14111         * manual/charset.texi (Generic Charset Conversion): Fix typo
14112         (LC_TYPE -> LC_CTYPE).
14113
14114 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14115
14116         [BZ #5805]
14117         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14118         (scalbnf): Likewise.
14119         (scalbnl): Likewise.
14120         (scalbln): Likewise.
14121         (scalblnf): Likewise.
14122         (scalblnl): Likewise.
14123         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14124         (vwarnx): Likewise.
14125         (verr): Likewise.
14126         (verrx): Likewise.
14127         * manual/filesys.texi (telldir): Use braces around return type.
14128         * manual/llio.texi (mmap): Add space after comma.
14129         (mmap64): Likewise.
14130         * manual/math.texi (jn): Use @var{} on parameter names.
14131         (jnf): Likewise.
14132         (jnl): Likewise.
14133         (yn): Likewise.
14134         (ynf): Likewise.
14135         (ynl): Likewise.
14136         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14137         line.
14138         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14139         "...".
14140         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14141         (sched_get_priority_max): Likewise.
14142         * manual/signal.texi (sigvec): Add space after comma.
14143         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14144         names.
14145         (if_indextoname): Likewise.
14146         (if_freenameindex): Likewise.
14147         (sendto): Use ',' instead of '.' in prototype.
14148         * manual/startup.texi (syscall): Use @dots{} instead of literal
14149         "...".
14150         * manual/stdio.texi (__fpending): Separate initial words of
14151         paragraph from @deftypefun line.
14152         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14153         "...".
14154         (vsyslog): Use @var{} on parameter names.
14155         * manual/terminal.texi (stty): Use @var{} on parameter names.
14156         * manual/users.texi (getutmp): Use @var{} on parameter names.
14157         (getutmpx): Likewise.
14158
14159 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14160
14161         [BZ #6884]
14162         * manual/stdio.texi (fopen): Fix typos in description of
14163         ",ccs=STRING".
14164
14165 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14166
14167         [BZ #4026]
14168         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14169         get clock_id definition.
14170
14171 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14172
14173         [BZ #4822]
14174         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14175         (madvise): Cast every argument to void on its own.
14176
14177 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14178
14179         [BZ #9902]
14180         * manual/startup.texi (Exit Status): Fix typo.
14181
14182 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14183
14184         [BZ #10140]
14185         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14186         * manual/examples/argp-ex2.c: Likewise.
14187         * manual/examples/argp-ex3.c: Likewise.
14188
14189 2012-02-16  Richard Henderson  <rth@redhat.com>
14190
14191         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14192         * sysdeps/s390/s390-32/initfini.c: Remove.
14193         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14194         * sysdeps/s390/s390-64/initfini.c: Remove.
14195
14196 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14197
14198         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14199         compiler output for sysdeps/generic/initfini.c.
14200         * sysdeps/sh/elf/initfini.c: Remove file.
14201
14202 2012-02-16  David S. Miller  <davem@davemloft.net>
14203
14204         [BZ #11494]
14205         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14206
14207         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14208         * sysdeps/sparc/crti.S: New file.
14209         * sysdeps/sparc/crtn.S: New file.
14210         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14211         * sysdeps/sparc/sparc64/Makefile: Likewise.
14212
14213 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14214
14215         [BZ #3335]
14216         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14217
14218 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14219
14220         [BZ #4822]
14221         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14222
14223         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14224         (write, read, close): Likewise.
14225         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14226
14227 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14228
14229         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14230         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14231         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14232         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14233         <bits/signalfd.h>.
14234         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14235         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14236         bits/signalfd.h.
14237
14238 2012-02-14  Marek Polacek  <polacek@redhat.com>
14239
14240         * sysdeps/x86_64/crti.S: New file.
14241         * sysdeps/x86_64/crtn.S: New file.
14242         * sysdeps/x86_64/elf/initfini.c: Remove file.
14243
14244 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14245
14246         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14247         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14248         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14249         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14250         <bits/inotify.h>.
14251         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14252         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14253         bits/inotify.h.
14254
14255 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14258         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14259         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14260         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14261         <bits/eventfd.h>.
14262         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14263         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14264         bits/eventfd.h.
14265
14266 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14267
14268         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14269         __feraiseexcept instead of feraiseexcept.
14270
14271         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14272         nanosleep invocations.
14273         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14274         strings, and add error checking for a nanosleep invocations.
14275
14276 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14277
14278         Replace FSF snail mail address with URLs, as per GNU coding standards.
14279         Most of the snail mail addresses were wrong anyway, and omitting
14280         them makes the source code easier to maintain.  Almost all of the
14281         changes are to license notices and to locale LC_IDENTIFICATION
14282         addresses, except for this one:
14283         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14284         not its snail mail address.
14285
14286 2012-02-09  Richard Henderson  <rth@twiddle.net>
14287
14288         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14289         of kernel-features.h.
14290
14291         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14292
14293 2012-02-08  Marek Polacek  <polacek@redhat.com>
14294
14295         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14296         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14297         * sysdeps/gnu/_G_config.h: Likewise.
14298         * sysdeps/generic/_G_config.h: Likewise.
14299
14300 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14301
14302         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14303         tests.
14304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14305
14306         * sysdeps/powerpc/powerpc32/crti.S: New file.
14307         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14308         * sysdeps/powerpc/powerpc64/crti.S: New file.
14309         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14310
14311         * Makeconfig (have-initfini): Don't set.
14312         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14313         * configure.in (nopic_initfini): Don't substitute.
14314         * config.h.in (HAVE_INITFINI): Don't #undef.
14315         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14316         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14317
14318 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14319
14320         Support crti.S and crtn.S provided directly by architectures.
14321         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14322         [crti.S in sysdirs] (omit-deps): Likewise.
14323         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14324         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14325         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14326         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14327         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14328         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14329         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14330         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14331         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14332         compiler output for sysdeps/generic/initfini.c.
14333         * sysdeps/i386/elf/Makefile: Remove file.
14334         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14335
14336 2012-02-07  Marek Polacek  <polacek@redhat.com>
14337
14338         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14339         * sysdeps/gnu/_G_config.h: Likewise.
14340         * sysdeps/mach/hurd/_G_config.h: Likewise.
14341
14342 2012-02-07  Marek Polacek  <polacek@redhat.com>
14343
14344         * math/Makefile (tests): Add tst-CMPLX2.
14345         * math/tst-CMPLX2.c: New file.
14346
14347 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14348
14349         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14350
14351         * math/libm-test.inc (jn_test): Add missing L suffix.
14352
14353 2012-02-06  Marek Polacek  <polacek@redhat.com>
14354
14355         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14356         * sysdeps/i386/fpu/e_powf.S: Likewise.
14357         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14358         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14359         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14360         * sysdeps/i386/fpu/e_pow.S: Likewise.
14361         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14362         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14363         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14364         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14365         * sysdeps/i386/fpu/e_log2.S: Likewise.
14366         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14367         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14368         * sysdeps/i386/fpu/e_powl.S: Likewise.
14369         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14370         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14371         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14372         * sysdeps/i386/fpu/e_logl.S: Likewise.
14373         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14374         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14375         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14376         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14377         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14378         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14379         * sysdeps/i386/fpu/e_log.S: Likewise.
14380         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14381         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14382         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14383         * sysdeps/i386/fpu/e_logf.S: Likewise.
14384         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14385         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14386         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14387         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14388         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14389         * sysdeps/i386/fpu/e_log10.S: Likewise.
14390         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14391         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14392         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14393         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14394         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14395         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14396         * sysdeps/i386/asm-syntax.h: Likewise.
14397         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14398         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14399         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14400         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14401         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14402         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14403         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14404         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14405         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14406         * sysdeps/powerpc/sysdep.h: Likewise.
14407         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14408         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14409
14410 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14411
14412         [BZ #411]
14413         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14414
14415 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14416
14417         * sysdeps/i386/sysdep.h: Include <features.h>.
14418         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14419         version.
14420
14421 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14422
14423         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14424         Define.
14425         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14426         LOAD_PIC_REG_STR.
14427
14428 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14429
14430         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14431         (SETUP_PIC_REG): Use GET_PC_THUNK.
14432         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14433         macro.
14434
14435 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14436
14437         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14438         for non-PIC compilation.
14439         (SETUP_PIC_REG): Add .p2align directive.
14440         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14441         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14442         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14443         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14444         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14445         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14446         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14447         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14448         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14449         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14450         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14451         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14452         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14453         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14454         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14455         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14456         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14457         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14458         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14459         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14460         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14461         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14462         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14463         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14464         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14465         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14466         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14467         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14468         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14469         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14470         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14471         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14472         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14473         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14474         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14475         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14476         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14477         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14478         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14479         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14480         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14481
14482 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14483
14484         * math/tst-CMPLX.c: Include <stdio.h>.
14485
14486 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14487
14488         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14489         float.
14490         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14491         * sysdeps/sparc/bits/mathdef.h: Likewise.
14492
14493 2012-01-31  Marek Polacek  <polacek@redhat.com>
14494
14495         * libio/libio.h: Don't define _PARAMS.
14496         * locale/programs/config.h: Don't define PARAMS.
14497         * stdlib/strtol_l.c: Likewise.
14498         (__strtol_l): Remove PARAMS from the prototype.
14499
14500 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14501
14502         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14503         names.  Just use the correct names.  Remove unnecessary wrapper
14504         functions.
14505         * malloc/arena.c: Likewise.
14506         * malloc/hooks.c: Likewise.
14507
14508         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14509         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14510         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14511
14512 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14513
14514         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14515         into tail calls.
14516         (update_get_addr): New function.
14517         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14518         GET_ADDR_MODULE parameter.
14519
14520 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14521
14522         * crypt/cert.c: Remove __STDC__ conditionals.
14523         * crypt/crypt-entry.c: Likewise.
14524         * crypt/crypt_util.c: Likewise.
14525         * libio/filedoalloc.c: Likewise.
14526         * libio/fileops.c: Likewise.
14527         * libio/genops.c: Likewise.
14528         * libio/iofclose.c: Likewise.
14529         * libio/iofdopen.c: Likewise.
14530         * libio/iofopen.c: Likewise.
14531         * libio/iofopen64.c: Likewise.
14532         * libio/iogetdelim.c: Likewise.
14533         * libio/iopopen.c: Likewise.
14534         * libio/obprintf.c: Likewise.
14535         * libio/oldfileops.c: Likewise.
14536         * libio/oldiofclose.c: Likewise.
14537         * libio/oldiofdopen.c: Likewise.
14538         * libio/oldiofopen.c: Likewise.
14539         * libio/oldiopopen.c: Likewise.
14540         * libio/wfiledoalloc.c: Likewise.
14541         * libio/wgenops.c: Likewise.
14542         * locale/programs/xmalloc.c: Likewise.
14543         * misc/syslog.c: Likewise.
14544         * stdio-common/xbug.c: Likewise.
14545         * string/memchr.c: Likewise.
14546         * string/memcmp.c: Likewise.
14547         * string/memrchr.c: Likewise.
14548         * string/rawmemchr.c: Likewise.
14549         * sysdeps/posix/getcwd.c: Likewise.
14550         * time/strftime_l.c: Likewise.
14551
14552 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14553
14554         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14555         * config.make.in (config-cflags-sse2avx): Define.
14556         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14557         Fix typo.
14558
14559 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14560
14561         * scripts/config.guess: Update from upstream config git repository.
14562         * scripts/config.sub: Likewise.
14563
14564 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14565
14566         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14567         (EM_NUM): Update.
14568         (R_TILEPRO_*, R_TILEGX_*): New macros.
14569
14570         * scripts/firstversions.awk: Fix bug in version range handling.
14571
14572         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14573
14574         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14575
14576         * include/sys/epoll.h: New file.
14577         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14578         libc_hidden_def.
14579
14580 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14581
14582         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14583         Avoid unnecessary __WORDSIZE == 64 test.
14584         (fmaxf): Use VEX format if possible.
14585         (fmax): Likewise.
14586         (fminf): Likewise.
14587         (fmin): Likewise.
14588
14589         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14590         * math/math_private.h: Remove libc_fegetround* and
14591         libc_fesetround*.
14592         * sysdeps/i386/configure.in: Check for -msse2avx.
14593         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14594         also if SSE2AVX is defined.
14595         Remove libc_fegetround* and libc_fesetround*.
14596         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14597         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14598         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14599         of HAS_YMM_USABLE.
14600         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14601         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14602         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14603         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14604         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14605
14606         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14607
14608 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14609
14610         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14611         size is not set.
14612         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14613
14614 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14615
14616         [BZ #13618]
14617         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14618         relocation.
14619         * Makeconfig (libm): Define.
14620         * elf/Makefile: Add rules to build and run tst-relsort1.
14621         * elf/tst-relsort1.c: New file.
14622         * elf/tst-relsort1mod1.c: New file.
14623         * elf/tst-relsort1mod2.c: New file.
14624
14625 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14626
14627         * math/s_ldexp.c: Remove __STDC__ conditionals.
14628         * math/s_ldexpf.c: Likewise.
14629         * math/s_ldexpl.c: Likewise.
14630         * math/s_nextafter.c: Likewise.
14631         * math/s_nexttowardf.c: Likewise.
14632         * math/s_significand.c: Likewise.
14633         * math/s_significandf.c: Likewise.
14634         * math/s_significandl.c: Likewise.
14635         * math/w_jnl.c: Likewise.
14636         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14637         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14638         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14639         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14640         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14643         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14644         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14645         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14646         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14647         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14648         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14649         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14650         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14651         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14652         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14653         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14654         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14655         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14656         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14658         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14660         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14661         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14662         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14663         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14664         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14665         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14666         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14667         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14668         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14669         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14670         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14671         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14672         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14673         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14674         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14675         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14676         * sysdeps/ieee754/k_standard.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14709         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14711         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14712         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14714         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14715         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14717         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14718         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14719         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14720         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14721         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14722         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14723         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14724         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14725         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14726         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14727         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14728         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14729         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14730         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14731         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14732         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14733         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14734         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14735         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14736         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14737         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14738         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14739         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14740         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14741         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14742         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14743         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14744         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14745         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14746         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14747         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14748         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14749         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14750         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14751         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14752         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14753         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14754         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14755         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14756         * sysdeps/ieee754/s_matherr.c: Likewise.
14757         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14758         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14759         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14760         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14761
14762 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14763
14764         * crypt/md5.h: Remove __STDC__ conditionals.
14765         * libio/libioP.h: Likewise.
14766         * locale/programs/config.h: Likewise.
14767         * sysdeps/generic/sysdep.h: Likewise.
14768         * sysdeps/i386/asm-syntax.h: Likewise.
14769         * sysdeps/s390/asm-syntax.h: Likewise.
14770         * sysdeps/unix/sysdep.h: Likewise.
14771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14773
14774 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14775
14776         * libio/libio.h: Remove __STDC__ conditionals.
14777         * malloc/obstack.h: Likewise.
14778         * math/complex.h: Likewise.
14779         * math/math.h: Likewise.
14780         * sysdeps/generic/_G_config.h: Likewise.
14781         * sysdeps/gnu/_G_config.h: Likewise.
14782         * sysdeps/mach/hurd/_G_config.h: Likewise.
14783         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14784         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14785         * sysdeps/sparc/bits/mathdef.h: Likewise.
14786
14787 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14788
14789         [BZ #13583]
14790         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14791         Clean up HAS_* macros.
14792         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14793         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14794         possible.
14795         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14796         HAS_AVX.
14797         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14798         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14799         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14800         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14801         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14802
14803 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14804
14805         * elf/tst-unique3.cc (gets): Remove declaration.
14806         * elf/tst-unique3lib.cc (gets): Likewise.
14807         * elf/tst-unique3lib2.cc (gets): Likewise.
14808         * elf/tst-unique4.cc (gets): Likewise.
14809
14810 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14811
14812         * include/stdio.h: Add C++ protection.  Add gets declarations and
14813         definitions.
14814         * debug/tst-chk1.c: Don't declare gets here.
14815         * stdio-common/tst-gets.c: Likewise.
14816
14817 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14818
14819         * posix/glob: Remove directory.
14820
14821 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14822
14823         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14824
14825 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14826
14827         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14828         of the non-standard EPFNOSUPPORT.
14829
14830 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14831
14832         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14833         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14834         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14835
14836 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14837
14838         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14839
14840 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14841
14842         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14843         transient errors.
14844         * nscd/grpcache.c (cache_addgr): Likewise.
14845         * nscd/hstcache.c (cache_addhst): Likewise.
14846         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14847         * nscd/pwdcache.c (cache_addpw): Likewise.
14848         * nscd/servicescache.c (cache_addserv): Likewise.
14849
14850 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14851
14852         * malloc/malloc.c: Various cleanups.
14853         * malloc/hooks.c: Likewise.
14854
14855         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14856         * stdlib/bug-fmtmsg1.c: New file.
14857
14858         * stdlib/fmtmsg.c (init): Add missing unlock.
14859         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14860
14861 2012-01-12  Marek Polacek  <polacek@redhat.com>
14862
14863         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14864         and _GNU_SOURCE.
14865
14866 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14867
14868         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14869         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14870         macro to ensure uniqueness of label name.
14871         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14872         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14873
14874 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14875
14876         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14877
14878         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14879         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14880         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14881         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14882
14883 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14884
14885         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14886
14887         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14888         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14889         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14890
14891         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14892
14893         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14894         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14895         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14897
14898         * math/bits/math-finite.h: Add ldexp support.
14899
14900 2012-01-10  Marek Polacek  <polacek@redhat.com>
14901
14902         * locale/programs/localedef.h (show_archive_content): Add noreturn
14903         attribute.
14904
14905 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14906
14907         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14908
14909 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14910
14911         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14912
14913         * io/Makefile (headers): Add bits/poll2.h.
14914
14915 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14916
14917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14918         typo #include statement.
14919
14920 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14921
14922         * include/sys/cdefs.h: Define __attribute_alloc_size.
14923         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14924         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14925         * elf/pldd.c: Likewise.
14926         * iconv/iconv_charmap.c: Likewise.
14927         * iconv/iconvconfig.c: Likewise.
14928         * iconv/strtab.c: Likewise.
14929         * locale/programs/locale.c: Likewise.
14930         * locale/programs/localedef.h: Likewise.
14931         * locale/programs/simple-hash.c: Likewise.
14932         * nscd/nscd.h: Likewise.
14933         * nss/makedb.c: Likewise.
14934         * sysdeps/generic/ldconfig.h: Likewise.
14935         * locale/programs/localedef.c: Remove xmalloc prototype.
14936         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14937
14938 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14939
14940         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14941         appropriate.
14942
14943 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14944
14945         * math/Makefile (tests): Add tst-CMPLX.
14946         * math/tst-CMPLX.c: New file.
14947
14948         * math/complex.h (CMPLXL): Fix typo.
14949
14950         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14951         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14952         GLIBC_2.16.
14953         * debug/tst-chk1.c: Add poll and ppoll tests.
14954         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14955         * include/sys/poll.h: Add hidden proto for ppoll.
14956         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14957         * sysdeps/mach/hurd/ppoll.c: Likewise.
14958         * io/ppoll.c: Likewise.
14959         * debug/poll_chk.c: New file.
14960         * debug/ppoll_chk.c: New file.
14961         * include/bits/poll2.h: New file.
14962         * io/bits/poll2.h: New file.
14963
14964         [BZ #1350]
14965         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14966
14967         * configure.in: static is always set to yes.  Remove.
14968         * config.make.in: Don't set build-static.
14969         * Makeconfig: Remove use of build-static.
14970         * dlfcn/Makefile: Likewise.
14971         * elf/Makefile: Likewise.
14972         * math/Makefile: Likewise.
14973         * misc/Makefile: Likewise.
14974         * nptl/Makefile: Likewise.
14975         * sysdeps/mach/hurd/Makefile: Likewise.
14976
14977         * configure.in: PWD_P is not used anymore.
14978         * config.make.in: Remove PWD_P entry.
14979
14980         * configure.in: Remove last remnants of RANLIB.
14981         No need to check for signed size_t anymore.
14982         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14983         and IA-64.
14984         Remove __builtin_expect test because we require at least gcc 3.4.
14985         * aclocal.m4: Likewise.
14986
14987         * wcsmbs/mbrtoc16.c: Implement using towc function.
14988         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14989         * wcsmbs/wcsmbsload.c: Likewise.
14990         * iconv/gconv_simple.c: Likewise.
14991         * iconv/gconv_int.h: Likewise.
14992         * iconv/gconv_builtin.h: Likewise.
14993         * iconv/iconv_prog.c: Remove CHAR16 handling.
14994
14995         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14996
14997         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14998
14999         * configure.in: Remove --with-elf and --enable-bounded options.
15000         Dont set base_machine for ia64.  More non-ELF conditions removed.
15001         Remove testing and setting of leading underscore information.
15002         * config.make.in (build-bounded): Set to no.
15003         * config.h.in: Remove NO_UNDERSCORES entry.
15004         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15005         them.
15006         * csu/start.c: Remove !NO_UNDERSCORE code.
15007         * locale/localeinfo.h: Likewise.
15008         * sysdeps/generic/machine-gmon.h: Likewise.
15009         * sysdeps/generic/sysdep.h: Likewise.
15010         * sysdeps/i386/sysdep.h: Likewise.
15011         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15012         * sysdeps/mach/sysdep.h: Likewise.
15013         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15014         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15015         * sysdeps/sh/sysdep.h: Likewise.
15016         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15017         * sysdeps/unix/i386/sysdep.S: Likewise.
15018         * sysdeps/unix/sparc/start.c: Likewise.
15019         * sysdeps/unix/sparc/sysdep.S: Likewise.
15020         * sysdeps/unix/sparc/sysdep.h: Likewise.
15021         * sysdeps/unix/start.c: Likewise.
15022         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15023         * sysdeps/x86_64/sysdep.h: Likewise.
15024
15025 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15026
15027         [BZ #13553]
15028         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15029         for non-gcc.
15030         * argp/argp-fmtstream.h: Use const instead __const.
15031         * argp/argp.h: Likewise.
15032         * assert/assert.h: Likewise.
15033         * bits/fenv.h: Likewise.
15034         * bits/sched.h: Likewise.
15035         * bits/sigset.h: Likewise.
15036         * bits/sigthread.h: Likewise.
15037         * catgets/nl_types.h: Likewise.
15038         * conform/data/pthread.h-data: Likewise.
15039         * crypt/crypt-private.h: Likewise.
15040         * crypt/crypt.h: Likewise.
15041         * crypt/crypt_util.c: Likewise.
15042         * ctype/ctype.h: Likewise.
15043         * debug/execinfo.h: Likewise.
15044         * debug/mbsnrtowcs_chk.c: Likewise.
15045         * debug/mbsrtowcs_chk.c: Likewise.
15046         * debug/wcsnrtombs_chk.c: Likewise.
15047         * debug/wcsrtombs_chk.c: Likewise.
15048         * debug/wcstombs_chk.c: Likewise.
15049         * dirent/dirent.h: Likewise.
15050         * dlfcn/dlfcn.h: Likewise.
15051         * elf/neededtest4.c: Likewise.
15052         * grp/grp.h: Likewise.
15053         * gshadow/gshadow.h: Likewise.
15054         * iconv/gconv.h: Likewise.
15055         * iconv/gconv_int.h: Likewise.
15056         * iconv/gconv_simple.c: Likewise.
15057         * iconv/iconv.h: Likewise.
15058         * iconv/loop.c: Likewise.
15059         * iconv/skeleton.c: Likewise.
15060         * include/aio.h: Likewise.
15061         * include/aliases.h: Likewise.
15062         * include/argz.h: Likewise.
15063         * include/arpa/inet.h: Likewise.
15064         * include/assert.h: Likewise.
15065         * include/dirent.h: Likewise.
15066         * include/dlfcn.h: Likewise.
15067         * include/execinfo.h: Likewise.
15068         * include/fcntl.h: Likewise.
15069         * include/fenv.h: Likewise.
15070         * include/glob.h: Likewise.
15071         * include/grp.h: Likewise.
15072         * include/libintl.h: Likewise.
15073         * include/mntent.h: Likewise.
15074         * include/netdb.h: Likewise.
15075         * include/pwd.h: Likewise.
15076         * include/rpc/netdb.h: Likewise.
15077         * include/sched.h: Likewise.
15078         * include/search.h: Likewise.
15079         * include/shadow.h: Likewise.
15080         * include/signal.h: Likewise.
15081         * include/stdio.h: Likewise.
15082         * include/stdlib.h: Likewise.
15083         * include/string.h: Likewise.
15084         * include/sys/socket.h: Likewise.
15085         * include/sys/stat.h: Likewise.
15086         * include/sys/statfs.h: Likewise.
15087         * include/sys/statvfs.h: Likewise.
15088         * include/sys/syslog.h: Likewise.
15089         * include/sys/time.h: Likewise.
15090         * include/sys/uio.h: Likewise.
15091         * include/time.h: Likewise.
15092         * include/unistd.h: Likewise.
15093         * include/utmp.h: Likewise.
15094         * include/wchar.h: Likewise.
15095         * include/wctype.h: Likewise.
15096         * inet/aliases.h: Likewise.
15097         * inet/arpa/inet.h: Likewise.
15098         * inet/netinet/ether.h: Likewise.
15099         * inet/netinet/in.h: Likewise.
15100         * intl/libintl.h: Likewise.
15101         * io/bits/fcntl2.h: Likewise.
15102         * io/fcntl.h: Likewise.
15103         * io/ftw.h: Likewise.
15104         * io/sys/poll.h: Likewise.
15105         * io/sys/stat.h: Likewise.
15106         * io/sys/statfs.h: Likewise.
15107         * io/sys/statvfs.h: Likewise.
15108         * io/utime.h: Likewise.
15109         * libio/bits/stdio.h: Likewise.
15110         * libio/bits/stdio2.h: Likewise.
15111         * libio/libio.h: Likewise.
15112         * libio/libioP.h: Likewise.
15113         * libio/stdio.h: Likewise.
15114         * locale/lc-ctype.c: Likewise.
15115         * locale/locale.h: Likewise.
15116         * login/utmp.h: Likewise.
15117         * malloc/arena.c: Likewise.
15118         * malloc/malloc.c: Likewise.
15119         * malloc/malloc.h: Likewise.
15120         * malloc/mcheck.c: Likewise.
15121         * malloc/mtrace.c: Likewise.
15122         * math/bits/mathcalls.h: Likewise.
15123         * math/fenv.h: Likewise.
15124         * math/math_private.h: Likewise.
15125         * misc/bits/error.h: Likewise.
15126         * misc/bits/syslog.h: Likewise.
15127         * misc/err.h: Likewise.
15128         * misc/error.h: Likewise.
15129         * misc/fstab.h: Likewise.
15130         * misc/mntent.h: Likewise.
15131         * misc/regexp.h: Likewise.
15132         * misc/search.h: Likewise.
15133         * misc/sgtty.h: Likewise.
15134         * misc/sys/mman.h: Likewise.
15135         * misc/sys/syslog.h: Likewise.
15136         * misc/sys/uio.h: Likewise.
15137         * misc/sys/xattr.h: Likewise.
15138         * misc/ttyent.h: Likewise.
15139         * nis/rpcsvc/ypclnt.h: Likewise.
15140         * nss/nss.h: Likewise.
15141         * posix/bits/unistd.h: Likewise.
15142         * posix/fnmatch.h: Likewise.
15143         * posix/glob.h: Likewise.
15144         * posix/sched.h: Likewise.
15145         * posix/spawn.h: Likewise.
15146         * posix/sys/wait.h: Likewise.
15147         * posix/unistd.h: Likewise.
15148         * posix/wordexp.h: Likewise.
15149         * pwd/pwd.h: Likewise.
15150         * resolv/netdb.h: Likewise.
15151         * resource/sys/resource.h: Likewise.
15152         * rt/aio.h: Likewise.
15153         * rt/bits/mqueue2.h: Likewise.
15154         * rt/mqueue.h: Likewise.
15155         * shadow/shadow.h: Likewise.
15156         * signal/signal.h: Likewise.
15157         * socket/send.c: Likewise.
15158         * socket/sendto.c: Likewise.
15159         * socket/sys/socket.h: Likewise.
15160         * stdio-common/printf.h: Likewise.
15161         * stdlib/bits/stdlib.h: Likewise.
15162         * stdlib/fmtmsg.h: Likewise.
15163         * stdlib/monetary.h: Likewise.
15164         * stdlib/stdlib.h: Likewise.
15165         * stdlib/ucontext.h: Likewise.
15166         * streams/stropts.h: Likewise.
15167         * string/argz.h: Likewise.
15168         * string/bits/string2.h: Likewise.
15169         * string/string.h: Likewise.
15170         * string/strings.h: Likewise.
15171         * sunrpc/rpc/auth.h: Likewise.
15172         * sunrpc/rpc/auth_des.h: Likewise.
15173         * sunrpc/rpc/clnt.h: Likewise.
15174         * sunrpc/rpc/netdb.h: Likewise.
15175         * sunrpc/rpc/pmap_clnt.h: Likewise.
15176         * sunrpc/rpc/xdr.h: Likewise.
15177         * sysdeps/generic/inttypes.h: Likewise.
15178         * sysdeps/generic/net/if.h: Likewise.
15179         * sysdeps/generic/sys/swap.h: Likewise.
15180         * sysdeps/gnu/net/if.h: Likewise.
15181         * sysdeps/gnu/utmpx.h: Likewise.
15182         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15183         * sysdeps/i386/i486/bits/string.h: Likewise.
15184         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15185         * sysdeps/s390/bits/string.h: Likewise.
15186         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15187         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15188         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15189         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15190         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15191         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15192         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15193         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15194         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15195         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15196         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15197         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15198         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15199         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15200         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15201         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15202         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15203         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15204         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15205         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15206         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15207         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15208         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15209         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15210         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15211         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15212         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15213         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15214         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15215         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15216         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15217         * sysvipc/sys/ipc.h: Likewise.
15218         * sysvipc/sys/msg.h: Likewise.
15219         * sysvipc/sys/sem.h: Likewise.
15220         * sysvipc/sys/shm.h: Likewise.
15221         * termios/termios.h: Likewise.
15222         * time/sys/time.h: Likewise.
15223         * time/time.h: Likewise.
15224         * wcsmbs/bits/wchar2.h: Likewise.
15225         * wcsmbs/uchar.h: Likewise.
15226         * wcsmbs/wchar.h: Likewise.
15227         * wctype/wctype.h: Likewise.
15228
15229         [BZ #13551]
15230         * Makeconfig: Remove all but ELF support including AIX support.
15231         * Makerules: Likewise.
15232         * config.h.in: Likewise.
15233         * config.make.in: Likewise.
15234         * configure: Likewise.
15235         * configure.in: Likewise.
15236         * csu/Makefile: Likewise.
15237         * csu/version.c: Likewise.
15238         * debug/Makefile: Likewise.
15239         * dlfcn/Makefile: Likewise.
15240         * elf/Makefile: Likewise.
15241         * extra-lib.mk: Likewise.
15242         * iconv/Makefile: Likewise.
15243         * include/libc-symbols.h: Likewise.
15244         * include/shlib-compat.h: Likewise.
15245         * resolv/Makefile: Likewise.
15246         * resolv/res_libc.c: Likewise.
15247         * rt/Makefile: Likewise.
15248         * sysdeps/i386/asm-syntax.h: Likewise.
15249         * sysdeps/i386/sysdep.h: Likewise.
15250         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15251         * sysdeps/mach/sysdep.h: Likewise.
15252         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15253         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15254         * sysdeps/s390/asm-syntax.h: Likewise.
15255         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15256         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15257         * sysdeps/sh/sysdep.h: Likewise.
15258         * sysdeps/unix/sparc/sysdep.h: Likewise.
15259         * sysdeps/wordsize-32/divdi3.c: Likewise.
15260         * sysdeps/x86_64/sysdep.h: Likewise.
15261
15262         * argp/Versions: Remove _argp_unlock_xxx.
15263
15264         [BZ #13559]
15265         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15266         * abilist/libBrokenLocale.abilist: Likewise.
15267         * abilist/libanl.abilist: Likewise.
15268         * abilist/libc.abilist: Likewise.
15269         * abilist/libcrypt.abilist: Likewise.
15270         * abilist/libdl.abilist: Likewise.
15271         * abilist/libm.abilist: Likewise.
15272         * abilist/libnsl.abilist: Likewise.
15273         * abilist/libpthread.abilist: Likewise.
15274         * abilist/libresolv.abilist: Likewise.
15275         * abilist/librt.abilist: Likewise.
15276         * abilist/libthread_db.abilist: Likewise.
15277         * abilist/libutil.abilist: Likewise.
15278         * abilist/libnss_db.abilist: New file.
15279
15280         * scripts/abilist.awk: Add support for indirect functions.
15281
15282         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15283
15284         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15285
15286         * shlib-versions: Remove entries for ports architectures.
15287
15288         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15289         files in ports.
15290         * elf/stackguard-macros.h: Remove support for IA-64.
15291         * elf/tst-auditmod1.c: Likewise.
15292         * sysdeps/generic/ldsodefs.h: Likewise.
15293
15294         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15295         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15296         configure files.
15297
15298         [BZ #13552]
15299         * configure.in: Remove --enable-omitfp support.
15300         * FAQ.in: Adjust.
15301         * config.make.in: Likewise.
15302         * Makeconfig: Likewise.
15303         * manual/install.texi: Likewise.
15304
15305         In case anyone cares, the IA-64 architecture could move to ports.
15306         * sysdeps/ia64/*: Removed.
15307         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15308         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15309
15310         [BZ #13555]
15311         * configure.in: Remove entries for unsupported architectures.
15312
15313         [BZ #13533]
15314         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15315         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15316         routines.
15317         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15318         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15319         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15320         fall back to using wcrtomb.
15321         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15322         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15323         renaming.
15324         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15325         * wcsmbs/tst-c16c32-1.c: New file.
15326
15327         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15328         local variable.
15329
15330         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15331
15332         * elf/tst-unique3.cc: Add explicit declaration of gets.
15333         * elf/tst-unique3lib.cc: Likewise.
15334         * elf/tst-unique3lib2.cc: Likewise.
15335         * elf/tst-unique4.cc: Likewise.
15336
15337         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15338
15339 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15340
15341         [BZ #13566]
15342         * assert/assert.h (static_assert): Don't define for C++.
15343         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15344         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15345
15346 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15347
15348         * iconv/loop.c (single loop): Fix assertion in storing of
15349         remaining bytes.
15350
15351         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15352
15353 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15354
15355         * posix/getconf.c: Update copyright year.
15356         * nss/getent.c: Likewise.
15357         * nss/makedb.c: Likewise.
15358         * iconv/iconvconfig.c: Likewise.
15359         * iconv/iconv_prog.c: Likewise.
15360         * elf/ldconfig.c: Likewise.
15361         * elf/pldd.c: Likewise.
15362         * elf/sotruss.ksh: Likewise.
15363         * catgets/gencat.c: Likewise.
15364         * csu/version.c: Likewise.
15365         * elf/ldd.bash.in: Likewise.
15366         * elf/sprof.c (print_version): Likewise.
15367         * locale/programs/locale.c: Likewise.
15368         * locale/programs/localedef.c: Likewise.
15369         * login/programs/pt_chown.c: Likewise.
15370         * nscd/nscd.c (print_version): Likewise.
15371         * debug/xtrace.sh: Likewise.
15372         * malloc/memusage.sh: Likewise.
15373         * malloc/mtrace.pl: Likewise.
15374         * debug/catchsegv.sh: Likewise.
15375
15376 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15377
15378         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15379         pure attribute.
15380
15381 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15382
15383         [BZ #13533]
15384         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15385         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15386         transformations.
15387         * iconv/gconv_int.h: Likewise.
15388         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15389         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15390         from libc for GLIBC_2.16.
15391         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15392         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15393         * wcsmbs/uchar.h: Really define mbstate_t.
15394         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15395         * wcsmbs/c16rtomb.c: New file.
15396         * wcsmbs/mbrtoc16.c: New file.
15397         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15398         for C/POSIX locale.
15399         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15400         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15401
15402         * wcsmbs/wchar.h: Add missing __restrict.
15403
15404 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15405
15406         [BZ #13532]
15407         * time/Makefile (routines): Add timespec_get.
15408         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15409         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15410         timespec for ISO C11.
15411         * time/timespec_get.c: New file.
15412         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15413         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15414
15415         [BZ #13531]
15416         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15417         * stdlib/stdlib.h: Declare aligned_alloc.
15418         * Versions.def: Add GLIBC_2.16 for libc.
15419         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15420
15421         [BZ 13527]
15422         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15423         ISO C11.
15424
15425         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15426         code.
15427
15428         [BZ #13528]
15429         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15430
15431         [BZ #13529]
15432         * assert/assert.h (static_assert): Define.
15433
15434         * version.h: Update for 2.16 development version.
15435
15436         [BZ #13526]
15437         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15438         _ISOC11_SOURCE.
15439
15440         * version.h (RELEASE): Bump for 2.15 release.
15441         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15442
15443         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15444         Patch by Marek Polacek <mpolacek@redhat.com>.
15445
15446         * bits/byteswap.h: Protect long long constants with __extension__.
15447         * sysdeps/i386/bits/byteswap.h: Likewise.
15448         * sysdeps/ia64/bits/byteswap.h: Likewise.
15449         * sysdeps/s390/bits/byteswap.h: Likewise.
15450         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15451
15452 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15453
15454         [BZ #13540]
15455         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15456         destination buffer.
15457         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15458
15459 2011-12-23  Marek Polacek  <polacek@redhat.com>
15460
15461         * elf/dl-addr.c (determine_info): Add inline keyword.
15462         * elf/tst-auditmod4b.c (check_avx): Likewise.
15463         * elf/tst-auditmod6b.c (check_avx): Likewise.
15464         * elf/tst-auditmod6c.c (check_avx): Likewise.
15465         * elf/tst-auditmod7b.c (check_avx): Likewise.
15466
15467 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15468
15469         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15470         !__SSE_MATH__.
15471
15472 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15473
15474         [BZ #13540]
15475         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15476         processing for last bytes.
15477
15478 2011-08-06  Bruno Haible  <bruno@clisp.org>
15479
15480         [BZ #13061]
15481         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15482         U+0385, not to U+1FEE.
15483
15484         [BZ #13062]
15485         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15486         entry for U+00A5 U+0301.
15487
15488 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15489
15490         [BZ #13166]
15491         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15492         buffer for the output is too small.
15493
15494         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15495         optimization.
15496
15497         [BZ #13185]
15498         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15499         SSE flags if possible.
15500
15501 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15502
15503         [BZ #13540]
15504         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15505         processing for last bytes.
15506
15507 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15508
15509         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15510         (syscall-list-default-options, syscall-list-default-condition)
15511         (syscall-list-includes): Define.
15512         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15513         list of ABIs and options and #if conditions for each ABI.  Do not
15514         handle common syscalls between ABIs specially.
15515         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15516         Remove.
15517         (syscall-list-variants, syscall-list-32bit-options)
15518         (syscall-list-32bit-condition, syscall-list-64bit-options)
15519         (syscall-list-64bit-condition): Define.
15520         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15521         (syscall-list-variants, syscall-list-32bit-options)
15522         (syscall-list-32bit-condition, syscall-list-64bit-options)
15523         (syscall-list-64bit-condition): Define.
15524         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15525         Remove.
15526         (syscall-list-variants, syscall-list-32bit-options)
15527         (syscall-list-32bit-condition, syscall-list-64bit-options)
15528         (syscall-list-64bit-condition): Define.
15529         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15530         Remove.
15531         (syscall-list-variants, syscall-list-32bit-options)
15532         (syscall-list-32bit-condition, syscall-list-64bit-options)
15533         (syscall-list-64bit-condition): Define.
15534
15535 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15536
15537         * locale/iso-639.def: Add brx entry.
15538
15539         [BZ #13328]
15540         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15541         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15542
15543         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15544         __feraiseexcept_renamed.
15545
15546 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15547
15548         [BZ #13538]
15549         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15550         EPOLLET with unsigned values.
15551         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15552         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15553
15554         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15555         to large cancellation.
15556         * math/s_cacoshf.c: Likewise.
15557         * math/s_cacoshl.c: Likewise.
15558
15559 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15560
15561         [BZ #13305]
15562         [BZ #12786]
15563         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15564         * math/s_cacoshf.c: Likewise.
15565         * math/s_cacoshl.c: Likewise.
15566
15567 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15568
15569         [BZ #13439]
15570         * iconv/gconv.h: Define __GCONV_SWAP.
15571         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15572         * iconvdata/utf-16.c: Likewise.
15573         * iconvdata/utf-32.c: Likewise.
15574
15575 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15576
15577         [BZ #13524]
15578         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15579         numerator after shifting it by one limb.
15580
15581 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15582
15583         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15584         under [__USE_EXTERN_INLINES].
15585
15586 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15587
15588         [BZ #13446]
15589         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15590
15591 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15592
15593         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15594         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15595         optimized code.
15596         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15597         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15598         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15599         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15600         for strncasecmp/strncasecmp_l compilation.
15601         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15602         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15603
15604 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15605
15606         [BZ #13484]
15607         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15608         of __asm__.
15609
15610 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15611
15612         [BZ #13506]
15613         * time/tzfile.c (__tzfile_read): Check values from file header.
15614
15615 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15616
15617         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15618         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15619         * powerpc/powerpc32/dl-start.S: Likewise.
15620         * powerpc/powerpc32/elf/start.S: Likewise.
15621         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15622         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15623         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15624         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15625         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15626         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15627         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15628         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15629         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15630         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15631         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15632         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15633         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15634         * powerpc/powerpc32/memset.S: Likewise.
15635         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15636         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15637         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15638         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15639         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15640         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15641         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15642         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15643         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15644         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15645         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15646         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15647         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15648
15649 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15650
15651         * math/libm-test.inc: Added more nearbyint tests.
15652         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15653         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15654         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15655         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15656
15657 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15658
15659         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15660         FD_CLOEXEC.
15661
15662 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15663
15664         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15665         Add wcscpy-ssse3 wcscpy-c.
15666         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15667         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15668         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15669         * sysdeps/x86_64/wcschr.S: New file.
15670         * sysdeps/x86_64/wcsrchr.S: New file.
15671         * string/test-strcmp.c: Remove checking of wcscmp function for
15672         wrong alignments.
15673         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15674         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15675         wcsrchr-sse2 wcsrchr-c.
15676         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15677         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15678         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15679         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15680         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15681         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15682         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15683         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15684         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15685         * wcsmbc/wcschr.c (WCSCHR): New macro.
15686
15687 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15688
15689         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15690         * wcsmbs/test-wcsrchr.c: New file.
15691         * string/test-strrchr.c: Add wcsrchr support.
15692         (WIDE): New macro.
15693         * wcsmbs/test-wcscpy.c: New file.
15694         * string/test-strcpy.c: Add wcscpy support.
15695         (WIDE): New macro.
15696
15697 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15698
15699         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15700         the inner loop.
15701
15702 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15703
15704         [BZ #13472]
15705         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15706
15707 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15708
15709         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15710         Minor optimizations.
15711
15712         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15713         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15714         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15715
15716 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15717
15718         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15719         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15720         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15721         for gcc to avoid warnings.
15722         * inet/Makefile (tests): Add tst-checks.
15723         * inet/tst-checks.c: New file.
15724
15725         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15726         warning.
15727
15728         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15729         __wmemcmp_sse2.
15730
15731         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15732         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15733
15734         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15735
15736 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15737
15738         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15739         problem.
15740
15741         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15742
15743 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15744
15745         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15746         conditional on GCC version.
15747         (__arch_compare_and_exchange_val_8_acq)
15748         (__arch_compare_and_exchange_val_16_acq)
15749         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15750         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15751         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15752
15753 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15754
15755         * sysdeps/sh/backtrace.c: New file.
15756
15757 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15758
15759         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15760         parenthesis.
15761
15762 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15763
15764         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15765         falling back to utime.
15766
15767 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15768
15769         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15770         expectations for float.
15771
15772 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15773
15774         * locale/weight.h (findidx): Add parameter len.
15775         * locale/weightwc.h (findidx): Likewise.
15776         * posix/fnmatch_loop.c (FCT): Adjust caller.
15777         * posix/regcomp.c (build_equiv_class): Likewise.
15778         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15779         * posix/regexec.c (check_node_accept_bytes): Likewise.
15780         * string/strcoll_l.c (STRCOLL): Likewise.
15781         * string/strxfrm_l.c (STRXFRM): Likewise.
15782
15783 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15784
15785         * Makefile.in: Remove CVSOPT handling.
15786         * configure.in: Remove use of AC_REVISION.
15787         * iconvdata/Makefile (distribute): No need to filter out CVS.
15788         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15789         handling.
15790
15791 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15792
15793         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15794         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15795         [USE_AS_STRNCASECMP_L]: Likewise.
15796         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15797         NO_TLS_DIRECT_SEG_REFS.
15798         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15799         Fix argument offsets for non-PIC.
15800         [USE_AS_STRNCASECMP_L]: Likewise.
15801         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15802         NO_TLS_DIRECT_SEG_REFS.
15803
15804 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15805
15806         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15807         O_CLOEXEC.
15808         * locale/loadlocale.c (_nl_load_locale): Likewise.
15809
15810 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15811
15812         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15813         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15814         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15815         (SYSCALL_GETTIME): Set errno on error.
15816
15817         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15818         count references to noai6ai_cached.
15819
15820 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15821
15822         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15823
15824         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15825         FD_CLOEXEC for /proc/self/maps.
15826
15827         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15828         FD_CLOEXEC for /proc/meminfo.
15829
15830         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15831         gai.conf.
15832
15833         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15834         FD_CLOEXEC for given file.
15835
15836         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15837
15838         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15839         FD_CLOEXEC for /etc/hosts.
15840         (_gethtent): Likewise.
15841
15842         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15843
15844         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15845         cancellation and set FD_CLOEXEC for /etc/netgroup.
15846
15847         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15848         reading /etc/publickey.
15849
15850         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15851         allow cancellation when reading /etc/group.
15852
15853         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15854         cancellation.
15855         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15856
15857         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15858         when using data file.
15859
15860         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15861
15862         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15863         (write_nis_obj): Use "c" and "e" in fopen.
15864
15865         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15866
15867         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15868
15869         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15870
15871         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15872
15873         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15874         locale.alias.
15875
15876         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15877
15878         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15879
15880         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15881
15882         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15883         file parsing and set FD_CLOEXEC.
15884
15885 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15886
15887         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15888
15889 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15890
15891         * malloc/arena.c (arena_get2): Don't call reused_arena when
15892         _int_new_arena failed.
15893
15894 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15895
15896         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15897         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15898         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15899         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15900         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15901         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15902         to compile strcasecmp and strncasecmp.
15903         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15904         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15905
15906         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15907
15908 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15909
15910         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15911         locale-defines.sym to gen-as-const-headers.
15912         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15913         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15914         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15915         to compile strcasecmp and strncasecmp.
15916         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15917         strcasecmp_l and strncasecmp_l.
15918         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15919         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15920         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15921         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15922         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15923         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15924         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15925         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15926         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15927         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15928         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15929
15930 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15931
15932         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15933         result of SYSDEP_GETTIME_CPU to retval.
15934         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15935         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15936
15937         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15938         variable.
15939
15940         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15941         mantissa words.
15942         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15943
15944         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15945         from unused variable.
15946
15947         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15948         DWARF definitions.
15949         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15950         for assembling.
15951
15952         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15953         over namespaces.
15954
15955         * sunrpc/rpc_prot.c (rejected): Fix case value.
15956
15957         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15958         unsigned long long int to avoid warnings in shift.
15959
15960         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15961         of use of trans.
15962         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15963         variable tmp.
15964
15965         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15966         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15967         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15968
15969         * nis/nis_table.c (nis_list): Use variable of correct type for
15970         result of __follow_path call.
15971
15972 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15973
15974         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15975         of math functions ceil, trunc, floor, round, and sqrt, when
15976         avaliable on the platform.
15977         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15978         name clash.
15979         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15980         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15981         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15982
15983 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15984
15985         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15986         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15987
15988 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15989
15990         * include/unistd.h: Fix __readlink return type.
15991         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15992
15993 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15994
15995         * stdlib/ucontext.h: Undo last change for makecontext.
15996
15997 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15998
15999         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16000
16001         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16002         * setjmp/setjmp.h: Mark functions as non-leaf.
16003         * setjmp/bits/setjmp2.h: Likewise.
16004         * stdlib/ucontext.h: Likewise.
16005
16006 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16007
16008         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16009         (reused_arena): Don't check arena limit.
16010         (arena_get2): Atomically check arena limit.
16011
16012 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16013
16014         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16015         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16016
16017         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16018         instructions.
16019
16020 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16021
16022         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16023         handler when locking.
16024
16025         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16026         Fix size of allocated buffer.
16027
16028 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16029
16030         [BZ #10103]
16031         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16032         declarations for long double functions.
16033         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16034
16035         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16036
16037 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16038
16039         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16040         installed.
16041
16042         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16043         is disabled.
16044
16045 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16046
16047         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16048
16049 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16050
16051         * include/alloca.h (stackinfo_alloca_round): Define.
16052         (extend_alloca): Use it.
16053         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16054         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16055         here.
16056
16057         * scripts/check-local-headers.sh: Ignore libaudit.h.
16058
16059         * nscd/Makefile (extra-objs): Make recursively expanded.
16060
16061 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16062
16063         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16064         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16065
16066         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16067         * posix/tst-rfc3484-2.c: Likewise.
16068         * posix/tst-rfc3484-3.c: Likewise.
16069
16070         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16071         process_vm_writev.
16072         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16073         process_vm_writev.
16074         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16075         process_vm_writev from libc using GLIBC_2.15 version.
16076
16077         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16078
16079 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16080
16081         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16082         stack usage.
16083
16084 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16085
16086         [BZ #13367]
16087         * nss/getent.c (initgroups_keys): Show error message in case no group
16088         names are given.
16089
16090         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16091         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16092         __bump_nl_timestamp.
16093         * nscd/connections (nscd_init): When host database is served open
16094         netlink socket and request notification about configuration changes.
16095         (main_loop_poll): Track netlink file descriptor and bump timestamp
16096         in case data becomes available.
16097         (main_loop_epoll): Likewise.
16098         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16099         (database_pers_head): Add extra_data fileds.
16100         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16101         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16102         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16103         Adjust caller.
16104         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16105         in6ai data, call __free_in6ai.
16106         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16107         Add -DHAVE_NETLINK.
16108         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16109         interface information.  Reuse previous data if netlink timestamp
16110         is not changed.
16111         (__bump_nl_timestamp): New function.
16112         (__free_in6ai): New function.
16113
16114 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16115
16116         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16117         close_not_cancel_no_status here.
16118         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16119
16120 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16121
16122         [BZ #13276]
16123         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16124         return value.
16125
16126         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16127         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16128         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16129
16130 2011-07-03  Andreas Jaeger  <aj@suse.de>
16131
16132         [BZ #10709]
16133         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16134         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16135         * math/libm-test.inc (sin_test): Add test case.
16136
16137 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16138
16139         [BZ #13337]
16140         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16141         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16142
16143         * elf/chroot_canon.c (chroot_canon): Cleanups.
16144
16145         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16146
16147         [BZ #13335]
16148         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16149         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16150
16151         * string/test-strchr.c: Make usable for strchrnul testing.
16152         * string/test-strchrnul.c: New file.
16153         * string/Makefile (strop-tests): Add strchrnul.
16154
16155         * po/it.po: Update from translation team.
16156         * po/es.po: Likewise.
16157
16158 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16159
16160         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16161         the three constants needed as parameters.  Drop the others.
16162         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16163         __m128i_strloadu_tolower.
16164         Create and initialize variable zero and use it in all the places
16165         where _mm_setzero_si128 was used.
16166
16167         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16168         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16169         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16170         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16171         anymore.
16172         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16173         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16174         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16175         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16176         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16177         __mpranred, __mptan.
16178         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16179         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16180         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16181         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16182         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16183         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16184         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16185         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16186         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16187
16188 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16189
16190         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16191         redefine if SHARED.
16192         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16193
16194         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16195         wide char related routines to wcsmbs subdir.
16196
16197 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16198
16199         [BZ #13344]
16200         * misc/sys/cdefs.h (__THROWNL): Define.
16201         * posix/unistd.h: Use __THREADNL instead of __THREAD
16202         for memory synchronization functions.
16203
16204 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16205
16206         [BZ #13349]
16207         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16208         doesn't exist.
16209         * manual/stdio.texi (Obstack Streams): Node removed.
16210
16211 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16212
16213         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16214         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16215         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16216
16217         * math/math_private.h (math_force_eval): Allow non-addressable
16218         arguments.
16219         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16220
16221 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16222
16223         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16224         file is not needed.
16225
16226         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16227         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16228         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16229         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16230         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16231         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16232         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16233         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16234         Add AVX variants.
16235         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16236         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16237         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16238         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16239         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16240         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16241         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16242         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16243         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16244         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16245         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16246         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16247         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16248         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16249         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16250         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16251         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16252         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16253         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16254
16255         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16256         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16257
16258         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16259         place.  Use VEX encoding when compiling for AVX.
16260
16261 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16262
16263         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16264         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16265
16266         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16267
16268 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16269
16270         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16271         useless if() expression.
16272         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16273         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16274         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16275         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16276         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16277         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16278         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16279         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16280         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16281         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16282         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16283         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16284         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16285         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16286         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16287         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16288         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16289         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16290         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16291
16292         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16293
16294 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16295
16296         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16297         condition.
16298         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16299
16300 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16301
16302         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16303         .text section.  Avoid duplicate constants.
16304         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16305         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16306         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16307         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16308         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16309         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16310         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16311         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16312         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16313         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16314         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16315         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16316         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16317         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16318         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16319         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16320         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16321         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16322         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16323         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16324         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16325         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16326         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16327         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16328         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16329         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16330         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16331         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16332         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16333         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16334         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16335         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16336         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16337         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16338         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16339         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16340         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16341         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16342         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16343         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16344         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16345         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16346         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16347         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16348         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16349
16350 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16351
16352         * sysdeps/x86_64/dla.h: Move to ...
16353         * sysdeps/x86_64/fpu/dla.h: ...here.
16354         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16355         situations.  Use __builtin_fma only for gcc 4.6 and up.
16356
16357         * config.make.in: Add have-mfma4 entry.
16358         * configure.in: Substitute libc_cv_cc_fma4.
16359         * math/Makefile (dbl-only-routines): Add sincostab.
16360         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16361         Use __sincostab not sincos.
16362         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16363         name is a macro.
16364         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16365         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16366         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16367         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16368         using __copysign.
16369         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16370         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16371         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16372         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16373         and __inv.
16374         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16375         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16376         __copysign.
16377         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16378         define aliases when function name is a macro.
16379         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16380         sysdeps/ieee754/dbl-64/sincos.tbl.
16381         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16382         fma4-enabled routines.
16383         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16384         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16385         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16386         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16387         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16388         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16389         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16390         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16391         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16392         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16393         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16394         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16395         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16396         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16397         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16398         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16399         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16400         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16401         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16402         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16403         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16404         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16405         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16406         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16407         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16408         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16409         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16410         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16411         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16412         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16413
16414         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16415         rename.
16416         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16417         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16418         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16419         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16420         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16421         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16422         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16423         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16424
16425 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16426
16427         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16428
16429 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16430
16431         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16432
16433         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16434         prediction.
16435         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16436
16437         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16438         Remove unused variable magic_bits.
16439         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16440
16441         * string/strnlen.c: Define and use STRNLEN macro.
16442         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16443         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16444         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16445         * wcsmbs/wcslen.c: Define and use WCSLEN.
16446         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16447         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16448         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16449         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16450         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16451         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16452         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16453
16454 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16455
16456         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16457         strnlen-sse2-no-bsf.
16458         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16459         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16460         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16461         Add strnlen support.
16462         (USE_AS_STRNLEN): New macro.
16463         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16464         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16465         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16466         * sysdeps/x86_64/wcslen.S: New file.
16467
16468 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16469
16470         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16471         XMM-moves are used for copying on small sizes.
16472
16473 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16474
16475         * wcsmbs/Makefile (strop-tests): Add wcschr.
16476         * wcsmbs/test-wcschr.c: New file.
16477         * string/test-strchr.c: Update.
16478         Add wcschr support.
16479         (WIDE): New macro.
16480
16481 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16482
16483         * wcsmbs/Makefile (strop-tests): Add wcslen.
16484         * wcsmbs/test-wcslen.c: New file.
16485         * string/test-strlen.c: Update.
16486         Add wcslen support.
16487         (WIDE): New macro.
16488
16489 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16490
16491         * po/it.po: Update from translation team.
16492
16493 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16494
16495         * sysdeps/x86_64/wcscmp.S: Update.
16496         Fix wrong comparison semantics.
16497         wcscmp shall use signed comparison not unsigned.
16498         Don't use substraction to avoid overflow bug.
16499         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16500         * wcsmbc/wcscmp.c: Likewise.
16501         * string/test-strcmp.c: Likewise.
16502         Add new tests to check cases with negative values.
16503
16504 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16505
16506         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16507         * sysdeps/x86_64/dla.h: ...here.  New file.
16508         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16509         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16510         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16511         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16512         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16513         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16514         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16515         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16516         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16517
16518 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16519
16520         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16521         __ynl_finite aliases.
16522
16523 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16524
16525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16526
16527         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16528         define DLA_FMA.
16529         [DLA_FMA] (EMULV): Use DLA_FMA.
16530         [DLA_FMA] (MUL12): Use EMULV.
16531         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16532         that are not needed.
16533         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16534         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16535         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16537         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16538         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16540
16541 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16542
16543         * math/s_nan.c: Undef __nan.
16544         * math/s_nanf.c: Undef __nanf.
16545         * math/s_nanl.c: Undef __nanl.
16546         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16547         "math_private.h".
16548
16549 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16550
16551         * math/s_catan.c: Add branch predictions.
16552         * math/s_catanf.c: Likewise.
16553         * math/s_catanh.c: Likewise.
16554         * math/s_catanhf.c: Likewise.
16555         * math/s_catanhl.c: Likewise.
16556         * math/s_catanl.c: Likewise.
16557         * math/s_cexp.c: Likewise.
16558         * math/s_cexpf.c: Likewise.
16559         * math/s_cexpl.c: Likewise.
16560         * math/s_clog.c: Likewise.
16561         * math/s_clog10.c: Likewise.
16562         * math/s_clog10f.c: Likewise.
16563         * math/s_clog10l.c: Likewise.
16564         * math/s_clogf.c: Likewise.
16565         * math/s_clogl.c: Likewise.
16566         * math/s_csqrt.c: Likewise.
16567         * math/s_csqrtf.c: Likewise.
16568         * math/s_csqrtl.c: Likewise.
16569         * math/s_ctanf.c: Likewise.
16570         * math/s_ctanh.c: Likewise.
16571         * math/s_ctanhf.c: Likewise.
16572         * math/s_ctanhl.c: Likewise.
16573         * math/s_ctanl.c: Likewise.
16574
16575         * math/math_private.h: Define __nan, __nanf, __nanl.
16576         * math/s_cacosh.c: Include <math_private.h>.
16577         * math/s_cacoshl.c: Likewise.
16578         * math/s_casinh.c: Likewise.
16579         * math/s_casinhf.c: Likewise.
16580         * math/s_casinhl.c: Likewise.
16581         * math/s_ccos.c: Rely entire on ccosh.
16582         * math/s_ccosf.c: Rely entire on ccoshf.
16583         * math/s_ccosl.c: Rely entirely on ccoshl.
16584         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16585         Remove tests for FE_INVALID.
16586         * math/s_ccoshf.c: Likewise.
16587         * math/s_ccoshl.c: Likewise.
16588         * math/s_csin.c: Likewise.
16589         * math/s_csinf.c: Likewise.
16590         * math/s_csinh.c Likewise.
16591         * math/s_csinhf.c: Likewise.
16592         * math/s_csinhl.c: Likewise.
16593         * math/s_csinl.c: Likewise.
16594         * math/s_ctan.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16596         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16597         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16598
16599 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16600
16601         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16602         compilation problems.
16603
16604         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16605         __builtin_expect.
16606
16607 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16608
16609         * sysdeps/i386/configure.in: Test for -mfma4 option.
16610         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16611         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16612         COMMON_CPUID_INDEX_80000001.
16613         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16614         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16615         use it if FMA3 is not supported.
16616         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16617
16618         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16619         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16620
16621 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16622
16623         [BZ #12892]
16624         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16625         it would create a cycle with a link time dependency.
16626
16627 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16628
16629         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16630         instruction.
16631         * string/Makefile (strop-tests): Add rawmemchr.
16632         * string/test-rawmemchr.c: New file.
16633
16634         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16635         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16636         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16637         when compiling str{,n}casecmp and when AVX is available.  Hook up
16638         new optimized code in initializers.
16639
16640 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16641
16642         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16643         __feraiseexcept instead of feraiseexcept.
16644
16645 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16646
16647         * math/math_private.h: Define defaults for libc_fetestexcept and
16648         libc_feupdateenv.
16649         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16650         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16651         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16652         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16653         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16654         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16655         libc_fetestexcept and libc_feupdateenv.
16656
16657         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16658         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16659         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16660         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16661         libc_feholdexcept_setround.
16662
16663         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16664         Add s_nearbyint-c and s_nearbyintf-c.
16665         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16666         nearbyintf inlines.
16667         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16668         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16669         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16670         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16671
16672         * math/math_private.h: Define defaults for libc_fegetround,
16673         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16674         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16675         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16676         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16677         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16678         standard functions.
16679         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16680         Remove comments and hacks for old compiler versions.
16681         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16682         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16683         libc_feholdexceptl.
16684
16685 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16686
16687         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16688         (__feraiseexcept_renamed): Add __NTH.
16689         (feraiseexcept): Add __NTH.  Rename local variables to fix
16690         namespace violations.
16691
16692 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16693
16694         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16695
16696         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16697
16698         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16699         recently added interfaces.
16700         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16701
16702         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16703         about macro parameter expansion.
16704
16705         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16706         __NO_MATH_INLINES is defined.  Cleanups.
16707
16708         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16709         and __floorf is target has SSE4.1.
16710         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16711         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16712         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16713         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16714
16715         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16716         name.
16717         (floorf): Likewise.
16718
16719         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16720
16721 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16722
16723         * misc/sys/cdefs.h: Fix last change.
16724
16725         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16726         database lookup.
16727
16728 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16729
16730         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16731
16732         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16733         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16734         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16735         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16736         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16737         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16738         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16739         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16740         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16741         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16742         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16743         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16744         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16745         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16746         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16747         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16748         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16749         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16750         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16751         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16752         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16753         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16754
16755         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16756         ceil, ceilf, floor, floorf.
16757
16758         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16759         Perform IRELATIVE relocations last.
16760
16761         * elf/do-rel.h: Add another parameter nrelative, replacing the
16762         local variable with the same name.  Change name of the function
16763         to end in Rel or Rela (uppercase).
16764         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16765         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16766         elf_dynamic_do_##reloc function.
16767
16768 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16769
16770         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16771         is sufficient, at least on modern CPUs.
16772
16773         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16774
16775         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16776         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16777
16778         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16779         __expl_finite.
16780         * math/bits/math-finite.h: Add entries for exp.
16781         * math/e_expl.c: Add __*_finite alias.
16782         * sysdeps/i386/fpu/e_exp.S: Likewise.
16783         * sysdeps/i386/fpu/e_expf.S: Likewise.
16784         * sysdeps/i386/fpu/e_expl.c: Likewise.
16785         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16786         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16787         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16788         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16789         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16790         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16791         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16792
16793         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16794         is sufficient, at least on modern CPUs.
16795
16796         * ctype/ctype-info.c (__ctype_init): Define.
16797         * include/ctype.h (__ctype_init): Declare.
16798         (__ctype_b_loc): The variable is always initialized.
16799         (__ctype_toupper_loc): Likewise.
16800         (__ctype_tolower_loc): Likewise.
16801         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16802         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16803
16804 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16805
16806         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16807
16808         * configure.in: Also look in $cxxmachine/include for C++ system
16809         headers.
16810
16811 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16812
16813         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16814         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16815         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16816         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16817         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16818         (USE_AS_WMEMCMP): New macro.
16819         Fixing indents.
16820         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16821         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16822         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16823         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16824         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16825         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16826         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16827         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16828         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16829         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16830         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16831         (USE_AS_WMEMCMP): New macro.
16832         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16833         * sysdeps/string/test-memcmp.c: Update.
16834         Fix simple_wmemcmp.
16835         Add new tests.
16836         * wcsmbs/wmemcmp.c: Update.
16837         (WMEMCMP): New macro.
16838         Fix overflow bug.
16839
16840 2011-10-12  Andreas Jaeger  <aj@suse.de>
16841
16842         [BZ #13268]
16843         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16844
16845 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16846
16847         * libio/iofwide.c (do_length): Avoid warning.
16848
16849         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16850
16851 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16852
16853         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16854
16855         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16856         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16857         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16858         * sysdeps/i386/i686/fpu/e_log.S: New file.
16859         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16860         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16861
16862         * ctype/ctype.h: Add support for inlined isXXX functions when
16863         compiling C++ code.
16864
16865 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16866
16867         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16868
16869         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16870
16871 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16872
16873         [BZ #13291]
16874         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16875
16876 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16877
16878         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16879         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16880         feraiseexcept.
16881
16882         * sysdeps/x86_64/memrchr.S: Check for zero size.
16883
16884         * string/stratcliff.c: Add memrchr tests.
16885
16886 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16887
16888         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16889         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16890         rawmemchr-sse2 rawmemchr-sse2-bsf.
16891         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16892         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16893         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16894         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16895         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16896         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16897         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16898         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16899         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16900         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16901         * string/memrchr.c (MEMRCHR): New macro.
16902
16903 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16904
16905         Add integration with gcc's -ffinite-math-only and optimize wrapper
16906         functions in libm.
16907         * Versions.def: Define GLIBC_2.15 version for libm.
16908         * math/Makefile (headers): Add bits/math-finite.h.
16909         * math/bits/math-finite.h: New file.
16910         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16911         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16912         * math/e_acoshl.c: Add __*_finite alias.
16913         * math/e_acosl.c: Likewise.
16914         * math/e_asinl.c: Likewise.
16915         * math/e_atan2l.c: Likewise.
16916         * math/e_atanhl.c: Likewise.
16917         * math/e_coshl.c: Likewise.
16918         * math/e_exp10.c: Likewise.
16919         * math/e_exp10f.c: Likewise.
16920         * math/e_exp10l.c: Likewise.
16921         * math/e_exp2l.c: Likewise.
16922         * math/e_fmodl.c: Likewise.
16923         * math/e_gammal_r.c: Likewise.
16924         * math/e_hypotl.c: Likewise.
16925         * math/e_j0l.c: Likewise.
16926         * math/e_j1l.c: Likewise.
16927         * math/e_jnl.c: Likewise.
16928         * math/e_lgammal_r.c: Likewise.
16929         * math/e_log10l.c: Likewise.
16930         * math/e_log2l.c: Likewise.
16931         * math/e_logl.c: Likewise.
16932         * math/e_powl.c: Likewise.
16933         * math/e_sinhl.c: Likewise.
16934         * math/e_sqrtl.c: Likewise.
16935         * math/e_scalb.c: Completely rewritten and optimized.
16936         * math/e_scalbf.c: Likewise.
16937         * math/e_scalbl.c: Likewise.
16938         * math/w_acos.c: Likewise.
16939         * math/w_acosf.c: Likewise.
16940         * math/w_acosl.c: Likewise.
16941         * math/w_acosh.c: Likewise.
16942         * math/w_acoshf.c: Likewise.
16943         * math/w_acoshl.c: Likewise.
16944         * math/w_asin.c: Likewise.
16945         * math/w_asinf.c: Likewise.
16946         * math/w_asinl.c: Likewise.
16947         * math/w_atan2.c: Likewise.
16948         * math/w_atan2f.c: Likewise.
16949         * math/w_atan2l.c: Likewise.
16950         * math/w_atanh.c: Likewise.
16951         * math/w_atanhf.c: Likewise.
16952         * math/w_atanhl.c: Likewise.
16953         * math/w_exp10.c: Likewise.
16954         * math/w_exp10f.c: Likewise.
16955         * math/w_exp10l.c: Likewise.
16956         * math/w_fmod.c: Likewise.
16957         * math/w_fmodf.c: Likewise.
16958         * math/w_fmodl.c: Likewise.
16959         * math/w_j0.c: Likewise.
16960         * math/w_j0f.c: Likewise.
16961         * math/w_j0l.c: Likewise.
16962         * math/w_j1.c: Likewise.
16963         * math/w_j1f.c: Likewise.
16964         * math/w_j1l.c: Likewise.
16965         * math/w_jn.c: Likewise.
16966         * math/w_jnf.c: Likewise.
16967         * math/w_log.c: Likewise.
16968         * math/w_logf.c: Likewise.
16969         * math/w_logl.c: Likewise.
16970         * math/w_log10.c: Likewise.
16971         * math/w_log10f.c: Likewise.
16972         * math/w_log10l.c: Likewise.
16973         * math/w_log2.c: Likewise.
16974         * math/w_log2f.c: Likewise.
16975         * math/w_log2l.c: Likewise.
16976         * math/w_pow.c: Likewise.
16977         * math/w_powf.c: Likewise.
16978         * math/w_powl.c: Likewise.
16979         * math/w_remainder.c: Likewise.
16980         * math/w_remainderf.c: Likewise.
16981         * math/w_remainderl.c: Likewise.
16982         * math/w_scalb.c: Likewise.
16983         * math/w_scalbf.c: Likewise.
16984         * math/w_scalbl.c: Likewise.
16985         * math/w_sqrt.c: Likewise.
16986         * math/w_sqrtf.c: Likewise.
16987         * math/w_sqrtl.c: Likewise.
16988         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16989         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16990         used.
16991         * math/math_private.h: Declare __kernel_standard_f.
16992         * math/w_cosh.c: Remove cruft and optimize a bit.
16993         * math/w_coshf.c: Likewise.
16994         * math/w_coshl.c: Likewise.
16995         * math/w_exp2.c: Likewise.
16996         * math/w_exp2f.c: Likewise.
16997         * math/w_exp2l.c: Likewise.
16998         * math/w_hypot.c: Likewise.
16999         * math/w_hypotf.c: Likewise.
17000         * math/w_hypotl.c: Likewise.
17001         * math/w_lgamma.c: Likewise.
17002         * math/w_lgamma_r.c: Likewise.
17003         * math/w_lgammaf.c: Likewise.
17004         * math/w_lgammaf_r.c: Likewise.
17005         * math/w_lgammal.c: Likewise.
17006         * math/w_lgammal_r.c: Likewise.
17007         * math/w_sinh.c: Likewise.
17008         * math/w_sinhf.c: Likewise.
17009         * math/w_sinhl.c: Likewise.
17010         * math/w_tgamma.c: Likewise.
17011         * math/w_tgammaf.c: Likewise.
17012         * math/w_tgammal.c: Likewise.
17013         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17014         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17015         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17016         Minor optimizations.  Pretty printing.  Remove cruft.
17017         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17018         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17019         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17020         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17021         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17022         * sysdeps/i386/fpu/e_asin.S: Likewise.
17023         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17024         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17025         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17026         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17027         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17028         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17029         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17030         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17031         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17032         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17033         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17034         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17035         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17036         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17037         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17038         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17039         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17040         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17041         * sysdeps/i386/fpu/e_log.S: Likewise.
17042         * sysdeps/i386/fpu/e_log10.S: Likewise.
17043         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17044         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17045         * sysdeps/i386/fpu/e_log2.S: Likewise.
17046         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17047         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17048         * sysdeps/i386/fpu/e_logf.S: Likewise.
17049         * sysdeps/i386/fpu/e_logl.S: Likewise.
17050         * sysdeps/i386/fpu/e_pow.S: Likewise.
17051         * sysdeps/i386/fpu/e_powf.S: Likewise.
17052         * sysdeps/i386/fpu/e_powl.S: Likewise.
17053         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17054         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17055         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17056         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17057         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17058         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17059         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17060         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17061         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17062         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17063         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17064         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17065         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17066         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17067         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17068         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17069         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17070         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17071         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17072         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17073         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17074         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17075         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17076         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17077         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17078         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17079         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17080         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17081         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17082         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17083         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17084         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17085         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17086         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17087         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17088         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17089         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17090         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17091         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17092         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17093         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17094         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17095         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17096         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17097         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17098         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17099         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17100         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17101         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17102         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17103         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17104         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17105         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17106         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17107         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17108         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17109         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17110         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17111         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17112         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17113         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17114         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17115         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17116         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17117         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17118         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17119         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17120         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17121         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17122         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17123         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17124         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17125         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17126         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17127         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17128         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17129         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17130         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17131         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17132         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17133         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17134         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17135         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17136         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17137         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17138         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17139         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17140         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17141         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17142         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17143         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17144         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17145         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17146         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17147         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17148         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17149         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17150         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17151         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17152         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17153         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17154         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17155         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17156         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17157         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17158         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17159         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17160         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17161         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17162         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17163         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17164         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17165         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17166         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17167         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17168         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17169         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17170         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17171         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17172         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17173         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17174         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17175         (__isnanf): Likewise.
17176         (__isinf_ns): Likewise.
17177         (__isinf_nsf): Likewise.
17178         (__finite): Likewise.
17179         (__finitef): Likewise.
17180         (__ieee754_sqrt): Define as macro.
17181         (__ieee754_sqrtf): Define as macro.
17182         (__ieee754_sqrtl): Define as macro.
17183         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17184         inlined copy.
17185         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17186         __FINITE_MATH_ONLY__ consistent.
17187         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17188
17189 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17190
17191         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17192         of rawmemchr.
17193
17194         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17195
17196 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17197
17198         * po/ja.po: Update from translation team.
17199
17200 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17201
17202         * locale/programs/locarchive.c (prepare_address_space): New function.
17203         (create_archive, enlarge_archive, open_archive): Use it.
17204
17205         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17206         inside [SHARED], where it is used.
17207
17208         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17209
17210         * nss/getent.c (netgroup_keys): Remove unused variable.
17211         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17212
17213 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17214
17215         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17216         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17217         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17218         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17219         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17220         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17221         * math/Makefile (libm-calls): Add s_isinf_ns.
17222         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17223         * math/multc3.c: Likewise.
17224         * math/s_casin.c: Likewise.
17225         * math/s_casinf.c: Likewise.
17226         * math/s_casinl.c: Likewise.
17227         * math/s_ccos.c: Likewise.
17228         * math/s_ccosf.c: Likewise.
17229         * math/s_ccosl.c: Likewise.
17230         * math/s_ctan.c: Likewise.
17231         * math/s_ctanf.c: Likewise.
17232         * math/s_ctanh.c: Likewise.
17233         * math/s_ctanhf.c: Likewise.
17234         * math/s_ctanhl.c: Likewise.
17235         * math/s_ctanl.c: Likewise.
17236         * math/w_fmod.c: Likewise.
17237         * math/w_fmodf.c: Likewise.
17238         * math/w_fmodl.c: Likewise.
17239         * math/w_remainder.c: Likewise.
17240         * math/w_remainderf.c: Likewise.
17241         * math/w_remainderl.c: Likewise.
17242         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17243         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17244         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17245         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17246         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17247         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17248         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17249         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17250
17251         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17252         of the number.
17253         * stdio-common/printf_fphex.c: Likewise.
17254         * stdio-common/printf_size.c: Likewise.
17255
17256         * math/e_exp10.c: Include math_private.h using <...> not "...".
17257         * math/e_exp10f.c: Likewise.
17258         * math/e_exp10l.c: Likewise.
17259         * math/e_exp2l.c: Likewise.
17260         * math/e_j0l.c: Likewise.
17261         * math/e_j1l.c: Likewise.
17262         * math/e_jnl.c: Likewise.
17263         * math/e_lgammal_r.c: Likewise.
17264         * math/e_rem_pio2l.c: Likewise.
17265         * math/e_scalb.c: Likewise.
17266         * math/e_scalbf.c: Likewise.
17267         * math/e_scalbl.c: Likewise.
17268         * math/k_cosl.c: Likewise.
17269         * math/k_sinl.c: Likewise.
17270         * math/k_tanl.c: Likewise.
17271         * math/s_cacoshf.c: Likewise.
17272         * math/s_catan.c: Likewise.
17273         * math/s_catanf.c: Likewise.
17274         * math/s_catanh.c: Likewise.
17275         * math/s_catanhf.c: Likewise.
17276         * math/s_catanhl.c: Likewise.
17277         * math/s_catanl.c: Likewise.
17278         * math/s_ccosh.c: Likewise.
17279         * math/s_ccoshf.c: Likewise.
17280         * math/s_ccoshl.c: Likewise.
17281         * math/s_cexp.c: Likewise.
17282         * math/s_cexpf.c: Likewise.
17283         * math/s_cexpl.c: Likewise.
17284         * math/s_clog.c: Likewise.
17285         * math/s_clog10.c: Likewise.
17286         * math/s_clog10f.c: Likewise.
17287         * math/s_clog10l.c: Likewise.
17288         * math/s_clogf.c: Likewise.
17289         * math/s_clogl.c: Likewise.
17290         * math/s_csin.c: Likewise.
17291         * math/s_csinf.c: Likewise.
17292         * math/s_csinh.c: Likewise.
17293         * math/s_csinhf.c: Likewise.
17294         * math/s_csinhl.c: Likewise.
17295         * math/s_csinl.c: Likewise.
17296         * math/s_csqrt.c: Likewise.
17297         * math/s_csqrtf.c: Likewise.
17298         * math/s_csqrtl.c: Likewise.
17299         * math/s_ctan.c: Likewise.
17300         * math/s_ctanf.c: Likewise.
17301         * math/s_ctanh.c: Likewise.
17302         * math/s_ctanhf.c: Likewise.
17303         * math/s_ctanhl.c: Likewise.
17304         * math/s_ctanl.c: Likewise.
17305         * math/s_ldexp.c: Likewise.
17306         * math/s_ldexpf.c: Likewise.
17307         * math/s_ldexpl.c: Likewise.
17308         * math/s_significand.c: Likewise.
17309         * math/s_significandf.c: Likewise.
17310         * math/s_significandl.c: Likewise.
17311         * math/w_acos.c: Likewise.
17312         * math/w_acosf.c: Likewise.
17313         * math/w_acosh.c: Likewise.
17314         * math/w_acoshf.c: Likewise.
17315         * math/w_acoshl.c: Likewise.
17316         * math/w_acosl.c: Likewise.
17317         * math/w_asin.c: Likewise.
17318         * math/w_asinf.c: Likewise.
17319         * math/w_asinl.c: Likewise.
17320         * math/w_atan2.c: Likewise.
17321         * math/w_atan2f.c: Likewise.
17322         * math/w_atan2l.c: Likewise.
17323         * math/w_atanh.c: Likewise.
17324         * math/w_atanhf.c: Likewise.
17325         * math/w_atanhl.c: Likewise.
17326         * math/w_cosh.c: Likewise.
17327         * math/w_coshf.c: Likewise.
17328         * math/w_coshl.c: Likewise.
17329         * math/w_dremf.c: Likewise.
17330         * math/w_exp10.c: Likewise.
17331         * math/w_exp10f.c: Likewise.
17332         * math/w_exp10l.c: Likewise.
17333         * math/w_exp2.c: Likewise.
17334         * math/w_exp2f.c: Likewise.
17335         * math/w_fmod.c: Likewise.
17336         * math/w_fmodf.c: Likewise.
17337         * math/w_fmodl.c: Likewise.
17338         * math/w_hypot.c: Likewise.
17339         * math/w_hypotf.c: Likewise.
17340         * math/w_hypotl.c: Likewise.
17341         * math/w_j0.c: Likewise.
17342         * math/w_j0f.c: Likewise.
17343         * math/w_j0l.c: Likewise.
17344         * math/w_j1.c: Likewise.
17345         * math/w_j1f.c: Likewise.
17346         * math/w_j1l.c: Likewise.
17347         * math/w_jn.c: Likewise.
17348         * math/w_jnf.c: Likewise.
17349         * math/w_jnl.c: Likewise.
17350         * math/w_lgamma.c: Likewise.
17351         * math/w_lgamma_r.c: Likewise.
17352         * math/w_lgammaf.c: Likewise.
17353         * math/w_lgammaf_r.c: Likewise.
17354         * math/w_lgammal.c: Likewise.
17355         * math/w_lgammal_r.c: Likewise.
17356         * math/w_log.c: Likewise.
17357         * math/w_log10.c: Likewise.
17358         * math/w_log10f.c: Likewise.
17359         * math/w_log10l.c: Likewise.
17360         * math/w_log2.c: Likewise.
17361         * math/w_log2f.c: Likewise.
17362         * math/w_log2l.c: Likewise.
17363         * math/w_logf.c: Likewise.
17364         * math/w_logl.c: Likewise.
17365         * math/w_pow.c: Likewise.
17366         * math/w_powf.c: Likewise.
17367         * math/w_powl.c: Likewise.
17368         * math/w_remainder.c: Likewise.
17369         * math/w_remainderf.c: Likewise.
17370         * math/w_remainderl.c: Likewise.
17371         * math/w_scalb.c: Likewise.
17372         * math/w_scalbf.c: Likewise.
17373         * math/w_scalbl.c: Likewise.
17374         * math/w_sinh.c: Likewise.
17375         * math/w_sinhf.c: Likewise.
17376         * math/w_sinhl.c: Likewise.
17377         * math/w_sqrt.c: Likewise.
17378         * math/w_sqrtf.c: Likewise.
17379         * math/w_sqrtl.c: Likewise.
17380         * math/w_tgamma.c: Likewise.
17381         * math/w_tgammaf.c: Likewise.
17382         * math/w_tgammal.c: Likewise.
17383
17384         * po/ja.po: Update from translation team.
17385
17386 2011-09-29  Andreas Jaeger  <aj@suse.de>
17387
17388         [BZ #13179]
17389         * sunrpc/netname.c (netname2host): Fix logic.
17390
17391         [BZ #6779]
17392         [BZ #6783]
17393         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17394         correctly.
17395         * math/w_remainder.c (__remainder): Likewise.
17396         * math/w_remainderf.c (__remainderf): Likewise.
17397         * math/libm-test.inc (remainder_test): Add test cases.
17398
17399 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17400
17401         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17402         sdiv_qrnnd.
17403
17404 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17405
17406         * string/test-memcmp.c: Avoid unncessary #defines.
17407         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17408
17409 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17410
17411         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17412         Use new sse2 version for core i3 - i7 as it's faster
17413         than sse42 version.
17414         (bit_Prefer_PMINUB_for_stringop): New.
17415         * sysdeps/x86_64/rawmemchr.S: Update.
17416         Replace with faster SSE2 version.
17417         * sysdeps/x86_64/memrchr.S: New file.
17418         * sysdeps/x86_64/memchr.S: Update.
17419         Replace with faster SSE2 version.
17420
17421 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17422
17423         * elf/dl-load.c (lose): Add cast to avoid warning.
17424
17425 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17426
17427         * po/ca.po: Update from translation team.
17428
17429         * inet/getnetgrent_r.c: Hook up nscd.
17430         * nscd/Makefile (routines): Add nscd_netgroup.
17431         (nscd-modules): Add netgroupcache.
17432         (CFLAGS-netgroupcache.c): Define.
17433         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17434         (cache_search): Add const to second parameter.
17435         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17436         INNETGR.
17437         (dbs): Add netgrdb entry.
17438         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17439         (verify_persistent_db): Handle netgrdb.
17440         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17441         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17442         GETFDNETGR.
17443         (netgroup_response_header): Define.
17444         (innetgroup_response_header): Define.
17445         (datahead): Add netgroup_response_header and innetgroup_response_header
17446         elements.
17447         * nscd/nscd.conf: Add entries for netgroup cache.
17448         * nscd/nscd.h (dbtype): Add netgrdb.
17449         (_PATH_NSCD_NETGROUP_DB): Define.
17450         (netgroup_iov_disabled): Declare.
17451         (xmalloc, xcalloc, xrealloc): Move declarations here.
17452         (cache_search): Adjust prototype.
17453         Add netgroup-related prototypes.
17454         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17455         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17456         (__nscd_innetgr): Declare.
17457         * nscd/selinux.c (perms): Use access_vector_t as element type and
17458         add netgroup-related initializers.
17459         * nscd/netgroupcache.c: New file.
17460         * nscd/nscd_netgroup.c: New file.
17461         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17462         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17463         For four parameters use innetgr.
17464         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17465         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17466         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17467         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17468
17469         * nscd/connections.c (register_traced_file): Don't register file
17470         for disabled databases.
17471
17472 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17473
17474         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17475
17476         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17477         from tree and freeing node.
17478
17479 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17480
17481         * nss/nsswitch.c (__nss_database_lookup): Handle
17482         nss_parse_service_list out of memory case.
17483
17484 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17485
17486         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17487         out of memory case.
17488
17489 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17490
17491         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17492         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17493         pass it down.
17494         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17495         elf_machine_rela, elf_machine_lazy_rel.
17496         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17497         (ELF_DYNAMIC_DO_REL): Likewise.
17498         (ELF_DYNAMIC_DO_RELA): Likewise.
17499         (ELF_DYNAMIC_RELOCATE): Likewise.
17500         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17501         to ELF_DYNAMIC_DO_REL.
17502         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17503         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17504         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17505         elf_machine_rela.
17506         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17507         skip_ifunc, don't call ifunc function if non-zero.
17508         (elf_machine_rela): Likewise.
17509         (elf_machine_lazy_rel): Likewise.
17510         (elf_machine_lazy_rela): Likewise.
17511         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17512         (elf_machine_lazy_rel): Likewise.
17513         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17514         Likewise.
17515         (elf_machine_lazy_rel): Likewise.
17516         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17517         Likewise.
17518         (elf_machine_lazy_rel): Likewise.
17519         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17520         (elf_machine_lazy_rel): Likewise.
17521         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17522         (elf_machine_lazy_rel): Likewise.
17523         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17524         (elf_machine_lazy_rel): Likewise.
17525         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17526         (elf_machine_lazy_rel): Likewise.
17527         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17528         (elf_machine_lazy_rel): Likewise.
17529         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17530         (elf_machine_lazy_rel): Likewise.
17531
17532 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17533
17534         * nss/nss_files/files-init.c (_nss_files_init): Use static
17535         initialization for all the *_traced_file variables.
17536
17537 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17538
17539         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17540
17541 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17542
17543         [BZ #13226]
17544         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17545
17546 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17547
17548         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17549         Reread the line before reparsing it.
17550
17551 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17552
17553         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17554
17555 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17556             Maxim Kuvyrkov  <maxim@codesourcery.com>
17557             Joseph Myers  <joseph@codesourcery.com>
17558
17559         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17560         if needed for __stack_chk_guard.
17561
17562 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17563
17564         * sysdeps/posix/spawni.c (script_execute): Always define it.
17565         It will be optimized away if unused.
17566         (maybe_script_execute): New function.
17567         (__spawni): Call it.
17568
17569         * Makerules: Don't include tls.make.
17570         (config-tls): Always set to thread.
17571         * tls.make.c: File removed.
17572
17573 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17574
17575         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17576         * config.make.in (CPPFLAGS-config): New substituted variable.
17577
17578 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17579
17580         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17581
17582         [BZ #13192]
17583         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17584         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17585
17586 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17587
17588         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17589         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17590         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17591         (CALL_FAIL): Likewise.
17592         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17593         (CALL_FAIL): Macro removed.
17594         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17595
17596 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17597
17598         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17599         for __FINITE_MATH_ONLY__ == 1.
17600
17601 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17602
17603         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17604         __ieee754_sqrt instead of sqrt.
17605         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17606         __ieee754_sqrtf instead of sqrtf.
17607         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17608         __floorf instead of floorf.
17609         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17610         __floorf, __truncf instead of floorf, truncf.
17611
17612 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17613
17614         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17615
17616         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17617         __extern_always_inline.
17618         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17619         32-bit.
17620
17621 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17622
17623         * elf/rtld.c (dl_main): Also relocate in dependency order when
17624         doing symbol dependency testing.
17625
17626 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17627
17628         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17629         Always define `refsym'.
17630
17631 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17632
17633         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17634         (__FD_ELT): Renamed from __FDELT.
17635         * misc/bits/select2.h (__FD_ELT): Likewise.
17636         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17637         __FD_MASK instead of __FDELT, __FDMASK.
17638         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17639         Likewise.
17640         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17641         Likewise.
17642
17643         * elf/Makefile (gen-ldd): Fix pattern.
17644
17645         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17646         (init_tls): Likewise.
17647
17648 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17649
17650         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17651
17652 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17653
17654         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17655         `struct cmsghdr *' instead of `void *'.
17656         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17657         Likewise.
17658
17659 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17660
17661         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17662         if non-absolute.
17663         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17664         ldd_rewrite_script.
17665
17666 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17667
17668         * configure.in: Remove --with-tls option.
17669         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17670         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17671         out in case it is missing.
17672         * sysdeps/ia64/elf/configure.in: Likewise.
17673         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17674         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17675         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17676         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17677         * sysdeps/sh/elf/configure.in: Likewise.
17678         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17679         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17680         * sysdeps/x86_64/elf/configure.in: Likewise.
17681         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17682         * sysdeps/mach/hurd/tls.h: Likewise.
17683
17684         [BZ #13067]
17685         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17686
17687         [BZ #13090]
17688         * configure.in: Fix use of AC_INIT.
17689
17690         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17691
17692 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17693
17694         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17695         __set_errno.
17696         * malloc/hooks.c: Likewise.
17697
17698         [BZ #11929]
17699         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17700         variables statically.
17701         (narenas): Initialize.
17702         (list_lock): Initialize.
17703         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17704         initializtion of main_arena and list_lock.  Small cleanups.
17705         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17706         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17707         Add initializers to main_arena and mp_.
17708         (malloc_state): Remove pagesize member.  Change all users to use
17709         GLRO(dl_pagesize).
17710
17711         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17712         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17713         is always initialized.
17714
17715         * malloc/malloc.c: Removed unused configurations and dead code.
17716         * malloc/arena.c: Likewise.
17717         * malloc/hooks.c: Likewise.
17718         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17719
17720         * include/tls.h: Removed.  USE___THREAD must always be defined.
17721         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17722         * elf/dl-libc.c: Likewise.
17723         * elf/dl-tsd.c: Likewise.
17724         * include/errno.h: Likewise.
17725         * include/netdb.h: Likewise.
17726         * include/resolv.h: Likewise.
17727         * inet/herrno-loc.c: Likewise.
17728         * inet/herrno.c: Likewise.
17729         * malloc/arena.c: Likewise.
17730         * malloc/hooks.c: Likewise.
17731         * malloc/malloc.c: Likewise.
17732         * resolv/res-state.c: Likewise.
17733         * resolv/res_libc.c: Likewise.
17734         * sysdeps/i386/dl-machine.h: Likewise.
17735         * sysdeps/ia64/dl-machine.h: Likewise.
17736         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17737         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17738         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17739         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17740         * sysdeps/sh/dl-machine.h: Likewise.
17741         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17742         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17743         * sysdeps/unix/i386/sysdep.S: Likewise.
17744         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17745         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17746         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17747         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17748         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17749         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17750         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17752         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17753         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17754         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17755         * sysdeps/x86_64/dl-machine.h: Likewise.
17756         * tls.make.c: Likewise.
17757
17758         * configure.in: Remove --with-__thread option.  Make tests for
17759         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17760         tls_model attribute fail if no support is available.  Remove
17761         USE_IN_LIBIO.
17762         * Makeconfig: Adjust for dropped configure option.  All features are
17763         now mandatory.
17764         * Makerules: Likewise.
17765         * Versions.def: Likewise.
17766         * argp/argp-fmtstream.c: Likewise.
17767         * argp/argp-fmtstream.h: Likewise.
17768         * argp/argp-help.c: Likewise.
17769         * assert/assert.c: Likewise.
17770         * config.h.in: Likewise.
17771         * config.make.in: Likewise.
17772         * configure: Likewise.
17773         * configure.in: Likewise.
17774         * csu/Versions: Likewise.
17775         * csu/init.c: Likewise.
17776         * elf/tst-audit2.c: Likewise.
17777         * elf/tst-tls10.c: Likewise.
17778         * elf/tst-tls10.h: Likewise.
17779         * elf/tst-tls11.c: Likewise.
17780         * elf/tst-tls12.c: Likewise.
17781         * elf/tst-tls14.c: Likewise.
17782         * elf/tst-tlsmod11.c: Likewise.
17783         * elf/tst-tlsmod12.c: Likewise.
17784         * elf/tst-tlsmod13.c: Likewise.
17785         * elf/tst-tlsmod13a.c: Likewise.
17786         * elf/tst-tlsmod14a.c: Likewise.
17787         * elf/tst-tlsmod15b.c: Likewise.
17788         * elf/tst-tlsmod16a.c: Likewise.
17789         * elf/tst-tlsmod16b.c: Likewise.
17790         * elf/tst-tlsmod7.c: Likewise.
17791         * elf/tst-tlsmod8.c: Likewise.
17792         * elf/tst-tlsmod9.c: Likewise.
17793         * gmon/gmon.c: Likewise.
17794         * grp/fgetgrent_r.c: Likewise.
17795         * grp/putgrent.c: Likewise.
17796         * hurd/fopenport.c: Likewise.
17797         * include/libc-symbols.h: Likewise.
17798         * include/tls.h: Likewise.
17799         * intl/gettextP.h: Likewise.
17800         * intl/loadinfo.h: Likewise.
17801         * locale/global-locale.c: Likewise.
17802         * locale/localeinfo.h: Likewise.
17803         * mach/devstream.c: Likewise.
17804         * malloc/arena.c: Likewise.
17805         * malloc/set-freeres.c: Likewise.
17806         * misc/err.c: Likewise.
17807         * misc/getttyent.c: Likewise.
17808         * misc/mntent_r.c: Likewise.
17809         * posix/getopt.c: Likewise.
17810         * posix/wordexp.c: Likewise.
17811         * pwd/fgetpwent_r.c: Likewise.
17812         * resolv/Versions: Likewise.
17813         * resolv/res_hconf.c: Likewise.
17814         * shadow/fgetspent_r.c: Likewise.
17815         * shadow/putspent.c: Likewise.
17816         * stdio-common/printf_fphex.c: Likewise.
17817         * stdio-common/tmpfile.c: Likewise.
17818         * stdlib/abort.c: Likewise.
17819         * stdlib/fmtmsg.c: Likewise.
17820         * sunrpc/auth_unix.c: Likewise.
17821         * sunrpc/clnt_perr.c: Likewise.
17822         * sunrpc/clnt_tcp.c: Likewise.
17823         * sunrpc/clnt_udp.c: Likewise.
17824         * sunrpc/clnt_unix.c: Likewise.
17825         * sunrpc/openchild.c: Likewise.
17826         * sunrpc/svc_simple.c: Likewise.
17827         * sunrpc/svc_tcp.c: Likewise.
17828         * sunrpc/svc_udp.c: Likewise.
17829         * sunrpc/svc_unix.c: Likewise.
17830         * sunrpc/xdr.c: Likewise.
17831         * sunrpc/xdr_array.c: Likewise.
17832         * sunrpc/xdr_rec.c: Likewise.
17833         * sunrpc/xdr_ref.c: Likewise.
17834         * sunrpc/xdr_stdio.c: Likewise.
17835
17836 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17837
17838         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17839
17840 2011-07-03  Andreas Jaeger  <aj@suse.de>
17841
17842         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17843         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17844         regenerate with gen-libm-tests.pl.
17845
17846 2010-05-12  Petr Baudis  <pasky@suse.cz>
17847
17848         [BZ #11589]
17849         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17850         around j0() zero points by switching to j1().
17851         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17852         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17853         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17854         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17855
17856 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17857
17858         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17859         instead of 0.
17860         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17861         instead of 0.                              .
17862         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17863         Patch in part by Pavel Roskin <proski@gnu.org>.
17864
17865         [BZ #13138]
17866         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17867         realloc.
17868         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17869         Free memory block if necessary.
17870
17871         [BZ #12847]
17872         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17873         be NULL.  Don't lock in this case.
17874
17875 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17876
17877         * elf/elf.h (ELFOSABI_GNU): New macro.
17878         (ELFOSABI_LINUX): Define to that.
17879
17880 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17881
17882         * string/strncat.c (strncat): Undef the symbol in case it has been
17883         defined in bits/string.h.
17884
17885 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17886
17887         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17888
17889         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17890         link map.
17891
17892 2011-08-17  Andreas Jaeger  <aj@suse.de>
17893
17894         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17895
17896 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17897             Ian Lance Taylor  <iant@google.com>
17898
17899         * math/libm-test.inc (lround_test): New testcase.
17900         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17901
17902 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17903
17904         * Makefile: Remove support for automatic cvs check-ins.
17905         * Makerules: Likewise.
17906         * config.make.in: Likewise.
17907         * configure.in: Likewise.
17908         * intl/Makefile: Likewise.
17909         * locale/Makefile: Likewise.
17910         * po/Makefile: Likewise.
17911         * posix/Makefile: Likewise.
17912         * sysdeps/gnu/Makefile: Likewise.
17913         * sysdeps/mach/hurd/Makefile: Likewise.
17914         * sysdeps/sparc/sparc32/Makefile: Likewise.
17915
17916         [BZ #13118]
17917         * posix/Makefile (bug-regex32-ENV): Define.
17918         Patch by John Stanley <jpsinthemix@verizon.net>.
17919
17920         * misc/Makefile (headers): Add bits/select2.h.
17921         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17922         * misc/bits/select2.h: New file.
17923         * include/bits/select2.h: New file.
17924         * debug/Makefile (routines): Add fdelt_chk.
17925         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17926         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17927         FD_ISSET.
17928         * debug/fdelt_chk.c: New file.
17929
17930         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17931         * wcsmbs/test-wmemcmp.c: Likewise.
17932         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17933         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17934
17935 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17936
17937         * string/Makefile (strop-tests): Add memcmp.
17938         * string/test-wmemcmp.c: New file.
17939         * string/test-memcmp.c: Add wmemcmp support.
17940
17941 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17942
17943         [BZ #13153]
17944         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17945         2011-07-19 change.
17946
17947         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17948         garbage value in a __mach_port_mod_refs call in the cases of the
17949         task-self and thread-self ports.
17950
17951 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17952
17953         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17954
17955 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17956
17957         * elf/dl-load.c (lose): Check for non-null L.
17958
17959 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17960
17961         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17962
17963         * elf/dl-libc.c (dlerror_run): Pass back error code from
17964         dl_catch_error.
17965
17966         [BZ #13123]
17967         * elf/dl-load.c (lose): Free l_origin if it is valid.
17968
17969         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17970         names.
17971         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17972         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17973         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17974         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17975         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17976         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17977
17978 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17979
17980         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17981         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17982         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17983         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17984         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17985         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17986         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17987         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17988         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17989         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17990
17991 2011-08-15  Alan Modra  <amodra@gmail.com>
17992
17993         [BZ #13092]
17994         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17995         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17996         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17997         ppc_mcount to static-only-routines.
17998         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17999         __mcount_internal.
18000         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18001         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18002
18003 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18004
18005         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18006         for finite and infinity parameters.
18007
18008 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18009
18010         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18011         and add nop instructions for throughput optimization.
18012         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18013
18014 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18015
18016         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18017         aligned copy for power7 with vector-scalar instructions.
18018         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18019
18020 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18021
18022         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18023         AVX check.
18024
18025 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18026
18027         [BZ #13144]
18028         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18029         last change.
18030
18031 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18032
18033         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18034         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18035         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18036         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18037         clock_gettime.
18038
18039 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18040
18041         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18042         Forgot to demangle the pointer.
18043
18044         * sysdeps/i386/sysdep.h: Define atom_text_section.
18045         * sysdeps/x86_64/sysdep.h: Likewise.
18046         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18047         section with atom_text_section.
18048         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18049         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18050         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18051         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18052         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18053
18054         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18055         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18056         already be defined.  Change to take two parameters and don't assign
18057         result to variable.  Adjust all users.
18058         Define INTERNAL_GETTIME if not already defined.
18059         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18060         call.
18061         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18062         HAVE_CLOCK_GETTIME_VSYSCALL.
18063         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18064
18065         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18066         gettimeofday vsyscall, just use time.
18067
18068 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18069
18070         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18071         <errno.h>.
18072
18073 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18074
18075         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18076         syscall on x86-64.
18077         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18078         syscall.
18079         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18080         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18081         syscall if possible.
18082
18083 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18084
18085         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18086         e_ident.  Don't pass to find_mapsXX.
18087         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18088
18089 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18090
18091         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18092         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18093         * sysdeps/x86_64/multiarch/strchr.S: Update.
18094         Check bit_slow_BSF bit.
18095         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18096         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18097         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18098
18099 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18100
18101         [BZ #13134]
18102         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18103         before glibc 2.15.
18104         (tryshell): Define.
18105         (__spawni): Change last parameter to be flag.  Test
18106         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18107         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18108         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18109         * posix/spawni.c: Likewise.
18110         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18111         * posix/spawnp.c: Likewise.  Change normal version to use
18112         SPAWN_XFLAGS_USE_PATH.
18113         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18114         SPAWN_XFLAGS_TRY_SHELL.
18115
18116         [BZ #13150]
18117         * posix/glob.h: Remove gcc 1.x support.
18118
18119         [BZ #13068]
18120         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18121
18122 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18123
18124         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18125         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18126         strrchr-sse2-bsf
18127         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18128         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18129         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18130         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18131         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18132         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18133
18134 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18135
18136         * sysdeps/x86_64/wcscmp.S: New file.
18137
18138         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18139         wcscmp-c wcscmp-sse2
18140         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18141         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18142         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18143         * wcsmbs/wcscmp.c: Allow renaming.
18144
18145 2011-09-05  David S. Miller  <davem@davemloft.net>
18146
18147         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18148         stack slot, rather than the struct return pointer slot.
18149         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18150         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18152         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18153
18154 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18155
18156         * po/ja.po: Update from translation team.
18157
18158         [BZ #13144]
18159         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18160         kernel in 64-bit binaries.
18161
18162 2011-09-01  David S. Miller  <davem@davemloft.net>
18163
18164         * elf/elf.h (HWCAP_SPARC_*): Move to..
18165         * sysdeps/sparc/sysdep.h: this new file and add new values.
18166         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18167         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18168         _DL_HWCAP_COUNT to 24.
18169         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18170         entries.
18171         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18172         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18173         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18174         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18175         instead of magic constants.
18176         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18177
18178 2011-08-31  David S. Miller  <davem@davemloft.net>
18179
18180         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18181         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18182         Reimplement to do errno handling inline.
18183         (SYSCALL_ERROR_HANDLER): New macro.
18184         (__SYSCALL_STRING): Do not do errno handling in asm.
18185         (__CLONE_SYSCALL_STRING): Delete.
18186         (__INTERNAL_SYSCALL_STRING): Delete.
18187         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18188         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18189         (PSEUDO): Reimplement to do errno handling inline.
18190         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18191         (SYSCALL_ERROR_HANDLER): New macro.
18192         (__SYSCALL_STRING): Do not do errno handling in asm.
18193         (__CLONE_SYSCALL_STRING): Delete.
18194         (__INTERNAL_SYSCALL_STRING): Delete.
18195         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18196         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18197         i386.
18198         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18199         (inline_syscall*): Add 'err' argument.
18200         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18201         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18202         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18203         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18204
18205         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18206         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18207
18208 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18209
18210         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18211
18212 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18213
18214         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18215         directive.
18216
18217 2011-08-24  David S. Miller  <davem@davemloft.net>
18218
18219         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18220
18221 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18222
18223         * elf/Makefile: Add rules to build and run unload8 test.
18224         * elf/unload8.c: New file.
18225         * elf/unload8mod1.c: New file.
18226         * elf/unload8mod1x.c: New file.
18227         * elf/unload8mod2.c: New file.
18228         * elf/unload8mod3.c: New file.
18229
18230         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18231         it wasn't used.
18232
18233 2011-08-23  David S. Miller  <davem@davemloft.net>
18234
18235         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18236         subtract stack bias.
18237         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18238         %sp not %fp in calculations.
18239         (_JMPBUF_UNWINDS_ADJ): Likewise.
18240
18241         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18242         (aio_suspend): Call it to force an exception region around the
18243         AIO_MISC_WAIT() invocation.
18244
18245 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18246
18247         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18248         backslash.
18249
18250 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18251
18252         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18253         protection macro.
18254         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18255         and <dl-machine.h>.
18256         (Elf64_FuncDesc): Remove.
18257
18258 2011-08-22  David S. Miller  <davem@davemloft.net>
18259
18260         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18261         sigaltstack check, add missing cfi directives.
18262         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18263         missing cfi directives, and sigaltstack handling.
18264
18265 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18266
18267         [BZ #11724]
18268         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18269         object is seen twice.
18270         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18271
18272         * elf/Makefile (distribute): Add tst-initorder2.c.
18273         (tests): Add tst-initorder2.
18274         (modules-names): Add tst-initorder2a tst-initorder2b
18275         tst-initorder2c tst-initorder2d.  Add rules to build them.
18276         ($(objpfx)tst-initorder2.out): New rule.
18277         * elf/tst-initorder2.c: New file.
18278         * elf/tst-initorder2.exp: New file.
18279
18280 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18281
18282         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18283
18284         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18285         dependencies back to end of function.
18286
18287         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18288         $(elfobjdir)/ld.so.
18289
18290 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18291
18292         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18293         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18294         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18295         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18296         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18297         of __vdso_gettimeofday.
18298         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18299         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18300         attribute_hidden.
18301         (_libc_vdso_platform_setup): Remove initialization of
18302         __vdso_gettimeofday and __vdso_time.
18303
18304 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18305
18306         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18307         and fgetc_unlocked.
18308         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18309         getc_unlocked.
18310
18311         * elf/dl-open.c (add_to_global): Report additions to the global scope
18312         for LD_DEBUG=scopes.
18313         (dl_open_worker): Also print scope of newly loaded dependencies.
18314         (_dl_show_scope): Indicate if there is no scope.
18315
18316         [BZ #13114]
18317         * stdio-common/Makefile (tests): Add bug24.
18318         * stdio-common/bug24.c: New file.
18319
18320 2011-08-19  Andreas Jaeger  <aj@suse.de>
18321
18322         [BZ #13114]
18323         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18324         non-existant file when using close-on-exec mode.
18325
18326 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18327
18328         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18329         the very first instruction.
18330
18331         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18332         the CFI state in the end.
18333         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18334         inclusion of dl-trampoline.h.
18335         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18336
18337 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18338
18339         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18340         expectations for long double.
18341
18342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18343         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18344
18345 2011-08-14  David S. Miller  <davem@davemloft.net>
18346
18347         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18348         artificual limit depends upon the system page size.
18349
18350 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18351
18352         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18353         * resolv/Makefile: Define CFLAGS-libresolv.
18354
18355 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18356
18357         * nss/makedb.c (compute_tables): Make variables used in nested
18358         function static.
18359
18360 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18361
18362         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18363         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18364         if buffer was too small.
18365
18366         * elf/pldd.c (main): Attach to all threads in the process.
18367         Rewrite /proc handling to use *at functions.
18368
18369 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18372         specifies first scope to show.
18373         (dl_open_worker): Update callers.  Move printing scope of new
18374         object to before the relocation.
18375         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18376         * sysdeps/generic/ldsodefs.h: Update declaration.
18377
18378         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18379         string for the scope number.
18380
18381 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18382
18383         * nscd/servicescache.c (cache_addserv): Make sure written is always
18384         initialized.
18385
18386 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18387
18388         * sysdeps/i386/i486/bits/atomic.h
18389         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18390         statement expression, so as to suppress "set but not used" warning.
18391         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18392
18393         * string/strncat.c (STRNCAT): Use prototype definition.
18394
18395         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18396         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18397         -Iprograms here.
18398         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18399         (localedef-modules): Add localedef.
18400         (locale-modules): Add locale.
18401
18402         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18403         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18404         to avoid a warning.
18405
18406 2011-08-14  David S. Miller  <davem@davemloft.net>
18407
18408         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18409         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18410
18411 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18412
18413         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18414         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18415         * elf/rtld.c (dl_main): Set l_name of vDSO.
18416         Call _dl_show_scope when DL_DEBUG_SCOPES.
18417         (process_dl_debug): Recognize scopes flag and also set it for all.
18418         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18419         Declare _dl_show_scope.
18420
18421         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18422         (do_dlopen): Pass caller_dlopen to dl_open.
18423         (__libc_dlopen_mode): Initialize caller_dlopen.
18424
18425         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18426         of libc.  Make tolower call locale-independent.  Optimize a bit by
18427         using isdigit instead of isalnum.
18428         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18429
18430 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18431
18432         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18433         was a dependency or dynamically loaded.
18434
18435 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18436
18437         * intl/l10nflist.c: Allow architecture-specific pop function.
18438         * sysdeps/x86_64/l10nflist.c: New file.
18439
18440         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18441         classification.
18442
18443 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18444
18445         * include/dirent.h: Add libc_hidden_proto for scandirat and
18446         scandirat64.  Don't declare __scandirat64.
18447         * dirent/scandirat.c: Add libc_hidden_def.
18448         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18449         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18450
18451 2011-08-10  David S. Miller  <davem@davemloft.net>
18452
18453         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18454         enum.
18455         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18456         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18457         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18458
18459 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18460
18461         * Versions.def [libc]: Add GLIBC_2.15.
18462         * dirent/Makefile (routines): Add scandirat and scandirat64.
18463         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18464         GLIBC_2.15.
18465         * dirent/dirent.h: Declare scandirat and scandirat64.
18466         * dirent/scandirat.c: New file.
18467         * dirent/scandirat64.c: New file.
18468         * sysdeps/wordsize-64/scandirat.c: New file.
18469         * sysdeps/wordsize-64/scandirat64.c: New file.
18470         * dirent/opendir.c: Define opendirat.
18471         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18472         using scandirat.
18473         * dirent/scandir64.c: Adjust for scandir.c change.
18474         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18475         __scandirat64, and __scandir_cancel_handler.
18476         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18477         additional parameter and use openat instead of open (outside of ld.so).
18478         Add new __opendir as wrapper around __opendirat.
18479         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18480         here without requiring old scandirat implementation.
18481
18482 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18483
18484         * dirent/scandir.c (cancel_handler): Renamed to
18485         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18486         defined.  Adjust users.
18487         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18488         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18489
18490 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18491
18492         * string/test-string.h (IMPL): Use __STRING to expand name and then
18493         stringify it.
18494
18495         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18496         of cleanups.
18497
18498 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18499
18500         * string/Makefile: Update.
18501         (strop-tests): Append strncat.
18502         * string/test-wcscmp.c: New file.
18503         New comprehensive test for wcscmp.
18504         * string/test-strcmp.c: Update.
18505         (WIDE): New define.
18506
18507 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18508
18509         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18510         line.
18511
18512 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18513
18514         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18515         encoding to ACE if AI_IDN.
18516
18517 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18518
18519         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18520         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18521
18522 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18523
18524         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18525         Fix overflow bug in strncat.
18526         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18527
18528         * string/test-strncat.c: Update.
18529         Add new tests for checking overflow bugs.
18530
18531 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18532
18533         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18534         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18535         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18536         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18537         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18538         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18539         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18540         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18541         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18542
18543         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18544         (USE_AS_STRCAT): Define.
18545         Add strcat and strncat support.
18546         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18547
18548 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18549
18550         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18551         __n bigger than INT_MAX+1.
18552         (__strncmp_g): Likewise.
18553
18554 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18555
18556         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18557         * libio/stido.h: Likewise.
18558
18559         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18560         (AF_NFC): Define.
18561         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18562         (AF_NFC): Define.
18563
18564         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18565         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18566         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18567         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18568         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18569
18570         [BZ #13021]
18571         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18572         installed.
18573
18574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18575         typo.
18576         (_dl_x86_64_save_sse): Likewise.
18577
18578 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18579
18580         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18581         OSXSAVE.
18582         (_dl_x86_64_save_sse): Likewise.
18583
18584         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18585
18586         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18587
18588 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18589
18590         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18591         change.
18592         (_dl_x86_64_save_sse): Use correct AVX check.
18593
18594 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18595
18596         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18597         bug in strncpy/strncat.
18598         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18599
18600 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18601
18602         * string/tester.c (test_strcat): Add tests for different alignments
18603         of source and destination.
18604         (test_strncat): Likewise.
18605
18606 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18607
18608         [BZ #12852]
18609         * posix/glob.c (glob): Check passed in values before using them in
18610         expressions to avoid some overflows.
18611         (glob_in_dir): Likewise.
18612
18613         [BZ #13007]
18614         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18615         check for AVX enablement so that we don't crash with old kernels and
18616         new hardware.
18617         * elf/tst-audit4.c: Add same checks here.
18618         * elf/tst-audit6.c: Likewise.
18619
18620         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18621
18622 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18623
18624         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18625
18626 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18627
18628         * po/cs.po: Update from translation team.
18629         * po/bg.po: Likewise.
18630
18631 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18632
18633         * misc/sys/cdefs.h: Add support for const attribute.
18634         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18635         to gnu_dev_{major,minor,makedev} functions.
18636
18637 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18638
18639         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18640
18641 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18642
18643         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18644         strlen results.
18645
18646 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18647
18648         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18649         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18650         register in order to avoid conflicts with the soft frame pointer
18651         being held in r11 when necessary.
18652         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18653         (INTERNAL_VSYSCALL_NCS): Likewise.
18654
18655 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18656
18657         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18658         * elf/dl-fini.c (_dl_fini): Adjust caller.
18659         * elf/dl-close.c (_dl_close_worker): Likewise.
18660         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18661
18662 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18663
18664         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18665         "aux_cache->nlibs < 0".
18666
18667         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18668         in the reload-count case.
18669
18670 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18671
18672         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18673         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18674         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18675         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18676         * sysdeps/x86_64/multiarch/strcat.S: New file.
18677         * sysdeps/x86_64/multiarch/strncat.S: New file.
18678         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18679         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18680         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18681         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18682         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18683         (USE_AS_STRCAT): Define.
18684         Add strcat and strncat support.
18685         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18686         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18687         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18688         * string/strncat.c: Update.
18689         (USE_AS_STRNCAT): Define.
18690         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18691         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18692         and i7.
18693         * sysdeps/x86_64/multiarch/init-arch.h
18694         (bit_Prefer_PMINUB_for_stringop): New.
18695         (index_Prefer_PMINUB_for_stringop): Likewise.
18696         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18697         bit_Prefer_PMINUB_for_stringop.
18698
18699 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18700
18701         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18702         buffer64.
18703         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18704         of casting of buffer.
18705         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18706         buffer32 and buffer64.
18707         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18708         writes instead of casting of buffer.
18709         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18710         buffer32.
18711         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18712         casting of buffer.
18713
18714 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18715
18716         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18717
18718 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18719
18720         * nscd/nscd.c (termination_handler): Don't do anything for a database
18721         if it has not yet been initialized.
18722
18723 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18724
18725         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18726
18727 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18728
18729         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18730
18731 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * po/nl.po: Update from translation team.
18734         * po/sv.po: Likewise.
18735
18736 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18737
18738         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18739         now disallowed by GCC.
18740
18741         * configure.in (use-default-link): Default to yes if a test -shared
18742         link meets our qualifications.
18743         * configure: Regenerated.
18744
18745         * config.make.in (output-format): New variable.
18746         * configure.in: Check for ld --print-output-format support.
18747         * configure: Regenerated.
18748         * Makerules ($(common-objpfx)format.lds)
18749         [$(output-format) != unknown]: Just use $(output-format),
18750         instead of the linker-script munging.
18751
18752 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18753
18754         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18755         of $(common-objpfx)shlib.lds.
18756         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18757
18758         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18759         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18760
18761         * configure.in (-z relro check): Adjust test code to add a large
18762         writable data section after it.
18763         * configure: Regenerated.
18764
18765 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18766
18767         * configure.in (-z relro check): Fix test code to make the variable
18768         truly const.
18769         * configure: Regenerated.
18770
18771 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18772
18773         * nscd/nscd.h (struct traced_file): Define.
18774         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18775         elements.  Add traced_files.
18776         (inotify_fd): Declare.
18777         (register_traced_file): Declare.
18778         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18779         (inotify_fd): Export.
18780         (resolv_conf_descr): Remove.
18781         (nscd_init): Move inotify descriptor creation to main.
18782         Don't register files for notification here.
18783         (register_traced_file): New function.
18784         (invalidate_cache): Don't use reset_res to determine whether to call
18785         res_init, go through the list of registered files.
18786         (main_loop_poll): The inotify descriptors are now stored in the
18787         structures for the traced files.
18788         (main_loop_epoll): Likewise
18789         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18790         to __nss_disable_nscd.
18791         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18792         for a database anymore.  Check the records for all the registered
18793         files instead.
18794         * nss/Makefile (libnss_files-routines): Add files-init.
18795         (libnss_db-routines): Add db-init.
18796         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18797         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18798         * nss/nss_db/db-init.c: New file.
18799         * nss/nss_files/files-init.c: New file.
18800         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18801         __nss_lookup_function.
18802         (__nss_lookup_function): Call nss_load_library.
18803         (nss_load_all_libraries): New function.
18804         (__nss_disable_nscd): Take parameter with callback function for files
18805         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18806         used for the cached services.
18807         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18808         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18809         options for features to all the files in nscd.
18810
18811         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18812
18813 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18814
18815         * csu/elf-init.c (__libc_csu_init): Comment typo.
18816
18817 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18818
18819         * po/pl.po: Update from translation team.
18820         * po/ja.po: Likewise.
18821         * po/ru.po: Likewise.
18822         * po/ko.po: Likewise.
18823         * po/fr.po: Likewise.
18824
18825 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18826
18827         * configure.in (.ctors/.dtors header and trailer check):
18828         Use an empirical test on a built program.
18829         * configure: Regenerated.
18830
18831         * configure.in (-z relro check): Use an empirical test on a built DSO.
18832         Detect, but do not require, on ia64.
18833         * configure: Regenerated.
18834
18835         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18836         Update tests that use readelf to use $READELF instead.
18837         * configure: Regenerated.
18838
18839 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18840
18841         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18842         if the result is not used.
18843
18844 2011-07-05  Andreas Jaeger  <aj@suse.de>
18845
18846         [BZ#9696]
18847         * stdlib/tst-strtod.c: Add testcase.
18848
18849 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18850
18851         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18852         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18853         The latter has a higher limit.  Take additional parameter to pass to
18854         the new function.
18855         (__pathconf): Pass file to __statfs_link_max.
18856         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18857         __statfs_link_max.
18858         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18859         __statfs_link_max.
18860
18861         [BZ #12868]
18862         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18863         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18864         Handle Lustre.
18865         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18866         (__statfs_filesize_max): Likewise.
18867         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18868
18869 2011-07-05  Andreas Jaeger  <aj@suse.de>
18870
18871         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18872
18873 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18874
18875         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18876         `status' variable.
18877         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18878         Likewise.
18879
18880 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18881
18882         * Makefile (strop-tests): Add strncat.
18883         * string/test-strncat.c: New file.
18884
18885 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18886
18887         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18888
18889 2011-06-21  Andreas Jaeger  <aj@suse.de>
18890
18891         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18892         Copy rule from iconvdata/Makefile.
18893
18894 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18895
18896         [BZ #12922]
18897         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18898         but no long options are defined, just return 'W'.
18899
18900 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18901
18902         [BZ #9696]
18903         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18904
18905 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18906
18907         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18908         netgroups to read.
18909         (innetgr): Likewise.
18910
18911 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18912
18913         * config.make.in (install_root): Default to $(DESTDIR).
18914
18915 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18916
18917         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18918
18919 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18920
18921         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18922
18923         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18924         containing directory rather than embedding absolute directory names.
18925
18926         * scripts/check-local-headers.sh: Rewritten using awk.
18927         Match by word, not by line.  Print error messages for matches.
18928         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18929
18930         * Makerules [shlib-lds-flags empty]:
18931         ($(common-objpfx)libc_pic.opts): New target.
18932         ($(common-objpfx)libc_pic.os.clean): New target.
18933         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18934
18935         * config.make.in (OBJCOPY): New variable.
18936         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18937         * configure: Regenerated.
18938
18939         * config.make.in (use-default-link): New variable.
18940         * configure.in (use_default_link): Grok --with-default-link to set it.
18941         * configure: Regenerated.
18942         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18943         (shlib-lds, shlib-lds-flags): Define to empty.
18944
18945         * Makerules (shlib-lds): New variable.
18946         (shlib-lds-flags): New variable.
18947         (build-shlib, build-moduile, build-module-asneeded): Use it.
18948         ($(common-objpfx)libc.so): Use $(shlib-lds).
18949         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18950         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18951
18952         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18953         DT_FLAGS/DT_FLAGS_1 with zero flags.
18954
18955         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18956         linker script munging.
18957
18958 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18959
18960         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18961         as 128-bit value.
18962         * crypt/sha512.c (sha512_process_block): Perform total addition using
18963         128-bit if possible.
18964         (__sha512_finish_ctx): Likewise.
18965         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18966         as 64-bit value.
18967         * crypt/sha256.c (SWAP64): Define.
18968         (sha256_process_block): Perform total addition using 64-bit if
18969         possible.
18970         (__sha256_finish_ctx): Likewise.
18971
18972 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18973
18974         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18975         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18976         * nscd/hstcache.c (cache_addhst): Likewise.
18977         * nscd/grpcache.c (cache_addgr): Likewise.
18978         * nscd/aicache.c (addhstaiX): Likewise
18979         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18980
18981 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18982
18983         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18984         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18985         * nscd/hstcache.c (cache_addhst): Likewise.
18986         * nscd/grpcache.c (cache_addgr): Likewise.
18987         * nscd/aicache.c (addhstaiX): Likewise
18988
18989 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18990
18991         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18992         domain only when needed.
18993
18994 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18995
18996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18997         is always restored.
18998
18999 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19000
19001         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19002         are re-adding the entry.
19003         * nscd/servicescache.c (cache_addserv): Likewise.
19004
19005 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19006
19007         * sysdeps/generic/dl-irel.h: fix protection against multiple
19008         inclusions.
19009         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19010
19011 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19012
19013         [BZ #12935]
19014         * malloc/memusage.sh: Fix quoting in message.
19015         * debug/xtrace.sh: Likewise.
19016
19017         * configure.in: Remove support for --experimental-malloc option, make
19018         it the default.
19019         * config.make.in: Likewise.
19020         * malloc/Makefile: Likewise.
19021
19022 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19023
19024         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19025         two-byte characters.
19026
19027 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19028
19029         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19030         AC_CACHE_CHECK invocation.
19031         * configure: Regenerated.
19032
19033         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19034
19035 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19036
19037         [BZ #12350]
19038         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19039         bit from old_res_options.
19040
19041         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19042
19043         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19044         value type for setfct.
19045
19046 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19047
19048         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19049         __gettimeofday instead of gettimeofday.
19050
19051 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19052
19053         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19054
19055 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19056
19057         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19058
19059         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19060         info.
19061
19062 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19063
19064         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19065         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19066         strcpy-sse2-unaligned strncpy-sse2-unaligned
19067         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19068         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19069         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19070         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19071         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19072         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19073         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19074         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19075         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19076         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19077         (STRCPY): Support SSE2 and SSSE3 versions.
19078
19079 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19080
19081         [BZ #12874]
19082         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19083         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19084         kernels which artificially limit size of requests.
19085
19086 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19087
19088         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19089         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19090         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19091         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19092         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19093         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19094         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19095         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19096         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19097         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19098         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19099         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19100         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19101         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19102         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19103         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19104         Enable unaligned load optimization for Intel Core i3, i5 and i7
19105         processors.
19106         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19107         Define.
19108         (index_Fast_Unaligned_Load): Define.
19109         (HAS_FAST_UNALIGNED_LOAD): Define.
19110
19111 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19112
19113         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19114
19115 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19116
19117         [BZ #12907]
19118         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19119         until it is clear that the information is realy needed.
19120         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19121
19122 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19123
19124         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19125
19126 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19127
19128         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19129         /sys/devices/system/cpu/online if it is usable.
19130
19131         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19132         reading the information from the /proc filesystem to once a second.
19133
19134 2011-06-21  Andreas Jaeger  <aj@suse.de>
19135
19136         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19137         NULL after inclusion of kernel headers.
19138
19139 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19140
19141         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19142         calls to internal_setent.
19143
19144         [BZ #12885]
19145         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19146         addresses using gethostbyname4_r ignore IPv4 addresses.
19147
19148         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19149         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19150
19151         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19152
19153 2011-06-20  David S. Miller  <davem@davemloft.net>
19154
19155         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19156         inclusions.
19157         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19158
19159         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19160         (elf_irel): Use it.
19161         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19162         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19163         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19164         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19165         * sysdeps/x86_64/dl-irel.h: Likewise.
19166
19167         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19168         * elf/dl-sym.c: Likewise.
19169
19170 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19171
19172         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19173         need to dereference resplen2.
19174
19175 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19176
19177         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19178
19179 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19180
19181         * Makeconfig: Define vardbdir and inst_vardbdir.
19182         * nss/Makefile: Add rules to install db-Makefile.
19183
19184         * nss/nss_db/db-XXX.c: Cleanup.
19185
19186         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19187         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19188         GLIBC_PRIVATE.
19189         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19190         * nss/makedb.c: Implement -g option to specify that value strings
19191         are generated and should not be added to table iterated over for
19192         get*ent calls.
19193         * nss/nss_db/db-initgroups.c: New file.
19194
19195         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19196         interface.
19197
19198         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19199         (internal_getgrouplist): Adjust to name change.
19200         Update use_initgroups_entry if this is not the first call.
19201         * nss/databases.def: Add initgroups entry.
19202
19203         * nss/makedb.c (compute_tables): Check result of multiple hash table
19204         sizes to minimize maximum chain length.
19205
19206 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19207
19208         * Versions.def: Add entry for libnss_db.
19209         * shlib-versions: Likewise.
19210         * nss/Makefile: Add rules to build libnss_db.
19211         * nss/Versions: Add libnss_db information.  Organize libnss_files
19212         entries better.
19213         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19214         makedb progra.  Some minor improvements to generate smaller files.
19215         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19216         here from...
19217         * nss/makedb.c: ...here.
19218         Improve database format to be smaller and require less memory at
19219         runtime.
19220         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19221         db anymore.
19222         * nss/nss_db/db-netgrp.c: Likewise.
19223         * nss/nss_db/db-open.c: Likewise.
19224         * nss/nss_files/flies-XXX.x: Adjust comments.
19225         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19226         * nss/nss_files/files-grp.c: Likewise.
19227         * nss/nss_files/files-hosts.c: Likewise.
19228         * nss/nss_files/files-network.c: Likewise.
19229         * nss/nss_files/files-proto.c: Likewise.
19230         * nss/nss_files/files-pwd.c: Likewise.
19231         * nss/nss_files/files-rpc.c: Likewise.
19232         * nss/nss_files/files-service.c: Likewise.
19233         * nss/nss_files/files-sgrp.c: Likewise.
19234         * nss/nss_files/files-spwd.c: Likewise.
19235         * nss/nss_db/db-alias.c: Removed.
19236         * nss/nss_db/dummy-db.h: Removed.
19237
19238 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19239
19240         * nss/makedb.c: Rewritten to not use database library.
19241         * nss/Makefile: Update to build new makedb program.
19242
19243 2011-06-14  Andreas Jaeger  <aj@suse.de>
19244
19245         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19246         memset declaration.
19247
19248 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19249
19250         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19251         tmpbuf.
19252
19253 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19254
19255         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19256         * elf/Makefile ($(objpfx)ld.so): Likewise.
19257
19258         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19259         Don't list ld.so twice in dependencies.
19260
19261         * posix/bug-regex31.c: Include <stdlib.h>.
19262
19263         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19264
19265         * nis/nss_compat/compat-spwd.c
19266         (getspent_next_nss_netgr): Remove unused variable.
19267         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19268
19269         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19270         nonmembers" output to use the right array.
19271
19272         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19273
19274         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19275
19276         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19277         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19278         * catgets/gencat.c (read_input_file): Likewise.
19279         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19280
19281         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19282         variable definition inside #if's controlling its use.
19283
19284         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19285
19286         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19287
19288         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19289
19290         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19291         unreachable code.
19292
19293         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19294
19295         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19296         * configure: Regenerated.
19297
19298         * Makerules: Revert last change.
19299         * elf/Makefile: Likewise.
19300
19301 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19302
19303         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19304         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19305         (reloc-link): Likewise.
19306
19307 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19308
19309         * elf/Makefile: Add rules to build pldd.
19310         * elf/pldd.c: New file.
19311         * elf/pldd-xx.c: New file.
19312
19313 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19314
19315         * version.h: Update for 2.15 development version.
19316
19317 2011-06-07  David S. Miller  <davem@davemloft.net>
19318
19319         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19320         ifuncs.
19321         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19322         elf_machine_lazy_rel): Likewise.
19323         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19324         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19325         elf_machine_lazy_rel): Likewise.
19326         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19327         dl_hwcap via passed in argument.
19328         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19329         Likewise.
19330
19331 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19332
19333         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19334
19335 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19336
19337         [BZ #12849]
19338         * manual/fdl-1.1.texi: New file, verbatim from:
19339         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19340         * manual/lgpl-2.1.texi: New file, verbatim from:
19341         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19342         * manual/Makefile (licenses): New variable, list those new file names.
19343         (texis): Use it.
19344         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19345
19346         * manual/fdl.texi: File removed.
19347         * manual/lesser.texi: File removed.
19348         * manual/libc.texinfo (Copying, Documentation License):
19349         Use new @include file names, put @appendix directive before @include.
19350
19351 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19352
19353         [BZ #12841]
19354         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19355         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19356         (mq_open): Add __NTH.
19357
19358 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19359
19360         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19361         Assume Intel Core i3/i5/i7 processor if AVX is available.
19362
19363 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19364
19365         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19366         typo.
19367
19368 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19369
19370         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19371         memory.  Use alloca_account.  Fix memory leak when retrying.
19372
19373 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19374
19375         * version.h (RELEASE): Bump for 2.14 release.
19376         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19377
19378         * config.make.in (RANLIB): Remove entry.
19379
19380 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19381
19382         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19383         (libc.pot): Work around missing support for .ksh extension in xgettext.
19384
19385         [BZ #12684]
19386         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19387         if both request failed.
19388         (send_dg): In case of server errors clear resplen or *resplen2.
19389
19390         [BZ #12454]
19391         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19392         when there are multiple maps.
19393         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19394         (_dl_fini): Remove test here.
19395
19396         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19397
19398 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19399
19400         [BZ #12350]
19401         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19402         bit from old_res_options.
19403         (gaih_inet): Likewise.
19404
19405         [BZ #11099]
19406         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19407         as signed.
19408
19409         * resolv/res_init.c (res_setoptions): Make the code more compact.
19410
19411         [BZ #11558]
19412         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19413         set RES_USEVC.
19414
19415         [BZ #11634]
19416         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19417
19418         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19419
19420         [BZ #11781]
19421         * malloc/malloc.h: Declare malloc hook variables as volatile.
19422
19423         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19424         in last patch.
19425
19426         [BZ #11799]
19427         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19428         raise in the comment.
19429         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19430         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19431         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19432
19433 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19434
19435         [BZ #12811]
19436         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19437         grow the buffers more if it already has to be sufficient.
19438         (build_wcs_upper_buffer): Likewise.
19439         * posix/regexec.c (check_matching): Likewise.
19440         (clean_state_log_if_needed): Likewise.
19441         (extend_buffers): Don't enlarge buffers beyond size of the input
19442         buffer.
19443         Patches mostly by Emil Wojak <emil@wojak.eu>.
19444         * posix/bug-regex32.c: New file.
19445         * posix/Makefile (tests): Add bug-regex32.
19446
19447         * locale/findlocale.c (_nl_find_locale): Return right away if
19448         _nl_explode_name failed.
19449         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19450
19451         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19452
19453         * debug/xtrace.sh: Unify messages.
19454         * malloc/memusage.sh: Likewise.
19455
19456         [BZ #12813]
19457         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19458         time symbol from vDSO.  Substitute with vsyscall if not available.
19459         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19460         __vdso_time.
19461
19462         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19463         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19464         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19465         Add sendmmsg and internal_sendmmsg.
19466         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19467         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19468         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19469
19470         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19471         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19472         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19473
19474 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19475
19476         [BZ #12813]
19477         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19478         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19479         available.
19480         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19481         __vdso_getcpu.
19482
19483         [BZ #12814]
19484         * iconvdata/Makefile (tests): Add bug-iconv9.
19485         * iconvdata/bug-iconv9.c: New file.
19486
19487 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19488
19489         [BZ #12814]
19490         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19491
19492 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19493
19494         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19495         (struct user_regs_struct): Change intcs field back to cs.
19496
19497 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19498
19499         * po/ja.po: Update from translation team.
19500
19501 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19502
19503         [BZ #12795]
19504         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19505         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19506
19507 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19508
19509         * stdlib/longlong.h: Update from GCC.
19510
19511 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19512
19513         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19514         parameter name.
19515         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19516         Add parameter name.
19517         (__sysconf): Pass it down.
19518
19519 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19520
19521         [BZ #12671]
19522         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19523         some situations.
19524         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19525         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19526         add in in __libc_use_alloca calls.  Adjust callers.
19527         (glob): Use malloc in some situations.
19528
19529         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19530         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19531         pltexit.
19532
19533 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19534
19535         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19536         and CLOCK_BOOTTIME_ALARM.
19537
19538         [BZ #12782]
19539         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19540         is returned.
19541
19542         * string/_strerror.c (__strerror_r): Print negative errors as signed
19543         numbers.
19544
19545         [BZ #12777]
19546         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19547         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19548         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19549
19550         * configure.in: Fix typo in redirection and correct removal of test
19551         files in two cases.
19552
19553         [BZ #12788]
19554         * locale/setlocale.c (new_composite_name): Fix test to check for
19555         identical name of all categories.
19556
19557         [BZ #12792]
19558         * libio/filedoalloc.c (local_isatty): New function.
19559         (_IO_file_doallocate): Use local_isatty.
19560         * stdio-common/perror.c (perror): In case a new stream is used
19561         forward the stream error.
19562         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19563         error flag.
19564
19565 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19566
19567         [BZ #11869]
19568         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19569         alloca.
19570         * include/alloca.h (extend_alloca_account): Define.
19571
19572         [BZ #11857]
19573         * posix/regex.h: Fix comments with documentation of user-accessible
19574         fields after compilation and describe correct free'ing of pattern
19575         after re_compile_pattern.
19576         Patch by Reuben Thomas <rrt@sc3d.org>.
19577
19578 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19579
19580         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19581         and -mno-altivec to prevent the compiler from using Altivec and/or
19582         VSX instructions when the corresponding registers are not available.
19583
19584 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19585
19586         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19587
19588 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19589
19590         * libio/freopen.c (freopen): Use __dup2, not dup2.
19591         * libio/freopen64.c (freopen64): Likewise.
19592
19593 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19594
19595         [BZ #12775]
19596         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19597         * math/Makefile (tests): Add test-powl.
19598         (CFLAGS-test-powl.c): Define.
19599         * math/test-powl.c: New file.
19600
19601 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19602
19603         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19604
19605 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19606
19607         [BZ #11837]
19608         * iconvdata/gb18030.c: Update to GB18020-2005.
19609
19610 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19611
19612         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19613         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19614         Patch by Aharon Robbins <arnold@skeeve.com>.
19615
19616         [BZ #11892]
19617         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19618         on the stack.
19619
19620         [BZ #11895]
19621         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19622         through underflows.
19623
19624         [BZ #12766]
19625         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19626         point to strings before performing equality test for error_one_per_line
19627         mode.
19628
19629         [BZ #11697]
19630         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19631
19632         [BZ #11820]
19633         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19634         (struct user_fpregs_struct): Avoid __uint*_t types.
19635
19636         [BZ #6420]
19637         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19638         symbol info.  Use it instead of calling _dl_addr locally.
19639         (lock_and_info): New function.
19640         (tr_freehook): Call lock_and_info and pass symbol info as additional
19641         parameter to tr_where.
19642         (tr_mallochook): Likewise.
19643         (tr_reallochook): Likewise.
19644         (tr_memalignhook): Likewise.
19645
19646         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19647         used and couldn't be at all thread-safe.
19648
19649 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19650
19651         * libio/freopen.c (freopen): Don't close old file descriptor
19652         before the new one is opened.  Instead dup the new file descriptor
19653         to the old one after the new stream is created.
19654         * libio/freopen64.c (freopen64): Likewise.
19655         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19656         * libio/fileops.c (_IO_new_file_close_it): Handle new
19657         _IO_FLAGS2_NOCLOSE flag.
19658         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19659         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19660         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19661         _IO_FLAGS2_NOCLOSE flag.
19662         * include/unistd.h: Add hidden_proto for dup3.
19663         Define __have_dup3.
19664         * io/dup3.c: Define hidden symbol.
19665         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19666
19667         [BZ #7101]
19668         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19669         when an incomplete long option is used.
19670         * posix/tst-getopt_long1.c: New file.
19671         * posix/Makefile (tests): Add tst-getopt_long1.
19672
19673         [BZ #10138]
19674         * scripts/config.guess: Update from autoconf-2.68.
19675         * scripts/config.sub: Likewise.
19676
19677         [BZ #10157]
19678         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19679         tests into ...
19680         (has_cpuclock): ...this.  New function.
19681         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19682         macro here based on has_cpuclock code.
19683
19684         [BZ #10149]
19685         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19686         First byte (not low byte) is now always NUL.
19687         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19688
19689         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19690         Use non-cancelable interfaces.
19691
19692         [BZ #9809]
19693         * locale/iso-639.def: Add entry for Sorani.
19694
19695         [BZ #11901]
19696         * include/stdlib.h: Move include protection to the right place.
19697         Define abort_msg_s.  Declare __abort_msg with it.
19698         * stdlib/abort.c (__abort_msg): Adjust type.
19699         * assert/assert.c (__assert_fail_base): New function.  Majority
19700         of code from __assert_fail.  Allocate memory for __abort_msg with
19701         mmap.
19702         (__assert_fail): Now call __assert_fail_base.
19703         * assert/assert-perr.c: Remove bulk of implementation.  Use
19704         __assert_fail_base.
19705         * include/assert.hL Declare __assert_fail_base.
19706         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19707         mmap.
19708         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19709
19710 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19711
19712         [BZ #11952]
19713         [BZ #12453]
19714         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19715         until all modules are registered in the DTV.
19716         * elf/Makefile: Add rules to build and run tst-tls19.
19717         * elf/tst-tls19.c: New file.
19718         * elf/tst-tls19mod1.c: New file.
19719         * elf/tst-tls19mod2.c: New file.
19720         * elf/tst-tls19mod3.c: New file.
19721         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19722
19723         [BZ #12083]
19724         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19725         correctly.
19726
19727         [BZ #12601]
19728         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19729         two-byte sequence errors.
19730         * iconvdata/Makefile (tests): Add bug-iconv8.
19731         * iconvdata/bug-iconv8.c: New file.
19732
19733         [BZ #12626]
19734         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19735         buf2 definition.
19736
19737         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19738
19739         [BZ #12432]
19740         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19741         (dummy_getcfa): New function.
19742         (init): Get _Unwind_GetCFA address, use dummy if not found.
19743         (backtrace_helper): In recursion check, also check whether CFA changes.
19744         (__backtrace): Completely initialize arg.
19745
19746         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19747         storing incomplete byte sequence in state object.  Avoid testing for
19748         guaranteed too small input if we know there is enough data available.
19749
19750 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19751
19752         * Makeconfig (+link-pie): Indent.
19753         * Rules (binaries-pie): Define if $(have-fpie) and
19754         $(build-shared).
19755         (binaries-shared): Also filter out $(binaries-pie).
19756         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19757         * nscd/Makefile (others-pie): Add nscd.
19758         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19759         ($(objpfx)nscd): Remove command override.
19760         * login/Makefile (others-pie): Add pt_chown.
19761         ($(objpfx)pt_chown): Remove command override.
19762         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19763         remove command overrides.
19764
19765 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19766
19767         * libio/tst_putwc.c: Fix error messages.
19768
19769         [BZ #12724]
19770         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19771         currently writing and seek to current position when not.
19772         * libio/Makefile (tests): Add bug-fclose1.
19773         * libio/bug-fclose1.c: New file.
19774
19775 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19776
19777         [BZ #12511]
19778         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19779         don't set DF_1_NODELETE here.
19780         (do_lookup_x): When entering new entry test for copy relocation
19781         and if necessary set DF_1_NODELETE flag.
19782         * elf/tst-unique4.cc: New file.
19783         * elf/tst-unique4.h: New file.
19784         * elf/tst-unique4lib.cc: New file.
19785         * elf/Makefile: Add rules to build and run tst-unique4.
19786         Patch by Piotr Bury <pbury@goahead.com>.
19787
19788 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19789
19790         [BZ #12052]
19791         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19792
19793         [BZ #12625]
19794         * misc/mntent_r.c (addmntent): Flush the stream after the output
19795
19796         [BZ #12393]
19797         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19798         (is_trusted_path_normalize): Skip initial colon.  Append slash
19799         to empty buffer.  Duplicate is_trusted_path code but allow
19800         constructed patch to be prefix.
19801         (is_dst): Allow $ORIGIN followed by /.
19802         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19803         Correct testing of result of is_trusted_path_normalize
19804         (decompose_rpath): Fix warning.
19805
19806 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19807
19808         [BZ #11257]
19809         * grp/initgroups.c (internal_getgrouplist): When we found the service
19810         list through the initgroups entry in nsswitch.conf do not always
19811         continue on a successful lookup.  Don't always use the
19812         __nss_group_database value if it is set.
19813         * nss/nsswitch.conf (initgroups): Change action for successful db
19814         lookup to continue for compatibility.
19815
19816 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19817
19818         [BZ #11532]
19819         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19820         and CP774 modules.
19821         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19822         and CP774 modules.
19823         * iconvdata/tst-tables.sh: Likewise.
19824         * iconvdata/cp770.c: New file.
19825         * iconvdata/cp771.c: New file.
19826         * iconvdata/cp772.c: New file.
19827         * iconvdata/cp773.c: New file.
19828         * iconvdata/cp774.c: New file.
19829         * iconvdata/testdata/CP770: New file.
19830         * iconvdata/testdata/CP770..UTF8: New file.
19831         * iconvdata/testdata/CP771: New file.
19832         * iconvdata/testdata/CP771..UTF8: New file.
19833         * iconvdata/testdata/CP772: New file.
19834         * iconvdata/testdata/CP772..UTF8: New file.
19835         * iconvdata/testdata/CP773: New file.
19836         * iconvdata/testdata/CP773..UTF8: New file.
19837         * iconvdata/testdata/CP774: New file.
19838         * iconvdata/testdata/CP774..UTF8: New file.
19839
19840         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19841         END CHARMAP line.
19842         * iconvdata/gen-8bit-gap.sh: Likewise.
19843         * iconvdata/gen-8bit.sh: Likewise.
19844
19845         * locale/iso-639.def: Add ary entry.
19846
19847         [BZ #11258]
19848         * locale/C-translit.h.in: Add U20A1 transliteration.
19849
19850         [BZ #12178]
19851         * locale/iso-639.def: Add wae entry.
19852         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19853
19854         [BZ #12545]
19855         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19856         for n.
19857
19858         [BZ #12711]
19859         * locale/C-translit.h.in: Add entry for U20B9.
19860         Patch by pravin.d.s@gmail.com.
19861
19862 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19863
19864         [BZ #12713]
19865         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19866         ENAMETOOLONG use generic getcwd.
19867         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19868         in rtld.  Use *stat64.
19869         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19870         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19871         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19872         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19873         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19874         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19875         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19876         __fstatat64 macros.
19877         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19878         * dirent/rewinddir.c: Add libc_hidden_def.
19879         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19880         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19881
19882         * include/dirent.h (__alloc_dir): Add flags parameter.
19883         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19884         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19885         __alloc_dir.
19886         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19887         from fdopendir if O_CLOEXEC is already set.
19888
19889 2011-03-15  Alan Modra  <amodra@gmail.com>
19890
19891         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19892         l_tls_firstbyte_offset non-zero.  Save padding offset in
19893         l_tls_firstbyte_offset for later use.
19894         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19895         freeing static tls block.
19896
19897 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19898
19899         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19900         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19901         being defined by the kernel headers.
19902
19903 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19904
19905         [BZ #12734]
19906         * resolv/resolv.h: Define RES_NOTLDQUERY.
19907         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19908         no-tld-query and set RES_NOTLDQUERY.
19909         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19910         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19911         modern BIND to search name as TLD unless forbidden.
19912
19913 2011-05-07  Petr Baudis  <pasky@suse.cz>
19914             Ulrich Drepper  <drepper@gmail.com>
19915
19916         [BZ #12393]
19917         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19918         (is_trusted_path): ...to here.
19919         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19920         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19921         using is_trusted_path_normalize() in setuid scripts.
19922
19923 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19924
19925         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19926         __BEGIN/__END_DECLS.
19927
19928 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19929
19930         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19931         NSS_STATUS_NOTFOUND if no record was found.
19932
19933 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19934
19935         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19936         (headers-not-in-tirpc): Remove rpc/netdb.h
19937         * resolv/netdb.h: Revert last change.
19938
19939 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19940
19941         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19942         circular dependency between libgcc.a and libc.a.
19943
19944 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19945
19946         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19947         * nis/Makefile: Don't install rpcsvc/*.
19948         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19949         instead of <rpc/types.h>.
19950         (MAXHOSTNAMELEN): Define.
19951
19952 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19953
19954         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19955
19956 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19957
19958         [BZ #12714]
19959         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19960         gethostbyname4_r when IPv6 results are possible.
19961
19962 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19963
19964         [BZ #12723]
19965         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19966         _PC_PIPE_BUF handling.
19967
19968 2011-04-30  Bruno Haible  <bruno@clisp.org>
19969
19970         [BZ #12717]
19971         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19972         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19973         to 'int'.
19974         * inet/getnameinfo.c (getnameinfo): Likewise.
19975
19976 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19977
19978         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19979         to groups setting in database lookup.
19980         * nss/nsswitch.conf: Add initgroups entry.
19981
19982 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19983
19984         [BZ #12685]
19985         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19986         mode string.
19987         Patch by Eric Blake <eblake@redhat.com>.
19988
19989 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19990
19991         * sunrpc/Makefile (need-export-routines): Add svc_run.
19992         (routines): Remove svc_run.
19993         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19994         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19995         * sunrpc/svc_run.c (svc_run): Likewise.
19996         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19997
19998 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19999
20000         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20001         problem in reallocation in last patch.
20002
20003 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20004
20005         * sunrpc/Makefile: Move inclusion of Rules.
20006
20007 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20008
20009         * nss/nss_files/files-initgroups.c: New file.
20010         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20011         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20012         _nss_files_initgroups_dyn.
20013
20014 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20015
20016         * elf/elf.h (R_ARM_IRELATIVE): Define.
20017
20018 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20019
20020         * po/ru.po: Update from translation team.
20021
20022 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20023
20024         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20025         dependencies.
20026
20027 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20028
20029         [BZ #12653]
20030         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20031         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20032         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20033         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20034         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20035
20036 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20037
20038         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20039         differing bytes.
20040         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20041         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20042         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20043
20044 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20045
20046         [BZ #12420]
20047         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20048         storing it.
20049         * stdlib/bug-getcontext.c: New file.
20050         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20051
20052 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20053
20054         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20055         instructions into .machine "z9-109".
20056         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20057         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20058
20059 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20060
20061         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20062         between environment variables and auxiliary vector.
20063
20064 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20065
20066         * Makefile: Add rules to build linkobj/libc.so.
20067         * include/libc-symbols.h: Define libc_hidden_nolink.
20068         * include/rpc/auth.h: Mark functions which are to be hidden.
20069         * include/rpc/auth_des.h: Likewise.
20070         * include/rpc/auth_unix.h: Likewise.
20071         * include/rpc/clnt.h: Likewise.
20072         * include/rpc/des_crypt.h: Likewise.
20073         * include/rpc/key_prot.h: Likewise.
20074         * include/rpc/pmap_clnt.h: Likewise.
20075         * include/rpc/pmap_prot.h: Likewise.
20076         * include/rpc/pmap_rmt.h: Likewise.
20077         * include/rpc/rpc_msg.h: Likewise.
20078         * include/rpc/svc.h: Likewise.
20079         * include/rpc/svc_auth.h: Likewise.
20080         * include/rpc/xdr.h: Likewise.
20081         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20082         * nss/Makefile: Likewise.
20083         * sunrpc/Makefile: Don't install headers.  Build library with normal
20084         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20085         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20086         for the compat linking library.  Remove use of INTDEF/INTUSE.
20087         * sunrpc/auth_none.c: Likewise.
20088         * sunrpc/auth_unix.c: Likewise.
20089         * sunrpc/authdes_prot.c: Likewise.
20090         * sunrpc/authuxprot.c: Likewise.
20091         * sunrpc/clnt_gen.c: Likewise.
20092         * sunrpc/clnt_perr.c: Likewise.
20093         * sunrpc/clnt_raw.c: Likewise.
20094         * sunrpc/clnt_simp.c: Likewise.
20095         * sunrpc/clnt_tcp.c: Likewise.
20096         * sunrpc/clnt_udp.c: Likewise.
20097         * sunrpc/clnt_unix.c: Likewise.
20098         * sunrpc/des_crypt.c: Likewise.
20099         * sunrpc/des_soft.c: Likewise.
20100         * sunrpc/get_myaddr.c: Likewise.
20101         * sunrpc/key_call.c: Likewise.
20102         * sunrpc/key_prot.c: Likewise.
20103         * sunrpc/netname.c: Likewise.
20104         * sunrpc/pm_getmaps.c: Likewise.
20105         * sunrpc/pm_getport.c: Likewise.
20106         * sunrpc/pmap_clnt.c: Likewise.
20107         * sunrpc/pmap_prot.c: Likewise.
20108         * sunrpc/pmap_prot2.c: Likewise.
20109         * sunrpc/pmap_rmt.c: Likewise.
20110         * sunrpc/publickey.c: Likewise.
20111         * sunrpc/rpc_cmsg.c: Likewise.
20112         * sunrpc/rpc_common.c: Likewise.
20113         * sunrpc/rpc_dtable.c: Likewise.
20114         * sunrpc/rpc_prot.c: Likewise.
20115         * sunrpc/rpc_thread.c: Likewise.
20116         * sunrpc/rtime.c: Likewise.
20117         * sunrpc/svc.c: Likewise.
20118         * sunrpc/svc_auth.c: Likewise.
20119         * sunrpc/svc_authux.c: Likewise.
20120         * sunrpc/svc_raw.c: Likewise.
20121         * sunrpc/svc_run.c: Likewise.
20122         * sunrpc/svc_simple.c: Likewise.
20123         * sunrpc/svc_tcp.c: Likewise.
20124         * sunrpc/svc_udp.c: Likewise.
20125         * sunrpc/svc_unix.c: Likewise.
20126         * sunrpc/svcauth_des.c: Likewise.
20127         * sunrpc/xcrypt.c: Likewise.
20128         * sunrpc/xdr.c: Likewise.
20129         * sunrpc/xdr_array.c: Likewise.
20130         * sunrpc/xdr_float.c: Likewise.
20131         * sunrpc/xdr_intXX_t.c: Likewise.
20132         * sunrpc/xdr_mem.c: Likewise.
20133         * sunrpc/xdr_rec.c: Likewise.
20134         * sunrpc/xdr_ref.c: Likewise.
20135         * sunrpc/xdr_sizeof.c: Likewise.
20136         * sunrpc/xdr_stdio.c: Likewise.
20137
20138 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20139
20140         [BZ #12650]
20141         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20142         * sysdeps/ia64/dl-tls.h: Likewise.
20143         * sysdeps/powerpc/dl-tls.h: Likewise.
20144         * sysdeps/s390/dl-tls.h: Likewise.
20145         * sysdeps/sh/dl-tls.h: Likewise.
20146         * sysdeps/sparc/dl-tls.h: Likewise.
20147         * sysdeps/x86_64/dl-tls.h: Likewise.
20148         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20149
20150 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20151
20152         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20153         rpath element also skip the following colon.
20154         (expand_dynamic_string_token): Add is_path parameter and pass
20155         down to DL_DST_REQUIRED and _dl_dst_substitute.
20156         (decompose_rpath): Call expand_dynamic_string_token with
20157         non-zero is_path.  Ignore empty rpaths.
20158         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20159         with zero is_path.
20160
20161 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20162
20163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20164         Make cancelable.
20165
20166 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20167
20168         [BZ #12655]
20169         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20170         Patch by Filipe David Manana <fdmanana@apache.org>.
20171
20172 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20173
20174         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20175         Maintain aligned stack.
20176         (CHECK_RSP): Remove unused macro.
20177
20178 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20179
20180         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20181         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20182
20183 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20184
20185         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20186
20187         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20188
20189 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20190
20191         [BZ #12518]
20192         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20193         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20194         * sysdeps/x86_64/memmove.c: New file.
20195         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20196         (memcpy): Renamed to ...
20197         (__new_memcpy): This.
20198         (memcpy): Provide GLIBC_2_14 memcpy.
20199         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20200         (memcpy): Provide GLIBC_2_2_5 memcpy.
20201
20202 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20203
20204         [BZ #12631]
20205         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20206
20207 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20208
20209         * misc/syncfs.c: New file.
20210         * misc/Makefile (routines): Add syncfs.
20211         * posix/unistd.h: Declare syncfs.
20212         * sysdeps/unix/syscalls.list: Add syncfs.
20213
20214 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20215
20216         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20217         open_by_handle_at.
20218         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20219         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20220         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20221         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20223         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20224         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20225
20226 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20227
20228         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20229         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20230         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20231         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20232         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20233         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20234         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20235
20236         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20237         sync_file_range.c with -fexceptions.
20238         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20239         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20240         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20241         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20242         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20243         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20244         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20245         sync_file_range as cancellation point
20246         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20247         now a wrapper around __call_sync_file_range with cancellation handling.
20248         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20249         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20250         function name to __call_sync_file_range.
20251         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20252         Add call_sync_file_range.
20253
20254 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20255
20256         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20257         bits/timex.h.
20258
20259 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20260
20261         * iconv/iconv.h: Fix typo in comment.
20262         * io/fcntl.h: Likewise.
20263         * libio/stdio.h: Likewise.
20264         * posix/spawn.h: Likewise.
20265         * posix/unistd.h: Likewise.
20266         * stdlib/stdlib.h: Likewise.
20267         * time/time.h: Likewise.
20268         * wcsmbs/wchar.h: Likewise.
20269
20270         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20271         open_by_handle): Add.
20272         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20273         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20274         Augment a few comments.
20275         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20276         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20277         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20279         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20280         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20281         open_by_handle.
20282
20283         * io/fcntl.h (AT_EMPTY_PATH): Define.
20284
20285 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20286
20287         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20288         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20289         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20290         to...
20291         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20292         * Versions.def: Add GLIBC_2.14.
20293         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20294         Export.
20295
20296 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20297
20298         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20299         round counter.
20300         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20301
20302 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20303
20304         [BZ #12597]
20305         * string/test-strncmp.c (do_page_test): New function.
20306         (check2): Likewise.
20307         (test_main): Call check2.
20308         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20309
20310 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20311
20312         [BZ #12587]
20313         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20314         Handle cache information in CPU leaf 4.
20315         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20316
20317 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20318
20319         [BZ #12583]
20320         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20321         character representation.
20322         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20323
20324 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20325
20326         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20327         END(__isnan) to END(__isnanf) to match function entry point/label
20328         EALIGN(__isnanf,...).
20329
20330 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20331
20332         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20333
20334 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20335
20336         [BZ #12510]
20337         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20338         copy from the symbol referenced in the relocation to initialize the
20339         used variable.
20340         Patch by Piotr Bury <pbury@goahead.com>.
20341         * elf/Makefile: Add rules to build and tst-unique3.
20342         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20343         * elf/tst-unique3.cc: New file.
20344         * elf/tst-unique3.h: New file.
20345         * elf/tst-unique3lib.cc: New file.
20346         * elf/tst-unique3lib2.cc: New file.
20347
20348         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20349
20350 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20351
20352         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20353         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20354         to _start.
20355
20356 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20357
20358         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20359         to-be-loaded object along a path to loader is ld.so.
20360
20361 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20362             Ulrich Drepper  <drepper@gmail.com>
20363
20364         * sysdeps/x86_64/memset.S: After aligning destination, code
20365         branches to different locations depending on the value of
20366         misalignment, when multiarch is enabled. Fix this.
20367
20368 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20369
20370         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20371         Set _x86_64_preferred_memory_instruction for AMD processsors.
20372         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20373         Set bit_Prefer_SSE_for_memop for AMD processors.
20374
20375 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20376
20377         * libio/fmemopen.c (fmemopen): Optimize a bit.
20378
20379 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20380
20381         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20382
20383 2011-03-03  Roland McGrath  <roland@redhat.com>
20384
20385         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20386
20387 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20388
20389         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20390         __bzero_ultra1 instead of __memset_ultra1.
20391
20392 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20393             Ulrich Drepper  <drepper@gmail.com>
20394
20395         [BZ #12509]
20396         * include/link.h (struct link_map): Add l_orig_initfini.
20397         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20398         returning unsuccessfully.
20399         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20400         close of a file loaded at startup, restore the original l_initfini
20401         list.
20402         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20403         list, store the pointer.
20404         * elf/Makefile ($(objpfx)noload-mem): New rule.
20405         (noload-ENV): Define.
20406         (tests): Add $(objpfx)noload-mem.
20407         * elf/noload.c: Include <memcheck.h>.
20408         (main): Call mtrace.  Close all opened handles.
20409
20410 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20411
20412         [BZ #12454]
20413         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20414         dependencies are missing.
20415
20416 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20417
20418         Fix __if_freereq crash: Unlike the generic version which uses free,
20419         Hurd needs munmap.
20420         * sysdeps/mach/hurd/ifreq.h: New file.
20421
20422 2011-01-27  Petr Baudis  <pasky@suse.cz>
20423             Ulrich Drepper  <drepper@gmail.com>
20424
20425         [BZ 12445]#
20426         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20427         to extend_alloca().
20428         * stdio-common/bug23.c: New file.
20429         * stdio-common/Makefile (tests): Add bug23.
20430
20431 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20432             Ulrich Drepper  <drepper@gmail.com>
20433
20434         [BZ #12489]
20435         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20436         before performing relro protection.  At old place add assertion
20437         to make sure nothing changed.
20438
20439 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20440             Glauber de Oliveira Costa  <glommer@gmail.com>
20441
20442         * elf/elf.h: Add new ARM TLS relocs.
20443
20444 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20445
20446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20447         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20448         cast from r3.
20449         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20450         'tests' variable.
20451         * sysdeps/wordsize-64/tst-writev.c: New file.
20452
20453 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20454
20455         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20456         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20457         insns in _dl_start to prevent a TOC reference before relocs are
20458         resolved.
20459
20460 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20461
20462         [BZ #12469]
20463         * Makeconfig: Remove RANLIB definition.
20464         * Makerules: Don't use RANLIB.
20465         * aclocal.m4: Remove ranlib test.
20466         * configure.in: No need to check for ranlib.
20467         * elf/rtld-Rules: Don't use RANLIB.
20468
20469 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20470
20471         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20472         protection macro.
20473         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20474         inclusion protection macro.
20475
20476         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20477         SIGRTMIN and SIGRTMAX and print information in that case only when
20478         SIGRTMIN is defined.
20479
20480 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20481
20482         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20483         arginfo fn returning -1.
20484
20485         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20486         and thousands string is zero terminated.
20487
20488 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20489
20490         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20491         sysdeps/unix/sysv/linux/bits/socket.h.
20492
20493 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20494
20495         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20496         (__CPU_COUNT): Remove old macros.
20497         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20498         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20499         (__CPU_ALLOC, __CPU_FREE): Add macros.
20500         (__sched_cpualloc, __sched_cpufree): Add declarations.
20501
20502 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20503
20504         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20505         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20506         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20507         (readdhstai): Return value of addhstaiX call.
20508         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20509         (addgrbyX): Return value returned by cache_addgr.
20510         (readdgrbyname): Return value returned by addgrbyX.
20511         (readdgrbygid): Likewise.
20512         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20513         (addpwbyX): Return value returned by cache_addpw.
20514         (readdpwbyname): Return value returned by addhstbyX.
20515         (readdpwbyuid): Likewise.
20516         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20517         (addservbyX): Return value returned by cache_addserv.
20518         (readdservbyname): Return value returned by addservbyX:
20519         (readdservbyport): Likewise.
20520         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20521         (addhstbyX): Return value returned by cache_addhst.
20522         (readdhstbyname): Return value returned by addhstbyX.
20523         (readdhstbyaddr): Likewise.
20524         (readdhstbynamev6): Likewise.
20525         (readdhstbyaddrv6): Likewise.
20526         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20527         (readdinitgroups): Return value returned by addinitgroupsX.
20528         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20529         (prune_cache): Keep track of timeout value of re-added entries.
20530         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20531         * nscd/nscd.h: Adjust prototypes of readd* functions.
20532
20533 2011-02-04  Roland McGrath  <roland@redhat.com>
20534
20535         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20536         (nis_stats): Likewise.
20537         * nis/nis_modify.c (nis_modify): Likewise.
20538         * nis/nis_remove.c (nis_remove): Likewise.
20539         * nis/nis_add.c (nis_add): Likewise.
20540
20541         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20542
20543         * posix/fnmatch_loop.c: Add some consts.
20544
20545         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20546
20547 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20548
20549         [BZ #12460]
20550         * config.make.in (config-cflags-novzeroupper): Define.
20551         * configure.in: Substitute libc_cv_cc_novzeroupper.
20552         * elf/Makefile (AVX-CFLAGS): Define.
20553         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20554         (CFLAGS-tst-auditmod4a.c): Likewise.
20555         (CFLAGS-tst-auditmod4b.c): Likewise.
20556         (CFLAGS-tst-auditmod6b.c): Likewise.
20557         (CFLAGS-tst-auditmod6c.c): Likewise.
20558         (CFLAGS-tst-auditmod7b.c): Likewise.
20559         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20560
20561 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20562
20563         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20564         function to the callback.
20565         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20566
20567 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20568
20569         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20570         of errno.
20571
20572 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20573
20574         [BZ #11724]
20575         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20576         of constructors.
20577         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20578         of destructors.
20579         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20580
20581         [BZ #11724]
20582         * elf/Makefile: Add rules to build and run new test.
20583         * elf/tst-initorder.c: New file.
20584         * elf/tst-initorder.exp: New file.
20585         * elf/tst-initordera1.c: New file.
20586         * elf/tst-initordera2.c: New file.
20587         * elf/tst-initordera3.c: New file.
20588         * elf/tst-initordera4.c: New file.
20589         * elf/tst-initorderb1.c: New file.
20590         * elf/tst-initorderb2.c: New file.
20591         * elf/tst-order-a1.c: New file.
20592         * elf/tst-order-a2.c: New file.
20593         * elf/tst-order-a3.c: New file.
20594         * elf/tst-order-a4.c: New file.
20595         * elf/tst-order-b1.c: New file.
20596         * elf/tst-order-b2.c: New file.
20597         * elf/tst-order-main.c: New file.
20598         New test case by George Gensure <werkt0@gmail.com>.
20599
20600 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20601
20602         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20603         decoding ACE if AI_CANONIDN.
20604
20605 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20606
20607         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20608
20609 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20610
20611         * version.h (RELEASE): Bump for 2.13 release.
20612         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20613
20614         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20615
20616         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20617         MADV_NOHUGEPAGE.
20618         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20619         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20620         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20621         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20622         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20623         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20624
20625         * posix/getconf.c: Update copyright year.
20626         * catgets/gencat.c: Likewise.
20627         * csu/version.c: Likewise.
20628         * debug/catchsegv.sh: Likewise.
20629         * debug/xtrace.sh: Likewise.
20630         * elf/ldconfig.c: Likewise.
20631         * elf/ldd.bash.in: Likewise.
20632         * elf/sprof.c (print_version): Likewise.
20633         * iconv/iconv_prog.c: Likewise.
20634         * iconv/iconvconfig.c: Likewise.
20635         * locale/programs/locale.c: Likewise.
20636         * locale/programs/localedef.c: Likewise.
20637         * malloc/memusage.sh: Likewise.
20638         * malloc/mtrace.pl: Likewise.
20639         * nscd/nscd.c (print_version): Likewise.
20640         * nss/getent.c: Likewise.
20641
20642         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20643         PF_CAIF, and PF_ALG.
20644         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20645
20646 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20647
20648         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20649         (modules-names): Use them.
20650         (ifunc-test-modules, ifunc-pie-tests): Define.
20651         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20652         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20653         (test-extras): Likewise.
20654         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20655         $(compile-command.c).
20656         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20657         (all-built-dso): Define.
20658         (check-textrel.out, check-execstack.out): Depend on it.
20659
20660         * configure.in: Don't override --enable-multi-arch.
20661
20662 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20663
20664         [BZ #6812]
20665         * nscd/hstcache.c (tryagain): Define.
20666         (cache_addhst): Return tryagain not notfound for temporary errors.
20667         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20668         failed.
20669
20670 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20671
20672         [BZ #10563]
20673         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20674         to make the syscall.
20675         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20676
20677         [BZ #12378]
20678         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20679         and fall back to matching as normal character if the string ends before
20680         the matching ']' is found.  This is what POSIX requires.
20681         * posix/testfnm.c: Adjust test result.
20682         * posix/globtest.sh: Adjust test result.  Add new test.
20683         * posix/tst-fnmatch.input: Likewise.
20684         * posix/tst-fnmatch2.c: Add new test.
20685
20686 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20687
20688         * elf/Makefile (check-execstack): Revert last change.  Depend on
20689         check-execstack.h.
20690         (check-execstack.h): New target.
20691         (generated): Add check-execstack.h.
20692         * elf/check-execstack.c: Include "check-execstack.h".
20693         (main): Revert last change.
20694         (handle_file): Return zero if GNU_STACK is absent and
20695         DEFAULT_STACK_PERMS doesn't include PF_X.
20696
20697 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20698
20699         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20700         in child fails because the descriptor is already closed.
20701         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20702         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20703         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20704
20705         [BZ #12397]
20706         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20707         syscall.
20708
20709         [BZ #10484]
20710         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20711         temporary buffer used to handle multi lookups locally.
20712         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20713
20714 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20715
20716         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20717         loader is ld.so.
20718
20719 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20720
20721         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20722         alignment for SSE2.
20723
20724 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20725
20726         [BZ #12394]
20727         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20728         characters.  When rounding increased number of integer digits recompute
20729         number of groups.
20730         * stdio-common/tst-grouping.c: New file.
20731         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20732
20733 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20734
20735         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20736         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20737
20738         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20739         void.
20740         * bits/select.h: Likewise.
20741
20742 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20743
20744         * po/ja.po: Update from translation team.
20745
20746 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20747
20748         [BZ #11155]
20749         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20750         implementation just like for lxstat, fxstatat, et al.
20751
20752 2010-12-27  Jim Meyering  <meyering@redhat.com>
20753
20754         [BZ #12348]
20755         * posix/regexec.c (build_trtable): Return failure indication upon
20756         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20757
20758 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20759
20760         [BZ #12201]
20761         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20762         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20763         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20764         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20765
20766         [BZ #12207]
20767         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20768
20769         [BZ #12204]
20770         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20771         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20772
20773 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20774
20775         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20776         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20777         script has SORT_BY_INIT_PRIORITY.
20778         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20779         NO_CTORS_DTORS_SECTIONS is defined.
20780         * elf/soinit.c: Likewise.
20781         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20782         NO_CTORS_DTORS_SECTIONS is defined.
20783         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20784         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20785         * sysdeps/sh/init-first.c: Likewise.
20786         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20787
20788 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20789
20790         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20791         always use the slow path.
20792
20793 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20794
20795         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20796         similar rule which adds the sysdep directories to the header search in
20797         order to pick up the correct platform stackinfo.h.
20798         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20799         perform test if it is, otherwise return successfully without testing.
20800         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20801         DEFAULT_STACK_PERMS define in stackinfo.h.
20802         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20803         defined in stackinfo.h.
20804         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20805         DEFAULT_STACK_PERMS defined in stackinfo.h.
20806         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20807         * sysdeps/ia64/stackinfo.h: Likewise.
20808         * sysdeps/s390/stackinfo.h: Likewise.
20809         * sysdeps/sh/stackinfo.h: Likewise.
20810         * sysdeps/sparc/stackinfo.h: Likewise.
20811         * sysdeps/x86_64/stackinfo.h: Likewise.
20812         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20813         PF_X for powerpc64.  Retain PF_X for powerpc32.
20814
20815 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20816
20817         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20818         accurately.
20819         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20820         GETDENTS_64BIT_ALIGNED.
20821
20822 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20823
20824         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20825
20826 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20827
20828         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20829         _GNU_SOURCE.
20830
20831         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20832         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20833         Remove __restrict.
20834         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20835         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20836
20837 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20838
20839         [BZ #11655]
20840         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20841         are initialized.
20842
20843 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20844
20845         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20846
20847 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20848
20849         * po/it.po: Update from translation team.
20850
20851 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20852
20853         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20854         unused codes.
20855
20856 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20857
20858         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20859
20860 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20861
20862         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20863         specially.
20864         (gaih_getanswer_slice): Likewise.
20865
20866 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20867
20868         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20869
20870 2010-05-31  Petr Baudis  <pasky@suse.cz>
20871
20872         [BZ #11149]
20873         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20874         silently even in the chroot mode.
20875
20876 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20877
20878         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20879         last patch a bit.  Pretty printing
20880
20881 2010-05-31  Petr Baudis <pasky@suse.cz>
20882
20883         [BZ #10085]
20884         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20885         initialization of skip_initgroups_dyn.
20886
20887 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20888
20889         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20890         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20891
20892 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20893
20894         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20895
20896 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20897
20898         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20899         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20900         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20901         ($(objpfx)tst-fnmatch-mem): New rule.
20902         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20903         * posix/tst-fnmatch.c (main): Call mtrace.
20904
20905 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20906
20907         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20908         Support Intel processor model 6 and model 0x2c.
20909
20910 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20911
20912         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20913           signed comparison.
20914
20915 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20916
20917         [BZ #12205]
20918         * string/test-strncasecmp.c (check_result): New function.
20919         (do_one_test): Use it.
20920         (check1): New function.
20921         (test_main): Use it.
20922         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20923         Support strcasecmp and strncasecmp.
20924
20925 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20926
20927         [BZ #12194]
20928         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20929         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20930
20931 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20932
20933         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20934         IFUNC support.
20935         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20936         memset-x86-64.
20937         * sysdeps/x86_64/multiarch/bzero.S: New file.
20938         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20939         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20940         * sysdeps/x86_64/multiarch/memset.S: New file.
20941         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20942         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20943         Set bit_Prefer_SSE_for_memop for Intel processors.
20944         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20945         Define.
20946         (index_Prefer_SSE_for_memop): Define.
20947         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20948
20949 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20950
20951         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20952         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20953
20954 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20955
20956         [BZ #12191]
20957         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20958         (__x86_64_raw_data_cache_size_half): Likewise.
20959         (__x86_64_raw_shared_cache_size): Likewise.
20960         (__x86_64_raw_shared_cache_size_half): Likewise.
20961
20962         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20963         (__x86_64_raw_data_cache_size_half): Likewise.
20964         (__x86_64_raw_shared_cache_size): Likewise.
20965         (__x86_64_raw_shared_cache_size_half): Likewise.
20966         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20967         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20968         and __x86_64_raw_shared_cache_size_half.  Round
20969         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20970         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20971         to multiple of 256 bytes.
20972
20973 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20974
20975         [BZ #12167]
20976         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20977         of inacessible symlinks.  Verify result of symlink before returning it.
20978         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20979         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20980
20981 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20982
20983         * math/math.h (isinf): Fix typo in comment.
20984
20985 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20986
20987         * po/da.po: Update from translation team.
20988
20989 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20990
20991         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20992         is added to the list.
20993
20994 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20995             Ulrich Drepper  <drepper@gmail.com>
20996
20997         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20998         the global list here.  Move code to...
20999         (_dl_add_to_namespace_list): ...here.  New function.
21000         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21001         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21002         * elf/dl-load.c (lose): Don't remove the element from the list.
21003         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21004         (_dl_map_object): Likewise.
21005
21006 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21007
21008         [BZ #12159]
21009         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21010         into all bytes of SSE register.
21011         Patch by Richard Li <richardpku@gmail.com>.
21012
21013 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21014
21015         [BZ #12140]
21016         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21017         perturbing.
21018
21019 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21020
21021         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21022         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21023         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21024         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21026         submachine.
21027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21028
21029 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21030
21031         * include/dlfcn.h (__RTLD_SECURE): Define.
21032         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21033         mode & __RTLD_SECURE instead.
21034         (open_path): Rename preloaded parameter to secure.
21035         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21036         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21037         * elf/dl-deps.c (openaux): Likewise.
21038         * elf/rtld.c (struct map_args): Remove is_preloaded.
21039         (map_doit): Don't use it.
21040         (dl_main): Likewise.
21041         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21042         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21043
21044 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21045
21046         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21047         (sysd-rules-targets): Remove duplicates.
21048         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21049         rtld-%.$o dependency.
21050
21051 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21052
21053         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21054         _dl_map_object do it.
21055
21056 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21057
21058         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21059         fast fma builtins, define the macros in the C99 standard.
21060         (FP_FAST_FMAF): Likewise.
21061         (FP_FAST_FMAL): Likewise.
21062         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21063
21064         * bits/mathdef.h: Update copyright year.
21065         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21066
21067 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21068
21069         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21070         builtins, define the macros in the C99 standard.
21071         (FP_FAST_FMAF): Likewise.
21072         (FP_FAST_FMAL): Likewise.
21073         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21074         multiply/add.
21075         (FP_FAST_FMAF): Likewise.
21076
21077 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21078
21079         [BZ #3268]
21080         * math/libm-test.inc (fma_test): Some new testcases.
21081         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21082         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21083         y and infinite z.  Do multiplication by C already in long double.
21084         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21085         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21086         y and infinite z.  Do bitwise or of inexact bit into u.d.
21087         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21088         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21089         * sysdeps/i386/fpu/s_fma.S: Removed.
21090         * sysdeps/i386/fpu/s_fmal.S: Removed.
21091
21092 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21093
21094         [BZ #3268]
21095         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21096         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21097         computation is not scheduled after fetestexcept.  Fix value
21098         of minimum denormal long double.
21099
21100 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21101
21102         [BZ #3268]
21103         * math/libm-test.inc (fma_test): Add some more tests.
21104         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21105         correctly.
21106
21107 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21108
21109         * scripts/data/localplt-s390-linux-gnu.data: New file.
21110         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21111
21112 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21113
21114         [BZ #3268]
21115         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21116         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21117         instead of dbl-64.
21118         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21119         inlines.
21120         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21121         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21122         if one of x and y is very large and the other is subnormal.
21123         * sysdeps/s390/fpu/s_fmaf.c: New file.
21124         * sysdeps/s390/fpu/s_fma.c: New file.
21125         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21126         * sysdeps/powerpc/fpu/s_fma.S: New file.
21127         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21128         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21129         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21130
21131 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21132
21133         [BZ #3268]
21134         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21135         fma tests.
21136         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21137         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21138         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21139         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21140         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21141         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21142         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21143
21144 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21145
21146         [BZ #12078]
21147         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21148         * posix/bug-regex31.input: Add test case.
21149
21150 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21151
21152         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21153         * posix/bug-regex31.input: New file.
21154
21155         [BZ #12078]
21156         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21157         (parse_sub_exp): Fix last change, use postorder.
21158
21159         * posix/bug-regex31.c: New file.
21160         * posix/Makefile: Add rules to build and run bug-regex31.
21161
21162         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21163
21164         [BZ #12078]
21165         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21166
21167         [BZ #12108]
21168         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21169         to have entries in sys_siglist.
21170
21171         [BZ #12093]
21172         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21173         be NULL.
21174
21175 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21176
21177         [BZ #3268]
21178         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21179         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21180         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21181         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21182         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21183         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21184         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21185         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21186         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21187         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21188         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21189         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21190         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21191         * math/ftestexcept.c (fetestexcept): Likewise.
21192         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21193         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21194         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21195         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21196         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21197         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21198         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21199
21200 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21201
21202         [BZ #12107]
21203         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21204         newline.
21205
21206 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21207
21208         * string/bug-strstr1.c: New file.
21209         * string/Makefile: Add rules to build and run bug-strstr1.
21210
21211 2010-10-05  Eric Blake  <eblake@redhat.com>
21212
21213         [BZ #12092]
21214         * string/str-two-way.h (two_way_long_needle): Always clear memory
21215         when skipping input due to the shift table.
21216
21217 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21218
21219         [BZ #12005]
21220         * malloc/mcheck.c: Handle large requests.
21221
21222         [BZ #12077]
21223         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21224         for strncmp and strncasecmp.
21225         * string/stratcliff.c: Add tests for strcmp and strncmp.
21226         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21227
21228 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21229
21230         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21231         __set_fpscr.
21232
21233 2010-09-30  Andreas Jaeger  <aj@suse.de>
21234
21235         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21236         (CGROUP_SUPER_MAGIC): Define.
21237         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21238         Handle btrfs and cgroup file systems.
21239         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21240         Likewise.
21241
21242 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21243
21244         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21245         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21246
21247 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21248
21249         [BZ #12067]
21250         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21251         trying to locate the ELF header.
21252
21253 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21254
21255         [BZ #11611]
21256         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21257         Mask out sign-bit copies when constructing f_fsid.
21258
21259 2010-09-24  Petr Baudis <pasky@suse.cz>
21260
21261         * debug/stack_chk_fail_local.c: Add missing licence exception.
21262         * debug/warning-nop.c: Likewise.
21263
21264 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21265
21266         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21267         implementing getdents64 using getdents syscall, set d_type if
21268         __ASSUME_GETDENTS32_D_TYPE.
21269
21270 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21271
21272         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21273         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21274
21275 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21276
21277         [BZ #12037]
21278         * posix/unistd.h: Undo change of feature selection for ftruncate from
21279         2010-01-11.
21280
21281 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21282
21283         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21284         detection.
21285
21286 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21287
21288         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21289         fanotify_mark.
21290         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21291
21292 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21293
21294         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21295         variables after CHECK_SP call.
21296         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21297
21298 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21299             Ulrich Drepper  <drepper@redhat.com>
21300
21301         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21302         re-relocationg ld.so.
21303         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21304         _dl_init_paths call.
21305         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21306         here anymore.
21307
21308 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21309
21310         * resolv/res_init.c (__res_vinit): Count the default server we added.
21311
21312 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21313             Ulrich Drepper  <drepper@redhat.com>
21314
21315         [BZ #11968]
21316         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21317         (____longjmp_chk): Use %ebx for saving value across system call.
21318         Add unwind info.
21319
21320 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21321
21322         * manual/Makefile: Don't mix pattern rules with normal rules.
21323
21324 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21325
21326         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21327         operation.
21328         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21329         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21330         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21331         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21332         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21333         Likewise.
21334
21335 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21336
21337         [BZ #11979]
21338         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21339         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21340
21341 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21342
21343         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21344         * sysdeps/x86_64/addmul_1.S: Likewise.
21345         * sysdeps/x86_64/lshift.S: Likewise.
21346         * sysdeps/x86_64/mul_1.S: Likewise.
21347         * sysdeps/x86_64/rshift.S: Likewise.
21348         * sysdeps/x86_64/sub_n.S: Likewise.
21349         * sysdeps/x86_64/submul_1.S: Likewise.
21350
21351 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21352
21353         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21354         Define __sched_param instead of SCHED_* and sched_param when
21355         <bits/sched.h> is included with __need_schedparam defined.
21356         * bits/sched.h [__need_schedparam]
21357         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21358         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21359         (__defined_schedparam): Define to 1.
21360         (__sched_param): New structure, identical to sched_param.
21361         (__need_schedparam): Undefine.
21362
21363 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21364
21365         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21366         (epoll_create1): Declare.
21367
21368         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21369
21370 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21371
21372         [BZ #7066]
21373         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21374         shifting retval into place.
21375
21376 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21377
21378         * nis/rpcsvc/nis.h: Update copyright notice.
21379         * nis/rpcsvc/nis.x: Likewise.
21380         * nis/rpcsvc/nis_callback.h: Likewise.
21381         * nis/rpcsvc/nis_callback.x: Likewise.
21382         * nis/rpcsvc/nis_object.x: Likewise.
21383         * nis/rpcsvc/nis_tags.h: Likewise.
21384         * nis/rpcsvc/yp.h: Likewise.
21385         * nis/rpcsvc/yp.x: Likewise.
21386         * nis/rpcsvc/ypupd.h: Likewise.
21387         * nis/yp_xdr.c: Likewise.
21388         * nis/ypupdate_xdr.c: Likewise.
21389
21390         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21391         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21392         (pmap_getport): Use __libc_rpc_getport.
21393         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21394         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21395         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21396
21397 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21398
21399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21400         fanotify_mark.
21401
21402 2010-08-27  Roland McGrath  <roland@redhat.com>
21403
21404         * sysdeps/i386/i686/multiarch/Makefile
21405         (CFLAGS-varshift.c): New variable.
21406
21407 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21408
21409         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21410         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21411
21412         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21413
21414         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21415
21416 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21417
21418         * sysdeps/x86_64/strlen.S: Unroll the loop.
21419         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21420         strlen-sse2 strlen-sse2-bsf.
21421         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21422         __strlen_no_bsf if bit_Slow_BSF is set.
21423         (__strlen_sse42): Removed.
21424         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21425         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21426
21427 2010-08-25  Roland McGrath  <roland@redhat.com>
21428
21429         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21430         * sysdeps/x86_64/multiarch/varshift.c: New file.
21431         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21432         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21433         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21434         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21435
21436 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21437
21438         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21439         strlen-sse2 strlen-sse2-bsf.
21440         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21441         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21442         (__strlen_sse2): Removed.
21443         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21444         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21445         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21446         bit_Slow_BSF for Atom.
21447         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21448         (index_Slow_BSF): Define.
21449         (HAS_SLOW_BSF): Define.
21450
21451 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21452
21453         [BZ #10851]
21454         * resolv/res_init.c (__res_vinit): When no server address at all
21455         is given default to loopback.
21456
21457 2010-08-24  Roland McGrath  <roland@redhat.com>
21458
21459         * configure.in: Remove config-name.h generation.
21460         * configure: Regenerated.
21461         * config-name.in: File removed.
21462         * scripts/config-uname.sh: New file.
21463         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21464         ($(objdir)config-name.h): New target.
21465
21466         * sunrpc/rpc_parse.h: Avoid nested comment.
21467
21468 2010-08-24  Richard Henderson  <rth@redhat.com>
21469             Ulrich Drepper  <drepper@redhat.com>
21470             H.J. Lu  <hongjiu.lu@intel.com>
21471
21472         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21473         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21474         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21475         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21476         _mm_alignr_epi8 with _mm_loadu_si128.
21477         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21478         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21479         (__m128i_shift_right): Removed.
21480         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21481         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21482         * sysdeps/x86_64/multiarch/varshift.h: New file.
21483         * sysdeps/x86_64/multiarch/varshift.S: New file.
21484
21485 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21486
21487         * configure.in: Move assembler checks to before sysdep dir checking.
21488
21489 2010-08-20  Petr Baudis  <pasky@suse.cz>
21490
21491         * LICENSES: Sync the sunrpc license.
21492
21493 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21494
21495         * sunrpc/auth_des.c: Update copyright notice once again.
21496         * sunrpc/auth_none.c: Likewise.
21497         * sunrpc/auth_unix.c: Likewise.
21498         * sunrpc/authdes_prot.c: Likewise.
21499         * sunrpc/authuxprot.c: Likewise.
21500         * sunrpc/bindrsvprt.c: Likewise.
21501         * sunrpc/clnt_gen.c: Likewise.
21502         * sunrpc/clnt_perr.c: Likewise.
21503         * sunrpc/clnt_raw.c: Likewise.
21504         * sunrpc/clnt_simp.c: Likewise.
21505         * sunrpc/clnt_tcp.c: Likewise.
21506         * sunrpc/clnt_udp.c: Likewise.
21507         * sunrpc/clnt_unix.c: Likewise.
21508         * sunrpc/des_crypt.c: Likewise.
21509         * sunrpc/des_soft.c: Likewise.
21510         * sunrpc/get_myaddr.c: Likewise.
21511         * sunrpc/getrpcport.c: Likewise.
21512         * sunrpc/key_call.c: Likewise.
21513         * sunrpc/key_prot.c: Likewise.
21514         * sunrpc/openchild.c: Likewise.
21515         * sunrpc/pm_getmaps.c: Likewise.
21516         * sunrpc/pm_getport.c: Likewise.
21517         * sunrpc/pmap_clnt.c: Likewise.
21518         * sunrpc/pmap_prot.c: Likewise.
21519         * sunrpc/pmap_prot2.c: Likewise.
21520         * sunrpc/pmap_rmt.c: Likewise.
21521         * sunrpc/rpc/auth.h: Likewise.
21522         * sunrpc/rpc/auth_unix.h: Likewise.
21523         * sunrpc/rpc/clnt.h: Likewise.
21524         * sunrpc/rpc/des_crypt.h: Likewise.
21525         * sunrpc/rpc/key_prot.h: Likewise.
21526         * sunrpc/rpc/netdb.h: Likewise.
21527         * sunrpc/rpc/pmap_clnt.h: Likewise.
21528         * sunrpc/rpc/pmap_prot.h: Likewise.
21529         * sunrpc/rpc/pmap_rmt.h: Likewise.
21530         * sunrpc/rpc/rpc.h: Likewise.
21531         * sunrpc/rpc/rpc_des.h: Likewise.
21532         * sunrpc/rpc/rpc_msg.h: Likewise.
21533         * sunrpc/rpc/svc.h: Likewise.
21534         * sunrpc/rpc/svc_auth.h: Likewise.
21535         * sunrpc/rpc/types.h: Likewise.
21536         * sunrpc/rpc/xdr.h: Likewise.
21537         * sunrpc/rpc_clntout.c: Likewise.
21538         * sunrpc/rpc_cmsg.c: Likewise.
21539         * sunrpc/rpc_common.c: Likewise.
21540         * sunrpc/rpc_cout.c: Likewise.
21541         * sunrpc/rpc_dtable.c: Likewise.
21542         * sunrpc/rpc_hout.c: Likewise.
21543         * sunrpc/rpc_main.c: Likewise.
21544         * sunrpc/rpc_parse.c: Likewise.
21545         * sunrpc/rpc_parse.h: Likewise.
21546         * sunrpc/rpc_prot.c: Likewise.
21547         * sunrpc/rpc_sample.c: Likewise.
21548         * sunrpc/rpc_scan.c: Likewise.
21549         * sunrpc/rpc_scan.h: Likewise.
21550         * sunrpc/rpc_svcout.c: Likewise.
21551         * sunrpc/rpc_tblout.c: Likewise.
21552         * sunrpc/rpc_util.c: Likewise.
21553         * sunrpc/rpc_util.h: Likewise.
21554         * sunrpc/rpcinfo.c: Likewise.
21555         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21556         * sunrpc/rpcsvc/key_prot.x: Likewise.
21557         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21558         * sunrpc/rpcsvc/mount.x: Likewise.
21559         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21560         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21561         * sunrpc/rpcsvc/rex.x: Likewise.
21562         * sunrpc/rpcsvc/rstat.x: Likewise.
21563         * sunrpc/rpcsvc/rusers.x: Likewise.
21564         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21565         * sunrpc/rpcsvc/spray.x: Likewise.
21566         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21567         * sunrpc/rtime.c: Likewise.
21568         * sunrpc/svc.c: Likewise.
21569         * sunrpc/svc_auth.c: Likewise.
21570         * sunrpc/svc_authux.c: Likewise.
21571         * sunrpc/svc_raw.c: Likewise.
21572         * sunrpc/svc_run.c: Likewise.
21573         * sunrpc/svc_simple.c: Likewise.
21574         * sunrpc/svc_tcp.c: Likewise.
21575         * sunrpc/svc_udp.c: Likewise.
21576         * sunrpc/svc_unix.c: Likewise.
21577         * sunrpc/svcauth_des.c: Likewise.
21578         * sunrpc/xcrypt.c: Likewise.
21579         * sunrpc/xdr.c: Likewise.
21580         * sunrpc/xdr_array.c: Likewise.
21581         * sunrpc/xdr_float.c: Likewise.
21582         * sunrpc/xdr_mem.c: Likewise.
21583         * sunrpc/xdr_rec.c: Likewise.
21584         * sunrpc/xdr_ref.c: Likewise.
21585         * sunrpc/xdr_sizeof.c: Likewise.
21586         * sunrpc/xdr_stdio.c: Likewise.
21587
21588         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21589         handling.
21590
21591 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21592
21593         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21594
21595 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21596
21597         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21598         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21599         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21600         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21601         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21602         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21603         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21604         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21605         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21606         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21607         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21608         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21609         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21610         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21611
21612 2010-07-26  Anton Blanchard  <anton@samba.org>
21613
21614         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21615         * malloc/arena.c (heap_trim): Likewise.
21616
21617 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21618
21619         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21620         here.  Not...
21621         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21622         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21623
21624 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21625
21626         * sysdeps/i386/elf/Makefile: New file.
21627
21628 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21629
21630         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21631         from fanotify_init.
21632         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21633         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21634
21635 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21636
21637         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21638         of strncasecmp_l.
21639         * sysdeps/multiarch/strcmp.S: Likewise.
21640
21641 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21642
21643         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21644         strncase_l-nonascii.
21645         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21646         Add strncase_l-ssse3.
21647         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21648         * sysdeps/x86_64/strcmp.S: Likewise.
21649         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21650         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21651         * sysdeps/x86_64/strncase.S: New file.
21652         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21653         * sysdeps/x86_64/strncase_l.S: New file.
21654         * string/Makefile (strop-tests): Add strncasecmp.
21655         * string/test-strncasecmp.c: New file.
21656
21657         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21658         warning.
21659
21660         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21661         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21662
21663 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21664
21665         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21666
21667 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21668
21669         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21670         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21671         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21672
21673 2010-05-01  Alan Modra  <amodra@gmail.com>
21674
21675         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21676         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21677         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21678         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21679         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21680         tidying.  Don't tail-call __sigjmp_save for static lib.
21681         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21682         save location.
21683         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21684         (CALL_MCOUNT): Add eh info, and nop after bl.
21685         (TAIL_CALL_SYSCALL_ERROR): New macro.
21686         (PSEUDO_RET): Use it.
21687         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21688         Correct save location of integer regs and cr.
21689         (_dl_profile_resolve): Correct cr save location.  Delete nops
21690         after bl when SHARED.  Reduce cfi size a little by better
21691         placement of cfi directives.
21692         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21693         make a stack frame.  Instead use parm save area as a temp.
21694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21695         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21697         Don't make a stack frame for parent, use parm save area.
21698         Increase child stack frame to 112 bytes.  Don't save unused reg,
21699         and adjust reg usage.  Set up cfi on error recovery and
21700         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21702         (__makecontext): Add dummy nop after jump to exit.
21703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21704         Use correct parm save area and cr save, reduce stack frame.
21705         Correct cfi for possible PSEUDO_RET frame setup.
21706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21707         Branch to local label emitted by PSEUDO_RET rather than
21708         __syscall_error.
21709
21710 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21711
21712         [BZ #11904]
21713         * locale/programs/locale.c (print_assignment): New function.
21714         (show_locale_vars): Use it.
21715
21716 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21717
21718         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21719         field.
21720         (struct statfs64): Likewise.
21721         (_STATFS_F_FLAGS): Define.
21722         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21723         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21724         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21725         (ST_VALID): Define locally.
21726         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21727         __statvfs_getflags, use the provided value.
21728         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21729         __ASSUME_STATFS_F_FLAGS.
21730
21731         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21732
21733         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21734         Add sys/fanotify.h.
21735         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21736         fanotify_mask for GLIBC_2.13.
21737         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21738         fanotify_init and fanotify_mark.
21739         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21740         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21741
21742         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21743         Add prlimit.
21744         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21745         prlimit64 for GLIBC_2.13.
21746         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21747         prlimit64.
21748         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21749         syscall.
21750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21751         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21752         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21753         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21754         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21755         add prlimit alias.
21756         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21757
21758         [BZ #11903]
21759         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21760         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21761
21762         * nss/Makefile: Add rules to build and run tst-nss-test1.
21763         * shlib-versions: Add entry for libnss_test1.
21764         * nss/nss_test1.c: New file.
21765         * nss/tst-nss-test1.c: New file.
21766
21767         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21768         (__nss_configure_lookup): Set appropriate entry in
21769         __nss_configure_lookup to true.
21770         * nss/nsswitch.h: Define enum with indeces of databases in
21771         databases and __nss_database_custom arrays.  Declare
21772         __nss_database_custom.
21773         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21774         to avoid using nscd when custom rules are installed.
21775         * nss/getXXbyYY_r.c: Likewise.
21776         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21777
21778         * nss/nss_files/files-parse.c: Whitespace fixes.
21779
21780 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21781
21782         [BZ #11883]
21783         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21784         * posix/fnmatch_loop.c: Likewise.
21785
21786 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21787
21788         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21789         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21790         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21791         * Versions.def [GLIBC_2.13]: Add.
21792
21793 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21794
21795         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21796         Also fail if tpwd after pwuid call is NULL.
21797
21798 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21799
21800         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21801         when converting to ms.
21802
21803 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21804
21805         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21806         EOPNOTSUPP errors with ENOTTY.
21807         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21808         EOPNOTSUPP errors with ENOTTY.
21809
21810 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21811
21812         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21813         Add strcasecmp_l-ssse3.
21814         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21815         strcasecmp.
21816         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21817         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21818         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21819
21820 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21821
21822         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21823
21824         * string/Makefile (strop-tests): Add strcasecmp.
21825         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21826         strcasecmp_l-nonascii.
21827         (gen-as-const-headers): Add locale-defines.sym.
21828         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21829         * sysdeps/x86_64/strcasecmp.S: New file.
21830         * sysdeps/x86_64/strcasecmp_l.S: New file.
21831         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21832         * sysdeps/x86_64/locale-defines.sym: New file.
21833         * string/test-strcasecmp.c: New file.
21834
21835         * string/test-strcasestr.c: Test both ends of the range of characters.
21836         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21837
21838 2010-07-29  Roland McGrath  <roland@redhat.com>
21839
21840         [BZ #11856]
21841         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21842
21843 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21844
21845         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21846         for ld.so.
21847
21848 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21849
21850         * manual/memory.texi (Malloc Tunable Parameters): Document
21851         M_PERTURB.
21852
21853 2010-07-26  Roland McGrath  <roland@redhat.com>
21854
21855         [BZ #11840]
21856         * configure.in (-fgnu89-inline check): Set and substitute
21857         gnu89_inline, not libc_cv_gnu89_inline.
21858         * configure: Regenerated.
21859         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21860
21861 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21862
21863         * string/test-strnlen.c: New file.
21864         * string/Makefile (strop-tests): Add strnlen.
21865         * string/tester.c (test_strnlen): Add a few more test cases.
21866         * string/tst-strlen.c: Better error reporting.
21867
21868         * sysdeps/x86_64/strnlen.S: New file.
21869
21870 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21871
21872         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21873         lower-latency instructions.
21874
21875 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21876
21877         * string/test-strcasestr.c: New file.
21878         * string/test-strstr.c: New file.
21879         * string/Makefile (strop-tests): Add strstr and strcasestr.
21880         * string/str-two-way.h: Don't undefine MAX.
21881         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21882
21883 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21884
21885         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21886         strcasestr-nonascii.
21887         (CFLAGS-strcasestr-nonascii.c): Define.
21888         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21889         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21890         Remove unused attribute.
21891
21892 2010-07-20  Roland McGrath  <roland@redhat.com>
21893
21894         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21895         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21896         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21897         like LD_HWCAP_MASK can disable hwcaps.
21898
21899 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21900
21901         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21902
21903 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21904
21905         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21906         call in strcasestr.
21907         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21908         __strcasestr_sse42_nonascii.
21909         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21910         strcasestr-nonascii.c.
21911         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21912
21913 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21914
21915         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21916         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21917         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21918         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21919
21920 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21921
21922         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21923         fcntl.
21924
21925 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21926
21927         [BZ #11577]
21928         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21929         dl_signal_cerror.
21930
21931 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21932
21933         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21934         _PC_PIPE_BUF using F_GETPIPE_SZ.
21935
21936 2010-07-05  Roland McGrath  <roland@redhat.com>
21937
21938         * manual/arith.texi (Rounding Functions): Fix rint description
21939         implicit in round description.
21940
21941 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21942
21943         * elf/Makefile: Fix linking for a few tests to make recent linker
21944         happy.
21945
21946 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21947
21948         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21949         $(common-objpfx)libc_nonshared.a.
21950
21951 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21952
21953         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21954         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21955         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21956         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21957         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21958         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21959         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21960         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21975         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21976         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21977         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21978         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21979         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21980         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21981         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21982         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21983         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21984         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21985         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21986         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22001
22002 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22003
22004         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22005         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22006         * string/memmove.c (memmove): Renamed to ...
22007         (MEMMOVE): ...this.  Default to memmove.
22008         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22009         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22010         (END_CHK): Define.
22011         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22012         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22013         mempcpy-ssse3-back memmove-ssse3-back.
22014         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22015         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22016         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22017         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22018         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22019         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22020         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22021         * sysdeps/x86_64/multiarch/memmove.c: New file.
22022         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22023         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22024         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22025         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22026         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22027         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22028         Define.
22029         (index_Fast_Copy_Backward): Define.
22030         (HAS_ARCH_FEATURE): Define.
22031         (HAS_FAST_REP_STRING): Define.
22032         (HAS_FAST_COPY_BACKWARD): Define.
22033
22034 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22035
22036         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22037         Restore proper fallback handling.
22038
22039 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22040
22041         [BZ #11701]
22042         * posix/group_member.c (__group_member): Correct checking loop.
22043
22044         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22045         OOM in getpwuid_r correctly.  Return error number when the caller
22046         should return, otherwise -1.
22047         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22048         call returning > 0 value.
22049         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22050
22051 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22052
22053         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22054         libc_nonshared.a from targets in modules-names.
22055
22056 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22057
22058         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22059         requires it.
22060
22061 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22062
22063         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22064         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22065         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22066         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22067
22068 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22069
22070         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22071
22072 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22073
22074         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22075         and F_GETPIPE_SZ.
22076         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22077         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22078         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22079         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22080         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22081         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22082
22083 2010-06-14  Roland McGrath  <roland@redhat.com>
22084
22085         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22086
22087 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22088
22089         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22090         __REDIRECT followed by __THROW.
22091         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22092         * posix/getopt.h (getopt): Likewise.
22093
22094 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22095
22096         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22097         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22098         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22099         in AT_FLAGS.
22100         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22101         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22102
22103 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22104
22105         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22106
22107 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22108
22109         [BZ #11640]
22110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22111         Properly check family and model.
22112
22113 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22114
22115         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22116
22117 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22118
22119         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22120
22121 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22122
22123         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22124         symbol reference.
22125
22126 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22127
22128         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22129         symbol reference.
22130
22131 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22132
22133         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22134         and internal_recvmmsg.
22135         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22136         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22137         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22138         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22139
22140         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22141         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22142         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22143
22144 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22145
22146         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22147
22148 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22149
22150         POWER7 optimizations.
22151         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22152         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22153
22154 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22155
22156         * version.h: Update for 2.13 development version.
22157
22158 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22159
22160         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22161         exceptions.  Return 0.
22162
22163 2010-05-07  Roland McGrath  <roland@redhat.com>
22164
22165         * elf/ldconfig.c (main): Add a const.
22166
22167 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22168
22169         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22170         (args_options): Add no-idn option.
22171         (ahosts_keys_int): Add idn_flags to ai_flags.
22172         (parse_option): Handle 'i' option to clear idn_flags.
22173
22174         * malloc/malloc.c (_int_free): Possible race in the most recently
22175         added check.  Only act on the data if no current modification
22176         happened.
22177
22178 See ChangeLog.17 for earlier changes.