7c8164ac7ce86acedc259107a838b1a7eb5504ed
[jlayton/glibc.git] / ChangeLog
1 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
4
5 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6
7         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
8         add multiarch folders.
9         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
11         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
12         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
13         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
14         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
15         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
16         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
17         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
18         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
19         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
20         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
21         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
22         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
23         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
24         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
25         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
26
27 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28
29         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
30         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
31         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
32         New file.
33         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
34         New file.
35         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
36         multiarch __ieee754_hypot for PowerPC32.
37         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
38         New file.
39         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40         New file.
41         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
42         multiarch __ieee754_hypotf for PowerPC32.
43
44 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45
46         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
47         long_double_symbol only if __logbl is defined.
48         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
49         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
50         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
51         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
52         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
53         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
55         path for implementation.
56         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
57         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
58         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
59         logb, and logbl multiarch implementations for PowerPC32.
60         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
61         file.
62         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
63         file.
64         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
65         multiarch logb for PowerPC32.
66         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
67         file.
68         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
69         file.
70         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
71         multiarch logbf for PowerPC32.
72         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
73         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
74         file.
75         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
76         multiarch logbl implementation for PowerPC32.
77
78 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79
80         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
81         and modff multiarch implementations.
82         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
83         New file.
84         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
85         New file.
86         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
87         multiarch modf for PowerPC32.
88         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
89         New file.
90         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
91         New file.
92         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
93         multiarch modff for PowerPC32.
94
95 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
96
97         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
98         and lrintf multiarch implementations.
99         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
100         New file.
101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
102         New file.
103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
104         multiarch lrint for PowerPC32.
105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
106         file: multiarch lrintf for PowerPC32.
107
108 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
109
110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
111         and lroundf multiarch implementations.
112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
113         New file.
114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
115         New file.
116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
117         New file.
118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
119         multiarch lround for PowerPC32.
120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
121         file: multiarch lroundf for PowerPC32.
122
123 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
124
125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
126         copysign and copysignf multiarch implementations.
127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
128         New file.
129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
130         New file.
131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
132         file: multiarch copysign for PowerPC32.
133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
134         file: multiarch copysignf for PowerPC32.
135
136 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
137
138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
139         and truncf multiarch implementations.
140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
141         New file.
142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
143         file.
144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
145         multiarch trunc for PowerPC32.
146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
147         New file.
148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
149         New file.
150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
151         multiarch truncf for PowerPC32.
152
153 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
154
155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
156         and roundf multiarch implementations.
157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
158         New file.
159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
160         file.
161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
162         multiarch round for PowerPC32.
163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
164         New file.
165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
166         New file.
167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
168         multiarch roundf for PowerPC32.
169
170 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
171
172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
173         and floorf multiarch implementations.
174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
175         New file.
176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
177         file.
178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
179         multiarch floor for PowerPC32.
180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
181         New file.
182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
183         New file.
184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
185         multiarch floorf for PowerPC32.
186
187 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
188
189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
190         and ceilf multiarch implementations.
191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
192         New file.
193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
194         file.
195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
196         multiarch ceil for PowerPC32.
197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
198         New file.
199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
200         file.
201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
202         multiarch ceilf for PowerPC32.
203
204 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
205
206         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
207         is defined.
208         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
209         FINITEF is defined.
210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
211         and finitef multiarch implementations.
212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
213         New file.
214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
215         file.
216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
217         multiarch finite for PowerPC32.
218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
219         New file.
220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
221         file: multiarch finitef for PowerPC32.
222
223 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
224
225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
226         and isinff multiarch implementations.
227         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
228         file.
229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
230         file.
231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
232         multiarch isinf for PowerPC32.
233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
234         New file.
235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
236         multiarch isinff for PowerPC32.
237
238 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
239
240         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
241         alias when __isnan is defined.
242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
243         and isnanf multiarch implementations.
244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
245         file.
246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
247         file.
248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
249         file.
250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
251         file.
252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
253         multiarch isnan for PowerPC32.
254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
255         New file.
256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
257         New file.
258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
259         multiarch isnanf for PowerPC32.
260
261 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
262
263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
264         and sqrtf multiarch implementations.
265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
266         file.
267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
268         file.
269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
270         multiarch sqrt for PowerPC32.
271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
272         file.
273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
274         file.
275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
276         multiarch sqrtf for PowerPC32.
277
278 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
279
280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
281         and llroundf multiarch implementations.
282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
283         New file.
284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
285         New file.
286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
287         New file.
288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
289         file: multiarch llround for PowerPC32.
290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
291         file: multiarch llroundf for PowerPC32.
292
293 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
294
295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
296         multiarch PowerPC32 fpu implementations.
297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
298         New file.
299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
300         New file.
301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
302         multiarch llrint for PowerPC32.
303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
304         New file.
305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
306         New file.
307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
308         file.
309
310 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
311
312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
313
314 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
315
316         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
317         file.
318         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
319         file.
320         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
321         file.
322         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
323         multiarch wordcopy for PPC32.
324         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
325         wordcopy objects.
326         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
327         (__libc_ifunc_impl_list): Likewise.
328         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
329         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
330         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
331         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
332         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
333         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
334
335 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
336
337         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
338         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
339         file.
340         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
341         file.
342         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
343         file.
344         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
345         multiarch wcscpy for PPC32.
346         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
347         multiarch objects.
348         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
349         (__libc_ifunc_impl_list): Likewise.
350         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
351         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
352         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
353         sysdeps/powerpc/power6/wcscpy.c.
354
355 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
356
357         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
358         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
359         file.
360         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
361         file.
362         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
363         file.
364         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
365         multiarch wcsrchr for PPC32.
366         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
367         multiarch objects.
368         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
369         (__libc_ifunc_impl_list): Likewise.
370         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
371         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
372         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
373         sysdeps/powerpc/power6/wcsrchr.c.
374
375 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
376
377         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
378         file.
379         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
380         file.
381         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
382         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
383         multiarch wcschr for PPc32.
384         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
385         multiarch objects.
386         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
387         (__libc_ifunc_impl_list): Likewise.
388         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
389         * sysdeps/powerpc/power6/wcschr.c: ... to here.
390         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
391         sysdeps/powerpc/power6/wcschr.c.
392
393 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
394
395         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
396         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
397         file.
398         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
399         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
400         file: multiarch strchr for PPC32.
401         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
402         multiarch objects.
403         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
404         (__libc_ifunc_impl_list): Likewise.
405
406 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
407
408         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
409         name.
410         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
411         file.
412         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
413         file.
414         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
415         multiarch strchrnul for PPC32.
416         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
417         multiarch objects.
418         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
419         (__libc_ifunc_impl_list): Likewise.
420
421 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
422
423         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
424         file.
425         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
426         multiarch strncasecmp for PPC32.
427         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
428         file.
429         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
430         multiarch strncasecmp_l for PPC32.
431         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
432         strncasecmp multiarch objects.
433         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
434         (__libc_ifunc_impl_list): Likewise.
435
436 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
437
438         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
439         file.
440         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
441         multiarch strncasecmp for PPC32.
442         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
443         New file.
444         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
445         multiarch strcasecmp_l for PPC32.
446         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
447         multiarch objects.
448         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
449         (__libc_ifunc_impl_list): Likewise.
450
451 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
452
453         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
454         file.
455         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
456         file.
457         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
458         multiarch strncmp for PPC32.
459         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
460         multiarch objects.
461         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
462         (__libc_ifunc_impl_list): Likewise.
463
464 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
465
466         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
467         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
468         file.
469         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
470         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
471         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
472         multiarch objects.
473         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
474         (__libc_ifunc_impl_list): Likewise.
475
476 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
477
478         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
479         file.
480         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
481         file.
482         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
483         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
484         multiarch objects.
485         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
486         (__libc_ifunc_impl_list): Likewise.
487
488 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
489
490         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
491         file.
492         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
493         file.
494         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
495         multiarch rawmemchr for PPC32.
496         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
497         multiarch objects.
498         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
499         (__libc_ifunc_impl_list): Likewise.
500
501 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
502
503         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
504         file.
505         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
506         file.
507         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
508         file: memrchr multiarch for PPC32.
509         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
510         multiarch objects.
511         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
512         (__libc_ifunc_impl_list): Likewise.
513
514 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
515
516         * string/memchr.c (__memchr): Using macro to redefine symbol name.
517         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
518         file.
519         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
520         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
521         multiarch memchr for PPC32.
522         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
523         multiarch objects.
524         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
525         (__libc_ifunc_impl_list): Likewise.
526
527 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
528
529         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
530         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
531         file.
532         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
533         file.
534         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
535         file: multiarch mempcpy for PPC32.
536         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
537         multiarch objects.
538         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
539         (__libc_ifunc_impl_list): Likewise.
540
541 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
542
543         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
544         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
545         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
546         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
547         multiarch bzero for PPC32.
548         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
549         file.
550         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
551         file.
552         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
553         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
554         file: multiarch memset for PPC32.
555         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
556         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
557         memset multiarch objects.
558         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
559         (__libc_ifunc_impl_list): Likewise.
560
561 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
562
563         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
564         file.
565         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
566         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
567         memcmp for PPC32.
568         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
569         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
570         multiarch objects.
571         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
572         (__libc_ifunc_impl_list): Likewise.
573
574 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
575
576         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
577         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
578         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
579         file.
580         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
581         file.
582         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
583         file.
584         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
585         multiarch memcpy for PPC32.
586         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
587         multiarch objects.
588         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
589         (__libc_ifunc_impl_list): Likewise.
590
591 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
592
593         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
594         support multiarch for POWER/PPC32.
595         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
596         Likewise.
597         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
599         Implies file to make multiarch folder appers before the fpu and
600         default folder for power4 configuration.
601
602 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
603
604         * scripts/bench.pl: Append volatile keyword to type.
605
606 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
607
608         * sysdeps/sh/sotruss-lib.c: New file.
609         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
610
611 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
612
613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
614
615 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
616
617         [BZ #6810]
618         * math/w_tgamma.c: Include <errno.h>.
619         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
620         * math/w_tgammaf.c: Include <errno.h>.
621         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
622         * math/w_tgammal.c: Include <errno.h>.
623         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
624         * math/auto-libm-test-in: Do not allow missing errno on tgamma
625         underflow.  Add more tgamma tests.
626         * math/auto-libm-test-out: Regenerated.
627         * sysdeps/i386/fpu/libm-test-ulps: Update.
628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
629
630         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
631         sin, sinh, tan, tanh, tgamma, y0 and y1.
632         * math/auto-libm-test-out: Regenerated.
633         * math/libm-test.inc (TEST_COND_x86_64): New macro.
634         (TEST_COND_x86): Likewise.
635         (M_E2l): Remove macro.
636         (M_E3l): Likewise.
637         (M_2_SQRT_PIl): Likewise.
638         (M_SQRT_PIl): Likewise.
639         (M_1_DIV_El): Likewise.
640         (log_test_data): Use AUTO_TESTS_f_f.
641         (log10_test_data): Likewise.
642         (log1p_test_data): Likewise.
643         (log2_test_data): Likewise.
644         (sin_test_data): Likewise.
645         (sin_tonearest_test_data): Likewise.
646         (sin_towardzero_test_data): Likewise.
647         (sin_downward_test_data): Likewise.
648         (sin_upward_test_data): Likewise.
649         (sinh_test_data): Likewise.
650         (sinh_tonearest_test_data): Likewise.
651         (sinh_towardzero_test_data): Likewise.
652         (sinh_downward_test_data): Likewise.
653         (sinh_upward_test_data): Likewise.
654         (tan_test_data): Likewise.
655         (tan_tonearest_test_data): Likewise.
656         (tan_towardzero_test_data): Likewise.
657         (tan_downward_test_data): Likewise.
658         (tan_upward_test_data): Likewise.
659         (tanh_test_data): Likewise.
660         (tgamma_test_data): Likewise.
661         (y0_test_data): Likewise.
662         (y1_test_data): Likewise.
663         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
664         (special_real_inputs): Add pi/4.
665         * sysdeps/i386/fpu/libm-test-ulps: Update.
666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
667
668 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
669
670         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
671         "longjmp_target" static probes.
672         (__longjmp): Rename to __longjmp_symbol.
673         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
674         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
675         on which longjmp to generate.
676         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
677         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
678         probe.
679         (__sigsetjmp): Rename to __sigsetjmp_symbol.
680         (__sigjmp_save): Rename to __sigjmp_save_symbol.
681         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
682         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
683         and __sigjmp_save_symbol based on which sigsetjmp to generated.
684         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
686         __longjmp_symbol based on which __longjmp to generate.
687         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
688         probe.
689         (setjmp): Rename to setjmp_symbol.
690         (__sigsetjmp): Rename to __sigsetjmp_symbol.
691         (_setjmp): Rename to _setjmp_symbol.
692         (__sigsetjmp): Rename to __sigsetjmp_symbol.
693         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
694         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
695         which setjmp to generate.
696         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
697         "longjmp_target" static probes.
698
699 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
700
701         * benchtests/README: Add note about output arguments.
702         * benchtests/bench-sincos.c: Remove file.
703         * benchtests/sincos-inputs: New file.
704         * scripts/bench.pl: Identify output arguments and define
705         static variables for them.
706
707         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
708
709         [BZ #15941]
710         * Makefile (INSTALL): Add install-plain.texi as the primary
711         dependency.
712         * manual/install-plain.texi: New file.
713         * manual/install.texi: Include node directive only for
714         non-plaintext output.
715
716 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
717
718         * stdlib/longlong.h: Update from GCC.
719
720         [BZ #6807]
721         [BZ #15901]
722         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
723         * math/w_j0f.c (y0f): Likewise.
724         * math/w_j0l.c (__y0l): Likewise.
725         * math/w_j1.c (y1): Likewise.
726         * math/w_j1f.c (y1f): Likewise.
727         * math/w_j1l.c (__y1l): Likewise
728         * math/w_jn.c (yn): Likewise.
729         * math/w_jnf.c (ynf): Likewise.
730         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
731         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
732         value for Bessel function domain errors outside _SVID_ mode.
733         Adjust sign of return value for yn (negative integer, 0).
734         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
735         by zero in return for negative x and set sign appropriately for
736         negative n.
737         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
738         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
739         * math/libm-test.inc (y0_test_data): Add more tests and adjust
740         expectations in error cases.
741         (y1_test_data): Likewise.
742         (yn_test_data): Likewise.
743         * sysdeps/i386/fpu/libm-test-ulps: Update.
744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
745
746 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
747
748         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
749         "64" to "64-v1".  Add "64-v2".
750         (abi-64-options): Rename to ...
751         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
752         (abi-64-condition): Rename to ...
753         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
754         (abi-64-ld-soname): Rename to ...
755         (abi-64-v1-ld-soname): ... this.
756         (abi-64-v2-options): Define.
757         (abi-64-v2-condition): Likewise.
758         (abi-64-v2-ld-soname): Likewise.
759         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
760         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
764
765 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
766             Alan Modra  <amodra@gmail.com>
767
768         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
769         New versions for use with the ELFv2 ABI.
770         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
771         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
772         declaration.
773         (struct La_ppc64v2_retval): Likewise.
774         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
775         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
776         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
777         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
778         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
779         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
780         Do not save or restore CR.
781         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
782         (_dl_profile_resolve): Do no save or restore CR.  Support extended
783         return values for ELFv2 ABI.  Fix location of FPR return registers.
784         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
785         updated values for _CALL_ELF == 2.
786         (La_regs, La_retval, int_retval): Likewise.
787
788 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
789
790         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
791         (FRAME_MIN_SIZE_PARM): Likewise.
792         (FRAME_BACKCHAIN): Likewise.
793         (FRAME_CR_SAVE): Likewise.
794         (FRAME_LR_SAVE): Likewise.
795         (FRAME_TOC_SAVE): Likewise.
796         (FRAME_PARM_SAVE): Likewise.
797         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
798         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
799         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
800         (call_mcount_parm_offset): New macro.
801         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
802         (PROF): Use symbolic stack frame offsets.
803         (TAIL_CALL_SYSCALL_ERROR): Likewise.
804         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
805         Redefine in terms of FRAME_MIN_SIZE.
806         (_dl_runtime_resolve): Use symbolic stack frame offsets.
807         (_dl_profile_resolve): Likewise.  Update comment.
808         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
809         symbols stack frame offsets.
810         (__sigsetjmp): Likewise.
811         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
812         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
813         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
814         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
815
816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
817         (FRAME_BACKCHAIN): Remove.
818         (FRAME_CR_SAVE): Likewise.
819         (FRAME_LR_SAVE): Likewise.
820         (FRAME_COMPILER_DW): Likewise.
821         (FRAME_LINKER_DW): Likewise.
822         (FRAME_TOC_SAVE): Likewise.
823         (FRAME_PARM_SAVE): Likewise.
824         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
825         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
826         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
828         (CHECK_SP): Use symbolic stack frame offsets.
829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
830         zone" instead of caller's parameter save area for temp storage.
831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
832         Likewise.  Also, use symbolic stack frame offsets.
833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
834         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
835         our own stack frame instead of the caller's.
836         (__socket): Use symbolic stack frame offsets.
837
838 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
839             Alan Modra  <amodra@gmail.com>
840
841         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
842         Define.
843         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
844         PPC64_LOCAL_ENTRY_OFFSET): Define.
845         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
846         New function.
847         (elf_machine_fixup_plt): Call it.
848         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
849         reloc arguments.
850         (elf_machine_rela): Update call to elf_machine_plt_conflict.
851         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
852         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
853         r2 before calling target.
854
855 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
856             Alan Modra  <amodra@gmail.com>
857
858         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
859         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
860         versions of macros to support ELFv2 ABI.
861         (LOCALENTRY): New macro.
862         (ENTRY, EALIGN): Use it.
863         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
864         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
865         fall through into ENTRY entry point.
866         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
867         Only define if _CALL_ELF != 2.
868
869         (elf_machine_matches_host): Verify ABI version matches.
870         (RTLD_START): Use LOCALENTRY.
871         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
872         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
873         (PLT_ENTRY_WORDS): New macro.
874         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
875         (elf_machine_runtime_setup): Support ELFv2 ABI.
876         (elf_machine_fixup_plt): Likewise.
877         (elf_machine_plt_conflict): Likewise.
878         (resolve_ifunc): Likewise.
879         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
880         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
881         Likewise.
882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
883         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
885         (makecontext): Support ELFv2 ABI.
886         * elf/elf.h (EF_PPC64_ABI): Define.
887
888 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
889
890         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
891         New assembler macro.
892         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
893         [ASSEMBLER] (ENTRY): ... but instead here ...
894         [ASSEMBLER] (EALIGN): ... and here.
895         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
896         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
897         [!ASSEMBLER] (ENTRY_2): Use it.
898         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
899         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
900         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
901         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
902         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
904         Use PPC64_LOAD_FUNCPTR.
905
906 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
907
908         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
909
910 2013-12-04  Alan Modra  <amodra@gmail.com>
911
912         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
913         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
914         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
915         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
916
917         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
918         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
919         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
920         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
921         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
922         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
923
924 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
925
926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
927         (__makecontext): Fix incorrect CFI when backtracing out of
928         context created via makecontext.
929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
930         (__setcontext): Fix incorrect CFI during switch to new context.
931         (__novec_setcontext): Likewise.
932
933 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
934
935         [BZ #4772]
936         * time/strptime_l.c (__strptime_internal): Allow modifiers
937         in strptime.
938         * time/tst-strptime.c (day_tests): Add testcase.
939
940
941 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
942
943         * scripts/bench.pl: Skip over blank lines.
944
945 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
946
947         [BZ #926]
948         * manual/time.texi (Calendar Time): Clarify what timezone functions
949         use.
950
951 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
952
953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
954
955 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
956
957         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
958         implementation.
959         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
960         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
961         * debug/memset_chk.c (__memset_chk): Likewise.
962         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
963         * debug/strncpy_chk.c: Likewise.
964
965 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
966
967         [BZ #15268]
968         [BZ #15425]
969         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
970         (__ieee754_exp): For possibly underflowing results, check size of
971         result and force underflow exception if required.
972         * math/auto-libm-test-in: Add more tests of exp.
973         * math/auto-libm-test-out: Regenerated.
974         * sysdeps/i386/fpu/libm-test-ulps: Update.
975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
976
977         [BZ #16283]
978         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
979         * math/w_exp2f.c (__exp2f): Likewise.
980         * math/w_exp2l.c (__exp2l): Likewise.
981         * math/auto-libm-test-in: Do not allow missing errno on exp2
982         underflow.
983         * math/auto-libm-test-out: Regenerated.
984
985 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
986
987         [BZ #16274]
988         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
989         handle filename validation.
990         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
991         (do_open): Delete.
992
993 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
994
995         [BZ #6786]
996         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
997         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
998         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
999         <float.h>.
1000         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
1001         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
1002         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1003         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
1004         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1005         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
1006         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1007         * math/auto-libm-test-in: Don't allow missing errno from erfc.
1008         Add more erfc tests.
1009         * math/auto-libm-test-out: Regenerated.
1010         * sysdeps/i386/fpu/libm-test-ulps: Update.
1011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1012
1013         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
1014         exp2, expm1, j0 and j1.
1015         * math/auto-libm-test-out: Regenerated.
1016         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
1017         (erfc_test_data): Likewise.
1018         (exp_test_data): Likewise.
1019         (exp_tonearest_test_data): Likewise.
1020         (exp_towardzero_test_data): Likewise.
1021         (exp_downward_test_data): Likewise.
1022         (exp_upward_test_data): Likewise.
1023         (exp10_test_data): Likewise.
1024         (exp2_test_data): Likewise.
1025         (expm1_test_data): Likewise.
1026         (j0_test_data): Likewise.
1027         (j1_test_data): Likewise.
1028         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
1029         (input_flag_type): Add flag_xfail_rounding.
1030         (input_flags): Add xfail-rounding.
1031         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
1032         (output_for_one_input_case): Handle flag_xfail_rounding.
1033         * sysdeps/i386/fpu/libm-test-ulps: Update.
1034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1035
1036 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
1037
1038         [BZ #16289]
1039         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
1040         division by 0.
1041
1042 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1043
1044         [BZ #16195]
1045         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1046         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
1047         (STAP_PROBE0): New macro.
1048         (STAP_PROBE1): Likewise.
1049         (STAP_PROBE2): Likewise.
1050         (STAP_PROBE3): Likewise.
1051         (STAP_PROBE4): Likewise.
1052
1053 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
1054
1055         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
1056
1057 2013-12-02  Steve Ellcey  <sellcey@mips.com>
1058
1059         * benchtests/Makefile (bench): Add sqrt.
1060         (LDLIBS-bench-sqrt): New.
1061         * benchtests/sqrt-input: New.
1062
1063 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
1064
1065         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
1066         (GAIH_EAI): Likewise.
1067         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
1068         (gaih_inet): Likewise.
1069         (getaddrinfo): Don't use GAIH_EAI.
1070
1071         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
1072         (struct gaih): Remove definition.
1073
1074 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1075
1076         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
1077         Use HERRNOP directly.
1078
1079 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1080
1081         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1082
1083 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
1084
1085         * math/gen-auto-libm-tests.c (test_functions): Add more
1086         single-argument functions.
1087         (special_fill_pi_2): New function.
1088         (special_fill_minus_pi_2): Likewise.
1089         (special_fill_pi_6): Likewise.
1090         (special_fill_minus_pi_6): Likewise.
1091         (special_fill_pi_3): Likewise.
1092         (special_fill_2pi_3): Likewise.
1093         (special_fill_e): Likewise.
1094         (special_fill_1_e): Likewise.
1095         (special_fill_e_minus_1): Likewise.
1096         (special_real_inputs): Add more special inputs.
1097         (output_for_one_input_case): Do not require ERANGE on underflow to
1098         zero if round-to-nearest result does not underflow to zero, unless
1099         exact results required.
1100         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
1101         atan, atanh, cbrt, cos and cosh.
1102         * math/auto-libm-test-out: Regenerated.
1103         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
1104         (acos_tonearest_test_data): Likewise.
1105         (acos_towardzero_test_data): Likewise.
1106         (acos_downward_test_data): Likewise.
1107         (acos_upward_test_data): Likewise.
1108         (acosh_test_data): Likewise.
1109         (asin_test_data): Likewise.
1110         (asin_tonearest_test_data): Likewise.
1111         (asin_towardzero_test_data): Likewise.
1112         (asin_upward_test_data): Likewise.
1113         (asinh_test_data): Likewise.
1114         (atan_test_data): Likewise.
1115         (atanh_test_data): Likewise.
1116         (cbrt_test_data): Likewise.
1117         (cos_test_data): Likewise.
1118         (cos_tonearest_test_data): Likewise.
1119         (cos_towardzero_test_data): Likewise.
1120         (cos_downward_test_data): Likewise.
1121         (cos_upward_test_data): Likewise.
1122         (cosh_test_data): Likewise.
1123         (cosh_tonearest_test_data): Likewise.
1124         (cosh_towardzero_test_data): Likewise.
1125         (cosh_downward_test_data): Likewise.
1126         (cosh_upward_test_data): Likewise.
1127         * sysdeps/i386/fpu/libm-test-ulps: Update.
1128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1129
1130 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1131
1132         [BZ #6787]
1133         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
1134         * math/w_exp10f.c (__exp10f): Likewise.
1135         * math/w_exp10l.c (__exp10l): Likewise.
1136         * math/libm-test.inc (exp10_test_data): Add more tests and expect
1137         errno settings in existing tests.
1138
1139         [BZ #14032]
1140         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
1141         precision control set to double precision.
1142         * sysdeps/i386/fpu/w_sqrt.c: New file.
1143         * math/auto-libm-test-in: Add more tests.
1144         * math/auto-libm-test-out: Update.
1145
1146         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
1147         (sqrt_test_tonearest): New function.
1148         (sqrt_towardzero_test_data): New variable.
1149         (sqrt_test_towardzero): New function.
1150         (sqrt_downward_test_data): New variable.
1151         (sqrt_test_downward): New function.
1152         (sqrt_upward_test_data): New variable.
1153         (sqrt_test_upward): New function.
1154         (main): Call the new functions.
1155
1156         * math/gen-auto-libm-tests.c: New file.
1157         * math/auto-libm-test-in: Likewise.
1158         * math/auto-libm-test-out: New generated file.
1159         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
1160         variables.
1161         (%beautify): Add generated representations of zero.
1162         (top level): Set $auto_input and call parse_auto_input.
1163         (beautify): Remove trailing "f" from hex float constants.
1164         (parse_args): Handle XFAIL_TEST.
1165         (convert_condition): New function.
1166         (or_value): Likewise.
1167         (or_cond_value): Likewise.
1168         (generate_testfile): Handle AUTO_TESTS_* lines.
1169         (parse_auto_input): New function.
1170         * math/libm-test.inc (XFAIL_TEST): New macro.
1171         (ERRNO_UNCHANGED): Update value.
1172         (ERRNO_EDOM): Likewise.
1173         (ERRNO_ERANGE): Likewise.
1174         (IGNORE_RESULT): Likewise.
1175         (TEST_COND_flt_32): New macro.
1176         (TEST_COND_dbl_64): Likewise.
1177         (TEST_COND_ldbl_96_intel): Likewise.
1178         (TEST_COND_ldbl_96_m68k): Likewise.
1179         (TEST_COND_ldbl_128): Likewise.
1180         (TEST_COND_ldbl_128ibm): Likewise.
1181         (TEST_COND_long32): Likewise.
1182         (TEST_COND_long64): Likewise.
1183         (TEST_COND_before_rounding): Likewise.
1184         (TEST_COND_after_rounding): Likewise.
1185         (enable_test): Handle XFAIL_TEST flag.
1186         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
1187         with finite results.
1188         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
1189         auto-libm-test-out.
1190
1191 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1192             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1193
1194         [BZ #16214]
1195         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
1196         __tls_get_addr_internal instead of __tls_get_offset in order to
1197         avoid GOT pointer dependency.  Make rtld export
1198         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
1199         __tls_get_addr since we are a __tls_get_offset platform.
1200         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
1201         GOT pointer being set up before.
1202         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
1203
1204 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
1205
1206         * manual/math.texi (Errors in Math Functions): Document accuracy
1207         goals.
1208
1209         [BZ #15004]
1210         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
1211         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
1212         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
1213         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
1214         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
1215         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1216         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
1217         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
1218         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1219         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
1220         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
1221         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
1222         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
1223         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
1224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
1225         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
1226
1227         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
1228         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
1229         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
1230         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
1231         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
1232         Likewise.
1233         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
1234         Likewise.
1235         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
1236         Likewise.
1237         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
1238         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
1239         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
1240         atomic-feupdateenv and flt-rounds.
1241         * sysdeps/powerpc/nofpu/Versions (libc): Add
1242         __atomic_feholdexcept, __atomic_feclearexcept,
1243         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
1244         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
1245         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
1246         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
1247         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
1248         here.
1249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
1250         Update.
1251
1252         * manual/arith.texi (FP Exceptions): Document that exceptions may
1253         not be raised when matherr is used.
1254         (Math Error Reporting): Document overflow in directed rounding
1255         modes.  Document that errno may not be set when finite values are
1256         returned on overflow.  Document intent to set errno on underflow
1257         only for underflow to zero.
1258
1259         [BZ #16271]
1260         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
1261         round-to-nearest then adjust result for other rounding modes.
1262         * include/fenv.h (fegetround): Use libm_hidden_proto.
1263         * math/fegetround.c (fegetround): Use libm_hidden_def.
1264         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
1265         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
1266         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
1267         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
1268         Likewise.
1269         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
1270         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
1271         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
1272         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
1273
1274 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1275
1276         [BZ #16077]
1277         * nss/Versions (libnss_files): Add
1278         _nss_files_gethostbyname3_r.
1279         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
1280         New function.
1281         (HOST_DB_LOOKUP): Remove macro.
1282         (_nss_files_gethostbyname_r): Implement function without the
1283         HOST_DB_LOOKUP macro.
1284         (_nss_files_gethostbyname2_r): Likewise.
1285
1286 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
1287
1288         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
1289
1290 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
1291
1292         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
1293         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
1294         warning.
1295
1296 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1297
1298         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
1299         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
1300         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
1301         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
1302         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
1303         __fe_nomask_env_priv and attribute_hidden.
1304         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
1305         (libc_feupdateenv_test_ppc): Likewise.
1306         (libc_feresetround_ppc): Likewise.
1307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1308         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
1309         compat_symbol macro.
1310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1311         (__fe_nomask_env): Likewise.
1312         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
1313
1314 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
1315
1316         * string/Makefile: Remove ifunc tests.
1317         * string/test-string.h: Define TEST_IFUNC.
1318         * string/test-bcopy-ifunc.c: Remove.
1319         * string/test-bzero-ifunc.c: Likewise.
1320         * string/test-memccpy-ifunc.c: Likewise.
1321         * string/test-memchr-ifunc.c: Likewise.
1322         * string/test-memcmp-ifunc.c: Likewise.
1323         * string/test-memcpy-ifunc.c: Likewise.
1324         * string/test-memmem-ifunc.c: Likewise.
1325         * string/test-memmove-ifunc.c: Likewise.
1326         * string/test-mempcpy-ifunc.c: Likewise.
1327         * string/test-memrchr-ifunc.c: Likewise.
1328         * string/test-memset-ifunc.c: Likewise.
1329         * string/test-rawmemchr-ifunc.c: Likewise.
1330         * string/test-stpcpy-ifunc.c: Likewise.
1331         * string/test-stpncpy-ifunc.c: Likewise.
1332         * string/test-strcasecmp-ifunc.c: Likewise.
1333         * string/test-strcasestr-ifunc.c: Likewise.
1334         * string/test-strcat-ifunc.c: Likewise.
1335         * string/test-strchr-ifunc.c: Likewise.
1336         * string/test-strchrnul-ifunc.c: Likewise.
1337         * string/test-strcmp-ifunc.c: Likewise.
1338         * string/test-strcpy-ifunc.c: Likewise.
1339         * string/test-strcspn-ifunc.c: Likewise.
1340         * string/test-strlen-ifunc.c: Likewise.
1341         * string/test-strncasecmp-ifunc.c: Likewise.
1342         * string/test-strncat-ifunc.c: Likewise.
1343         * string/test-strncmp-ifunc.c: Likewise.
1344         * string/test-strncpy-ifunc.c: Likewise.
1345         * string/test-strnlen-ifunc.c: Likewise.
1346         * string/test-strpbrk-ifunc.c: Likewise.
1347         * string/test-strrchr-ifunc.c: Likewise.
1348         * string/test-strspn-ifunc.c: Likewise.
1349         * string/test-strstr-ifunc.c: Likewise.
1350
1351 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
1352
1353         * benchtests/Makefile: Remove ifunc tests.
1354         * benchtests/bench-string.h: Define TEST_IFUNC.
1355         * benchtests/bench-bcopy-ifunc.c: Remove.
1356         * benchtests/bench-bzero-ifunc.c: Likewise.
1357         * benchtests/bench-memccpy-ifunc.c: Likewise.
1358         * benchtests/bench-memchr-ifunc.c: Likewise.
1359         * benchtests/bench-memcmp-ifunc.c: Likewise.
1360         * benchtests/bench-memcpy-ifunc.c: Likewise.
1361         * benchtests/bench-memmem-ifunc.c: Likewise.
1362         * benchtests/bench-memmove-ifunc.c: Likewise.
1363         * benchtests/bench-mempcpy-ifunc.c: Likewise.
1364         * benchtests/bench-memrchr-ifunc.c: Likewise.
1365         * benchtests/bench-memset-ifunc.c: Likewise.
1366         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
1367         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
1368         * benchtests/bench-stpcpy-ifunc.c: Likewise.
1369         * benchtests/bench-stpncpy-ifunc.c: Likewise.
1370         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
1371         * benchtests/bench-strcasestr-ifunc.c: Likewise.
1372         * benchtests/bench-strcat-ifunc.c: Likewise.
1373         * benchtests/bench-strchr-ifunc.c: Likewise.
1374         * benchtests/bench-strchrnul-ifunc.c: Likewise.
1375         * benchtests/bench-strcmp-ifunc.c: Likewise.
1376         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
1377         * benchtests/bench-strcpy-ifunc.c: Likewise.
1378         * benchtests/bench-strcspn-ifunc.c: Likewise.
1379         * benchtests/bench-strlen-ifunc.c: Likewise.
1380         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
1381         * benchtests/bench-strncat-ifunc.c: Likewise.
1382         * benchtests/bench-strncmp-ifunc.c: Likewise.
1383         * benchtests/bench-strncpy-ifunc.c: Likewise.
1384         * benchtests/bench-strnlen-ifunc.c: Likewise.
1385         * benchtests/bench-strpbrk-ifunc.c: Likewise.
1386         * benchtests/bench-strrchr-ifunc.c: Likewise.
1387         * benchtests/bench-strsep-ifunc.c: Likewise.
1388         * benchtests/bench-strspn-ifunc.c: Likewise.
1389         * benchtests/bench-strstr-ifunc.c: Likewise.
1390
1391 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
1392
1393         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
1394
1395 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
1396
1397         * resolv/netdb.h: Use __glibc_reserved instead __unused.
1398         * rt/aio.h: Likewise.
1399         * sysdeps/gnu/bits/utmp.h: Likewise.
1400         * sysdeps/gnu/bits/utmpx.h: Likewise.
1401         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
1402         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
1403         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
1404         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
1405         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1406         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1407         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
1408         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
1409         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
1410         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
1411         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
1412         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1413         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
1415         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
1416         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
1417         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
1418         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
1419         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1420         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1421         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
1422         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
1423         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
1424         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
1425         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
1426         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1427         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
1428         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
1429         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
1430         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1431         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1432         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
1433         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
1434         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
1435         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
1436         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
1437         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
1438         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
1439         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
1440         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
1441         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1442         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
1443
1444 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
1445
1446         [BZ #16245]
1447         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
1448         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
1449
1450 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
1451
1452         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
1453         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
1454         Likewise.
1455
1456 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1457
1458         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1459         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
1460         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
1461         (__fesetround): Remove define.
1462         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
1463         rounding and exceptions handling.
1464         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
1465         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
1466         (__fe_nomask_env): Likewise.
1467         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
1468         __fegetround instead of fegetround.
1469         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
1470         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1471
1472 2013-11-21  Roland McGrath  <roland@hack.frob.com>
1473
1474         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
1475         it's there.
1476
1477         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
1478
1479 2013-11-21  Meador Inge  <meadori@codesourcery.com>
1480
1481         [BZ #11157]
1482         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
1483         (encrypt_r): Likewise.
1484         * malloc/obstack.h (obstack_free): Likewise.
1485         * posix/unistd.h (encrypt): Likewise.
1486
1487 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
1488
1489         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
1490         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
1491         DL_CALL_DT_FINI() that call the functions directly.
1492         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
1493         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
1494         * elf/dl-fini.c: Likewise.
1495
1496 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
1497
1498         * malloc/hooks.c (memalign_check): Add alignment rounding.
1499         * malloc/malloc.c (_mid_memalign): New function.
1500         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
1501         Implement by calling _mid_memalign.
1502         * manual/probes.texi (Memory Allocation Probes): Remove
1503         memory_valloc_retry and memory_pvalloc_retry.
1504
1505 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1506
1507         * locale/programs/locarchive.c (open_archive): Add const
1508         qualifier to ARCHIVEFNAME and copy default fname to
1509         DEFAULT_FNAME.
1510
1511         [BZ #15601]
1512         * libio/tst-widetext.input: Rename Oriya to Odia.
1513         * locale/iso-639.def: Likewise.
1514
1515         * manual/probes.texi (Mathematical Function Probes): Add
1516         documentation for sin, cos, asin and acos probes.
1517         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
1518         (__sin32): Add slowasin probe.
1519         (__cos32): Add slowacos probe.
1520         (__mpsin): Add slowsin probe.
1521         (__mpcos): Add slowcos probe.
1522
1523 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
1524
1525         [BZ #15483]
1526         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
1527         thread-local __sim_exceptions_thread and global
1528         __sim_exceptions_global.
1529         (__sim_disabled_exceptions): Change to thread-local
1530         __sim_disabled_exceptions_thread and global
1531         __sim_disabled_exceptions_global.
1532         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
1533         and global __sim_round_mode_global.
1534         (__simulate_exceptions): Use thread-local floating-point state and
1535         set global state from it as needed.
1536         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
1537         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
1538         __sim_round_mode_thread.
1539         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
1540         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
1541         and global __sim_exceptions_global.
1542         (__sim_disabled_exceptions): Change to thread-local
1543         __sim_disabled_exceptions_thread and global
1544         __sim_disabled_exceptions_global.
1545         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
1546         and global __sim_round_mode_global.
1547         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
1548         (SIM_SET_GLOBAL): Likewise.
1549         * sysdeps/powerpc/soft-fp/sfp-machine.h
1550         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
1551         __sim_round_mode_thread.
1552         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
1553         __sim_disabled_exceptions_thread.
1554         (__sim_exceptions): Change to __sim_exceptions_thread.
1555         (__sim_disabled_exceptions): Change to
1556         __sim_disabled_exceptions_thread.
1557         (__sim_round_mode): Change to __sim_round_mode_thread.
1558         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
1559         thread-local floating-point state and set global state from it as
1560         needed.
1561         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
1562         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
1563         (__sim_disabled_exceptions): Remove extern declaration.
1564         (feenableexcept): Use thread-local floating-point state and set
1565         global state from it as needed.
1566         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
1567         extern declaration.
1568         (__sim_disabled_exceptions): Likewise.
1569         (__sim_round_mode): Likewise.
1570         (__fegetenv): Use thread-local floating-point state.
1571         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
1572         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
1573         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
1574         floating-point state and set global state from it as needed.
1575         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
1576         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
1577         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
1578         Likewise.
1579         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
1580         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
1581         Likewise.
1582         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
1583         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
1584         Use __sim_round_mode_thread.
1585         * math/test-fenv-tls.c: New file.
1586         * math/Makefile (tests): Add test-fenv-tls.
1587         ($(objpfx)test-fenv-tls): Depend on
1588         $(common-objpfx)nptl/libpthread.so.
1589
1590 2013-11-19  Andreas Schwab  <schwab@suse.de>
1591
1592         * locale/programs/locale.c (show_info): Decode wordarray elements.
1593         * locale/categories.def (LC_MONETARY): Add element for
1594         _NL_MONETARY_CRNCYSTR.
1595         * locale/C-monetary.c (conversion_rate): New variable.
1596         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
1597         element.
1598
1599 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
1600
1601         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
1602         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
1603
1604 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
1605
1606         * elf/Makefile (tst-auxv): New test.
1607         * elf/tst-auxv.c: New
1608         * elf/rtld.c (dl_main): Adjust AT_EXECFN
1609
1610 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
1611
1612         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
1613         (hidden_proto): Caller changed.
1614         (hidden_tls_proto): New macro.
1615         (libc_hidden_tls_proto): Likewise.
1616         (rtld_hidden_tls_proto): Likewise.
1617         (libm_hidden_tls_proto): Likewise.
1618         (libresolv_hidden_tls_proto): Likewise.
1619         (librt_hidden_tls_proto): Likewise.
1620         (libdl_hidden_tls_proto): Likewise.
1621         (libnss_files_hidden_tls_proto): Likewise.
1622         (libnsl_hidden_tls_proto): Likewise.
1623         (libnss_nisplus_hidden_tls_proto): Likewise.
1624         (libutil_hidden_tls_proto): Likewise.
1625
1626 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
1627
1628         [BZ #10253]
1629         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
1630         (decompose_rpath): Defer expansion to fillin_rpath.
1631         (_dl_init_paths): Pass linkmap to fillin_rpath.
1632
1633 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1634
1635         * benchtests/Makefile: Add strsep.
1636         * benchtests/bench-strsep.c: New file: strsep benchtest.
1637         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
1638
1639 2013-11-18  Andreas Schwab  <schwab@suse.de>
1640
1641         * locale/programs/locale.c (show_info) [case byte]: Check for
1642         '\377' instead of '\177'.
1643         * locale/C-monetary.c (not_available): Always use "\377".
1644         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
1645         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
1646         detect unavailable sign_posn locale elements.
1647         * locale/localeconv.c (__localeconv): For grouping and
1648         mon_grouping handle "\177" and "\377" like no grouping.
1649         (INT_ELEM): New macro.  Use it to set all numeric members.
1650         * locale/programs/ld-monetary.c (monetary_read)
1651         <tok_mon_grouping>: Normalize single -1 to the empty string.
1652         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
1653         Likewise.
1654
1655 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
1656
1657         [BZ #16055]
1658         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
1659         when we match (nil).
1660         * stdio-common/tst-sscanf.c (struct test): Add testcase.
1661
1662 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
1663
1664         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
1665         (NO_TEST_INLINE): Update value.
1666         (ERRNO_UNCHANGED): Likewise.
1667         (ERRNO_EDOM): Likewise.
1668         (ERRNO_ERANGE): Likewise.
1669         (IGNORE_RESULT): Likewise.
1670         (check_float_internal): Check signs of NaN results if
1671         TEST_NAN_SIGN used.
1672         (check_complex): Pass TEST_NAN_SIGN flag through to second
1673         check_float_internal call.
1674         (copysign_test_data): Add tests with quiet NaNs as second
1675         argument.  Use TEST_NAN_SIGN.
1676         (fabs_test_data): Add test of negative quiet NaN argument.  Use
1677         TEST_NAN_SIGN.
1678         (signbit_test_data): Add tests of quiet NaN argument.
1679         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
1680
1681         * math/gen-libm-test.pl (show_exceptions): Take extra argument
1682         $ignore_result.
1683         (parse_args): Handle function results specified as IGNORE.
1684         * math/libm-test.inc (IGNORE_RESULT): New macro.
1685         (check_float_internal): Do not check numerical result if flag
1686         IGNORE_RESULT set.
1687         (check_complex): Pass through IGNORE_RESULT to second
1688         check_float_internal call.
1689         (check_int): Do not check numerical result if flag IGNORE_RESULT
1690         set.
1691         (check_long): Likewise.
1692         (check_bool): Likewise.
1693         (check_longlong): Likewise.
1694         (lrint_test_data): Add tests of infinite and NaN arguments.
1695         (lrint_tonearest_test_data): Likewise.
1696         (lrint_towardzero_test_data): Likewise.
1697         (lrint_downward_test_data): Likewise.
1698         (lrint_upward_test_data): Likewise.
1699         (llrint_test_data): Likewise.
1700         (llrint_tonearest_test_data): Likewise.
1701         (llrint_towardzero_test_data): Likewise.
1702         (llrint_downward_test_data): Likewise.
1703         (llrint_upward_test_data): Likewise.
1704         (lround_test_data): Likewise.
1705         (llround_test_data): Likewise.
1706
1707         * math/libm-test.inc (NO_TEST_INLINE): New macro.
1708         (ERRNO_UNCHANGED): Update value.
1709         (ERRNO_EDOM): Likewise.
1710         (ERRNO_ERANGE): Likewise.
1711         (NO_TEST_INLINE_FLOAT): New macro.
1712         (NO_TEST_INLINE_DOUBLE): Likewise.
1713         (enable_test): New function.
1714         (RUN_TEST_f_f): Check enable_test before running test.
1715         (RUN_TEST_2_f): Likewise.
1716         (RUN_TEST_fff_f): Likewise.
1717         (RUN_TEST_c_f): Likewise.
1718         (RUN_TEST_f_f1): Likewise.
1719         (RUN_TEST_fF_f1): Likewise.
1720         (RUN_TEST_fI_f1): Likewise.
1721         (RUN_TEST_ffI_f1): Likewise.
1722         (RUN_TEST_c_c): Likewise.
1723         (RUN_TEST_cc_c): Likewise.
1724         (RUN_TEST_f_i): Likewise.
1725         (RUN_TEST_f_i_tg): Likewise.
1726         (RUN_TEST_ff_i_tg): Likewise.
1727         (RUN_TEST_f_b): Likewise.
1728         (RUN_TEST_f_b_tg): Likewise.
1729         (RUN_TEST_f_l): Likewise.
1730         (RUN_TEST_f_L): Likewise.
1731         (RUN_TEST_fFF_11): Likewise.
1732         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
1733         conditionals.
1734         (cosh_test_data): Likewise.
1735         (exp_test_data): Likewise.
1736         (expm1_test_data): Likewise.
1737         (hypot_test_data): Likewise.
1738         (pow_test_data): Likewise.
1739         (sinh_test_data): Likewise.
1740         (tanh_test_data): Likewise.
1741         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
1742         flags argument.
1743
1744         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
1745         tests with quiet NaN input and output.
1746         (acosh_test_data): Likewise.
1747         (asin_test_data): Likewise.
1748         (asinh_test_data): Likewise.
1749         (atan_test_data): Likewise.
1750         (atanh_test_data): Likewise.
1751         (atan2_test_data): Likewise.
1752         (cbrt_test_data): Likewise.
1753         (cos_test_data): Likewise.
1754         (cosh_test_data): Likewise.
1755         (erf_test_data): Likewise.
1756         (erfc_test_data): Likewise.
1757         (exp_test_data): Likewise.
1758         (exp10_test_data): Likewise.
1759         (exp2_test_data): Likewise.
1760         (expm1_test_data): Likewise.
1761         (hypot_test_data): Likewise.
1762         (j0_test_data): Likewise.
1763         (j1_test_data): Likewise.
1764         (jn_test_data): Likewise.
1765         (lgamma_test_data): Likewise.
1766         (log_test_data): Likewise.
1767         (log10_test_data): Likewise.
1768         (log1p_test_data): Likewise.
1769         (log2_test_data): Likewise.
1770         (pow_test_data): Likewise.
1771         (scalb_test_data): Likewise.
1772         (sin_test_data): Likewise.
1773         (sincos_test_data): Likewise.
1774         (sinh_test_data): Likewise.
1775         (tan_test_data): Likewise.
1776         (tanh_test_data): Likewise.
1777         (tgamma_test_data): Likewise.
1778         (y0_test_data): Likewise.
1779         (y1_test_data): Likewise.
1780         (yn_test_data): Likewise.
1781
1782         [BZ #16167]
1783         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
1784         argument being NaN and avoid computations with second argument in
1785         that case.
1786         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
1787         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1788         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1789
1790 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
1791
1792         * locale/iso-639.def: Add Chitwani Tharu (the).
1793
1794 2013-11-14  Andreas Schwab  <schwab@suse.de>
1795
1796         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
1797         word instead of empty string.
1798
1799 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1800
1801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1802         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
1803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1804         (__fe_nomask_env): Likewise.
1805
1806 2013-11-13  Steve Ellcey  <sellcey@mips.com>
1807
1808         * benchtests/bench-timing.h: Include time.h.
1809
1810 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1811
1812         [BZ #15997]
1813         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
1814         to 3.4.0 for x32.
1815         * sysdeps/unix/sysv/linux/configure: Regenerated.
1816
1817 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1818
1819         [BZ #16151]
1820         * stdlib/strtod_l.c (round_and_return): Do not consider
1821         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
1822         exponent one less than half the least subnormal exponent.
1823         * stdlib/test-strtod-round-data: Add more tests.
1824         * stdlib/tst-strtod-round.c (tests): Regenerated.
1825
1826 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1827
1828         [BZ #14143]
1829         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
1830         (__fe_mask_env): Likewise.
1831         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
1832         libm_hidden_proto and add function prototype.
1833         (__fe_mask_env): Add function prototype.
1834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1835         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
1836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1837         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
1838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1839         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
1840
1841 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1842
1843         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
1844         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
1845
1846 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1847
1848         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
1849         of htab_find_slot().
1850
1851 2013-11-11  David S. Miller  <davem@davemloft.net>
1852
1853         [BZ #16150]
1854         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
1855         symbol in the non-vis3 case in static builds.
1856         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
1857         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
1858         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
1859         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
1860
1861 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1862
1863         [BZ #387]
1864         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
1865         it is empty.
1866
1867 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1868
1869         * benchtests/Makefile: Add bench-strtod.
1870         * benchtests/bench-strtod.c: New file: strtod benchtest
1871
1872 2013-11-11  Andreas Schwab  <schwab@suse.de>
1873
1874         [BZ #16153]
1875         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
1876         terminating NUL in key length.
1877
1878 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1879
1880         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
1881         Add artificial ODP entry for vDSO symbol for PPC64.
1882         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
1883         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
1884
1885 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
1886
1887         [BZ #15374]
1888         * nss/getent.c (services_keys): Recognize services starting with digit.
1889
1890 2013-11-06  David S. Miller  <davem@davemloft.net>
1891
1892         [BZ #15985]
1893         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
1894         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
1895
1896 2013-11-06  Will Newton  <will.newton@linaro.org>
1897
1898         * manual/memory.texi (Malloc Examples): Remove register
1899         keyword from examples.
1900
1901 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
1902
1903         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
1904
1905 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1906
1907         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
1908         depending on [__GCC_IEC_559 > 0].
1909         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
1910         depending on [__GCC_IEC_559_COMPLEX > 0].
1911
1912 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
1913
1914         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
1915         to iso-639.def.
1916
1917 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
1918
1919         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
1920
1921 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
1922
1923         [BZ #16112]
1924         * malloc/malloc (malloc_info): Do not handle first bin as
1925         special case.
1926
1927 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
1928
1929         * locale/iso-639.def: Add Central Nahuatl (nhn).
1930
1931 2013-11-01  Bruno Haible  <bruno@clisp.org>
1932
1933         [BZ #7003]
1934         * manual/math.texi (BSD Random): Specify range upper bound as
1935         in POSIX.
1936
1937 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
1938
1939         * locale/iso-639.def: Add Meadow Mari (mhr).
1940
1941 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
1942
1943         [BZ #14752], [BZ #15763]
1944         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
1945         Validate name.
1946         * rt/tst_shm.c: Add test for escaping directory.
1947
1948 2013-10-31  Andreas Schwab  <schwab@suse.de>
1949
1950         [BZ #15917]
1951         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
1952         followed by 'x' as part of digit sequence.
1953         * stdio-common/tst-sscanf.c (double_tests2): New tests.
1954
1955 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
1956
1957         [BZ #16037]
1958         * configure.ac: allow GNU Make 4.0 and greater.
1959         * configure: Regenerated.
1960
1961 2013-10-30  Will Newton  <will.newton@linaro.org>
1962
1963         [BZ #16038]
1964         * malloc/hooks.c (memalign_check): Limit alignment to the
1965         maximum representable power of two.
1966         * malloc/malloc.c (__libc_memalign): Likewise.
1967         * malloc/tst-memalign.c (do_test): Add test for very
1968         large alignment values.
1969         * malloc/tst-posix_memalign.c (do_test): Likewise.
1970
1971 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
1972
1973         [BZ #11087]
1974         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
1975         (munmap_chunk): Likewise.
1976         (mremap_chunk): Likewise.
1977
1978 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
1979
1980         [BZ #15799]
1981         * stdlib/div.c (div): Remove obsolete code.
1982         * stdlib/ldiv.c (ldiv): Likewise.
1983         * stdlib/lldiv.c (lldiv): Likewise.
1984
1985 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1986
1987         [BZ #16071]
1988         * nss/nss_files/files-XXX.c (get_contents_ret): New
1989         enumerator.
1990         (get_contents): New function.
1991         (internal_getent): Use it.  Expand size of LINEBUFLEN.
1992
1993 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
1994
1995         * configure.in: Moved to ...
1996         * configure.ac: ... here. Change reference to configure.in
1997         to configure.ac.
1998         * sysdeps/arm/preconfigure.ac: ... here.
1999         configure.in to configure.ac.
2000         * sysdeps/gnu/configure.in: Moved to ...
2001         * sysdeps/gnu/configure.ac: ... here.
2002         * sysdeps/i386/configure.in: Moved to ...
2003         * sysdeps/i386/configure.ac: ... here.
2004         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
2005         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
2006         * sysdeps/mach/configure.in: Moved to ...
2007         * sysdeps/mach/configure.ac: ... here.
2008         * sysdeps/mach/hurd/configure.in: Moved to ...
2009         * sysdeps/mach/hurd/configure.ac: ... here.
2010         * sysdeps/powerpc/configure.in: Moved to ...
2011         * sysdeps/powerpc/configure.ac: ... here.
2012         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
2013         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
2014         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
2015         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
2016         * sysdeps/s390/s390-32/configure.in: Moved to ...
2017         * sysdeps/s390/s390-32/configure.ac: ... here.
2018         * sysdeps/s390/s390-64/configure.in: Moved to ...
2019         * sysdeps/s390/s390-64/configure.ac: ... here.
2020         * sysdeps/sh/configure.in: Moved to ...
2021         * sysdeps/sh/configure.ac: ... here.
2022         * sysdeps/sparc/configure.in: Moved to ...
2023         * sysdeps/sparc/configure.ac: ... here.
2024         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
2025         * sysdeps/unix/sysv/linux/configure.ac: ... here.
2026         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
2027         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
2028         * sysdeps/x86_64/configure.in: Moved to ...
2029         * sysdeps/x86_64/configure.ac: ... here.
2030         * sysdeps/x86_64/preconfigure.in: Moved to ...
2031         * sysdeps/x86_64/preconfigure.ac: ... here.
2032         * aclocal.m4: Change reference to configure.in to configure.ac.
2033         * config.h.in: Likewise.
2034         * manual/install.texi: Likewise.
2035         * manual/maint.texi: Likewise.
2036         * Makefile: Likewise.
2037         * malloc/Makefile: Likewise.
2038         * nscd/Makefile: Likewise.
2039         * Makeconfig: Change reference to configure.in and
2040         preconfigure.in to configure.ac and preconfigure.ac
2041         respectively.
2042         * INSTALL: Regenerated.
2043         * configure: Likewise.
2044         * sysdeps/gnu/configure: Likewise.
2045         * sysdeps/i386/configure: Likewise.
2046         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
2047         * sysdeps/mach/configure: Likewise.
2048         * sysdeps/mach/hurd/configure: Likewise.
2049         * sysdeps/powerpc/configure: Likewise.
2050         * sysdeps/powerpc/powerpc32/configure: Likewise.
2051         * sysdeps/powerpc/powerpc64/configure: Likewise.
2052         * sysdeps/s390/s390-32/configure: Likewise.
2053         * sysdeps/s390/s390-64/configure: Likewise.
2054         * sysdeps/sh/configure: Likewise.
2055         * sysdeps/sparc/configure: Likewise.
2056         * sysdeps/unix/sysv/linux/configure: Likewise.
2057         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
2058         * sysdeps/x86_64/configure: Likewise.
2059         * sysdeps/x86_64/preconfigure: Likewise.
2060
2061 2013-10-29  Andreas Schwab  <schwab@suse.de>
2062
2063         * stdio-common/Makefile (tst-swscanf-ENV): Define.
2064
2065 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2066
2067         * benchtests/pow-inputs: Add new inputs.
2068
2069         * benchtests/exp-inputs: Add new inputs.
2070
2071         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
2072         conditional check for return value.
2073         (__cos32): Likewise.
2074
2075 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2076
2077         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
2078         to provide a boost for large inputs with word alignment.
2079         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
2080         implementation based on optimized PPC64 strcpy.
2081         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
2082         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
2083         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
2084         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
2085
2086 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2087
2088         [BZ #2801]
2089         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
2090
2091 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2092
2093         [BZ #14876]
2094         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
2095         * time/tst-strptime.c (day_tests): Add testcase.
2096
2097 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2098
2099         [BZ #14029]
2100         * manual/pattern.texi: Acknowledge that fnmatch can fail.
2101
2102 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
2103
2104         [BZ #16074]
2105         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
2106         MAP_FAILED on error.
2107
2108 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2109
2110         [BZ #16072]
2111         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
2112         heap for large requests.
2113
2114 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
2115
2116         [BZ #9954]
2117         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
2118         result if the result has no associated interface.
2119         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
2120         interface for all 127.X.Y.Z addresses.
2121
2122 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
2123
2124         * locale/iso-639.def: Add Ligurian (lij)
2125
2126 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
2127
2128         [BZ #15825]
2129         * sunrpc/rpc_main.c: Document rpcgen -5.
2130
2131 2013-10-19  Michael Stahl  <mstahl@redhat.com>
2132
2133         * elf/rtld.c (do_preload): Print the reason why preloading failed.
2134
2135 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2136
2137         [BZ #10278]
2138         * posix/glob.c: Match only directories when trailing slash is present.
2139         * posix/tst-gnuglob.c (my_opendir): Do not open files.
2140         (main): Add testcase.
2141
2142 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2143
2144         [BZ #15670]
2145         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
2146
2147 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
2148
2149         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
2150         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
2151         AUTH_DES and cindex for FIPS 140-2.
2152         (DES Encryption): Add cindex FIPS 46-3.
2153
2154         * locale/locarchive.h (struct locarhandle): Add fname.
2155         * locale/programs/localedef.c (main): Pass ARGV[remaining]
2156         if an optional argument was specified to --list-archive,
2157         otherwise NULL.
2158         * locale/programs/locarchive.c (show_archive_content): Take new
2159         argument fname and pass it via ah.fname to open_archive.
2160         * locale/programs/localedef.h: Update decl.
2161         (open_archive): If AH->fname is non-null, open that file
2162         rather than the default file name, and don't ignore ENOENT.
2163         (create_archive): Set AH.fname to NULL.
2164         (delete_locales_from_archive): Likewise.
2165         (add_locales_to_archive): Likewise.
2166         * locale/programs/locfile.c (write_all_categories): Likewise.
2167
2168 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
2169             Aldy Hernandez  <aldyh@redhat.com>
2170
2171         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
2172         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
2173         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
2174         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
2175         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
2176         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
2177         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
2178         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
2179         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
2180         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
2181         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
2182         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
2183         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
2184         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
2185         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
2186         Likewise.
2187         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
2188         Likewise.
2189         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
2190         Likewise.
2191         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
2192         Likewise.
2193         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
2194         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
2195         Likewise.
2196         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
2197         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
2198         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
2199         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
2200         Likewise.
2201         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
2202         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
2203         * sysdeps/powerpc/preconfigure: Likewise.
2204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
2205         Likewise.
2206         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
2207         Replace contents of file by #include of <fenv_libc.h>.
2208         * sysdeps/powerpc/soft-fp/sfp-machine.h
2209         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
2210         and <sys/prctl.h>.
2211         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
2212         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
2213         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
2214         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
2215         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
2216         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
2217         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
2218         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
2219         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
2220         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
2221         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
2222         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
2223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
2224         Allow copysignl PLT reference to be missing.
2225
2226 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
2227             Joseph Myers  <joseph@codesourcery.com
2228
2229         [BZ #15948]
2230         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
2231         single character.
2232         (add_to_tablewc): Assert sequence of wide characters is nonempty.
2233
2234 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2235
2236         * elf/tst-tls-dlinfo.c: Don't include tls.h.
2237         * elf/tst-tls1.c: Likewise.
2238         * elf/tst-tls10.h: Likewise.
2239         * elf/tst-tls14.c: Likewise.
2240         * elf/tst-tls2.c: Likewise.
2241         * elf/tst-tls3.c: Likewise.
2242         * elf/tst-tls4.c: Likewise.
2243         * elf/tst-tls5.c: Likewise.
2244         * elf/tst-tls6.c: Likewise.
2245         * elf/tst-tls7.c: Likewise.
2246         * elf/tst-tls8.c: Likewise.
2247         * elf/tst-tls9.c: Likewise.
2248         * elf/tst-tlsmod1.c: Likewise.
2249         * elf/tst-tlsmod13.c: Likewise.
2250         * elf/tst-tlsmod13a.c: Likewise.
2251         * elf/tst-tlsmod14a.c: Likewise.
2252         * elf/tst-tlsmod16a.c: Likewise.
2253         * elf/tst-tlsmod16b.c: Likewise.
2254         * elf/tst-tlsmod2.c: Likewise.
2255         * elf/tst-tlsmod3.c: Likewise.
2256         * elf/tst-tlsmod4.c: Likewise.
2257         * elf/tst-tlsmod5.c: Likewise.
2258         * elf/tst-tlsmod6.c: Likewise.
2259
2260 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
2261
2262         [BZ #12486]
2263         * malloc/malloc.c: remove checks for statistics.
2264
2265 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
2266
2267         [BZ #15277]
2268         * inet/inet_net.c (inet_network): Detect additional invalid strings.
2269         * inet/tst-network.c: Add testcase.
2270
2271 2013-10-17  Andreas Schwab  <schwab@suse.de>
2272
2273         [BZ #15218]
2274         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
2275         to determine canonical name.
2276
2277 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
2278
2279         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
2280         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2281         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2282         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2283         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2284         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2285         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
2286         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2287         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
2288         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2289         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
2290         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2291         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2292         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2293         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2294         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2295         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2296         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2297         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2298         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2299         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2300         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2301         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2302         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
2303         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
2304         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2305         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2306         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
2307         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2308         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2309         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2310         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2311         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2312         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2313         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2314         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2315         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2316         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2317         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2318         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2319         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2320         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2321         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2322         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2323         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2324         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2325         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2326         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2327         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2328         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2329         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2330         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2337
2338 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
2339
2340         [BZ #16041]
2341         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
2342         make result into a quiet NaN.
2343
2344 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
2345
2346         * soft-fp/adddf3.c: Fix horizontal whitespace.
2347         * soft-fp/addsf3.c: Likewise.
2348         * soft-fp/addtf3.c: Likewise.
2349         * soft-fp/divdf3.c: Likewise.
2350         * soft-fp/divsf3.c: Likewise.
2351         * soft-fp/divtf3.c: Likewise.
2352         * soft-fp/double.h: Likewise.
2353         * soft-fp/eqdf2.c: Likewise.
2354         * soft-fp/eqsf2.c: Likewise.
2355         * soft-fp/eqtf2.c: Likewise.
2356         * soft-fp/extenddftf2.c: Likewise.
2357         * soft-fp/extended.h: Likewise.
2358         * soft-fp/extendsfdf2.c: Likewise.
2359         * soft-fp/extendsftf2.c: Likewise.
2360         * soft-fp/extendxftf2.c: Likewise.
2361         * soft-fp/fixdfdi.c: Likewise.
2362         * soft-fp/fixdfsi.c: Likewise.
2363         * soft-fp/fixdfti.c: Likewise.
2364         * soft-fp/fixsfdi.c: Likewise.
2365         * soft-fp/fixsfsi.c: Likewise.
2366         * soft-fp/fixsfti.c: Likewise.
2367         * soft-fp/fixtfdi.c: Likewise.
2368         * soft-fp/fixtfsi.c: Likewise.
2369         * soft-fp/fixtfti.c: Likewise.
2370         * soft-fp/fixunsdfdi.c: Likewise.
2371         * soft-fp/fixunsdfsi.c: Likewise.
2372         * soft-fp/fixunsdfti.c: Likewise.
2373         * soft-fp/fixunssfdi.c: Likewise.
2374         * soft-fp/fixunssfsi.c: Likewise.
2375         * soft-fp/fixunssfti.c: Likewise.
2376         * soft-fp/fixunstfdi.c: Likewise.
2377         * soft-fp/fixunstfsi.c: Likewise.
2378         * soft-fp/fixunstfti.c: Likewise.
2379         * soft-fp/floatdidf.c: Likewise.
2380         * soft-fp/floatdisf.c: Likewise.
2381         * soft-fp/floatditf.c: Likewise.
2382         * soft-fp/floatsidf.c: Likewise.
2383         * soft-fp/floatsisf.c: Likewise.
2384         * soft-fp/floatsitf.c: Likewise.
2385         * soft-fp/floattidf.c: Likewise.
2386         * soft-fp/floattisf.c: Likewise.
2387         * soft-fp/floattitf.c: Likewise.
2388         * soft-fp/floatundidf.c: Likewise.
2389         * soft-fp/floatundisf.c: Likewise.
2390         * soft-fp/floatunditf.c: Likewise.
2391         * soft-fp/floatunsidf.c: Likewise.
2392         * soft-fp/floatunsisf.c: Likewise.
2393         * soft-fp/floatunsitf.c: Likewise.
2394         * soft-fp/floatuntidf.c: Likewise.
2395         * soft-fp/floatuntisf.c: Likewise.
2396         * soft-fp/floatuntitf.c: Likewise.
2397         * soft-fp/fmadf4.c: Likewise.
2398         * soft-fp/fmasf4.c: Likewise.
2399         * soft-fp/fmatf4.c: Likewise.
2400         * soft-fp/gedf2.c: Likewise.
2401         * soft-fp/gesf2.c: Likewise.
2402         * soft-fp/getf2.c: Likewise.
2403         * soft-fp/ledf2.c: Likewise.
2404         * soft-fp/lesf2.c: Likewise.
2405         * soft-fp/letf2.c: Likewise.
2406         * soft-fp/muldf3.c: Likewise.
2407         * soft-fp/mulsf3.c: Likewise.
2408         * soft-fp/multf3.c: Likewise.
2409         * soft-fp/negdf2.c: Likewise.
2410         * soft-fp/negsf2.c: Likewise.
2411         * soft-fp/negtf2.c: Likewise.
2412         * soft-fp/op-1.h: Likewise.
2413         * soft-fp/op-2.h: Likewise.
2414         * soft-fp/op-4.h: Likewise.
2415         * soft-fp/op-8.h: Likewise.
2416         * soft-fp/op-common.h: Likewise.
2417         * soft-fp/quad.h: Likewise.
2418         * soft-fp/single.h: Likewise.
2419         * soft-fp/soft-fp.h: Likewise.
2420         * soft-fp/sqrtdf2.c: Likewise.
2421         * soft-fp/sqrtsf2.c: Likewise.
2422         * soft-fp/sqrttf2.c: Likewise.
2423         * soft-fp/subdf3.c: Likewise.
2424         * soft-fp/subsf3.c: Likewise.
2425         * soft-fp/subtf3.c: Likewise.
2426         * soft-fp/truncdfsf2.c: Likewise.
2427         * soft-fp/trunctfdf2.c: Likewise.
2428         * soft-fp/trunctfsf2.c: Likewise.
2429         * soft-fp/trunctfxf2.c: Likewise.
2430         * soft-fp/unorddf2.c: Likewise.
2431         * soft-fp/unordsf2.c: Likewise.
2432         * soft-fp/unordtf2.c: Likewise.
2433
2434 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
2435
2436         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
2437         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
2438
2439 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
2440
2441         * elf/dl-libc.c: Clear initfini list after freeing.
2442
2443 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
2444
2445         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
2446         * soft-fp/addsf3.c: Likewise.
2447         * soft-fp/addtf3.c: Likewise.
2448         * soft-fp/divdf3.c: Likewise.
2449         * soft-fp/divsf3.c: Likewise.
2450         * soft-fp/divtf3.c: Likewise.
2451         * soft-fp/double.h: Likewise.
2452         * soft-fp/eqdf2.c: Likewise.
2453         * soft-fp/eqsf2.c: Likewise.
2454         * soft-fp/eqtf2.c: Likewise.
2455         * soft-fp/extenddftf2.c: Likewise.
2456         * soft-fp/extended.h: Likewise.
2457         * soft-fp/extendsfdf2.c: Likewise.
2458         * soft-fp/extendsftf2.c: Likewise.
2459         * soft-fp/extendxftf2.c: Likewise.
2460         * soft-fp/fixdfdi.c: Likewise.
2461         * soft-fp/fixdfsi.c: Likewise.
2462         * soft-fp/fixdfti.c: Likewise.
2463         * soft-fp/fixsfdi.c: Likewise.
2464         * soft-fp/fixsfsi.c: Likewise.
2465         * soft-fp/fixsfti.c: Likewise.
2466         * soft-fp/fixtfdi.c: Likewise.
2467         * soft-fp/fixtfsi.c: Likewise.
2468         * soft-fp/fixtfti.c: Likewise.
2469         * soft-fp/fixunsdfdi.c: Likewise.
2470         * soft-fp/fixunsdfsi.c: Likewise.
2471         * soft-fp/fixunsdfti.c: Likewise.
2472         * soft-fp/fixunssfdi.c: Likewise.
2473         * soft-fp/fixunssfsi.c: Likewise.
2474         * soft-fp/fixunssfti.c: Likewise.
2475         * soft-fp/fixunstfdi.c: Likewise.
2476         * soft-fp/fixunstfsi.c: Likewise.
2477         * soft-fp/fixunstfti.c: Likewise.
2478         * soft-fp/floatdidf.c: Likewise.
2479         * soft-fp/floatdisf.c: Likewise.
2480         * soft-fp/floatditf.c: Likewise.
2481         * soft-fp/floatsidf.c: Likewise.
2482         * soft-fp/floatsisf.c: Likewise.
2483         * soft-fp/floatsitf.c: Likewise.
2484         * soft-fp/floattidf.c: Likewise.
2485         * soft-fp/floattisf.c: Likewise.
2486         * soft-fp/floattitf.c: Likewise.
2487         * soft-fp/floatundidf.c: Likewise.
2488         * soft-fp/floatundisf.c: Likewise.
2489         * soft-fp/floatunsidf.c: Likewise.
2490         * soft-fp/floatunsisf.c: Likewise.
2491         * soft-fp/floatuntidf.c: Likewise.
2492         * soft-fp/floatuntisf.c: Likewise.
2493         * soft-fp/floatuntitf.c: Likewise.
2494         * soft-fp/fmadf4.c: Likewise.
2495         * soft-fp/fmasf4.c: Likewise.
2496         * soft-fp/fmatf4.c: Likewise.
2497         * soft-fp/gedf2.c: Likewise.
2498         * soft-fp/gesf2.c: Likewise.
2499         * soft-fp/getf2.c: Likewise.
2500         * soft-fp/ledf2.c: Likewise.
2501         * soft-fp/lesf2.c: Likewise.
2502         * soft-fp/letf2.c: Likewise.
2503         * soft-fp/muldf3.c: Likewise.
2504         * soft-fp/mulsf3.c: Likewise.
2505         * soft-fp/multf3.c: Likewise.
2506         * soft-fp/negdf2.c: Likewise.
2507         * soft-fp/negsf2.c: Likewise.
2508         * soft-fp/negtf2.c: Likewise.
2509         * soft-fp/op-1.h: Likewise.
2510         * soft-fp/op-2.h: Likewise.
2511         * soft-fp/op-4.h: Likewise.
2512         * soft-fp/op-8.h: Likewise.
2513         * soft-fp/op-common.h: Likewise.
2514         * soft-fp/quad.h: Likewise.
2515         * soft-fp/single.h: Likewise.
2516         * soft-fp/soft-fp.h: Likewise.
2517         * soft-fp/sqrtdf2.c: Likewise.
2518         * soft-fp/sqrtsf2.c: Likewise.
2519         * soft-fp/sqrttf2.c: Likewise.
2520         * soft-fp/subdf3.c: Likewise.
2521         * soft-fp/subsf3.c: Likewise.
2522         * soft-fp/subtf3.c: Likewise.
2523         * soft-fp/truncdfsf2.c: Likewise.
2524         * soft-fp/trunctfdf2.c: Likewise.
2525         * soft-fp/trunctfsf2.c: Likewise.
2526         * soft-fp/trunctfxf2.c: Likewise.
2527         * soft-fp/unorddf2.c: Likewise.
2528         * soft-fp/unordsf2.c: Likewise.
2529         * soft-fp/unordtf2.c: Likewise.
2530
2531 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
2532
2533         [BZ #15672]
2534         * misc/error.c (error_tail): Fix possible buffer overflow.
2535
2536 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
2537
2538         [BZ #13028]
2539         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
2540         address.
2541
2542 2013-10-14  P. J. McDermott  <pj@pehjota.net>
2543
2544         [BZ #832]
2545         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
2546         testing pipefail option.
2547
2548 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
2549
2550         * soft-fp/double.h: Indent preprocessor directives inside #if.
2551         * soft-fp/extended.h: Likewise.
2552         * soft-fp/op-2.h: Likewise.
2553         * soft-fp/op-4.h: Likewise.
2554         * soft-fp/op-common.h: Likewise.
2555         * soft-fp/quad.h: Likewise.
2556         * soft-fp/single.h: Likewise.
2557         * soft-fp/soft-fp.h: Likewise.
2558
2559 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
2560
2561         * iconv/iconv_prog.c: Fix typos.
2562         * stdio-common/psiginfo-data.h: Likewise.
2563
2564 2013-10-12   Reuben Thomas <rrt@sc3d.org>
2565
2566         [BZ #15764]
2567         * locale/setlocale.c: Fix typo.
2568
2569 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
2570
2571         [BZ #16036]
2572         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
2573         signaling NaN arguments.
2574         * soft-fp/unordsf2.c (__unordsf2): Likewise.
2575         * soft-fp/unordtf2.c (__unordtf2): Likewise.
2576
2577         [BZ #14910]
2578         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
2579         unordered operands.
2580         * soft-fp/gesf2.c (__gesf2): Likewise.
2581         * soft-fp/getf2.c (__getf2): Likewise.
2582         * soft-fp/ledf2.c (__ledf2): Likewise.
2583         * soft-fp/lesf2.c (__lesf2): Likewise.
2584         * soft-fp/letf2.c (__letf2): Likewise.
2585
2586         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
2587         * soft-fp/eqsf2.c (__eqsf2): Likewise.
2588         * soft-fp/eqtf2.c (__eqtf2): Likewise.
2589         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
2590         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
2591         * soft-fp/fixdfti.c (__fixdfti): Likewise.
2592         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
2593         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
2594         * soft-fp/fixsfti.c (__fixsfti): Likewise.
2595         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
2596         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
2597         * soft-fp/fixtfti.c (__fixtfti): Likewise.
2598         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
2599         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
2600         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
2601         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
2602         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
2603         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
2604         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
2605         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
2606         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
2607         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
2608         * soft-fp/floatdisf.c (__floatdisf): Likewise.
2609         * soft-fp/floatsisf.c (__floatsisf): Likewise.
2610         * soft-fp/floattidf.c (__floattidf): Likewise.
2611         * soft-fp/floattisf.c (__floattisf): Likewise.
2612         * soft-fp/floattitf.c (__floattitf): Likewise.
2613         * soft-fp/floatundidf.c (__floatundidf): Likewise.
2614         * soft-fp/floatundisf.c (__floatundisf): Likewise.
2615         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
2616         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
2617         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
2618         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
2619         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
2620         * soft-fp/gesf2.c (__gesf2): Likewise.
2621         * soft-fp/getf2.c (__getf2): Likewise.
2622         * soft-fp/ledf2.c (__ledf2): Likewise.
2623         * soft-fp/lesf2.c (__lesf2): Likewise.
2624         * soft-fp/letf2.c (__letf2): Likewise.
2625
2626         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
2627         Undefine and redefine.
2628         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
2629         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
2630         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
2631         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
2632         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2633         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
2634         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2635         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
2636         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2637         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
2638         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2639         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
2640         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2641         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
2642         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
2643
2644         [BZ #16032]
2645         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
2646         without decrementing exponent if mantissa >= that for the
2647         denominator, not >.
2648         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
2649         denominator, not >.  Decrement exponent in < case instead of
2650         incrementing in >= case.
2651         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
2652         without decrementing exponent if mantissa >= that for the
2653         denominator, not >.
2654
2655         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
2656         computing saturated result for unsigned overflow.
2657
2658 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2659             Jeff Law  <law@redhat.com>
2660
2661         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
2662         (atan2Mp): Add systemtap probe marker.
2663         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
2664         (__ieee754_log): Add systemtap probe marker.
2665         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
2666         (atanMp): Add systemtap probe marker.
2667         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
2668         (tanMp): Add systemtap probe marker.
2669         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
2670         (__slowexp): Add systemtap probe marker.
2671         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
2672         (__slowpow): Add systemtap probe marker.
2673         * manual/probes.texi: Document probes.
2674
2675 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
2676
2677         [BZ #15362]
2678         * libio/fileops.c (_IO_new_file_write): Return count of bytes
2679         written.
2680         (_IO_new_file_xsputn): Don't return EOF if nothing has been
2681         written.
2682         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
2683         written to buffer but not flushed.
2684         * libio/iofwrite_u.c:  Likewise.
2685         * libio/iopadn.c:  Return bytes returned even if EOF was
2686         encountered.
2687         * libio/iowpadn.c:  Likewise.
2688         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
2689         if _IO_padn does not write the whole buffer.
2690         [!COMPILE_WPRINTF] (PAD): Likewise.
2691
2692 2013-10-10  David S. Miller  <davem@davemloft.net>
2693
2694         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
2695         directory block.
2696
2697 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
2700         instead of FSF address.
2701         * soft-fp/fixdfti.c: Likewise.
2702         * soft-fp/fixsfti.c: Likewise.
2703         * soft-fp/fixtfti.c: Likewise.
2704         * soft-fp/fixunsdfti.c: Likewise.
2705         * soft-fp/fixunssfti.c: Likewise.
2706         * soft-fp/fixunstfti.c: Likewise.
2707         * soft-fp/floattidf.c: Likewise.
2708         * soft-fp/floattisf.c: Likewise.
2709         * soft-fp/floattitf.c: Likewise.
2710         * soft-fp/floatuntidf.c: Likewise.
2711         * soft-fp/floatuntisf.c: Likewise.
2712         * soft-fp/floatuntitf.c: Likewise.
2713         * soft-fp/trunctfxf2.c: Likewise.
2714
2715         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
2716         * soft-fp/fixdfti.c: Likewise.
2717         * soft-fp/fixsfti.c: Likewise.
2718         * soft-fp/fixtfti.c: Likewise.
2719         * soft-fp/fixunsdfti.c: Likewise.
2720         * soft-fp/fixunssfti.c: Likewise.
2721         * soft-fp/fixunstfti.c: Likewise.
2722         * soft-fp/floattidf.c: Likewise.
2723         * soft-fp/floattisf.c: Likewise.
2724         * soft-fp/floattitf.c: Likewise.
2725         * soft-fp/floatuntidf.c: Likewise.
2726         * soft-fp/floatuntisf.c: Likewise.
2727         * soft-fp/floatuntitf.c: Likewise.
2728         * soft-fp/trunctfxf2.c: Likewise.
2729
2730 2013-10-10  David S. Miller  <davem@davemloft.net>
2731
2732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2733
2734 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
2735
2736         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
2737         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
2738         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
2739         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
2740         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
2741         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
2742         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
2743
2744         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
2745         for NaNs before doing comparisons on argument.
2746         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
2747         Likewise.
2748
2749 2013-10-10  Will Newton  <will.newton@linaro.org>
2750
2751         * malloc/hooks.c (memalign_check): Ensure the value of bytes
2752         passed to _int_memalign does not overflow.
2753
2754 2013-10-10  Torvald Riegel  <triegel@redhat.com>
2755
2756         * scripts/bench.pl: Add include-sources directive.
2757         * benchtests/README: Update documentation.
2758
2759 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
2760
2761         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
2762         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
2763         instead of FP_INIT_ROUNDMODE.
2764         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
2765         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
2766
2767         [BZ #16034]
2768         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
2769         copy class of input value.
2770         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
2771         not handle exceptions.
2772         * soft-fp/negsf2.c (__negsf2): Likewise.
2773         * soft-fp/negtf2.c (__negtf2): Likewise.
2774         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
2775
2776 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
2777
2778         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
2779         semicolon.  From Linux kernel.
2780
2781 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
2782
2783         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
2784
2785 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
2786
2787         [BZ #156]
2788         * manual/socket.texi: Added statement about buffer
2789         for gethostbyname2_r.
2790
2791 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
2792
2793         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
2794         Use .p2align directive instead, throughout.
2795         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2796         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2797         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
2798         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
2799         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2800         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
2801         * sysdeps/x86_64/strchr.S: Likewise.
2802         * sysdeps/x86_64/strrchr.S: Likewise.
2803
2804 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2805
2806         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
2807
2808         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
2809
2810         * sysdeps/generic/math_private.h (__mpsin1): Remove
2811         declaration.
2812         (__mpcos1): Likewise.
2813         (__mpsin): New argument __range_reduce.
2814         (__mpcos): Likewise.
2815         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2816         (slow): Use __mpsin and __mpcos.
2817         (slow1): Likewise.
2818         (slow2): Likewise.
2819         (sloww): Likewise.
2820         (sloww1): Likewise.
2821         (sloww2): Likewise.
2822         (bsloww): Likewise.
2823         (bsloww1): Likewise.
2824         (bsloww2): Likewise.
2825         (cslow2): Likewise.
2826         (csloww): Likewise.
2827         (csloww1): Likewise.
2828         (csloww2): Likewise.
2829         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
2830         range_reduce.  Merge in __mpsin1.
2831         (__mpcos): Likewise.
2832         (__mpsin1): Remove.
2833         (__mpcos1): Likewise.
2834
2835 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
2836
2837         * locale/loadlocale.c (_nl_intern_locale_data): Use
2838         LOCFILE_ALIGNED_P.
2839         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
2840         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
2841         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
2842         obstack data is appropriately aligned.
2843         (obstack_int32_grow_fast): Likewise.
2844         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
2845         * locale/programs/locfile.c (add_locale_uint32): Likewise.
2846         (add_locale_uint32_array): Likewise.
2847
2848 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2849
2850         * benchtests/Makefile: Remove ARGLIST and RET variables.
2851         ($(objpfx)bench-%.c): Pass only function name to the script.
2852         * benchtests/README: Update documentation.
2853         * benchtests/acos-inputs: Add new directives.
2854         * benchtests/acosh-inputs: Likewise.
2855         * benchtests/asin-inputs: Likewise.
2856         * benchtests/asinh-inputs: Likewise.
2857         * benchtests/atan-inputs: Likewise.
2858         * benchtests/atanh-inputs: Likewise.
2859         * benchtests/cos-inputs: Likewise.
2860         * benchtests/cosh-inputs: Likewise.
2861         * benchtests/exp-inputs: Likewise.
2862         * benchtests/log-inputs: Likewise.
2863         * benchtests/pow-inputs: Likewise.
2864         * benchtests/rint-inputs: Likewise.
2865         * benchtests/sin-inputs: Likewise.
2866         * benchtests/sinh-inputs: Likewise.
2867         * benchtests/tan-inputs: Likewise.
2868         * benchtests/tanh-inputs: Likewise.
2869         * scripts/bench.pl: Add support for new directives.
2870
2871 2013-10-07  Alan Modra  <amodra@gmail.com>
2872
2873         * README: Fix careless merge.
2874
2875 2013-10-05  Alan Modra  <amodra@gmail.com>
2876
2877         * NEWS: Mention powerpc64le support and bugs fixed.
2878         * README: Both big-endian and little-endian powerpc64 supported.
2879
2880 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2881
2882         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
2883         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
2884         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
2885         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
2886
2887 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
2888
2889         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
2890         match prototype.
2891
2892 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
2895         Move -mhard-float appending from
2896         ports/sysdeps/powerpc/powerpc32/Makefile.
2897         [$(with-fp) = yes] (ASFLAGS): Likewise.
2898         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
2899         * sysdeps/powerpc/nofpu: Move directory from
2900         ports/sysdeps/powerpc/nofpu.
2901         * sysdeps/powerpc/soft-fp: Move directory from
2902         ports/sysdeps/powerpc/soft-fp.
2903         * sysdeps/powerpc/powerpc32/405: Move directory from
2904         ports/sysdeps/powerpc/powerpc32/405.
2905         * sysdeps/powerpc/powerpc32/440: Move directory from
2906         ports/sysdeps/powerpc/powerpc32/440.
2907         * sysdeps/powerpc/powerpc32/464: Move directory from
2908         ports/sysdeps/powerpc/powerpc32/464.
2909         * sysdeps/powerpc/powerpc32/476: Move directory from
2910         ports/sysdeps/powerpc/powerpc32/476.
2911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
2912         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
2913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
2914         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
2915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
2916         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
2917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
2918         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
2919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
2920         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
2921         * README: Update for powerpc-*-linux-gnu software floating point
2922         support in libc.
2923
2924         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
2925         case to powerpc/powerpc32*.
2926         * sysdeps/unix/sysv/linux/configure: Regenerated.
2927
2928         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
2929         (_FPU_MASK_OM): Define as 0x04.
2930         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
2931         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
2932         0x00c10080.
2933         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
2934         0x0000003c.
2935         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
2936
2937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2938         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
2939         getcontext_e500.
2940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2941         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
2942         setcontext_e500.
2943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2944         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
2945         and setcontext_e500.
2946
2947 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
2948
2949         * locale/iso-3166.def: Update iso-1366.def and related occurrences
2950
2951 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2952
2953         * manual/threads.texi (Default Thread Attributes): Fix typo.
2954
2955 2013-10-04  Will Newton  <will.newton@linaro.org>
2956
2957         * malloc/Makefile: Add tst-memalign.
2958         * malloc/tst-memalign.c: New file.
2959
2960         * malloc/tst-posix_memalign.c: Add comments.
2961         (do_test): Add comments and call free on all potentially
2962         allocated pointers. Add space after cast.
2963
2964         * malloc/tst-pvalloc.c: Add comments.
2965         (do_test): Add comments and call free on all potentially
2966         allocated pointers. Remove duplicate check for NULL pointer.
2967         Add space after cast.
2968
2969         * malloc/tst-valloc.c: Add comments.
2970         (do_test): Add comments and call free on all potentially
2971         allocated pointers. Remove duplicate check for NULL pointer.
2972         Add space after cast.
2973
2974 2013-10-04  Alan Modra  <amodra@gmail.com>
2975
2976         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2977         Use stdint types in rather than __attribute__((mode())).
2978         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2979
2980 2013-10-04  Alan Modra  <amodra@gmail.com>
2981
2982         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2983         Correct handling of unaligned relocs for little-endian.
2984         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2985
2986 2013-10-04  Alan Modra  <amodra@gmail.com>
2987
2988         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
2989         * configure: Regenerate.
2990         * nptl/shlib-versions: Powerpc*le starts at 2.18.
2991         * shlib-versions: Likewise.
2992
2993 2013-10-04  Alan Modra  <amodra@gmail.com>
2994
2995         * string/tester.c (test_memrchr): Increment reported test cycle.
2996
2997 2013-10-04  Alan Modra  <amodra@gmail.com>
2998
2999         * string/test-memcpy.c (do_one_test): When reporting errors, print
3000         string address and don't overrun end of string.
3001
3002 2013-10-04  Alan Modra  <amodra@gmail.com>
3003
3004         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
3005         insrdi.  Make better use of reg selection to speed exit slightly.
3006         Schedule entry path a little better.  Remove useless "are we done"
3007         checks on entry to main loop.  Handle wrapping around zero address.
3008         Correct main loop count.  Handle single left-over word from main
3009         loop inline rather than by using loop_small.  Remove extra word
3010         case in loop_small caused by wrong loop count.  Add little-endian
3011         support.
3012         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3013         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
3014         cache hint.
3015         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3016         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
3017         support.  Avoid rlwimi.
3018         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
3019
3020 2013-10-04  Alan Modra  <amodra@gmail.com>
3021
3022         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
3023         insrdi.  Formatting.
3024         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3025         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3026         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
3027         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3028         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
3029         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
3030
3031 2013-10-04  Alan Modra  <amodra@gmail.com>
3032
3033         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
3034         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3035         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
3036         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
3037         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3038         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3039         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3040         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
3041         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
3042         use of regs.  Use power7 mtocrf.  Tidy function tails.
3043
3044 2013-10-04  Alan Modra  <amodra@gmail.com>
3045
3046         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
3047         Formatting.  Consistently use rXXX register defines or rN defines.
3048         Use early exit labels that avoid restoring unused non-volatile regs.
3049         Make cr field use more consistent with rWORDn compares.  Rename
3050         regs used as shift registers for unaligned loop, using rN defines
3051         for short lifetime/multiple use regs.
3052         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3053         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
3054         addi 1,1,64 to pop stack frame.  Simplify return value code.
3055         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3056
3057 2013-10-04  Alan Modra  <amodra@gmail.com>
3058
3059         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
3060         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
3061         rather than rlwimi.
3062         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
3063         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
3064         little-endian support.  Correct typos.
3065         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
3066         rather than rlwimi.
3067         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
3068         in loop and entry code to keep "and." results.
3069         (strchr): Add little-endian support.  Comment.  Move cntlzd
3070         earlier in tail.
3071         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
3072
3073 2013-10-04  Alan Modra  <amodra@gmail.com>
3074
3075         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
3076         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
3077         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
3078         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
3079
3080 2013-10-04  Alan Modra  <amodra@gmail.com>
3081
3082         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
3083         (rTMP): Define as r11.
3084         (strcmp): Add little-endian support.  Optimise tail.
3085         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
3086         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3087         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3088         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3089         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3090         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3091         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3092
3093 2013-10-04  Alan Modra  <amodra@gmail.com>
3094
3095         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
3096         little-endian support.  Remove unnecessary "are we done" tests.
3097         Handle "s" wrapping around zero and extremely large "size".
3098         Correct main loop count.  Handle single left-over word from main
3099         loop inline rather than by using small_loop.  Correct comments.
3100         Delete "zero" tail, use "end_max" instead.
3101         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
3102
3103 2013-10-04  Alan Modra  <amodra@gmail.com>
3104
3105         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
3106         support.  Don't branch over align.
3107         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
3108         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
3109         support.  Rearrange tmp reg use to suit.  Comment.
3110         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
3111
3112 2013-10-04  Alan Modra  <amodra@gmail.com>
3113
3114         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
3115
3116 2013-10-04  Alan Modra  <amodra@gmail.com>
3117
3118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
3119         conditional form of branch and link when obtaining pc.
3120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3121
3122 2013-10-04  Alan Modra  <amodra@gmail.com>
3123
3124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
3125         HIWORD/LOWORD.
3126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
3127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
3128
3129 2013-10-04  Alan Modra  <amodra@gmail.com>
3130
3131         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
3132         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
3133         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3134         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
3135         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3136         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3137         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
3138         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3139         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3140         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
3141
3142 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3143             Alistair Popple <alistair@ozlabs.au.ibm.com>
3144             Alan Modra <amodra@gmail.com>
3145
3146         [BZ #15723]
3147         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
3148         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
3149         _dl_hwcap access for little-endian.
3150         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
3151         destroy vmx regs when saving unaligned.
3152         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
3153         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
3154         destroy vmx regs when saving unaligned.
3155
3156 2013-10-04  Alan Modra  <amodra@gmail.com>
3157
3158         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
3159         Don't use a union to pack hi/low value.
3160
3161 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3162
3163         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
3164         for little-endian.
3165         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3166         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3167         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3168         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3169         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3170
3171 2013-10-04  Alan Modra  <amodra@gmail.com>
3172
3173         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
3174         constants to usual value for .cst8 section, and remove redundant
3175         high address load.
3176         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
3177         constant for 0x1p52.  Load little-endian words of double from
3178         correct stack offsets.
3179
3180 2013-10-04  Alan Modra  <amodra@gmail.com>
3181
3182         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
3183         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
3184         words of double from correct stack offsets.
3185         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
3186         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
3187         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3188         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3189         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3190         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3192         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3193         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3194         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3195         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3196         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3197         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3198         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3199         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3200         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
3201         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3202
3203 2013-10-04  Alan Modra  <amodra@gmail.com>
3204
3205         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
3206         64-bit int/double union.
3207         (_FPU_SETCW): Likewise.
3208         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
3209         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
3210
3211 2013-10-04  Alan Modra  <amodra@gmail.com>
3212
3213         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
3214         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
3215
3216 2013-10-04  Alan Modra  <amodra@gmail.com>
3217
3218         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
3219         use vector int constants.
3220         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
3221
3222 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3223
3224         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
3225         array with long long.
3226         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
3227         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
3228         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
3229         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
3230         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
3231         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
3232         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
3233         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
3234         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
3235         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
3236         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
3237         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
3238         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
3239
3240 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3241
3242         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
3243         (__signbit): Likewise.  Correct for little-endian.
3244         (__signbitl): Call __signbit.
3245         (lrint): Correct for little-endian.
3246         (lrintf): Call lrint.
3247
3248 2013-10-04  Alan Modra  <amodra@gmail.com>
3249
3250         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
3251         union 32-bit int array member with 64-bit int array.
3252         (t515, tm256): Double rather than long double.
3253         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
3254
3255 2013-10-04  Alan Modra  <amodra@gmail.com>
3256
3257         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
3258         Delete.
3259         (IEEE854_LONG_DOUBLE_BIAS): Delete.
3260         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
3261         version of math_ldbl.h.
3262
3263 2013-10-04  Alan Modra  <amodra@gmail.com>
3264
3265         [BZ #15734], [BZ #15735]
3266         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
3267         all uses of ieee875 long double macros and unions.  Simplify test
3268         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
3269         ldbl_extract_mantissa value for ix,iy exponents.  Properly
3270         normalize after ldbl_extract_mantissa, and don't add hidden bit
3271         already handled.  Don't treat low word of ieee854 mantissa like
3272         low word of IBM long double and mask off bit when testing for
3273         zero.
3274         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
3275         all uses of ieee875 long double macros and unions.  Simplify tests
3276         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
3277         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
3278         two1022, instead use their values.  Recognise that tests for large
3279         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
3280         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
3281         Rewrite all uses of ieee875 long double macros and unions.  Simplify
3282         test for 0.0L and nan.  Correct negation.
3283         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
3284         ieee875 long double macros and unions.  Correct output for large
3285         magnitude x.  Correct absolute value calculation.
3286         (__erfcl): Likewise.
3287         * math/libm-test.inc: Add tests for errors discovered in IBM long
3288         double versions of fmodl, remainderl, erfl and erfcl.
3289
3290 2013-10-04  Alan Modra  <amodra@gmail.com>
3291
3292         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
3293         all uses of ieee854 long double macros and unions.  Simplify tests
3294         for long doubles that are fully specified by the high double.
3295         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3296         Likewise.
3297         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
3298         Remove dead code too.
3299         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3300         (__ieee754_ynl): Likewise.
3301         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3302         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
3303         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3304         Remove dead code too.
3305         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
3306         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
3307         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
3308         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
3309         Simplify.
3310         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
3311         Simplify.
3312         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
3313         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
3314         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
3315         Comment on variable precision.
3316         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
3317         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3318         Likewise.
3319         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
3320         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3321         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3322         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
3323         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
3324
3325 2013-10-04  Alan Modra  <amodra@gmail.com>
3326
3327         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
3328         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
3329         all uses of ieee854 long double macros and unions.
3330         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
3331         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3332         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
3333         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
3334         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3335         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3336         Likewise.
3337         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
3338         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3339         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
3340         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3341         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
3342         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
3343         Simplify sign and nan test too.
3344         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
3345         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
3346         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
3347         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
3348         Likewise.
3349         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
3350         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
3351         Likewise.
3352         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3353         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
3354         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
3355         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
3356         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
3357         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
3358
3359 2013-10-04  Alan Modra  <amodra@gmail.com>
3360
3361         * stdio-common/printf_size.c (__printf_size): Don't use
3362         union ieee854_long_double in fpnum union.
3363         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
3364         signbit macro to retrieve sign from long double.
3365         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
3366         retrieve sign from long double.
3367         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
3368         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
3369         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
3370         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
3371         * math/test-misc.c (main): Don't use union ieee854_long_double.
3372
3373 2013-10-04  Alan Modra  <amodra@gmail.com>
3374
3375         [BZ #15680]
3376         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
3377         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
3378         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
3379         calculation.  Remove unnecessary test for denormal exponent.
3380         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
3381         Correct handling of denormals.  Avoid undefined shift behaviour.
3382         Correct normalisation of low mantissa when low double is denormal.
3383         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
3384         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
3385         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
3386         Correct normalisation of low mantissa.  Test for overflow of high
3387         mantissa and normalise.
3388         (ldbl_nearbyint): Use more readable constant for two52.
3389         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
3390         (__mpn_construct_long_double): Fix test for overflow of high
3391         mantissa and correct normalisation.  Avoid undefined shift.
3392
3393 2013-10-04  Alan Modra  <amodra@gmail.com>
3394
3395         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
3396         (union ibm_extended_long_double): Define as an array of ieee754_double.
3397         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
3398         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
3399         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
3400         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3401         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3402         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
3403         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3404         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
3405         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
3406         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
3407         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3408
3409 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
3410
3411         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
3412         page size instead of calling getpagesize.
3413
3414         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
3415         (LOCFILE_ALIGN_MASK): Likewise.
3416         (LOCFILE_ALIGN_UP): Likewise.
3417         (LOCFILE_ALIGNED_P): Likewise.
3418         * locale/programs/ld-collate.c (collate_output): Use the new
3419         macros instead of __alignof__ (int32_t).
3420         * locale/weight.h (findidx): Likewise.
3421
3422 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
3423
3424         [BZ #431]
3425         * manual/string.texi: Fix strncat and wcsncat.
3426
3427 2013-10-03  Brooks Moses  <bmoses@google.com>
3428
3429         [BZ #15915]
3430         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
3431         * Makerules: ...here, and adjust associated comments.
3432
3433 2013-10-02  Will Newton  <will.newton@linaro.org>
3434
3435         * malloc/Makefile: Add tst-pvalloc.
3436         * malloc/tst-pvalloc.c: New file.
3437
3438 2013-10-02  Will Newton  <will.newton@linaro.org>
3439
3440         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
3441         improve test coverage.
3442
3443 2013-10-02  Will Newton  <will.newton@linaro.org>
3444
3445         * malloc/Makefile: Add tst-posix_memalign.
3446         * malloc/tst-posix_memalign.c: New file.
3447
3448 2013-10-01  Eric Blake  <eblake@redhat.com>
3449
3450         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
3451         Use __THROWNL rather than __THROW on static functions.
3452
3453 2013-09-30  Petr Machata  <pmachata@redhat.com>
3454
3455         * elf/elf.h (R_AARCH64_ABS16): New macro.
3456         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
3457         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
3458         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
3459         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
3460         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
3461         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
3462         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
3463         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
3464         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
3465         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
3466         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
3467         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
3468         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
3469         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
3470         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
3471         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
3472         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
3473         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
3474         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
3475         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
3476         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
3477         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
3478         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
3479         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
3480         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
3481         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
3482         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
3483         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
3484         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
3485         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
3486         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
3487         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
3488         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
3489         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
3490         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
3491         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
3492         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
3493         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
3494         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
3495         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
3496         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
3497         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
3498         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
3499         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
3500         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
3501         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
3502         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
3503         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
3504         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
3505         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
3506         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
3507         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
3508         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
3509         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
3510         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
3511         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
3512         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
3513         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
3514         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
3515         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
3516         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
3517         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
3518         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
3519         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
3520         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
3521         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
3522         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
3523         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
3524         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
3525         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
3526         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
3527         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
3528         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
3529         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
3530         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
3531         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
3532         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
3533         (R_AARCH64_TLSDESC_LDR): Likewise.
3534         (R_AARCH64_TLSDESC_ADD): Likewise.
3535         (R_AARCH64_TLSDESC_CALL): Likewise.
3536
3537 2013-09-30  Andreas Schwab  <schwab@suse.de>
3538
3539         [BZ #15048]
3540         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
3541         the nss database lookup.
3542         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3543         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3544
3545 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
3546
3547         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
3548
3549 2013-09-28  P. J. McDermott  <pj@pehjota.net>
3550
3551         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
3552         ${Bash-specific parameter/pattern/string} parameter expansion.
3553         * sysdeps/unix/make-syscalls.sh: Likewise.
3554
3555 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3556
3557         * sysdeps/sh/stackguard-macros.h: New file.
3558
3559 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
3560
3561         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
3562         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
3563         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
3564         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
3565         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
3566         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
3567
3568 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3569
3570         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
3571         Fix thread ID register.
3572
3573 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
3574
3575         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
3576         [POSIX || UNIX98]: Require rather than permitting all symbols from
3577         <time.h>.
3578         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
3579         element of struct sched_param.
3580         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
3581         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
3582         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
3583         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
3584         constant.
3585
3586 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
3587
3588         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
3589         argument calculation.
3590
3591 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
3592
3593         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
3594         Expect macro.
3595         [POSIX] (pthread_attr_t): Do not require type.
3596         [POSIX] (pthread_cond_t): Likewise.
3597         [POSIX] (pthread_condattr_t): Likewise.
3598         [POSIX] (pthread_key_t): Likewise.
3599         [POSIX] (pthread_mutex_t): Likewise.
3600         [POSIX] (pthread_mutexattr_t): Likewise.
3601         [POSIX] (pthread_once_t): Likewise.
3602         [POSIX] (pthread_t): Likewise.
3603         [POSIX-based standards] (pthread_atfork): Expect function.
3604
3605 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
3606             Richard Sandiford  <richard@codesourcery.com>
3607
3608         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
3609         (swap_endianness_p): New extern variable.
3610         (set_big_endian): New inline function.
3611         (maybe_swap_uint32): Likewise.
3612         (maybe_swap_uint32_array): Likewise.
3613         (maybe_swap_uint32_obstack): Likewise.
3614         * locale/programs/locfile.c: Include <stdbool.h>.
3615         (swap_endianness_p): New variable.
3616         (add_locale_uint32): Call maybe_swap_uint32.
3617         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
3618         (write_locale_data): Call maybe_swap_uint32_array.
3619         * locale/programs/ld-collate.c (obstack_int32_grow): Call
3620         maybe_swap_uint32.
3621         (obstack_int32_grow_fast): Likewise.
3622         (output_weightwc): Call maybe_swap_uint32_obstack.
3623         (collate_output): Likewise.
3624         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
3625         (OPT_LITTLE_ENDIAN): Likewise.
3626         (options): Add --little-endian and --big-endian options.
3627         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
3628         * locale/programs/locarchive.c: Include "locfile.h".
3629         (GET): New macro.
3630         (SET): Likewise.
3631         (INC): Likewise.
3632         (create_archive): Use the new macros to access fields of
3633         structures directly mapped from or written to locale archives.
3634         (oldlocrecentcmp): Likewise.
3635         (enlarge_archive): Likewise.
3636         (insert_name): Likewise.
3637         (add_alias): Likewise.
3638         (add_locale): Likewise.
3639         (delete_locales_from_archive): Likewise.
3640         (show_archive_content): Likewise.
3641         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
3642         locale data.
3643
3644 2013-09-24  Roland McGrath  <roland@hack.frob.com>
3645
3646         * manual/freemanuals.texi: Updated from (newly) canonical copy at
3647         http://www.gnu.org/doc/freemanuals.texi.
3648         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
3649
3650 2013-09-24  Will Newton  <will.newton@linaro.org>
3651
3652         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
3653         macro.
3654
3655 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
3656
3657         * locale/hashval.h (compute_hashval): Interpret bytes of key as
3658         unsigned char.
3659
3660 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
3661
3662         * manual/threads.texi (POSIX Threads): Fix a typo.
3663
3664 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3665
3666         [BZ #14547]
3667         * string/tst-strcoll-overflow.c: New test case.
3668         * string/Makefile (xtests): Add tst-strcoll-overflow.
3669         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
3670         cache if string sizes may cause integer overflow.
3671
3672         [BZ #14547]
3673         * string/strcoll_l.c (coll_seq): New members rule, idx,
3674         save_idx and back_us.
3675         (get_next_seq_nocache): New function.
3676         (do_compare_nocache): New function.
3677         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
3678         when malloc fails.
3679
3680 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
3681
3682         [BZ #15754]
3683         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
3684         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
3685         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
3686
3687         [BZ #15754]
3688         * elf/Makefile (tests): Add tst-ptrguard1.
3689         (tests-static): Add tst-ptrguard1-static.
3690         (tst-ptrguard1-ARGS): Define.
3691         (tst-ptrguard1-static-ARGS): Define.
3692         * elf/tst-ptrguard1.c: New file.
3693         * elf/tst-ptrguard1-static.c: New file.
3694         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
3695         * sysdeps/i386/stackguard-macros.h: Likewise.
3696         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3697         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3698         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3699         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3700         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3701         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3702
3703 2013-09-23  Hector Marco  <hecmargi@upv.es>
3704             Ismael Ripoll  <iripoll@disca.upv.es>
3705             Carlos O'Donell  <carlos@redhat.com>
3706
3707         [BZ #15754]
3708         * sysdeps/generic/stackguard-macros.h: Define
3709         __pointer_chk_guard_local and POINTER_CHK_GUARD.
3710         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
3711         Define __pointer_chk_guard_local.
3712         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
3713         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
3714
3715 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
3716
3717         [BZ #15859]
3718         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
3719
3720 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
3721
3722         * include/string.h (__ffs): Declare as hidden.
3723         * string/ffs.c (__ffs): Define as hidden.
3724         * sysdeps/i386/ffs.c (__ffs): Likewise.
3725         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
3726         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
3727         * sysdeps/s390/ffs.c (__ffs): Likewise.
3728         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
3729
3730 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
3731
3732         * NEWS: Mention malloc probes.
3733
3734         * malloc/arena.c (new_heap): New memory_heap_new probe.
3735         (grow_heap): New memory_heap_more probe.
3736         (shrink_heap): New memory_heap_less probe.
3737         (heap_trim): New memory_heap_free probe.
3738         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
3739         (systrim): New memory_sbrk_less probe.
3740         * manual/probes.texi: Document them.
3741
3742         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
3743         * manual/probes.texi: Document it.
3744
3745         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
3746         (__libc_realloc): Add memory_realloc_retry probe.
3747         (__libc_memalign): Add memory_memalign_retry probe.
3748         (__libc_valloc): Add memory_valloc_retry probe.
3749         (__libc_pvalloc): Add memory_pvalloc_retry probe.
3750         (__libc_calloc): Add memory_calloc_retry probe.
3751         * manual/probes.texi: Document them.
3752
3753         * malloc/arena.c (get_free_list): Add probe
3754         memory_arena_reuse_free_list.
3755         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
3756         and memory_arena_reuse.
3757         (arena_get2) [!PER_THREAD]: Likewise.
3758         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
3759         memory_arena_reuse_realloc.
3760         * manual/probes.texi: Document them.
3761
3762         * malloc/malloc.c (__libc_free): Add
3763         memory_mallopt_free_dyn_thresholds probe.
3764         (__libc_mallopt): Add multiple memory_mallopt probes.
3765         * manual/probes.texi: Document them.
3766
3767         * malloc/malloc.c: Include stap-probe.h.
3768         (__libc_mallopt): Add memory_mallopt probe.
3769         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
3770         * manual/probes.texi: New.
3771         * manual/Makefile (chapters): Add probes.
3772         * manual/threads.texi: Set next node.
3773
3774 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
3775
3776         [BZ #15963, #13985]
3777         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
3778         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
3779         Add `Chinese' to `nan' entry name.
3780
3781 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3782
3783         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
3784         (POLYNOMIAL): Likewise.
3785         (TAYLOR_SINCOS): Likewise.
3786         (TAYLOR_SLOW): Likewise.
3787         (__sin): Use TAYLOR_SINCOS.
3788         (__cos): Likewise.
3789         (slow): Use TAYLOR_SLOW.
3790         (sloww): Likewise.
3791         (bsloww): Likewise.
3792         (csloww): Likewise.
3793
3794 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3795
3796         * stdlib/strtod_l.c: Fix buffer overrun.
3797
3798 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3799
3800         * benchtests/Makefile (bench): Add sincos.
3801         * benchtests/bench-sincos.c: New file.
3802
3803         * math/libm-test.inc (cos_test_data): New test inputs.
3804         (sin_test_data): Likewise.
3805
3806         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
3807         macro.
3808         (__sin): Use it.
3809         (__cos): Likewise.
3810         (slow1): Likewise.
3811         (slow2): Likewise.
3812         (sloww1): Likewise.
3813         (sloww2): Likewise.
3814         (bsloww1): Likewise.
3815         (bsloww2): Likewise.
3816         (cslow2): Likewise.
3817         (csloww1): Likewise.
3818         (csloww2): Likewise.
3819
3820         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
3821         function.
3822         (__sin): Use it.
3823         (__cos): Likewise.
3824
3825         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
3826         gotos.
3827         (__cos): Likewise.
3828
3829 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
3830
3831         * config.h.in (HAVE_MIPS_NAN2008): New macro.
3832         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
3833         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
3834         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
3835         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
3836         * elf/cache.c (print_entry): Handle the new cache flags.
3837
3838 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
3839             Aldy Hernandez  <aldyh@redhat.com>
3840
3841         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
3842         Change condition to [_SOFT_FLOAT].
3843         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
3844         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
3845         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
3846         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
3847         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
3848         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
3849         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
3850         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
3851         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
3852         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
3853         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
3854         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
3855         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
3856         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
3857         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
3858         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
3859         declaration.
3860
3861 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
3862
3863         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
3864         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
3865         (__longjmp): Use LOAD_GP to load saved GPRs.
3866         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
3867         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
3868         (__sigsetjmp): Use SAVE_GP to save GPRs.
3869
3870         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
3871         Do not append -msoft-float.
3872         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
3873
3874 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3875
3876         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
3877
3878 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
3879
3880         [BZ #15966]
3881         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
3882         (_FPU_GETCW): Use initial "__" on variable and field names but not
3883         on macro parameter name.
3884         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
3885         parentheses around reference to macro parameter.
3886
3887 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
3888
3889         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
3890         prototype.
3891         (ctype_startup): Use uint32_t in cast and sizeof for
3892         ctype->charnames.
3893
3894 2013-09-11  Jia Liu  <proljc@gmail.com>
3895
3896         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
3897         __daddr_t_defined.
3898         [__FreeBSD__]: Likewise.
3899
3900 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
3901
3902         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3903         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
3904         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
3905         (strchr): Remove __strchr_sse42 ifunc selection.
3906         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
3907         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
3908
3909 2013-09-11  Will Newton  <will.newton@linaro.org>
3910
3911         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
3912         parameter to RES. Remove hardcoded 1000 value.
3913         * benchtests/bench-skeleton.c (main): Pass RES parameter
3914         to TIMING_INIT and multiply result by 1000.
3915
3916 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3917
3918         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3919
3920 2013-09-11  Andreas Schwab  <schwab@suse.de>
3921
3922         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
3923         if not defined.
3924         (O_TMPFILE) [__USE_GNU]: Define.
3925         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
3926         Define.
3927
3928 2013-09-11  Will Newton  <will.newton@linaro.org>
3929
3930         [BZ #15857]
3931         * malloc/malloc.c (__libc_memalign): Check the value of bytes
3932         does not overflow.
3933
3934 2013-09-11  Will Newton  <will.newton@linaro.org>
3935
3936         [BZ #15856]
3937         * malloc/malloc.c (__libc_valloc): Check the value of bytes
3938         does not overflow.
3939
3940 2013-09-11  Will Newton  <will.newton@linaro.org>
3941
3942         [BZ #15855]
3943         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
3944         does not overflow.
3945
3946 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
3947
3948         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
3949         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3950         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3951         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3952         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3953
3954 2013-09-10  Allan McRae  <allan@archlinux.org>
3955
3956         [BZ #15748]
3957         * manual/arith.texi (Parsing of Floats): Clarify
3958         cross-reference.
3959
3960         [BZ #15849]
3961         * manual/install.texi (Running make install): Mention
3962         --enable-pt-chown.
3963         * INSTALL: Regenerated.
3964
3965 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3966
3967         * csu/init-first.c (_init): Remove the !SHARED condition around
3968         FPU control word initialization.
3969         * elf/dl-support.c (_dl_fpu_control): New variable.
3970         (_dl_aux_init) <AT_FPUCW>: Initialize it.
3971         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
3972         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
3973         * math/test-fpucw-static.c: New file.
3974         * math/test-fpucw-ieee.c: New file.
3975         * math/test-fpucw-ieee-static.c: New file.
3976         * math/Makefile (tests): Add `test-fpucw-ieee' and
3977         `$(tests-static)'.
3978         (tests-static): New variable.
3979         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
3980         dependency to...
3981         [($(build-shared),yes)]
3982         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
3983         ... this.
3984         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
3985         New dependency.
3986
3987 2013-09-09  Allan McRae  <allan@archlinux.org>
3988
3989         [BZ #15939]
3990         * manual/string.texi (Collation Functions): Fix typo in
3991         strcoll example.
3992         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
3993
3994         [BZ #15893]
3995         * stdlib/isomac.c (get_null_defines): Fix memory leak.
3996
3997         [BZ #15892]
3998         * libio/memstream.c (open_memstream): Fix memory leak.
3999         * libio/wmemstream.c (open_wmemstream): Likewise.
4000
4001         [BZ #15895]
4002         * nscd/netgroupcache.c: Fix nesting of ifdefs.
4003
4004 2013-09-09  Will Newton  <will.newton@linaro.org>
4005
4006         * malloc/Makefile: Add tst-realloc to tests.
4007         * malloc/tst-realloc.c: New file.
4008
4009 2013-09-09  Allan McRae  <allan@archlinux.org>
4010
4011         [BZ #15844]
4012         * COPYING: Update from GNU website to fix FSF address.
4013         * COPYING.LIB: Likewise.
4014
4015 2013-09-06  David S. Miller  <davem@davemloft.net>
4016
4017         * po/zh_TW.po: Update Chinese (traditional) translation from
4018         translation project.
4019
4020 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
4021             Joseph Myers  <joseph@codesourcery.com>
4022
4023         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
4024         "localeinfo.h".
4025         (obstack_chunk_alloc): New macro.
4026         (obstack_chunk_free): Likewise.
4027         (record_offset): New function.
4028         (init_locale_data): Likewise.
4029         (align_locale_data): Likewise.
4030         (add_locale_empty): Likewise.
4031         (add_locale_raw_data): Likewise.
4032         (add_locale_raw_obstack): Likewise.
4033         (add_locale_string): Likewise.
4034         (add_locale_wstring): Likewise.
4035         (add_locale_uint32): Likewise.
4036         (add_locale_uint32_array): Likewise.
4037         (add_locale_char): Likewise.
4038         (start_locale_structure): Likewise.
4039         (end_locale_structure): Likewise.
4040         (start_locale_prelude): Likewise.
4041         (end_locale_prelude): Likewise.
4042         (write_locale_data): Take locale_file structure rather than an
4043         iovec.
4044         * locale/programs/locfile.h: Include "obstack.h".
4045         (struct locale_file): Change to store locale file contents instead
4046         of header.
4047         (init_locale_data): New prototype.
4048         (align_locale_data): Likewise.
4049         (add_locale_empty): Likewise.
4050         (add_locale_raw_data): Likewise.
4051         (add_locale_raw_obstack): Likewise.
4052         (add_locale_string): Likewise.
4053         (add_locale_wstring): Likewise.
4054         (add_locale_uint32): Likewise.
4055         (add_locale_uint32_array): Likewise.
4056         (add_locale_char): Likewise.
4057         (start_locale_structure): Likewise.
4058         (end_locale_structure): Likewise.
4059         (start_locale_prelude): Likewise.
4060         (end_locale_prelude): Likewise.
4061         (write_locale_data): Update prototype.
4062         * locale/programs/3level.h (struct TABLE): Remove result field.
4063         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
4064         Use new locale_file interface.
4065         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
4066         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
4067         * locale/programs/ld-address.c (address_output): Use new
4068         locale_file interface.
4069         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
4070         NO_ADD_LOCALE.
4071         (collate_finish): Don't call collseq_table_finalize.
4072         (collate_output): Use new locale_file interface.
4073         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
4074         in file.
4075         (NO_FINALIZE): Change to NO_ADD_LOCALE.
4076         (TABLE): Move defines earlier in file.
4077         (ELEMENT): Likewise.
4078         (DEFAULT): Likewise.
4079         (wctrans_table_add): Move macro and inline function earlier in
4080         file.
4081         (struct wctype_table): Move type earlier in file.
4082         (add_locale_wctype_table): New static prototype.
4083         (struct locale_ctype_t): Use logical types instead of struct iovec
4084         pointers for members.
4085         (ctype_output): Use new locale_file interface.
4086         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
4087         new locale_file interface.
4088         (allocate_arrays): Update for use of new locale_file interface.
4089         * locale/programs/ld-identification.c (identification_output): Use
4090         new locale_file interface.
4091         * locale/programs/ld-measurement.c (measurement_output): Likewise.
4092         * locale/programs/ld-messages.c (messages_output): Likewise.
4093         * locale/programs/ld-monetary.c (monetary_output): Likewise.
4094         * locale/programs/ld-name.c (name_output): Likewise.
4095         * locale/programs/ld-numeric.c (numeric_output): Likewise.
4096         * locale/programs/ld-paper.c (paper_output): Likewise.
4097         * locale/programs/ld-telephone.c (telephone_output): Likewise.
4098         * locale/programs/ld-time.c (time_output): Likewise.
4099
4100 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4101
4102         * benchtests/Makefile: Add memrchr benchmark.
4103         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
4104         benchmark as memrchr.
4105         * benchtests/bench-memrchr-ifunc.c: New file.
4106         * benchtests/bench-memrchr.c: New file.
4107
4108 2013-09-06   Will Newton  <will.newton@linaro.org>
4109
4110         * benchtests/Makefile (string-bench): Add memcpy.
4111
4112 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
4113             Cong Wang  <amwang@redhat.com>
4114
4115         * sysdeps/unix/sysv/linux/bits/in.h
4116         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
4117         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
4118         before __USE_KERNEL_IPV6_DEFS uses.
4119         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
4120         IPPROTO_BEETPH.
4121         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
4122         sockaddr_in6, or ipv6_mreq.
4123
4124 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4125
4126         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
4127         memory access for final bytes in some large inputs.
4128         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
4129
4130 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4131
4132         * string/test-memrchr.c: New file.
4133         * string/test-memrchr-ifunc.c: New file.
4134         * string/Makefile: Add new memrchr testcase.
4135
4136 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
4137
4138         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
4139         fanotify_init returns EPERM.
4140
4141 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4142
4143         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
4144         errors.
4145         (top level): Treat second token from macro or constant entries for
4146         allowed headers as allowed.
4147         * include/complex.h: Condition internal declarations on
4148         [!_ISOMAC].
4149         * include/fenv.h: Condition include of <stdbool.h> and internal
4150         declarations on [!_ISOMAC].
4151
4152 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
4153
4154         [BZ #15923]
4155         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
4156
4157 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4158
4159         * configure.in (--enable-versioning): Remove configure option.
4160         (libc_cv_asm_symver_directive): Remove configure test.
4161         (libc_cv_ld_version_script_option): Likewise.
4162         (VERSIONING): Remove variable and AC_SUBST.
4163         (DO_VERSIONING): Remove AC_DEFINE.
4164         * configure: Regenerated.
4165         * config.h.in (DO_VERSIONING): Remove macro.
4166         * Makerules [$(versioning) = yes]: Change conditionals to
4167         [$(build-shared) = yes].
4168         * config.make.in (versioning): Remove variable.
4169         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
4170         [$(build-shared) = yes].
4171         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
4172         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
4173         * elf/Makefile [$(versioning) = yes]: Change conditionals to
4174         [$(build-shared) = yes].
4175         * extra-lib.mk [$(versioning) = yes]: Likewise.
4176         * hurd/Makefile [$(versioning) = yes]: Likewise.
4177         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
4178         [SHARED].
4179         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
4180         [SHARED].
4181         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
4182         [SHARED && !NO_HIDDEN].
4183         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
4184         [SHARED].
4185         [SHARED && DO_VERSIONING]: Likewise..
4186         * libio/Makefile [$(versioning) = yes]: Change conditionals to
4187         [$(build-shared) = yes].
4188         * manual/install.texi (--disable-versioning): Remove
4189         documentation.
4190         * INSTALL: Regenerated.
4191         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
4192         to [SHARED].
4193         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
4194         [$(build-shared) = yes].
4195         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
4196         * sysdeps/i386/i686/multiarch/strstr-c.c
4197         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
4198         [SHARED && !NO_HIDDEN].
4199         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
4200         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
4201         * sysdeps/powerpc/powerpc32/dl-machine.c
4202         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
4203         * sysdeps/powerpc/powerpc32/sysdep.h
4204         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
4205         to [SHARED && PIC && !NO_HIDDEN].
4206         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
4207         conditional to [SHARED].
4208
4209 2013-09-04   Will Newton  <will.newton@linaro.org>
4210
4211         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
4212         * benchtests/bench-string.h: Include bench-timing.h instead
4213         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
4214         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
4215         call to HP_TIMING_DIFF_INIT.
4216         * benchtests/bench-memccpy.c: Use bench-timing.h macros
4217         instead of hp-timing.h macros.
4218         * benchtests/bench-memchr.c: Likewise.
4219         * benchtests/bench-memcmp.c: Likewise.
4220         * benchtests/bench-memcpy.c: Likewise.
4221         * benchtests/bench-memmem.c: Likewise.
4222         * benchtests/bench-memmove.c: Likewise.
4223         * benchtests/bench-memset.c: Likewise.
4224         * benchtests/bench-rawmemchr.c: Likewise.
4225         * benchtests/bench-strcasecmp.c: Likewise.
4226         * benchtests/bench-strcasestr.c: Likewise.
4227         * benchtests/bench-strcat.c: Likewise.
4228         * benchtests/bench-strchr.c: Likewise.
4229         * benchtests/bench-strcmp.c: Likewise.
4230         * benchtests/bench-strcpy.c: Likewise.
4231         * benchtests/bench-strcpy_chk.c: Likewise.
4232         * benchtests/bench-strlen.c: Likewise.
4233         * benchtests/bench-strncasecmp.c: Likewise.
4234         * benchtests/bench-strncat.c: Likewise.
4235         * benchtests/bench-strncmp.c: Likewise.
4236         * benchtests/bench-strncpy.c: Likewise.
4237         * benchtests/bench-strnlen.c: Likewise.
4238         * benchtests/bench-strpbrk.c: Likewise.
4239         * benchtests/bench-strrchr.c: Likewise.
4240         * benchtests/bench-strspn.c: Likewise.
4241         * benchtests/bench-strstr.c: Likewise.
4242
4243 2013-09-04  Will Newton  <will.newton@linaro.org>
4244
4245         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
4246
4247 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
4248
4249         [BZ #15427]
4250         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
4251         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
4252         * math/libm-test.inc (lgamma_test_data): Add more tests.
4253         * sysdeps/i386/fpu/libm-test-ulps: Update.
4254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4255
4256 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
4257
4258         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
4259         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4260         Add ifunc.
4261         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4262         Add strcmp-sse2-unaligned
4263         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
4264
4265 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
4266
4267         * Versions.def (libc): Add GLIBC_2.19.
4268
4269 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
4270
4271         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
4272         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
4273
4274 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
4275
4276         [BZ #14155]
4277         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
4278         intermediate calculations in recurrence.
4279         (__ieee754_ynf): Likewise.
4280         * math/libm-test.inc (jn_test_data): Do not allow spurious
4281         underflow exception.  Add more tests.
4282         (yn_test_data): Add more tests.
4283         * sysdeps/i386/fpu/libm-test-ulps: Update.
4284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4285
4286 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
4287
4288         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
4289
4290 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
4291
4292         * csu/init-first.c: Fix then/than typos.
4293         * locale/programs/ld-collate.c: Likewise.
4294         * locale/programs/linereader.h: Likewise.
4295         * manual/charset.texi: Likewise.
4296         * manual/filesys.texi: Likewise.
4297         * manual/stdio.texi: Likewise.
4298         * manual/string.texi: Likewise.
4299         * stdlib/fmtmsg.c: Likewise.
4300         * sysdeps/i386/stpncpy.S: Likewise.
4301         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4302         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4303         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4304         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4305
4306 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
4307
4308         * elf/dl-open.c: Fix typos.
4309         * iconvdata/gbbig5.c: Likewise.
4310         * iconvdata/iso-2022-jp.c: Likewise.
4311         * iconv/gconv_int.h: Likewise.
4312         * iconv/loop.c: Likewise.
4313         * nis/rpcsvc/nis.h: Likewise.
4314         * resolv/ns_name.c: Likewise.
4315         * stdio-common/vfscanf.c: Likewise.
4316         * streams/stropts.h: Likewise.
4317         * sunrpc/rpc_thread.c: Likewise.
4318         * sysdeps/i386/strpbrk.S: Likewise.
4319         * sysdeps/ieee754/k_standard.c: Likewise.
4320         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4321         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4322         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4323         * sysdeps/mach/hurd/profil.c: Likewise.
4324         * sysdeps/s390/dl-procinfo.h: Likewise.
4325         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4326         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4327         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4328         * sysdeps/x86_64/dl-trampoline.S: Likewise.
4329         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4330
4331 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
4332
4333         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
4334         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
4335
4336 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
4337
4338         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
4339         aix specific files.
4340         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
4341         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
4342         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
4343         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
4344         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
4345         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
4346         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
4347         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
4348
4349 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
4350             Roland McGrath  <roland@hack.frob.com>
4351
4352         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
4353         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4354
4355 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4356
4357         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
4358         __executable_start symbol instead of _start.
4359
4360 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
4361
4362         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
4363         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
4364         Move macros to...
4365         * sysdeps/gnu/ldsodefs.h: ... this new file.
4366
4367         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
4368         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
4369         instead of ELFOSABI_LINUX.
4370
4371         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
4372         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
4373         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
4374         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
4375         Likewise.
4376         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
4377         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
4378         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
4379         Likewise.
4380         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
4381         (ibm_extended_long_double): Add ieee_nan member.
4382         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
4383         (do_test): New function.
4384
4385         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
4386         TEST_TRUNC.
4387         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
4388         functions, renamed from truncdfsf_test, trunctfsf_test,
4389         trunctfdf_test.
4390         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
4391         functions.
4392         (do_test): Run all these.
4393
4394 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
4395
4396         * argp/argp-help.c: Fix typos.
4397         * argp/argp-parse.c: Likewise.
4398         * debug/backtracesyms.c: Likewise.
4399         * elf/elf.h: Likewise.
4400         * malloc/malloc.c: Likewise.
4401         * nis/nis_print.c: Likewise.
4402         * resolv/res_comp.c: Likewise.
4403         * stdlib/stdlib.h: Likewise.
4404         * sunrpc/clnt_tcp.c: Likewise.
4405         * sunrpc/clnt_udp.c: Likewise.
4406         * sunrpc/clnt_unix.c: Likewise.
4407         * sysdeps/unix/bsd/ptsname.c: Likewise.
4408         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4409         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
4410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
4411         Likewise.
4412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4413         Likewise.
4414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4415         Likewise.
4416         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4417
4418 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4419
4420         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
4421         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4422
4423 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
4424
4425         [BZ #15897]
4426         * dlfcn/Makefile (tests): Add bug-dl-leaf.
4427         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
4428         ($(objpfx)bug-dl-leaf): New rule.
4429         ($(objpfx)bug-dl-leaf.so): Likewise.
4430         ($(objpfx)bug-dl-leaf.out): Likewise.
4431         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
4432         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
4433         * dlfcn/bug-dl-leaf.c: New test.
4434         * dlfcn/bug-dl-leaf-lib.c: Likewise.
4435         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
4436         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
4437         (dlclose): Likewise.
4438         (dlmopen): Likewise.
4439
4440 2013-08-27  Roland McGrath  <roland@hack.frob.com>
4441
4442         * include/netdb.h [!_ISOMAC]:
4443         Don't include <tls.h>.
4444         (h_errno, __libc_h_errno): Move declaration and macros out of
4445         [_LIBC_REENTRANT].
4446
4447         * include/resolv.h [_RESOLV_H_]:
4448         Don't include <tls.h>.
4449         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
4450         * resolv/res_libc.c: Don't include <tls.h>.
4451         (_res): Use __attribute__ ((nocommon)) in place of
4452         __attribute__ ((section (".bss"))).
4453
4454         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
4455         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
4456
4457         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
4458
4459         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
4460         only under [SIOCGIFCONF && SIOCGIFNETMASK].
4461
4462         * resolv/res_mkquery.c: Include <sys/time.h>.
4463
4464         * inet/ifreq.c: Moved to ...
4465         * sysdeps/unix/ifreq.c: ... here.
4466         * inet/ifreq.c: New file, true stub version.
4467
4468         * socket/sa_len.c: New file.
4469         * socket/Makefile (aux): Add it.
4470         * sysdeps/unix/sysv/linux/Makefile
4471         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
4472         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
4473         and #include <socket/sa_len.c>.
4474         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
4475         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
4476
4477         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
4478         * bits/socket.h: ... here.
4479
4480         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
4481         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
4482         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
4483
4484 2013-08-27  Andreas Schwab  <schwab@suse.de>
4485
4486         [BZ #15736]
4487         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
4488         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
4489         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
4490         * string/test-strcasecmp.c (test_main): Run tests in several
4491         locales.
4492         * string/test-strncasecmp.c (test_main): Likewise.
4493
4494         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
4495         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
4496         to __strcasecmp_nonascii and __strncasecmp_nonascii.
4497         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
4498         (__strncasecmp_ssse3) [PIC]: Likewise.
4499
4500 2013-08-26  Roland McGrath  <roland@hack.frob.com>
4501
4502         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
4503
4504         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
4505         instead of explicitly declaring xdecrypt.
4506         * nis/nss_nis/nis-publickey.c: Likewise.
4507
4508 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4509
4510         [BZ #15890]
4511         * nscd/aicache.c: Include res_hconf.h.
4512         (addhstaiX): Initialize res_hconf.
4513
4514 2013-08-26  Andreas Schwab  <schwab@suse.de>
4515
4516         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
4517         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
4518
4519 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4520
4521         * nscd/aicache.c (addhstaiX): Fix indentation.
4522
4523 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
4524
4525         * configure.ac: Quote $build_pt_chown test.
4526         * configure: Regenerated.
4527
4528 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
4529
4530         [BZ #15532]
4531         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
4532         * math/s_cexpf.c (__cexpf): Likewise.
4533         * math/s_cexpl.c (__cexpl): Likewise.
4534         * math/libm-test.inc (cexp_test_data): Correct expected return
4535         value for NaN + i0.  Add another test.
4536
4537 2013-08-22  David S. Miller  <davem@davemloft.net>
4538
4539         * po/ca.po: Update Catalan translation from translation project.
4540         * po/uk.po: Add Ukrainian translations from translation project.
4541
4542 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
4543
4544         [BZ #15797]
4545         * math/s_fdim.c (__fdim): Check for infinite arguments if result
4546         is infinite, not alongside NaN test.
4547         * math/s_fdimf.c (__fdimf): Likewise.
4548         * math/s_fdiml.c (__fdiml): Likewise.
4549         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
4550         errno is unchanged.
4551
4552 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
4553
4554         * argp/argp-help.c: Fix typos.
4555         * crypt/speeds.c: Likewise.
4556         * csu/check_fds.c: Likewise.
4557         * elf/dl-load.c: Likewise.
4558         * elf/dl-open.c: Likewise.
4559         * elf/reldep3.c: Likewise.
4560         * elf/reldep.c: Likewise.
4561         * elf/sprof.c: Likewise.
4562         * iconv/iconv_charmap.c: Likewise.
4563         * iconv/skeleton.c: Likewise.
4564         * iconv/strtab.c: Likewise.
4565         * io/lockf64.c: Likewise.
4566         * libio/libioP.h: Likewise.
4567         * resolv/gai_notify.c: Likewise.
4568         * resolv/ns_name.c: Likewise.
4569         * resolv/ns_samedomain.c: Likewise.
4570         * resolv/res_send.c: Likewise.
4571         * stdlib/random.c: Likewise.
4572         * sunrpc/rpc/xdr.h: Likewise.
4573         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
4574         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4575         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4576         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4577         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4578         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4579         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4580         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4581         * sysdeps/mach/hurd/check_fds.c: Likewise.
4582         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4583         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4584         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4585         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4586         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4587         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4588         * sysdeps/pthread/aio_notify.c: Likewise.
4589         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
4590         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
4591         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
4592         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4593         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
4594
4595 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4596
4597         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
4598         version if bit_Slow_SSE4_2 is set.
4599         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4600         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4601
4602 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4603
4604         [BZ #15867]
4605         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
4606         trampoline stack frame information.
4607         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
4608         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
4609         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
4610         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
4611         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
4612         * sysdeps/unix/sysv/linux/powerpc/init-first.c
4613         (_libc_vdso_platform_setup): Initialize the signal trampolines.
4614         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
4615         sa_flags value.
4616         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
4617         interrupting a syscall and set with option SA_SIGINFO.
4618
4619 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
4620
4621         [BZ #15531]
4622         * math/s_cproj.c (__cproj): Only return an infinity if one part of
4623         argument is infinite.
4624         * math/s_cprojf.c (__cprojf): Likewise.
4625         * math/s_cprojl.c (__cprojl): Likewise.
4626         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
4627         * math/libm-test.inc (cproj_test_data): Add more tests.
4628
4629         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
4630
4631         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
4632         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
4633         size.  Use __ffs to determine corresponding shift.
4634
4635 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
4636             Roland McGrath  <roland@hack.frob.com>
4637
4638         * Makefile (INSTALL): Remove trailing blank lines from output of
4639         makeinfo.
4640
4641 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4642
4643         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
4644         Align 32 bit compat elf_greg to 8 bytes.
4645
4646 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4647
4648         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
4649
4650 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4651
4652         * string/strcoll_l.c (coll_seq): New structure.
4653         (get_next_seq_cached): New function.
4654         (get_next_seq): New function.
4655         (do_compare): New function.
4656         (STRCOLL): Use GNU style definition.  Simplify implementation
4657         by using get_next_seq, get_next_seq_cached and do_compare.
4658
4659 2013-08-16  Florian Weimer  <fweimer@redhat.com>
4660
4661         [BZ #14699]
4662         CVE-2013-4237
4663         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
4664         member.
4665         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
4666         member.
4667         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
4668         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
4669         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
4670         conditional.
4671         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
4672         GETDENTS_64BIT_ALIGNED.
4673         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4674         * manual/filesys.texi (Reading/Closing Directory): Document
4675         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
4676         strongly.
4677         * manual/conf.texi (Limits for Files): Add portability note to
4678         NAME_MAX, PATH_MAX.
4679         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
4680
4681 2013-08-13  Andreas Schwab  <schwab@suse.de>
4682
4683         [BZ #15749]
4684         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
4685         of fabs.
4686         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
4687         LDBL_MAX_EXP >= 16384]: Add tests for it.
4688
4689 2013-08-12  David S. Miller  <davem@davemloft.net>
4690
4691         * version.h (RELEASE): Set to "development".
4692         (VERSION): Set to "2.18.90".
4693         * NEWS: Add 2.19 section.
4694
4695 2013-08-03  David S. Miller  <davem@davemloft.net>
4696
4697         * po/ko.po: Update Korean translation from translation project.
4698
4699 2013-08-01  David S. Miller  <davem@davemloft.net>
4700
4701         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
4702         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
4703         Bilka.
4704
4705 2013-07-30  David S. Miller  <davem@davemloft.net>
4706
4707         * po/fr.po: Update French translation from translation project.
4708
4709 2013-07-28  David S. Miller  <davem@davemloft.net>
4710
4711         * po/cs.po: Update Czech translation from translation project.
4712
4713         * po/sv.po: Update Swedish translation from translation project.
4714
4715 2013-07-27  David S. Miller  <davem@davemloft.net>
4716
4717         * po/eo.po: Update Esperanto translation from translation project.
4718
4719         * po/vi.po: Update Vietnamese translation from translation project.
4720
4721         * po/de.po: Update German translation from translation project.
4722
4723 2013-07-26  David S. Miller  <davem@davemloft.net>
4724
4725         * po/bg.po: Update Bulgarian translation from translation project.
4726
4727         * po/nl.po: Update Dutch translation from translation project.
4728         * po/pl.po: Update Polish translation from translation project.
4729         * po/ru.po: Update Russian translation from translation project.
4730
4731 2013-07-24  David S. Miller  <davem@davemloft.net>
4732
4733         * po/libc.pot: Update.
4734
4735 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4736
4737         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
4738         variable page size.
4739         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
4740         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
4741         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
4742
4743 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4744
4745         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
4746
4747 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4748             Andreas Schwab  <schwab@suse.de>
4749             Roland McGrath  <roland@hack.frob.com>
4750             Joseph Myers  <joseph@codesourcery.com>
4751             Carlos O'Donell  <carlos@redhat.com>
4752
4753         [BZ #15755]
4754         * config.h.in: Define HAVE_PT_CHOWN.
4755         * config.make.in (build-pt-chown): New variable.
4756         * configure.in (--enable-pt_chown): New configure option.
4757         * configure: Regenerate.
4758         * login/Makefile: Include Makeconfig.  Build pt_chown only if
4759         build-pt-chown is enabled.
4760         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
4761         pt_chown to fix pty ownership.
4762         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
4763         CLOSE_ALL_FDS.
4764         * manual/install.texi (Configuring and compiling): Mention
4765         --enable-pt_chown. Add @findex for grantpt.
4766         * INSTALL: Regenerate.
4767
4768 2013-07-20  David S. Miller  <davem@davemloft.net>
4769
4770         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
4771         difference between 32-bit and 64-bit.
4772
4773 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
4774
4775         [BZ #15711]
4776         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
4777         Avoid system header dependency with -ffreestanding.
4778         ($(objpfx)bits/syscall%d): Likewise.
4779
4780 2013-07-13  David S. Miller  <davem@davemloft.net>
4781
4782         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
4783         underflows from atanl/atan2l due to bug 15319.
4784         (casinh_test_data): Likewise.
4785
4786 2013-07-07  David S. Miller  <davem@davemloft.net>
4787
4788         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
4789
4790 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
4791
4792         * sysdeps/i386/fpu/libm-test-ulps: Update.
4793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4794
4795 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4796
4797         * configure.in (--enable-lock-elision): Fix message text.
4798         * INSTALL: Regenerate.
4799         * configure: Regenerate.
4800
4801 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4802
4803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4804
4805 2013-07-03  Andreas Jaeger  <aj@suse.de>
4806
4807         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
4808         define.
4809         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
4810         (ptrace_peeksiginfo_args): Add.
4811         (__ptrace_peeksiginfo_flags): Add.
4812         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4813         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4814         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4815
4816 2013-07-03  Allan McRae  <allan@archlinux.org>
4817
4818         * sysdeps/i386/fpu/libm-test-ulps: Update.
4819
4820 2013-07-02  David S. Miller  <davem@davemloft.net>
4821
4822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4823
4824 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
4825
4826         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4827
4828 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
4829
4830         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4832
4833 2013-07-02  Andi Kleen <ak@linux.intel.com>
4834
4835         * config.h.in (ENABLE_LOCK_ELISION): Add.
4836         * configure.in (--enable-lock-elision): Add option.
4837         * manual/install.texi: Document --enable lock elision.
4838         * configure: Regenerate
4839         * INSTALL: Regenerate.
4840
4841 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4842
4843         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
4844         SSE4.2 strcasecmp for libc.a.
4845         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
4846
4847 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
4848
4849         [BZ #13304]
4850         * soft-fp/op-common.h (_FP_FMA): New macro.
4851         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
4852         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
4853         (_FP_MUL_MEAT_1_imm): ... here.
4854         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
4855         (_FP_MUL_MEAT_1_wide): ... here.
4856         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
4857         (_FP_MUL_MEAT_1_hard): ... here.
4858         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
4859         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
4860         (_FP_MUL_MEAT_2_wide): ... here.
4861         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
4862         (_FP_MUL_MEAT_2_wide_3mul): ... here.
4863         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
4864         (_FP_MUL_MEAT_2_gmp): ... here.
4865         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
4866         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
4867         (_FP_MUL_MEAT_4_wide): ... here.
4868         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
4869         (_FP_MUL_MEAT_4_gmp): ... here.
4870         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
4871         (_FP_WFRACBITS_DW_S): Likewise.
4872         (_FP_WFRACXBITS_DW_S): Likewise.
4873         (_FP_HIGHBIT_DW_S): Likewise.
4874         (FP_FMA_S): Likewise.
4875         (_FP_FRAC_HIGH_DW_S): Likewise.
4876         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
4877         (_FP_WFRACBITS_DW_D): Likewise.
4878         (_FP_WFRACXBITS_DW_D): Likewise.
4879         (_FP_HIGHBIT_DW_D): Likewise.
4880         (FP_FMA_D): Likewise.
4881         (_FP_FRAC_HIGH_DW_D): Likewise.
4882         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
4883         (_FP_WFRACBITS_DW_E): Likewise.
4884         (_FP_WFRACXBITS_DW_E): Likewise.
4885         (_FP_HIGHBIT_DW_E): Likewise.
4886         (FP_FMA_E): Likewise.
4887         (_FP_FRAC_HIGH_DW_E): Likewise.
4888         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
4889         (_FP_WFRACBITS_DW_Q): Likewise.
4890         (_FP_WFRACXBITS_DW_Q): Likewise.
4891         (_FP_HIGHBIT_DW_Q): Likewise.
4892         (FP_FMA_Q): Likewise.
4893         (_FP_FRAC_HIGH_DW_Q): Likewise.
4894         * soft-fp/fmasf4.c: New file.
4895         * soft-fp/fmadf4.c: Likewise.
4896         * soft-fp/fmatf4.c: Likewise.
4897
4898 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4899
4900         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
4901         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
4902         Silvermont.
4903         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
4904         macro.
4905         (index_Slow_SSE4_2): Likewise.
4906         (index_Prefer_PMINUB_for_stringop): Likewise.
4907         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
4908         bit_Slow_SSE4_2 is set.
4909         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
4910         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4911
4912 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4913
4914         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
4915         rtld_global._dl_hwcap2.
4916         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
4917         POWER8.
4918         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
4919         POWER8 feature descriptions defined in _dl_hwcap2.
4920         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
4921         string handling for POWER8 feature bits.
4922         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
4923         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
4924         _dl_powerpc_cap_flags.
4925         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
4926         * sysdeps/powerpc/rtld-global-offsets.sym
4927         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
4928         _dl_hwcap2 in the rtld_global_ro structure.
4929
4930 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4931
4932         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
4933         hardware capabilities in support of AT_HWCAP2.
4934         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
4935         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
4936         GLRO(dl_hwcap2).
4937         (_dl_show_auxv): Add support for calling _dl_procinfo to display
4938         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
4939         explicitly the unknown a_type display mechanism is used.
4940         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
4941         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
4942         struct member.
4943         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
4944         to macro prototype for AT_HWCAP2 support.
4945         * sysdeps/i386/dl-procinfo.h: Likewise.
4946         * sysdeps/s390/dl-procinfo.h: Likewise.
4947         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
4948         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
4949         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
4950         return -1 for unknown a_type display fallback.
4951         * sysdeps/sparc/dl-procinfo.h: Likewise.
4952         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4953         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
4954
4955 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
4956
4957         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
4958         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
4959
4960 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
4961
4962         [BZ #12492]
4963         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
4964         mprotect making __stack_prot writable.
4965
4966 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
4967             Joseph Myers  <joseph@codesourcery.com>
4968
4969         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
4970         as being properly aligned.
4971
4972 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
4973
4974         * dlfcn/modstatic5.c: New file.
4975         * dlfcn/tststatic5.c: New file.
4976         * dlfcn/Makefile (tests): Add tststatic5.
4977         (tests-static): Likewise.
4978         (modules-names): Add modstatic5.
4979         (tststatic5-ENV): New variable.
4980         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
4981
4982         [BZ #15022]
4983         * elf/dl-support.c (_dl_main_map): New variable.
4984         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
4985         (_dl_nns, _dl_load_adds): Set to 1.
4986         (_dl_initial_searchlist): Refer to _dl_main_map.
4987         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
4988         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
4989         call to _dl_get_origin.
4990         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
4991         around call_map.
4992         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
4993         * dlfcn/modstatic3.c: New file.
4994         * dlfcn/tststatic3.c: New file.
4995         * dlfcn/tststatic4.c: New file.
4996         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
4997         (tests-static): Likewise.
4998         (modules-names): Add modstatic3.
4999         (tststatic3-ENV, tststatic4-ENV): New variables.
5000         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
5001         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
5002
5003 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
5004
5005         * configure.in (CC): Require GCC version 4.4 or later.
5006         * configure: Regenerated.
5007         * manual/install.texi (Tools for Compilation): Update GCC version
5008         requirement.
5009         * INSTALL: Regenerated.
5010
5011 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5012
5013         [BZ #15674]
5014         * string/test-memcmp.c (check2): New.
5015         (main): Call check2.
5016
5017         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
5018
5019 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5020
5021         [BZ #15022]
5022         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
5023         over to...
5024         (dl_open_worker) [!SHARED]: ... here.
5025
5026 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5027
5028         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
5029
5030 2013-06-25  Richard Henderson  <rth@redhat.com>
5031
5032         * locale/programs/locarchive.c: Include <libc-internal.h>
5033
5034 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
5035
5036         * manual/texinfo.tex: Update to version 2013-06-21.17, with
5037         trailing whitespace removed.
5038
5039 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5040
5041         [BZ #10283]
5042         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
5043         * locale/programs/locarchive.c: Include libc-mmap.h.
5044         (prepare_address_space): Take two new outputs (the mmap base and len).
5045         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
5046         values.
5047         (create_archive): Declare new mmap base and len values for
5048         prepare_address_space, and store the result in ah.
5049         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
5050         (enlarge_archive): If ah->mmap_base is not NULL, use that and
5051         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5052         Declare new mmap base and len values for
5053         prepare_address_space, and store the result in new_ah.
5054         (open_archive): Declare new mmap base and len values for
5055         prepare_address_space, and store the result in ah.
5056         (close_archive): If ah->mmap_base is not NULL, use that and
5057         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5058         * sysdeps/generic/libc-mmap.h: New file.
5059
5060 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5061
5062         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
5063         (ALIGN_UP): Likewise.
5064         (PTR_ALIGN_DOWN): Likewise.
5065         (PTR_ALIGN_UP): Likewise.
5066
5067 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5068
5069         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
5070         entry mapped to PPC_PLATFORM_POWER8.
5071         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
5072         POWER8.
5073         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
5074         (_dl_string_platform): Add case for exporting platform position for
5075         POWER8.
5076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
5077         search path to sysdeps/powerpc/powerpc32/power8 directory.
5078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
5079         search path to sysdeps/powerpc/powerpc64/power8 directory.
5080         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
5081         power7 directories.
5082         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
5083         power7 directories.
5084
5085 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5086
5087         * INSTALL: Regenerate.
5088
5089         * nscd/connections.c (nscd_init): Fix comment.
5090
5091 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
5092
5093         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
5094
5095         [BZ #15667]
5096         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
5097         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
5098
5099 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5100
5101         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
5102         DL_DST_REQ_STATIC.
5103         (DL_DST_REQ_STATIC): Remove macro.
5104
5105 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
5106
5107         [BZ #7006]
5108         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
5109         with a shift of 0 bits.
5110
5111 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5112
5113         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
5114         $(tststatic-ENV).
5115
5116 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5117
5118         [BZ #15655]
5119         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
5120
5121 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5122
5123         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
5124         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
5125         accepts -fno-tree-loop-distribute-patterns.
5126         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
5127         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
5128         recursive call.
5129         * string/memset.c (memset): Likewise.
5130         * string/test-memmove.c (simple_memmove): Disable loop transformation
5131         to library calls.
5132         * string/test-memset.c (simple_memset): Likewise.
5133         * benchtests/bench-memmove.c (simple_memmove): Likewise.
5134         * benchtests/bench-memset.c (simple_memset): Likewise.
5135         * configure: Regenerated.
5136
5137 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
5138
5139         * math/test-misc.c (main): Ignore fesetround failure when failures
5140         of subsequent rounding tests would be ignored.
5141
5142         [BZ #15654]
5143         * math/fedisblxcpt.c (fedisableexcept): Return 0.
5144         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
5145         * math/fegetenv.c (__fegetenv): Return 0.
5146         * math/fegetexcept.c (fegetexcept): Return 0.
5147         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
5148         FE_TONEAREST.
5149         * math/feholdexcpt.c (feholdexcept): Return 0.
5150         * math/fesetenv.c (__fesetenv): Return 0.
5151         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
5152         argument FE_TONEAREST.
5153         * math/feupdateenv.c (__feupdateenv): Return 0.
5154         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
5155
5156 2013-06-18  Roland McGrath  <roland@hack.frob.com>
5157
5158         * elf/rtld-Rules (rtld-compile-command.S): New variable.
5159         (rtld-compile-command.s, rtld-compile-command.c): New variables.
5160         ($(objpfx)rtld-%.os rules): Use them.
5161
5162 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5163
5164         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
5165         fields.
5166
5167 2013-06-17  Roland McGrath  <roland@hack.frob.com>
5168
5169         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
5170         length of target pattern, then descending length of dependency pattern.
5171         * configure.in (AWK): Require gawk 3.1.2 or newer.
5172         * manual/install.texi (Tools for Compilation): Say that we do.
5173         * configure: Regenerated.
5174
5175         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
5176         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
5177         * scripts/sysd-rules.awk: ... this new script.
5178         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
5179         than a glob-style pattern.
5180
5181 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
5182
5183         * math/test-misc.c (main): Do not treat incorrectly rounded
5184         conversions as failure unless ROUNDING_TESTS passes.
5185
5186 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
5187
5188         [BZ #15631]
5189         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
5190         restore exception state around main square root computation, then
5191         check for inexactness explicitly.
5192
5193         * math/libm-test.inc (fma_test_data): Add another test.
5194
5195 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5196
5197         * manual/threads.texi (Non-POSIX Extensions): New document
5198         node.  Document pthread_getattr_default_np and
5199         pthread_setattr_default_np.
5200
5201         * Versions.def (libpthread): Add GLIBC_2.18.
5202         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5204         Likewise.
5205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5206         Likewise.
5207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5208         Likewise.
5209         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5210         Likewise.
5211         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
5212         Likewise.
5213         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
5214         Likewise.
5215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
5216         Likewise.
5217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5218         Likewise.
5219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5220         Likewise.
5221
5222 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5223
5224         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5225         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
5226
5227 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5228             H.J. Lu  <hjl.tools@gmail.com>
5229
5230         [BZ #15627]
5231         * sysdeps/x86_64/rtld-memset.c: Remove file.
5232         * sysdeps/x86_64/rtld-memset.S: New file.
5233
5234 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
5237         (test_in_one_mode): Take arguments for whether the rounding mode
5238         is supported for each floating-point type.
5239         (do_test): Pass new arguments to test_in_one_mode using
5240         ROUNDING_TESTS.
5241
5242 2013-06-13  Roland McGrath  <roland@hack.frob.com>
5243
5244         * posix/tst-waitid.c (do_test): Distinguish different instances of
5245         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
5246         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
5247         before entering the kernel for waitpid.
5248
5249 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5250
5251         * NEWS: Fix note on clock function precision.  Text by Roland
5252         McGrath.
5253
5254 2013-06-13  Roland McGrath  <roland@hack.frob.com>
5255
5256         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
5257         it into place only when and if the sanity check passes.
5258
5259 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
5260
5261         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
5262         output for whether conversion result is exact.  Take argument
5263         indicating whether type is IBM long double.
5264         (round_for_all): Change need_exact field to ibm_ld.
5265         * stdlib/tst-strtod-round.c (struct exactness): New type.
5266         (struct test): Change bool ld_ok field to struct exactness exact.
5267         (TEST): Update all definitions for change to field.
5268         (tests): Regenerate array contents.
5269         (test_in_one_mode): Take pointer to new field instead of old ld_ok
5270         field value.  Check for IBM long double here.
5271         (do_test): Update calls to test_in_one_mode.
5272
5273 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5274
5275         [BZ #12515]
5276         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
5277         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
5278
5279 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5280
5281         [BZ #15605]
5282         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
5283         generated by the compiler on loop optimizations.
5284         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
5285         general definitions.
5286
5287 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
5288
5289         * math/bug-nextafter.c: Include <math-tests.h>.
5290         (main): Only test for exceptions if EXCEPTION_TESTS is true for
5291         the relevant type.
5292         * math/bug-nexttoward.c: Include <math-tests.h>.
5293         (main): Only test for exceptions if EXCEPTION_TESTS is true for
5294         the relevant type.
5295         * math/test-misc.c: Include <math-tests.h>.
5296         (main): Only test for exceptions if EXCEPTION_TESTS is true for
5297         the relevant type.
5298
5299 2013-06-12  Andreas Jaeger  <aj@suse.de>
5300
5301         * po/ia.po: Update Interlingua translation from translation
5302         project.
5303
5304 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5305
5306         * include/fenv.h: Include stdbool.h.
5307         (struct rm_ctx): New structure.
5308         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
5309         Define macro.
5310         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
5311         (SET_RESTORE_ROUNDF): Likewise.
5312         (SET_RESTORE_ROUNDL): Likewise.
5313         (SET_RESTORE_ROUND_NOEX): Likewise.
5314         (SET_RESTORE_ROUND_NOEXF): Likewise.
5315         (SET_RESTORE_ROUND_NOEXL): Likewise.
5316         (SET_RESTORE_ROUND_53BIT): Likewise.
5317         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
5318         (libc_feresetround_noexf_ctx): Likewise.
5319         (libc_feresetround_noexl_ctx): Likewise.
5320         (libc_feholdsetround_53bit_ctx): Likewise.
5321         (libc_feresetround_53bit_ctx): Likewise.
5322         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
5323         (libc_feholdexcept_setround_sse_ctx): New function.
5324         (libc_fesetenv_sse_ctx): Likewise.
5325         (libc_feupdateenv_sse_ctx): Likewise.
5326         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
5327         (libc_feholdexcept_setround_387_ctx): Likewise.
5328         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
5329         (libc_feholdsetround_387_prec_ctx): Likewise.
5330         (libc_feholdsetround_387_ctx): Likewise.
5331         (libc_feholdsetround_387_53bit_ctx): Likewise.
5332         (libc_feholdsetround_sse_ctx): Likewise.
5333         (libc_feresetround_sse_ctx): Likewise.
5334         (libc_feresetround_387_ctx): Likewise.
5335         (libc_feupdateenv_387_ctx): Likewise.
5336         (libc_feholdexcept_setroundf_ctx): Define macro.
5337         (libc_fesetenvf_ctx): Likewise.
5338         (libc_feupdateenvf_ctx): Likewise.
5339         (libc_feholdsetroundf_ctx): Likewise.
5340         (libc_feresetroundf_ctx): Likewise.
5341         (libc_feholdexcept_setround_ctx): Likewise.
5342         (libc_fesetenv_ctx): Likewise.
5343         (libc_feupdateenv_ctx): Likewise.
5344         (libc_feholdsetround_ctx): Likewise.
5345         (libc_feresetround_ctx): Likewise.
5346         (libc_feholdexcept_setroundl_ctx): Likewise.
5347         (libc_feupdateenvl_ctx): Likewise.
5348         (libc_feholdsetroundl_ctx): Likewise.
5349         (libc_feresetroundl_ctx): Likewise.
5350         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
5351         (libc_feresetround_53bit_ctx): Likewise.
5352
5353 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5354
5355         * locale/iso-639.def: Convert to UTF-8.
5356
5357 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
5358
5359         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
5360         (EXCEPTION_TESTS_double): Likewise.
5361         (EXCEPTION_TESTS_long_double): Likewise.
5362         (EXCEPTION_TESTS): Likewise.
5363         * math/libm-test.inc (test_exceptions): Only test exceptions if
5364         EXCEPTION_TESTS (FLOAT).
5365
5366 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5367
5368         * benchtests/Makefile (string-bench): Add strcpy_chk and
5369         stpcpy_chk.
5370         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
5371         * benchtests/bench-stpcpy_chk.c: New file.
5372         * benchtests/bench-strcpy_chk-ifunc.c: New file.
5373         * benchtests/bench-strcpy_chk.c: New file.
5374         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
5375         code.
5376         (do_test): Likewise.
5377
5378 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5379
5380         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
5381         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
5382         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
5383         with tabs where appropriate.
5384         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
5385         dl-procinfo.h.
5386         [PPC_PLATFORM_PPC440]: Likewise.
5387         [PPC_PLATFORM_PPC464]: Likewise.
5388         [PPC_PLATFORM_PPC476]: Likewise.
5389         (_dl_string_platform): Add support for detecting ppc405, ppc440,
5390         ppc464, and ppc476 platform strings merging from ports/
5391         dl-procinfo.h.
5392
5393 2013-06-11  Andreas Schwab  <schwab@suse.de>
5394
5395         [BZ #14991]
5396         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
5397         (from_ucs4_idx): Regenerate.
5398         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
5399         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
5400         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
5401         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
5402         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
5403         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
5404         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
5405         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
5406         from FROM_LOOP and TO_LOOP specific macros.
5407         (BODY): Handle combining characters.
5408         * iconvdata/BIG5HKSCS.irreversible: Update.
5409         * iconvdata/BIG5HKSCS.precomposed: New file.
5410         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
5411         characters.
5412         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
5413
5414 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5415
5416         * include/sys/time.h: Fix indentation and add copyright header.
5417
5418         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
5419         (do_test): Likewise.
5420         * string/test-memchr.c (do_one_test): Likewise.
5421         (do_test): Likewise.
5422         * string/test-memcmp.c (do_one_test): Likewise.
5423         (do_test): Likewise.
5424         * string/test-memcpy.c (do_one_test): Likewise.
5425         (do_test): Likewise.
5426         * string/test-memmem.c (do_one_test): Likewise.
5427         (do_test): Likewise.
5428         (do_random_tests): Likewise.
5429         * string/test-memmove.c (do_one_test): Likewise.
5430         (do_test): Likewise.
5431         * string/test-memset.c (do_one_test): Likewise.
5432         (do_test): Likewise.
5433         * string/test-rawmemchr.c (do_one_test): Likewise.
5434         (do_test): Likewise.
5435         * string/test-strcasecmp.c (do_one_test): Likewise.
5436         (do_test): Likewise.
5437         * string/test-strcasestr.c (do_one_test): Likewise.
5438         (do_test): Likewise.
5439         * string/test-strcat.c (do_one_test): Likewise.
5440         (do_test): Likewise.
5441         * string/test-strchr.c (do_one_test): Likewise.
5442         (do_test): Likewise.
5443         * string/test-strcmp.c (do_one_test): Likewise.
5444         (do_test): Likewise.
5445         * string/test-strcpy.c (do_one_test): Likewise.
5446         (do_test): Likewise.
5447         * string/test-string.h: Likewise.
5448         (test_init): Likewise.
5449         * string/test-strlen.c (do_one_test): Likewise.
5450         (do_test): Likewise.
5451         * string/test-strncasecmp.c (do_one_test): Likewise.
5452         (do_test): Likewise.
5453         * string/test-strncat.c (do_one_test): Likewise.
5454         (do_test): Likewise.
5455         * string/test-strncmp.c (do_one_test): Likewise.
5456         (do_test_limit): Likewise.
5457         (do_test): Likewise.
5458         * string/test-strncpy.c (do_one_test): Likewise.
5459         (do_test): Likewise.
5460         * string/test-strnlen.c (do_one_test): Likewise.
5461         (do_test): Likewise.
5462         * string/test-strpbrk.c (do_one_test): Likewise.
5463         (do_test): Likewise.
5464         * string/test-strrchr.c (do_one_test): Likewise.
5465         (do_test): Likewise.
5466         * string/test-strspn.c (do_one_test): Likewise.
5467         (do_test): Likewise.
5468         * string/test-strstr.c (do_one_test): Likewise.
5469         (do_test): Likewise.
5470
5471         * benchtests/Makefile (string-bench): Add string benchmarks.
5472         * benchtests/bench-bcopy-ifunc.c: New file.
5473         * benchtests/bench-bcopy.c: New file.
5474         * benchtests/bench-bzero-ifunc.c: New file.
5475         * benchtests/bench-bzero.c: New file.
5476         * benchtests/bench-memccpy-ifunc.c: New file.
5477         * benchtests/bench-memccpy.c: New file.
5478         * benchtests/bench-memchr-ifunc.c: New file.
5479         * benchtests/bench-memchr.c: New file.
5480         * benchtests/bench-memcmp-ifunc.c: New file.
5481         * benchtests/bench-memcmp.c: New file.
5482         * benchtests/bench-memmem-ifunc.c: New file.
5483         * benchtests/bench-memmem.c: New file.
5484         * benchtests/bench-memmove-ifunc.c: New file.
5485         * benchtests/bench-memmove.c: New file.
5486         * benchtests/bench-mempcpy-ifunc.c: New file.
5487         * benchtests/bench-mempcpy.c: New file.
5488         * benchtests/bench-memset-ifunc.c: New file.
5489         * benchtests/bench-memset.c: New file.
5490         * benchtests/bench-rawmemchr-ifunc.c: New file.
5491         * benchtests/bench-rawmemchr.c: New file.
5492         * benchtests/bench-stpcpy-ifunc.c: New file.
5493         * benchtests/bench-stpcpy.c: New file.
5494         * benchtests/bench-stpncpy-ifunc.c: New file.
5495         * benchtests/bench-stpncpy.c: New file.
5496         * benchtests/bench-strcasecmp-ifunc.c: New file.
5497         * benchtests/bench-strcasecmp.c: New file.
5498         * benchtests/bench-strcasestr-ifunc.c: New file.
5499         * benchtests/bench-strcasestr.c: New file.
5500         * benchtests/bench-strcat-ifunc.c: New file.
5501         * benchtests/bench-strcat.c: New file.
5502         * benchtests/bench-strchr-ifunc.c: New file.
5503         * benchtests/bench-strchr.c: New file.
5504         * benchtests/bench-strchrnul-ifunc.c: New file.
5505         * benchtests/bench-strchrnul.c: New file.
5506         * benchtests/bench-strcmp-ifunc.c: New file.
5507         * benchtests/bench-strcmp.c: New file.
5508         * benchtests/bench-strcpy-ifunc.c: New file.
5509         * benchtests/bench-strcpy.c: New file.
5510         * benchtests/bench-strcspn-ifunc.c: New file.
5511         * benchtests/bench-strcspn.c: New file.
5512         * benchtests/bench-strlen-ifunc.c: New file.
5513         * benchtests/bench-strlen.c: New file.
5514         * benchtests/bench-strncasecmp-ifunc.c: New file.
5515         * benchtests/bench-strncasecmp.c: New file.
5516         * benchtests/bench-strncat-ifunc.c: New file.
5517         * benchtests/bench-strncat.c: New file.
5518         * benchtests/bench-strncmp-ifunc.c: New file.
5519         * benchtests/bench-strncmp.c: New file.
5520         * benchtests/bench-strncpy-ifunc.c: New file.
5521         * benchtests/bench-strncpy.c: New file.
5522         * benchtests/bench-strnlen-ifunc.c: New file.
5523         * benchtests/bench-strnlen.c: New file.
5524         * benchtests/bench-strpbrk-ifunc.c: New file.
5525         * benchtests/bench-strpbrk.c: New file.
5526         * benchtests/bench-strrchr-ifunc.c: New file.
5527         * benchtests/bench-strrchr.c: New file.
5528         * benchtests/bench-strspn-ifunc.c: New file.
5529         * benchtests/bench-strspn.c: New file.
5530         * benchtests/bench-strstr-ifunc.c: New file.
5531         * benchtests/bench-strstr.c: New file.
5532
5533         * benchtests/Makefile: Disable parallel execution of targets.
5534         (string-bench): Add memcpy.
5535         (benchset): New variable to store a list of benchmark sets.
5536         (bench-func): Renamed from bench.
5537         (bench-set): New target.
5538         (bench): Depend on bench-func and bench-set.
5539         * benchtests/README: Add section on benchmark sets.
5540         * benchtests/bench-memcpy-ifunc.c: New file.
5541         * benchtests/bench-memcpy.c: New file.
5542         * benchtests/bench-string.h: New file.
5543
5544 2013-06-11  Andreas Schwab  <schwab@suse.de>
5545
5546         [BZ #15577]
5547         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
5548         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
5549         values in the triple.
5550         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
5551         terminator in the group key.
5552
5553 2013-06-11  Andreas Jaeger  <aj@suse.de>
5554
5555         * po/zh_TW.po: Update Chinese (traditional) translation from
5556         translation project.
5557
5558 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5559
5560         * include/time.h (__clock_gettime): Add libc_hidden_proto.
5561         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
5562         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
5563         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
5564         (clock_getcpuclockid): Likewise.
5565         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
5566         Add weak_alias and libc_hidden_def.
5567         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
5568         * rt/clock_gettime.c (clock_gettime): Rename to
5569         __clock_gettime.  Add weak_alias and libc_hidden_def.
5570         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
5571         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
5572         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
5573         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
5574         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
5575         Likewise.
5576         * rt/clock_settime.c (clock_settime): Rename to
5577         __clock_settime.  Add weak_alias and libc_hidden_def.
5578         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
5579
5580 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
5581
5582         * mach/err_boot.sub: Remove trailing whitespace.
5583         * mach/err_ipc.sub: Likewise.
5584         * mach/err_mach.sub: Likewise.
5585
5586         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
5587         (ROUNDING_TESTS_double): Likewise.
5588         (ROUNDING_TESTS_long_double): Likewise.
5589         (ROUNDING_TESTS): Likewise.
5590         * math/libm-test.inc: Include <math-tests.h>.
5591         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
5592         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5593         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5594         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5595
5596 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5597
5598         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
5599         of assigning.
5600
5601 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
5602
5603         * sysdeps/gnu/errlist.awk: Do not generate space at end of
5604         otherwise empty TRANS lines.
5605         * sysdeps/gnu/errlist.c: Regenerated.
5606
5607         * catgets/gencat.c (error_print): Use (void) in function
5608         definition.
5609         * crypt/crypt_util.c (__init_des): Likewise.
5610         * crypt/speeds.c (Stop): Likewise.
5611         (main): Likewise.
5612         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
5613         * inet/ruserpass.c (token): Likewise.
5614         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
5615         * intl/localealias.c (extend_alias_table): Likewise.
5616         * intl/plural-exp.c (init_germanic_plural): Likewise.
5617         * libio/fcloseall.c (__fcloseall): Likewise.
5618         * libio/genops.c (_IO_flush_all): Likewise.
5619         (_IO_flush_all_linebuffered): Likewise.
5620         (_IO_cleanup): Likewise.
5621         (_IO_iter_begin): Likewise.
5622         (_IO_iter_end): Likewise.
5623         (_IO_list_lock): Likewise.
5624         (_IO_list_unlock): Likewise.
5625         (_IO_list_resetlock): Likewise.
5626         * libio/getchar.c (getchar): Likewise.
5627         * libio/getchar_u.c (getchar_unlocked): Likewise.
5628         * libio/getwchar.c (getwchar): Likewise.
5629         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
5630         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
5631         * login/getpt.c (__getpt): Likewise.
5632         * login/tst-utmp.c (main): Likewise.
5633         * malloc/hooks.c (__malloc_check_init): Likewise.
5634         * malloc/malloc.c (__malloc_stats): Likewise.
5635         * malloc/mtrace.c (tr_break): Likewise.
5636         (mtrace): Likewise.
5637         (muntrace): Likewise.
5638         * misc/fstab.c (endfsent): Likewise.
5639         * misc/getclktck.c (__getclktck): Likewise.
5640         * misc/getdtsz.c (__getdtablesize): Likewise.
5641         * misc/gethostid.c (gethostid): Likewise.
5642         * misc/getpagesize.c (__getpagesize): Likewise.
5643         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
5644         (__get_nprocs): Likewise.
5645         (__get_phys_pages): Likewise.
5646         (__get_avphys_pages): Likewise.
5647         * misc/getttyent.c (getttyent): Likewise.
5648         (setttyent): Likewise.
5649         (endttyent): Likewise.
5650         * misc/getusershell.c (getusershell): Likewise.
5651         (endusershell): Likewise.
5652         (setusershell): Likewise.
5653         (initshells): Likewise.
5654         * misc/hsearch.c (__hdestroy): Likewise.
5655         * misc/sync.c (sync): Likewise.
5656         * misc/syslog.c (closelog_internal): Likewise.
5657         (closelog): Likewise.
5658         * misc/ttyslot.c (ttyslot): Likewise.
5659         * misc/vhangup.c (vhangup): Likewise.
5660         * posix/fork.c (__fork): Likewise.
5661         * posix/getegid.c (__getegid): Likewise.
5662         * posix/geteuid.c (__geteuid): Likewise.
5663         * posix/getgid.c (__getgid): Likewise.
5664         * posix/getpid.c (__getpid): Likewise.
5665         * posix/getppid.c (__getppid): Likewise.
5666         * posix/getuid.c (__getuid): Likewise.
5667         * posix/pause.c (pause): Likewise.
5668         * posix/setpgrp.c (setpgrp): Likewise.
5669         * posix/setsid.c (__setsid): Likewise.
5670         * posix/test-vfork.c (noop): Likewise.
5671         * resolv/gethnamaddr.c (_endhtent): Likewise.
5672         (_gethtent): Likewise.
5673         (ht_endhostent): Likewise.
5674         (gethostent): Likewise.
5675         (dns_service): Likewise.
5676         * stdlib/drand48.c (drand48): Likewise.
5677         * stdlib/lrand48.c (lrand48): Likewise.
5678         * stdlib/mrand48.c (mrand48): Likewise.
5679         * stdlib/rand.c (rand): Likewise.
5680         * stdlib/random.c (__random): Likewise.
5681         * stdlib/setenv.c (clearenv): Likewise.
5682         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
5683         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
5684         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
5685         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
5686         (__get_nprocs): Likewise.
5687         (__get_phys_pages): Likewise.
5688         (__get_avphys_pages): Likewise.
5689         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
5690         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
5691         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
5692         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
5693         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
5694         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
5695         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
5696         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
5697         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
5698         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
5699         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
5700         * sysdeps/mach/hurd/sync.c (sync): Likewise.
5701         * sysdeps/posix/clock.c (clock): Likewise.
5702         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
5703         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
5704         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
5705         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
5706         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
5707         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
5708         (__get_nprocs_conf): Likewise.
5709         (__get_phys_pages): Likewise.
5710         (__get_avphys_pages): Likewise.
5711         * time/clock.c (clock): Likewise.
5712         * time/tzset.c (__tzname_max): Likewise.
5713
5714 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
5717         (__bswap_32): Do not use "register".
5718         * crypt/crypt.c (_ufc_doit_r): Likewise.
5719         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
5720         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
5721         * gmon/gmon.c (__monstartup): Likewise.
5722         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
5723         * hurd/hurdmalloc.c (more_memory): Likewise.
5724         (malloc): Likewise.
5725         (free): Likewise.
5726         (realloc): Likewise.
5727         (malloc_fork_prepare): Likewise.
5728         (malloc_fork_parent): Likewise.
5729         (malloc_fork_child): Likewise.
5730         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
5731         (_svcauth_des): Likewise.
5732         * inet/inet_lnaof.c (inet_lnaof): Likewise.
5733         * inet/inet_net.c (inet_network): Likewise.
5734         * inet/inet_netof.c (inet_netof): Likewise.
5735         * inet/rcmd.c (__validuser2_sa): Likewise.
5736         * io/fts.c (fts_open): Likewise.
5737         (fts_load): Likewise.
5738         (fts_close): Likewise.
5739         (fts_read): Likewise.
5740         (fts_children): Likewise.
5741         (fts_build): Likewise.
5742         (fts_stat): Likewise.
5743         (fts_sort): Likewise.
5744         (fts_alloc): Likewise.
5745         (fts_lfree): Likewise.
5746         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
5747         (_IO_file_xsgetn): Likewise.
5748         (_IO_file_xsgetn_mmap): Likewise.
5749         * libio/iofopncook.c (_IO_cookie_read): Likewise.
5750         (_IO_cookie_write): Likewise.
5751         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
5752         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
5753         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
5754         * malloc/obstack.c (_obstack_begin): Likewise.
5755         (_obstack_begin_1): Likewise.
5756         (_obstack_newchunk): Likewise.
5757         (_obstack_allocated_p): Likewise.
5758         (obstack_free): Likewise.
5759         (_obstack_memory_used): Likewise.
5760         * misc/getttyent.c (getttynam): Likewise.
5761         (getttyent): Likewise.
5762         (skip): Likewise.
5763         (value): Likewise.
5764         * misc/getusershell.c (initshells): Likewise.
5765         * misc/syslog.c (__vsyslog_chk): Likewise.
5766         * misc/ttyslot.c (ttyslot): Likewise.
5767         * nis/nis_hash.c (__nis_hash): Likewise.
5768         * posix/fnmatch_loop.c (FCT): Likewise.
5769         * posix/getconf.c (print_all): Likewise.
5770         (main): Likewise.
5771         * posix/getopt.c (exchange): Likewise.
5772         * posix/glob.c (globfree): Likewise.
5773         (prefix_array): Likewise.
5774         (__glob_pattern_type): Likewise.
5775         * resolv/arpa/nameser.h (NS_GET16): Likewise.
5776         (NS_GET32): Likewise.
5777         (NS_PUT16): Likewise.
5778         (NS_PUT32): Likewise.
5779         * resolv/gethnamaddr.c (getanswer): Likewise.
5780         (gethostbyname2): Likewise.
5781         (gethostbyaddr): Likewise.
5782         (_gethtent): Likewise.
5783         (_gethtbyname2): Likewise.
5784         (_gethtbyaddr): Likewise.
5785         * resolv/ns_print.c (dst_s_get_int16): Likewise.
5786         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
5787         * resolv/res_init.c (__res_vinit): Likewise.
5788         (net_mask): Likewise.
5789         * resolv/res_mkquery.c (outchar): Likewise.
5790         (PRINT): Likewise.
5791         * stdio-common/printf_fp.c (outchar): Likewise.
5792         (PRINT): Likewise.
5793         * stdio-common/printf_fphex.c (outchar): Likewise.
5794         (PRINT): Likewise.
5795         * stdio-common/printf_size.c (outchar): Likewise.
5796         (PRINT): Likewise.
5797         * stdio-common/test_rdwr.c (main): Likewise.
5798         * stdio-common/tfformat.c (matches): Likewise.
5799         * stdio-common/vfprintf.c (outchar): Likewise.
5800         (printf_unknown): Likewise.
5801         (buffered_vfprintf): Likewise.
5802         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
5803         * stdio-common/xbug.c (AppendToBuffer): Likewise.
5804         (ReadFile): Likewise.
5805         * stdlib/qsort.c (SWAP): Likewise.
5806         (_quicksort): Likewise.
5807         * stdlib/setenv.c (__add_to_environ): Likewise.
5808         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
5809         * stdlib/strtol_l.c (__strtol_l): Likewise.
5810         * stdlib/tst-strtod.c (main): Likewise.
5811         * stdlib/tst-strtol.c (main): Likewise.
5812         * stdlib/tst-strtoll.c (main): Likewise.
5813         * string/bits/string2.h (__strcmp_cc): Likewise.
5814         (__strcmp_cg): Likewise.
5815         (__strcspn_c1): Likewise.
5816         (__strcspn_c2): Likewise.
5817         (__strcspn_c3): Likewise.
5818         (__strspn_c1): Likewise.
5819         (__strspn_c2): Likewise.
5820         (__strspn_c3): Likewise.
5821         (__strsep_1c): Likewise.
5822         (__strsep_2c): Likewise.
5823         (__strsep_3c): Likewise.
5824         * string/memccpy.c (__memccpy): Likewise.
5825         * string/stpcpy.c (__stpcpy): Likewise.
5826         * string/strcmp.c (strcmp): Likewise.
5827         * string/strrchr.c (strrchr): Likewise.
5828         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
5829         Likewise.
5830         * sysdeps/mach/hurd/getcwd.c
5831         (_hurd_canonicalize_directory_name_internal): Likewise.
5832         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
5833         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
5834         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
5835         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
5836         Likewise, in both definitions.
5837         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
5838         definitions.
5839         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
5840         64] (__bswap_64): Likewise.
5841         * time/test_time.c (main): Likewise.
5842         * time/tzfile.c (__tzfile_read): Likewise.
5843         (__tzfile_compute): Likewise.
5844         * time/tzset.c (__tzset_parse_tz): Likewise.
5845         (tzset_internal): Likewise.
5846         (compute_change): Likewise.
5847         * wcsmbs/wcscat.c (__wcscat): Likewise.
5848         * wcsmbs/wcschr.c (wcschr): Likewise.
5849         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
5850         * wcsmbs/wcscspn.c (wcscspn): Likewise.
5851         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
5852         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
5853         * wcsmbs/wcsspn.c (wcsspn): Likewise.
5854         * wcsmbs/wcsstr.c (wcsstr): Likewise.
5855         * wcsmbs/wmemchr.c (wmemchr): Likewise.
5856         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5857         * wcsmbs/wmemset.c (wmemset): Likewise.
5858
5859 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
5860
5861         * scripts/config.guess: Update to version 2013-05-16.
5862         * scripts/config.sub: Update to version 2013-04-24.
5863         * scripts/install-sh: Update to version 2011-11-20.07.
5864         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
5865         * scripts/move-if-change: Update to version 2012-01-06 07:23.
5866
5867 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
5868
5869         * debug/fgetws_u_chk.c: Fix leading whitespaces.
5870         * elf/sln.c: Likewise.
5871         * hurd/hurd/ioctl.h: Likewise.
5872         * hurd/hurdmalloc.c: Likewise.
5873         * hurd/xattr.c: Likewise.
5874         * include/shlib-compat.h: Likewise.
5875         * inet/ruserpass.c: Likewise.
5876         * libio/iofgets_u.c: Likewise.
5877         * libio/iofgetws_u.c: Likewise.
5878         * locale/programs/ld-identification.c: Likewise.
5879         * locale/programs/ld-time.c: Likewise.
5880         * mach/msg-destroy.c: Likewise.
5881         * nss/nss_files/files-netgrp.c: Likewise.
5882         * resolv/res_data.c: Likewise.
5883         * soft-fp/op-1.h: Likewise.
5884         * soft-fp/op-2.h: Likewise.
5885         * soft-fp/op-4.h: Likewise.
5886         * soft-fp/op-common.h: Likewise.
5887         * stdio-common/printf_fphex.c: Likewise.
5888         * stdlib/strtod_l.c: Likewise.
5889         * sunrpc/rpc/clnt.h: Likewise.
5890         * sysdeps/generic/framestate.c: Likewise.
5891         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5892         * sysdeps/i386/bsd-setjmp.S: Likewise.
5893         * sysdeps/i386/__longjmp.S: Likewise.
5894         * sysdeps/i386/setjmp.S: Likewise.
5895         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5896         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5897         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5898         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5899         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5900         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5901         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5902         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5903         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5904         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5905         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5906         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5907         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5908         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5909         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5910         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5911         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5912         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
5913         * sysdeps/ieee754/support.c: Likewise.
5914         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5915         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
5916         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
5917         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
5918         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
5919         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
5920         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
5921         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
5922         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
5923         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
5924         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
5925         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
5926         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
5927         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
5928         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
5929         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
5930         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
5931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
5932
5933 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
5934
5935         * posix/transbug.c: Remove executable mode.
5936
5937 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
5938
5939         * crypt/speeds.c: Remove trailing whitespace.
5940         * dlfcn/default.c: Likewise.
5941         * elf/ifuncdep2.c: Likewise.
5942         * elf/ifuncmain1.c: Likewise.
5943         * elf/ifuncmain1vis.c: Likewise.
5944         * elf/testobj.h: Likewise.
5945         * elf/tst-stackguard1.c: Likewise.
5946         * gmon/sys/gmon.h: Likewise.
5947         * hurd/hurdmsg.c: Likewise.
5948         * hurd/new-fd.c: Likewise.
5949         * hurd/ports-get.c: Likewise.
5950         * iconvdata/ibm1008_420.c: Likewise.
5951         * inet/tst-getni1.c: Likewise.
5952         * inet/tst-getni2.c: Likewise.
5953         * libio/ioungetc.c: Likewise.
5954         * libio/wfiledoalloc.c: Likewise.
5955         * manual/libm-err-tab.pl: Likewise.
5956         * math/w_dremf.c: Likewise.
5957         * misc/ftruncate.c: Likewise.
5958         * posix/bug-glob2.c: Likewise.
5959         * posix/tst-pcre.c: Likewise.
5960         * posix/wait4.c: Likewise.
5961         * resolv/README: Likewise.
5962         * resolv/res_debug.h: Likewise.
5963         * resolv/tst-inet_ntop.c: Likewise.
5964         * setjmp/bug269-setjmp.c: Likewise.
5965         * soft-fp/extended.h: Likewise.
5966         * soft-fp/op-1.h: Likewise.
5967         * soft-fp/op-2.h: Likewise.
5968         * soft-fp/op-4.h: Likewise.
5969         * soft-fp/op-8.h: Likewise.
5970         * soft-fp/testit.c: Likewise.
5971         * stdio-common/bug16.c: Likewise.
5972         * stdlib/random.c: Likewise.
5973         * sunrpc/rpcsvc/rquota.x: Likewise.
5974         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
5975         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5976         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5977         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5978         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5979         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5980         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5981         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5982         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5983         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5984         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5985         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5986         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5987         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5988         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5989         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5990         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5991         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5992         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5993         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5994         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5995         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5996         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
5997         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5998         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5999         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6000         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
6001         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6002         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6003         * sysdeps/ieee754/s_lib_version.c: Likewise.
6004         * sysdeps/mach/hurd/check_fds.c: Likewise.
6005         * sysdeps/mach/hurd/getsockname.c: Likewise.
6006         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
6007         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6008         * sysdeps/powerpc/bits/link.h: Likewise.
6009         * sysdeps/powerpc/dl-procinfo.c: Likewise.
6010         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
6011         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
6012         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
6013         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6014         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6015         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
6016         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6017         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
6018         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6019         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
6020         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
6021         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
6022         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6023         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6024         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6025         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
6026         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
6027         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6028         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6029         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6030         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
6031         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6032         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
6033         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6034         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
6035         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
6036         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6037         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6038         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
6039         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
6040         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
6041         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6042         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6043         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
6044         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6045         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
6046         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
6047         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
6048         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
6049         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
6050         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
6051         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
6052         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
6053         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
6054         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
6055         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
6056         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
6057         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
6058         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
6059         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6060         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6061         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6062         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6063         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
6064         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
6065         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
6066         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6067         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
6068         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
6069         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
6070         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
6071         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
6072         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6073         * sysdeps/powerpc/sysdep.h: Likewise.
6074         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6075         * sysdeps/s390/s390-64/sub_n.S: Likewise.
6076         * sysdeps/sh/dl-trampoline.S: Likewise.
6077         * sysdeps/sh/memset.S: Likewise.
6078         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
6079         * sysdeps/sh/strlen.S: Likewise.
6080         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
6081         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
6082         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6083         * sysdeps/sparc/sparc32/rem.S: Likewise.
6084         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
6085         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
6086         * sysdeps/sparc/sparc32/strchr.S: Likewise.
6087         * sysdeps/sparc/sparc32/udiv.S: Likewise.
6088         * sysdeps/sparc/sparc32/urem.S: Likewise.
6089         * sysdeps/sparc/sparc64/add_n.S: Likewise.
6090         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6091         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
6092         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
6093         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
6094         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6095         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6096         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6097         * sysdeps/unix/bsd/times.c: Likewise.
6098         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
6099         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
6100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
6101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
6103         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6104         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
6105         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
6106         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
6107         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
6108         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
6109         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
6110         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
6111         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6112         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
6113         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6114         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6115         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6116         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
6117         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
6118         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
6119         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
6120         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6121         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
6122         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
6123         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6124         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
6125         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6126         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
6127         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
6128         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
6129         * sysdeps/x86_64/strcspn.S: Likewise.
6130
6131 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6132
6133         * locale/C-translit.h: Revert #include <stdint.h> because this is a
6134         generated file.  Regenerate properly from gen-translit.pl.
6135         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
6136         locale/C-translit.h.
6137
6138 2013-06-05  Andreas Schwab  <schwab@suse.de>
6139
6140         [BZ #15100]
6141         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
6142         week as 6 instead of -1.
6143         * time/tst-strptime.c (day_tests): Add test case.
6144
6145 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6146
6147         * sysdeps/generic/math_private.h
6148         (libc_feholdexcept_setround_53bit): Replace with
6149         libc_feholdsetround_53bit.
6150         (libc_feupdateenv_53bit): Replace with
6151         libc_feresetround_53bit.
6152         (SET_RESTORE_ROUND_53BIT): Adjust.
6153
6154 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6155
6156         * string/test-strchrnul.c: Add copyright header.
6157
6158         * posix/tst-getaddrinfo4.c: Increase test timeout.
6159
6160 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
6161
6162         [BZ #15536]
6163         * math/libm-test.inc (MAX_EXP): Remove
6164         (MIN_EXP): Define.
6165         (ulp): Use MIN_EXP - MANT_DIG.
6166         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
6167
6168 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
6169
6170         * po/be.po: Revert last change.
6171         * po/zh_CN.po: Likewise.
6172         * po/header.pot: Likewise.
6173
6174 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
6175
6176         * Makefile ($(common-objpfx)linkobj/libc.so): Define
6177         link-libc-deps to empty as target-specific variable.
6178         * Makerules (link-libc-args): New variable.
6179         (libc-for-link): Likewise.
6180         (link-libc-deps): Likewise.
6181         (lib%.so): Depend on $(link-libc-deps).  Link with
6182         $(link-libc-args).
6183         (build-module): Link with $(link-libc-args).
6184         (build-module-asneeded): Likewise.
6185         (build-module-helper-objlist): Filter out $(link-libc-deps) from
6186         list of objects.
6187         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
6188         target-specific variable.
6189         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
6190         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
6191         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
6192         libc.
6193         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
6194         libc and ld.so.
6195         ($(objpfx)libpcprofile.so): Likewise.
6196         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
6197         libc_nonshared.a.
6198         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
6199         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
6200         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
6201         $(link-libc-deps).
6202         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
6203         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
6204         * login/Makefile ($(objpfx)libutil.so): Likewise.
6205         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
6206         * math/Makefile ($(objpfx)libm.so): Likewise.
6207         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
6208         $(objpfx)libnsl.so): Define libc-for-link as target-specific
6209         variable instead of depending directly on libc.
6210         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
6211         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
6212         $(link-libc-deps).
6213         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
6214         libc.
6215         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
6216         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
6217         ($(objpfx)libanl.so): Likewise.
6218         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
6219         ld.so.
6220         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
6221         $(link-libc-deps).
6222         * sysdeps/i386/fpu/Makefile: Remove file.
6223         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
6224         ($(objpfx)libm.so): Remove dependency on ld.so.
6225
6226 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
6227
6228         [BZ # 15553]
6229         * nis/yp_xdr.c (XDRMAXNAME): Define.
6230         (XDRMAXRECORD): Define.
6231         (xdr_domainname): Use XDRMAXNAME.
6232         (xdr_mapname): Likewise.
6233         (xdr_peername): Likewise.
6234         (xdr_keydat): Use XDRMAXRECORD.
6235         (xdr_valdat): Likewise.
6236
6237 2013-05-30  Jeff Law  <law@redhat.com>
6238
6239         [BZ #14256]
6240         * manual/errno.texi (ESTALE): Update to account for more than
6241         just NFS file systems.
6242         * sysdeps/gnu/errlist.c: Regenerated.
6243
6244 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6245
6246         [BZ #15465]
6247         * elf/Makefile (tests): Add tst-null-argv.
6248         (modules-names):  Add tst-null-argv-lib.
6249         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
6250         (tst-null-argv-ENV): Set environment for tst-null-argv.
6251         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
6252         (RTLD_PROGNAME): New macro.
6253         * elf/tst-null-argv.c: New test case.
6254         * elf/tst-null-argv-lib.c: Library for test case.
6255         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
6256         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6257         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
6258         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
6259         * elf/dl-init.c (call_init): Likewise.
6260         (_dl_init): Likewise.
6261         * elf/dl-load.c (print_search_path): Likewise.
6262         (_dl_map_object): Likewise.
6263         * elf/dl-lookup.c (do_lookup_x): Likewise.
6264         (add_dependency): Likewise.
6265         (_dl_lookup_symbol_x): Likewise.
6266         (_dl_debug_bindings): Likewise.
6267         * elf/dl-open.c (_dl_show_scope): Likewise.
6268         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6269         * elf/dl-version.c (match_symbol): Likewise.
6270         (_dl_check_map_versions): Likewise.
6271         * elf/rtld.c (dl_main): Likewise.
6272         (print_unresolved): Use RTLD_PROGNAME.
6273         (print_missing_version): Likewise.
6274         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6275         (elf_machine_rela): Likewise.
6276         * sysdeps/powerpc/powerpc32/dl-machine.c
6277         (__process_machine_rela): Likewise.
6278         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6279         Likewise.
6280         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6281         Likewise.
6282         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
6283         Likewise.
6284         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6285         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
6286         Likewise.
6287         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6288         Likewise.
6289         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6290
6291 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
6292
6293         * po/be.po: Add descriptive title.
6294         * po/zh_CN.po: Likewise.
6295         * po/header.pot: Likewise.
6296
6297 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
6298
6299         * locale/programs/locarchive.c (create_archive): Inlucde fname in
6300         error message.
6301         (enlarge_archive): Likewise.
6302
6303 2013-05-28  Ben North  <ben@redfrontdoor.org>
6304
6305         * manual/arith.texi (frexp): It is the magnitude of the return
6306         value which lies in [0.5, 1), not the return value itself.
6307
6308 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6309
6310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6311
6312 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
6313
6314         * stdio-common/bug26.c (main): Correct fscanf template.
6315
6316         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
6317         declare _dl_skip_args.
6318
6319         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
6320         Don't declare.
6321
6322         * manual/platform.texi: Add missing @end deftypefun.
6323
6324 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
6325
6326         [BZ #15529]
6327         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
6328         bit of mantissa of 2^16382.
6329         * math/libm-test.inc (hypot_test_data): Add more tests.
6330
6331         * math/libm-test.inc: Add drem and pow10 to list of tested
6332         functions.
6333         (pow10_test): New function.
6334         (drem_test): Likewise.
6335         (drem_test_tonearest): Likewise.
6336         (drem_test_towardzero): Likewise.
6337         (drem_test_downward): Likewise.
6338         (drem_test_upward): Likewise.
6339         (main): Call the new functions.
6340
6341         * math/libm-test.inc (finite_test_data): Remove.
6342         (finite_test): Run tests from isfinite_test_data.
6343         (gamma_test_data): Remove.
6344         (gamma_test): Run tests from lgamma_test_data.
6345         * sysdeps/i386/fpu/libm-test-ulps: Update.
6346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6347
6348 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6349
6350         * manual/platform.texi: Add PowerPC PPR function set documentation.
6351         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
6352         implementation.
6353
6354 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
6355
6356         * math/libm-test.inc (MAX_EXP): Define.
6357         (ULPDIFF): Define.
6358         (ulp): New function.
6359         (check_float_internal): Use ULPDIFF.
6360         (cpow_test): Disable failing test.
6361         (check_ulp): Test ulp() implemetnation.
6362         (main): Call check_ulp before starting tests.
6363
6364 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
6365
6366         * math/gen-libm-test.pl (generate_testfile): Do not handle
6367         START_DATA and END_DATA.
6368         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
6369         END_DATA.
6370         (acos_tonearest_test_data): Likewise.
6371         (acos_towardzero_test_data): Likewise.
6372         (acos_downward_test_data): Likewise.
6373         (acos_upward_test_data): Likewise.
6374         (acosh_test_data): Likewise.
6375         (asin_test_data): Likewise.
6376         (asin_tonearest_test_data): Likewise.
6377         (asin_towardzero_test_data): Likewise.
6378         (asin_downward_test_data): Likewise.
6379         (asin_upward_test_data): Likewise.
6380         (asinh_test_data): Likewise.
6381         (atan_test_data): Likewise.
6382         (atanh_test_data): Likewise.
6383         (atan2_test_data): Likewise.
6384         (cabs_test_data): Likewise.
6385         (cacos_test_data): Likewise.
6386         (cacosh_test_data): Likewise.
6387         (carg_test_data): Likewise.
6388         (casin_test_data): Likewise.
6389         (casinh_test_data): Likewise.
6390         (catan_test_data): Likewise.
6391         (catanh_test_data): Likewise.
6392         (cbrt_test_data): Likewise.
6393         (ccos_test_data): Likewise.
6394         (ccosh_test_data): Likewise.
6395         (ceil_test_data): Likewise.
6396         (cexp_test_data): Likewise.
6397         (cimag_test_data): Likewise.
6398         (clog_test_data): Likewise.
6399         (clog10_test_data): Likewise.
6400         (conj_test_data): Likewise.
6401         (copysign_test_data): Likewise.
6402         (cos_test_data): Likewise.
6403         (cos_tonearest_test_data): Likewise.
6404         (cos_towardzero_test_data): Likewise.
6405         (cos_downward_test_data): Likewise.
6406         (cos_upward_test_data): Likewise.
6407         (cosh_test_data): Likewise.
6408         (cosh_tonearest_test_data): Likewise.
6409         (cosh_towardzero_test_data): Likewise.
6410         (cosh_downward_test_data): Likewise.
6411         (cosh_upward_test_data): Likewise.
6412         (cpow_test_data): Likewise.
6413         (cproj_test_data): Likewise.
6414         (creal_test_data): Likewise.
6415         (csin_test_data): Likewise.
6416         (csinh_test_data): Likewise.
6417         (csqrt_test_data): Likewise.
6418         (ctan_test_data): Likewise.
6419         (ctan_tonearest_test_data): Likewise.
6420         (ctan_towardzero_test_data): Likewise.
6421         (ctan_downward_test_data): Likewise.
6422         (ctan_upward_test_data): Likewise.
6423         (ctanh_test_data): Likewise.
6424         (ctanh_tonearest_test_data): Likewise.
6425         (ctanh_towardzero_test_data): Likewise.
6426         (ctanh_downward_test_data): Likewise.
6427         (ctanh_upward_test_data): Likewise.
6428         (erf_test_data): Likewise.
6429         (erfc_test_data): Likewise.
6430         (exp_test_data): Likewise.
6431         (exp_tonearest_test_data): Likewise.
6432         (exp_towardzero_test_data): Likewise.
6433         (exp_downward_test_data): Likewise.
6434         (exp_upward_test_data): Likewise.
6435         (exp10_test_data): Likewise.
6436         (exp2_test_data): Likewise.
6437         (expm1_test_data): Likewise.
6438         (fabs_test_data): Likewise.
6439         (fdim_test_data): Likewise.
6440         (finite_test_data): Likewise.
6441         (floor_test_data): Likewise.
6442         (fma_test_data): Likewise.
6443         (fma_towardzero_test_data): Likewise.
6444         (fma_downward_test_data): Likewise.
6445         (fma_upward_test_data): Likewise.
6446         (fmax_test_data): Likewise.
6447         (fmin_test_data): Likewise.
6448         (fmod_test_data): Likewise.
6449         (fpclassify_test_data): Likewise.
6450         (frexp_test_data): Likewise.
6451         (gamma_test_data): Likewise.
6452         (hypot_test_data): Likewise.
6453         (ilogb_test_data): Likewise.
6454         (isfinite_test_data): Likewise.
6455         (isgreater_test_data): Likewise.
6456         (isgreaterequal_test_data): Likewise.
6457         (isinf_test_data): Likewise.
6458         (isless_test_data): Likewise.
6459         (islessequal_test_data): Likewise.
6460         (islessgreater_test_data): Likewise.
6461         (isnan_test_data): Likewise.
6462         (isnormal_test_data): Likewise.
6463         (issignaling_test_data): Likewise.
6464         (isunordered_test_data): Likewise.
6465         (j0_test_data): Likewise.
6466         (j1_test_data): Likewise.
6467         (jn_test_data): Likewise.
6468         (ldexp_test_data): Likewise.
6469         (lgamma_test_data): Likewise.
6470         (lrint_test_data): Likewise.
6471         (lrint_tonearest_test_data): Likewise.
6472         (lrint_towardzero_test_data): Likewise.
6473         (lrint_downward_test_data): Likewise.
6474         (lrint_upward_test_data): Likewise.
6475         (llrint_test_data): Likewise.
6476         (llrint_tonearest_test_data): Likewise.
6477         (llrint_towardzero_test_data): Likewise.
6478         (llrint_downward_test_data): Likewise.
6479         (llrint_upward_test_data): Likewise.
6480         (log_test_data): Likewise.
6481         (log10_test_data): Likewise.
6482         (log1p_test_data): Likewise.
6483         (log2_test_data): Likewise.
6484         (logb_test_data): Likewise.
6485         (logb_downward_test_data): Likewise.
6486         (lround_test_data): Likewise.
6487         (llround_test_data): Likewise.
6488         (modf_test_data): Likewise.
6489         (nearbyint_test_data): Likewise.
6490         (nextafter_test_data): Likewise.
6491         (nexttoward_test_data): Likewise.
6492         (pow_test_data): Likewise.
6493         (pow_tonearest_test_data): Likewise.
6494         (pow_towardzero_test_data): Likewise.
6495         (pow_downward_test_data): Likewise.
6496         (pow_upward_test_data): Likewise.
6497         (remainder_test_data): Likewise.
6498         (remainder_tonearest_test_data): Likewise.
6499         (remainder_towardzero_test_data): Likewise.
6500         (remainder_downward_test_data): Likewise.
6501         (remainder_upward_test_data): Likewise.
6502         (remquo_test_data): Likewise.
6503         (rint_test_data): Likewise.
6504         (rint_tonearest_test_data): Likewise.
6505         (rint_towardzero_test_data): Likewise.
6506         (rint_downward_test_data): Likewise.
6507         (rint_upward_test_data): Likewise.
6508         (round_test_data): Likewise.
6509         (scalb_test_data): Likewise.
6510         (scalbn_test_data): Likewise.
6511         (scalbln_test_data): Likewise.
6512         (signbit_test_data): Likewise.
6513         (sin_test_data): Likewise.
6514         (sin_tonearest_test_data): Likewise.
6515         (sin_towardzero_test_data): Likewise.
6516         (sin_downward_test_data): Likewise.
6517         (sin_upward_test_data): Likewise.
6518         (sincos_test_data): Likewise.
6519         (sinh_test_data): Likewise.
6520         (sinh_tonearest_test_data): Likewise.
6521         (sinh_towardzero_test_data): Likewise.
6522         (sinh_downward_test_data): Likewise.
6523         (sinh_upward_test_data): Likewise.
6524         (sqrt_test_data): Likewise.
6525         (tan_test_data): Likewise.
6526         (tan_tonearest_test_data): Likewise.
6527         (tan_towardzero_test_data): Likewise.
6528         (tan_downward_test_data): Likewise.
6529         (tan_upward_test_data): Likewise.
6530         (tanh_test_data): Likewise.
6531         (tgamma_test_data): Likewise.
6532         (trunc_test_data): Likewise.
6533         (y0_test_data): Likewise.
6534         (y1_test_data): Likewise.
6535         (yn_test_data): Likewise.
6536         (significand_test_data): Likewise.
6537
6538         * math/gen-libm-test.pl (@functions): Remove variable.
6539         (generate_testfile): Don't handle START and END lines.
6540         * math/libm-test.inc (START): New macro.
6541         (END): Likewise.
6542         (END_COMPLEX): Likewise.
6543         (acos_test): Use END macro without arguments.
6544         (acos_test_tonearest): Likewise.
6545         (acos_test_towardzero): Likewise.
6546         (acos_test_downward): Likewise.
6547         (acos_test_upward): Likewise.
6548         (acosh_test): Likewise.
6549         (asin_test): Likewise.
6550         (asin_test_tonearest): Likewise.
6551         (asin_test_towardzero): Likewise.
6552         (asin_test_downward): Likewise.
6553         (asin_test_upward): Likewise.
6554         (asinh_test): Likewise.
6555         (atan_test): Likewise.
6556         (atanh_test): Likewise.
6557         (atan2_test): Likewise.
6558         (cabs_test): Likewise.
6559         (cacos_test): Use END_COMPLEX macro without arguments.
6560         (cacosh_test): Likewise.
6561         (carg_test): Use END macro without arguments.
6562         (casin_test): Use END_COMPLEX macro without arguments.
6563         (casinh_test): Likewise.
6564         (catan_test): Likewise.
6565         (catanh_test): Likewise.
6566         (cbrt_test): Use END macro without arguments.
6567         (ccos_test): Use END_COMPLEX macro without arguments.
6568         (ccosh_test): Likewise.
6569         (ceil_test): Use END macro without arguments.
6570         (cexp_test): Use END_COMPLEX macro without arguments.
6571         (cimag_test): Use END macro without arguments.
6572         (clog_test): Use END_COMPLEX macro without arguments.
6573         (clog10_test): Likewise.
6574         (conj_test): Likewise.
6575         (copysign_test): Use END macro without arguments.
6576         (cos_test): Likewise.
6577         (cos_test_tonearest): Likewise.
6578         (cos_test_towardzero): Likewise.
6579         (cos_test_downward): Likewise.
6580         (cos_test_upward): Likewise.
6581         (cosh_test): Likewise.
6582         (cosh_test_tonearest): Likewise.
6583         (cosh_test_towardzero): Likewise.
6584         (cosh_test_downward): Likewise.
6585         (cosh_test_upward): Likewise.
6586         (cpow_test): Use END_COMPLEX macro without arguments.
6587         (cproj_test): Likewise.
6588         (creal_test): Use END macro without arguments.
6589         (csin_test): Use END_COMPLEX macro without arguments.
6590         (csinh_test): Likewise.
6591         (csqrt_test): Likewise.
6592         (ctan_test): Likewise.
6593         (ctan_test_tonearest): Likewise.
6594         (ctan_test_towardzero): Likewise.
6595         (ctan_test_downward): Likewise.
6596         (ctan_test_upward): Likewise.
6597         (ctanh_test): Likewise.
6598         (ctanh_test_tonearest): Likewise.
6599         (ctanh_test_towardzero): Likewise.
6600         (ctanh_test_downward): Likewise.
6601         (ctanh_test_upward): Likewise.
6602         (erf_test): Use END macro without arguments.
6603         (erfc_test): Likewise.
6604         (exp_test): Likewise.
6605         (exp_test_tonearest): Likewise.
6606         (exp_test_towardzero): Likewise.
6607         (exp_test_downward): Likewise.
6608         (exp_test_upward): Likewise.
6609         (exp10_test): Likewise.
6610         (exp2_test): Likewise.
6611         (expm1_test): Likewise.
6612         (fabs_test): Likewise.
6613         (fdim_test): Likewise.
6614         (finite_test): Likewise.
6615         (floor_test): Likewise.
6616         (fma_test): Likewise.
6617         (fma_test_towardzero): Likewise.
6618         (fma_test_downward): Likewise.
6619         (fma_test_upward): Likewise.
6620         (fmax_test): Likewise.
6621         (fmin_test): Likewise.
6622         (fmod_test): Likewise.
6623         (fpclassify_test): Likewise.
6624         (frexp_test): Likewise.
6625         (gamma_test): Likewise.
6626         (hypot_test): Likewise.
6627         (ilogb_test): Likewise.
6628         (isfinite_test): Likewise.
6629         (isgreater_test): Likewise.
6630         (isgreaterequal_test): Likewise.
6631         (isinf_test): Likewise.
6632         (isless_test): Likewise.
6633         (islessequal_test): Likewise.
6634         (islessgreater_test): Likewise.
6635         (isnan_test): Likewise.
6636         (isnormal_test): Likewise.
6637         (issignaling_test): Likewise.
6638         (isunordered_test): Likewise.
6639         (j0_test): Likewise.
6640         (j1_test): Likewise.
6641         (jn_test): Likewise.
6642         (ldexp_test): Likewise.
6643         (lgamma_test): Likewise.
6644         (lrint_test): Likewise.
6645         (lrint_test_tonearest): Likewise.
6646         (lrint_test_towardzero): Likewise.
6647         (lrint_test_downward): Likewise.
6648         (lrint_test_upward): Likewise.
6649         (llrint_test): Likewise.
6650         (llrint_test_tonearest): Likewise.
6651         (llrint_test_towardzero): Likewise.
6652         (llrint_test_downward): Likewise.
6653         (llrint_test_upward): Likewise.
6654         (log_test): Likewise.
6655         (log10_test): Likewise.
6656         (log1p_test): Likewise.
6657         (log2_test): Likewise.
6658         (logb_test): Likewise.
6659         (logb_test_downward): Likewise.
6660         (lround_test): Likewise.
6661         (llround_test): Likewise.
6662         (modf_test): Likewise.
6663         (nearbyint_test): Likewise.
6664         (nextafter_test): Likewise.
6665         (nexttoward_test): Likewise.
6666         (pow_test): Likewise.
6667         (pow_test_tonearest): Likewise.
6668         (pow_test_towardzero): Likewise.
6669         (pow_test_downward): Likewise.
6670         (pow_test_upward): Likewise.
6671         (remainder_test): Likewise.
6672         (remainder_test_tonearest): Likewise.
6673         (remainder_test_towardzero): Likewise.
6674         (remainder_test_downward): Likewise.
6675         (remainder_test_upward): Likewise.
6676         (remquo_test): Likewise.
6677         (rint_test): Likewise.
6678         (rint_test_tonearest): Likewise.
6679         (rint_test_towardzero): Likewise.
6680         (rint_test_downward): Likewise.
6681         (rint_test_upward): Likewise.
6682         (round_test): Likewise.
6683         (scalb_test): Likewise.
6684         (scalbn_test): Likewise.
6685         (scalbln_test): Likewise.
6686         (signbit_test): Likewise.
6687         (sin_test): Likewise.
6688         (sin_test_tonearest): Likewise.
6689         (sin_test_towardzero): Likewise.
6690         (sin_test_downward): Likewise.
6691         (sin_test_upward): Likewise.
6692         (sincos_test): Likewise.
6693         (sinh_test): Likewise.
6694         (sinh_test_tonearest): Likewise.
6695         (sinh_test_towardzero): Likewise.
6696         (sinh_test_downward): Likewise.
6697         (sinh_test_upward): Likewise.
6698         (sqrt_test): Likewise.
6699         (tan_test): Likewise.
6700         (tan_test_tonearest): Likewise.
6701         (tan_test_towardzero): Likewise.
6702         (tan_test_downward): Likewise.
6703         (tan_test_upward): Likewise.
6704         (tanh_test): Likewise.
6705         (tgamma_test): Likewise.
6706         (trunc_test): Likewise.
6707         (y0_test): Likewise.
6708         (y1_test): Likewise.
6709         (yn_test): Likewise.
6710         (significand_test): Likewise.
6711
6712 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
6713
6714         [BZ #15381]
6715         * libio/genops.c (_IO_no_init): Initialize wide struct info.
6716
6717 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6718
6719         [BZ #14894]
6720         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
6721         __ppc_mdoio and __ppc_mdoom.
6722         * manual/platform.texi: Document new functions __ppc_yield,
6723         __ppc_mdoio and __ppc_mdoom.
6724
6725 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
6726
6727         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
6728         (main): Mention "tls" pseudo-hwcap is legacy.
6729         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
6730
6731 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
6732
6733         * math/gen-libm-test.pl (parse_args): Output only string of
6734         arguments as text for test name, not full call or descriptions of
6735         tests for extra outputs.
6736         (generate_testfile): Do not pass function name to parse_args.
6737         Generate this_func variable from START.
6738         * math/libm-test.inc (struct test_f_f_data): Rename test_name
6739         field to arg_str.
6740         (struct test_ff_f_data): Likewise.
6741         (test_ff_f_data_nexttoward): Likewise.
6742         (struct test_fi_f_data): Likewise.
6743         (struct test_fl_f_data): Likewise.
6744         (struct test_if_f_data): Likewise.
6745         (struct test_fff_f_data): Likewise.
6746         (struct test_c_f_data): Likewise.
6747         (struct test_f_f1_data): Likewise.  Remove field extra_name.
6748         (struct test_fF_f1_data): Likewise.
6749         (struct test_ffI_f1_data): Likewise.
6750         (struct test_c_c_data): Rename test_name field to arg_str.
6751         (struct test_cc_c_data): Likewise.
6752         (struct test_f_i_data): Likewise.
6753         (struct test_ff_i_data): Likewise.
6754         (struct test_f_l_data): Likewise.
6755         (struct test_f_L_data): Likewise.
6756         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
6757         and extra2_name.
6758         (COMMON_TEST_SETUP): New macro.
6759         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
6760         (COMMON_TEST_CLEANUP): Likewise.
6761         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
6762         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
6763         macros.
6764         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
6765         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
6766         macros.
6767         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
6768         (RUN_TEST_fff_f): Take argument string.  Call new setup and
6769         cleanup macros.
6770         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
6771         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
6772         macros.
6773         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
6774         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
6775         macros.
6776         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
6777         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
6778         cleanup macros.
6779         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
6780         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
6781         cleanup macros.
6782         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
6783         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
6784         cleanup macros.
6785         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
6786         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
6787         macros.
6788         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
6789         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
6790         macros.
6791         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
6792         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
6793         macros.
6794         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
6795         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
6796         cleanup macros.
6797         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
6798         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
6799         cleanup macros.
6800         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
6801         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
6802         macros.
6803         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
6804         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
6805         cleanup macros.
6806         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
6807         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
6808         macros.
6809         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
6810         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
6811         macros.
6812         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
6813         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
6814         cleanup macros.
6815         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
6816
6817 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
6818
6819         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
6820         to _sifields.sigfault.
6821         (si_addr_lsb): Define new macro.
6822         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
6823         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6824         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
6825
6826 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
6827
6828         [BZ #15441]
6829         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
6830         returns -1.
6831         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
6832         null return -1.
6833         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
6834         loading the domain.
6835
6836 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * math/gen-libm-test.pl (parse_args): Do not include expected
6839         result in test name.
6840         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
6841         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6842         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6843         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6844         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6846
6847 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6848
6849         * benchtests/Makefile: Sort function entries.
6850
6851         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
6852         tanh, asinh, acosh, atanh.
6853         * benchtests/acos-inputs: New file.
6854         * benchtests/acosh-inputs: New file.
6855         * benchtests/asin-inputs: New file.
6856         * benchtests/asinh-inputs: New file.
6857         * benchtests/atanh-inputs: New file.
6858         * benchtests/cosh-inputs: New file.
6859         * benchtests/log-inputs: New file.
6860         * benchtests/sinh-inputs: New file.
6861         * benchtests/tanh-inputs: New file.
6862
6863 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
6864
6865         [BZ #15339]
6866         * posix/tst-getaddrinfo4.c: New test.
6867         * posix/Makefile (tests): Add it.
6868
6869 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6870
6871         [BZ #15339]
6872         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
6873         when no services were used.
6874         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
6875         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
6876
6877 2013-05-21  Andreas Schwab  <schwab@suse.de>
6878
6879         [BZ #15014]
6880         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
6881         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
6882         successful.
6883         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
6884         redundant variable declarations and reallocation of buffer when
6885         parsing as IPv6 address.  Always set NSS status when called from
6886         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
6887         buffer too small.  Correct computation of needed size.
6888         * nss/Makefile (tests): Add test-digits-dots.
6889         * nss/test-digits-dots.c: New test.
6890
6891 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6892
6893         * benchtests/Makefile: Remove instructions for adding
6894         benchmark tests.
6895         * benchtests/README: New file to explain how to execute and
6896         enhance the benchmark tests.
6897
6898 2013-05-21  Andreas Schwab  <schwab@suse.de>
6899
6900         [BZ #15493]
6901         * setjmp/Makefile (tests): Add tst-sigsetjmp.
6902         * setjmp/tst-sigsetjmp.c: New test.
6903
6904 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
6905
6906         * sysdeps/x86_64/memset.S (memset): New implementation.
6907         (__bzero): Likewise.
6908         (__memset_tail): New function.
6909
6910 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
6911
6912         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
6913         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
6914         __memcpy_sse2_unaligned ifunc selection.
6915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6916         Add memcpy-sse2-unaligned.S.
6917         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6918         Add: __memcpy_sse2_unaligned.
6919
6920 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
6921
6922         [BZ #15490]
6923         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
6924         math_force_eval before restoring floating-point envrionment.
6925         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
6926         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
6927         Likewise.
6928         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
6929         <math_private.h>.
6930         (__nearbyintl): Use math_force_eval before restoring
6931         floating-point environment.
6932         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
6933
6934         * math/gen-libm-test.pl (special_functions): Remove.
6935         (parse_args): Don't handle TEST_extra.  Handle functions with no
6936         return value.
6937         * math/libm-test.inc (struct test_sincos_data): Replace with
6938         struct test_fFF_11_data.
6939         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
6940         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
6941         (sincos_test_data): Change element type to struct
6942         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
6943         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
6944         RUN_TEST_LOOP_sincos.
6945         * math/README.libm-test: Don't mention special handling of
6946         individual functions.
6947         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
6948         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6949         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6950         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6951         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6953
6954         * math/gen-libm-test.pl (get_variable): Remove function.
6955         (parse_args): Don't show pointer parameters to call in test
6956         names.  Use "extra output N" in test names for extra outputs
6957         rather than naming variables.
6958
6959 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
6960
6961         [BZ #15488]
6962         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
6963         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
6964         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
6965         double tests.
6966         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
6967         disable.
6968         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
6969         check_long_double.
6970
6971         * math/gen-libm-test.pl (@tests): Remove variable.
6972         ($count): Likewise.
6973         (new_test): Remove function.
6974         (show_exceptions): New function.
6975         (special_functions): Use show_exceptions instead of new_test.
6976         (parse_args): Likewise.
6977         (generate_testfile): Pass only function name in generated call to
6978         print_max_error or print_complex_max_error.
6979         (get_ulps): Do not handle complex tests specially.
6980         (output_test): Rename to ...
6981         (get_all_ulps_for_test): ... this.  Return a string rather than
6982         printing to a file.  Require ulps to be present.
6983         (output_ulps): Generate arrays rather than #defines.
6984         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
6985         (struct ulp_data): New type.
6986         (BUILD_COMPLEX_ULP): Remove macro.
6987         (compare_ulp_data): New function.
6988         (find_ulps): Likewise.
6989         (find_test_ulps): Likewise.
6990         (find_function_ulps): Likewise.
6991         (find_complex_function_ulps): Likewise.
6992         (print_max_error): Determine allowed ulps using
6993         find_function_ulps.
6994         (print_complex_max_error): Determine allowed ulps using
6995         find_complex_function_ulps.
6996         (check_float_internal): Determine max ulps using find_test_ulps.
6997         (check_float): Do not take max_ulp parameter.  Update call to
6998         check_float_internal.
6999         (check_complex): Likewise.
7000         (check_int): Do not take max_ulp parameter.
7001         (check_long): Likewise.
7002         (check_bool): Likewise.
7003         (check_longlong): Likewise.
7004         (struct test_f_f_data): Remove max_ulp field.
7005         (struct test_ff_f_data): Likewise.
7006         (struct test_ff_f_data_nexttoward): Likewise.
7007         (struct test_fi_f_data): Likewise.
7008         (struct test_fl_f_data): Likewise.
7009         (struct test_if_f_data): Likewise.
7010         (struct test_fff_f_data): Likewise.
7011         (struct test_c_f_data): Likewise.
7012         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
7013         (struct test_fF_f1_data): Likewise.
7014         (struct test_ffI_f1_data): Likewise.
7015         (struct test_c_c_data): Remove max_ulp field.
7016         (struct test_cc_c_data): Likewise.
7017         (struct test_f_i_data): Likewise.
7018         (struct test_ff_i_data): Likewise.
7019         (struct test_f_l_data): Likewise.
7020         (struct test_f_L_data): Likewise.
7021         (struct test_sincos_data): Likewise.
7022         (RUN_TEST_f_f): Do not handle ulps.
7023         (RUN_TEST_LOOP_f_f): Likewise.
7024         (RUN_TEST_2_f): Likewise.
7025         (RUN_TEST_LOOP_2_f): Likewise.
7026         (RUN_TEST_fff_f): Likewise.
7027         (RUN_TEST_LOOP_fff_f): Likewise.
7028         (RUN_TEST_c_f): Likewise.
7029         (RUN_TEST_LOOP_c_f): Likewise.
7030         (RUN_TEST_f_f1): Likewise.
7031         (RUN_TEST_LOOP_f_f1): Likewise.
7032         (RUN_TEST_fF_f1): Likewise.
7033         (RUN_TEST_LOOP_fF_f1): Likewise.
7034         (RUN_TEST_fI_f1): Likewise.
7035         (RUN_TEST_LOOP_fI_f1): Likewise.
7036         (RUN_TEST_ffI_f1): Likewise.
7037         (RUN_TEST_LOOP_ffI_f1): Likewise.
7038         (RUN_TEST_c_c): Likewise.
7039         (RUN_TEST_LOOP_c_c): Likewise.
7040         (RUN_TEST_cc_c): Likewise.
7041         (RUN_TEST_LOOP_cc_c): Likewise.
7042         (RUN_TEST_f_i): Likewise.
7043         (RUN_TEST_LOOP_f_i): Likewise.
7044         (RUN_TEST_f_i_tg): Likewise.
7045         (RUN_TEST_LOOP_f_i_tg): Likewise.
7046         (RUN_TEST_ff_i_tg): Likewise.
7047         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7048         (RUN_TEST_f_b): Likewise.
7049         (RUN_TEST_LOOP_f_b): Likewise.
7050         (RUN_TEST_f_b_tg): Likewise.
7051         (RUN_TEST_LOOP_f_b_tg): Likewise.
7052         (RUN_TEST_f_l): Likewise.
7053         (RUN_TEST_LOOP_f_l): Likewise.
7054         (RUN_TEST_f_L): Likewise.
7055         (RUN_TEST_LOOP_f_L): Likewise.
7056         (RUN_TEST_sincos): Likewise.
7057         (RUN_TEST_LOOP_sincos): Likewise.
7058
7059 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
7060
7061         [BZ #15480]
7062         [BZ #15485]
7063         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
7064         main case of finite arguments, set rounding mode to FE_TONEAREST
7065         and discard exceptions.
7066         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
7067         exceptions.
7068         (remainder_tonearest_test_data): New variable.
7069         (remainder_test_tonearest): New function.
7070         (remainder_towardzero_test_data): New variable.
7071         (remainder_test_towardzero): New function.
7072         (remainder_downward_test_data): New variable.
7073         (remainder_test_downward): New function.
7074         (remainder_upward_test_data): New variable.
7075         (remainder_test_upward): New function.
7076         (main): Call the new test functions.
7077
7078         * math/libm-test.inc (struct test_f_f1_data): Remove field
7079         extra_init.
7080         (struct test_fF_f1_data): Likewise.
7081         (struct test_ffI_f1_data): Likewise.
7082         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
7083         based on value of EXTRA_EXPECTED.
7084         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7085         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
7086         EXTRA_VAR based on value of EXTRA_EXPECTED.
7087         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7088         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
7089         EXTRA_VAR based on value of EXTRA_EXPECTED.
7090         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7091         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
7092         EXTRA_VAR based on value of EXTRA_EXPECTED.
7093         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7094         * math/gen-libm-test.pl (parse_args): Don't output initializers
7095         for extra output values.
7096
7097         * math/libm-test.inc (check_int): Expect result to be exactly
7098         equal to expected value and do not handle ulps.
7099         (check_long): Likewise.
7100         (check_longlong): Likewise.
7101
7102         * math/libm-test.inc (ceil_test_data): Test for "inexact"
7103         exceptions.
7104         (cimag_test_data): Likewise.
7105         (conj_test_data): Likewise.
7106         (copysign_test_data): Likewise.
7107         (cproj_test_data): Likewise.
7108         (creal_test_data): Likewise.
7109         (fabs_test_data): Likewise.
7110         (fdim_test_data): Likewise.
7111         (finite_test_data): Likewise.
7112         (floor_test_data): Likewise.
7113         (fmax_test_data): Likewise.
7114         (fmin_test_data): Likewise.
7115         (fmod_test_data): Likewise.
7116         (fpclassify_test_data): Likewise.
7117         (frexp_test_data): Likewise.
7118         (ilogb_test_data): Likewise.
7119         (isfinite_test_data): Likewise.
7120         (isgreater_test_data): Likewise.
7121         (isgreaterequal_test_data): Likewise.
7122         (isinf_test_data): Likewise.
7123         (isless_test_data): Likewise.
7124         (islessequal_test_data): Likewise.
7125         (islessgreater_test_data): Likewise.
7126         (isnan_test_data): Likewise.
7127         (isnormal_test_data): Likewise.
7128         (issignaling_test_data): Likewise.
7129         (isunordered_test_data): Likewise.
7130         (ldexp_test_data): Likewise.
7131         (lrint_test_data): Likewise.
7132         (lrint_test_data) [TEST_FLOAT]: Disable one test.
7133         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
7134         (lrint_tonearest_test_data): Test for "inexact" exceptions.
7135         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7136         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
7137         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7138         test input.
7139         (lrint_towardzero_test_data): Test for "inexact" exceptions.
7140         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7141         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
7142         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
7143         that test input.
7144         (lrint_downward_test_data): Test for "inexact" exceptions.
7145         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7146         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
7147         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7148         test input.
7149         (lrint_upward_test_data): Test for "inexact" exceptions.
7150         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
7151         test input.
7152         (llrint_test_data): Test for "inexact" exceptions.
7153         (llrint_test_data) [TEST_FLOAT]: Disable one test.
7154         (llrint_tonearest_test_data): Test for "inexact" exceptions.
7155         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7156         (llrint_towardzero_test_data): Test for "inexact" exceptions.
7157         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7158         (llrint_downward_test_data): Test for "inexact" exceptions.
7159         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7160         (llrint_upward_test_data): Test for "inexact" exceptions.
7161         (logb_test_data): Likewise.
7162         (logb_downward_test_data): Likewise.
7163         (nextafter_test_data): Likewise.
7164         (nexttoward_test_data): Likewise.
7165         (remainder_test_data): Likewise.
7166         (remquo_test_data): Likewise.
7167         (scalbn_test_data): Likewise.
7168         (scalbln_test_data): Likewise.
7169         (signbit_test_data): Likewise.
7170         (sqrt_test_data): Likewise.
7171         (significand_test_data): Likewise.
7172
7173 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
7174
7175         [BZ #15424]
7176         * benchtests/bench-modf.c (struct args): Mark arg0 as
7177         volatile.
7178         * scripts/bench.pl: Mark members of struct args as volatile.
7179
7180 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7181
7182         [BZ # 15497]
7183         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
7184         negative infinity on POWER6 or lower.
7185         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
7186
7187 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
7188
7189         [BZ #15442]
7190         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
7191         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
7192         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
7193         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
7194         (_FP_SETQNAN): New macro.
7195         (_FP_SETQNAN_SEMIRAW): Likewise.
7196         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
7197         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
7198         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
7199         (FP_EXTEND): Use _FP_FRAC_SNANP.
7200         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
7201         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
7202         into account.
7203         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
7204         New macro.
7205         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
7206         Likewise.
7207
7208 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
7209
7210         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
7211         with DIVIDE_BY_ZERO_EXCEPTION.
7212         (gamma_test_data): Likewise.
7213         (lgamma_test_data): Likewise.
7214         (log_test_data): Likewise.
7215         (log10_test_data): Likewise.
7216         (log2_test_data): Likewise.
7217         (tgamma_test_data): Likewise.
7218
7219         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
7220         (acos_test_tonearest): Likewise.
7221         (acos_test_towardzero): Likewise.
7222         (acos_test_downward): Likewise.
7223         (acos_test_upward): Likewise.
7224         (acosh_test): Likewise.
7225         (asin_test): Likewise.
7226         (asin_test_tonearest): Likewise.
7227         (asin_test_towardzero): Likewise.
7228         (asin_test_downward): Likewise.
7229         (asin_test_upward): Likewise.
7230         (asinh_test): Likewise.
7231         (atan_test): Likewise.
7232         (atanh_test): Likewise.
7233         (atan2_test): Likewise.
7234         (cabs_test): Likewise.
7235         (cacos_test): Likewise.
7236         (cacosh_test): Likewise.
7237         (casin_test): Likewise.
7238         (casinh_test): Likewise.
7239         (catan_test): Likewise.
7240         (catanh_test): Likewise.
7241         (cbrt_test): Likewise.
7242         (ccos_test): Likewise.
7243         (ccosh_test): Likewise.
7244         (cexp_test): Likewise.
7245         (clog_test): Likewise.
7246         (clog10_test): Likewise.
7247         (cos_test): Likewise.
7248         (cos_test_tonearest): Likewise.
7249         (cos_test_towardzero): Likewise.
7250         (cos_test_downward): Likewise.
7251         (cos_test_upward): Likewise.
7252         (cosh_test): Likewise.
7253         (cosh_test_tonearest): Likewise.
7254         (cosh_test_towardzero): Likewise.
7255         (cosh_test_downward): Likewise.
7256         (cosh_test_upward): Likewise.
7257         (cpow_test): Likewise.
7258         (csin_test): Likewise.
7259         (csinh_test): Likewise.
7260         (csqrt_test): Likewise.
7261         (ctan_test): Likewise.
7262         (ctan_test_tonearest): Likewise.
7263         (ctan_test_towardzero): Likewise.
7264         (ctan_test_downward): Likewise.
7265         (ctan_test_upward): Likewise.
7266         (ctanh_test): Likewise.
7267         (ctanh_test_tonearest): Likewise.
7268         (ctanh_test_towardzero): Likewise.
7269         (ctanh_test_downward): Likewise.
7270         (ctanh_test_upward): Likewise.
7271         (erf_test): Likewise.
7272         (erfc_test): Likewise.
7273         (exp_test): Likewise.
7274         (exp_test_tonearest): Likewise.
7275         (exp_test_towardzero): Likewise.
7276         (exp_test_downward): Likewise.
7277         (exp_test_upward): Likewise.
7278         (exp10_test): Likewise.
7279         (exp2_test): Likewise.
7280         (expm1_test): Likewise.
7281         (fmod_test): Likewise.
7282         (gamma_test): Likewise.
7283         (hypot_test): Likewise.
7284         (j0_test): Likewise.
7285         (j1_test): Likewise.
7286         (jn_test): Likewise.
7287         (lgamma_test): Likewise.
7288         (log_test): Likewise.
7289         (log10_test): Likewise.
7290         (log1p_test): Likewise.
7291         (log2_test): Likewise.
7292         (logb_test_downward): Likewise.
7293         (pow_test): Likewise.
7294         (pow_test_tonearest): Likewise.
7295         (pow_test_towardzero): Likewise.
7296         (pow_test_downward): Likewise.
7297         (pow_test_upward): Likewise.
7298         (remainder_test): Likewise.
7299         (remquo_test): Likewise.
7300         (sin_test): Likewise.
7301         (sin_test_tonearest): Likewise.
7302         (sin_test_towardzero): Likewise.
7303         (sin_test_downward): Likewise.
7304         (sin_test_upward): Likewise.
7305         (sincos_test): Likewise.
7306         (sinh_test): Likewise.
7307         (sinh_test_tonearest): Likewise.
7308         (sinh_test_towardzero): Likewise.
7309         (sinh_test_downward): Likewise.
7310         (sinh_test_upward): Likewise.
7311         (sqrt_test): Likewise.
7312         (tan_test): Likewise.
7313         (tan_test_tonearest): Likewise.
7314         (tan_test_towardzero): Likewise.
7315         (tan_test_downward): Likewise.
7316         (tan_test_upward): Likewise.
7317         (tanh_test): Likewise.
7318         (tgamma_test): Likewise.
7319         (y0_test): Likewise.
7320         (y1_test): Likewise.
7321         (yn_test): Likewise.
7322
7323         * math/gen-libm-test.pl (adjust_arg): Remove function.
7324         (special_function): Remove argument $in_func.  Only handle
7325         generating output for tables of tests, not inside functions.
7326         (parse_args): Likewise.
7327         (generate_testfile): Remove variable $in_func.  Update call to
7328         parse_args.
7329         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
7330         (MINUS_ZERO_INIT): Rename macro to minus_zero.
7331         (PLUS_INFTY_INIT): Rename macro to plus_infty.
7332         (MINUS_INFTY_INIT): Rename macro to minus_infty.
7333         (QNAN_VALUE_INIT): Rename macro to qnan_value.
7334         (MAX_VALUE_INIT): Rename macro to max_value.
7335         (MIN_VALUE_INIT): Rename macro to min_value.
7336         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
7337         (plus_zero): Remove variable.
7338         (minus_zero): Likewise.
7339         (plus_infty): Likewise.
7340         (minus_infty): Likewise.
7341         (qnan_value): Likewise.
7342         (max_value): Likewise.
7343         (min_value): Likewise.
7344         (min_subnorm_value): Likewise.
7345
7346 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7347
7348         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
7349         uint64_t or uint32_t usage.
7350         * crypt/sha256-block.c: Likewise.
7351         * crypt/sha256-crypt.c: Likewise.
7352         * crypt/sha256.c: Likewise.
7353         * crypt/sha512-block.c: Likewise.
7354         * crypt/sha512-crypt.c: Likewise.
7355         * crypt/sha512.c: Likewise.
7356         * debug/backtrace-tst.c: Likewise.
7357         * debug/pcprofiledump.c: Likewise.
7358         * elf/cache.c: Likewise.
7359         * elf/dl-cache.c: Likewise.
7360         * elf/dl-misc.c: Likewise.
7361         * elf/dl-profile.c: Likewise.
7362         * elf/dl-support.c: Likewise.
7363         * elf/ldconfig.c: Likewise.
7364         * elf/sprof.c: Likewise.
7365         * iconv/dummy-repertoire.c: Likewise.
7366         * iconv/iconv_charmap.c: Likewise.
7367         * iconv/skeleton.c: Likewise.
7368         * iconvdata/8bit-generic.c: Likewise.
7369         * iconvdata/cp737.h: Likewise.
7370         * iconvdata/cp775.h: Likewise.
7371         * iconvdata/ibm1008.h: Likewise.
7372         * iconvdata/ibm1025.h: Likewise.
7373         * iconvdata/ibm1046.h: Likewise.
7374         * iconvdata/ibm1097.h: Likewise.
7375         * iconvdata/ibm1112.h: Likewise.
7376         * iconvdata/ibm1122.h: Likewise.
7377         * iconvdata/ibm1123.h: Likewise.
7378         * iconvdata/ibm1124.h: Likewise.
7379         * iconvdata/ibm1129.h: Likewise.
7380         * iconvdata/ibm1130.h: Likewise.
7381         * iconvdata/ibm1132.h: Likewise.
7382         * iconvdata/ibm1133.h: Likewise.
7383         * iconvdata/ibm1137.h: Likewise.
7384         * iconvdata/ibm1140.h: Likewise.
7385         * iconvdata/ibm1141.h: Likewise.
7386         * iconvdata/ibm1142.h: Likewise.
7387         * iconvdata/ibm1143.h: Likewise.
7388         * iconvdata/ibm1144.h: Likewise.
7389         * iconvdata/ibm1145.h: Likewise.
7390         * iconvdata/ibm1146.h: Likewise.
7391         * iconvdata/ibm1147.h: Likewise.
7392         * iconvdata/ibm1148.h: Likewise.
7393         * iconvdata/ibm1149.h: Likewise.
7394         * iconvdata/ibm1153.h: Likewise.
7395         * iconvdata/ibm1154.h: Likewise.
7396         * iconvdata/ibm1155.h: Likewise.
7397         * iconvdata/ibm1156.h: Likewise.
7398         * iconvdata/ibm1157.h: Likewise.
7399         * iconvdata/ibm1158.h: Likewise.
7400         * iconvdata/ibm1160.h: Likewise.
7401         * iconvdata/ibm1161.h: Likewise.
7402         * iconvdata/ibm1162.h: Likewise.
7403         * iconvdata/ibm1163.h: Likewise.
7404         * iconvdata/ibm1164.h: Likewise.
7405         * iconvdata/ibm1166.h: Likewise.
7406         * iconvdata/ibm1167.h: Likewise.
7407         * iconvdata/ibm12712.h: Likewise.
7408         * iconvdata/ibm1390.h: Likewise.
7409         * iconvdata/ibm1399.h: Likewise.
7410         * iconvdata/ibm16804.h: Likewise.
7411         * iconvdata/ibm4517.h: Likewise.
7412         * iconvdata/ibm4899.h: Likewise.
7413         * iconvdata/ibm4909.h: Likewise.
7414         * iconvdata/ibm4971.h: Likewise.
7415         * iconvdata/ibm5347.h: Likewise.
7416         * iconvdata/ibm803.h: Likewise.
7417         * iconvdata/ibm856.h: Likewise.
7418         * iconvdata/ibm901.h: Likewise.
7419         * iconvdata/ibm902.h: Likewise.
7420         * iconvdata/ibm9030.h: Likewise.
7421         * iconvdata/ibm9066.h: Likewise.
7422         * iconvdata/ibm921.h: Likewise.
7423         * iconvdata/ibm922.h: Likewise.
7424         * iconvdata/ibm9448.h: Likewise.
7425         * iconvdata/isiri-3342.h: Likewise.
7426         * iconvdata/jis0201.h: Likewise.
7427         * include/link.h: Likewise.
7428         * include/netdb.h: Likewise.
7429         * inet/check_native.c: Likewise.
7430         * inet/check_pf.c: Likewise.
7431         * inet/getipv4sourcefilter.c: Likewise.
7432         * inet/getnameinfo.c: Likewise.
7433         * inet/getsourcefilter.c: Likewise.
7434         * inet/htonl.c: Likewise.
7435         * inet/setipv4sourcefilter.c: Likewise.
7436         * inet/setsourcefilter.c: Likewise.
7437         * inet/test-inet6_opt.c: Likewise.
7438         * inet/tst-network.c: Likewise.
7439         * locale/C-collate.c: Likewise.
7440         * locale/C-ctype.c: Likewise.
7441         * locale/C-time.c: Likewise.
7442         * locale/C-translit.h: Likewise.
7443         * locale/loadarchive.c: Likewise.
7444         * locale/programs/3level.h: Likewise.
7445         * locale/programs/charmap.c: Likewise.
7446         * locale/programs/charmap.h: Likewise.
7447         * locale/programs/ld-address.c: Likewise.
7448         * locale/programs/ld-collate.c: Likewise.
7449         * locale/programs/ld-ctype.c: Likewise.
7450         * locale/programs/ld-identification.c: Likewise.
7451         * locale/programs/ld-measurement.c: Likewise.
7452         * locale/programs/ld-messages.c: Likewise.
7453         * locale/programs/ld-monetary.c: Likewise.
7454         * locale/programs/ld-name.c: Likewise.
7455         * locale/programs/ld-numeric.c: Likewise.
7456         * locale/programs/ld-paper.c: Likewise.
7457         * locale/programs/ld-telephone.c: Likewise.
7458         * locale/programs/ld-time.c: Likewise.
7459         * locale/programs/linereader.c: Likewise.
7460         * locale/programs/locale.c: Likewise.
7461         * locale/programs/locarchive.c: Likewise.
7462         * locale/programs/locfile.h: Likewise.
7463         * locale/programs/repertoire.c: Likewise.
7464         * locale/programs/simple-hash.c: Likewise.
7465         * locale/programs/simple-hash.h: Likewise.
7466         * malloc/memusage.c: Likewise.
7467         * malloc/memusagestat.c: Likewise.
7468         * nis/nis_defaults.c: Likewise.
7469         * nis/nis_hash.c: Likewise.
7470         * nis/nis_print.c: Likewise.
7471         * nis/nis_xdr.c: Likewise.
7472         * nscd/connections.c: Likewise.
7473         * nscd/hstcache.c: Likewise.
7474         * nscd/nscd_gethst_r.c: Likewise.
7475         * nscd/nscd_getserv_r.c: Likewise.
7476         * nscd/nscd_helper.c: Likewise.
7477         * nscd/servicescache.c: Likewise.
7478         * nss/makedb.c: Likewise.
7479         * nss/nss_db/db-XXX.c: Likewise.
7480         * nss/nss_db/db-initgroups.c: Likewise.
7481         * nss/nss_db/db-netgrp.c: Likewise.
7482         * nss/nss_files/files-network.c: Likewise.
7483         * nss/nss_files/files-parse.c: Likewise.
7484         * posix/bug-regex5.c: Likewise.
7485         * posix/fnmatch_loop.c: Likewise.
7486         * posix/regcomp.c: Likewise.
7487         * posix/regexec.c: Likewise.
7488         * posix/tst-rfc3484-2.c: Likewise.
7489         * posix/tst-rfc3484-3.c: Likewise.
7490         * posix/tst-rfc3484.c: Likewise.
7491         * resolv/nss_dns/dns-canon.c: Likewise.
7492         * resolv/nss_dns/dns-network.c: Likewise.
7493         * resolv/res_init.c: Likewise.
7494         * resolv/res_mkquery.c: Likewise.
7495         * resolv/tst-aton.c: Likewise.
7496         * stdlib/cxa_atexit.c: Likewise.
7497         * stdlib/cxa_finalize.c: Likewise.
7498         * stdlib/gen-fpioconst.c: Likewise.
7499         * stdlib/strtol_l.c: Likewise.
7500         * string/tst-endian.c: Likewise.
7501         * sunrpc/auth_des.c: Likewise.
7502         * sunrpc/clnt_udp.c: Likewise.
7503         * sunrpc/rtime.c: Likewise.
7504         * sunrpc/svcauth_des.c: Likewise.
7505         * sunrpc/xdr.c: Likewise.
7506         * sunrpc/xdr_intXX_t.c: Likewise.
7507         * sunrpc/xdr_rec.c: Likewise.
7508         * sysdeps/generic/ldconfig.h: Likewise.
7509         * sysdeps/generic/ldsodefs.h: Likewise.
7510         * sysdeps/generic/memusage.h: Likewise.
7511         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
7512         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
7513         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
7514         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
7515         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7516         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7517         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
7518         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
7519         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7520         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7521         * sysdeps/posix/getaddrinfo.c: Likewise.
7522         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7523         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7524         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7525         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7526         * sysdeps/powerpc/test-gettimebase.c: Likewise.
7527         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
7528         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
7529         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
7530         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
7531         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
7532         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
7533         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
7534         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
7535         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
7536         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
7537         * sysdeps/x86_64/dl-tls.h: Likewise.
7538         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
7539         * time/alt_digit.c: Likewise.
7540         * time/era.c: Likewise.
7541         * wcsmbs/tst-c16c32-1.c: Likewise.
7542
7543 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
7544
7545         * math/libm-test.inc (struct test_sincos_data): New type.
7546         (RUN_TEST_LOOP_sincos): New macro.
7547         (sincos_test_data): New variable.
7548         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
7549
7550 2013-05-16  Richard Henderson  <rth@redhat.com>
7551
7552         * math/atest-exp2.c (LIMB64): New macro.
7553         (CONSTSZ): New macro.
7554         (mp_exp1, mp_exp_m1, mp_log2): New variables.
7555         (hexdig): Move ...
7556         (print_mpn_fp): ... to function scope.
7557         (read_mpn_hex): Remove.
7558         (get_log2): Remove.
7559         (exp2_mpn): Use mp_log2.
7560         (main): Use mp_exp1.
7561
7562 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
7563
7564         * math/libm-test.inc: Remove comment about not testing "inexact"
7565         exceptions.
7566         (INEXACT_EXCEPTION): New macro.
7567         (NO_INEXACT_EXCEPTION): Likewise.
7568         (INVALID_EXCEPTION_OK): Update value.
7569         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7570         (OVERFLOW_EXCEPTION_OK): Likewise.
7571         (UNDERFLOW_EXCEPTION_OK): Likewise.
7572         (IGNORE_ZERO_INF_SIGN): Likewise.
7573         (ERRNO_UNCHANGED): Likewise.
7574         (ERRNO_EDOM): Likewise.
7575         (ERRNO_ERANGE): Likewise.
7576         (test_exceptions): Handle testing "inexact" exceptions.
7577         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
7578         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
7579         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
7580         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
7581         INEXACT_EXCEPTION.
7582         (rint_towardzero_test_data): Likewise.
7583         (rint_downward_test_data): Likewise.
7584         (rint_upward_test_data): Likewise.
7585
7586         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
7587         with OVERFLOW_EXCEPTION.
7588         (exp10_test_data): Likewise.
7589         (exp2_test_data): Likewise.
7590         (expm1_test_data): Likewise.
7591         (lgamma_test_data): Likewise.
7592         (pow_test_data): Likewise.
7593         (tgamma_test_data): Likewise.
7594         (yn_test_data): Remove duplicate test of overflow.
7595
7596         * math/libm-test.inc (struct test_cc_c_data): New type.
7597         (RUN_TEST_LOOP_cc_c): New macro.
7598         (cpow_test_data): New variable.
7599         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
7600
7601         * math/libm-test.inc (struct test_f_L_data): New type.
7602         (RUN_TEST_LOOP_f_L): New macro.
7603         (llrint_test_data): New variable.
7604         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
7605         (llrint_tonearest_test_data): New variable.
7606         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
7607         (llrint_towardzero_test_data): New variable.
7608         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
7609         (llrint_downward_test_data): New variable.
7610         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
7611         (llrint_upward_test_data): New variable.
7612         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
7613         (llround_test_data): New variable.
7614         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
7615
7616 2013-05-13  Peter Collingbourne  <pcc@google.com>
7617
7618         * math/atest-exp2.c (get_log2): Remove const attribute.
7619
7620 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
7621
7622         * math/libm-test.inc (struct test_f_l_data): New type.
7623         (RUN_TEST_LOOP_f_l): New macro.
7624         (lrint_test_data): New variable.
7625         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
7626         (lrint_tonearest_test_data): New variable.
7627         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
7628         (lrint_towardzero_test_data): New variable.
7629         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
7630         (lrint_downward_test_data): New variable.
7631         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
7632         (lrint_upward_test_data): New variable.
7633         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
7634         (lround_test_data): New variable.
7635         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
7636
7637 2013-05-15  Peter Collingbourne  <pcc@google.com>
7638
7639         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
7640         (EXTRACT_WORDS64) Use where appropriate.
7641         (INSERT_WORDS64) Likewise.
7642
7643         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
7644         constraints with x constraints.
7645         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
7646
7647         * malloc/obstack.c (_obstack_compat): Add initializer.
7648
7649 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7650
7651         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
7652         si_trapno and add si_addr_lsb to _sifields.sigfault.
7653         (si_trapno): Remove macro.
7654         (si_addr_lsb): Define new macro.
7655         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
7656
7657 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
7658
7659         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
7660         instead of TEST_f_l.
7661         (llrint_test_tonearest): Likewise.
7662         (llrint_test_towardzero): Likewise.
7663         (llrint_test_downward): Likewise.
7664         (llrint_test_upward): Likewise.
7665         (llround_test): Likewise.
7666
7667         * math/libm-test.inc (struct test_f_i_data): Add comment.
7668         (RUN_TEST_LOOP_f_b): New macro.
7669         (RUN_TEST_LOOP_f_b_tg): Likewise.
7670         (finite_test_data): New variable.
7671         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
7672         (isfinite_test_data): New variable.
7673         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7674         (isinf_test_data): New variable.
7675         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7676         (isnan_test_data): New variable.
7677         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7678         (isnormal_test_data): New variable.
7679         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7680         (issignaling_test_data): New variable.
7681         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7682         (signbit_test_data): New variable.
7683         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
7684
7685         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
7686         with INVALID_EXCEPTION.
7687         (acosh_test_data): Likewise.
7688         (asin_test_data): Likewise.
7689         (atanh_test_data): Likewise.
7690         (fmod_test_data): Likewise.
7691         (log_test_data): Likewise.
7692         (log10_test_data): Likewise.
7693         (log2_test_data): Likewise.
7694         (pow_test_data): Likewise.
7695         (sqrt_test_data): Likewise.
7696         (y0_test_data): Likewise.
7697         (y1_test_data): Likewise.
7698         (yn_test_data): Likewise.
7699
7700         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
7701         function contents.
7702
7703         * math/libm-test.inc (struct test_ff_i_data): New type.
7704         (RUN_TEST_LOOP_ff_i_tg): New macro.
7705         (isgreater_test_data): New variable.
7706         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7707         (isgreaterequal_test_data): New variable.
7708         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7709         (isless_test_data): New variable.
7710         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7711         (islessequal_test_data): New variable.
7712         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7713         (islessgreater_test_data): New variable.
7714         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7715         (isunordered_test_data): New variable.
7716         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
7717
7718 2013-05-14  David S. Miller  <davem@davemloft.net>
7719
7720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7721
7722 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
7723
7724         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
7725
7726         * math/libm-test.inc (struct test_fF_f1_data): Change type of
7727         extra_test to int.
7728         (struct test_f_i_data): Change type of max_ulp to int.
7729
7730         * math/libm-test.inc (test_ffI_f1_data): New type.
7731         (RUN_TEST_LOOP_ffI_f1): New macro.
7732         (remquo_test_data): New variable.
7733         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
7734
7735         * setjmp/tst-setjmp-fp.c: New file.
7736         * setjmp/Makefile (tests): Add tst-setjmp-fp.
7737         (link-libm): New variable.
7738         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
7739
7740         * math/libm-test.inc (struct test_f_i_data): New type.
7741         (RUN_TEST_LOOP_f_i): New macro.
7742         (RUN_TEST_LOOP_f_i_tg): Likewise.
7743         (fpclassify_test_data): New variable.
7744         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
7745         (ilogb_test_data): New variable.
7746         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
7747
7748         * math/libm-test.inc (scalbln_test): Correct function name in END
7749         call.
7750
7751         * math/libm-test.inc (struct test_f_f1_data): Add comment.
7752         (RUN_TEST_LOOP_fI_f1): New macro.
7753         (frexp_test_data): New variable.
7754         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
7755
7756         * math/libm-test.inc (struct test_fF_f1_data): New type.
7757         (RUN_TEST_LOOP_fF_f1): New macro.
7758         (modf_test_data): New variable.
7759         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
7760
7761         * math/libm-test.inc (struct test_f_f1_data): New type.
7762         (RUN_TEST_LOOP_f_f1): New macro.
7763         (gamma_test_data): New variable.
7764         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
7765         (lgamma_test_data): New variable.
7766         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
7767
7768 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
7769
7770         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
7771         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
7772         (main): Comment "tls" pseudo-hwcap.
7773
7774 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
7775
7776         * math/libm-test.inc (struct test_fl_f_data): New type.
7777         (RUN_TEST_LOOP_fl_f): New variable.
7778         (scalbln_test_data): New variable.
7779         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
7780
7781         * math/libm-test.inc (struct test_fi_f_data): New type.
7782         (RUN_TEST_LOOP_fi_f): New macro.
7783         (ldexp_test_data): New variable.
7784         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
7785         (scalbn_test_data): New variable.
7786         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
7787
7788         * math/libm-test.inc (struct test_c_f_data): New type.
7789         (RUN_TEST_LOOP_c_f): New macro.
7790         (cabs_test_data): New variable.
7791         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
7792         (carg_test_data): New variable.
7793         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
7794         (cimag_test_data): New variable.
7795         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
7796         (creal_test_data): New variable.
7797         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
7798
7799         * math/libm-test.inc (struct test_if_f_data): New type.
7800         (RUN_TEST_LOOP_if_f): New macro.
7801         (jn_test_data): New variable.
7802         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
7803         (yn_test_data): New variable.
7804         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
7805
7806         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
7807
7808 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7809
7810         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
7811         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
7812
7813 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7814
7815         * benchtests/Makefile (CPPFLAGS-nonlib): Add
7816         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
7817         (bench-deps): Add bench-timing.h.
7818         * benchtests-bench-skeleton.c: Include bench-timing.h.
7819         (main): Use TIMING_* macros instead of clock_gettime.
7820         * benchtests/bench-timing.h: New file.
7821
7822         [BZ #14582]
7823         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
7824         Renamed from _LIB_VERSION.
7825         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
7826
7827 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * math/libm-test.inc (struct test_fff_f_data): New type.
7830         (RUN_TEST_LOOP_fff_f): New macro.
7831         (fma_test_data): New variable.
7832         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
7833         (fma_towardzero_test_data): New variable.
7834         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
7835         (fma_downward_test_data): New variable.
7836         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
7837         (fma_upward_test_data): New variable.
7838         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
7839
7840         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
7841         (struct test_c_c_data): New type.
7842         (RUN_TEST_LOOP_c_c): New macro.
7843         (cacos_test_data): New variable.
7844         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
7845         (cacosh_test_data): New variable.
7846         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
7847         (casin_test_data): New variable.
7848         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
7849         (casinh_test_data): New variable.
7850         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
7851         (catan_test_data): New variable.
7852         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
7853         (catanh_test_data): New variable.
7854         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
7855         (ccos_test_data): New variable.
7856         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
7857         (ccosh_test_data): New variable.
7858         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
7859         (cexp_test_data): New variable.
7860         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
7861         (clog_test_data): New variable.
7862         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
7863         (clog10_test_data): New variable.
7864         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
7865         (conj_test_data): New variable.
7866         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
7867         (cproj_test_data): New variable.
7868         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
7869         (csin_test_data): New variable.
7870         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
7871         (csinh_test_data): New variable.
7872         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
7873         (csqrt_test_data): New variable.
7874         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
7875         (ctan_test_data): New variable.
7876         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
7877         (ctan_tonearest_test_data): New variable.
7878         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
7879         (ctan_towardzero_test_data): New variable.
7880         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
7881         (ctan_downward_test_data): New variable.
7882         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
7883         (ctan_upward_test_data): New variable.
7884         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
7885         (ctanh_test_data): New variable.
7886         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
7887         (ctanh_tonearest_test_data): New variable.
7888         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
7889         (ctanh_towardzero_test_data): New variable.
7890         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
7891         (ctanh_downward_test_data): New variable.
7892         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
7893         (ctanh_upward_test_data): New variable.
7894         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
7895         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
7896         of BUILD_COMPLEX.
7897
7898         * math/libm-test.inc (struct test_ff_f_data): New type.
7899         (struct test_ff_f_data_nexttoward): Likewise.
7900         (RUN_TEST_LOOP_2_f): New macro.
7901         (RUN_TEST_LOOP_ff_f): Likewise.
7902         (atan2_test_data): New variable.
7903         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
7904         (copysign_test_data): New variable.
7905         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
7906         (fdim_test_data): New variable.
7907         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
7908         (fmax_test_data): New variable.
7909         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
7910         (fmin_test_data): New variable.
7911         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
7912         (fmod_test_data): New variable.
7913         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
7914         (hypot_test_data): New variable.
7915         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
7916         (nextafter_test_data): New variable.
7917         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
7918         (nexttoward_test_data): New variable.
7919         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
7920         (pow_test_data): New variable.
7921         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
7922         (pow_tonearest_test_data): New variable.
7923         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
7924         (pow_towardzero_test_data): New variable.
7925         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
7926         (pow_downward_test_data): New variable.
7927         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
7928         (pow_upward_test_data): New variable.
7929         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
7930         (remainder_test_data): New variable.
7931         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
7932         (scalb_test_data): New variable.
7933         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
7934         * sysdeps/i386/fpu/libm-test-ulps: Update.
7935
7936 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
7937
7938         * math/libm-test.inc (fma_test): Use max_value instead of local
7939         variable fltmax.
7940         (nextafter_test): Likewise.
7941
7942         * math/libm-test.inc (acos_towardzero_test_data): New variable.
7943         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
7944         (acos_downward_test_data): New variable.
7945         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
7946         (acos_upward_test_data): New variable.
7947         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
7948         (acosh_test_data): New variable.
7949         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
7950         (asin_test_data): New variable.
7951         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
7952         (asin_tonearest_test_data): New variable.
7953         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
7954         (asin_towardzero_test_data): New variable.
7955         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
7956         (asin_downward_test_data): New variable.
7957         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
7958         (asin_upward_test_data): New variable.
7959         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
7960         (asinh_test_data): New variable.
7961         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
7962         (atan_test_data): New variable.
7963         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
7964         (atanh_test_data): New variable.
7965         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
7966         (cbrt_test_data): New variable.
7967         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
7968         (ceil_test_data): New variable.
7969         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
7970         (cos_test_data): New variable.
7971         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
7972         (cos_tonearest_test_data): New variable.
7973         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
7974         (cos_towardzero_test_data): New variable.
7975         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
7976         (cos_downward_test_data): New variable.
7977         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
7978         (cos_upward_test_data): New variable.
7979         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
7980         (cosh_test_data): New variable.
7981         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
7982         (cosh_tonearest_test_data): New variable.
7983         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
7984         (cosh_towardzero_test_data): New variable.
7985         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
7986         (cosh_downward_test_data): New variable.
7987         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
7988         (cosh_upward_test_data): New variable.
7989         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
7990         (erf_test_data): New variable.
7991         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
7992         (erfc_test_data): New variable.
7993         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
7994         (exp_test_data): New variable.
7995         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
7996         (exp_tonearest_test_data): New variable.
7997         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
7998         (exp_towardzero_test_data): New variable.
7999         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8000         (exp_downward_test_data): New variable.
8001         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8002         (exp_upward_test_data): New variable.
8003         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8004         (exp10_test_data): New variable.
8005         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
8006         (exp2_test_data): New variable.
8007         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
8008         (expm1_test_data): New variable.
8009         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
8010         (fabs_test_data): New variable.
8011         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
8012         (floor_test_data): New variable.
8013         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
8014         (j0_test_data): New variable.
8015         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
8016         (j1_test_data): New variable.
8017         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
8018         (log_test_data): New variable.
8019         (log_test): Run tests with RUN_TEST_LOOP_f_f.
8020         (log10_test_data): New variable.
8021         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
8022         (log1p_test_data): New variable.
8023         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
8024         (log2_test_data): New variable.
8025         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
8026         (logb_test_data): New variable.
8027         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
8028         (logb_downward_test_data): New variable.
8029         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8030         (nearbyint_test_data): New variable.
8031         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
8032         (rint_test_data): New variable.
8033         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
8034         (rint_tonearest_test_data): New variable.
8035         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8036         (rint_towardzero_test_data): New variable.
8037         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8038         (rint_downward_test_data): New variable.
8039         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8040         (rint_upward_test_data): New variable.
8041         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8042         (round_test_data): New variable.
8043         (round_test): Run tests with RUN_TEST_LOOP_f_f.
8044         (sin_test_data): New variable.
8045         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
8046         (sin_tonearest_test_data): New variable.
8047         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8048         (sin_towardzero_test_data): New variable.
8049         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8050         (sin_downward_test_data): New variable.
8051         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8052         (sin_upward_test_data): New variable.
8053         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8054         (sinh_test_data): New variable.
8055         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
8056         (sinh_tonearest_test_data): New variable.
8057         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8058         (sinh_towardzero_test_data): New variable.
8059         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8060         (sinh_downward_test_data): New variable.
8061         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8062         (sinh_upward_test_data): New variable.
8063         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8064         (sqrt_test_data): New variable.
8065         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
8066         (tan_test_data): New variable.
8067         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
8068         (tan_tonearest_test_data): New variable.
8069         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8070         (tan_towardzero_test_data): New variable.
8071         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8072         (tan_downward_test_data): New variable.
8073         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8074         (tan_upward_test_data): New variable.
8075         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8076         (tanh_test_data): New variable.
8077         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
8078         (tgamma_test_data): New variable.
8079         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
8080         (trunc_test_data): New variable.
8081         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
8082         (y0_test_data): New variable.
8083         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
8084         (y1_test_data): New variable.
8085         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
8086         (significand_test_data): New variable.
8087         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
8088
8089 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
8090
8091         [BZ #12387]
8092         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
8093
8094 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8095
8096         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
8097
8098 2013-05-10  Andreas Jaeger  <aj@suse.de>
8099
8100         [BZ #15448]
8101         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
8102         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
8103
8104 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * math/gen-libm-test.pl (adjust_arg): New function.
8107         (special_functions): Handle generating output in both functions
8108         and arrays.
8109         (parse_args): Likewise.
8110         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
8111         $in_func argument to parse_args.
8112         * math/libm-test.inc (struct test_f_f_data): New type.
8113         (IF_ROUND_INIT_): New macro.
8114         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
8115         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
8116         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8117         (IF_ROUND_INIT_FE_UPWARD): Likewise.
8118         (ROUND_RESTORE_): Likewise.
8119         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
8120         (ROUND_RESTORE_FE_TONEAREST): Likewise.
8121         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
8122         (ROUND_RESTORE_FE_UPWARD): Likewise.
8123         (RUN_TEST_LOOP_f_f): New macro.
8124         (acos_test_data): New variable.
8125         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
8126         (acos_tonearest_test_data): New variable.
8127         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8128
8129 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8130
8131         * benchtests/bench-skeleton.c (startup): Fix coding style.
8132
8133 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8134
8135         [BZ #6809]
8136         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
8137         negative infinity argument.
8138         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
8139         negative infinity argument.
8140         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
8141         negative infinity argument.
8142         * math/libm-test.inc (tgamma_test): Expect errno to be set for
8143         domain errors.
8144
8145 2013-05-10  Florian Weimer  <fweimer@redhat.com>
8146
8147         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
8148         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
8149         * iconv/iconv_prog.c (main): Likewise.
8150         * locale/programs/charmap-dir.c (charmap_readdir)
8151         (fopen_uncompressed): Likewise.
8152         * locale/programs/locfile.c (siblings_uncached)
8153         (write_locale_data): Use lstat64 instead of lstat.
8154         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
8155         stat.
8156
8157 2013-05-10  Andreas Jaeger  <aj@suse.de>
8158
8159         [BZ #15395]
8160         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
8161         localization.
8162         Include <locale.h>.
8163
8164 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
8165
8166         * elf/dl-close.c (_dl_close_worker): Add comments.
8167
8168 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
8169
8170         [BZ #15359]
8171         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
8172         high part of pi/2.
8173         (__ieee754_rem_pio2l): Update comments.
8174
8175         [BZ #15429]
8176         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
8177         high part of pi/2.
8178         (__ieee754_rem_pio2l): Update comments.
8179
8180         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
8181         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
8182
8183         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
8184         M_PI_4l.
8185
8186         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
8187         (M_PI_34_LOG10El): Likewise.
8188         (M_PI2_LOG10El): Likewise.
8189         (M_PI4_LOG10El): Likewise.
8190         (M_PI_LOG10El): Likewise.
8191
8192 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8193
8194         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8195
8196 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
8197
8198         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
8199         (MINUS_ZERO_INIT): Likewise.
8200         (PLUS_INFTY_INIT): Likewise.
8201         (MINUS_INFTY_INIT): Likewise.
8202         (QNAN_VALUE_INIT): Likewise.
8203         (MAX_VALUE_INIT): Likewise.
8204         (MIN_VALUE_INIT): Likewise.
8205         (MIN_SUBNORM_VALUE_INIT): Likewise.
8206         (plus_zero): Initialize with PLUS_ZERO_INIT.
8207         (minus_zero): Initialize with MINUS_ZERO_INIT.
8208         (plus_infty): Initialize with PLUS_INFTY_INIT.
8209         (minus_infty): Initialize with MINUS_INFTY_INIT.
8210         (qnan_value): Initialize with QNAN_VALUE_INIT.
8211         (max_value): Initialize with MAX_VALUE_INIT.
8212         (min_value): Initialize with MIN_VALUE_INIT.
8213         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
8214
8215         * math/libm-test.inc (RUN_TEST_if_f): New macro.
8216         (jn_test): Use TEST_if_f instead of TEST_ff_f.
8217         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
8218         (yn_test): Use TEST_if_f instead of TEST_ff_f.
8219
8220         * math/libm-test.inc (RUN_TEST_f_f): New macro.
8221         (RUN_TEST_2_f): Likewise.
8222         (RUN_TEST_ff_f): Likewise.
8223         (RUN_TEST_fi_f): Likewise.
8224         (RUN_TEST_fl_f): Likewise.
8225         (RUN_TEST_fff_f): Likewise.
8226         (RUN_TEST_c_f): Likewise.
8227         (RUN_TEST_f_f1): Likewise.
8228         (RUN_TEST_fF_f1): Likewise.
8229         (RUN_TEST_fI_f1): Likewise.
8230         (RUN_TEST_ffI_f1): Likewise.
8231         (RUN_TEST_c_c): Likewise.
8232         (RUN_TEST_cc_c): Likewise.
8233         (RUN_TEST_f_i): Likewise.
8234         (RUN_TEST_f_i_tg): Likewise.
8235         (RUN_TEST_ff_i_tg): Likewise.
8236         (RUN_TEST_f_b): Likewise.
8237         (RUN_TEST_f_b_tg): Likewise.
8238         (RUN_TEST_f_l): Likewise.
8239         (RUN_TEST_f_L): Likewise.
8240         (RUN_TEST_sincos): Likewise.
8241         * math/gen-libm-test.pl (new_test): Take new argument to indicate
8242         whether to show exceptions.  Do not include ");\n" in return
8243         value.
8244         (special_functions): Output call to RUN_TEST_sincos instead of
8245         check_float calls.  Update calls to new_test.
8246         (parse_args): Output call to single RUN_TEST_* macro instead of
8247         check_* calls and other assignments.  Update calls to new_test.
8248
8249         [BZ #2546]
8250         [BZ #2560]
8251         [BZ #5159]
8252         [BZ #15426]
8253         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
8254         input to result for tgamma overflow.
8255         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
8256         (gamma_coeff): New variable.
8257         (NCOEFF): New macro.
8258         (gamma_positive): New function.
8259         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
8260         underflow here.  Use gamma_positive instead of exp (lgamma) for
8261         other arguments.
8262         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
8263         (gamma_coeff): New variable.
8264         (NCOEFF): New macro.
8265         (gammaf_positive): New function.
8266         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
8267         underflow here.  Use gamma_positive instead of exp (lgamma) for
8268         other arguments.
8269         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
8270         (gamma_coeff): New variable.
8271         (NCOEFF): New macro.
8272         (gammal_positive): New function.
8273         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
8274         underflow here.  Use gamma_positive instead of exp (lgamma) for
8275         other arguments.
8276         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
8277         (gamma_coeff): New variable.
8278         (NCOEFF): New macro.
8279         (gammal_positive): New function.
8280         (__ieee754_gammal_r): Handle positive infinity, overflow and
8281         underflow here.  Handle NaN the same as positive infinity.  Remove
8282         check x < 0xffffffff for negative integers.  Use gamma_positive
8283         instead of exp (lgamma) for other arguments.
8284         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
8285         (gamma_coeff): New variable.
8286         (NCOEFF): New macro.
8287         (gammal_positive): New function.
8288         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
8289         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
8290         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8291         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
8292         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
8293         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8294         * sysdeps/generic/math_private.h (__gamma_productf): New
8295         prototype.
8296         (__gamma_product): Likewise.
8297         (__gamma_productl): Likewise.
8298         * math/Makefile (libm-calls): Add gamma_product.
8299         * math/libm-test.inc (tgamma_test): Add more tests.
8300         * sysdeps/i386/fpu/libm-test-ulps: Update.
8301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8302
8303 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
8304
8305         * benchtests/bench-skeleton.c (main): Preheat CPU.
8306
8307 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
8308
8309         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
8310
8311 2013-05-07  Roland McGrath  <roland@hack.frob.com>
8312
8313         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
8314         and _dl_skip_args_internal.
8315
8316 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
8317
8318         * manual/message.texi (Message Translation): Talk about users.
8319         Message to key mapping impacts design.
8320
8321 2013-05-06  Roland McGrath  <roland@hack.frob.com>
8322
8323         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
8324
8325         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
8326
8327         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
8328         * sysdeps/wordsize-64/glob64.c: ... here.
8329
8330         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
8331         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
8332         New macros.
8333
8334         * debug/getlogin_r_chk.c: Moved to ...
8335         * login/getlogin_r_chk.c: ... here.
8336         * debug/Makefile (routines): Move getlogin_r_chk to ...
8337         * login/Makefile (routines): ... here.
8338         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
8339         * login/Versions (libc: GLIBC_2.4): ... here.
8340
8341         * io/poll.c (__poll): Renamed from poll.
8342         Add libc_hidden_def.
8343         (poll): Define as weak alias.
8344
8345         * debug/ptsname_r_chk.c: Moved to ...
8346         * login/ptsname_r_chk.c: ... here.
8347         * debug/Makefile (routines): Move ptsname_r_chk to ...
8348         * login/Makefile (routines): ... here.
8349         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
8350         * login/Versions (libc: GLIBC_2.4): ... here.
8351
8352         * posix/getlogin.c: Moved to ...
8353         * login/getlogin.c: ... here.
8354         * posix/getlogin_r.c: Moved to ...
8355         * login/getlogin_r.c: ... here.
8356         * posix/getlogin_r.c: Moved to ...
8357         * login/getlogin_r.c: ... here.
8358         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
8359         * login/Makefile (routines): ... here.
8360         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
8361         * login/Versions (libc: GLIBC_2.0): ... here.
8362
8363         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
8364         (setrlimit): Define as weak alias.
8365
8366         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
8367         Call __ names for open, ftruncate, and close.
8368         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
8369         (truncate): Define as weak alias.
8370
8371 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
8372
8373         * math/gen-libm-test.pl (parse_args): Initialize x before each
8374         test of frexp, modf and remquo.
8375
8376         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
8377         test signgam value.
8378
8379 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8380
8381         [BZ #15418]
8382         [BZ #15419]
8383         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
8384         internal tests.
8385         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8386
8387 2013-05-06  Roland McGrath  <roland@hack.frob.com>
8388
8389         * elf/dl-writev.h: New file.
8390         * elf/dl-misc.c: Include it.
8391         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
8392         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
8393
8394 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
8395
8396         * math/libm-test.inc (noXFails): Remove variable.
8397         (noXPasses): Likewise.
8398         (BUILD_COMPLEX_INT): Remove macro.
8399         (print_screen): Remove xfail argument.
8400         (print_screen_max_error): Likewise.
8401         (update_stats): Likewise.
8402         (print_max_error): Likewise.  Update calls to other affected
8403         functions.
8404         (print_complex_max_error): Likewise.
8405         (test_single_exception): Update calls to print_screen.
8406         (test_single_errno): Likewise.
8407         (check_float_internal): Remove xfail argument.  Update calls to
8408         other affected functions.
8409         (check_float): Likewise.
8410         (check_complex): Likewise.
8411         (check_int): Likewise.
8412         (check_long): Likewise.
8413         (check_bool): Likewise.
8414         (check_longlong): Likewise.
8415         (main): Don't print noXFails and noXPasses.
8416         * math/gen-libm-test.pl (top level): Don't mention expected
8417         failure handling in comment.
8418         (new_test): Don't handle expected failures.
8419         (parse_args): Don't mention expected failure handling in comment.
8420         (generate_testfile): Don't handle expected failures.
8421         (parse_ulps): Likewise.
8422         (print_ulps_file): Likewise.
8423         (get_failure): Remove function.
8424         (output_test): Don't handle expected failures.
8425         * make/README.libm-test: Don't mention expected failure handling.
8426
8427         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
8428         (minus_zero): Likewise.
8429         (plus_infty): Likewise.
8430         (minus_infty): Likewise.
8431         (qnan_value): Likewise.
8432         (max_value): Likewise.
8433         (min_value): Likewise.
8434         (min_subnorm_value): Likewise.
8435         (initialize): Do not initialize those variables dynamically.
8436
8437 2013-05-03  Roland McGrath  <roland@hack.frob.com>
8438
8439         * io/open.c (__open_2): Moved to ...
8440         * io/open_2.c: ... this new file.
8441         * io/open64.c (__open64_2): Moved to ...
8442         * io/open64_2.c: ... this new file.
8443         * io/openat.c (__openat_2): Moved to ...
8444         * io/openat_2.c: ... this new file.
8445         * io/openat64.c (__openat64_2): Moved to ...
8446         * io/openat64_2.c: ... this new file.
8447         * io/Makefile (routines): Add them.
8448         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
8449         * sysdeps/unix/sysv/linux/open_2.c: File removed.
8450         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
8451         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
8452         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
8453         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
8454         (__openat64): Add hidden_ver.
8455         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
8456         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
8457
8458         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8459         Separately conditionalize setting of GLRO(dl_sysinfo) so
8460         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
8461         as well, but the actual setting is only under [NEED_DL_SYSINFO].
8462
8463 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8464
8465         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
8466         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
8467         definition.
8468         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
8469         * sysdeps/unix/sysv/linux/powerpc/init-first.c
8470         (_libc_vdso_platform_setup): Add __vdso_time initialization.
8471         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
8472         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
8473
8474 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
8475
8476         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
8477         test signgam value.
8478
8479         * math/libm-test.inc (hypot_test): Do not use
8480         IGNORE_ZERO_INF_SIGN.
8481
8482 2013-05-03  Andreas Jaeger  <aj@suse.de>
8483
8484         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
8485         Linux 3.9.
8486         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
8487         (PF_MAX): Adjust for VSOCK change.
8488
8489 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8490
8491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8492
8493 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
8494
8495         [BZ #15264]
8496         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
8497         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
8498         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
8499
8500 2013-05-02  David S. Miller  <davem@davemloft.net>
8501
8502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8503
8504 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
8505
8506         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
8507
8508 2013-05-01  Roland McGrath  <roland@hack.frob.com>
8509
8510         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
8511
8512 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
8513
8514         [BZ #14952]
8515         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
8516         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
8517         Use __attribute__ ((__gnu_inline__)).
8518         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
8519         Don't use __attribute__ ((__gnu_inline__)).
8520
8521 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
8522
8523         [BZ #15423]
8524         * math/s_catan.c (__catan): Handle small real or imaginary part of
8525         input specially to avoid spurious underflow.
8526         * math/s_catanf.c (__catanf): Likewise.
8527         * math/s_catanh.c (__catanh): Likewise.
8528         * math/s_catanhf.c (__catanhf): Likewise.
8529         * math/s_catanhl.c (__catanhl): Likewise.
8530         * math/s_catanl.c (__catanl): Likewise.
8531         * math/libm-test.inc (catan_test): Add more tests.
8532         (catanh_test): Likewise.
8533         * sysdeps/i386/fpu/libm-test-ulps: Update.
8534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8535
8536 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8537
8538         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8539
8540 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
8541
8542         [BZ #15416]
8543         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
8544         accurately for denominator in atan2.
8545         * math/s_catanf.c (__catanf): Likewise.
8546         * math/s_catanh.c (__catanh): Likewise.
8547         * math/s_catanhf.c (__catanhf): Likewise.
8548         * math/s_catanhl.c (__catanhl): Likewise.
8549         * math/s_catanl.c (__catanl): Likewise.
8550         * math/libm-test.inc (catan_test): Add more tests.
8551         (catanh_test): Likewise.
8552         * sysdeps/i386/fpu/libm-test-ulps: Update.
8553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8554
8555 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8556
8557         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
8558
8559         * benchtests/Makefile (bench): Remove slow benchmarks.
8560         * benchtests/atan-inputs: Add slow benchmark inputs.
8561         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
8562         (BENCH_FUNC): Accept variant offset.
8563         (VARIANT): Define.
8564         * benchtests/bench-skeleton.c (main): Run benchmark for each
8565         variant.
8566         * benchtests/cos-inputs: Add slow benchmark inputs.
8567         * benchtests/exp-inputs: Likewise.
8568         * benchtests/pow-inputs: Likewise.
8569         * benchtests/sin-inputs: Likewise.
8570         * benchtests/slowatan-inputs: Remove.
8571         * benchtests/slowatan.c: Remove.
8572         * benchtests/slowcos-inputs: Remove.
8573         * benchtests/slowcos.c: Remove.
8574         * benchtests/slowexp-inputs: Remove.
8575         * benchtests/slowexp.c: Remove.
8576         * benchtests/slowpow-inputs: Remove.
8577         * benchtests/slowpow.c: Remove.
8578         * benchtests/slowsin-inputs: Remove.
8579         * benchtests/slowsin.c: Remove.
8580         * benchtests/slowtan-inputs: Remove.
8581         * benchtests/slowtan.c: Remove.
8582         * benchtests/tan-inputs: Add slow benchmark inputs.
8583         * scripts/bench.pl: Parse comments and directives.
8584
8585         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
8586         in CPPFLAGS.
8587         ($(objpfx)bench-%.c): Remove *-ITER.
8588         * benchtests/bench-modf.c: Remove definition of ITER.
8589         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
8590         (main): Loop for DURATION seconds instead of fixed number of
8591         iterations.
8592         * scripts/bench.pl: Don't expect iterations in parameters.
8593
8594 2013-04-29  Roland McGrath  <roland@hack.frob.com>
8595
8596         * io/fchdir.c (__fchdir): Renamed from fchdir.
8597         (fchdir): Define as weak alias.
8598
8599 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
8600
8601         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
8602         (ERRNO_EDOM): Likewise.
8603         (ERRNO_ERANGE): Likewise.
8604         (noErrnoTests): New variable.
8605         (init_max_error): Set errno to 0.
8606         (test_single_errno): New function.
8607         (test_errno): Likewise.
8608         (check_float_internal): Call test_errno.  Set errno to 0.
8609         (check_complex): Refer to errno tests in comment.
8610         (check_int): Call test_errno.  Set errno to 0.
8611         (check_long): Likewise.
8612         (check_bool): Likewise.
8613         (check_longlong): Likewise.
8614         (cos_test): Use ERRNO_* flags for errno tests instead of
8615         check_int.
8616         (expm1_test): Likewise.
8617         (fmod_test): Likewise.
8618         (ilogb_test): Likewise.
8619         (lgamma_test): Likewise.
8620         (pow_test): Likewise.
8621         (remainder_test): Likewise.
8622         (sin_test): Likewise.
8623         (tan_test): Likewise.
8624         (yn_test): Likewise.
8625         (initialize): Set errno to 0.
8626         (main): Print number of errno tests.
8627         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
8628
8629 2013-04-29  Andreas Jaeger  <aj@suse.de>
8630
8631         [BZ #15084]
8632         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
8633         and RES_USEVC.
8634
8635         [BZ #15085]
8636         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
8637         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
8638         unimplemented.
8639
8640         [BZ #15380]
8641         * stdlib/random.c (__initstate): Return NULL if
8642         __initstate fails.
8643
8644         [BZ #15086]
8645         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
8646         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
8647         RES_SNGLKUPREOP.
8648
8649 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8650
8651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8652
8653 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
8654
8655         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
8656         of individual tests.
8657         (casin_test): Likewise.
8658         (casinh_test): Likewise.
8659
8660 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
8661
8662         [BZ #15409]
8663         * math/s_catan.c (__catan): Handle arguments with large real or
8664         imaginary part separately without squaring.
8665         * math/s_catanf.c (__catanf): Likewise.
8666         * math/s_catanh.c (__catanh): Likewise.
8667         * math/s_catanhf.c (__catanhf): Likewise.
8668         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
8669         and redefine.
8670         (__catanhl): Handle arguments with large real or imaginary part
8671         separately without squaring.
8672         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
8673         and redefine.
8674         (__catanl): Handle arguments with large real or imaginary part
8675         separately without squaring.
8676         * math/libm-test.inc (catan_test): Add more tests.
8677         (catanh_test): Likewise.
8678         * sysdeps/i386/fpu/libm-test-ulps: Update.
8679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8680
8681 2013-04-27  Andreas Jaeger  <aj@suse.de>
8682
8683         [BZ #15007]
8684         * stdlib/stdlib.h: Update guards for qecvt.
8685         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
8686         <stdlib.h>.
8687
8688 2013-04-27  Allan McRae  <allan@archlinux.org>
8689
8690         * sysdeps/i386/fpu/libm-test-ulps: Update.
8691
8692 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
8693
8694         [BZ #15406]
8695         * math/s_catan.c: Include <float.h>.
8696         (__catan): Ensure underflow exception occurs for underflowed
8697         result.
8698         * math/s_catanf.c: Include <float.h>.
8699         (__catanf): Ensure underflow exception occurs for underflowed
8700         result.
8701         * math/s_catanh.c: Include <float.h>.
8702         (__catanh): Ensure underflow exception occurs for underflowed
8703         result.
8704         * math/s_catanhf.c: Include <float.h>.
8705         (__catanhf): Ensure underflow exception occurs for underflowed
8706         result.
8707         * math/s_catanhl.c: Include <float.h>.
8708         (__catanhl): Ensure underflow exception occurs for underflowed
8709         result.
8710         * math/s_catanl.c: Include <float.h>.
8711         (__catanl): Ensure underflow exception occurs for underflowed
8712         result.
8713         * math/libm-test.inc (catan_test): Add more tests.
8714         (catanh_test): Likewise.
8715
8716         [BZ #15405]
8717         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
8718         underflowed result.
8719         * math/s_ccoshf.c (__ccoshf): Likewise.
8720         * math/s_ccoshl.c (__ccoshl): Likewise.
8721         * math/s_csin.c (__csin): Likewise.
8722         * math/s_csinf.c (__csinf): Likewise.
8723         * math/s_csinh.c (__csinh): Likewise.
8724         * math/s_csinhf.c (__csinhf): Likewise.
8725         * math/s_csinhl.c (__csinhl): Likewise.
8726         * math/s_csinl.c (__csinl): Likewise.
8727         * math/libm-test.inc (ccos_test): Add more tests.
8728         (ccosh_test): Likewise.
8729         (csin_test): Likewise.
8730         (csinh_test): Likewise.
8731
8732 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8733
8734         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
8735         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
8736         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
8737         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
8738         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
8739         powerpc/power5+/fpu folders.
8740         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
8741
8742
8743 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8744
8745         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8746
8747 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
8750         additions to variable.
8751         [$(config-machine) = x86_64] (modules-names): Likewise.
8752         ($(objpfx)tst-audit3): Remove dependency.
8753         ($(objpfx)tst-audit3.out): Likewise.
8754         ($(objpfx)tst-audit4): Likewise.
8755         ($(objpfx)tst-audit4.out): Likewise.
8756         ($(objpfx)tst-audit5): Likewise.
8757         ($(objpfx)tst-audit5.out): Likewise.
8758         ($(objpfx)tst-audit6): Likewise.
8759         ($(objpfx)tst-audit6.out): Likewise.
8760         ($(objpfx)tst-audit7): Likewise.
8761         ($(objpfx)tst-audit7.out): Likewise.
8762         (tst-audit3-ENV): Remove variable.
8763         (tst-audit4-ENV): Likewise.
8764         (tst-audit5-ENV): Likewise.
8765         (tst-audit6-ENV): Likewise.
8766         (tst-audit7-ENV): Likewise.
8767         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
8768         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
8769         addition to variable.
8770         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
8771         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
8772         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
8773         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
8774         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
8775         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
8776         tst-audit3, tst-audit4 and tst-audit5.
8777         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
8778         tst-audit6 and tst-audit7.
8779         [$(subdir) = elf] (modules-names): Add audit modules for those
8780         tests.
8781         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
8782         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
8783         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
8784         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
8785         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
8786         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
8787         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
8788         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
8789         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
8790         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
8791         [$(subdir) = elf] (tst-audit3-ENV): New variable.
8792         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
8793         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
8794         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
8795         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
8796         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
8797         Likewise.
8798         [$(subdir) = elf && $(config-cflags-avx) = yes]
8799         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
8800         [$(subdir) = elf && $(config-cflags-avx) = yes]
8801         (CFLAGS-tst-auditmod4a.c): Likewise.
8802         [$(subdir) = elf && $(config-cflags-avx) = yes]
8803         (CFLAGS-tst-auditmod4b.c): Likewise.
8804         [$(subdir) = elf && $(config-cflags-avx) = yes]
8805         (CFLAGS-tst-auditmod6b.c): Likewise.
8806         [$(subdir) = elf && $(config-cflags-avx) = yes]
8807         (CFLAGS-tst-auditmod6c.c): Likewise.
8808         [$(subdir) = elf && $(config-cflags-avx) = yes]
8809         (CFLAGS-tst-auditmod7b.c): Likewise.
8810         * elf/tst-audit3.c: Move to ...
8811         * sysdeps/x86_64/tst-audit3.c: ... here.
8812         * elf/tst-audit4.c: Move to ...
8813         * sysdeps/x86_64/tst-audit4.c: ... here.
8814         * elf/tst-audit5.c: Move to ...
8815         * sysdeps/x86_64/tst-audit5.c: ... here.
8816         * elf/tst-audit6.c: Move to ...
8817         * sysdeps/x86_64/tst-audit6.c: ... here.
8818         * elf/tst-audit7.c: Move to ...
8819         * sysdeps/x86_64/tst-audit7.c: ... here.
8820         * elf/tst-auditmod3a.c: Move to ...
8821         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
8822         * elf/tst-auditmod3b.c: Move to ...
8823         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
8824         * elf/tst-auditmod4a.c: Move to ...
8825         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
8826         * elf/tst-auditmod4b.c: Move to ...
8827         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
8828         * elf/tst-auditmod5a.c: Move to ...
8829         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
8830         * elf/tst-auditmod5b.c: Move to ...
8831         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
8832         * elf/tst-auditmod6a.c: Move to ...
8833         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
8834         * elf/tst-auditmod6b.c: Move to ...
8835         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
8836         * elf/tst-auditmod6c.c: Move to ...
8837         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
8838         * elf/tst-auditmod7a.c: Move to ...
8839         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
8840         * elf/tst-auditmod7b.c: Move to ...
8841         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
8842
8843 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
8844
8845         [BZ #15366]
8846         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
8847         define unconditionally.
8848         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
8849         define unconditionally.
8850         (INT8_C, INT16_C, etc.): Likewise.
8851
8852 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
8853
8854         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
8855         __ehdr_start with hidden visibility.
8856
8857         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
8858
8859 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
8860
8861         * math/libm-test.inc (cos_test): Use accurate hex constants.
8862         (sincost_test): Likewise.
8863
8864 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
8865
8866         * math/libm-test.inc (catan_test): Add more tests.
8867         (catanh_test): Likewise.
8868
8869         * math/s_catanf.c (__catanf): Use suffixed floating-point
8870         constants.
8871         * math/s_catanhf.c (__catanhf): Likewise.
8872         * math/s_catanhl.c (__catanhl): Likewise.
8873         * math/s_catanl.c (__catanl): Likewise.
8874
8875         [BZ #15394]
8876         * math/s_catan.c (__catan): Calculate imaginary part of result
8877         with log1p not log unless computing log of number close to 0.
8878         * math/s_catanf.c (__catanf): Likewise.
8879         * math/s_catanl.c (__catanl): Likewise.
8880         * math/s_catanh.c (__catanh): Calculate real part of result with
8881         log1p not log unless computing log of number close to 0.
8882         * math/s_catanhf.c (__catanhf): Likewise.
8883         * math/s_catanhl.c (__catanhl): Likewise.
8884         * math/libm-test.inc (catan_test): Add more tests.
8885         (catanh_test): Likewise.
8886         * sysdeps/i386/fpu/libm-test-ulps: Update.
8887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8888
8889 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8890
8891         * benchtests/Makefile: Mention files in which fast and slow
8892         paths of math functions are implemented.
8893
8894 2013-04-23  Roland McGrath  <roland@hack.frob.com>
8895
8896         * sysdeps/posix/timespec_get.c: New file.
8897
8898 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8899
8900         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
8901         POWER.
8902         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
8903         for POWER.
8904         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
8905         powerpc/power5/fpu folders.
8906         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
8907         * benchtests/Makefile: Add modf testcase.
8908         * benchtests/bench-modf.c: New file: Benchmark test for mo
8909
8910 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
8911
8912         [BZ #14888]
8913         * time/Makefile (tests): Add tst-strptime-whitespace.
8914         * time/strptime_l.c (get_number): Use ISSPACE.
8915         (__strptime_internal): Likewise.
8916         * time/tst-strptime-whitespace.c: New test case.
8917
8918 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
8919
8920         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
8921         member.
8922         (_nss_files_init): Set it here.
8923
8924 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
8925
8926         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
8927         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
8928         unsigned.
8929
8930 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
8931
8932         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
8933
8934 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8935
8936         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
8937         size just once.
8938
8939 2013-04-21  David S. Miller  <davem@davemloft.net>
8940
8941         * po/ru.po: Update Russion translation from translation project.
8942
8943 2013-04-17  Adam Conrad  <adconrad@0c3.net>
8944
8945         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
8946         and setfsgid.
8947
8948 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
8949
8950         * configure.in: Remove i386 configure warning. Remove i386 case.
8951         * configure: Regenerate.
8952         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
8953         Add example to error message.
8954         * sysdeps/i386/configure: Regenerate.
8955
8956 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8957
8958         * benchtests/Makefile (bench): Add cos, tan, slowcos and
8959         slowtan.
8960         * benchtests/cos-inputs: New file.
8961         * benchtests/slowcos-inputs: New file.
8962         * benchtests/slowcos.c: New file.
8963         * benchtests/slowtan-inputs: New file.
8964         * benchtests/slowtan.c: New file.
8965         * benchtests/tan-inputs: New file.
8966
8967 2013-04-16  Roland McGrath  <roland@hack.frob.com>
8968
8969         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
8970         considered kosher.
8971
8972 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8973
8974         * benchtests/Makefile: Include cppflags-iterator.mk to add
8975         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
8976
8977         * Makefile.in (bench-clean): New target.
8978         * benchtests/Makefile (bench-clean): Likewise.
8979
8980 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
8981
8982         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
8983
8984 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
8985
8986         * stdio-common/tstdiomisc.c: Fix coding-style violation.
8987
8988 2013-04-15  Andreas Schwab  <schwab@suse.de>
8989
8990         * nscd/grpcache.c (cache_addgr): Properly check for short write.
8991         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8992         * nscd/pwdcache.c (cache_addpw): Likewise.
8993         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
8994         more than recsize.
8995
8996 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8997
8998         * benchtests/Makefile (bench): Write all output to
8999         bench-out.tmp together.
9000
9001 2013-04-15  Andreas Schwab  <schwab@suse.de>
9002
9003         * nscd/nscd.c (main): Don't fork again after closing files.
9004
9005 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9006
9007         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
9008
9009         * benchtests/Rules (bench-deps): Collect dependencies into a
9010         single variable.  Add Makefile to dependencies.
9011         ($(objpfx)bench-%.c): Depend on bench-deps.
9012
9013 2013-04-12  Roland McGrath  <roland@hack.frob.com>
9014             Xavier Roche  <roche+kml2@exalead.com>
9015
9016         [BZ #15361]
9017         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
9018         just that it's a file descriptor.
9019         * manual/llio.texi (Synchronizing AIO Operations): Update description
9020         for EBADF error from aio_fsync.
9021
9022 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9023
9024         * Rules (bench): Move target definition...
9025         * benchtests/Makefile: ... here.
9026
9027 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
9028
9029         * math/libm-test.inc (cos_test): Fix PI/2 test.
9030         (sincos_test): Likewise.
9031         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
9032         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
9033
9034 2013-04-11  Andreas Schwab  <schwab@suse.de>
9035
9036         [BZ #13988]
9037         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
9038         accept exponent character only when digits were seen.
9039         * stdio-common/Makefile (tests): Add bug26.
9040         * stdio-common/bug26.c: New file.
9041
9042         [BZ #14293]
9043         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
9044         non-freeable.
9045
9046 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9047
9048         * Makeconfig (rtld-prefix): Define built linker prefix.
9049         * Rules (run-bench): Use it.
9050         * math/Makefile (run-regen-ulps): Likewise.
9051
9052         * Rules (bench): Remove eval.
9053
9054 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9055             Roland McGrath  <roland@hack.frob.com>
9056             Ondrej Bilka  <neleai@seznam.cz>
9057
9058         [BZ #15346]
9059         * time/getdate.c: Include ctype.h and alloca.h.
9060         (__getdate_r): Trim leading and trailing spaces of input.
9061         * time/tst-getdate.c (tests): Add tests with leading and
9062         trailing spaces.
9063
9064 2013-04-08  Roland McGrath  <roland@hack.frob.com>
9065
9066         [BZ #14280]
9067         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
9068         when computing value.
9069
9070 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9071
9072         * math/README.libm-test (How can I generate "libm-test-ulps"?):
9073         Use testrun.sh to run libm tests.
9074
9075         [BZ #15309]
9076         * elf/dl-open.c (dl_open_worker): memset all of seen array.
9077
9078 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
9079
9080         [BZ #15264]
9081         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
9082
9083 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9084
9085         * Makefile.in (regen-ulps): New target.
9086         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
9087         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
9088         [ifneq (no,$(PERL)] (regen-ulps): New target.
9089         [ifeq (no,$(PERL)] (regen-ulps): New target.
9090         * math/libm-test.inc (ulps_file_name): Define.
9091         (output_dir): New variable.
9092         (options): Add "output-dir" option.
9093         (parse_opt): Handle 'o' case.
9094         (main): If output_dir is non-NULL use it as a prefix
9095         otherwise use "".
9096         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
9097
9098 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9099
9100         [BZ #10060, #10062]
9101         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
9102         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
9103         fail configure if __sync_val_compare_and_swap is not inlined.
9104         * sysdeps/i386/configure: Regenerate.
9105         * configure.in: Build for i686 when configured for i386.
9106         * configure: Regenerate.
9107         * README: Remove i386 reference.
9108
9109 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9110
9111         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
9112         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9113
9114 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9115
9116         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
9117         (lmsnanval): New variables.
9118         (F): Add conversion tests.
9119         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
9120         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
9121
9122         * stdio-common/tstdiomisc.c (F): Properly collect individual
9123         tests' results.
9124
9125         [BZ #14686, #15336]
9126         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
9127         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
9128         Instead, use input NaN values or generate a qNaN by arithmetic
9129         operation.  Also fix bugs to comply with the standard.
9130         * math/libm-test.inc (remainder_test): Add more tests.
9131
9132         [BZ #15335, #15342]
9133         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
9134         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
9135         input NaN values or generate a qNaN by arithmetic operation.
9136
9137         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
9138         unreachable code.
9139
9140         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
9141         definitions.
9142
9143 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
9144
9145         [BZ #14478]
9146         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
9147         underflowed result.
9148         * math/s_cexpf.c (__cexpf): Likewise.
9149         * math/s_cexpl.c (__cexpl): Likewise.
9150         * math/libm-test.inc (cexp_test): Add more tests.
9151
9152 2013-04-03  Andreas Schwab  <schwab@suse.de>
9153
9154         [BZ #15330]
9155         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
9156         order arrays from heap if bigger than alloca cutoff.
9157
9158 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
9159
9160         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
9161         (SNAN_TESTS_double): Refer to GCC PR56831.
9162         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
9163         GCC PR56828.
9164
9165 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
9166
9167         * Rules (bench): Move bench.out after the run is complete.
9168
9169         * Rules (bench): Echo currently running benchmark.
9170
9171         * benchtests/Makefile (bench): Add atan and slowatan.
9172         * benchtests/atan-inputs: New file.
9173         * benchtests/slowatan-inputs: New file.
9174         * benchtests/slowatan.c: New file.
9175
9176         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
9177         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
9178         its value.
9179
9180         [BZ #15305]
9181         * sysdeps/unix/sysv/linux/kernel-features.h
9182         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
9183         __ASSUME_XFS_RESTRICTED_CHOWN.
9184         * sysdeps/unix/sysv/linux/pathconf.c
9185         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
9186         Save and restore errno.
9187
9188 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
9189
9190         [BZ #15327]
9191         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
9192         arguments using __kernel_casinh.
9193         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
9194         arguments using __kernel_casinhf.
9195         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
9196         arguments using __kernel_casinhl.
9197         * math/libm-test.inc (cacosh_test): Add more tests.
9198         * sysdeps/i386/fpu/libm-test-ulps: Update.
9199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9200
9201 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9202
9203         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
9204         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
9205
9206         * bench/Makefile (bench): Add sin and slowsin.
9207         * benchtests/sin-inputs: New file.
9208         * benchtests/slowsin-inputs: New file.
9209         * benchtests/slowsin.c: New file.
9210
9211         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
9212         (bench): Add slowexp and slowpow.
9213         (exp-ITER): Increase iterations.
9214         (pow-ITER): Likewise.
9215         * benchtests/exp-inputs: Change input.
9216         * benchtests/pow-inputs: Likewise.
9217         * benchtests/slowexp-inputs: New file.
9218         * benchtests/slowexp.c: New file.
9219         * benchtests/slowpow-inputs: New file.
9220         * benchtests/slowpow.c: New file.
9221
9222 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9223
9224         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
9225         instructions.
9226         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
9227         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
9228         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
9229         * benchtests/Makefile: Add rint benchtest.
9230         * benchtests/rint-inputs: Input for rint benchtest.
9231
9232 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9233
9234         * Versions.def (libm): Add GLIBC_2.18.
9235         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
9236         hidden libm prototypes.
9237         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
9238         * math/Makefile (libm-calls): Add s_issignaling.
9239         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
9240         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
9241         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
9242         declaration.
9243         * math/math.h [__USE_GNU] (issignaling): New macro.
9244         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
9245         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
9246         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
9247         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
9248         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
9249         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
9250         * manual/arith.texi (issignaling): New section.
9251         * manual/libm-err-tab.pl (@all_functions): Update comment.
9252         * math/gen-libm-test.pl (parse_args): Apply special handling for
9253         issignaling.
9254         * math/libm-test.inc (print_float, issignaling_test): New
9255         functions.
9256         (check_float_internal): Add issignaling checks.
9257         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
9258         default definition.
9259         * sysdeps/powerpc/math-tests.h: New file.
9260         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
9261         tests.
9262         * math/test-snan.c (TEST_FUNC): Likewise.
9263
9264 2013-03-30  David S. Miller  <davem@davemloft.net>
9265
9266         * po/de.po: Update from translation team.
9267
9268 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
9269
9270         [BZ #10357]
9271         * math/k_casinh.c (__kernel_casinh): Handle arguments with
9272         imaginary part less than 1.0 and real part less than 0.5
9273         specially.
9274         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9275         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9276         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
9277         (cacos_test): Add more tests.
9278         (casin_test): Likewise.
9279         (casinh_test): Likewise.
9280         * sysdeps/i386/fpu/libm-test-ulps: Update.
9281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9282
9283 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9284
9285         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
9286         ONE with its value.
9287
9288         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
9289         (__pow_mp): Replace ONE and MONE with their values.
9290         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
9291         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
9292         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
9293         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
9294         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
9295         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
9296
9297         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
9298
9299         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
9300         (__pow_mp): Replace ZERO and MZERO with their values.
9301         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
9302         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
9303         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
9304         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
9305         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
9306         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
9307         (__sqr): Likewise.
9308
9309         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
9310
9311         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
9312
9313 2013-03-28  Roland McGrath  <roland@hack.frob.com>
9314
9315         * include/stdlib.h [!SHARED] (__call_tls_dtors):
9316         Declare with __attribute__ ((weak)).
9317         * stdlib/exit.c (__libc_atexit) [!SHARED]:
9318         Call __call_tls_dtors only if it's not NULL.
9319
9320 2013-03-28  Roland McGrath  <roland@hack.frob.com>
9321
9322         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
9323         didn't do it already, then set _dl_phdr and _dl_phnum based on the
9324         magic __ehdr_start linker symbol if it's defined.
9325         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
9326         them up here if it was already done.
9327
9328         * elf/dl-support.c (_dl_phdr): Make pointer to const.
9329         (_dl_aux_init): Use const in cast when setting it.
9330         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
9331         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
9332         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
9333
9334         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
9335         Declare them here.
9336         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
9337         * csu/libc-tls.c: Nor here.
9338         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
9339
9340         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
9341         (__libc_message): Never call vsyslog.
9342
9343 2013-03-28  Alan Modra  <amodra@gmail.com>
9344
9345         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
9346         Define as empty.
9347         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
9348         Likewise.
9349
9350 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9351
9352         [BZ #15214]
9353         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
9354         underflow.
9355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9356
9357 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9358
9359         [BZ #15304]
9360         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
9361         Don't add gid passed as argument.
9362
9363         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
9364
9365 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
9366
9367         [BZ #15307]
9368         * math/k_casinh.c (__kernel_casinh): Handle arguments with
9369         imaginary part between 1.0 and 1.5 and real part less than 0.5
9370         specially.
9371         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9372         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9373         * math/libm-test.inc (cacos_test): Add more tests.
9374         (casin_test): Likewise.
9375         (casinh_test): Likewise.
9376         * sysdeps/i386/fpu/libm-test-ulps: Update.
9377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9378
9379 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9380
9381         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
9382         constants.
9383         (norm): Likewise.
9384         (denorm): Likewise.
9385         (__dbl_mp): Likewise.
9386         (add_magnitudes): Likewise.
9387         (sub_magnitudes): Likewise.
9388         (__add): Likewise.
9389         (__sub): Likewise.
9390         (__mul): Likewise.
9391         (__sqr): Likewise.
9392         (__inv): Likewise.
9393         (__dvd): Likewise.
9394
9395         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
9396         commented code.
9397         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
9398         (__dubcos): Likewise.
9399         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
9400         (__ieee754_acos): Likewise.
9401         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
9402         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
9403         (__exp1): Likewise.
9404         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
9405         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9406         (log1): Likewise.
9407         (my_log2): Likewise.
9408         (checkint): Likewise.
9409         * sysdeps/ieee754/dbl-64/e_remainder.c
9410         (__ieee754_remainder): Likewise.
9411         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
9412         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
9413         (bsloww): Likewise.
9414         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
9415
9416         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
9417         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
9418         MANTISSA_STORE_T to store computations on mantissa.  Use
9419         macros for rounding and division.
9420         (denorm): Likewise.
9421         (__dbl_mp): Likewise.
9422         (add_magnitudes): Likewise.
9423         (sub_magnitudes): Likewise.
9424         (__mul): Likewise.
9425         (__sqr): Likewise.
9426         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
9427         powers of two in terms of TWOPOW macro.
9428         (mp_no): Make type of mantissa as MANTISSA_T.
9429         [!RADIXI]: Define RADIXI.
9430         [!TWO52]: Define TWO52.
9431         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
9432
9433 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9434
9435         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
9436         llroundl symbol when building for PPC32.
9437
9438 2013-03-24  Mark H Weaver  <mhw@netris.org>
9439
9440         * manual/arith.texi (Normalization Functions): Fix prototypes for
9441         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
9442
9443 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9444
9445         [BZ #13889]
9446         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
9447         high value to check if expl overflow.
9448         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
9449         to check for underflow and overflow.
9450         * math/libm-test.inc: Add exp test.
9451
9452 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
9453
9454         [BZ #11120]
9455         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
9456         with NOT_IN_libc.
9457
9458 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9459
9460         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
9461         symbol.
9462
9463 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9464
9465         * math/gen-libm-test.pl (parse_args, special_functions): Properly
9466         wrap blocks consisting of several statements.
9467
9468         * sysdeps/generic/math-tests.h: New file.
9469         * sysdeps/i386/fpu/math-tests.h: Likewise.
9470         * math/test-snan.c: Include it.
9471         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
9472
9473 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
9474
9475         [BZ #15285]
9476         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
9477         (__ieee754_j0l): Do not improve calculations using cos of twice
9478         input for inputs above LDBL_MAX / 2.0L.
9479         (__ieee754_y0l): Likewise.
9480         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
9481         (__ieee754_j1l): Do not improve calculations using cos of twice
9482         input for inputs above LDBL_MAX / 2.0L.
9483         (__ieee754_y1l): Likewise.
9484         * math/libm-test.inc (j0_test): Add another test.
9485         (j1_test): Likewise.
9486         (y0_test): Likewise.
9487         (y1_test): Likewise.
9488         * sysdeps/i386/fpu/libm-test-ulps: Update.
9489
9490 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9491
9492         * Rules ($(objpfx)bench-%.c): Include code from a C source
9493         file.
9494
9495 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
9496
9497         [BZ #15287]
9498         * math/k_casinh.c (__kernel_casinh): Handle arguments with
9499         imaginary part 1.0 and real part less than 0.5 specially.
9500         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9501         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9502         * math/libm-test.inc (cacos_test): Add more tests.
9503         (casin_test): Likewise.
9504         (casinh_test): Likewise.
9505         * sysdeps/i386/fpu/libm-test-ulps: Update.
9506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9507
9508 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9509
9510         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
9511         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
9512
9513 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
9514
9515         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
9516         * config.make.in (config-cflags-sse4): Remove variable.
9517         (config-cflags-avx): Likewise.
9518         (config-cflags-sse2avx): Likewise.
9519         (config-cflags-novzeroupper): Likewise.
9520         (config-asflags-i686): Likewise.
9521         (have-mfma4): Likewise.
9522         (have-as-vis3): Likewise.
9523         (MIG): Likewise.
9524         * configure.in (MIG): Do not AC_SUBST.
9525         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
9526         (libc_cv_cc_sse4): Do not AC_SUBST.
9527         (libc_cv_cc_avx): Likewise.
9528         (libc_cv_cc_sse2avx): Likewise.
9529         (libc_cv_cc_novzeroupper): Likewise.
9530         (libc_cv_cc_fma4): Likewise.
9531         (libc_cv_as_i686): Likewise.
9532         (libc_cv_sparc_as_vis3): Likewise.
9533         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
9534         LIBC_CONFIG_VAR.
9535         (config-asflags-i686): Likewise.
9536         (config-cflags-avx): Likewise.
9537         (config-cflags-sse2avx): Likewise.
9538         (have-mfma4): Likewise.
9539         (config-cflags-novzeroupper): Likewise.
9540         * sysdeps/mach/configure.in (MIG): Likewise.
9541         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
9542         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
9543         LIBC_CONFIG_VAR.
9544         (config-cflags-avx): Likewise.
9545         (config-cflags-sse2avx): Likewise.
9546         (have-mfma4): Likewise.
9547         (config-cflags-novzeroupper): Likewise.
9548         * configure: Regenerated.
9549         * sysdeps/i386/configure: Likewise.
9550         * sysdeps/mach/configure: Likewise.
9551         * sysdeps/sparc/configure: Likewise.
9552         * sysdeps/x86_64/configure: Likewise.
9553
9554 2013-03-20  Roland McGrath  <roland@hack.frob.com>
9555
9556         [BZ #14812]
9557         * locale/programs/localedef.c (options): Put N_ translation marker
9558         on argument names, not just descriptions.
9559
9560 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9561
9562         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
9563
9564 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
9565
9566         [BZ #14176]
9567         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
9568
9569 2013-03-19  Roland McGrath  <roland@hack.frob.com>
9570
9571         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
9572         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
9573         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
9574         [!BEFORE_ABORT] (before_abort): New function.
9575         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
9576         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
9577         (writev_for_fatal): New function.
9578         (WRITEV_FOR_FATAL): New macro; call that.
9579         (backtrace_and_maps): New function.
9580         (BEFORE_ABORT): New macro; call that.
9581         (struct str_list): Type removed.
9582         (__libc_message, __libc_fatal): Functions removed.
9583         Include <sysdeps/posix/libc_fatal.c> instead.
9584
9585 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
9586
9587         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
9588         constants.
9589         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
9590         double constants.
9591
9592 2013-03-19  Andreas Schwab  <schwab@suse.de>
9593
9594         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
9595         * sysdeps/gnu/configure: Regenerate.
9596
9597         * configure.in: Substitute libc_cv_rtlddir.
9598         * configure: Regenerate.
9599         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
9600         * Makeconfig (rtlddir, inst_rtlddir): New variables.
9601         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
9602         * elf/Makefile (install-others, CFLAGS-interp.c)
9603         (ldso_install, common-ldd-rewrite): Likewise.
9604         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
9605         $(inst_slibdir)/$(rtld-installed-name).
9606         * scripts/rellns-sh: Add -p option.
9607         * Makerules (make-shlib-link): Use rellns-sh to get relative name
9608         for source.
9609
9610 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9611
9612         * manual/nptl.texi: Renamed to ...
9613         * manual/threads.texi: ... this.
9614         * manual/Makefile (chapters): Update.
9615
9616 2013-03-18  Roland McGrath  <roland@hack.frob.com>
9617
9618         [BZ #14812]
9619         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
9620         on argument names, not just descriptions.
9621         * malloc/memusagestat.c (options): Likewise.
9622         * nss/getent.c (options): Likewise.
9623
9624 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
9625
9626         [BZ #14812]
9627         * iconv/iconv_prog.c (options): Put N_ translation marker
9628         on argument names, not just descriptions.
9629         * iconv/iconvconfig.c (options): Likewise.
9630
9631 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
9632
9633         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
9634         implementation which is faster on all x86_64 architectures.
9635         Tested on AMD, Intel Nehalem, SNB, IVB.
9636         * sysdeps/x86_64/strnlen.S: Likewise.
9637
9638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
9639         Remove all multiarch strlen and strnlen versions.
9640         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9641         Remove strlen and strnlen related parts.
9642
9643         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
9644         Inline strlen part.
9645         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
9646
9647         * sysdeps/x86_64/multiarch/strlen.S: Remove.
9648         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
9649         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
9650         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
9651         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
9652         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
9653
9654 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
9655
9656         * manual/memory.texi (Malloc Tunable Parameters):
9657         Sort parameters alphabetically. Add comments for missing entries.
9658
9659 2013-03-17  David S. Miller  <davem@davemloft.net>
9660
9661         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9662
9663 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
9664
9665         [BZ #15283]
9666         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
9667         for arguments at most half maximum finite value.
9668         * math/libm-test.inc (j0_test): Add more tests.
9669         (j1_test): Likewise.
9670         (y0_test): Likewise.
9671         (y1_test): Likewise.
9672         * sysdeps/i386/fpu/libm-test-ulps: Update.
9673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9674
9675         [BZ #14155]
9676         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
9677         1 / x and functions P and Q for arguments above 0x1p256L.
9678         (__ieee754_y0l): Likewise.
9679         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
9680         (__ieee754_y1l): Likewise.
9681         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
9682         (j1_test): Likewise.
9683         (y0_test): Likewise.
9684         (y1_test): Likewise.
9685
9686 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
9687
9688         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
9689         variable.
9690
9691 2013-03-15  Roland McGrath  <roland@hack.frob.com>
9692
9693         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
9694         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
9695         zero since it's initialized to EXEC_PAGESIZE.
9696
9697         * sysdeps/unix/sysv/linux/ldsodefs.h
9698         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
9699         * sysdeps/generic/ldsodefs.h: ... here.
9700
9701 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
9702
9703         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
9704
9705         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
9706         math/test-snan.c.
9707         * math/test-snan.c: Renamed from
9708         sysdeps/powerpc/fpu/test-powerpc-snan.c.
9709         * math/Makefile (tests): Add test-snan.
9710         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
9711         test-powerpc-snan.
9712
9713         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
9714         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
9715         functions.
9716         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
9717         __builtin_nan family of functions.
9718         * math/libm-test.inc (initialize): Initialize qnan_value with
9719         __builtin_nan family of functions.
9720         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
9721         Remove variables.
9722         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
9723         Remove functions.
9724         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
9725         storage class.  Initialize qNaN_var and sNaN_var with
9726         __builtin_nan and __builtin_nans families of functions,
9727         respectively.
9728
9729         * math/libm-test.inc (acosh_test): Also test with qNaN input.
9730         (sqrt_test): Remove duplicate test with qNaN input.
9731         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
9732         (round_test, signbit_test, significand_test): Note missing +/-Inf
9733         as well as qNaN tests.
9734
9735         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
9736         qNaN_var.  Fix a few strings, too.
9737         * math/libm-test.inc (nan_value): Rename to qnan_value.
9738         * math/gen-libm-test.pl (%beautify): Adjust to that.
9739         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
9740         * math/test-misc.c (main): Likewise.
9741         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
9742         to __qnan_bytes, and __qnan_union, respectively.
9743         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
9744         Likewise.
9745         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
9746         and lqnanval, respectively.
9747         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
9748         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
9749         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
9750         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
9751
9752         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
9753         * math/test-misc.c (main) [__x86_64__]: Enable test for long
9754         doubles.
9755
9756         * math/test-misc.c (main): Fix copy'n'pastos.
9757         * misc/tst-efgcvt.c (special): Likewise.
9758
9759         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
9760         Remove declarations.
9761
9762 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9763
9764         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
9765         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
9766         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
9767         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
9768
9769 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9770
9771         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
9772         macro to return vdso values correctly in IFUNC implementations.
9773         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
9774         Optimization by using IFUNC.
9775
9776 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9777             Richard Henderson  <rth@redhat.com>
9778             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9779
9780         * Makefile.in (bench): New target.
9781         * NEWS: Mention the benchmark framework.
9782         * Rules (bench): Likewise.
9783         (binaries-bench): Generate binaries for functions to
9784         benchmark.
9785         * benchtests/Makefile: New makefile for benchmark tests.
9786         * benchtests/bench-skeleton.c: New skeleton file for benchmark
9787         programs.
9788         * benchtests/exp-inputs: New input file for EXP function.
9789         * benchtests/pow-inputs: New input file for POW function.
9790         * scripts/bench.pl: New script to generate source files for
9791         benchmark programs.
9792
9793 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9794
9795         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
9796         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
9797         computations on mantissa.  Use macros for rounding and
9798         division.
9799         (denorm): Likewise.
9800         (__dbl_mp): Likewise.
9801         (add_magnitudes): Likewise.
9802         (sub_magnitudes): Likewise.
9803         (__mul): Likewise.
9804         (__sqr): Likewise.
9805         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
9806         powers of two in terms of TWOPOW macro.
9807         (mp_no): Make type of mantissa as MANTISSA_T.
9808         [!RADIXI]: Define RADIXI.
9809         [!TWO52]: Define TWO52.
9810         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
9811
9812         * manual/nptl.texi (cindex): Modify threads to pthreads.
9813
9814 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
9815
9816         * sysdeps/x86_64/preconfigure: Regenerated.
9817
9818 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
9819
9820         [BZ #14155]
9821         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
9822         0x1p28 and above.
9823         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
9824         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
9825         0x1p28 and above.
9826         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
9827         * math/libm-test.inc (j0_test): Do not allow one spurious
9828         underflow exception.
9829         (y1_test): Likewise.
9830
9831 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9832
9833         * manual/Makefile (chapters): Add nptl.
9834         * manual/debug.texi (Debugging Support): Add link to Threads
9835         chapter.
9836         * manual/nptl.texi: New file.
9837
9838         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
9839
9840 2013-03-14  Petr Baudis  <pasky@ucw.cz>
9841
9842         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
9843         for non-NULL pointer before the memory validity test. Pointed
9844         out by Holger Brunck <holger.brunck@keymile.com>.
9845
9846 2013-03-13  Andreas Schwab  <schwab@suse.de>
9847
9848         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
9849         instead of .os.
9850
9851 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
9852
9853         * timezone/zic.c: Update from tzcode 2013b.
9854
9855 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
9856
9857         * manual/install.texi (Configuring and compiling):
9858         Mention i686 and i586.
9859         * INSTALL: Regenerate.
9860
9861 2013-03-12  Roland McGrath  <roland@hack.frob.com>
9862
9863         * sysdeps/init_array/elf-init.c: New file.
9864         * csu/elf-init.c
9865         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
9866         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
9867
9868         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
9869         __gmon_start__ as global, but as static with a .preinit_array pointer.
9870         * sysdeps/init_array/gmon-start.c: New file.  Use that.
9871         * sysdeps/init_array/crti.S: New file, empty except for comments.
9872         * sysdeps/init_array/crtn.S: Likewise.
9873
9874 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
9875
9876         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
9877         definining bcopy.
9878         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9879         Remove Prefer_SSE_for_memop.
9880         * sysdeps/x86_64/multiarch/init-arch.h: Remove
9881         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
9882         HAS_PREFER_SSE_FOR_MEMOP.
9883         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
9884         memset-x86-64.
9885         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
9886         Remove bzero, memset ifunc support.
9887         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
9888         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
9889         * sysdeps/x86_64/multiarch/memset.S: Likewise.
9890         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9891
9892 2013-03-11  Andreas Schwab  <schwab@suse.de>
9893
9894         [BZ #15234]
9895         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
9896         by SHLIB_COMPAT.
9897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
9898         (GLIBC_2.16): Remove pthread_atfork.
9899
9900 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
9901
9902         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
9903         (ptestcases.h): Likewise.
9904
9905 2013-03-08  Roland McGrath  <roland@hack.frob.com>
9906
9907         * Makeconfig ($(common-objpfx)config.status): Depend on
9908         sysdeps/*/preconfigure{,.in} too.
9909
9910 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
9911
9912         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
9913         (__free_hook): Use void * instead of __malloc_ptr_t.
9914         (__malloc_hook): Likewise.
9915         (__realloc_hook): Likewise.
9916         (__memalign_hook): Likewise.
9917         (__after_morecore_hook): Likewise.
9918         * malloc/arena.c (save_malloc_hook): Likewise.
9919         (save_free_hook): Likewise.
9920         * malloc/hooks.c (malloc_hook_ini): Likewise.
9921         (realloc_hook_ini): Likewise.
9922         (memalign_hook_ini): Likewise.
9923         * malloc/malloc.c (malloc_hook_ini): Likewise.
9924         (realloc_hook_ini): Likewise.
9925         (memalign_hook_ini): Likewise.
9926         (__free_hook): Likewise.
9927         (__malloc_hook): Likewise.
9928         (__realloc_hook): Likewise.
9929         (__memalign_hook): Likewise.
9930         (__libc_malloc): Likewise.
9931         (__libc_free): Likewise.
9932         (__libc_realloc): Likewise.
9933         (__libc_memalign): Likewise.
9934         (__libc_valloc): Likewise.
9935         (__libc_pvalloc): Likewise.
9936         (__libc_calloc): Likewise.
9937         (__posix_memalign): Likewise.
9938         * malloc/morecore.c (__sbrk): Likewise.
9939         (__default_morecore): Likewise.
9940
9941         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
9942
9943         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
9944         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
9945         __malloc_ptrdiff_t.
9946
9947         * malloc/malloc.h (__malloc_size_t): Remove macro.
9948         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
9949         __malloc_size_t.
9950         (old_memalign_hook): Likewise.
9951         (old_realloc_hook): Likewise.
9952         (struct hdr): Likewise.
9953         (flood): Likewise.
9954         (mallochook): Likewise.
9955         (memalignhook): Likewise.
9956         (reallochook): Likewise.
9957         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
9958         (tr_old_realloc_hook): Likewise.
9959         (tr_old_memalign_hook): Likewise.
9960         (tr_mallochook): Likewise.
9961         (tr_reallochook): Likewise.
9962         (tr_memalignhook): Likewise.
9963
9964 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9965
9966         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
9967         default_ldbl_pack and using as default implementation.
9968         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
9969         implementation.
9970         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
9971         redundant definition.
9972         (ldbl_insert_mantissa): Likewise.
9973         (ldbl_canonicalize): Likewise.
9974         (ldbl_nearbyint): Likewise.
9975         (ldbl_pack): Rename to ldbl_pack_ppc.
9976         (ldbl_unpack): Rename to ldbl_unpack_ppc.
9977         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
9978         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
9979
9980 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
9981
9982         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
9983         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
9984         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
9985         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
9986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
9987         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
9988         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
9989         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
9990
9991 2013-03-07  Andreas Jaeger  <aj@suse.de>
9992
9993         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9994         bits/mman-linux.h.
9995
9996 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9997
9998         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
9999         Include mpa.h and declare __MPEXP.
10000         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
10001         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10002         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10003         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
10004         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10005         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10006         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
10007
10008         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
10009         (__slowpow): Use long double EXPL and LOGL functions to
10010         compute POW.
10011         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10012         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10013         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
10014         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10015         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10016         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
10017
10018         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
10019         intermediate variable to calculate exponent.
10020         (__sqr): Likewise.
10021         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
10022         Likewise.
10023         (__sqr): Likewise.
10024
10025         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
10026         [!NO__SQR]: Define __sqr.
10027         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
10028         and NO__SQR.  Remove all code except __mul and __sqr.  Include
10029         sysdeps/ieee754/dbl-64/mpa.c.
10030         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10031
10032         [BZ #12723]
10033         * posix/Makefile (tests): Add tst-pathconf.
10034         * posix/tst-pathconf.c: New test case.
10035         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
10036         _PC_PIPE_BUF.
10037         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10038
10039 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
10040
10041         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
10042
10043 2013-03-06  Andreas Jaeger  <aj@suse.de>
10044
10045         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
10046         definition via __MAP_ANONYMOUS.
10047
10048         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
10049         it's not part of Linux headers.
10050
10051         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
10052         (MAP_HUGE_MASK): Define.
10053
10054         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10055         Define.
10056         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10057         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10058         Define.
10059         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10060         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10061         Define.
10062         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10063         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
10064         Define.
10065         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10066
10067         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
10068         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
10069         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
10070         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
10071         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
10072         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
10073
10074         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10075         Handle f2fs.
10076
10077         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10078         Handle f2fs and efivarfs.
10079
10080         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
10081         f2fs.
10082
10083         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
10084         (EFIVARFS_MAGIC): Add.
10085         (F2FS_LINK_MAX): Add.
10086
10087 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10088
10089         * stdio-common/vfprintf.c: Replace __builtin_expect with
10090         __glibc_unlikely.
10091
10092 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
10093
10094         [BZ #13550]
10095         * sysdeps/generic/bp-sym.h: Remove file.
10096         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
10097         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
10098         <bp-sym.h> and <bp-asm.h>.
10099         (__longjmp): Don't use BP_SYM.
10100         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
10101         and <bp-asm.h>.
10102         (memcpy): Don't use BP_SYM.
10103         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
10104         <bp-sym.h> and <bp-asm.h>.
10105         (memcpy): Don't use BP_SYM.
10106         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
10107         <bp-asm.h>.
10108         (memcpy): Don't use BP_SYM.
10109         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
10110         <bp-asm.h>.
10111         (memset): Don't use BP_SYM.
10112         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10113         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10114         (__bzero): Don't use BP_SYM.
10115         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10116         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10117         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
10118         <bp-sym.h> and <bp-asm.h>.
10119         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10120         pointers.
10121         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
10122         <bp-sym.h> and <bp-asm.h>.
10123         (memcpy): Don't use BP_SYM.
10124         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
10125         <bp-sym.h> and <bp-asm.h>.
10126         (memset): Don't use BP_SYM.
10127         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10128         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10129         (__bzero): Don't use BP_SYM.
10130         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10131         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10132         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
10133         <bp-sym.h> and <bp-asm.h>.
10134         (strncmp): Don't use BP_SYM.  Remove comment about bounded
10135         pointers.
10136         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
10137         <bp-sym.h> and <bp-asm.h>.
10138         (memcpy): Don't use BP_SYM.
10139         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
10140         <bp-sym.h> and <bp-asm.h>.
10141         (memset): Don't use BP_SYM.
10142         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10143         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10144         (__bzero): Don't use BP_SYM.
10145         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10146         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10147         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
10148         <bp-sym.h> and <bp-asm.h>.
10149         (__memchr): Don't use BP_SYM.
10150         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
10151         <bp-sym.h> and <bp-asm.h>.
10152         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10153         pointers.
10154         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
10155         <bp-sym.h> and <bp-asm.h>.
10156         (memcpy): Don't use BP_SYM.
10157         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
10158         <bp-sym.h> and <bp-asm.h>.
10159         (__mempcpy): Don't use BP_SYM.
10160         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
10161         <bp-sym.h> and <bp-asm.h>.
10162         (__memrchr): Don't use BP_SYM.
10163         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
10164         <bp-sym.h> and <bp-asm.h>.
10165         (memset): Don't use BP_SYM.
10166         (__bzero): Likewise.
10167         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
10168         <bp-sym.h> and <bp-asm.h>.
10169         (__rawmemchr): Don't use BP_SYM.
10170         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
10171         <bp-sym.h> and <bp-asm.h>.
10172         (__STRCMP): Don't use BP_SYM.
10173         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
10174         <bp-sym.h> and <bp-asm.h>.
10175         (strchr): Don't use BP_SYM.
10176         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
10177         <bp-sym.h> and <bp-asm.h>.
10178         (__strchrnul): Don't use BP_SYM.
10179         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
10180         <bp-sym.h> and <bp-asm.h>.
10181         (strlen): Don't use BP_SYM.
10182         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
10183         <bp-sym.h> and <bp-asm.h>.
10184         (strncmp): Don't use BP_SYM.  Remove comment about bounded
10185         pointers.
10186         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
10187         <bp-sym.h> and <bp-asm.h>.
10188         (__strnlen): Don't use BP_SYM.
10189         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
10190         <bp-sym.h> and <bp-asm.h>.
10191         (__GI__setjmp): Don't use BP_SYM.
10192         (_setjmp): Likewise.
10193         (__sigsetjmp): Likewise.
10194         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
10195         (L(start_addresses)): Don't use BP_SYM.
10196         (_start): Likewise.
10197         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
10198         <bp-asm.h>.
10199         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
10200         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
10201         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
10202         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
10203         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
10204         <bp-asm.h>.
10205         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
10206         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
10207         about bounded pointers.
10208         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
10209         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
10210         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
10211         <bp-asm.h>.
10212         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
10213         about bounded pointers.  Remove GKM FIXME comments.
10214         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
10215         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
10216         <bp-asm.h>.
10217         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
10218         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
10219         Remove GKM FIXME comments.
10220         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
10221         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
10222         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
10223         <bp-asm.h>.
10224         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
10225         about bounded pointers.  Remove GKM FIXME comment.
10226         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
10227         and <bp-asm.h>.
10228         (strncmp): Don't use BP_SYM.  Remove comment about bounded
10229         pointers.
10230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
10231         <bp-sym.h> and <bp-asm.h>.
10232         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
10233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
10234         <bp-sym.h> and <bp-asm.h>.
10235         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
10236         comment.
10237
10238 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10239
10240         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
10241         call free(NULL).
10242
10243 2013-03-05  David S. Miller  <davem@davemloft.net>
10244
10245         * po/es.po: Update from translation team.
10246
10247 2013-03-05  Andreas Jaeger  <aj@suse.de>
10248
10249         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
10250         <bits/mman-linux.h>.
10251         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
10252         is fine.
10253         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
10254         <bits/mman-linux.h> to end of file.
10255         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
10256         is fine.
10257         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
10258         <bits/mman-linux.h> to end of file.
10259         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
10260         is fine.
10261         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
10262         <bits/mman-linux.h> to end of file.
10263
10264         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
10265         (MCL_CURRENT, MCL_FUTURE): Define here.
10266
10267 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10268
10269         [BZ #15232]
10270         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
10271         attribute_hidden.
10272         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10273
10274 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10275
10276         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
10277         fourth parameter needed for rt_sigprocmask syscall.
10278         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
10279         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
10280         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
10281         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
10282         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10283         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
10284
10285 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
10286
10287         [BZ #13550]
10288         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
10289         comment about bounded pointers.
10290         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
10291         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
10292
10293 2013-03-04  Andreas Jaeger  <aj@suse.de>
10294
10295         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
10296         common definitions.
10297
10298         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
10299         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
10300         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
10301         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10302         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10303         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10304
10305 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10306
10307         [BZ #15055]
10308         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
10309         __ieee754_sqrl instead of __sqrl.
10310
10311 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
10312
10313         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
10314         * sysdeps/powerpc/fpu_control.h: ... here.
10315         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
10316         * sysdeps/powerpc/bits/fenvinline.h: ... here.
10317         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
10318         * sysdeps/powerpc/bits/mathinline.h: ... here.
10319
10320 2013-03-01  Roland McGrath  <roland@hack.frob.com>
10321
10322         * elf/dl-hwcaps.c (_dl_important_hwcaps):
10323         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
10324         to just [NEED_DL_SYSINFO_DSO].
10325         * elf/dl-support.c: Likewise.
10326         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
10327         * elf/rtld.c (dl_main): Likewise.
10328         * elf/setup-vdso.h (setup_vdso): Likewise.
10329         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
10330         * sysdeps/unix/sysv/linux/dl-sysdep.c
10331         (_dl_discover_osversion): Likewise.
10332
10333 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
10334
10335         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
10336         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
10337
10338 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10339
10340         * NEWS: Mention libm performance improvements and non-x86 PI
10341         futex support.
10342
10343         * csu/libc-start.c (__pthread_initialize_minimal): Change
10344         function arguments.
10345         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
10346
10347 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
10348
10349         [BZ #13550]
10350         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
10351         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
10352         <bp-sym.h> and <bp-asm.h>.
10353         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
10354         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
10355         and <bp-asm.h>.
10356         (memcpy): Don't use BP_SYM.
10357         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
10358         <bp-asm.h>.
10359         (__mpn_add_n): Don't use BP_SYM.
10360         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
10361         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
10362         and <bp-asm.h>.
10363         (__mpn_addmul_1): Don't use BP_SYM.
10364         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
10365         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
10366         <bp-sym.h>.
10367         (_setjmp): Don't use BP_SYM.
10368         (__novmx_setjmp): Likewise.
10369         (__GI__setjmp): Likewise.
10370         (__vmx_setjmp): Likewise.
10371         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
10372         <bp-sym.h>.
10373         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
10374         (__bzero): Don't use BP_SYM.
10375         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10376         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10377         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
10378         <bp-sym.h> and <bp-asm.h>.
10379         (memcpy): Don't use BP_SYM.
10380         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
10381         <bp-sym.h> and <bp-asm.h>.
10382         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
10383         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
10384         <bp-sym.h> and <bp-asm.h>.
10385         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
10386         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
10387         <bp-asm.h>.
10388         (__mpn_lshift): Don't use BP_SYM.
10389         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
10390         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
10391         <bp-asm.h>.
10392         (memset): Don't use BP_SYM.
10393         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10394         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10395         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
10396         <bp-asm.h>.
10397         (__mpn_mul_1): Don't use BP_SYM.
10398         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
10399         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
10400         <bp-sym.h> and <bp-asm.h>.
10401         (memcmp): Don't use BP_SYM.
10402         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
10403         <bp-sym.h> and <bp-asm.h>.
10404         (memcpy): Don't use BP_SYM.
10405         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
10406         <bp-sym.h> and <bp-asm.h>.
10407         (memset): Don't use BP_SYM.
10408         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
10409         <bp-sym.h> and <bp-asm.h>.
10410         (strncmp): Don't use BP_SYM.
10411         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
10412         <bp-sym.h> and <bp-asm.h>.
10413         (memcpy): Don't use BP_SYM.
10414         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
10415         <bp-sym.h> and <bp-asm.h>.
10416         (memset): Don't use BP_SYM.
10417         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
10418         <bp-sym.h> and <bp-asm.h>.
10419         (__memchr): Don't use BP_SYM.
10420         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
10421         <bp-sym.h> and <bp-asm.h>.
10422         (memcmp): Don't use BP_SYM.
10423         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
10424         <bp-sym.h> and <bp-asm.h>.
10425         (memcpy): Don't use BP_SYM.
10426         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
10427         <bp-sym.h> and <bp-asm.h>.
10428         (__mempcpy): Don't use BP_SYM.
10429         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
10430         <bp-sym.h> and <bp-asm.h>.
10431         (__memrchr): Don't use BP_SYM.
10432         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
10433         <bp-sym.h> and <bp-asm.h>.
10434         (memset): Don't use BP_SYM.
10435         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
10436         <bp-sym.h> and <bp-asm.h>.
10437         (__rawmemchr): Don't use BP_SYM.
10438         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
10439         <bp-sym.h> and <bp-asm.h>.
10440         (__STRCMP): Don't use BP_SYM.
10441         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
10442         <bp-sym.h> and <bp-asm.h>.
10443         (strchr): Don't use BP_SYM.
10444         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
10445         <bp-sym.h> and <bp-asm.h>.
10446         (__strchrnul): Don't use BP_SYM.
10447         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
10448         <bp-sym.h> and <bp-asm.h>.
10449         (strlen): Don't use BP_SYM.
10450         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
10451         <bp-sym.h> and <bp-asm.h>.
10452         (strncmp): Don't use BP_SYM.
10453         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
10454         <bp-sym.h> and <bp-asm.h>.
10455         (__strnlen): Don't use BP_SYM.
10456         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
10457         <bp-asm.h>.
10458         (__mpn_rshift): Don't use BP_SYM.
10459         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
10460         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
10461         <bp-sym.h> and <bp-asm.h>.
10462         (__sigsetjmp): Don't use BP_SYM.
10463         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
10464         (L(start_addresses)): Don't use BP_SYM.
10465         (_start): Likewise.
10466         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
10467         <bp-asm.h>.
10468         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
10469         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
10470         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
10471         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
10472         <bp-asm.h>.
10473         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
10474         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
10475         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
10476         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
10477         <bp-asm.h>.
10478         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
10479         comments.
10480         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
10481         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
10482         <bp-asm.h>.
10483         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
10484         FIXME comments.
10485         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
10486         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
10487         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
10488         <bp-asm.h>.
10489         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
10490         comment.
10491         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
10492         and <bp-asm.h>.
10493         (strncmp): Don't use BP_SYM,
10494         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
10495         <bp-asm.h>.
10496         (__mpn_sub_n): Don't use BP_SYM.
10497         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
10498         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
10499         and <bp-asm.h>.
10500         (__mpn_submul_1): Don't use BP_SYM.
10501         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
10502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
10503         <bp-sym.h> and <bp-asm.h>.
10504         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
10505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
10506         <bp-sym.h> and <bp-asm.h>.
10507         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
10508         comment.
10509
10510 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10511
10512         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
10513         Use ZK to minimize writes to Z.
10514         (sub_magnitudes): Simplify code a bit.
10515         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
10516         Use ZK to minimize writes to Z.
10517         (sub_magnitudes): Simplify code a bit.
10518
10519 2013-02-27  Roland McGrath  <roland@hack.frob.com>
10520
10521         * csu/gmon-start.c: Add special exception to license text.
10522
10523 2013-02-27  Richard Henderson  <rth@redhat.com>
10524
10525         * scripts/config.guess: Update from config.git.
10526         * scripts/config.sub: Likewise.
10527
10528 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10529
10530         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
10531
10532         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
10533
10534         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
10535
10536         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
10537
10538         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
10539
10540 2013-02-26  Roland McGrath  <roland@hack.frob.com>
10541
10542         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
10543         [$(build-shared = yes].
10544
10545 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10546
10547         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
10548         (__mul): Reduce iterations for calculating mantissa.
10549
10550         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
10551         MPTWO.
10552         (__mpranred): Likewise.
10553
10554         [BZ #15160]
10555         * malloc/memusagestat.c (main): Draw graphs for heap and stack
10556         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
10557
10558 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
10559
10560         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
10561         Define __attribute__.
10562
10563 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10564
10565         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
10566         unused.
10567         * posix/regex_internal.h (__attribute): Remove.
10568         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
10569         (re_string_context_at): Likewise.
10570         (bitset_not): Use __attribute__ and mark function as possibly
10571         unused.
10572         (bitset_merge): Likewise.
10573         (bitset_mask): Likewise.
10574         (re_string_char_size_at): Likewise.
10575         (re_string_wchar_at): Likewise.
10576         (re_string_elem_size_at): Likewise.
10577
10578 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10579
10580         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
10581         code.
10582         (cc32): Likewise.
10583
10584         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
10585         (__acr): Likewise.
10586         (__cpy): Likewise.
10587         (norm): Likewise.
10588         (denorm): Likewise.
10589         (__dbl_mp): Likewise.
10590         (add_magnitudes): Likewise.
10591         (sub_magnitudes): Likewise.
10592         (__mul): Likewise.
10593         (__inv): Likewise.
10594
10595         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
10596         style.
10597
10598         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
10599         style.
10600
10601         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
10602         code.
10603
10604         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
10605         up changes with default code.
10606         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
10607         Likewise.
10608
10609 2013-02-24  Allan McRae  <allan@archlinux.org>
10610
10611         * manual/socket.texi (The Internet Namespace): Order menu items
10612         to match that in the file.
10613
10614         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
10615         node listing of the info page menu.
10616
10617 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
10618
10619         [BZ #13550]
10620         * sysdeps/i386/bp-asm.h: Remove file.
10621         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
10622         (PARMS): Do not use macros from bp-asm.h.
10623         (S1): Likewise.
10624         (S2): Likewise.
10625         (SIZE): Likewise.
10626         (__mpn_add_n): Do not use BP_SYM
10627         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
10628         "bp-asm.h".
10629         (PARMS): Do not use macros from bp-asm.h.
10630         (S1): Likewise.
10631         (SIZE): Likewise.
10632         (__mpn_addmul_1): Do not use BP_SYM
10633         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
10634         "bp-asm.h".
10635         (PARMS): Do not use macros from bp-asm.h.
10636         (SIGMSK): Likewise.
10637         (_setjmp): Likewise.  Do not use BP_SYM.
10638         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
10639         "bp-asm.h".
10640         (PARMS): Do not use macros from bp-asm.h.
10641         (SIGMSK): Likewise.
10642         (setjmp): Likewise.  Do not use BP_SYM.
10643         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
10644         "bp-asm.h".
10645         (PARMS): Do not use macros from bp-asm.h.
10646         (__frexp): Do not use BP_SYM.
10647         (frexp): Likewise.
10648         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
10649         "bp-asm.h".
10650         (PARMS): Do not use macros from bp-asm.h.
10651         (__frexpf): Do not use BP_SYM.
10652         (frexpf): Likewise.
10653         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
10654         "bp-asm.h".
10655         (PARMS): Do not use macros from bp-asm.h.
10656         (__frexpl): Do not use BP_SYM.
10657         (frexpl): Likewise.
10658         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
10659         "bp-asm.h".
10660         (PARMS): Do not use macros from bp-asm.h.
10661         (__remquo): Do not use BP_SYM.
10662         (remquo): Likewise.
10663         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
10664         "bp-asm.h".
10665         (PARMS): Do not use macros from bp-asm.h.
10666         (__remquof): Do not use BP_SYM.
10667         (remquof): Likewise.
10668         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
10669         "bp-asm.h".
10670         (PARMS): Do not use macros from bp-asm.h.
10671         (__remquol): Do not use BP_SYM.
10672         (remquol): Likewise.
10673         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
10674         "bp-asm.h".
10675         (PARMS): Do not use macros from bp-asm.h.
10676         (DEST): Likewise.
10677         (SRC): Likewise.
10678         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
10679         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
10680         "bp-asm.h".
10681         (PARMS): Do not use macros from bp-asm.h.
10682         (strlen): Do not use BP_SYM.
10683         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
10684         "bp-asm.h".
10685         (PARMS): Do not use macros from bp-asm.h.
10686         (S1): Likewise.
10687         (S2): Likewise.
10688         (SIZE): Likewise.
10689         (__mpn_add_n): Do not use BP_SYM.
10690         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
10691         "bp-asm.h".
10692         (PARMS): Do not use macros from bp-asm.h.
10693         (S1): Likewise.
10694         (SIZE): Likewise.
10695         (__mpn_addmul_1): Do not use BP_SYM.
10696         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
10697         weak_alias.
10698         (bzero): Likewise.
10699         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
10700         "bp-asm.h".
10701         (PARMS): Do not use macros from bp-asm.h.
10702         (S): Likewise.
10703         (SIZE): Likewise.
10704         (__mpn_lshift): Do not use BP_SYM.
10705         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
10706         "bp-asm.h".
10707         (PARMS): Do not use macros from bp-asm.h.
10708         (DEST): Likewise.
10709         (SRC): Likewise.
10710         (LEN): Likewise.
10711         (memcpy): Likewise.  Do not use BP_SYM.
10712         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
10713         libc_hidden_def and weak_alias.
10714         (mempcpy): Do not use BP_SYM in weak_alias.
10715         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
10716         "bp-asm.h".
10717         (PARMS): Do not use macros from bp-asm.h.
10718         (DEST): Likewise.
10719         (LEN): Likewise.
10720         [!BZERO_P] (CHR): Likewise.
10721         (memset): Likewise.  Do not use BP_SYM.
10722         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
10723         "bp-asm.h".
10724         (PARMS): Do not use macros from bp-asm.h.
10725         (S1): Likewise.
10726         (SIZE): Likewise.
10727         (__mpn_mul_1): Do not use BP_SYM.
10728         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
10729         "bp-asm.h".
10730         (PARMS): Do not use macros from bp-asm.h.
10731         (S): Likewise.
10732         (SIZE): Likewise.
10733         (__mpn_rshift): Do not use BP_SYM.
10734         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
10735         "bp-asm.h".
10736         (PARMS): Do not use macros from bp-asm.h.
10737         (STR): Likewise.
10738         (CHR): Likewise.
10739         (strchr): Likewise.  Do not use BP_SYM.
10740         (index): Do not use BP_SYM in weak_alias.
10741         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
10742         "bp-asm.h".
10743         (PARMS): Do not use macros from bp-asm.h.
10744         (DEST): Likewise.
10745         (SRC): Likewise.
10746         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
10747         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
10748         "bp-asm.h".
10749         (PARMS): Do not use macros from bp-asm.h.
10750         (strlen): Do not use BP_SYM.
10751         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
10752         "bp-asm.h".
10753         (PARMS): Do not use macros from bp-asm.h.
10754         (S1): Likewise.
10755         (S2): Likewise.
10756         (SIZE): Likewise.
10757         (__mpn_sub_n): Do not use BP_SYM.
10758         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
10759         "bp-asm.h".
10760         (PARMS): Do not use macros from bp-asm.h.
10761         (S1): Likewise.
10762         (SIZE): Likewise.
10763         (__mpn_submul_1): Do not use BP_SYM.
10764         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
10765         "bp-asm.h".
10766         (PARMS): Do not use macros from bp-asm.h.
10767         (S1): Likewise.
10768         (S2): Likewise.
10769         (SIZE): Likewise.
10770         (__mpn_add_n): Do not use BP_SYM.
10771         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
10772         weak_alias.
10773         (bzero): Likewise.
10774         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
10775         "bp-asm.h".
10776         (PARMS): Do not use macros from bp-asm.h.
10777         (BLK2): Likewise.
10778         (LEN): Likewise.
10779         (memcmp): Do not use BP_SYM.
10780         (bcmp): Do not use BP_SYM in weak_alias.
10781         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
10782         "bp-asm.h".
10783         (PARMS): Do not use macros from bp-asm.h.
10784         (DEST): Likewise.
10785         (SRC): Likewise.
10786         (LEN): Likewise.
10787         (memcpy): Likewise.  Do not use BP_SYM.
10788         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
10789         "bp-asm.h".
10790         (PARMS): Do not use macros from bp-asm.h.
10791         (DEST): Likewise.
10792         (SRC): Likewise.
10793         (LEN): Likewise.
10794         (memmove): Likewise.  Do not use BP_SYM.
10795         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
10796         "bp-asm.h".
10797         (PARMS): Do not use macros from bp-asm.h.
10798         (DEST): Likewise.
10799         (SRC): Likewise.
10800         (LEN): Likewise.
10801         (__mempcpy): Likewise.  Do not use BP_SYM.
10802         (mempcpy): Do not use BP_SYM in weak_alias.
10803         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
10804         "bp-asm.h".
10805         (PARMS): Do not use macros from bp-asm.h.
10806         (DEST): Likewise.
10807         (LEN): Likewise.
10808         [!BZERO_P] (CHR): Likewise.
10809         (memset): Likewise.  Do not use BP_SYM.
10810         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
10811         "bp-asm.h".
10812         (PARMS): Do not use macros from bp-asm.h.
10813         (STR2): Likewise.
10814         (strcmp): Do not use BP_SYM.
10815         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
10816         "bp-asm.h".
10817         (PARMS): Do not use macros from bp-asm.h.
10818         (STR): Likewise.
10819         (DELIM): Likewise.
10820         [USE_AS_STRTOK_R] (SAVE): Likewise.
10821         (FUNCTION): Likewise.  Do not use BP_SYM.
10822         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
10823         aliases.
10824         (strtok_r): Likewise.
10825         (__GI___strtok_r): Likewise.
10826         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
10827         (PARMS): Do not use macros from bp-asm.h.
10828         (S): Likewise.
10829         (SIZE): Likewise.
10830         (__mpn_lshift): Do not use BP_SYM.
10831         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
10832         (PARMS): Do not use macros from bp-asm.h.
10833         (STR): Likewise.
10834         (CHR): Likewise.
10835         (__memchr): Do not use BP_SYM.
10836         (memchr): Do not use BP_SYM in weak_alias.
10837         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
10838         (PARMS): Do not use macros from bp-asm.h.
10839         (BLK2): Likewise.
10840         (LEN): Likewise.
10841         (memcmp): Do not use BP_SYM.
10842         (bcmp): Do not use BP_SYM in weak_alias.
10843         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
10844         (PARMS): Do not use macros from bp-asm.h.
10845         (S1): Likewise.
10846         (SIZE): Likewise.
10847         (__mpn_mul_1): Do not use BP_SYM.
10848         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
10849         "bp-asm.h".
10850         (PARMS): Do not use macros from bp-asm.h.
10851         (STR): Likewise.
10852         (CHR): Likewise.
10853         (__rawmemchr): Do not use BP_SYM.
10854         (rawmemchr): Do not use BP_SYM in weak_alias.
10855         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
10856         (PARMS): Do not use macros from bp-asm.h.
10857         (S): Likewise.
10858         (SIZE): Likewise.
10859         (__mpn_rshift): Do not use BP_SYM.
10860         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
10861         (PARMS): Do not use macros from bp-asm.h.
10862         (SIGMSK): Likewise.
10863         (__sigsetjmp): Likewise.  Do not use BP_SYM.
10864         * sysdeps/i386/start.S: Do not include "bp-sym.h".
10865         (_start): Do not use BP_SYM.
10866         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
10867         (PARMS): Do not use macros from bp-asm.h.
10868         (DEST): Likewise.
10869         (SRC): Likewise.
10870         (__stpcpy): Likewise.  Do not use BP_SYM.
10871         (stpcpy): Do not use BP_SYM in weak_alias.
10872         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
10873         "bp-asm.h".
10874         (PARMS): Do not use macros from bp-asm.h.
10875         (DEST): Likewise.
10876         (SRC): Likewise.
10877         (LEN): Likewise.
10878         (__stpncpy): Likewise.  Do not use BP_SYM.
10879         (stpncpy): Do not use BP_SYM in weak_alias.
10880         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
10881         (PARMS): Do not use macros from bp-asm.h.
10882         (STR): Likewise.
10883         (CHR): Likewise.
10884         (strchr): Likewise.  Do not use BP_SYM.
10885         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
10886         "bp-asm.h".
10887         (PARMS): Do not use macros from bp-asm.h.
10888         (STR): Likewise.
10889         (CHR): Likewise.
10890         (__strchrnul): Likewise.  Do not use BP_SYM.
10891         (strchrnul): Do not use BP_SYM in weak_alias.
10892         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
10893         "bp-asm.h".
10894         (PARMS): Do not use macros from bp-asm.h.
10895         (STOP): Likewise.
10896         (strcspn): Do not use BP_SYM.
10897         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
10898         "bp-asm.h".
10899         (PARMS): Do not use macros from bp-asm.h.
10900         (STR): Likewise.
10901         (STOP): Likewise.
10902         (strpbrk): Likewise.  Do not use BP_SYM.
10903         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
10904         "bp-asm.h".
10905         (PARMS): Do not use macros from bp-asm.h.
10906         (STR): Likewise.
10907         (CHR): Likewise.
10908         (strrchr): Likewise.  Do not use BP_SYM.
10909         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
10910         (PARMS): Do not use macros from bp-asm.h.
10911         (SKIP): Likewise.
10912         (strspn): Do not use BP_SYM.
10913         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
10914         (PARMS): Do not use macros from bp-asm.h.
10915         (STR): Likewise.
10916         (DELIM): Likewise.
10917         (SAVE): Likewise.
10918         (FUNCTION): Likewise.  Do not use BP_SYM.
10919         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
10920         aliases.
10921         (strtok_r): Likewise.
10922         (__GI___strtok_r): Likewise.
10923         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
10924         (PARMS): Do not use macros from bp-asm.h.
10925         (S1): Likewise.
10926         (S2): Likewise.
10927         (SIZE): Likewise.
10928         (__mpn_sub_n): Do not use BP_SYM.
10929         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
10930         "bp-asm.h".
10931         (PARMS): Do not use macros from bp-asm.h.
10932         (S1): Likewise.
10933         (SIZE): Likewise.
10934         (__mpn_submul_1): Do not use BP_SYM.
10935         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
10936         <bp-sym.h>.
10937         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
10938         and <bp-asm.h>.
10939         (PARMS): Do not use macros from bp-asm.h.
10940         (FLAGS): Likewise.
10941         (PTID): Likewise.
10942         (TLS): Likewise.
10943         (CTID): Likewise.
10944         (__clone): Do not use BP_SYM.
10945         (clone): Do not use BP_SYM in weak_alias.
10946         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
10947         and <bp-asm.h>.
10948         (PARMS): Do not use macros from bp-asm.h.
10949         (LEN): Likewise.
10950         (__mmap64): Do not use BP_SYM.
10951         (mmap64): Do not use BP_SYM in weak_alias.
10952         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10953         <bp-sym.h> and <bp-asm.h>.
10954         (PARMS): Do not use macros from bp-asm.h.
10955         (__posix_fadvise64_l64): Do not use BP_SYM.
10956         * sysdeps/unix/sysv/linux/i386/semtimedop.S
10957         (PARMS): Do not use macros from bp-asm.h.
10958         (NSOPS): Likewise.
10959         (semtimedop): Do not use BP_SYM.
10960         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
10961         and <bp-asm.h>.
10962
10963 2013-02-21  Allan McRae  <allan@archlinux.org>
10964
10965         * manual/message.texi (Charset conversion in gettext):
10966         Move @end statement to beginning of line.
10967
10968 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10969
10970         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
10971         static.
10972         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
10973         Likewise.
10974
10975         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
10976         (denorm): Likewise.
10977         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
10978         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
10979
10980 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10981
10982         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
10983         tail-call to the resolved function if pltexit isn't needed.
10984
10985 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10986
10987         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
10988         or Y being zero as being unlikely.
10989         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
10990         Likewise.
10991
10992 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
10993
10994         * manual/nss.texi (System Databases and Name Service Switch):
10995         Remove frobnicate @pxref.
10996
10997 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
10998
10999         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11000         __attribute__ ((unused)) to __attribute__ ((__unused__)).
11001
11002 2013-02-20  Petr Machata  <pmachata@redhat.com>
11003
11004         * elf/elf.h (R_ARM_TARGET1): New macro.
11005         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
11006         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
11007         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
11008         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
11009         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
11010         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
11011         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
11012         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
11013         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
11014         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
11015         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
11016         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
11017         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
11018         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
11019         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
11020         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
11021         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
11022         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
11023         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
11024         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
11025         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
11026         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
11027         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
11028         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
11029         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
11030         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
11031         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
11032         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
11033         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
11034         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
11035         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
11036         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
11037         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
11038         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
11039         (R_ARM_THM_GOT_BREL12): Likewise.
11040         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
11041         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
11042         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
11043         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
11044         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
11045         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
11046         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
11047         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
11048         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
11049
11050 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
11051
11052         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11053         __attribute_used__ to __attribute__ ((unused)).
11054
11055 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11056
11057         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
11058         powerpc mpa.c.
11059         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
11060         comment formatting.
11061         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
11062
11063 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
11064
11065         [BZ #13550]
11066         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
11067         Remove macro.
11068         (ENTER): Remove both macro definitions.
11069         (LEAVE): Likewise.
11070         (CHECK_BOUNDS_LOW): Likewise.
11071         (CHECK_BOUNDS_HIGH): Likewise.
11072         (CHECK_BOUNDS_BOTH): Likewise.
11073         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
11074         (RETURN_BOUNDED_POINTER): Likewise.
11075         (RETURN_NULL_BOUNDED_POINTER): Likewise.
11076         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
11077         (POP_ERRNO_LOCATION_RETURN): Likewise.
11078         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
11079         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11080         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
11081         macros.
11082         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11083         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
11084         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
11085         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
11086         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
11087         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
11088         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
11089         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
11090         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
11091         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
11092         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
11093         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
11094         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11095         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
11096         removed macros.
11097         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11098         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
11099         macros.
11100         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11101         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
11102         * sysdeps/i386/i586/memset.S (memset): Likewise.
11103         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
11104         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11105         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
11106         macros.
11107         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11108         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
11109         Change uses of L(2) to L(out).
11110         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
11111         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
11112         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
11113         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11114         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
11115         removed macros.
11116         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11117         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
11118         macros.
11119         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11120         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
11121         (RETURN): Do not use macro LEAVE.
11122         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
11123         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
11124         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
11125         * sysdeps/i386/i686/memset.S (memset): Likewise.
11126         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
11127         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
11128         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11129         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
11130         Likewise.
11131         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11132         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
11133         L(1_2) and L(1_3) into L(1).
11134         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11135         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
11136         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11137         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
11138         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11139         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
11140         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
11141         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11142         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
11143         macros.
11144         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
11145         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11146         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
11147         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
11148         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
11149         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11150         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
11151         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
11152         * sysdeps/i386/strcspn.S (strcspn): Likewise.
11153         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
11154         * sysdeps/i386/strrchr.S (strrchr): Likewise.
11155         * sysdeps/i386/strspn.S (strspn): Likewise.
11156         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
11157         conditional code.
11158         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11159         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
11160         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11161         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
11162         L(1_3) into L(1_1).
11163         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
11164         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11165         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
11166         macros.
11167         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11168
11169 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11170
11171         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
11172         macro.
11173
11174 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11175
11176         * math/atest-exp.c (exp_mpn): Remove ROUND.
11177         * math/atest-exp2.c (exp_mpn): Likewise.
11178         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
11179
11180         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
11181         * stdlib/tst-tls-atexit-lib.c: Likewise.
11182         * stdlib/tst-tls-atexit.c: Likewise.
11183
11184 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
11185
11186         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
11187         and __attribute_alloc_size__.
11188
11189 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
11190
11191         * include/programs/xmalloc.h: Change __attribute_alloc_size to
11192         __attribute_alloc_size__.
11193         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
11194         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
11195
11196 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
11197
11198         * include/programs/xmalloc.h: New file.
11199         * catgets/gencat.c: Include it.
11200         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
11201         * elf/pldd.c: Likewise.
11202         * iconv/iconv_charmap.c: Likewise.
11203         * iconv/iconvconfig.c: Likewise.
11204         * iconv/strtab.c: Likewise.
11205         * locale/programs/locale.c: Likewise.
11206         * locale/programs/localedef.h: Likewise.
11207         * locale/programs/simple-hash.c: Likewise.
11208         * nscd/nscd.h: Likewise.
11209         * nss/makedb.c: Likewise.
11210         * sysdeps/generic/ldconfig.h: Likewise.
11211
11212 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11213
11214         * Versions.def: Add GLIBC_2.18.
11215         * include/link.h (struct link_map): New member l_tls_dtor_count.
11216         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
11217         (__call_tls_dtors): Likewise.
11218         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
11219         __cxa_thread_atexit_impl.
11220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11221         Likewise.
11222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11223         Likewise.
11224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
11225         Likewise.
11226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
11227         Likewise.
11228         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11229         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
11230         Likewise.
11231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
11232         Likewise.
11233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
11235         Likewise.
11236         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
11237         (tests): Add test case tst-tls-atexit.
11238         (modules-names): Add shared library for tst-tls-atexit.
11239         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
11240         (GLIBC_PRIVATE): Add __call_tls_dtors.
11241         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
11242         for libstdc++.
11243         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
11244         * stdlib/tst-tls-atexit.c: New test case.
11245         * stdlib/tst-tls-atexit-lib.c: New test case.
11246
11247         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
11248
11249         * elf/Versions (ld): Add _dl_find_dso_for_object.
11250         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
11251         * elf/dl-open.c (_dl_find_dso_for_object): New function.
11252         (dl_open_worker): Use _dl_find_dso_for_object.
11253         * elf/dl-sym.c (do_sym): Likewise.
11254         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
11255
11256 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11257
11258         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
11259         Syntactic changes only.
11260         (_dl_runtime_profile): Do a tail-call to the resolved function.
11261
11262 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
11263
11264         [BZ #13550]
11265         * sysdeps/x86_64/bp-asm.h: Remove file.
11266         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
11267         <bp-sym.h> and <bp-asm.h>.
11268         (__clone): Do not use BP_SYM.
11269         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
11270         <bp-sym.h> and <bp-asm.h>.
11271         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11272         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
11273         "bp-asm.h".
11274         (_setjmp): Do not use BP_SYM.
11275         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
11276         "bp-asm.h".
11277         (setjmp): Do not use BP_SYM.
11278         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
11279         libc_hidden_def.
11280         (mempcpy): Do not use BP_SYM in weak_alias.
11281         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
11282         "bp-asm.h".
11283         (strchr): Do not use BP_SYM.
11284         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
11285         "bp-asm.h".
11286         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
11287         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
11288         (_start): Do not use BP_SYM.
11289         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
11290         "bp-asm.h".
11291         (strcat): Do not use BP_SYM.
11292         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
11293         "bp-asm.h".
11294         (STRCMP): Do not use BP_SYM.
11295         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
11296         "bp-asm.h".
11297         (STRCPY): Do not use BP_SYM.
11298         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
11299         "bp-asm.h".
11300         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
11301         "bp-asm.h".
11302         (FUNCTION): Do not use BP_SYM.
11303         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
11304         weak_alias.
11305         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
11306
11307 2013-02-17  Andreas Jaeger  <aj@suse.de>
11308
11309         * time/Versions: Sort entries.
11310         * string/Versions: Likewise.
11311         * resolv/Versions: Likewise.
11312         * posix/Versions: Likewise.
11313         * iconv/Versions: Likewise.
11314         * elf/Versions: Likewise.
11315         * wcsmbs/Versions: Likewise.
11316
11317 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11318
11319         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
11320         loop termination condition.
11321
11322         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
11323         variable to calculate EZ.
11324         (__sqr): Likewise.
11325
11326         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
11327         the lower precision input.
11328
11329 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
11330
11331         [BZ #13550]
11332         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
11333         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
11334         (run-via-rtld-prefix): Do not handle %-bp tests.
11335         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
11336         (all-object-suffixes): Remove .ob.
11337         (bppfx): Remove variable.
11338         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
11339         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
11340         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
11341         [$(build-bounded) = yes] (libtype.ob): Likewise.
11342         * Makerules (elide-routines.ob): Remove variable.
11343         (do-tests-clean): Do not handle *-bp.out.
11344         (common-mostlyclean): Do not handle *-bp and *-bp.out.
11345         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
11346         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
11347         (tests): Do not include $(tests-bp.out).
11348         (xtests): Do not include $(xtests-bp.out).
11349         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
11350         [$(build-bounded) = yes] ($(addprefix
11351         $(objpfx),$(binaries-bounded))): Remove rule.
11352         ($(objpfx)%-bp.out): Remove rule.
11353         * config.make.in (build-bounded): Remove variable.
11354         * crypt/Makefile [$(build-bounded) = yes]
11355         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
11356         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
11357         append to variable.
11358         [$(build-bounded) = yes] (install-lib): Likewise.
11359         [$(build-bounded) = yes] (generated): Likewise.
11360         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
11361         Remove rule.
11362         * intl/Makefile [$(build-bounded) = yes]
11363         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
11364         * math/Makefile [$(build-bounded) = yes]
11365         ($(tests:%=$(objpfx)%-bp): Likewise.
11366         * misc/Makefile [$(build-bounded) = yes]
11367         ($(objpfx)tst-tsearch-bp): Likewise.
11368         * nptl/Makeconfig (bounded-thread-library): Remove variable.
11369         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
11370         Remove dependency.
11371         * string/Makefile (o-objects.ob): Remove variable.
11372         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
11373         (CFLAGS-.ob): Remove variable.
11374         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
11375         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
11376         both definitions of variable.
11377         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
11378         (ASFLAGS-.ob): Remove variable.
11379
11380 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
11381
11382         [BZ #13550]
11383         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
11384         Remove __BOUNDED_POINTERS__ from condition.
11385         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
11386         * string/bits/string2.h [!__NO_STRING_INLINES &&
11387         !__BOUNDED_POINTERS__]: Likewise.
11388         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
11389         Likewise.
11390         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
11391         Remove conditional code.
11392         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
11393         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
11394         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
11395         condition.
11396
11397         [BZ #13550]
11398         * csu/libc-start.c: Do not include <bp-sym.h>.
11399         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
11400         * elf/dl-open.c: Do not include <bp-sym.h>.
11401         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
11402         * math/fegetenv.c: Do not include <bp-sym.h>.
11403         (fegetenv): Do not use BP_SYM in versioned symbols.
11404         * nptl/sysdeps/pthread/bits/libc-lockP.h
11405         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
11406         <bp-sym.h>.
11407         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11408         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
11409         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11410         (__pthread_mutex_destroy): Likewise.
11411         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11412         (__pthread_mutex_lock): Likewise.
11413         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11414         (__pthread_mutex_trylock): Likewise.
11415         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11416         (__pthread_mutex_unlock): Likewise.
11417         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11418         (__pthread_mutexattr_init): Likewise.
11419         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11420         (__pthread_mutexattr_destroy): Likewise.
11421         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11422         (__pthread_mutexattr_settype): Likewise.
11423         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11424         (__pthread_rwlock_init): Likewise.
11425         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11426         (__pthread_rwlock_destroy): Likewise.
11427         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11428         (__pthread_rwlock_rdlock): Likewise.
11429         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11430         (__pthread_rwlock_tryrdlock): Likewise.
11431         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11432         (__pthread_rwlock_wrlock): Likewise.
11433         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11434         (__pthread_rwlock_trywrlock): Likewise.
11435         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11436         (__pthread_rwlock_unlock): Likewise.
11437         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11438         (__pthread_key_create): Likewise.
11439         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11440         (__pthread_setspecific): Likewise.
11441         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11442         (__pthread_getspecific): Likewise.
11443         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
11444         Likewise.
11445         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11446         (_pthread_cleanup_push_defer): Likewise.
11447         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11448         (_pthread_cleanup_pop_restore): Likewise.
11449         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
11450         (pthread_setcancelstate): Likewise.
11451         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
11452         <bp-sym.h>.
11453         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
11454         (memchr): Do not use BP_SYM in weak_alias.
11455         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
11456         (fegetenv): Do not use BP_SYM in versioned symbols.
11457         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
11458         (fesetenv): Do not use BP_SYM in versioned symbols.
11459         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
11460         (feupdateenv): Do not use BP_SYM in versioned symbols.
11461         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
11462         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
11463         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
11464         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
11465         (open64): Do not use BP_SYM in weak_alias.
11466         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
11467         (fegetenv): Do not use BP_SYM in versioned symbols.
11468         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
11469         (fesetenv): Do not use BP_SYM in versioned symbols.
11470         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
11471         (feupdateenv): Do not use BP_SYM in versioned symbols.
11472         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
11473         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
11474         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
11475         (feraiseexcept): Do not use BP_SYM in versioned symbols.
11476         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
11477         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
11478         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
11479         <bp-sym.h>.
11480         (__libc_start_main): Do not use BP_SYM.
11481
11482 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11483
11484         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
11485         redundant return line.
11486         (norm): Likewise.
11487         (denorm): Likewise.
11488         (dbl_mp): Likewise.
11489         (sub_magnitudes): Likewise.
11490         (__add): Likewise.
11491         (__sub): Likewise.
11492         (__mul): Likewise.
11493         (__inv): Likewise.
11494         (__dvd): Likewise.
11495         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
11496         (norm): Likewise.
11497         (denorm): Likewise.
11498         (dbl_mp): Likewise.
11499         (sub_magnitudes): Likewise.
11500         (__add): Likewise.
11501         (__sub): Likewise.
11502         (__mul): Likewise.
11503         (__inv): Likewise.
11504         (__dvd): Likewise.
11505
11506         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
11507         instead of __mul.
11508         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
11509         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
11510         (cc32): Likewise.
11511
11512         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
11513         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
11514         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
11515         of __mul for squares.
11516         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
11517         function
11518         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
11519         Likewise.
11520         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
11521         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11522
11523 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
11524
11525         [BZ #13550]
11526         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
11527         code.
11528         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
11529         prototype or function definition.  Rename ubp_* variables and
11530         parameters.  Remove argv definitions conditional on
11531         [__BOUNDED_POINTERS__].
11532         * debug/backtrace.c (__backtrace): Do not use __unbounded.
11533         * elf/dl-runtime.c (_dl_fixup): Likewise.
11534         * include/set-hooks.h (RUN_HOOK): Likewise.
11535         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
11536         definition.
11537         * string/strcpy.c (strcpy): Do not use __unbounded.
11538         * sysdeps/generic/frame.h (struct layout): Likewise.
11539         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
11540         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
11541         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
11542         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
11543         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
11544         (__backtrace): Likewise.
11545         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
11546         use __ptrvalue.
11547         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
11548         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
11549         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
11550         Likewise.
11551         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
11552         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
11553         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
11554         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
11555         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
11556         Do not use __unbounded.
11557         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
11558         Rename __unboundedrlimits parameter to rlimits in prototype.
11559         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
11560         Do not use __unbounded.
11561         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
11562         not use __ptrvalue.
11563         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
11564         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
11565         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
11566         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
11567         __ptrvalue or __unbounded.
11568         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
11569         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
11570         use __unbounded.
11571         (__new_msgctl): Do not use __ptrvalue.
11572         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
11573         __unbounded.
11574         (__libc_msgrcv): Do not use __ptrvalue.
11575         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
11576         startup_info): Do not use __unbounded.
11577         (__libc_start_main): Likewise.  Rename ubp_* variables and
11578         parameters.  Remove argv definitions conditional on
11579         [__BOUNDED_POINTERS__].
11580         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
11581         __ptrvalue.
11582         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
11583         use __unbounded.
11584         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
11585         or __ptrvalue.
11586         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
11587         use __unbounded.
11588         (__new_shmctl): Do not use __ptrvalue.
11589         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
11590         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
11591         Likewise.
11592         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
11593         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
11594         (__libc_sigaction): Likewise.
11595         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
11596         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
11597         Likewise.
11598         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
11599
11600 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
11601
11602         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
11603
11604         * string/mempcpy.c: Implement by calling memcpy.
11605
11606 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
11607
11608         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
11609
11610         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
11611         evaluation.
11612
11613         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
11614         values in the mantissa.
11615
11616         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
11617         minimize writes to Z.
11618         (sub_magnitudes): Simplify code a bit.
11619
11620 2013-02-12  Roland McGrath  <roland@hack.frob.com>
11621
11622         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
11623         from the message.  The linker prefixes all warnings with that already.
11624
11625 2013-02-12  Andreas Schwab  <schwab@suse.de>
11626
11627         [BZ #15078]
11628         * posix/regexec.c (extend_buffers): Add parameter min_len.
11629         (check_matching): Pass minimum needed length.
11630         (clean_state_log_if_needed): Likewise.
11631         (get_subexp): Likewise.
11632         * posix/Makefile (tests): Add bug-regex34.
11633         (bug-regex34-ENV): Define.
11634         * posix/bug-regex34.c: New file.
11635
11636         [BZ #11561]
11637         * posix/regcomp.c (parse_bracket_exp): When looking up collating
11638         elements compare against the byte sequence of it, not its name.
11639         * posix/Makefile (tests): Add bug-regex35.
11640         (bug-regex35-ENV): Define.
11641         * posix/bug-regex35.c: New file.
11642
11643 2013-02-11  Tom de Vries  <tom@codesourcery.com>
11644
11645         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
11646         comment.
11647         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
11648         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
11649         (CHECK_EOL): Add undef.
11650
11651 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
11652
11653         * bits/stdlib-bsearch.h: New file.
11654         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
11655         * stdlib/stdlib.h: Likewise.
11656
11657 2013-02-11  Roland McGrath  <roland@hack.frob.com>
11658
11659         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
11660         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
11661         declaration.
11662         * manual/search.texi (Array Search Function): Add missing const in
11663         lfind prototype.
11664         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
11665         declaration to use rlim_t.
11666         (Basic Scheduling Functions): Remove erroneous const from
11667         sched_getparam prototype.  Remove erroneous * from
11668         sched_get_priority_max and sched_get_priority_min prototypes.
11669         (Resource Usage): Fix summary @comment on vtimes to refer to
11670         sys/vtimes.h rather than vtimes.h.
11671         Add missing *s in vtimes prototype.
11672         (Limits on Resources): Fix ulimit prototype to return long int.
11673         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
11674         prototypes to use long int rather than double.
11675         (BSD Random): Fix initstate and setstate to use char *, not void *.
11676         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
11677         prototype to make second argument 'struct aiocb64 *const[]'.
11678         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
11679         (Status of AIO Operations): Remove erroneous const in aio_return and
11680         aio_return64 prototypes.
11681         (Synchronizing I/O): Fix sync prototype to return void.
11682         * manual/startup.texi (Suboptions): Remove an erroneous const in
11683         getsubopt prototype.
11684         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
11685         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
11686         use size_t rather than int.
11687         (Scanning All Users): Likewise for getpwent_r.
11688         (Setting Groups): Add missing const to setgroups prototype.
11689         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
11690         * manual/socket.texi (Host Names): Fix gethostbyaddr and
11691         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
11692         'const void *' rather than 'const char *'.
11693         (Host Address Functions): Likewise for inet_ntop.
11694         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
11695         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
11696         ssize_t for return value.
11697         (Sending Data): Likewise for send, sendto, sendmsg.
11698         (Socket Option Functions): Add a missing const in setsockopt prototype.
11699         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
11700         use wchar_t for the argument.
11701         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
11702         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
11703         take no arguments.
11704         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
11705         double/float/long double for second argument.
11706         Fix return types of significand, significandf, significandl.
11707         * manual/filesys.texi (Setting Permissions): Use mode_t for second
11708         argument in fchmod prototype.
11709         (File Owner): Use uid_t and gid_t in fchown prototype.
11710         (File Times): Add const to utimes, futimes, and lutimes prototypes.
11711         (Making Special Files): Use mode_t and dev_t in mknod prototype.
11712         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
11713         use 'const struct dirent **' as argument types to CMP function pointer
11714         argument.
11715         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
11716         (File Times): Fix summary magic @comment for struct utimbuf and utime
11717         to refer to utime.h, not time.h.
11718         * manual/string.texi (Argz Functions): Add missing const in
11719         argz_extract and argz_next prototypes.
11720         (Finding Tokens in a String): Likewise for basename.
11721         (String/Array Comparison): Fix typo in wcscasecmp prototype.
11722         (Copying and Concatenation): Fix typo in wmemmove prototype.
11723         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
11724         (Signal Stack): Remove erroneous const in sigstack prototype.
11725         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
11726         prototype.
11727         (Simple Calendar Time): Likewise for stime.
11728         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
11729         prototype.
11730         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
11731         say sys/sysctl.h instead.
11732         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
11733         and vsyslog prototypes.
11734
11735 2013-02-11  Tom de Vries  <tom@codesourcery.com>
11736
11737         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
11738         Remove.
11739
11740 2013-02-11  Roland McGrath  <roland@hack.frob.com>
11741
11742         * misc/sys/mman.h: Fix typo in mremap comment.
11743
11744 2013-02-08  Roland McGrath  <roland@hack.frob.com>
11745
11746         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
11747         the '\0' terminator.
11748
11749 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
11750
11751         [BZ #13550]
11752         * debug/segfault.c: Don't include <bp-checks.h>.
11753         * sysdeps/generic/bp-checks.h: Remove file.
11754         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
11755         (__GETDENTS): Don't use CHECK_N.
11756         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
11757         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
11758         (__getgroups): Don't use CHECK_N.
11759         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
11760         (setgroups): Don't use CHECK_N.
11761         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
11762         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11763         (__libc_msgrcv): Don't use CHECK_N.
11764         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
11765         (__libc_msgsnd): Don't use CHECK_N.
11766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
11767         <bp-checks.h>.
11768         (__libc_pread): Don't use CHECK_N.
11769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
11770         include <bp-checks.h>.
11771         (__libc_pread64): Don't use CHECK_N.
11772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
11773         include <bp-checks.h>.
11774         (__libc_pwrite): Don't use CHECK_N.
11775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
11776         include <bp-checks.h>.
11777         (__libc_pwrite64): Don't use CHECK_N.
11778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
11779         <bp-checks.h>.
11780         (__libc_pread): Don't use CHECK_N.
11781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
11782         include <bp-checks.h>.
11783         (__libc_pread64): Don't use CHECK_N.
11784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
11785         include <bp-checks.h>.
11786         (__libc_pwrite): Don't use CHECK_N.
11787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
11788         include <bp-checks.h>.
11789         (__libc_pwrite64): Don't use CHECK_N.
11790         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
11791         (do_pread): Don't use CHECK_N.
11792         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
11793         (do_pread64): Don't use CHECK_N.
11794         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
11795         (do_pwrite): Don't use CHECK_N.
11796         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
11797         (do_pwrite64): Don't use CHECK_N.
11798         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
11799         (__libc_readv): Don't use CHECK_N.
11800         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
11801         (semop): Don't use CHECK_N.
11802         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
11803         <bp-checks.h>.
11804         (semtimedop): Don't use CHECK_N.
11805         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
11806         (__libc_pread): Don't use CHECK_N.
11807         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
11808         <bp-checks.h>.
11809         (__libc_pread64): Don't use CHECK_N.
11810         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
11811         <bp-checks.h>.
11812         (__libc_pwrite): Don't use CHECK_N.
11813         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
11814         <bp-checks.h>.
11815         (__libc_pwrite64): Don't use CHECK_N.
11816         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
11817         <bp-checks.h>.
11818         (__libc_msgrcv): Don't use CHECK_N.
11819         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
11820         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
11821         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
11822         (__libc_writev): Don't use CHECK_N.
11823
11824 2013-02-08  Roland McGrath  <roland@hack.frob.com>
11825
11826         * string/strcpy.c: Removed unused variable.
11827
11828         * Makeconfig (+sysdep-includes): Define with := rather than =.
11829         Use an existing include/ subdir of each sysdeps dir before it.
11830
11831 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
11832
11833         * nscd/connection.c (register_traced_file): Comment function.
11834         [HAVE_INOTIFY] (union __inev): Define.
11835         [HAVE_INOTIFY] (inotify_check_files): New function.
11836         [HAVE_INOTIFY] (clear_db_cache): Likewise.
11837         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
11838         clear_db_cache.
11839         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
11840
11841 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
11842
11843         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
11844         loaded if not already and that a failure is permanent.
11845
11846 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
11847
11848         [BZ #15006]
11849         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
11850         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
11851
11852 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
11853
11854         [BZ #13550]
11855         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
11856         (CHECK_1_NULL_OK): Likewise.
11857         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
11858         (__fxstat): Do not use CHECK_1.
11859         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
11860         <bp-checks.h>.
11861         (___fxstat64): Do not use CHECK_1.
11862         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
11863         <bp-checks.h>.
11864         (__fxstatat): Do not use CHECK_1.
11865         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
11866         <bp-checks.h>.
11867         (__fxstatat64): Do not use CHECK_1.
11868         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
11869         <bp-checks.h>.
11870         (__fxstat): Do not use CHECK_1.
11871         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
11872         <bp-checks.h>.
11873         (__fxstatat): Do not use CHECK_1.
11874         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
11875         <bp-checks.h>.
11876         (__getresgid): Do not use CHECK_1.
11877         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
11878         <bp-checks.h>.
11879         (__getresuid): Do not use CHECK_1.
11880         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
11881         <bp-checks.h>.
11882         (__lxstat): Do not use CHECK_1.
11883         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
11884         <bp-checks.h>.
11885         (__old_msgctl): Do not use CHECK_1.
11886         (__new_msgctl): Likewise.
11887         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
11888         <bp-checks.h>.
11889         (__new_setrlimit): Do not use CHECK_1.
11890         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
11891         <bp-checks.h>.
11892         (__old_shmctl): Do not use CHECK_1.
11893         (__new_shmctl): Likewise.
11894         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
11895         <bp-checks.h>.
11896         (__xstat): Do not use CHECK_1.
11897         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
11898         (__lxstat): Do not use CHECK_1.
11899         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
11900         <bp-checks.h>.
11901         (___lxstat64): Do not use CHECK_1.
11902         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
11903         (__old_msgctl): Do not use CHECK_1.
11904         (__new_msgctl): Likewise.
11905         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
11906         <bp-checks.h>.
11907         (__gettimeofday): Do not use CHECK_1.
11908         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
11909         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
11910         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
11911         <bp-checks.h>.
11912         (__gettimeofday): Do not use CHECK_1.
11913         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
11914         (__old_shmctl): Do not use CHECK_1_NULL_OK.
11915         (__new_shmctl): Do not use CHECK_1.
11916         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
11917         <bp-checks.h>.
11918         (do_sigtimedwait): Do not use CHECK_1.
11919         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
11920         <bp-checks.h>.
11921         (do_sigwaitinfo): Do not use CHECK_1.
11922         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
11923         <bp-checks.h>.
11924         (msgctl): Do not use CHECK_1.
11925         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
11926         <bp-checks.h>.
11927         (shmctl): Do not use CHECK_1.
11928         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
11929         (ustat): Do not use CHECK_1.
11930         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
11931         <bp-checks.h>.
11932         (__fxstat): Do not use CHECK_1.
11933         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
11934         <bp-checks.h>.
11935         (__fxstatat): Do not use CHECK_1.
11936         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
11937         <bp-checks.h>.
11938         (__lxstat): Do not use CHECK_1.
11939         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
11940         <bp-checks.h>.
11941         (__xstat): Do not use CHECK_1.
11942         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
11943         (__xstat): Do not use CHECK_1.
11944         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
11945         (___xstat64): Do not use CHECK_1.
11946
11947         [BZ #13550]
11948         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
11949         definitions.
11950         (CHECK_BOUNDS_HIGH): Likewise.
11951         * string/strcpy.c: Do not include <bp-checks.h>.
11952         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
11953
11954 2013-02-07  Roland McGrath  <roland@hack.frob.com>
11955
11956         * nscd/nscd-client.h (__nscd_drop_map_ref):
11957         Add __attribute__ ((unused)).
11958         * nis/nss-nisplus.h (niserr2nss): Likewise.
11959
11960         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
11961         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
11962
11963         * csu/libc-tls.c (init_static_tls, init_slotinfo):
11964         Remove inline keyword.
11965         * include/rounding-mode.h (round_away): Likewise.
11966         * libio/wfileops.c (adjust_wide_data): Likewise.
11967         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
11968         (__m128i_strloadu_tolower): Likewise.
11969         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
11970         (__m128i_strloadu_tolower): Likewise.
11971         * time/mktime.c (ydhms_diff): Likewise.
11972         * locale/elem-hash.h (elem_hash): Likewise.
11973         * locale/setlocale.c (setdata): Likewise.
11974         * posix/regex_internal.h (re_string_char_size_at): Likewise.
11975         (re_string_wchar_at): Likewise.
11976         (bitset_not, bitset_merge, bitset_mask): Likewise.
11977         [!(__GNUC__ > 3)] (inline): Remove macro.
11978         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
11979         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
11980         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
11981         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
11982         * string/memcmp.c (memcmp_bytes): Likewise.
11983         * locale/programs/locarchive.c (compute_hashval): Likewise.
11984         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
11985         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
11986         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
11987         * nss/getent.c (print_rpc, print_protocols): Likewise.
11988         (print_passwd, print_group, print_aliases): Likewise.
11989         * nis/nss-nisplus.h (niserr2nss): Likewise.
11990         * nscd/connections.c (restart_p): Likewise.
11991         Change return type to bool.
11992
11993 2013-02-05  Roland McGrath  <roland@hack.frob.com>
11994
11995         * Makeconfig (all-Depend-files): Add existing
11996         $(sorted-subdirs:=/Depend) files.
11997         (all-subdirs): Remove nss.
11998         * sysdeps/unix/inet/Subdirs: Add it here instead.
11999         * hesiod/Depend: New file.
12000
12001         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
12002         instead of calling alloca.
12003
12004         * io/lseek.c (__lseek): Rename to __libc_lseek.
12005         Define __lseek as an alias.
12006
12007         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
12008
12009 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
12010
12011         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
12012         else clause and remove check for non-standard endianness.
12013
12014 2013-02-04  David S. Miller  <davem@davemloft.net>
12015
12016         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12017
12018 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
12019
12020         [BZ #13550]
12021         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
12022         (__ubp_memchr): Remove prototype.
12023         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
12024         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12025         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
12026         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12027         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
12028         Remove alias.
12029         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
12030         (__ubp_memchr): Likewise.
12031         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
12032         (__ubp_memchr): Likewise.
12033         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
12034         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
12035         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
12036         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
12037         CHECK_STRING.
12038         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
12039         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
12040         (__getcwd): Do not use CHECK_STRING.
12041         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12042         <bp-checks.h>.
12043         (__real_chown): Do not use CHECK_STRING.
12044         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
12045         <bp-checks.h>.
12046         (fchownat): Do not use CHECK_STRING.
12047         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
12048         CHECK_STRING.
12049         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12050         <bp-checks.h>.
12051         (__lchown): Do not use CHECK_STRING.
12052         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12053         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12054         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12055         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12057         include <bp-checks.h>.
12058         (truncate64): Do not use CHECK_STRING.
12059         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12060         <bp-checks.h>.
12061         (__real_chown): Do not use CHECK_STRING.
12062         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12063         <bp-checks.h>.
12064         (__lchown): Do not use CHECK_STRING.
12065         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12066         <bp-checks.h>.
12067         (__chown): Do not use CHECK_STRING.
12068         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
12069         <bp-checks.h>.
12070         (truncate64): Do not use CHECK_STRING.
12071         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
12072         Likewise.
12073         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
12074         (__xmknod): Do not use CHECK_STRING.
12075         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
12076         <bp-checks.h>.
12077         (__xmknodat): Do not use CHECK_STRING.
12078         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12079         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12080
12081 2013-02-04  Andreas Schwab  <schwab@suse.de>
12082
12083         [BZ #14142]
12084         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
12085         * include/netdb.h: Likewise for h_errno.
12086         * elf/tst-stackguard1.c: Include <tls.h>.
12087
12088 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12089
12090         * elf/link.h (struct link_map): Extend the l_addr comment.
12091         * include/link.h (struct link_map): Likewise.
12092
12093 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
12094
12095         [BZ #13550]
12096         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
12097         (BOUNDED_1): Remove macro.
12098         * debug/backtrace.c: Don't include <bp-checks.h>.
12099         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
12100         (__backtrace): Likewise.
12101         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
12102         <bp-checks.h>.
12103         (__backtrace): Don't use BOUNDED_1.
12104         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
12105         <bp-checks.h>.
12106         (__backtrace): Don't use BOUNDED_1.
12107         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
12108         (__backtrace): Don't use BOUNDED_1.
12109         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
12110         (shmat): Don't use BOUNDED_N.
12111
12112 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
12113
12114         [BZ #13550]
12115         * sysdeps/generic/bp-start.h: Remove file.
12116         * csu/libc-start.c: Don't include <bp-start.h>.
12117         (LIBC_START_MAIN): Set up __environ directly instead of using
12118         INIT_ARGV_and_ENVIRON.
12119         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
12120         <bp-start.h>.
12121
12122         [BZ #13550]
12123         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
12124         definitions.
12125         (CHECK_FCNTL): Likewise.
12126         (CHECK_N_PAGES): Likewise.
12127
12128         [BZ #13550]
12129         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
12130         definitions.
12131         (CHECK_SIGSET_NULL_OK): Likewise.
12132         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
12133         <bp-checks.h>.
12134         (sigpending): Don't use CHECK_SIGSET.
12135         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
12136         <bp-checks.h>.
12137         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12138         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
12139         <bp-checks.h>.
12140         (do_sigsuspend): Don't use CHECK_SIGSET.
12141         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
12142         use CHECK_SIGSET.
12143         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
12144         (do_sigwait): Don't use CHECK_SIGSET.
12145         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
12146         use CHECK_SIGSET.
12147         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
12148         include <bp-checks.h>.
12149         (sigpending): Don't use CHECK_SIGSET.
12150         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
12151         include <bp-checks.h>.
12152         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12153         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
12154         <bp-checks.h>.
12155         (sigpending): Don't use CHECK_SIGSET.
12156         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
12157         <bp-checks.h>.
12158         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12159
12160         [BZ #13550]
12161         * sysdeps/generic/bp-semctl.h: Remove file.
12162         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
12163         <bp-checks.h> and <bp-semctl.h>.
12164         (__old_semctl): Don't use CHECK_SEMCTL.
12165         (__new_semctl): Likewise.
12166         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
12167         and <bp-semctl.h>.
12168         (__old_semctl): Don't use CHECK_SEMCTL.
12169         (__new_semctl): Likewise.
12170         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
12171         <bp-checks.h> and <bp-semctl.h>.
12172         (__old_semctl): Don't use CHECK_SEMCTL.
12173         (__new_semctl): Likewise.
12174         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
12175         <bp-checks.h> and <bp-semctl.h>.
12176         (semctl): Don't use CHECK_SEMCTL.
12177
12178         [BZ #13550]
12179         * Makerules (elide-bp-thunks): Remove variable.
12180         (elide-routines.oS): Don't use $(elide-bp-thunks).
12181         (elide-routines.os): Likewise.
12182         (elide-routines.o): Likewise.
12183         (elide-routines.op): Likewise.
12184         (elide-routines.og): Likewise.
12185         (objects): Don't use $(bp-thunks).
12186         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
12187         include.
12188         (common-generated): Do not add s-proto-bp.d.
12189         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
12190         (int): Likewise.
12191         (typ): Likewise.
12192         Do not generate makefile rules for bounded-pointer thunks.
12193         * sysdeps/generic/bp-thunks.h: Remove file.
12194         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
12195         * sysdeps/unix/s-proto-bp.S: Likewise.
12196
12197         [BZ #15062]
12198         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
12199         parts of result separately when argument is not close to line from
12200         -i to i and one part of argument is small.
12201         * math/k_casinhf.c (__kernel_casinhf): Likewise.
12202         * math/k_casinhl.c (__kernel_casinhl): Likewise.
12203         * math/libm-test.inc (cacos_test): Add more tests.
12204         (casin_test): Likewise.
12205         (casinh_test): Likewise.
12206         * sysdeps/i386/fpu/libm-test-ulps: Update.
12207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12208
12209 2013-01-31  David S. Miller  <davem@davemloft.net>
12210
12211         * po/de.po: Update from translation team.
12212
12213 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12214
12215         * time/tzfile.c: Include stdint.h for SIZE_MAX.
12216
12217 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
12218
12219         * configure.in (_AC_PROG_CC_C89): New definition.
12220         * configure: Regenerate.
12221
12222         * configure.in (AC_PROG_CPP): New definition.
12223         * configure: Regenerate.
12224
12225 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
12226
12227         * debug/tst-backtrace.h: New file.
12228         * debug/tst-backtrace2.c: Include tst-backtrace.h.
12229         (ret): Remove variable.
12230         (x): Likewise.
12231         (FAIL): Remove macro.
12232         (NO_INLINE): Likewise.
12233         (fn1): Use match function instead of strstr.
12234         * debug/tst-backtrace3.c: Include tst-backtrace.h.
12235         (ret): Remove variable.
12236         (x): Likewise.
12237         (FAIL): Remove macro.
12238         (NO_INLINE): Likewise.
12239         (fn): Use match function instead of strstr.
12240         * debug/tst-backtrace4.c: Include tst-backtrace.h.
12241         (ret): Remove variable.
12242         (x): Likewise.
12243         (FAIL): Remove macro.
12244         (NO_INLINE): Likewise.
12245         (handle_signal): Use match function instead of strstr.
12246         * debug/tst-backtrace5.c: Include tst-backtrace.h.
12247         (ret): Remove variable.
12248         (x): Likewise.
12249         (FAIL): Remove macro.
12250         (NO_INLINE): Likewise.
12251         (handle_signal): Use match function instead of strstr.
12252
12253 2013-01-23  Roland McGrath  <roland@hack.frob.com>
12254
12255         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
12256
12257 2013-01-23  David S. Miller  <davem@davemloft.net>
12258
12259         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
12260         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
12261         argument of CAS if possible.
12262         * sysdeps/sparc/sparc64/bits/atomic.h
12263         (__arch_compare_and_exchange_val_32_acq): Likewise.
12264         (__arch_compare_and_exchange_val_64_acq): Likewise.
12265
12266 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
12267
12268         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
12269         * sysdeps/posix/ulimit.c: ... this.
12270         Include <limits.h>.
12271         * sysdeps/unix/bsd/ulimit.c: Remove file.
12272
12273 2013-01-23  Adam Conrad  <adconrad@0c3.net>
12274
12275         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
12276         (LDFLAGS-tst-array5): Likewise.
12277
12278 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
12279
12280         [BZ #15036]
12281         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
12282         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
12283         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
12284         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
12285
12286 2013-01-21  David S. Miller  <davem@davemloft.net>
12287
12288         * sysdeps/sparc/backtrace.c: New file.
12289         * sysdeps/sparc/sparc32/backtrace.h: New file.
12290         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
12291         * sysdeps/sparc/sparc64/backtrace.h: New file.
12292         * sysdeps/sparc/sparc64/backtrace.c: Delete.
12293         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
12294         -funwind-tables.
12295
12296 2013-01-21  Andreas Schwab  <schwab@suse.de>
12297
12298         [BZ #15020]
12299         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
12300         closed its stdout.
12301
12302 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
12303
12304         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
12305         "mpa2.h".
12306         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12307
12308 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
12309             Mark Mitchell  <mark@codesourcery.com>
12310             Tom de Vries  <tom@codesourcery.com>
12311             Paul Pluzhnikov  <ppluzhnikov@google.com>
12312
12313         * debug/tst-backtrace2.c: New file.
12314         * debug/tst-backtrace3.c: Likewise.
12315         * debug/tst-backtrace4.c: Likewise.
12316         * debug/tst-backtrace5.c: Likewise.
12317         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
12318         (CFLAGS-tst-backtrace3.c): Likewise.
12319         (CFLAGS-tst-backtrace4.c): Likewise.
12320         (CFLAGS-tst-backtrace5.c): Likewise.
12321         (LDFLAGS-tst-backtrace2): Likewise.
12322         (LDFLAGS-tst-backtrace3): Likewise.
12323         (LDFLAGS-tst-backtrace4): Likewise.
12324         (LDFLAGS-tst-backtrace5): Likewise.
12325         (tests): Add new tests tst-backtrace2, tst-backtrace3,
12326         tst-backtrace4 and tst-backtrace5.
12327
12328 2013-01-18  Anton Blanchard  <anton@samba.org>
12329             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12330
12331         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
12332         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
12333         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
12334         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
12335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12336         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
12337         "+r" and remove output regs list as redundant.  Add explicit inline
12338         asm to specify register of return val to work around compiler codegen
12339         bug.  Remove (int) cast on return value.  Add return type parameter to
12340         use in macro so that this macro does not truncate return value for
12341         64-bit values.
12342         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
12343         pass to INTERNAL_VSYSCALL_NCS.
12344         (INLINE_VSYSCALL): Add 'long int' as return type to
12345         INTERNAL_VSYSCALL_NCS macro invocation.
12346         (INTERNAL_VSYSCALL): Add 'long int' as return type to
12347         INTERNAL_VSYSCALL_NCS macro invocation.
12348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12349
12350 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12351
12352         [BZ #14496]
12353         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
12354         Fix application of SIMD FP exception mask.
12355
12356         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
12357         mp_no from a power of two.
12358         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
12359         __mpexp_twomm1.  Use __pow_mp.
12360
12361         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
12362         multiplication.
12363
12364 2013-01-17  David S. Miller  <davem@davemloft.net>
12365
12366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12367
12368 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
12369
12370         [BZ #15023]
12371         * include/complex.h: Condition contents on [!_COMPLEX_H].
12372         (__kernel_casinhf): New prototype.
12373         (__kernel_casinh): Likewise.
12374         (__kernel_casinhl): Likewise.
12375         * math/Makefile (libm_calls): Add k_casinh.
12376         * math/k_casinh.c: New file.
12377         * math/k_casinhf.c: Likewise.
12378         * math/k_casinhl.c: Likewise.
12379         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
12380         finite nonzero arguments.
12381         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
12382         finite nonzero arguments.
12383         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
12384         finite nonzero arguments.
12385         * math/s_casinh.c: Do not include <float.h>.
12386         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
12387         * math/s_casinhf.c: Do not include <float.h>.
12388         (__casinhf): Move code for finite nonzero arguments to
12389         k_casinhf.c.
12390         * math/s_casinhl.c: Do not include <float.h>.
12391         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
12392         redefine.
12393         (__casinhl): Move code for finite nonzero arguments to
12394         k_casinhl.c.
12395         * math/libm-test.inc (cacos_test): Add more tests.
12396         * sysdeps/i386/fpu/libm-test-ulps: Update.
12397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12398
12399 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
12400
12401         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
12402         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
12403         [!HAVE_MREMAP]: Remove [defined linux] case.
12404         * malloc/arena.c: Do not include <malloc-sysdep.h>.
12405
12406 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
12407
12408         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
12409
12410 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12411
12412         * elf/elf.h (R_386_SIZE32): New relocation.
12413         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
12414         R_386_SIZE32.
12415         (elf_machine_rela): Likewise.
12416         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
12417         R_X86_64_SIZE64 and R_X86_64_SIZE32.
12418
12419 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
12420
12421         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
12422         (FP_FAST_FMA): Do not define.
12423         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
12424         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
12425         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
12426         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
12427         !_SOFT_FLOAT]: Likewise.
12428         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
12429         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
12430         value.
12431         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
12432         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
12433         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
12434         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
12435         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
12436         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
12437         file.
12438
12439 2013-01-16  Andreas Schwab  <schwab@suse.de>
12440
12441         [BZ #14327]
12442         * include/stdlib.h (__mktemp): Add declaration.
12443         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
12444         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
12445
12446 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12447
12448         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
12449         definitions.
12450         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
12451         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
12452         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
12453         definitions here.
12454         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
12455         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
12456         definitions.
12457         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
12458         and ONE.
12459         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
12460         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
12461         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
12462         definitions.
12463         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
12464         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
12465         definitions.
12466         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
12467
12468         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
12469
12470 2013-01-15  David S. Miller  <davem@davemloft.net>
12471
12472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
12473         trunc{,f} to libm-sysdep_routes.
12474         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
12475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
12476         file.
12477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
12478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
12479         file.
12480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
12481         file.
12482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
12483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
12484         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
12485         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
12486         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
12487         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
12488         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
12489         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
12490
12491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
12492         nearbyint{,f} to libm-sysdep_routes.
12493         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
12494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
12495         New file.
12496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
12497         file.
12498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
12499         New file.
12500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
12501         file.
12502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
12503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
12504         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
12505         file.
12506         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
12507         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
12508         file.
12509         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
12510         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
12511         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
12512
12513         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
12514         libc_feholdexcept and libc_fesetenv.
12515
12516 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
12517
12518         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
12519
12520 2013-01-14  David S. Miller  <davem@davemloft.net>
12521
12522         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
12523         (SPARC_ASM_VIS2_IFUNC): Likewise.
12524         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
12525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
12526         use of 'siam' instruction.
12527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
12528         Likewise.
12529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
12530         Likewise.
12531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
12532         Likewise.
12533         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
12534         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
12535         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
12536         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
12537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
12538         file.
12539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
12540         file.
12541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
12542         file.
12543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
12544         file.
12545         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
12546         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
12547         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
12548         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
12549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
12550         new VIS2 routines.
12551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12554         Likewise.
12555         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12556         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12557         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12558         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
12560         routines to libm-sysdep_routines.
12561         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
12562
12563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
12564         fdim/fdimf to libm-sysdep_routines.
12565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
12566         file.
12567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
12568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
12569         file.
12570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
12571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
12572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
12573         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
12574         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
12575         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
12576         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
12577
12578 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
12579
12580         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
12581         to optimize copies.
12582
12583         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
12584         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
12585         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12586
12587         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
12588         local variable MPTWO.
12589         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12590         Likewise.
12591
12592 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
12593
12594         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
12595         GLOB_NOESCAPE.
12596
12597 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
12598
12599         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
12600
12601 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
12602
12603         * manual/pattern.texi (glob_t): Document gl_flags.
12604         (glob64_t): Likewise.
12605
12606 2013-01-11  David S. Miller  <davem@davemloft.net>
12607
12608         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
12609         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
12610         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
12611         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
12612         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
12613         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
12614         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
12615         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
12616         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
12617         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
12618         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
12619         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
12620         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
12621
12622         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
12623         sparc V9 rather than using V8 code.
12624         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
12625         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
12626
12627         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12628         Move to...
12629         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
12630         Here.
12631
12632 2013-01-11  Roland McGrath  <roland@hack.frob.com>
12633
12634         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
12635         not in the main loop.
12636         * configure: Regenerated.
12637
12638 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
12639
12640         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
12641         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
12642         to just #else.
12643         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
12644         [!__GLIBC_HAVE_LONG_LONG] case.
12645         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
12646         condition to just #else.
12647         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
12648         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
12649         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
12650         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
12651         unconditional.
12652         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
12653         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
12654         #elif condition to just #else.
12655         * sysdeps/unix/sysv/linux/sys/sysmacros.h
12656         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
12657         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
12658         #elif condition to just #else.
12659
12660 2013-01-11  Steve Ellcey  <sellcey@mips.com>
12661
12662         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
12663         (EF_MIPS_ARCH_64): Fix value.
12664         (EF_MIPS_ARCH_32R2): New.
12665         (EF_MIPS_ARCH_64R2): New.
12666
12667 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
12668
12669         * Makeconfig (+link-pie-before-libc): New.
12670         (+link-pie-after-libc): Likewise.
12671         (+link-pie-tests): Likewise.
12672         (+link-pie): Rewritten.
12673         (link-before-libc): Remove $(config-LDFLAGS).
12674         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
12675         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
12676         (config-LDFLAGS): Renamed to ...
12677         (rtld-LDFLAGS): This.
12678         (rtld-tests-LDFLAGS): New macro.
12679         (link-libc-rpath-link): Likewise.
12680         (link-libc-tests-rpath-link): Likewise.
12681         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
12682         (link-libc): Prepand $(link-libc-rpath-link).
12683         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
12684         (test-program-prefix): New macro.
12685         (test-via-rtld-prefix): Likewise.
12686         (test-program-cmd): Likewise.
12687         (host-test-program-cmd): Likewise.
12688         * Makefile ($(common-objpfx)testrun.sh): Replace
12689         $(run-program-prefix) with $(test-program-prefix).
12690         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
12691         $(rtld-LDFLAGS).
12692         ($(common-objpfx)shlib.lds): Likewise.
12693         (build-module-helper): Likewise.
12694         ($(common-objpfx)format.lds): Likewise.
12695         * Rules (binaries-pie-tests): New.
12696         (binaries-pie-notests): Likewise.
12697         (binaries-pie): Rewritten.
12698         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
12699         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
12700         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
12701         (make-test-out): Replace $(host-built-program-cmd) with
12702         $(host-test-program-cmd).
12703         * config.make.in (build-hardcoded-path-in-tests): New variable.
12704         * configure.in (--enable-hardcoded-path-in-tests): New configure
12705         option.
12706         (hardcoded_path_in_tests): New AC_SUBST.
12707         * configure: Regenerated.
12708         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
12709         $(built-program-cmd) with $(test-program-cmd).
12710         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
12711         (test_program_cmd): This.
12712         * elf/Makefile ($(objpfx)order.out): Run test with
12713         $(test-program-prefix).
12714         ($(objpfx)order2.out): Likewise.
12715         ($(objpfx)tst-initorder.out): Likewise.
12716         ($(objpfx)tst-initorder2.out): Likewise.
12717         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
12718         $(test-program-cmd).
12719         ($(objpfx)tst-array1-static.out): Likewise.
12720         ($(objpfx)tst-array2.out): Likewise.
12721         ($(objpfx)tst-array3.out): Likewise.
12722         ($(objpfx)tst-array4.out): Likewise.
12723         ($(objpfx)tst-array5.out): Likewise.
12724         ($(objpfx)tst-array5-static.out): Likewise.
12725         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
12726         $(test-program-cmd).
12727         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
12728         $(run-program-prefix) with $(test-program-prefix).
12729         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
12730         (test_program_prefix): This.
12731         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
12732         $(run-program-prefix) with $(test-program-prefix).
12733         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
12734         (test_program_prefix): This.
12735         * iconvdata/tst-tables.sh: Likewise.
12736         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
12737         $(run-program-prefix) with $(test-program-prefix).
12738         ($(objpfx)tst-translit.out): Likewise.
12739         ($(objpfx)tst-gettext2.out): Likewise.
12740         ($(objpfx)tst-gettext4.out): Likewise.
12741         ($(objpfx)tst-gettext6.out): Likewise.
12742         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
12743         (test_program_prefix): This.
12744         * intl/tst-gettext2.sh: Likewise.
12745         * intl/tst-gettext4.sh  Likewise.
12746         * intl/tst-gettext6.sh: Likewise.
12747         * intl/tst-translit.sh: Likewise.
12748         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
12749         with $(test-program-cmd).
12750         * libio/Makefile ($(objpfx)test-freopen.out): Replace
12751         $(run-program-prefix) with $(test-program-prefix).
12752         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
12753         (test_program_prefix): This.
12754         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
12755         $(run-program-prefix) with $(test-program-prefix).
12756         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
12757         (test_program_prefix): This.
12758         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
12759         * posix/Makefile ($(objpfx)globtest.out): Replace
12760         $(run-via-rtld-prefix) and $(test-wrapper) with
12761         $(test-program-prefix) and $(test-via-rtld-prefix).
12762         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
12763         $(test-program-prefix).
12764         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
12765         $(host-test-program-cmd).
12766         (tst-spawn-ARGS): Likewise.
12767         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
12768         $(test-program-prefix).
12769         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
12770         (test_via_rtld_prefix): This.
12771         (test_wrapper): Renamed to ...
12772         (test_program_prefix): This.
12773         (run_program_prefix): Replaced by test_program_prefix.
12774         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
12775         (test_program_prefix): This.
12776         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
12777         with $(host-test-program-cmd).
12778         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
12779         $(run-program-prefix) with $(test-program-prefix).
12780         ($(objpfx)tst-printf.out): Likewise.
12781         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
12782         $(test-program-cmd).
12783         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
12784         (test_program_prefix): This.
12785         * stdio-common/tst-unbputc.sh: Likewise.
12786         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
12787         $(run-program-prefix) with $(test-program-prefix).
12788         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
12789         (test_program_prefix): This.
12790         * string/Makefile ($(objpfx)tst-svc.out):  Replace
12791         $(built-program-cmd) with $(test-program-cmd).
12792
12793 2013-01-11  Andreas Jaeger  <aj@suse.de>
12794
12795         [BZ #15003]
12796         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
12797         value. Sync with Linux 3.7.
12798
12799 2013-01-10  David S. Miller  <davem@davemloft.net>
12800
12801         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
12802         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
12803         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
12804
12805 2013-01-10  Roland McGrath  <roland@hack.frob.com>
12806
12807         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
12808         never set.
12809         * configure: Regenerated.
12810
12811 2013-01-10  David S. Miller  <davem@davemloft.net>
12812
12813         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
12814         sparc V9 rather than using V8 code.
12815         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
12816         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
12817
12818 2013-01-10  Roland McGrath  <roland@hack.frob.com>
12819
12820         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
12821         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
12822         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
12823         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
12824         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
12825         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
12826         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
12827         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
12828         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
12829         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
12830         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
12831         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
12832         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
12833         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
12834         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
12835         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
12836         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
12837         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
12838         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
12839         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
12840         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
12841         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
12842         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
12843         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
12844         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
12845         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
12846         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
12847
12848 2013-01-10  David S. Miller  <davem@davemloft.net>
12849
12850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12851
12852 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         * posix/Makefile (tests-static): New variable.
12855         (tests): Add $(tests-static).
12856         (tst-exec-static-ARGS): New variable.
12857         (tst-spawn-static-ARGS): Likewise.
12858         * posix/tst-exec-static.c: New file.
12859         * posix/tst-spawn-static.c: Likewise.
12860         * posix/tst-exec.c: Support run directly.
12861         * posix/tst-spawn.c: Likewise.
12862
12863 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
12864
12865         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
12866         long.
12867         * math/bits/mathcalls.h (llrint): Likewise.
12868         (llround): Likewise.
12869         * stdlib/stdlib.h (struct drand48_data): Likewise.
12870         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
12871         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
12872         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
12873         Likewise.
12874         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
12875         Likewise.
12876         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
12877         (elf_greg_t): Likewise.
12878         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
12879         (__jmp_buf): Likewise.
12880         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
12881         definitions.
12882         (llrint): Likewise, for all definitions.
12883         (llrintl): Likewise.
12884
12885         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
12886         Remove [__GNUC__] condition.
12887         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
12888         condition to just [__USE_ISOC99].
12889         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
12890
12891 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
12892
12893         [BZ #14200]
12894         * sysdeps/unix/sysv/linux/x86/bits/environments.h
12895         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
12896         defined.
12897         (_POSIX_V6_ILP32_OFF32): Likewise.
12898         (_XBS5_ILP32_OFF32): Likewise.
12899         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
12900         (__ILP32_OFFBIG_LDFLAGS): Likewise.
12901
12902 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12903
12904         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
12905
12906         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
12907         doubles __mpexp_twomm1.  Adjust usage.
12908         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
12909         Remove.
12910
12911 2013-01-10  Andreas Schwab  <schwab@suse.de>
12912
12913         [BZ #14964]
12914         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
12915         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
12916
12917 2013-01-09  David S. Miller  <davem@davemloft.net>
12918
12919         [BZ #15003]
12920         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
12921         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
12922         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
12923         TCP_FASTOPEN): Define.
12924         (tcp_repair_opt): New structure.
12925         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
12926         enum values.
12927         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
12928         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
12929         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
12930         (tcp_cookie_transactions): New structure.
12931
12932 2013-01-09  Anton Blanchard  <anton@samba.org>
12933
12934         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
12935         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
12936         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
12937         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
12938
12939 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
12940
12941         * include/features.h (__USE_ANSI): Remove.
12942
12943 2013-01-09  Roland McGrath  <roland@hack.frob.com>
12944
12945         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
12946
12947         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
12948
12949 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
12950
12951         * sysdeps/s390/fpu/libm-test-ulps: Update.
12952
12953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12954
12955         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
12956         (__acr): Likewise.
12957         (__cpy): Likewise.
12958         (norm): Likewise.
12959         (denorm): Likewise.
12960         (__mp_dbl): Likewise.
12961         (__dbl_mp): Likewise.
12962         (add_magnitudes): Likewise.
12963         (sub_magnitudes): Likewise.
12964         (__add): Likewise.
12965         (__sub): Likewise.
12966         (__mul): Likewise.
12967         (__inv): Likewise.
12968         (__dvd): Likewise.
12969         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
12970         (__acr): Likewise.
12971         (__cpy): Likewise.
12972         (norm): Likewise.
12973         (denorm): Likewise.
12974         (__mp_dbl): Likewise.
12975         (__dbl_mp): Likewise.
12976         (add_magnitudes): Likewise.
12977         (sub_magnitudes): Likewise.
12978         (__add): Likewise.
12979         (__sub): Likewise.
12980         (__mul): Likewise.
12981         (__inv): Likewise.
12982         (__dvd): Likewise.
12983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
12984         (__acr): Likewise.
12985         (__cpy): Likewise.
12986         (norm): Likewise.
12987         (denorm): Likewise.
12988         (__mp_dbl): Likewise.
12989         (__dbl_mp): Likewise.
12990         (add_magnitudes): Likewise.
12991         (sub_magnitudes): Likewise.
12992         (__add): Likewise.
12993         (__sub): Likewise.
12994         (__mul): Likewise.
12995         (__inv): Likewise.
12996         (__dvd): Likewise.
12997
12998 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
12999
13000         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
13001         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
13002         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
13003         2 && __USE_EXTERN_INLINES]: Likewise.
13004
13005 2013-01-08  Andreas Jaeger  <aj@suse.de>
13006
13007         [BZ# 14985]
13008         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
13009         Remove.
13010         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13011         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13012
13013 2013-01-07  Anton Blanchard  <anton@samba.org>
13014
13015         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
13016         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
13017         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
13018         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
13019         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
13020         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13021         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
13022         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
13023         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13024         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13025         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13026         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13027         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
13028         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13029         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13030         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13031         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13032         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13033         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13034         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
13035         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13036         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
13037         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13038         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13039         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
13040         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
13041         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13042         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
13043         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
13044         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
13045         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13046         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13047         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13048         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13049         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13050         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13051         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13052         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
13053         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
13054         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
13055         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
13056         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13057         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13058
13059 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
13062         (__MALLOC_PMT): Likewise.
13063         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
13064         [__GNUC__], only on [_LIBC].
13065         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13066         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
13067         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13068         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
13069         forward declaration.
13070         (realloc_hook_ini): Likewise.
13071         (memalign_hook_ini): Likewise.
13072         (__libc_memalign): Do not use __MALLOC_PMT in variable
13073         declaration.
13074         (__libc_valloc): Likewise.
13075         (__libc_pvalloc): Likewise.
13076         (__libc_calloc): Likewise.
13077         (__posix_memalign): Likewise.
13078
13079         [BZ #14996]
13080         * math/s_casinh.c: Include <float.h>.
13081         (__casinh): Do not do computation with squaring and square root
13082         for large arguments.
13083         * math/s_casinhf.c: Include <float.h>.
13084         (__casinhf): Do not do computation with squaring and square root
13085         for large arguments.
13086         * math/s_casinhl.c: Include <float.h>.
13087         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
13088         (__casinhl): Do not do computation with squaring and square root
13089         for large arguments.
13090         * math/libm-test.inc (casin_test): Add more tests.
13091         (casinh_test): Likewise.
13092         * sysdeps/i386/fpu/libm-test-ulps: Update.
13093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13094
13095 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13096
13097         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
13098         (__x86_64_raw_data_cache_size): Likewise.
13099         (__x86_64_data_cache_size_half): Likewise.
13100         (__x86_64_raw_data_cache_size_half): Likewise.
13101         (__x86_64_shared_cache_size): Likewise.
13102         (__x86_64_raw_shared_cache_size): Likewise.
13103         (__x86_64_shared_cache_size_half): Likewise.
13104         (__x86_64_raw_shared_cache_size_half): Likewise.
13105         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
13106         to ...
13107         (__x86_data_cache_size): This.
13108         (__x86_64_raw_data_cache_size): Renamed to ...
13109         (__x86_raw_data_cache_size): This.
13110         (__x86_64_data_cache_size_half): Renamed to ...
13111         (__x86_data_cache_size_half): This.
13112         (__x86_64_raw_data_cache_size_half): Renamed to ...
13113         (__x86_raw_data_cache_size_half): This.
13114         (__x86_64_shared_cache_size): Renamed to ...
13115         (__x86_shared_cache_size): This.
13116         (__x86_64_raw_shared_cache_size): Renamed to ...
13117         (__x86_raw_shared_cache_size): This.
13118         (__x86_64_shared_cache_size_half): Renamed to ...
13119         (__x86_shared_cache_size_half): This.
13120         (__x86_64_raw_shared_cache_size_half): Renamed to ...
13121         (__x86_raw_shared_cache_size_half): This.
13122         * sysdeps/x86_64/memcpy.S: Updated.
13123         * sysdeps/x86_64/memset.S: Likewise.
13124         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13125         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13126         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13127
13128 2013-01-04  David S. Miller  <davem@davemloft.net>
13129
13130         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13131
13132 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
13133
13134         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
13135         1 to avoid redefinition warning.
13136         (__USE_GNU): Don't define.
13137         (init_signaling_nan): Protoize.
13138
13139         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13140
13141 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13142
13143         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
13144         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
13145         (__cpymn): Likewise.
13146         (norm): Remove commented code.
13147         (denorm): Likewise.
13148         (__mp_dbl): Likewise.
13149         (__inv): Likewise.
13150         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
13151         (__cpymn): Likewise.
13152         (norm): Remove commented code.
13153         (denorm): Likewise.
13154         (__mp_dbl): Likewise.
13155         (__inv): Likewise.
13156
13157         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
13158         mp_no value for 1.0 and 2.0.
13159         (norm): Use RADIXI instead of radixi.d.
13160         (denorm): Likewise.
13161         (__mul): Use 0.0 instead of zero.d.
13162         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
13163         mp_no value for 1.0 and 2.0.
13164         (norm): Use RADIXI instead of radixi.d.
13165         (denorm): Likewise.
13166         (__mul): Use 0.0 instead of zero.d.
13167
13168 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
13169
13170         [BZ #14994]
13171         * math/s_casinh.c (__casinh): Reduce finite argument to first
13172         quadrant then set signs of results at the end.
13173         * math/s_casinhf.c (__casinhf): Likewise.
13174         * math/s_casinhl.c (__casinhl): Likewise.
13175         * math/libm-test.inc (casin_test): Add more tests.
13176         (casinh_test): Likewise.
13177         * sysdeps/i386/fpu/libm-test-ulps: Update.
13178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13179
13180 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13181
13182         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
13183
13184         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
13185
13186         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
13187         declarations.
13188         (denorm): Likewise.
13189         (__mp_dbl): Likewise.
13190         (__inv): Likewise.
13191
13192         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
13193         and adjust the header comment.
13194
13195         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
13196         variable name from declaration.
13197
13198 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13199
13200         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13201         Initialize COMMON_CPUID_INDEX_7 element.
13202         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
13203         (CPUID_RTM): Likewise.
13204         (HAS_RTM): Likewise.
13205         (COMMON_CPUID_INDEX_7): New enum.
13206
13207 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
13208
13209         [BZ #14981]
13210         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
13211         size is zero, record memory as freed.
13212
13213 2013-01-03  Andreas Jaeger  <aj@suse.de>
13214
13215         * po/ia.po: Add new Interlingua translation.
13216
13217 2012-01-03  Allan McRae  <allan@archlinux.org>
13218
13219         * locale/programs/localedef.c: Fix description of '--posix' flag.
13220
13221 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
13222
13223         * NEWS: Update dates in second copyright notice.
13224         * README: Update copyright dates in example.
13225         * manual/libc.texinfo: Update copyright dates.
13226         * scripts/test-installation.pl: Update copyright date in --version
13227         output.
13228
13229         * hurd/ctty-input.c: Fix copyright notice formatting.
13230         * hurd/ctty-output.c: Likewise.
13231         * hurd/dtable.c: Likewise.
13232         * hurd/hurd-raise.c: Likewise.
13233         * hurd/hurdprio.c: Likewise.
13234         * hurd/msgportdemux.c: Likewise.
13235         * misc/sys/file.h: Likewise.
13236         * misc/sys/ioctl.h: Likewise.
13237         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
13238         * sysdeps/mach/hurd/chdir.c: Likewise.
13239         * sysdeps/mach/hurd/fchdir.c: Likewise.
13240         * sysdeps/mach/hurd/rename.c: Likewise.
13241         * sysdeps/mach/hurd/rmdir.c: Likewise.
13242         * sysdeps/mach/hurd/seekdir.c: Likewise.
13243         * sysdeps/mach/hurd/setsid.c: Likewise.
13244         * sysdeps/posix/wait3.c: Likewise.
13245
13246         * All files with FSF copyright notices: Update copyright dates
13247         using scripts/update-copyrights.
13248         * intl/plural.c: Regenerated.
13249         * locale/programs/charmap-kw.h: Likewise.
13250         * locale/programs/locfile-kw.h: Likewise.
13251
13252 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
13253
13254         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
13255         four values.
13256
13257         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
13258         calculation loop and add branch prediction.
13259
13260         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
13261         check access beyond bounds of m1np.
13262
13263         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
13264         MPTWO.
13265         (__inv): Remove local variable MPTWO to use the global
13266         constant.
13267         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
13268         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
13269         variable MPTWO.
13270         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
13271         MP3HALFS static const.
13272
13273 2013-01-01  David S. Miller  <davem@davemloft.net>
13274
13275         * po/ca.po: Update from translation team.
13276
13277 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
13278
13279         * scripts/update-copyrights: New file.
13280         * Makeconfig: Reformat copyright notice.
13281         * ctype/ctype.h: Likewise.
13282         * debug/swprintf_chk.c: Likewise.
13283         * elf/dl-cache.c: Likewise.
13284         * elf/dl-debug.c: Likewise.
13285         * elf/dl-object.c: Likewise.
13286         * grp/initgroups.c: Likewise.
13287         * hurd/Makefile: Likewise.
13288         * hurd/hurd/signal.h: Likewise.
13289         * hurd/hurdfault.c: Likewise.
13290         * hurd/hurdioctl.c: Likewise.
13291         * hurd/hurdlookup.c: Likewise.
13292         * hurd/intr-msg.c: Likewise.
13293         * iconv/gconv_open.c: Likewise.
13294         * libio/swprintf.c: Likewise.
13295         * locale/lc-ctype.c: Likewise.
13296         * locale/nl_langinfo.c: Likewise.
13297         * mach/Machrules: Likewise.
13298         * mach/Makefile: Likewise.
13299         * malloc/obstack.h: Likewise.
13300         * manual/Makefile: Likewise.
13301         * manual/tsort.awk: Likewise.
13302         * misc/bits/stab.def: Likewise.
13303         * nis/nis_print_group_entry.c: Likewise.
13304         * nis/nis_table.c: Likewise.
13305         * nis/nss_compat/compat-pwd.c: Likewise.
13306         * nis/nss_compat/compat-spwd.c: Likewise.
13307         * po/Makefile: Likewise.
13308         * posix/fnmatch.c: Likewise.
13309         * posix/regex.h: Likewise.
13310         * resolv/Makefile: Likewise.
13311         * resolv/nss_dns/dns-network.c: Likewise.
13312         * resolv/res_hconf.c: Likewise.
13313         * scripts/gen-sorted.awk: Likewise.
13314         * soft-fp/soft-fp.h: Likewise.
13315         * stdio-common/printf.h: Likewise.
13316         * stdlib/monetary.h: Likewise.
13317         * stdlib/random.c: Likewise.
13318         * stdlib/random_r.c: Likewise.
13319         * sysdeps/generic/Makefile: Likewise.
13320         * sysdeps/gnu/Makefile: Likewise.
13321         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13322         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13323         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13324         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13325         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13326         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13327         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13328         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13329         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13330         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13331         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13332         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13333         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13334         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13335         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
13336         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13337         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13338         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13339         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13340         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13341         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13342         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13343         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13344         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
13345         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
13346         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13347         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13348         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
13349         * sysdeps/mach/hurd/errnos.awk: Likewise.
13350         * sysdeps/mach/hurd/fork.c: Likewise.
13351         * sysdeps/mach/hurd/getcwd.c: Likewise.
13352         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
13353         * sysdeps/mach/hurd/mmap.c: Likewise.
13354         * sysdeps/mach/hurd/utimes.c: Likewise.
13355         * sysdeps/mach/hurd/xmknod.c: Likewise.
13356         * sysdeps/posix/profil.c: Likewise.
13357         * sysdeps/posix/readdir_r.c: Likewise.
13358         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13359         * sysdeps/powerpc/bits/setjmp.h: Likewise.
13360         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
13361         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
13362         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13363         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13364         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13365         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13366         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13367         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13368         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13369         * sysdeps/pthread/lio_listio.c: Likewise.
13370         * sysdeps/sparc/dl-procinfo.h: Likewise.
13371         * sysdeps/unix/i386/sysdep.S: Likewise.
13372         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
13373         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
13374         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
13375         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
13376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13377         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13378         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13379         * sysdeps/unix/sysv/linux/speed.c: Likewise.
13380         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
13381         * sysdeps/wordsize-32/divdi3.c: Likewise.
13382         * time/sys/time.h: Likewise.
13383         * wcsmbs/Makefile: Likewise.
13384
13385 2013-01-01  David S. Miller  <davem@davemloft.net>
13386
13387         * po/fr.po: Update from translation team.
13388
13389         * catgets/gencat.c: Update copyright year.
13390         * csu/version.c: Likewise.
13391         * debug/catchsegv.sh: Likewise.
13392         * debug/pcprofiledump.c: Likewise.
13393         * debug/xtrace.sh: Likewise.
13394         * elf/ldconfig.c: Likewise.
13395         * elf/ldd.bash.in: Likewise.
13396         * elf/pldd.c: Likewise.
13397         * elf/sotruss.ksh: Likewise.
13398         * elf/sprof.c: Likewise.
13399         * iconv/iconv_prog.c: Likewise.
13400         * iconv/iconvconfig.c: Likewise.
13401         * locale/programs/locale.c: Likewise.
13402         * locale/programs/localedef.c: Likewise.
13403         * login/programs/pt_chown.c: Likewise.
13404         * malloc/memusage.sh: Likewise.
13405         * malloc/memusagestat.c: Likewise.
13406         * malloc/mtrace.pl: Likewise.
13407         * nscd/nscd.c: Likewise.
13408         * nss/getent.c: Likewise.
13409         * nss/makedb.c: Likewise.
13410         * posix/getconf.c: Likewise.
13411
13412 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
13413
13414         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
13415         numbers.
13416
13417 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
13418
13419         * math/bits/mathcalls.h (modf): Use __nonnull.
13420
13421 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
13422
13423         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
13424         (split): Use macro CN instead of the bare value.
13425         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
13426         could be used.
13427         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
13428         instead of the bare value.
13429         (power1): Likewise.
13430
13431 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13432
13433         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
13434         __ATAN_TWOM.
13435         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13436
13437         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
13438         their values.
13439         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
13440         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
13441         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
13442         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
13443
13444 2012-12-28  Andreas Jaeger  <aj@suse.de>
13445
13446         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
13447         values are from Linux 3.7.
13448
13449         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
13450         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
13451
13452 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13453
13454         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
13455         TRUE case.
13456
13457         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
13458         (norm): Likewise.
13459         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
13460         variables with preprocessor constants.
13461         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13462         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13463         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13464
13465 2012-12-27  Bruno Haible  <bruno@clisp.org>
13466
13467         [BZ #14317]
13468         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
13469         only if needed.
13470
13471 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
13472
13473         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
13474         and use variable directly.
13475         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
13476
13477         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
13478         MPONE.
13479         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
13480         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
13481         variable MPONE.
13482         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
13483         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
13484         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
13485         include directive.  Remove local variable MPONE.
13486         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
13487         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
13488         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13489
13490 2012-12-25  David S. Miller  <davem@davemloft.net>
13491
13492         * version.h (RELEASE): Set to "development".
13493         (VERSION): Set to "2.17.90".
13494         * NEWS: Add 2.18 section.
13495
13496 2012-12-21  David S. Miller  <davem@davemloft.net>
13497
13498         * po/hr.po: Update from translation team.
13499
13500 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13501
13502         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
13503
13504 2012-12-19  Steve Ellcey  <sellcey@mips.com>
13505
13506         * NEWS:  Mention new memcpy for MIPS.
13507
13508 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13509
13510         * manual/contrib.texi (Contributors): Spelling correction.
13511
13512 2012-12-15  David S. Miller  <davem@davemloft.net>
13513
13514         * po/ru.po: Update from translation team.
13515
13516 2012-12-13  David S. Miller  <davem@davemloft.net>
13517
13518         * NEWS: Mention IFUNC testsuite enhancements.
13519
13520         * po/pl.po: Update from translation team.
13521         * po/bg.po: Likewise.
13522
13523         * manual/contrib.texi (Contributors): Update entries for Hongjiu
13524         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
13525
13526 2012-12-11  David S. Miller  <davem@davemloft.net>
13527
13528         * po/sv.po: Update from translation team.
13529
13530         * po/vi.po: Update from translation team.
13531
13532         * po/cs.po: Update from translation team.
13533
13534         * po/de.po: Update from translation team.
13535         * po/eo.po: Likewise.
13536         * po/nl.po: Likewise.
13537
13538 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13539
13540         [BZ #14246]
13541         * manual/argp.texi (Argp Helper Functions): Move node to follow
13542         Argp Parsing State.
13543
13544         [BZ #14872]
13545         * manual/conf.texi (Limits on File System Capacity): Mention if
13546         terminating null is included in the max size.
13547
13548 2012-12-10  Andreas Jaeger  <aj@suse.de>
13549
13550         * po/cs.po: Update from translation team.
13551
13552 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13553
13554         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
13555         void pointer and cast to uintptr_t.
13556         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
13557         path.
13558         * sysdeps/s390/s390-64/memcpy.S: Likewise.
13559         * sysdeps/s390/s390-64/memset.S: Likewise.
13560
13561 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
13562
13563         [BZ #14833]
13564         * menual/message.texi (Message Translation): Fix typos.
13565         (Helper programs for gettext): Likewise.
13566
13567 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
13568
13569         [BZ #14898]
13570         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
13571         Change to -1.
13572
13573 2012-12-07  David S. Miller  <davem@davemloft.net>
13574
13575         * po/libc.pot: Update.
13576
13577 2012-12-07  Richard Henderson  <rth@redhat.com>
13578
13579         [BZ #10114]
13580         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
13581         normal/normal case to before the switch.
13582         (_FP_DIV): Likewise.
13583
13584 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
13585             Mike Frysinger  <vapier@gentoo.org>
13586
13587         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
13588         check for __NR_fadvise64_64.
13589
13590 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
13591
13592         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
13593         0, not just to plain "0" as a statement.
13594         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
13595         with cw.
13596
13597 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * NEWS: Use sourceware.org in Bugzilla URL.
13600
13601 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
13602
13603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
13604         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
13605
13606         * stdio-common/tst-put-error.c (do_test): Add newline to the
13607         padded test to ensure flush.
13608
13609 2012-12-05  Jeff Law  <law@redhat.com>
13610
13611         * sunrpc/etc.rpc (fedfs_admin): Add entry.
13612
13613 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
13614
13615         * README: Don't refer to ports add-on as distributed separately.
13616         Mention AArch64 in list of systems supported in the ports add-on.
13617
13618         * LICENSES: Add more non-FSF copyright and license notices.
13619
13620         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
13621         ((unused)).
13622
13623         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
13624
13625         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
13626         10000 as width of padded output.
13627
13628 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
13629
13630         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
13631
13632         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
13633         variable LX with __attribute__ ((unused)).
13634         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13635         Likewise.
13636         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13637         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13638         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
13639         with __attribute__ ((unused)).
13640
13641 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
13642
13643         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
13644
13645 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
13646
13647         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
13648         (CFLAGS-nldbl-acos.c): New variable.
13649         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
13650         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
13651         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
13652         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
13653         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
13654         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
13655         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
13656         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
13657         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
13658         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
13659         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
13660         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
13661         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
13662         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
13663         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
13664         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
13665         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
13666         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
13667         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
13668         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
13669         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
13670         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
13671         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
13672         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
13673         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
13674         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
13675         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
13676         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
13677         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
13678         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
13679         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
13680         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
13681         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
13682         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
13683         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
13684         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
13685         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
13686         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
13687         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
13688         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
13689         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
13690         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
13691         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
13692         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
13693         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
13694         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
13695         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
13696         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
13697         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
13698         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
13699         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
13700         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
13701         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
13702         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
13703         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
13704         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
13705         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
13706         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
13707         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
13708         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
13709         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
13710         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
13711         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
13712         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
13713         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
13714         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
13715         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
13716         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
13717         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
13718         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
13719         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
13720         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
13721         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
13722         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
13723         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
13724         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
13725         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
13726         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
13727         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
13728         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
13729         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
13730         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
13731         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
13732         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
13733         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
13734         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
13735         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
13736         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
13737         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
13738         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
13739         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
13740         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
13741         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
13742         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
13743         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
13744         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
13745         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
13746
13747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
13748         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
13749
13750         [BZ #14914]
13751         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
13752         whole low double instead of just low 47 bits when splitting values
13753         into two parts.
13754
13755 2012-12-03  Allan McRae  <allan@archlinux.org>
13756
13757         * manual/stdio.texi (Predefined Printf Handlers): Remove
13758         @hsep and @vsep usage.
13759
13760 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
13761
13762         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
13763         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
13764
13765 2012-12-03  Jeff Law  <law@redhat.com>
13766
13767         * time/sys/time.h (settimeofday): Do not mark TV argument
13768         as __nonnull.
13769
13770 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
13771
13772         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
13773         when currently writing and seek to current position when not.
13774         * libio/Makefile (tests): Remove bug-fclose1.
13775         * libio/bug-fclose1.c: Delete.
13776
13777 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
13778
13779         * manual/arith.texi (feenableexcept): Fix typo.
13780         (fedisableexcept): Likewise.
13781
13782 2012-11-30  Roland McGrath  <roland@hack.frob.com>
13783
13784         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
13785         second, differently-typed declaration, rather than a cast.
13786
13787 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13788
13789         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
13790         * include/rpc/svc.h: ... here.
13791
13792 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
13793
13794         [BZ #13013]
13795         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
13796         depending n and resplen2 to catch cases where answer
13797         equals answerp2.
13798
13799 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
13800
13801         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
13802         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
13803
13804 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
13805
13806         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
13807
13808 2012-11-29  Roland McGrath  <roland@hack.frob.com>
13809
13810         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
13811
13812 2012-11-28  Jeff Law  <law@redhat.com>
13813
13814         [BZ #13761]
13815         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
13816         dataset_temporary.  Track alloca usage into alloca_used.
13817         If dataset is large allocate and release it via malloc/free.
13818
13819 2012-06-04  Florian Weimer  <fweimer@redhat.com>
13820
13821         [BZ #14197]
13822         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
13823
13824 2012-11-28  David S. Miller  <davem@davemloft.net>
13825
13826         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13827
13828 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
13829
13830         [BZ #14803]
13831         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
13832         of pi/2 rounded to nearest to 64 bits.
13833         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
13834         nearest to 64 bits.
13835         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
13836         bits.
13837
13838 2012-11-28  Jeff Law <law@redhat.com>
13839             Martin Osvald <mosvald@redhat.com>
13840
13841         [BZ #14889]
13842         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
13843         * sunrpc/svc.c: Include time.h.
13844         (__svc_accept_failed): New function.
13845         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
13846         any reason other than EINTR, call __svc_accept_failed.
13847         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
13848         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
13849
13850 2012-11-28  Andreas Schwab  <schwab@suse.de>
13851
13852         * scripts/abilist.awk: Also handle indirect functions in .opd
13853         section.
13854
13855 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
13856
13857         [BZ #13881]
13858         * sysdeps/x86/fpu/powl_helper.c: New file.
13859         * sysdeps/x86/fpu/Makefile: Likewise.
13860         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
13861         (p3): New object.
13862         (__ieee754_powl): Use __powl_helper for finite arguments except
13863         integer exponents below 8.
13864         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
13865         (p3): New object.
13866         (__ieee754_powl): Use __powl_helper for finite arguments except
13867         integer exponents below 8.
13868         * math/libm-test.inc (pow_test): Add more tests and enable some
13869         previously disabled tests.
13870         * sysdeps/i386/fpu/libm-test-ulps: Update.
13871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13872
13873 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13874             Carlos O'Donell  <carlos_odonell@mentor.com>
13875
13876         * nss/makedb.c (is_prime): Assert that input is odd and greater
13877         than 4.  Note that fact in a comment too.
13878         (next_prime): Add 4 to input.
13879
13880 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
13881
13882         [BZ #11741]
13883         * libio/Makefile (tests): Add test case tst-fwrite-error.
13884         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
13885         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
13886         * libio/tst-fwrite-error.c: New test case.
13887
13888 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
13889
13890         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
13891         before casting to void *.
13892         * include/libc-internal.h (__pointer_type): New macro.
13893         (__integer_if_pointer_type_sub): Likewise.
13894         (__integer_if_pointer_type): Likewise.
13895         (cast_to_integer): Likewise.
13896         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
13897         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
13898         before casting to atomic64_t.
13899         (atomic_exchange_acq): Likewise.
13900         (__arch_exchange_and_add_body): Likewise.
13901         (__arch_add_body): Likewise.
13902         (atomic_add_negative): Likewise.
13903         (atomic_add_zero): Likewise.
13904
13905 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
13906
13907         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
13908         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
13909         (add_fdes): Likewise.
13910         (linear_search_fdes): Likewise.
13911         (binary_search_unencoded_fdes): Likewise.
13912
13913 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
13914
13915         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
13916
13917 2012-11-24  Adam Conrad  <adconrad@0c3.net>
13918
13919         * configure.in: Autodetect C++ header directories.
13920         * configure: Regenerated.
13921
13922 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
13923
13924         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
13925
13926 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
13927
13928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13929
13930 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
13931
13932         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
13933         LDBL_MANT_DIG == 106]: Disable some tests.
13934         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
13935         Likewise.
13936         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
13937         Likewise.
13938
13939         [BZ #14871]
13940         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
13941         input for small inputs.  Return +/- pi/2 for large inputs.
13942         * math/libm-test.inc (atan_test): Add more tests.
13943
13944         * sysdeps/generic/unwind-dw2-fde-glibc.c
13945         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
13946         __attribute__ ((unused)).
13947
13948         [BZ #14645]
13949         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
13950         x * y if x and y are nonzero and z is zero.
13951
13952         [BZ #14811]
13953         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
13954         nonzero exponents with absolute value below 0x1p-117 to +/-
13955         0x1p-117.
13956
13957         [BZ #14869]
13958         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
13959         up arguments below 2**-450, not just those below 2**-500.
13960         * math/libm-test.inc (hypot_test): Add another test.
13961
13962         [BZ #14868]
13963         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
13964         Return a+b for ratio over 2**120, not 2**60.
13965         * math/libm-test.inc (hypot_test): Add another test.
13966
13967         * math/libm-test.inc (clog_test): Use
13968         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
13969         (clog10_test): Likewise.
13970
13971         [BZ #6778]
13972         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
13973
13974 2012-11-22  Andreas Schwab  <schwab@suse.de>
13975
13976         * sysdeps/i386/fpu/libm-test-ulps: Update.
13977
13978 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
13979
13980         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
13981         printf output with newline.
13982
13983 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
13984
13985         [BZ #14865]
13986         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
13987         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
13988         -z nodlopen, -z initfirst and -z execstack support.
13989         * configure: Regenerated.
13990
13991         * elf/elf.h (DF_1_NODIRECT): New macro.
13992         (DF_1_IGNMULDEF): Likewise.
13993         (DF_1_NOKSYMS): Likewise.
13994         (DF_1_NOHDR): Likewise.
13995         (DF_1_EDITED): Likewise.
13996         (DF_1_NORELOC): Likewise.
13997         (DF_1_SYMINTPOSE): Likewise.
13998         (DF_1_GLOBAUDIT): Likewise.
13999         (DF_1_SINGLETON): Likewise.
14000         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
14001         DT_1_SUPPORTED_MASK bits.
14002         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
14003
14004 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
14005
14006         * sysdeps/unix/make-syscalls.sh: Document prefixes.
14007
14008 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
14009
14010         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
14011         macro.
14012
14013         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
14014         (sendmmsg): Move declarations...
14015         * socket/sys/socket.h: ... here.
14016         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
14017         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
14018         include it from...
14019         * socket/recvmmsg.c: ... this new file.
14020         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
14021         (sendmmsg): Rename to __sendmmsg, create weak alias and make
14022         definition of __sendmmsg hidden.
14023         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
14024         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
14025         Move ENOSYS stub into and include it from...
14026         * socket/sendmmsg.c: ... this new file.
14027         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
14028         (sysdep_routines): Move recvmmsg and sendmmsg...
14029         * socket/Makefile (routines): ... here.
14030         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
14031         (GLIBC_PRIVATE): Add __sendmmsg.
14032         * include/sys/socket.h (__sendmmsg): Add declarations.
14033         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
14034         sendmmsg.
14035
14036 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
14037
14038         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
14039         variable I1 with __attribute__ ((unused)).
14040         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14041
14042 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14043
14044         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
14045         DUMMY variables with __attribute__ ((unused)).
14046
14047         * bits/byteswap.h: Include <bits/types.h>.
14048         (__bswap_64): Use __uint64_t instead of unsigned long long int.
14049
14050 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
14051
14052         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
14053         string_t.  Do not manually set errno.
14054         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
14055         length with __strnlen.  Make sure to both set errno and return it on
14056         failure.
14057
14058 2012-11-19  David S. Miller  <davem@davemloft.net>
14059
14060         With help from Joseph Myers.
14061         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
14062         very large arguments properly.
14063         * math/libm-test.inc (atan_test): New tests.
14064         (atan2_test): New tests.
14065         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14066         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14067
14068 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14069
14070         [BZ #14856]
14071         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
14072         Define to 3.
14073
14074         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
14075         [POSIX] (EADDRNOTAVAIL): Likewise.
14076         [POSIX] (EAFNOSUPPORT): Likewise.
14077         [POSIX] (EALREADY): Likewise.
14078         [POSIX] (ECONNABORTED): Likewise.
14079         [POSIX] (ECONNREFUSED): Likewise.
14080         [POSIX] (ECONNRESET): Likewise.
14081         [POSIX] (EDESTADDRREQ): Likewise.
14082         [POSIX] (EDQUOT): Likewise.
14083         [POSIX] (EHOSTUNREACH): Likewise.
14084         [POSIX] (EIDRM): Likewise.
14085         [POSIX] (EISCONN): Likewise.
14086         [POSIX] (ELOOP): Likewise.
14087         [POSIX] (EMULTIHOP): Likewise.
14088         [POSIX] (ENETDOWN): Likewise.
14089         [POSIX] (ENETUNREACH): Likewise.
14090         [POSIX] (ENOBUFS): Likewise.
14091         [POSIX] (ENODATA): Likewise.
14092         [POSIX] (ENOLINK): Likewise.
14093         [POSIX] (ENOMSG): Likewise.
14094         [POSIX] (ENOPROTOOPT): Likewise.
14095         [POSIX] (ENOSR): Likewise.
14096         [POSIX] (ENOSTR): Likewise.
14097         [POSIX] (ENOTCONN): Likewise.
14098         [POSIX] (ENOTSOCK): Likewise.
14099         [POSIX] (EOPNOTSUPP): Likewise.
14100         [POSIX] (EOVERFLOW): Likewise.
14101         [POSIX] (EPROTO): Likewise.
14102         [POSIX] (EPROTONOSUPPORT): Likewise.
14103         [POSIX] (EPROTOTYPE): Likewise.
14104         [POSIX] (ESTALE): Likewise.
14105         [POSIX] (ETIME): Likewise.
14106         [POSIX] (ETXTBSY): Likewise.
14107         [POSIX] (EWOULDBLOCK): Likewise.
14108         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
14109         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
14110         [POSIX] (SEEK_CUR): Likewise.
14111         [POSIX] (SEEK_END): Likewise.
14112         [POSIX || UNIX98] (mode_t): Do not require.
14113         [POSIX] (off_t): Likewise.
14114         [POSIX] (pid_t): Likewise.
14115         [POSIX] (sys/stat.h): Do not allow header.
14116         [POSIX] (unistd.h): Likewise.
14117         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
14118         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
14119         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
14120         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
14121         require.
14122         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
14123         sigevent): Specify elements.
14124         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
14125         entry.
14126         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
14127         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
14128
14129         * conform/data/cpio.h-data [POSIX]: Disable whole file.
14130         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
14131         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
14132         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
14133         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
14134         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
14135         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
14136         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
14137         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
14138         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
14139         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
14140         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
14141         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
14142         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
14143         Likewise.
14144         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
14145         Likewise.
14146         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
14147         Likewise.
14148         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
14149         Likewise.
14150         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
14151         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
14152         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
14153         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
14154         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
14155         Specify lower bound on value.
14156         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
14157         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
14158         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
14159         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
14160         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
14161         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
14162         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
14163         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
14164         value.
14165         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
14166         as optional.
14167         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
14168         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
14169         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
14170         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
14171         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
14172         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
14173         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
14174         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
14175         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
14176         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
14177         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
14178         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
14179         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
14180         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
14181         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
14182         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
14183         entry.
14184         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
14185         optional.
14186         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
14187         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
14188         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
14189         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
14190         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
14191         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
14192         Likewise.
14193         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
14194         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
14195         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
14196         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
14197         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
14198         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
14199         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
14200         as optional.
14201         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
14202         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
14203         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
14204         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
14205         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
14206         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
14207         specify as optional.
14208         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
14209         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
14210         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
14211         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
14212         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
14213         [XPG3] (NL_LANGMAX): Likewise.
14214         [POSIX || XPG3] (NL_MSGMAX): Likewise.
14215         [POSIX || XPG3] (NL_NMAX): Likewise.
14216         [POSIX || XPG3] (NL_SETMAX): Likewise.
14217         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
14218         [XPG3] (NZERO): Likewise.
14219         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
14220         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
14221         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
14222         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
14223         (REG_ERANGE): Expect.
14224         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
14225         optional-constant.
14226         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
14227         Use (void) in prototype.
14228         [POSIX] (*_t): Allow.
14229         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
14230         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
14231         (WRDE_BADVAL): Expect.
14232
14233         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
14234         expect.
14235         [XPG3 || XPG4] (O_RSYNC): Likewise.
14236         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
14237         Likewise.
14238         [XPG3 || XPG4] (pthread_sigmask): Likewise.
14239         [XPG3 || XPG4] (sigqueue): Likewise.
14240         [XPG3 || XPG4] (sigtimedwait): Likewise.
14241         [XPG3 || XPG4] (sigwaitinfo): Likewise.
14242         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
14243         [XPG3 || XPG4] (vsnprintf): Likewise.
14244         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
14245         Likewise.
14246         [XPG3 || XPG4] (blksize_t): Likewise.
14247         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
14248         Likewise.
14249         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
14250         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
14251         [XPG3 || XPG4] (struct itimerspec): Likewise.
14252         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
14253         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
14254         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
14255         [XPG3 || XPG4] (clockid_t): Likewise.
14256         [XPG3 || XPG4] (timer_t): Likewise.
14257         [XPG3 || XPG4] (clock_getres): Likewise.
14258         [XPG3 || XPG4] (clock_gettime): Likewise.
14259         [XPG3 || XPG4] (clock_settime): Likewise.
14260         [XPG3 || XPG4] (nanosleep): Likewise.
14261         [XPG3 || XPG4] (timer_create): Likewise.
14262         [XPG3 || XPG4] (timer_delete): Likewise.
14263         [XPG3 || XPG4] (timer_gettime): Likewise.
14264         [XPG3 || XPG4] (timer_getoverrun): Likewise.
14265         [XPG3 || XPG4] (timer_settime): Likewise.
14266         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
14267         [XPG3 || XPG4] (getlogin_r): Likewise.
14268         [XPG3 || XPG4] (pread): Likewise.
14269         [XPG3 || XPG4] (pthread_atfork): Likewise.
14270         [XPG3 || XPG4] (pwrite): Likewise.
14271
14272         [BZ #14835]
14273         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
14274         <bits/siginfo.h>.
14275
14276 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
14277
14278         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
14279         finalizing MALLSTREAM.
14280
14281         * sysdeps/mach/hurd/syncfs.c: New file.
14282
14283 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14284
14285         [BZ #14719]
14286         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
14287         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
14288         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
14289         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
14290         (_nss_dns_gethostbyname4_r): Likewise.
14291         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
14292         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
14293
14294 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
14295
14296         [BZ #13763]
14297         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
14298
14299 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
14300
14301         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
14302         * elf/cache.c (print_entry): Print ",AArch64" for
14303         FLAG_AARCH64_LIB64
14304
14305         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
14306         * elf/cache.c (print_entry): Print ",hard-float" for
14307         FLAG_ARM_LIBHF.
14308
14309 2012-11-18  David S. Miller  <davem@davemloft.net>
14310
14311         With help from Joseph Myers.
14312         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
14313         cutoff to 2**-13.
14314         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
14315         cutoff to 2**-25.
14316         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
14317         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
14318         small.
14319         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
14320         * math/libm-test.inc (y0_test): New tests.
14321         (y1_test): New tests.
14322         * sysdeps/i386/fpu/libm-test-ulps: Update.
14323         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14325
14326 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
14327
14328         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
14329         64-bit targets.
14330         * configure: Regenerated.
14331
14332 2012-11-17  David S. Miller  <davem@davemloft.net>
14333
14334         [BZ #14811]
14335         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
14336         nonzero exponents with absolute value below 0x1p-128 to +/-
14337         0x1p-128.
14338
14339 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
14340
14341         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
14342
14343         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
14344
14345         * posix/getconf-speclist.c: New file.
14346         * posix/posix-envs.def: Likewise.
14347         * posix/confstr.c (START_ENV_GROUP): New macro.
14348         (END_ENV_GROUP): Likewise.
14349         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
14350         (KNOWN_PRESENT_ENV_STRING): Likewise.
14351         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
14352         (UNKNOWN_ENVIRONMENT): Likewise.
14353         (confstr): Include posix-envs.def instead of handling
14354         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
14355         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
14356         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
14357         (END_ENV_GROUP): Likewise.
14358         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
14359         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
14360         (UNKNOWN_ENVIRONMENT): Likewise.
14361         (__sysconf): Include posix-envs.def instead of handling associated
14362         cases directly here.
14363         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
14364         preprocessing getconf-speclist.c rather than running getconf or
14365         generating empty file.
14366
14367 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
14368
14369         * scripts/check-local-headers.sh: Ignore 'mach' headers.
14370
14371 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
14372
14373         [BZ #14672]
14374         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
14375
14376 2012-11-16  David S. Miller  <davem@davemloft.net>
14377
14378         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
14379         smaller than LDBL_EPSILON/2.0L, just return xm1.
14380
14381 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
14382
14383         * elf/tst-array1.c (init): Set constructor priority to 1000.
14384         (fini): Set destructor priority to 1000.
14385         * elf/tst-array2dep.c: Likewise.
14386
14387 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14388
14389         [BZ #11741]
14390         * libio/fileops.c (_IO_new_file_write): Correctly return error.
14391         (_IO_new_file_xsputn): Also return EOF if none of the input
14392         data was written when overflow failed.
14393         * libio/iopadn.c (_IO_padn): Likewise.
14394         * libio/iowpadn.c (_IO_wpadn): Likewise.
14395         * stdio-common/tst-put-error.c: Add copyright notice.
14396         (do_test): Add case for printing padded string.
14397         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
14398         _IO_padn returned error.
14399         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
14400         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
14401         return EOF.
14402
14403 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14404
14405         * libio/libioP.h: Add comment note that the references to C++
14406         bits are now obsolete.
14407
14408 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14409
14410         * math/libm-test.inc (check_complex): Use asprintf.
14411
14412 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
14413
14414         * debug/pcprofiledump.c (print_version): Update copyright year.
14415         * malloc/memusagestat.c (print_version): Likewise.
14416
14417 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
14418
14419         [BZ #14831]
14420         * elf/Makefile (tests): Add tst-audit8.
14421         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
14422         ($(objpfx)tst-audit8.out): New target.
14423         (tst-audit8-ENV): New variable.
14424         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
14425         audit if l_reloc_result is NULL.
14426         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
14427         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
14428         * elf/tst-audit8.c: New file.
14429
14430 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14431
14432         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
14433         * misc/Makefile (CFLAGS-select.c): Define.
14434         * posix/Makefile (CFLAGS-pause.c): Define.
14435
14436 2012-11-13  David S. Miller  <davem@davemloft.net>
14437
14438         * crypt/Makefile: Move test targets after toplevel Rules
14439         inclusion.  Grab any necessary sysdep routines when linking.
14440         * crypt/md5.c (md5_process_block): Remove define, we will always
14441         name it __md5_process_block.
14442         (md5_finish_ctx): Update md5_process_block call.
14443         (md5_stream): Likewise.
14444         (md5_process_bytes): Likewise.
14445         (md5_process_block): Rename to __md5_process_block and move to ...
14446         * crypt/md5-block.c: ... here.
14447         * crypt/sha256.c (sha256_process_block): Move to ...
14448         * crypt/sha256-block.c: ... here.
14449         * crypt/sha512.c (sha512_process_block): Move to ...
14450         * crypt/sha512-block.c: ... here.
14451         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
14452         path.
14453         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
14454         * sysdeps/sparc/sparc64/multiarch/Makefile
14455         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
14456         crypt subdir.
14457         (localedef-aux): Add md5 crypto assembler when in locale subdir.
14458         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
14459         multiarch changes.
14460         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
14461         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
14462         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
14463         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
14464         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
14465         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
14466         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
14467         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
14468         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
14469         file.
14470         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
14471         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
14472         file.
14473         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
14474
14475 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
14476
14477         * timezone/tzselect.ksh: Update from tzcode git revision
14478         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
14479         * timezone/zdump.c: Likewise.
14480         * timezone/zic.c: Likewise.
14481         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
14482         in TZVERSION setting, not $(PKGVERSION).
14483         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
14484         REPORT_BUGS_TO settings.
14485
14486         [BZ #14838]
14487         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
14488         macro.
14489
14490 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14491
14492         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
14493         detection to immediately after _FP_ROUND().
14494         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
14495         bits are 0.
14496
14497 2012-11-11  David S. Miller  <davem@davemloft.net>
14498
14499         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
14500         inttypes.h
14501         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
14502         __close rather than their public counterparts.
14503
14504 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
14505
14506         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
14507         file.
14508         [UNIX98] (sem_timedwait): Do not expect.
14509         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
14510         [XPG4 || UNIX98] (sockatmark): Do not expect.
14511         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
14512         (clock_getcpuclockid): Do not expect.
14513         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
14514         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
14515         Do not expect.
14516         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
14517         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
14518         [UNIX98] (vwscanf): Likewise.
14519         [UNIX98] (vswscanf): Likewise.
14520
14521 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
14522
14523         * timezone/version.h: Remove file.
14524         * timezone/README: Do not refer to version.h.
14525         * timezone/Makefile ($(objpfx)zic.o): New dependency on
14526         $(objpfx)version.h.
14527         ($(objpfx)zdump.o): Likewise.
14528         ($(objpfx)version.h): New target.
14529
14530         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
14531         2012i.
14532         * timezone/README: Don't mention modification to tzselect.ksh.
14533         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
14534         work on unmodified tzselect.ksh.  Substitute version numbers in
14535         tzselect.ksh.
14536
14537         * Makefile (format-me): Remove.
14538         (INSTALL): Adjust indentation.  Use commands directly instead of
14539         using $(format-me).
14540
14541         * aclocal.m4 (ACX_PKGVERSION): New macro.
14542         (ACX_BUGURL): Likewise.
14543         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
14544         (PKGVERSION): New AC_DEFINE_UNQUOTED.
14545         (REPORT_BUGS_TO): Likewise.
14546         * configure: Regenerated.
14547         * config.h.in (PKGVERSION): New macro.
14548         (REPORT_BUGS_TO): Likewise.
14549         * config.make.in (PKGVERSION): New variable.
14550         (PKGVERSION_TEXI): Likewise.
14551         (REPORT_BUGS_TO): Likewise.
14552         (REPORT_BUGS_TEXI): Likewise.
14553         * Makefile (format-me): Use -I$(common-objpfx)manual.
14554         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
14555         ($(common-objpfx)manual/%): New target.
14556         (manual/%): Remove target.
14557         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
14558         (print_version): Use PKGVERSION.
14559         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
14560         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
14561         and REPORT_BUGS_TO.
14562         ($(objpfx)xtrace): Likewise.
14563         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
14564         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
14565         (print_version): Use PKGVERSION.
14566         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
14567         (do_version): Use PKGVERSION.
14568         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
14569         REPORT_BUGS_TO.
14570         (common-ldd-rewrite): Likewise.
14571         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
14572         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
14573         (print_version): Use PKGVERSION.
14574         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
14575         * elf/pldd.c (argp_program_bug_address): Remove variable.
14576         (more_help): New function.
14577         (argp): Use more_help.
14578         (print_version): Use PKGVERSION.
14579         * elf/sln.c (main): Use PKGVERSION.
14580         (usage): Use REPORT_BUGS_TO.
14581         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
14582         (top level): Use PKGVERSION.
14583         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
14584         (print_version): Use PKGVERSION.
14585         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
14586         (print_version): Use PKGVERSION.
14587         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
14588         (print_version): Use PKGVERSION.
14589         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
14590         (print_version): Use PKGVERSION.
14591         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
14592         (print_version): Use PKGVERSION.
14593         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
14594         (print_version): Use PKGVERSION.
14595         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
14596         and BUGURL.
14597         ($(objpfx)memusage): Likewise.
14598         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
14599         (do_version): Use PKGVERSION.
14600         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
14601         (print_version): Use PKGVERSION.
14602         * malloc/mtrace.pl ($PACKAGE): Remove variable.
14603         ($PKGVERSION): New variable.
14604         ($REPORT_BUGS_TO): Likewise.
14605         (usage): Use $REPORT_BUGS_TO.
14606         (top level): Use $PKGVERSION.
14607         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
14608         ($(objpfx)pkgvers.texi): New rule.
14609         ($(objpfx)stamp-pkgvers): Likewise.
14610         * manual/install.texi: Include pkgvers.texi.
14611         (--with-pkgversion): Document new configure option.
14612         (--with-bugurl): Likewise.
14613         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
14614         than necessarily for this particular distribution.  Use
14615         REPORT_BUGS_TO for where to report bugs.
14616         * INSTALL: Regenerated.
14617         * manual/libc.texinfo: Include pkgvers.texi.
14618         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
14619         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
14620         (print_version): Use PKGVERSION.
14621         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
14622         (print_version): Use PKGVERSION.
14623         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
14624         (print_version): Use PKGVERSION.
14625         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
14626         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
14627         macro.
14628         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
14629         (print_version): Use PKGVERSION.
14630         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
14631         (print_version): Use PKGVERSION.
14632         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
14633         and PKGVERSION.
14634
14635         * timezone/checktab.awk: Update from tzcode 2012i.
14636         * timezone/ialloc.c: Likewise.
14637         * timezone/private.h: Likewise.
14638         * timezone/scheck.c: Likewise.
14639         * timezone/tzfile.h: Likewise.
14640         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
14641         (TZVERSION): Hardcode tzcode version number.
14642         * timezone/zdump.c: Update from tzcode 2012i.
14643         * timezone/zic.c: Likewise.
14644         * timezone/version.h: New file.
14645         * timezone/README: Describe version.h.  Update upstream location.
14646
14647         [BZ #14824]
14648         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
14649         (mktemp): Enable declaration.
14650         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
14651         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
14652         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
14653         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
14654         Likewise.
14655         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
14656         Likewise.
14657         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
14658         Likewise.
14659         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
14660         Likewise.
14661         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
14662         Likewise.
14663         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
14664         Likewise.
14665
14666         [BZ #14821]
14667         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
14668         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
14669         for copies of such integer values.
14670         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14671         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14672
14673 2012-11-09  Andreas Jaeger  <aj@suse.de>
14674
14675         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
14676         definitions and declarations that are provided by
14677         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
14678
14679 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14680
14681         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
14682         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
14683         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
14684         definition.
14685
14686 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14687
14688         * elf/elf.h: Update comment before AArch64 relocations.
14689
14690 2012-11-07  David S. Miller  <davem@davemloft.net>
14691
14692         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
14693         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
14694         (__start_context): Declare.
14695         (__makecontext_ret): Delete.
14696         (__makecontext): Hook up __start_context instead of
14697         __makecontext_ret.
14698         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
14699         (sysdep_routines): Add __start_context when in stdlib.
14700
14701 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
14702
14703         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
14704         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
14705         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
14706         hardcoded "nm".
14707         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
14708         (READELF): New variable.  Use it instead of hardcoded "readelf".
14709
14710 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
14711
14712         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
14713         * sysdeps/x86/Makefile: Here.
14714         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
14715         * sysdeps/x86/tst-xmmymm.sh: This.
14716
14717 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
14718
14719         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
14720         expectations.
14721         [UNIX98] (pthread_barrier_t): Do not expect.
14722         [UNIX98] (pthread_barrierattr_t): Likewise.
14723         [UNIX98] (pthread_spinlock_t): Likewise.
14724         [UNIX98] (pthread_barrier_destroy): Likewise.
14725         [UNIX98] (pthread_barrier_init): Likewise.
14726         [UNIX98] (pthread_barrier_wait): Likewise.
14727         [UNIX98] (pthread_barrierattr_destroy): Likewise.
14728         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
14729         [UNIX98] (pthread_barrierattr_init): Likewise.
14730         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
14731         [UNIX98] (pthread_getcpuclockid): Likewise.
14732         [UNIX98] (pthread_mutex_timedlock): Likewise.
14733         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
14734         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
14735         [UNIX98] (pthread_sigmask): Likewise.
14736         [UNIX98] (pthread_spin_destroy): Likewise.
14737         [UNIX98] (pthread_spin_init): Likewise.
14738         [UNIX98] (pthread_spin_lock): Likewise.
14739         [UNIX98] (pthread_spin_trylock): Likewise.
14740         [UNIX98] (pthread_spin_unlock): Likewise.
14741         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
14742         Do not expect.
14743         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
14744         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
14745         [XPG3 || XPG4] (pthread_cond_t): Likewise.
14746         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
14747         [XPG3 || XPG4] (pthread_key_t): Likewise.
14748         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
14749         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
14750         [XPG3 || XPG4] (pthread_once_t): Likewise.
14751         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
14752         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
14753         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
14754         [XPG3 || XPG4] (pthread_t): Likewise.
14755
14756         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
14757         not expect.
14758         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
14759
14760         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
14761         Change function return type to int.
14762
14763         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
14764         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
14765         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
14766         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
14767         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
14768         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
14769         [!POSIX] (posix_madvise): Likewise.
14770         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
14771         && !UNIX98].
14772         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
14773         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
14774         (mode_t): Likewise.
14775         (posix_mem_offset): Likewise.
14776         (posix_typed_mem_get_info): Likewise.
14777         (posix_typed_mem_open): Likewise.
14778
14779         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
14780         Change condition to [XOPEN2K8].
14781
14782         * conform/conformtest.pl: Preprocess allow-header data with -x c
14783         instead of from stdin.
14784         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
14785         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
14786         [C99-based standards] (cerfc): Likewise.
14787         [C99-based standards] (cexp2): Likewise.
14788         [C99-based standards] (cexpm1): Likewise.
14789         [C99-based standards] (clog10): Likewise.
14790         [C99-based standards] (clog1p): Likewise.
14791         [C99-based standards] (clog2): Likewise.
14792         [C99-based standards] (clgamma): Likewise.
14793         [C99-based standards] (ctgamma): Likewise.
14794         [C99-based standards] (cerff): Likewise.
14795         [C99-based standards] (cerfcf): Likewise.
14796         [C99-based standards] (cexp2f): Likewise.
14797         [C99-based standards] (cexpm1f): Likewise.
14798         [C99-based standards] (clog10f): Likewise.
14799         [C99-based standards] (clog1pf): Likewise.
14800         [C99-based standards] (clog2f): Likewise.
14801         [C99-based standards] (clgammaf): Likewise.
14802         [C99-based standards] (ctgammaf): Likewise.
14803         [C99-based standards] (cerfl): Likewise.
14804         [C99-based standards] (cerfcl): Likewise.
14805         [C99-based standards] (cexp2l): Likewise.
14806         [C99-based standards] (cexpm1l): Likewise.
14807         [C99-based standards] (clog10l): Likewise.
14808         [C99-based standards] (clog1pl): Likewise.
14809         [C99-based standards] (clog2l): Likewise.
14810         [C99-based standards] (clgammal): Likewise.
14811         [C99-based standards] (ctgammal): Likewise.
14812         * conform/data/inttypes.h-data [C99-based standards]: Include
14813         stdint.h-data.  Remove all expectations for stdint.h contents.
14814         [C99-based standards] (PRI*): Do not allow.
14815         [C99-based standards] (SCN*): Likewise.
14816         [C99-based standards] (*_t): Likewise.
14817         [C99-based-standards] (PRId8): Expect macro.
14818         [C99-based-standards] (PRIi8): Likewise.
14819         [C99-based-standards] (PRIo8): Likewise.
14820         [C99-based-standards] (PRIu8): Likewise.
14821         [C99-based-standards] (PRIx8): Likewise.
14822         [C99-based-standards] (PRIX8): Likewise.
14823         [C99-based-standards] (SCNd8): Likewise.
14824         [C99-based-standards] (SCNi8): Likewise.
14825         [C99-based-standards] (SCNo8): Likewise.
14826         [C99-based-standards] (SCNu8): Likewise.
14827         [C99-based-standards] (SCNx8): Likewise.
14828         [C99-based-standards] (PRIdLEAST8): Likewise.
14829         [C99-based-standards] (PRIiLEAST8): Likewise.
14830         [C99-based-standards] (PRIoLEAST8): Likewise.
14831         [C99-based-standards] (PRIuLEAST8): Likewise.
14832         [C99-based-standards] (PRIxLEAST8): Likewise.
14833         [C99-based-standards] (PRIXLEAST8): Likewise.
14834         [C99-based-standards] (SCNdLEAST8): Likewise.
14835         [C99-based-standards] (SCNiLEAST8): Likewise.
14836         [C99-based-standards] (SCNoLEAST8): Likewise.
14837         [C99-based-standards] (SCNuLEAST8): Likewise.
14838         [C99-based-standards] (SCNxLEAST8): Likewise.
14839         [C99-based-standards] (PRIdFAST8): Likewise.
14840         [C99-based-standards] (PRIiFAST8): Likewise.
14841         [C99-based-standards] (PRIoFAST8): Likewise.
14842         [C99-based-standards] (PRIuFAST8): Likewise.
14843         [C99-based-standards] (PRIxFAST8): Likewise.
14844         [C99-based-standards] (PRIXFAST8): Likewise.
14845         [C99-based-standards] (SCNdFAST8): Likewise.
14846         [C99-based-standards] (SCNiFAST8): Likewise.
14847         [C99-based-standards] (SCNoFAST8): Likewise.
14848         [C99-based-standards] (SCNuFAST8): Likewise.
14849         [C99-based-standards] (SCNxFAST8): Likewise.
14850         [C99-based-standards] (PRId16): Likewise.
14851         [C99-based-standards] (PRIi16): Likewise.
14852         [C99-based-standards] (PRIo16): Likewise.
14853         [C99-based-standards] (PRIu16): Likewise.
14854         [C99-based-standards] (PRIx16): Likewise.
14855         [C99-based-standards] (PRIX16): Likewise.
14856         [C99-based-standards] (SCNd16): Likewise.
14857         [C99-based-standards] (SCNi16): Likewise.
14858         [C99-based-standards] (SCNo16): Likewise.
14859         [C99-based-standards] (SCNu16): Likewise.
14860         [C99-based-standards] (SCNx16): Likewise.
14861         [C99-based-standards] (PRIdLEAST16): Likewise.
14862         [C99-based-standards] (PRIiLEAST16): Likewise.
14863         [C99-based-standards] (PRIoLEAST16): Likewise.
14864         [C99-based-standards] (PRIuLEAST16): Likewise.
14865         [C99-based-standards] (PRIxLEAST16): Likewise.
14866         [C99-based-standards] (PRIXLEAST16): Likewise.
14867         [C99-based-standards] (SCNdLEAST16): Likewise.
14868         [C99-based-standards] (SCNiLEAST16): Likewise.
14869         [C99-based-standards] (SCNoLEAST16): Likewise.
14870         [C99-based-standards] (SCNuLEAST16): Likewise.
14871         [C99-based-standards] (SCNxLEAST16): Likewise.
14872         [C99-based-standards] (PRIdFAST16): Likewise.
14873         [C99-based-standards] (PRIiFAST16): Likewise.
14874         [C99-based-standards] (PRIoFAST16): Likewise.
14875         [C99-based-standards] (PRIuFAST16): Likewise.
14876         [C99-based-standards] (PRIxFAST16): Likewise.
14877         [C99-based-standards] (PRIXFAST16): Likewise.
14878         [C99-based-standards] (SCNdFAST16): Likewise.
14879         [C99-based-standards] (SCNiFAST16): Likewise.
14880         [C99-based-standards] (SCNoFAST16): Likewise.
14881         [C99-based-standards] (SCNuFAST16): Likewise.
14882         [C99-based-standards] (SCNxFAST16): Likewise.
14883         [C99-based-standards] (PRId32): Likewise.
14884         [C99-based-standards] (PRIi32): Likewise.
14885         [C99-based-standards] (PRIo32): Likewise.
14886         [C99-based-standards] (PRIu32): Likewise.
14887         [C99-based-standards] (PRIx32): Likewise.
14888         [C99-based-standards] (PRIX32): Likewise.
14889         [C99-based-standards] (SCNd32): Likewise.
14890         [C99-based-standards] (SCNi32): Likewise.
14891         [C99-based-standards] (SCNo32): Likewise.
14892         [C99-based-standards] (SCNu32): Likewise.
14893         [C99-based-standards] (SCNx32): Likewise.
14894         [C99-based-standards] (PRIdLEAST32): Likewise.
14895         [C99-based-standards] (PRIiLEAST32): Likewise.
14896         [C99-based-standards] (PRIoLEAST32): Likewise.
14897         [C99-based-standards] (PRIuLEAST32): Likewise.
14898         [C99-based-standards] (PRIxLEAST32): Likewise.
14899         [C99-based-standards] (PRIXLEAST32): Likewise.
14900         [C99-based-standards] (SCNdLEAST32): Likewise.
14901         [C99-based-standards] (SCNiLEAST32): Likewise.
14902         [C99-based-standards] (SCNoLEAST32): Likewise.
14903         [C99-based-standards] (SCNuLEAST32): Likewise.
14904         [C99-based-standards] (SCNxLEAST32): Likewise.
14905         [C99-based-standards] (PRIdFAST32): Likewise.
14906         [C99-based-standards] (PRIiFAST32): Likewise.
14907         [C99-based-standards] (PRIoFAST32): Likewise.
14908         [C99-based-standards] (PRIuFAST32): Likewise.
14909         [C99-based-standards] (PRIxFAST32): Likewise.
14910         [C99-based-standards] (PRIXFAST32): Likewise.
14911         [C99-based-standards] (SCNdFAST32): Likewise.
14912         [C99-based-standards] (SCNiFAST32): Likewise.
14913         [C99-based-standards] (SCNoFAST32): Likewise.
14914         [C99-based-standards] (SCNuFAST32): Likewise.
14915         [C99-based-standards] (SCNxFAST32): Likewise.
14916         [C99-based-standards] (PRId64): Likewise.
14917         [C99-based-standards] (PRIi64): Likewise.
14918         [C99-based-standards] (PRIo64): Likewise.
14919         [C99-based-standards] (PRIu64): Likewise.
14920         [C99-based-standards] (PRIx64): Likewise.
14921         [C99-based-standards] (PRIX64): Likewise.
14922         [C99-based-standards] (SCNd64): Likewise.
14923         [C99-based-standards] (SCNi64): Likewise.
14924         [C99-based-standards] (SCNo64): Likewise.
14925         [C99-based-standards] (SCNu64): Likewise.
14926         [C99-based-standards] (SCNx64): Likewise.
14927         [C99-based-standards] (PRIdLEAST64): Likewise.
14928         [C99-based-standards] (PRIiLEAST64): Likewise.
14929         [C99-based-standards] (PRIoLEAST64): Likewise.
14930         [C99-based-standards] (PRIuLEAST64): Likewise.
14931         [C99-based-standards] (PRIxLEAST64): Likewise.
14932         [C99-based-standards] (PRIXLEAST64): Likewise.
14933         [C99-based-standards] (SCNdLEAST64): Likewise.
14934         [C99-based-standards] (SCNiLEAST64): Likewise.
14935         [C99-based-standards] (SCNoLEAST64): Likewise.
14936         [C99-based-standards] (SCNuLEAST64): Likewise.
14937         [C99-based-standards] (SCNxLEAST64): Likewise.
14938         [C99-based-standards] (PRIdFAST64): Likewise.
14939         [C99-based-standards] (PRIiFAST64): Likewise.
14940         [C99-based-standards] (PRIoFAST64): Likewise.
14941         [C99-based-standards] (PRIuFAST64): Likewise.
14942         [C99-based-standards] (PRIxFAST64): Likewise.
14943         [C99-based-standards] (PRIXFAST64): Likewise.
14944         [C99-based-standards] (SCNdFAST64): Likewise.
14945         [C99-based-standards] (SCNiFAST64): Likewise.
14946         [C99-based-standards] (SCNoFAST64): Likewise.
14947         [C99-based-standards] (SCNuFAST64): Likewise.
14948         [C99-based-standards] (SCNxFAST64): Likewise.
14949         [C99-based-standards] (PRIdMAX): Likewise.
14950         [C99-based-standards] (PRIiMAX): Likewise.
14951         [C99-based-standards] (PRIoMAX): Likewise.
14952         [C99-based-standards] (PRIuMAX): Likewise.
14953         [C99-based-standards] (PRIxMAX): Likewise.
14954         [C99-based-standards] (PRIXMAX): Likewise.
14955         [C99-based-standards] (SCNdMAX): Likewise.
14956         [C99-based-standards] (SCNiMAX): Likewise.
14957         [C99-based-standards] (SCNoMAX): Likewise.
14958         [C99-based-standards] (SCNuMAX): Likewise.
14959         [C99-based-standards] (SCNxMAX): Likewise.
14960         [C99-based-standards] (PRIdPTR): Likewise.
14961         [C99-based-standards] (PRIiPTR): Likewise.
14962         [C99-based-standards] (PRIoPTR): Likewise.
14963         [C99-based-standards] (PRIuPTR): Likewise.
14964         [C99-based-standards] (PRIxPTR): Likewise.
14965         [C99-based-standards] (PRIXPTR): Likewise.
14966         [C99-based-standards] (SCNdPTR): Likewise.
14967         [C99-based-standards] (SCNiPTR): Likewise.
14968         [C99-based-standards] (SCNoPTR): Likewise.
14969         [C99-based-standards] (SCNuPTR): Likewise.
14970         [C99-based-standards] (SCNxPTR): Likewise.
14971         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
14972         allow.
14973         * conform/data/stdint.h-data: Update comments to clarify
14974         requirements.
14975         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
14976         type.
14977         [C99-based standards] (INT8_MAX): Likewise.
14978         [C99-based standards] (INT16_MIN): Likewise.
14979         [C99-based standards] (INT16_MAX): Likewise.
14980         [C99-based standards] (INT32_MIN): Likewise.
14981         [C99-based standards] (INT32_MAX): Likewise.
14982         [C99-based standards] (INT64_MIN): Likewise.
14983         [C99-based standards] (INT64_MAX): Likewise.
14984         [C99-based standards] (UINT8_MAX): Likewise.
14985         [C99-based standards] (UINT16_MAX): Likewise.
14986         [C99-based standards] (UINT32_MAX): Likewise.
14987         [C99-based standards] (UINT64_MAX): Likewise.
14988         [C99-based standards] (INT_LEAST8_MIN): Likewise.
14989         [C99-based standards] (INT_LEAST8_MAX): Likewise.
14990         [C99-based standards] (INT_LEAST16_MIN): Likewise.
14991         [C99-based standards] (INT_LEAST16_MAX): Likewise.
14992         [C99-based standards] (INT_LEAST32_MIN): Likewise.
14993         [C99-based standards] (INT_LEAST32_MAX): Likewise.
14994         [C99-based standards] (INT_LEAST64_MIN): Likewise.
14995         [C99-based standards] (INT_LEAST64_MAX): Likewise.
14996         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
14997         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
14998         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
14999         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
15000         [C99-based standards] (INT_FAST8_MIN): Likewise.
15001         [C99-based standards] (INT_FAST8_MAX): Likewise.
15002         [C99-based standards] (INT_FAST16_MIN): Likewise.
15003         [C99-based standards] (INT_FAST16_MAX): Likewise.
15004         [C99-based standards] (INT_FAST32_MIN): Likewise.
15005         [C99-based standards] (INT_FAST32_MAX): Likewise.
15006         [C99-based standards] (INT_FAST64_MIN): Likewise.
15007         [C99-based standards] (INT_FAST64_MAX): Likewise.
15008         [C99-based standards] (UINT_FAST8_MAX): Likewise.
15009         [C99-based standards] (UINT_FAST16_MAX): Likewise.
15010         [C99-based standards] (UINT_FAST32_MAX): Likewise.
15011         [C99-based standards] (UINT_FAST64_MAX): Likewise.
15012         [C99-based standards] (INTPTR_MIN): Likewise.
15013         [C99-based standards] (INTPTR_MAX): Likewise.
15014         [C99-based standards] (UINTPTR_MAX): Likewise.
15015         [C99-based standards] (INTMAX_MIN): Likewise.
15016         [C99-based standards] (INTMAX_MAX): Likewise.
15017         [C99-based standards] (UINTMAX_MAX): Likewise.
15018         [C99-based standards] (PTRDIFF_MIN): Likewise.
15019         [C99-based standards] (PTRDIFF_MAX): Likewise.
15020         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
15021         [C99-based standards] (SIZE_MAX): Likewise.
15022         [C99-based standards] (WCHAR_MAX): Likewise.
15023         [C99-based standards] (WINT_MAX): Likewise.
15024         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
15025         constraint on value.
15026         [C99-based standards] (WCHAR_MIN): Likewise.
15027         [C99-based standards] (WINT_MIN): Likewise.
15028         [C99-based standards] (*_t): Allow.
15029         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
15030         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
15031         Include math.h-data and complex.h-data.  Remove all expectations
15032         of math.h and complex.h contents.
15033         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
15034         at end of line.
15035         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
15036         (struct tm): Expect tag.
15037         [C99-based-standards] (wcstof): Expect function.
15038         [C99-based-standards] (wcstold): Likewise.
15039         [C99-based-standards] (wcstoll): Likewise.
15040         [C99-based-standards] (wcstoull): Likewise.
15041         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
15042         macro-int-constant.  Specify type.
15043         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
15044         constraint on value.
15045         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15046         Specify type.
15047         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
15048         Specify value.
15049         [ISO C standards]: Do not allow headers.
15050         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
15051         wcs[abcdefghijklmnopqrstuvwxyz]*.
15052         [ISO C standards] (*_t): Do not allow.
15053         * conform/data/wctype.h-data [C99-based standards] (iswblank):
15054         Expect function.
15055         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
15056         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15057         Specify type.
15058         [ISO C standards]: Do not allow headers.
15059         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
15060         is[abcdefghijklmnopqrstuvwxyz]*.
15061         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
15062         to[abcdefghijklmnopqrstuvwxyz]*.
15063         [ISO C standards] (*_t): Do not allow.
15064         * conform/data/stdalign.h-data: New file.
15065         * conform/data/stdbool.h-data: Likewise.
15066         * conform/data/stdnoreturn.h-data: Likewise.
15067
15068 2012-11-07  Roland McGrath  <roland@hack.frob.com>
15069
15070         [BZ #14815]
15071         * manual/filesys.texi (Directory Entries): Typo fix.
15072         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
15073
15074 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15075
15076         * elf/elf.h (EM_AARCH64): New macro.
15077         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
15078         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
15079         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
15080         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
15081         (R_AARCH64_TLSDESC): Likewise.
15082         (NT_ARM_TLS): Likewise.
15083         (NT_ARM_HW_BREAK): Likewise.
15084         (NT_ARM_HW_WATCH): Likewise.
15085
15086 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15087
15088         [BZ #14811]
15089         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
15090         (__ieee754_powl): Saturate nonzero exponents with absolute value
15091         below 0x1p-79 to +/- 0x1p-79.
15092         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
15093         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
15094         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
15095         nonzero exponents with absolute value below 0x1p-32 to +/-
15096         0x1p-32.
15097         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
15098         (__ieee754_powl): Saturate nonzero exponents with absolute value
15099         below 0x1p-79 to +/- 0x1p-79.
15100         * math/libm-test.inc (pow_test): Add more tests.
15101
15102 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15103
15104         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
15105         _dl_s390_cap_flags with kernel. Increase string length.
15106         (_dl_s390_platforms): Add z196 and zEC12.
15107
15108 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15109
15110         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
15111         Change XOPEN21K to XOPEN2K.
15112
15113 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15114
15115         * string/memmove.c: Use memcpy when possible.
15116
15117 2012-11-06  Andreas Jaeger  <aj@suse.de>
15118
15119         * po/eo.po: Update from translation team.
15120
15121 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
15122
15123         [BZ #14793]
15124         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
15125         exponent and small x and y exponents, scale x or y up.  Increase
15126         by 2 the exponent used in scaling up.
15127         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15128         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15129         * math/libm-test.inc (fma_test): Add more tests.
15130         (fma_test_towardzero): Likewise.
15131         (fma_test_downward): Likewise.
15132         (fma_test_upward): Likewise.
15133
15134 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
15135
15136         [BZ #14805]
15137         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
15138         fenv_t *.
15139
15140         [BZ #14801]
15141         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
15142         namespace for names of struct fields.
15143         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
15144         fenv_t fields.
15145         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
15146         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
15147
15148 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15149
15150         [BZ #3665]
15151         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
15152
15153 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
15154
15155         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
15156         PTR_DEMANGLE.
15157
15158         [BZ #5246]
15159         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
15160         PTR_DEMANGLE.
15161
15162 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
15163
15164         [BZ #14797]
15165         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
15166         definitely overflow as x * y not x * y + z.
15167         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15168         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15169         * math/libm-test.inc (fma_test): Add more tests.
15170         (fma_test_towardzero): Likewise.
15171         (fma_test_downward): Likewise.
15172         (fma_test_upward): Likewise.
15173
15174 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
15175
15176         [BZ #157]
15177
15178         * include/stub-tag.h: Remove file.
15179         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
15180         '#include' of it.
15181         * manual/maint.texi (Porting): Don't reference it.
15182         * Makerules ($(objpfx)stubs): Likewise.
15183         * dirent/closedir.c: Don't include <stub-tag.h>.
15184         * dirent/dirfd.c: Likewise.
15185         * dirent/fdopendir.c: Likewise.
15186         * dirent/getdents.c: Likewise.
15187         * dirent/getdents64.c: Likewise.
15188         * dirent/opendir.c: Likewise.
15189         * dirent/readdir.c: Likewise.
15190         * dirent/readdir64.c: Likewise.
15191         * dirent/readdir64_r.c: Likewise.
15192         * dirent/readdir_r.c: Likewise.
15193         * dirent/rewinddir.c: Likewise.
15194         * dirent/seekdir.c: Likewise.
15195         * dirent/telldir.c: Likewise.
15196         * gmon/profil.c: Likewise.
15197         * grp/setgroups.c: Likewise.
15198         * inet/if_index.c: Likewise.
15199         * io/access.c: Likewise.
15200         * io/chdir.c: Likewise.
15201         * io/chmod.c: Likewise.
15202         * io/chown.c: Likewise.
15203         * io/close.c: Likewise.
15204         * io/dup.c: Likewise.
15205         * io/dup2.c: Likewise.
15206         * io/dup3.c: Likewise.
15207         * io/euidaccess.c: Likewise.
15208         * io/faccessat.c: Likewise.
15209         * io/fchdir.c: Likewise.
15210         * io/fchmod.c: Likewise.
15211         * io/fchmodat.c: Likewise.
15212         * io/fchown.c: Likewise.
15213         * io/fchownat.c: Likewise.
15214         * io/fcntl.c: Likewise.
15215         * io/flock.c: Likewise.
15216         * io/fstatfs.c: Likewise.
15217         * io/fstatfs64.c: Likewise.
15218         * io/fstatvfs.c: Likewise.
15219         * io/fstatvfs64.c: Likewise.
15220         * io/futimens.c: Likewise.
15221         * io/fxstat.c: Likewise.
15222         * io/fxstat64.c: Likewise.
15223         * io/fxstatat.c: Likewise.
15224         * io/fxstatat64.c: Likewise.
15225         * io/getcwd.c: Likewise.
15226         * io/isatty.c: Likewise.
15227         * io/lchmod.c: Likewise.
15228         * io/lchown.c: Likewise.
15229         * io/link.c: Likewise.
15230         * io/linkat.c: Likewise.
15231         * io/lseek.c: Likewise.
15232         * io/lseek64.c: Likewise.
15233         * io/lxstat64.c: Likewise.
15234         * io/mkdir.c: Likewise.
15235         * io/mkdirat.c: Likewise.
15236         * io/mkfifo.c: Likewise.
15237         * io/mkfifoat.c: Likewise.
15238         * io/open.c: Likewise.
15239         * io/open64.c: Likewise.
15240         * io/openat.c: Likewise.
15241         * io/openat64.c: Likewise.
15242         * io/pipe.c: Likewise.
15243         * io/pipe2.c: Likewise.
15244         * io/poll.c: Likewise.
15245         * io/posix_fadvise.c: Likewise.
15246         * io/posix_fadvise64.c: Likewise.
15247         * io/posix_fallocate.c: Likewise.
15248         * io/posix_fallocate64.c: Likewise.
15249         * io/read.c: Likewise.
15250         * io/readlink.c: Likewise.
15251         * io/readlinkat.c: Likewise.
15252         * io/rmdir.c: Likewise.
15253         * io/sendfile.c: Likewise.
15254         * io/sendfile64.c: Likewise.
15255         * io/statfs.c: Likewise.
15256         * io/statfs64.c: Likewise.
15257         * io/statvfs.c: Likewise.
15258         * io/statvfs64.c: Likewise.
15259         * io/symlink.c: Likewise.
15260         * io/symlinkat.c: Likewise.
15261         * io/ttyname.c: Likewise.
15262         * io/ttyname_r.c: Likewise.
15263         * io/umask.c: Likewise.
15264         * io/unlink.c: Likewise.
15265         * io/unlinkat.c: Likewise.
15266         * io/utime.c: Likewise.
15267         * io/utimensat.c: Likewise.
15268         * io/write.c: Likewise.
15269         * io/xmknod.c: Likewise.
15270         * io/xmknodat.c: Likewise.
15271         * io/xstat.c: Likewise.
15272         * io/xstat64.c: Likewise.
15273         * login/getpt.c: Likewise.
15274         * login/grantpt.c: Likewise.
15275         * login/unlockpt.c: Likewise.
15276         * math/e_acoshl.c: Likewise.
15277         * math/e_acosl.c: Likewise.
15278         * math/e_asinl.c: Likewise.
15279         * math/e_atan2l.c: Likewise.
15280         * math/e_atanhl.c: Likewise.
15281         * math/e_coshl.c: Likewise.
15282         * math/e_expl.c: Likewise.
15283         * math/e_fmodl.c: Likewise.
15284         * math/e_gammal_r.c: Likewise.
15285         * math/e_hypotl.c: Likewise.
15286         * math/e_j0l.c: Likewise.
15287         * math/e_j1l.c: Likewise.
15288         * math/e_jnl.c: Likewise.
15289         * math/e_lgammal_r.c: Likewise.
15290         * math/e_log10l.c: Likewise.
15291         * math/e_log2l.c: Likewise.
15292         * math/e_logl.c: Likewise.
15293         * math/e_powl.c: Likewise.
15294         * math/e_rem_pio2l.c: Likewise.
15295         * math/e_sinhl.c: Likewise.
15296         * math/e_sqrtl.c: Likewise.
15297         * math/fclrexcpt.c: Likewise.
15298         * math/fedisblxcpt.c: Likewise.
15299         * math/feenablxcpt.c: Likewise.
15300         * math/fegetenv.c: Likewise.
15301         * math/fegetexcept.c: Likewise.
15302         * math/fegetround.c: Likewise.
15303         * math/feholdexcpt.c: Likewise.
15304         * math/fesetenv.c: Likewise.
15305         * math/fesetround.c: Likewise.
15306         * math/feupdateenv.c: Likewise.
15307         * math/fgetexcptflg.c: Likewise.
15308         * math/fraiseexcpt.c: Likewise.
15309         * math/fsetexcptflg.c: Likewise.
15310         * math/ftestexcept.c: Likewise.
15311         * math/k_cosl.c: Likewise.
15312         * math/k_rem_pio2l.c: Likewise.
15313         * math/k_sinl.c: Likewise.
15314         * math/k_tanl.c: Likewise.
15315         * math/s_asinhl.c: Likewise.
15316         * math/s_atanl.c: Likewise.
15317         * math/s_cbrtl.c: Likewise.
15318         * math/s_erfl.c: Likewise.
15319         * math/s_expm1l.c: Likewise.
15320         * math/s_log1pl.c: Likewise.
15321         * math/s_tanhl.c: Likewise.
15322         * misc/acct.c: Likewise.
15323         * misc/brk.c: Likewise.
15324         * misc/chflags.c: Likewise.
15325         * misc/chroot.c: Likewise.
15326         * misc/fchflags.c: Likewise.
15327         * misc/fgetxattr.c: Likewise.
15328         * misc/flistxattr.c: Likewise.
15329         * misc/fremovexattr.c: Likewise.
15330         * misc/fsetxattr.c: Likewise.
15331         * misc/fsync.c: Likewise.
15332         * misc/ftruncate.c: Likewise.
15333         * misc/futimes.c: Likewise.
15334         * misc/futimesat.c: Likewise.
15335         * misc/getdomain.c: Likewise.
15336         * misc/getdtsz.c: Likewise.
15337         * misc/gethostid.c: Likewise.
15338         * misc/gethostname.c: Likewise.
15339         * misc/getloadavg.c: Likewise.
15340         * misc/getpagesize.c: Likewise.
15341         * misc/getsysstats.c: Likewise.
15342         * misc/getxattr.c: Likewise.
15343         * misc/gtty.c: Likewise.
15344         * misc/ioctl.c: Likewise.
15345         * misc/lgetxattr.c: Likewise.
15346         * misc/listxattr.c: Likewise.
15347         * misc/llistxattr.c: Likewise.
15348         * misc/lremovexattr.c: Likewise.
15349         * misc/lsetxattr.c: Likewise.
15350         * misc/lutimes.c: Likewise.
15351         * misc/madvise.c: Likewise.
15352         * misc/mincore.c: Likewise.
15353         * misc/mlock.c: Likewise.
15354         * misc/mlockall.c: Likewise.
15355         * misc/mmap.c: Likewise.
15356         * misc/mprotect.c: Likewise.
15357         * misc/msync.c: Likewise.
15358         * misc/munlock.c: Likewise.
15359         * misc/munlockall.c: Likewise.
15360         * misc/munmap.c: Likewise.
15361         * misc/preadv.c: Likewise.
15362         * misc/preadv64.c: Likewise.
15363         * misc/ptrace.c: Likewise.
15364         * misc/pwritev.c: Likewise.
15365         * misc/pwritev64.c: Likewise.
15366         * misc/readv.c: Likewise.
15367         * misc/reboot.c: Likewise.
15368         * misc/remap_file_pages.c: Likewise.
15369         * misc/removexattr.c: Likewise.
15370         * misc/revoke.c: Likewise.
15371         * misc/select.c: Likewise.
15372         * misc/setdomain.c: Likewise.
15373         * misc/setegid.c: Likewise.
15374         * misc/seteuid.c: Likewise.
15375         * misc/sethostid.c: Likewise.
15376         * misc/sethostname.c: Likewise.
15377         * misc/setregid.c: Likewise.
15378         * misc/setreuid.c: Likewise.
15379         * misc/setxattr.c: Likewise.
15380         * misc/sstk.c: Likewise.
15381         * misc/stty.c: Likewise.
15382         * misc/swapoff.c: Likewise.
15383         * misc/swapon.c: Likewise.
15384         * misc/sync.c: Likewise.
15385         * misc/syncfs.c: Likewise.
15386         * misc/syscall.c: Likewise.
15387         * misc/truncate.c: Likewise.
15388         * misc/ualarm.c: Likewise.
15389         * misc/usleep.c: Likewise.
15390         * misc/ustat.c: Likewise.
15391         * misc/utimes.c: Likewise.
15392         * misc/vhangup.c: Likewise.
15393         * misc/writev.c: Likewise.
15394         * posix/_exit.c: Likewise.
15395         * posix/alarm.c: Likewise.
15396         * posix/execve.c: Likewise.
15397         * posix/fexecve.c: Likewise.
15398         * posix/fork.c: Likewise.
15399         * posix/fpathconf.c: Likewise.
15400         * posix/getaddrinfo.c: Likewise.
15401         * posix/getegid.c: Likewise.
15402         * posix/geteuid.c: Likewise.
15403         * posix/getgid.c: Likewise.
15404         * posix/getgroups.c: Likewise.
15405         * posix/getlogin.c: Likewise.
15406         * posix/getlogin_r.c: Likewise.
15407         * posix/getpgid.c: Likewise.
15408         * posix/getpid.c: Likewise.
15409         * posix/getppid.c: Likewise.
15410         * posix/getresgid.c: Likewise.
15411         * posix/getresuid.c: Likewise.
15412         * posix/getsid.c: Likewise.
15413         * posix/getuid.c: Likewise.
15414         * posix/glob64.c: Likewise.
15415         * posix/nanosleep.c: Likewise.
15416         * posix/pathconf.c: Likewise.
15417         * posix/pause.c: Likewise.
15418         * posix/posix_madvise.c: Likewise.
15419         * posix/pread.c: Likewise.
15420         * posix/pread64.c: Likewise.
15421         * posix/pwrite.c: Likewise.
15422         * posix/pwrite64.c: Likewise.
15423         * posix/sched_getaffinity.c: Likewise.
15424         * posix/sched_getp.c: Likewise.
15425         * posix/sched_gets.c: Likewise.
15426         * posix/sched_primax.c: Likewise.
15427         * posix/sched_primin.c: Likewise.
15428         * posix/sched_rr_gi.c: Likewise.
15429         * posix/sched_setaffinity.c: Likewise.
15430         * posix/sched_setp.c: Likewise.
15431         * posix/sched_sets.c: Likewise.
15432         * posix/sched_yield.c: Likewise.
15433         * posix/setgid.c: Likewise.
15434         * posix/setlogin.c: Likewise.
15435         * posix/setpgid.c: Likewise.
15436         * posix/setresgid.c: Likewise.
15437         * posix/setresuid.c: Likewise.
15438         * posix/setsid.c: Likewise.
15439         * posix/setuid.c: Likewise.
15440         * posix/sleep.c: Likewise.
15441         * posix/spawni.c: Likewise.
15442         * posix/sysconf.c: Likewise.
15443         * posix/times.c: Likewise.
15444         * posix/wait.c: Likewise.
15445         * posix/wait3.c: Likewise.
15446         * posix/wait4.c: Likewise.
15447         * posix/waitpid.c: Likewise.
15448         * resolv/gai_sigqueue.c: Likewise.
15449         * resource/getpriority.c: Likewise.
15450         * resource/getrlimit.c: Likewise.
15451         * resource/getrusage.c: Likewise.
15452         * resource/nice.c: Likewise.
15453         * resource/setpriority.c: Likewise.
15454         * resource/setrlimit.c: Likewise.
15455         * resource/ulimit.c: Likewise.
15456         * rt/aio_cancel.c: Likewise.
15457         * rt/aio_fsync.c: Likewise.
15458         * rt/aio_read.c: Likewise.
15459         * rt/aio_sigqueue.c: Likewise.
15460         * rt/aio_suspend.c: Likewise.
15461         * rt/aio_write.c: Likewise.
15462         * rt/clock_getres.c: Likewise.
15463         * rt/clock_gettime.c: Likewise.
15464         * rt/clock_nanosleep.c: Likewise.
15465         * rt/clock_settime.c: Likewise.
15466         * rt/lio_listio.c: Likewise.
15467         * rt/mq_close.c: Likewise.
15468         * rt/mq_getattr.c: Likewise.
15469         * rt/mq_notify.c: Likewise.
15470         * rt/mq_open.c: Likewise.
15471         * rt/mq_receive.c: Likewise.
15472         * rt/mq_send.c: Likewise.
15473         * rt/mq_setattr.c: Likewise.
15474         * rt/mq_timedreceive.c: Likewise.
15475         * rt/mq_timedsend.c: Likewise.
15476         * rt/mq_unlink.c: Likewise.
15477         * rt/shm_open.c: Likewise.
15478         * rt/shm_unlink.c: Likewise.
15479         * rt/timer_create.c: Likewise.
15480         * rt/timer_delete.c: Likewise.
15481         * rt/timer_getoverr.c: Likewise.
15482         * rt/timer_gettime.c: Likewise.
15483         * rt/timer_settime.c: Likewise.
15484         * setjmp/__longjmp.c: Likewise.
15485         * setjmp/setjmp.c: Likewise.
15486         * signal/kill.c: Likewise.
15487         * signal/killpg.c: Likewise.
15488         * signal/raise.c: Likewise.
15489         * signal/sigaction.c: Likewise.
15490         * signal/sigaltstack.c: Likewise.
15491         * signal/sigblock.c: Likewise.
15492         * signal/sigignore.c: Likewise.
15493         * signal/sigintr.c: Likewise.
15494         * signal/signal.c: Likewise.
15495         * signal/sigpause.c: Likewise.
15496         * signal/sigpending.c: Likewise.
15497         * signal/sigqueue.c: Likewise.
15498         * signal/sigreturn.c: Likewise.
15499         * signal/sigset.c: Likewise.
15500         * signal/sigsetmask.c: Likewise.
15501         * signal/sigstack.c: Likewise.
15502         * signal/sigsuspend.c: Likewise.
15503         * signal/sigtimedwait.c: Likewise.
15504         * signal/sigvec.c: Likewise.
15505         * signal/sigwait.c: Likewise.
15506         * signal/sigwaitinfo.c: Likewise.
15507         * signal/sysv_signal.c: Likewise.
15508         * socket/accept.c: Likewise.
15509         * socket/accept4.c: Likewise.
15510         * socket/bind.c: Likewise.
15511         * socket/connect.c: Likewise.
15512         * socket/getpeername.c: Likewise.
15513         * socket/getsockname.c: Likewise.
15514         * socket/getsockopt.c: Likewise.
15515         * socket/isfdtype.c: Likewise.
15516         * socket/listen.c: Likewise.
15517         * socket/recv.c: Likewise.
15518         * socket/recvfrom.c: Likewise.
15519         * socket/recvmsg.c: Likewise.
15520         * socket/send.c: Likewise.
15521         * socket/sendmsg.c: Likewise.
15522         * socket/sendto.c: Likewise.
15523         * socket/setsockopt.c: Likewise.
15524         * socket/shutdown.c: Likewise.
15525         * socket/sockatmark.c: Likewise.
15526         * socket/socket.c: Likewise.
15527         * socket/socketpair.c: Likewise.
15528         * stdio-common/ctermid.c: Likewise.
15529         * stdio-common/cuserid.c: Likewise.
15530         * stdio-common/remove.c: Likewise.
15531         * stdio-common/rename.c: Likewise.
15532         * stdio-common/renameat.c: Likewise.
15533         * stdio-common/tempname.c: Likewise.
15534         * stdlib/getcontext.c: Likewise.
15535         * stdlib/makecontext.c: Likewise.
15536         * stdlib/setcontext.c: Likewise.
15537         * stdlib/swapcontext.c: Likewise.
15538         * stdlib/system.c: Likewise.
15539         * streams/fattach.c: Likewise.
15540         * streams/fdetach.c: Likewise.
15541         * streams/getmsg.c: Likewise.
15542         * streams/getpmsg.c: Likewise.
15543         * streams/putmsg.c: Likewise.
15544         * streams/putpmsg.c: Likewise.
15545         * sysdeps/unix/bsd/getpt.c: Likewise.
15546         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
15547         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
15548         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
15549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
15550         Likewise.
15551         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
15552         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15553         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
15554         * sysvipc/msgctl.c: Likewise.
15555         * sysvipc/msgget.c: Likewise.
15556         * sysvipc/msgrcv.c: Likewise.
15557         * sysvipc/msgsnd.c: Likewise.
15558         * sysvipc/semctl.c: Likewise.
15559         * sysvipc/semget.c: Likewise.
15560         * sysvipc/semop.c: Likewise.
15561         * sysvipc/semtimedop.c: Likewise.
15562         * sysvipc/shmat.c: Likewise.
15563         * sysvipc/shmctl.c: Likewise.
15564         * sysvipc/shmdt.c: Likewise.
15565         * sysvipc/shmget.c: Likewise.
15566         * termios/tcdrain.c: Likewise.
15567         * termios/tcflow.c: Likewise.
15568         * termios/tcflush.c: Likewise.
15569         * termios/tcgetattr.c: Likewise.
15570         * termios/tcgetpgrp.c: Likewise.
15571         * termios/tcsendbrk.c: Likewise.
15572         * termios/tcsetattr.c: Likewise.
15573         * termios/tcsetpgrp.c: Likewise.
15574         * time/adjtime.c: Likewise.
15575         * time/clock.c: Likewise.
15576         * time/getitimer.c: Likewise.
15577         * time/gettimeofday.c: Likewise.
15578         * time/setitimer.c: Likewise.
15579         * time/settimeofday.c: Likewise.
15580         * time/stime.c: Likewise.
15581         * time/time.c: Likewise.
15582
15583 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
15584
15585         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
15586         /usr/old/bin.
15587
15588         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
15589         instead of spaces.
15590         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
15591
15592 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
15593
15594         [BZ #14796]
15595         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
15596         FE_TONEAREST before applying Dekker multiplication and Knuth
15597         addition.  Clear inexact exceptions and check for exact zero
15598         results afterwards.
15599         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15600         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
15601         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15602         * math/libm-test.inc (fma_test): Add more tests.
15603         (fma_test_towardzero): Likewise.
15604         (fma_test_downward): Likewise.
15605         (fma_test_upward): Likewise.
15606         * sysdeps/generic/math_private.h (default_libc_fesetround): New
15607         function.
15608         (libc_fesetround): New macro.
15609         (libc_fesetroundf): Likewise.
15610         (libc_fesetroundl): Likewise.
15611         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
15612         function.
15613         (libc_fesetround_387): Likewise.
15614         (libc_fesetroundf): New macro.
15615         (libc_fesetround): Likewise.
15616         (libc_fesetroundl): Likewise.
15617         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
15618         function.
15619         (libc_fesetroundf): New macro.
15620         (libc_fesetround): Likewise.
15621         (libc_fesetroundl): Likewise.
15622         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
15623         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
15624         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
15625         libm_hidden_ver.
15626         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
15627         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
15628         libm_hidden_def.
15629         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
15630         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
15631         libm_hidden_ver.
15632         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
15633         libm_hidden_def.
15634
15635         [BZ #3439]
15636         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
15637         integer constant usable in #if and use that to give value to enum
15638         constant.
15639         (FE_DIVBYZERO): Likewise.
15640         (FE_UNDERFLOW): Likewise.
15641         (FE_OVERFLOW): Likewise.
15642         (FE_INVALID): Likewise.
15643         (FE_INVALID_SNAN): Likewise.
15644         (FE_INVALID_ISI): Likewise.
15645         (FE_INVALID_IDI): Likewise.
15646         (FE_INVALID_ZDZ): Likewise.
15647         (FE_INVALID_IMZ): Likewise.
15648         (FE_INVALID_COMPARE): Likewise.
15649         (FE_INVALID_SOFTWARE): Likewise.
15650         (FE_INVALID_SQRT): Likewise.
15651         (FE_INVALID_INTEGER_CONVERSION): Likewise.
15652         (FE_TONEAREST): Likewise.
15653         (FE_TOWARDZERO): Likewise.
15654         (FE_UPWARD): Likewise.
15655         (FE_DOWNWARD): Likewise.
15656         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
15657         (FE_DIVBYZERO): Likewise.
15658         (FE_OVERFLOW): Likewise.
15659         (FE_UNDERFLOW): Likewise.
15660         (FE_INEXACT): Likewise.
15661         (FE_TONEAREST): Likewise.
15662         (FE_DOWNWARD): Likewise.
15663         (FE_UPWARD): Likewise.
15664         (FE_TOWARDZERO): Likewise.
15665         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
15666         (FE_UNDERFLOW): Likewise.
15667         (FE_OVERFLOW): Likewise.
15668         (FE_DIVBYZERO): Likewise.
15669         (FE_INVALID): Likewise.
15670         (FE_TONEAREST): Likewise.
15671         (FE_TOWARDZERO): Likewise.
15672         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
15673         (FE_OVERFLOW): Likewise.
15674         (FE_UNDERFLOW): Likewise.
15675         (FE_DIVBYZERO): Likewise.
15676         (FE_INEXACT): Likewise.
15677         (FE_TONEAREST): Likewise.
15678         (FE_TOWARDZERO): Likewise.
15679         (FE_UPWARD): Likewise.
15680         (FE_DOWNWARD): Likewise.
15681         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
15682         (FE_DIVBYZERO): Likewise.
15683         (FE_OVERFLOW): Likewise.
15684         (FE_UNDERFLOW): Likewise.
15685         (FE_INEXACT): Likewise.
15686         (FE_TONEAREST): Likewise.
15687         (FE_DOWNWARD): Likewise.
15688         (FE_UPWARD): Likewise.
15689         (FE_TOWARDZERO): Likewise.
15690
15691 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
15692
15693         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
15694
15695 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
15696
15697         * scripts/cross-test-ssh.sh (command): Use newlines to separate
15698         commands.  Quote $PWD.
15699         (blacklist_exports): Don't use remove_newlines.  Replace "declare
15700         -x" by "export".
15701         (remove_newlines): Remove.
15702
15703 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
15704
15705         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
15706         * stdlib/stdlib.h (atof): Moved to ...
15707         * include/bits/stdlib-float.h: Here.  New file.
15708         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
15709         * stdlib/bits/stdlib-float.h: New file.
15710         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
15711         -mno-sse -mno-mmx.
15712         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
15713         <xmmintrin.h>.
15714
15715 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
15716
15717         * conform/conformtest.pl (@headers): Add fenv.h.
15718         * conform/data/fenv.h-data: New file.
15719         * include/fenv.h [_ISOMAC]: Disable all contents of file except
15720         include of <math/fenv.h>.
15721
15722         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
15723         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
15724         && !UNIX98].  Enables tests for XOPEN2K8.
15725         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
15726         POSIX2008]: Likewise.
15727
15728         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
15729         (struct rusage): Do not expect type or its members.
15730
15731         [BZ #3439]
15732         * math/math.h (FP_NAN): Define macro to integer constant usable in
15733         #if and use that to give value to enum constant.
15734         (FP_INFINITE): Likewise.
15735         (FP_ZERO): Likewise.
15736         (FP_SUBNORMAL): Likewise.
15737         (FP_NORMAL): Likewise.
15738
15739 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
15740
15741         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
15742         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
15743         arguments.
15744
15745 2012-11-02  Roland McGrath  <roland@hack.frob.com>
15746
15747         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
15748         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
15749         autoconf-time if not.
15750         * configure.in: Remove AC_PREREQ.
15751
15752 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15753
15754         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
15755         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
15756         of the internal implementation.
15757
15758 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
15759
15760         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
15761         except include of <misc/sys/syslog.h>.
15762
15763 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15764
15765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
15766         function returns with a NULL context exit with zero.
15767
15768 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15769
15770         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
15771
15772 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
15773
15774         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
15775         (run_program_cmd): This.
15776         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
15777         (tst_langinfo): New variable.  Use it.
15778
15779 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
15780
15781         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
15782         floating point opcodes.
15783
15784 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
15785
15786         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
15787         variable.
15788
15789         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
15790
15791         * sysdeps/mach/hurd/powerpc: Remove directory.
15792         * sysdeps/mach/powerpc: Likewise.
15793
15794 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15795
15796         * scripts/check-local-headers.sh: Ignore c++ headers.
15797
15798 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
15799
15800         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
15801         __libc_cleanup_region_start argument.
15802
15803 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
15804
15805         [BZ #14784]
15806         [BZ #14785]
15807         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
15808         x * y using scaling, not as x * y + z.
15809         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15810         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15811         * math/libm-test.inc (fma_test): Add more tests.
15812         (fma_test_towardzero): Likewise.
15813         (fma_test_downward): Likewise.
15814         (fma_test_upward): Likewise.
15815
15816 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
15817
15818         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
15819
15820 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
15821
15822         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
15823         New variable.
15824
15825 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
15826
15827         * rt/tst-shm.c (worker): Correct checking for mmap failure.
15828
15829 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
15830
15831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15832         Fix sort order.
15833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15834         Likewise.
15835
15836 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15837
15838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15839         Fix the order of the list for glibc 2.17.
15840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15841         Likewise.
15842
15843 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
15844
15845         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15846
15847 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
15848
15849         [BZ #14610]
15850         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
15851         for low part of x being zero before using __atanl (y).
15852         * math/libm-test.inc (atan2_test): Add another test.
15853
15854         * manual/install.texi (Configuring and compiling): Document
15855         general use of test-wrapper and test-wrapper-env.
15856         * INSTALL: Regenerated.
15857
15858         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
15859         (__fma): Do not extract and scale down low bits on after-rounding
15860         systems when result rounded to normal precision would have normal
15861         exponent.
15862         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
15863         (__fmal): Do not extract and scale down low bits on after-rounding
15864         systems when result rounded to normal precision would have normal
15865         exponent.
15866         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
15867         (__fmal): Do not extract and scale down low bits on after-rounding
15868         systems when result rounded to normal precision would have normal
15869         exponent.
15870         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
15871         macro.
15872         (fma_test): Add more tests.
15873         (fma_test_towardzero): Likewise.
15874         (fma_test_downward): Likewise.
15875         (fma_test_upward): Likewise.
15876
15877 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
15878
15879         * sysdeps/i386/tininess.h: Renamed to ...
15880         * sysdeps/x86/tininess.h: This.
15881         * sysdeps/x86_64/tininess.h: Removed.
15882
15883 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
15884
15885         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
15886         input.  Use $(build-program-cmd).
15887         ($(objpfx)tst-array1-static.out): Likewise.
15888         ($(objpfx)tst-array2.out): Likewise.
15889         ($(objpfx)tst-array3.out): Likewise.
15890         ($(objpfx)tst-array4.out): Likewise.
15891         ($(objpfx)tst-array5.out): Likewise.
15892         ($(objpfx)tst-array5-static.out): Likewise.
15893
15894 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
15895
15896         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
15897         if defined.
15898
15899         * nss/nsswitch.h (nss_interface_function): Provide new
15900         macro for use with NSS functions.
15901         * grp/initgroups.c: Use new macro.
15902         * nss/getXXbyYY.c: Likewise.
15903         * nss/getXXbyYY_r.c: Likewise.
15904         * nss/getXXent.c: Likewise.
15905         * nss/getXXent_r.c: Likewise.
15906         * sysdeps/posix/getaddrinfo.c: Likewise.
15907
15908 2012-10-30  Andreas Jaeger  <aj@suse.de>
15909
15910         * po/ru.po: Update Russion translation from translation project.
15911
15912 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
15913
15914         [BZ #14152]
15915         [BZ #14783]
15916         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
15917         result and shift together with sticky bit instead of replicating
15918         round-to-nearest rounding.
15919         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15920         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15921         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
15922         missing underflow exceptions.
15923         (fma_test_towardzero): Add more tests.
15924         (fma_test_downward): Likewise.
15925         (fma_test_upward): Likewise.
15926
15927         [BZ #14047]
15928         * sysdeps/generic/tininess.h: New file.
15929         * sysdeps/i386/tininess.h: Likewise.
15930         * sysdeps/sh/tininess.h: Likewise.
15931         * sysdeps/x86_64/tininess.h: Likewise.
15932         * stdlib/tst-strtod-underflow.c: Likewise.
15933         * stdlib/tst-tininess.c: Likewise.
15934         * stdlib/strtod_l.c: Include <tininess.h>.
15935         (round_and_return): Do not set errno for exact underflow cases.
15936         Force an underflow exception when setting errno for underflow.
15937         Determine underflow based on rounding to normal precision if
15938         TININESS_AFTER_ROUNDING.
15939         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
15940         ERANGE for exact underflow cases.
15941         * stdlib/Makefile (tests): Add tst-tininess and
15942         tst-strtod-underflow.
15943         ($(objpfx)tst-tininess): Use $(link-libm).
15944         ($(objpfx)tst-strtod-underflow): Likewise.
15945
15946 2012-10-30  Andreas Jaeger  <aj@suse.de>
15947
15948         [BZ#14767]
15949         * elf/Makefile (tests): Remove conditional for have-initfini-array
15950         since this is now always required and the variable does not exist
15951         anymore.
15952         (tests-static): Likewise.
15953         (modules-names): Likewise.
15954
15955         * po/eo.po: Add Esperanto translation from translation project.
15956
15957         * elf/tst-array1.c (fini_array): Make writeable so that it can be
15958         merged with constructor/destructor.
15959         (init_array): Likewise.
15960         * elf/tst-array2dep.c (fini_array): Likewise.
15961         (init_array): Likewise.
15962
15963 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
15964
15965         * manual/message.texi: Delete @cartouche tags.
15966
15967 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
15968
15969         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
15970         EOPNOTSUPP.
15971         * sysdeps/mach/hurd/fsync.c: Likewise.
15972
15973         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
15974         [_POSIX_REALTIME_SIGNALS]: Change condition to
15975         [_POSIX_REALTIME_SIGNALS > 0].
15976
15977 2012-10-27  Andreas Jaeger  <aj@suse.de>
15978
15979         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
15980         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
15981         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
15982         [__WORDSIZE != 64]: Likewise.
15983
15984 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
15985
15986         *  iconvdata/tst-table.sh: Remove ${SHELL}.
15987         *  iconvdata/tst-tables.sh: Likewise.
15988
15989 2012-10-25  David S. Miller  <davem@davemloft.net>
15990
15991         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15992         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
15993         of strtoull.
15994
15995         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
15996         ifunc-impl-list.c
15997         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15998         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
15999         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
16000         file.
16001
16002 2012-10-25  Roland McGrath  <roland@hack.frob.com>
16003
16004         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16005         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
16006         __getdirentries.
16007
16008 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16009             Jim Blandy  <jimb@codesourcery.com>
16010
16011         * scripts/cross-test-ssh.sh: New file.
16012         * manual/install.texi (Configuring and compiling): Document use of
16013         cross-test-ssh.sh.
16014         * INSTALL: Regenerated.
16015
16016 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
16017
16018         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
16019         EOPNOTSUPP.
16020
16021 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16022
16023         * Makeconfig (run-program-prefix): Fix comment.
16024
16025 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16026             Jim Blandy  <jimb@codesourcery.com>
16027
16028         * Makeconfig (test-wrapper): New variable,
16029         (test-wrapper-env): Likewise.
16030         [$(cross-compiling) = yes && $(test-wrapper) != ""]
16031         (run-built-tests): Define to yes.
16032         (run-program-prefix): Use $(test-wrapper).
16033         (built-program-cmd): Likewise.
16034         * Rules (make-test-out): Use $(test-wrapper-env) and
16035         $(host-built-program-cmd).
16036         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
16037         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
16038         tst-pathopt.sh.
16039         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
16040         $(test-wrapper-env) to tst-rtld-load-self.sh.
16041         ($(objpfx)order2.out): Use $(test-wrapper).
16042         ($(objpfx)tst-initorder.out): Likewise.
16043         ($(objpfx)tst-initorder2.out): Likewise.
16044         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
16045         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
16046         (test_wrapper_env): New variable.  Use it to run ld.so.
16047         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
16048         Use it to run ld.so.
16049         (test_wrapper_env): Likewise.
16050         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
16051         $(test-wrapper) to run-iconv-test.sh.
16052         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
16053         (ICONV): Use $test_wrapper.
16054         * posix/Makefile ($(objpfx)globtest.out): Pass
16055         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
16056         globtest.sh, not $(run-program-prefix).
16057         * posix/globtest.sh (run_via_rtld_prefix): New variable.
16058         (test_wrapper): Likewise.
16059         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
16060         set together with run_via_rtld_prefix.
16061         (run_program_prefix): Define in terms of test_wrapper and
16062         run_via_rtld_prefix.
16063
16064 2012-10-24  Roland McGrath  <roland@hack.frob.com>
16065
16066         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
16067         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
16068         Targets removed.
16069
16070         [BZ #14743]
16071         * include/time.h: Remove librt_hidden_proto (clock_gettime).
16072         Declare __clock_getres, __clock_gettime, __clock_settime,
16073         __clock_nanosleep, and __clock_getcpuclockid.
16074         * rt/clock_gettime.c: Define __clock_gettime as an alias.
16075         Remove librt_hidden_def (clock_gettime).
16076         * sysdeps/unix/clock_gettime.c: Likewise.
16077         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
16078         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
16079         * rt/clock_getres.c: Define __clock_getres as an alias.
16080         * sysdeps/posix/clock_getres.c: Likewise.
16081         * rt/clock_settime.c: Define __clock_settime as an alias.
16082         * sysdeps/unix/clock_settime.c: Likewise.
16083         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
16084         * sysdeps/unix/clock_nanosleep.c: Likewise.
16085         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
16086         * rt/clock-compat.c: New file.
16087         * rt/Makefile (librt-routines): Add clock-compat and move
16088         $(clock-routines) to ...
16089         (routines): ... here, new variable.
16090         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
16091         Don't add get_clockfreq here.
16092         * rt/Versions (libc: GLIBC_2.17): New version set.
16093         Add clock_* symbols here.
16094         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
16095         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
16096         (GLIBC_2.17): Add clock_* symbols.
16097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16099         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16101         Likewise.
16102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16103         Likewise.
16104         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16105         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16108         * NEWS: Mention the move.
16109
16110         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
16111         Use __open, __read, __close rather than their public counterparts.
16112         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16113         (__get_clockfreq_via_cpuinfo): Likewise.
16114         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
16115         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
16116
16117         * config.h.in (HAVE_IFUNC): New #undef.
16118         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
16119         was successful.
16120         * configure: Regenerated.
16121
16122 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16123
16124         * configure.in: Move READELF check to start of file.
16125         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
16126         libc_cv_asm_gnu_indirect_function in the process.
16127         * configure: Regenerated.
16128
16129 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16130
16131         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
16132         send the output to /dev/null.
16133         (libc_cv_cc_with_libunwind): Likewise.
16134         (libc_cv_as_noexecstack): Likewise.
16135         * configure: Regenerate.
16136
16137 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16138
16139         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
16140
16141         * posix/globtest.sh (TMPDIR): Do not set.
16142         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
16143         (testout): Likewise.
16144
16145 2012-10-24  Andreas Jaeger  <aj@suse.de>
16146
16147         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
16148         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
16149         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
16150         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
16151         posix_fadvise64, posix_fallocate64.
16152
16153         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
16154         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
16155         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
16156         Likewise.
16157         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
16158         Likewise.
16159         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
16160
16161         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
16162         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
16163         <bits/fcntl-linux.h>.
16164         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
16165
16166         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
16167         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
16168         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
16169         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
16170         [__WORDSIZE != 64]: Likewise.
16171
16172 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
16173
16174         * Makeconfig (run-built-tests): New variable.
16175         * Rules [$(cross-compiling) = yes]: Change condition to
16176         [$(run-built-tests) = no].
16177         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
16178         to [$(run-built-tests) = yes].
16179         * elf/Makefile [$(cross-compiling) = no]: Likewise
16180         * grp/Makefile [$(cross-compiling) = no]: Likewise.
16181         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
16182         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
16183         * intl/Makefile [$(cross-compiling) = no]: Likewise.
16184         * io/Makefile [$(cross-compiling) = no]: Likewise.
16185         * libio/Makefile [$(cross-compiling) = no]: Likewise.
16186         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
16187         * misc/Makefile [$(cross-compiling) = no]: Likewise.
16188         * posix/Makefile [$(cross-compiling) = no]: Likewise.
16189         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
16190         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
16191         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
16192         * string/Makefile [$(cross-compiling) = no]: Likewise.
16193
16194         * posix/Makefile ($(objpfx)globtest.out): Pass
16195         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
16196         $(rtld-installed-name).
16197         * posix/globtest.sh (elf_objpfx): Remove variable.
16198         (rtld_installed_name): Likewise.
16199         (library_path): Likewise.
16200         (run_program_prefix): New variable.  Use for running globtest
16201         binary.
16202
16203 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
16204             Joseph Myers  <joseph@codesourcery.com>
16205
16206         * Makeconfig (host-built-program-cmd): New variable.
16207         * elf/Makefile (tst-stackguard1-ARGS): Use
16208         $(host-built-program-cmd).
16209         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
16210         (tst-spawn-ARGS): Likewise.
16211         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
16212
16213 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
16214             Jim Blandy  <jimb@codesourcery.com>
16215
16216         * Makeconfig (run-via-rtld-prefix): New variable.
16217         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
16218         (built-program-cmd): Likewise.
16219
16220 2012-10-22  Andreas Jaeger  <aj@suse.de>
16221
16222         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
16223         __O_RSYNC if it exists, otherwise to O_SYNC.
16224
16225 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
16226             Joseph Myers  <joseph@codesourcery.com>
16227
16228         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
16229         /dev/null.
16230         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
16231         from /dev/null
16232         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
16233         /dev/null.
16234
16235 2012-10-22  Andreas Jaeger  <aj@suse.de>
16236
16237         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
16238         Define always.
16239         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
16240
16241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16242         bits/fcntl-linux.h.
16243
16244         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
16245         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
16246
16247         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
16248         to __O_LARGEFILE.
16249         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
16250         to __O_LARGEFILE.
16251
16252 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
16253             Joseph Myers  <joseph@codesourcery.com>
16254
16255         * config.make.in (NM): New variable.
16256
16257 2012-10-21  Andreas Jaeger  <aj@suse.de>
16258
16259         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
16260         definitions and declarations that are provided by
16261         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16262
16263 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
16264
16265         [BZ #14683]
16266         * elf/Makefile (tests-static): Add tst-leaks1-static.
16267         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
16268         ($(objpfx)tst-leaks1-static): New rule.
16269         ($(objpfx)tst-leaks1-static-mem): Likewise.
16270         (tst-leaks1-static-ENV): New macro.
16271         * elf/dl-open.c (dl_open_worker): Check the main application
16272         only if SHARED is defined.
16273         * elf/tst-leaks1-static.c: New file.
16274
16275 2012-10-20  Andreas Jaeger  <aj@suse.de>
16276
16277         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
16278         generic values for Linux.
16279         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
16280         and declarations that are provided by <bits/fcntl-linux.h> and
16281         include <bits/fcntl-linux.h>.
16282         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16283         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16284
16285 2012-10-20  Roland McGrath  <roland@hack.frob.com>
16286
16287         * io/fcntl.h: Move include of <bits/types.h> to the top and
16288         include it unconditionally.
16289
16290 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
16291
16292         * wcsmbs/Makefile (tests-ifunc): New variable.
16293         (tests): Add $(tests-ifunc).
16294         * wcsmbs/test-wcschr-ifunc.c: New file.
16295         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
16296         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
16297         * wcsmbs/test-wcslen-ifunc.c: Likewise.
16298         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
16299         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
16300
16301         * string/Makefile (tests-ifunc): New variable.
16302         (tests): Add $(tests-ifunc).
16303         * string/test-memccpy.c (TEST_NAME): New macro.
16304         * string/test-memchr.c (TEST_NAME): Likewise.
16305         * string/test-memcmp.c (TEST_NAME): Likewise.
16306         * string/test-memcpy.c (TEST_NAME): Likewise.
16307         * string/test-memmem.c (TEST_NAME): Likewise.
16308         * string/test-memmove.c (TEST_NAME): Likewise.
16309         * string/test-memset.c (TEST_NAME): Likewise.
16310         * string/test-rawmemchr.c (TEST_NAME): Likewise.
16311         * string/test-stpcpy.c (TEST_NAME): Likewise.
16312         * string/test-stpncpy.c (TEST_NAME): Likewise.
16313         * string/test-strcasecmp.c (TEST_NAME): Likewise.
16314         * string/test-strcasestr.c (TEST_NAME): Likewise.
16315         * string/test-strcat.c (TEST_NAME): Likewise.
16316         * string/test-strchr.c (TEST_NAME): Likewise.
16317         * string/test-strcmp.c(TEST_NAME): Likewise.
16318         * string/test-strcpy.c (TEST_NAME): Likewise.
16319         * string/test-strcspn.c (TEST_NAME): Likewise.
16320         * string/test-strlen.c (TEST_NAME): Likewise.
16321         * string/test-strncasecmp.c (TEST_NAME): Likewise.
16322         * string/test-strncmp.c (TEST_NAME): Likewise.
16323         * string/test-strncpy.c (TEST_NAME): Likewise.
16324         * string/test-strnlen.c (TEST_NAME): Likewise.
16325         * string/test-strpbrk.c (TEST_NAME): Likewise.
16326         * string/test-strrchr.c (TEST_NAME): Likewise.
16327         * string/test-strspn.c (TEST_NAME): Likewise.
16328         * string/test-strstr.c (TEST_NAME): Likewise.
16329         * string/test-bcopy-ifunc.c: New file.
16330         * string/test-bzero-ifunc.c: Likewise.
16331         * string/test-memccpy-ifunc.c: Likewise.
16332         * string/test-memchr-ifunc.c: Likewise.
16333         * string/test-memcmp-ifunc.c: Likewise.
16334         * string/test-memcpy-ifunc.c: Likewise.
16335         * string/test-memmem-ifunc.c: Likewise.
16336         * string/test-memmove-ifunc.c: Likewise.
16337         * string/test-mempcpy-ifunc.c: Likewise.
16338         * string/test-memset-ifunc.c: Likewise.
16339         * string/test-rawmemchr-ifunc.c: Likewise.
16340         * string/test-stpcpy-ifunc.c: Likewise.
16341         * string/test-stpncpy-ifunc.c: Likewise.
16342         * string/test-strcasecmp-ifunc.c: Likewise.
16343         * string/test-strcasestr-ifunc.c: Likewise.
16344         * string/test-strcat-ifunc.c: Likewise.
16345         * string/test-strchr-ifunc.c: Likewise.
16346         * string/test-strchrnul-ifunc.c: Likewise.
16347         * string/test-strcmp-ifunc.c: Likewise.
16348         * string/test-strcpy-ifunc.c: Likewise.
16349         * string/test-strcspn-ifunc.c: Likewise.
16350         * string/test-strlen-ifunc.c: Likewise.
16351         * string/test-strncasecmp-ifunc.c: Likewise.
16352         * string/test-strncat-ifunc.c: Likewise.
16353         * string/test-strncmp-ifunc.c: Likewise.
16354         * string/test-strncpy-ifunc.c: Likewise.
16355         * string/test-strnlen-ifunc.c: Likewise.
16356         * string/test-strpbrk-ifunc.c: Likewise.
16357         * string/test-strrchr-ifunc.c: Likewise.
16358         * string/test-strspn-ifunc.c: Likewise.
16359         * string/test-strstr-ifunc.c: Likewise.
16360
16361         * debug/Makefile (tests-ifunc): New variable.
16362         (tests): Add $(tests-ifunc).
16363         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
16364         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
16365         * debug/test-stpcpy_chk-ifunc.c: New file.
16366         * debug/test-strcpy_chk-ifunc.c: Likewise.
16367
16368 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
16369
16370         [BZ #13601]
16371         * elf/dl-load.c (open_verify): Retry read if the entire ELF
16372         header is not read in.
16373
16374 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
16375
16376         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
16377         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
16378         directly.  Pass built executable to script as
16379         $(built-program-cmd).
16380         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
16381         $testprogram without using LD_LIBRARY_PATH and $ldso.
16382
16383         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
16384         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
16385         $(rtld-installed-name).
16386         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
16387         (rtld_installed_name): Likewise.
16388         (library_path): Likewise.
16389         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
16390         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
16391         $(run-program-prefix) to tst-tables.sh.
16392         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
16393         it to run tst-table-from and tst-table-to.
16394         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
16395         Pass it to tst-table.sh.
16396         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
16397         $(run-program-prefix) to tst-gettext.sh.
16398         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
16399         tst-translit.sh.
16400         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
16401         tst-gettext2.sh.
16402         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
16403         to run tst-gettext.
16404         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
16405         to run tst-gettext2.
16406         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
16407         to run tst-translit.
16408         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
16409         $(run-program-prefix) to tst-mtrace.sh.
16410         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
16411         to run tst-mtrace.
16412         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
16413         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
16414         $(rtld-installed-name).
16415         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
16416         (rtld_installed_name): Likewise.
16417         (run_program_prefix): New variable.  Use it to run wordexp-test.
16418
16419         * Makeconfig (ARCH): Remove all definitions.
16420         (machine): Likewise.
16421         [ARCH]: Remove conditional code.
16422         [!objdir]: Give error.
16423         [!objdir] (objpfx): Remove.
16424         [!objdir] (common-objpfx): Likewise.
16425         [!objdir] (common-objdir): Likewise.
16426         * configure.in (config_makefile): Remove.  Hardcode Makefile in
16427         AC_CONFIG_FILES call.
16428         * configure: Regenerated.
16429
16430         [BZ #13888]
16431         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
16432         or TMPDIR.
16433         (testout): Likewise.
16434
16435         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
16436         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
16437         $(rtld-installed-name).
16438         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
16439         (rtld_installed_name): Likwise.
16440         (runit): Remove function.
16441         (run_getconf): New variable,  Use it for running getconf binary.
16442
16443 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
16444
16445         [BZ #14716]
16446         * string/test-memmem.c (check_result): New function.
16447         (do_one_test): Use it.
16448         (check1): New function.
16449         (test_main): Use it.
16450
16451 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
16452
16453         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
16454
16455 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
16456
16457         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
16458         (_G_LSEEK64): Likewise.
16459         (_G_MMAP64): Likewise.
16460         (_G_FSTAT64): Likewise.
16461         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
16462         (_G_LSEEK64): Likewise.
16463         (_G_MMAP64): Likewise.
16464         (_G_FSTAT64): Likewise.
16465         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
16466         unconditional.  Call __mmap64 directly.
16467         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
16468         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
16469         __lseek64 directly.
16470         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
16471         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
16472         __mmap64 directly.
16473         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
16474         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
16475         __lseek64 directly.
16476         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
16477         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
16478         __lseek64 directly.
16479         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
16480         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
16481         __lseek64 directly.
16482         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
16483         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
16484         __fxstat64 directly.
16485         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
16486         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
16487         unconditional.
16488         (freopen64) [!_G_OPEN64]: Remove conditional code.
16489         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
16490         unconditional.
16491         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
16492         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
16493         unconditional.
16494         (ftello64) [!_G_LSEEK64]: Remove conditional code.
16495         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
16496         unconditional.
16497         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
16498         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
16499         unconditional.
16500         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
16501         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
16502         unconditional.
16503         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
16504         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
16505         unconditional.
16506         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
16507         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
16508         unconditional.
16509         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
16510
16511 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
16512
16513         [BZ #12140]
16514         * manual/memory.texi (Malloc Tunable Parameters): Add note
16515         about free list pointers overwriting some perturb bytes.
16516         Wording suggested by Roland McGrath.
16517
16518 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
16519
16520         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
16521         (lgamma_test): Likewise.
16522         (tgamma_test): Likewise.
16523
16524 2012-10-16  Florian Weimer  <fweimer@redhat.com>
16525
16526         [BZ #14700]
16527         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
16528         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
16529
16530 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
16531
16532         * NEWS: Mention BZ #14716.
16533         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
16534         when removing AVAILABLE1_USES_J macro.
16535
16536 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
16537
16538         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
16539         (__bswap_64): __uint64_t for unsigned 64-bit int.
16540
16541 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
16542
16543         * include/string.h (memmem): Declare libc hidden alias.
16544         * string/memmem.c (memmem): Define libc hidden alias.
16545         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
16546         __read, __close instead of open, read, close.
16547
16548 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
16549
16550         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
16551         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
16552         global and hidden.
16553         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
16554         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
16555         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
16556         Likewise.
16557         (__rawmemchr_sse2): Likewise.
16558         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
16559         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
16560         (__strchr_sse2): Likewise.
16561         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
16562         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
16563         (__strcasecmp_sse2): Likewise.
16564         (__strncasecmp_sse2): Likewise.
16565         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
16566         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
16567         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
16568         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
16569         (__strrchr_sse2): Likewise.
16570         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
16571         ifunc-impl-list.c.
16572         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
16573         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
16574         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
16575         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
16576         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
16577         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
16578         * sysdeps/x86_64/multiarch/memset.S: Likewise.
16579         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
16580         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
16581         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
16582         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
16583         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
16584         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
16585         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
16586         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
16587         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
16588         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
16589         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
16590         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
16591         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
16592         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
16593         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
16594         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
16595         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
16596         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
16597         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16598         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
16599         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
16600         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
16601         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
16602
16603         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
16604         global and hidden.
16605         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
16606         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
16607         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
16608         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
16609         Likewise.
16610         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
16611         Likewise.
16612         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
16613         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
16614         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
16615         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
16616         ifunc-impl-list.c.
16617         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
16618         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
16619         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
16620         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
16621         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
16622         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
16623         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
16624         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
16625         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
16626         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
16627         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
16628         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
16629         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
16630         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
16631         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
16632         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
16633         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
16634         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
16635         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
16636         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
16637         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16638         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
16639         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
16640         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
16641         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16642         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
16643         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
16644         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
16645         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
16646         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
16647         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
16648         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
16649         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
16650         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
16651         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
16652         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
16653         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
16654         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
16655         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
16656         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
16657         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
16658
16659         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
16660         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
16661         * include/ifunc-impl-list.h: New file.
16662         * misc/ifunc-impl-list.c: Likewise.
16663         * misc/Makefile (routines): Add ifunc-impl-list.
16664         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
16665         * string/test-string.h: Include <ifunc-impl-list.h>.
16666         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
16667         impl_array): New variables.
16668         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
16669         are defined.
16670         (test_init): Call __libc_ifunc_impl_list to initialize
16671         func_list if TEST_IFUNC and TEST_NAME are defined.
16672
16673         * string/Makefile (strop-tests): Add bcopy and bzero.
16674         * string/test-bcopy.c: New file.
16675         * string/test-bzero.c: Likewise.
16676         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
16677         defined.
16678         * string/test-memset.c: Support bzero test if TEST_BZERO is
16679         defined.
16680         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
16681         __libc_memmove.
16682         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
16683         __libc_memset.
16684         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
16685         of memset.
16686
16687 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
16688
16689         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
16690         * configure: Regenerated.
16691
16692         * Makeconfig (+link-static-before-libc): Don't include
16693         $(link-static-libc).
16694
16695         * libio/libio.h (_IO_pos_t): Remove.
16696
16697 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
16698
16699         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
16700         McGrath.
16701
16702 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
16703
16704         * crypt/crypt-entry.c: Include fips-private.h.
16705         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
16706         * crypt/md5c-test.c (main): Tolerate disabled MD5.
16707         * sysdeps/unix/sysv/linux/fips-private.h: New file.
16708         * sysdeps/generic/fips-private.h: New file, dummy fallback.
16709
16710 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
16711
16712         * crypt/crypt-private.h: Include stdbool.h.
16713         (_ufc_setup_salt_r): Return bool.
16714         * crypt/crypt-entry.c: Include errno.h.
16715         (__crypt_r): Return NULL with EINVAL for bad salt.
16716         * crypt/crypt_util.c (bad_for_salt): New.
16717         (_ufc_setup_salt_r): Check that salt is long enough and within
16718         the specified alphabet.
16719         * crypt/badsalttest.c: New file.
16720         * crypt/Makefile (tests): Add it.
16721         ($(objpfx)badsalttest): New.
16722
16723 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
16724
16725         * NEWS: Add entry for BZ #14602.
16726
16727 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
16728
16729         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
16730         type-generic.
16731         * math/libm-test.inc: Update comment listing what functions and
16732         macros are tested.
16733         (isgreater_test): New function.
16734         (isgreaterequal_test): Likewise.
16735         (isless_test): Likewise.
16736         (islessequal_test): Likewise.
16737         (islessgreater_test): Likewise.
16738         (isunordered_test): Likewise.
16739         (main): Call the new functions.
16740
16741 2012-10-09  Roland McGrath  <roland@hack.frob.com>
16742
16743         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
16744         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
16745         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
16746         * sysdeps/i386/configure: Regenerated.
16747         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
16748         * sysdeps/mach/configure: Regenerated.
16749         * sysdeps/mach/hurd/configure: Regenerated.
16750         * sysdeps/powerpc/configure: Regenerated.
16751         * sysdeps/powerpc/powerpc32/configure: Regenerated.
16752         * sysdeps/powerpc/powerpc64/configure: Regenerated.
16753         * sysdeps/s390/s390-32/configure: Regenerated.
16754         * sysdeps/s390/s390-64/configure: Regenerated.
16755         * sysdeps/sh/configure: Regenerated.
16756         * sysdeps/sparc/configure: Regenerated.
16757         * sysdeps/unix/sysv/linux/configure: Regenerated.
16758         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
16759         * sysdeps/x86_64/configure: Regenerated.
16760
16761         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
16762         defined.  Don't check if MAP is NULL.
16763
16764 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
16765
16766         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
16767         (_G_stat64): Likewise.
16768         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
16769         (_G_stat64): Likewise.
16770         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
16771         instead of struct _G_stat64.
16772         * libio/fileops.c (mmap_remap_check): Likewise.
16773         (decide_maybe_mmap): Likewise.
16774         (_IO_new_file_seekoff): Likewise.
16775         (_IO_file_stat): Likewise.
16776         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
16777         _G_off64_t.
16778         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
16779         instead of struct _G_stat64.
16780         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
16781
16782 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
16783
16784         [BZ #14602]
16785         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
16786         Replace with ...
16787         (CHECK_EOL): New macro.
16788         (two_way_short_needle): Check beginning of haystack for EOL.  Use
16789         CHECK_EOL.
16790         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
16791         Replace with CHECK_EOL.
16792         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
16793         Replace with CHECK_EOL.
16794
16795 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
16796
16797         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
16798         type-generic.
16799         * math/libm-test.inc: Update comment listing what functions and
16800         macros are tested.
16801         (finite_test): New function.
16802         (isinf_test): Likewise.
16803         (isnan_test): Likewise.
16804         (fpclassify_test): Test subnormal input.
16805         (isfinite_test): Likewise.
16806         (isnormal_test): Likewise.
16807         (main): Call the new functions.
16808
16809 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
16810
16811         [BZ #14660]
16812         * Makerules (%.dynsym): Force C locale when running
16813         $(OBJDUMP) --dynamic-syms.
16814
16815 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
16816
16817         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
16818         <stdint.h>.
16819
16820 2012-10-06  David S. Miller  <davem@davemloft.net>
16821
16822         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
16823         upper 32-bits of the length value in %o2 since we use branch-on-register
16824         tests which consider the entire 64-bit register.
16825
16826 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
16827
16828         * string/test-strstr.c (check2): Add a test for page boundary.
16829
16830 2012-10-05  David S. Miller  <davem@davemloft.net>
16831
16832         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
16833         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
16834         file.
16835         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
16836         sysdep_routines.
16837         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
16838         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
16839         and bzero when HWCAP_SPARC_CRYPTO is present.
16840
16841 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
16842
16843         [BZ #14602]
16844         * string/test-strstr.c (check2): New function.
16845         (test_main): Call check2.
16846
16847         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
16848         and bug-strchr1.
16849         * string/bug-strcasestr1.c (do_test): Moved to ...
16850         * string/test-strcasestr.c (check1): Here.  New function.
16851         (do_one_test): Break out result checking code into ...
16852         (check_result): This.  New function.
16853         (do_one_test): Call check_result.
16854         (test_main): Call check1.
16855         * string/bug-strchr1.c (do_test): Moved to ...
16856         * string/test-strchr.c (check1): Here.  New function.
16857         (do_one_test): Break out result checking code into ...
16858         (check_result): This.  New function.
16859         (do_one_test): Call check_result.
16860         (test_main): Call check1.
16861         * string/bug-strstr1.c (main): Moved to ...
16862         * string/test-strstr.c (check1): Here.  New function.
16863         (do_one_test): Break out result checking code into ...
16864         (check_result): This.  New function.
16865         (do_one_test): Call check_result.
16866         (test_main): Call check1.
16867         * string/bug-strcasestr1.c: Removed.
16868         * string/bug-strchr1.c: Likewise.
16869         * string/bug-strstr1.c: Likewise.
16870
16871         * elf/Makefile (dl-routines): Add hwcaps.
16872         * elf/dl-support.c (_dl_important_hwcaps): Removed.
16873         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
16874         (_dl_important_hwcaps): Moved to ...
16875         * elf/dl-hwcaps.c: Here.  New file.
16876         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
16877
16878         [BZ #14557]
16879         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
16880         if IS_IN_rtld isn't defined.
16881
16882         * elf/dl-support.c (_dl_sysinfo_map): New.
16883         Include "get-dynamic-info.h" and "setup-vdso.h".
16884         (_dl_non_dynamic_init): Call setup_vdso.
16885         * elf/dynamic-link.h: Don't include <assert.h>.
16886         (elf_get_dynamic_info): Moved to ...
16887         * elf/get-dynamic-info.h: Here.  New file.
16888         * elf/dynamic-link.h: Include "get-dynamic-info.h".
16889         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
16890         * elf/setup-vdso.h: Here.  New file.
16891         * elf/rtld.c: Include "setup-vdso.h".
16892         (dl_main): Call setup_vdso.
16893
16894 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
16895
16896         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
16897         creal in comment listing functions tested.  List finite, isinf,
16898         isnan, isless, islessequal, isgreater, isgreaterequal,
16899         islessgreater, isunordered, lgamma_r and pow10 as functions and
16900         macros not tested.  Mention which functions not tested are aliases
16901         for other functions.  Fix typo.  Note that signs of NaNs are not
16902         tested.
16903
16904         * scripts/config.guess: Update from config.git.
16905         * scripts/config.sub: Likewise.
16906
16907 2012-10-04  Roland McGrath  <roland@hack.frob.com>
16908
16909         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
16910         * misc/madvise.c (madvise): Renamed to __madvise.
16911         Make madvise a weak alias.
16912         * include/sys/mman.h: Declare __madvise.
16913         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
16914         * sysdeps/unix/syscalls.list
16915         (madvise): Make __madvise the strong name, and madvise a weak alias.
16916         * sysdeps/unix/sysv/linux/syscalls.list
16917         (madvise, mmap): Remove redundant entries.
16918         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
16919         * malloc/malloc.c (mtrim): Likewise.
16920         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
16921
16922 2012-10-03  Roland McGrath  <roland@hack.frob.com>
16923
16924         * sysdeps/mach/hurd/dl-cache.c: File removed.
16925         * config.h.in (USE_LDCONFIG): New #undef.
16926         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
16927         * configure: Regenerated.
16928         * elf/Makefile (dl-routines): Add dl-cache only under
16929         [$(use-ldconfig) = yes].
16930         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
16931         cache on [USE_LDCONFIG].
16932         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
16933         [USE_LDCONFIG].
16934         * elf/rtld.c (dl_main): Likewise.
16935
16936 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
16937
16938         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
16939         _SC_LEVEL4_CACHE_LINESIZE.
16940
16941 2012-10-03  Roland McGrath  <roland@hack.frob.com>
16942
16943         * sysdeps/unix/bsd/confstr.h: File removed.
16944
16945 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
16946
16947         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
16948         sys/sdt-config.h.
16949
16950 2012-10-02  Roland McGrath  <roland@hack.frob.com>
16951
16952         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
16953         Make 'mapoff' field ElfW(Off) rather than off_t.
16954
16955 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
16956
16957         * nscd/Makefile: Remove nscd-cflags and all its users.
16958         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
16959         (CFLAGS-nonlib): Add compiler flags for nscd modules.
16960
16961         [BZ #10631]
16962         * malloc.c (malloc_printerr): Clarify error message.
16963
16964 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
16965
16966         [BZ #14648]
16967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16968         Set bit_FMA_Usable if FMA is supported.
16969         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
16970         macro.
16971         (bit_FMA4_Usable): Updated.
16972         (index_FMA_Usable): New macro.
16973         (CPUID_FMA): Likewise
16974         (HAS_FMA): Defined with bit_FMA_Usable.
16975
16976 2012-10-01  Roland McGrath  <roland@hack.frob.com>
16977
16978         * bits/types.h (__swblk_t): Type removed.
16979         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
16980         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
16981         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16982         (__SWBLK_T_TYPE): Likewise.
16983         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16984         (__SWBLK_T_TYPE): Likewise.
16985         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16986         (__SWBLK_T_TYPE): Likewise.
16987         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16988         (__SWBLK_T_TYPE): Likewise.
16989
16990 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
16991             Honza Horak <hhorak@redhat.com>
16992
16993         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
16994         (xdr_mapname): Use YPMAXMAP as maxsize.
16995         (xdr_peername): Use YPMAXPEER as maxsize.
16996         (xdr_keydat): Use YPAXRECORD as maxsize.
16997         (xdr_valdat): Use YPMAXRECORD as maxsize.
16998
16999 2012-10-01  Roland McGrath  <roland@hack.frob.com>
17000
17001         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
17002
17003         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
17004         * csu/init-first.c: ... here.
17005         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
17006         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
17007         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
17008         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17009         * sysdeps/i386/init-first.c: File removed.
17010         * sysdeps/sh/init-first.c: File removed.
17011
17012 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
17013
17014         [BZ #14645]
17015         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
17016         if x * y might underflow to zero and z is zero.
17017         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17018         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17019         * math/libm-test.inc (min_subnorm_value): New variable.
17020         (fma_test): Add more tests.
17021         (fma_test_towardzero): Likewise.
17022         (fma_test_downward): Likewise
17023         (fma_test_upward): Likewise.
17024         (initialize): Set min_subnorm_value.
17025
17026 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
17027
17028         [BZ #14638]
17029         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
17030         0 + 0.
17031         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
17032         mode for addition resulting in exact zero.
17033         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
17034         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
17035         exact 0 + 0.
17036         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17037         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17038         * math/libm-test.inc (fma_test): Add more tests.
17039         (fma_test_towardzero): New function.
17040         (fma_test_downward): Likewise.
17041         (fma_test_upward): Likewise.
17042         (main): Call the new functions.
17043
17044 2012-09-28  David S. Miller  <davem@davemloft.net>
17045
17046         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
17047
17048 2012-09-28  Roland McGrath  <roland@hack.frob.com>
17049
17050         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
17051         instead of SIGALRM.
17052
17053         * sysdeps/gnu/_G_config.h: Moved to ...
17054         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
17055         * sysdeps/mach/hurd/_G_config.h: Moved to ...
17056         * sysdeps/generic/_G_config.h: ... here.
17057
17058         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
17059
17060         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
17061
17062         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
17063         Conditionalize target on [libnss_test1.so-version].
17064
17065         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
17066
17067         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
17068         (elfobjdir): Move out of conditionals.
17069
17070         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
17071         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
17072         (__nss_lookup_function): Conditionalize label remove_from_tree on
17073         [!DO_STATIC_NSS || SHARED], matching its only use.
17074
17075 2012-09-28  David S. Miller  <davem@davemloft.net>
17076
17077         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
17078         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
17079         file.
17080         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17081         sysdep_routines.
17082         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17083         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
17084         when HWCAP_SPARC_CRYPTO is present.
17085
17086 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17087
17088         * io/tst-mknodat.c: Create a FIFO instead of a socket.
17089
17090 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
17091
17092         [BZ #6530]
17093         * stdio-common/vfprintf.c (process_string_arg): Revert
17094         2000-07-22 change.
17095
17096 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
17097
17098         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
17099         for testcase.
17100         * stdio-common/tst-sprintf.c: Include <locale.h>
17101         (main): Test sprintf's handling of incomplete multibyte
17102         characters.
17103
17104 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
17105
17106         * elf/dl-runtime.c (VERSYMIDX): Removed.
17107         * elf/dl-version.c (VERSYMIDX): Likewise.
17108         * elf/do-rel.h (VERSYMIDX): Likewise.
17109         (VALIDX): Likewise.
17110         * elf/dynamic-link.h (VERSYMIDX): Likewise.
17111         * elf/rtld.c (VALIDX): Likewise.
17112         (ADDRIDX): Likewise.
17113         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
17114         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
17115         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
17116         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
17117         (VALIDX): Likewise.
17118         (ADDRIDX): Likewise.
17119
17120 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17121
17122         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
17123
17124 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
17125
17126         [BZ #11438]
17127         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
17128         to global scope.
17129         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
17130         addresses are in the same scope as 192.0.2/24.
17131         * posix/gai.conf: Document new scope table defaults.
17132
17133 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17134
17135         [BZ #5298]
17136         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
17137         for ftell.  Compute offsets from write pointers instead.
17138         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17139
17140 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17141
17142         [BZ #14543]
17143         * libio/Makefile (tests): New test case tst-fseek.
17144         * libio/tst-fseek.c: New test case to verify that fseek/ftell
17145         combination works in wide mode.
17146         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
17147         state when the external buffer state changes.
17148
17149 2012-09-27  David S. Miller  <davem@davemloft.net>
17150
17151         [BZ #14376]
17152         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
17153         pass reloc->r_addend in as the 'high' argument to
17154         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
17155
17156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17157
17158 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17159
17160         * rt/tst-aio2.c: Include <pthread.h>.
17161         * rt/tst-aio3.c: Likewise.
17162
17163 2012-09-27  Steve Ellcey  <sellcey@mips.com>
17164
17165         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
17166
17167 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
17168
17169         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
17170         contents on [SHARED].
17171
17172 2012-09-26  Marek Polacek  <polacek@redhat.com>
17173
17174         [BZ #14530]
17175         [BZ #13741]
17176         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
17177         for C++ and GCC <4.3 as well as for non GCC compilers.
17178
17179 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
17180
17181         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17182
17183 2012-09-25  Roland McGrath  <roland@hack.frob.com>
17184
17185         * Makefile.in (all, install): Declare with .PHONY.
17186         Reported by Michael Hope <michael.hope@linaro.org>.
17187
17188 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17189
17190         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
17191         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
17192         system header.
17193         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
17194         Likewise.
17195         (sydep_routines): Add the new and the internal functions.
17196         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
17197         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
17198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
17199         (GLIBC_2.17): Add the new function.
17200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
17201         (GLIBC_2.17): Likewise.
17202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
17203         (GLIBC_2.17): Likewise.
17204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
17205         (GLIBC_2.17): Likewise.
17206         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
17207
17208 2012-09-25  Alan Modra  <amodra@gmail.com>
17209
17210         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
17211         Add release barrier before setting once_control to say
17212         initialisation is done.  Add hints on lwarx.  Use macro in
17213         place of isync.
17214         (clear_once_control): Add release barrier.
17215
17216 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
17217
17218         [BZ #13629]
17219         * math/s_clog.c (__clog): Handle more values close to |z| = 1
17220         specially.
17221         * math/s_clog10.c (__clog10): Likewise.
17222         * math/s_clog10f.c (__clog10f): Likewise.
17223         * math/s_clog10l.c (__clog10l): Likewise.
17224         * math/s_clogf.c (__clogf): Likewise.
17225         * math/s_clogl.c (__clogl): Likewise.
17226         * math/Makefile (libm-calls): Add x2y2m1.
17227         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
17228         (__x2y2m1): Likewise.
17229         (__x2y2m1l): Likewise.
17230         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
17231         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
17232         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
17233         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
17234         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
17235         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
17236         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
17237         * sysdeps/i386/fpu/libm-test-ulps: Update.
17238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17239
17240         [BZ #14621]
17241         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
17242         int as type of variable DEPTH.
17243         (glob): Use size_t instead of int as type of variables NEWCOUNT
17244         and OLD_PATHC.
17245
17246 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17247
17248         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
17249         Add s_sincosf-sse2.
17250         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
17251         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
17252         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
17253         macros for using routine as __sincosf_ia32.
17254         Use macro for function declaration and weak_alias.
17255         * sysdeps/i386/fpu/libm-test-ulps: Update.
17256
17257         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
17258         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17259
17260         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
17261         subnormal argument.
17262         * math/s_cexpf.c (__cexpf): Likewise.
17263         * math/s_csinf.c (__csinf): Likewise.
17264         * math/s_csinhf.c (__csinhf): Likewise.
17265         * math/s_ctanf.c (__ctanf): Likewise.
17266         * math/s_ctanhf.c (__ctanhf): Likewise.
17267         * math/s_ccosh.c (__ccoshf): Likewise.
17268         * math/s_cexp.c (__cexpl): Likewise.
17269         * math/s_csin.c (__csin): Likewise.
17270         * math/s_csinh.c (__csinh): Likewise.
17271         * math/s_ctan.c (__ctan): Likewise.
17272         * math/s_ctanh.c (ctanh): Likewise.
17273         * math/s_ccoshl.c (__ccoshl): Likewise.
17274         * math/s_cexpl.c (__cexpl): Likewise.
17275         * math/s_csinl.c (__csinl): Likewise.
17276         * math/s_csinhl.c (__csinhl): Likewise.
17277         * math/s_ctanl.c (__ctanl): Likewise.
17278         * math/s_ctanhl.c (__ctanhl): Likewise.
17279
17280 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
17281
17282         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
17283         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
17284         (_IO_off_t): Define to __off_t, not _G_off_t.
17285         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
17286         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
17287         (_IO_wint_t): Define to wint_t, not _G_wint_t.
17288         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
17289         type of __dummy and __dummy2 fields.
17290         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
17291         (_G_ssize_t): Likewise.
17292         (_G_off_t): Likewise.
17293         (_G_pid_t): Likewise.
17294         (_G_uid_t): Likewise.
17295         (_G_wchar_t): Likewise.
17296         (_G_wint_t): Likewise.
17297         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
17298         (_G_ssize_t): Likewise.
17299         (_G_off_t): Likewise.
17300         (_G_pid_t): Likewise.
17301         (_G_uid_t): Likewise.
17302         (_G_wchar_t): Likewise.
17303         (_G_wint_t): Likewise.
17304         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
17305         (_G_ssize_t): Likewise.
17306         (_G_off_t): Likewise.
17307         (_G_pid_t): Likewise.
17308         (_G_uid_t): Likewise.
17309         (_G_wchar_t): Likewise.
17310         (_G_wint_t): Likewise.
17311
17312 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17313
17314         * malloc/arena.c: Include malloc-sysdep.h.
17315         (shrink_heap): Use check_may_shrink_heap to decide if madvise
17316         is sufficient to shrink the heap or an unmap is needed.
17317         * sysdeps/generic/malloc-sysdep.h: New file.  Define
17318         new function check_may_shrink_heap.
17319         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
17320         new function check_may_shrink_heap.
17321
17322 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17323
17324         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
17325         comments.
17326
17327 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
17328
17329         * catgets/test-gencat.sh: Add "set -e".
17330         * elf/tst-pathopt.sh: Likewise.
17331         * grp/tst_fgetgrent.sh: Likewise.
17332         * iconvdata/run-iconv-test.sh: Likewise.
17333         * intl/tst-gettext.sh: Likewise.
17334         * intl/tst-gettext2.sh: Likewise.
17335         * intl/tst-gettext4.sh: Likewise.
17336         * intl/tst-gettext6.sh: Likewise.
17337         * intl/tst-translit.sh: Likewise.
17338         * io/ftwtest-sh: Likewise.
17339         * libio/test-freopen.sh: Likewise.
17340         * malloc/tst-mtrace.sh: Likewise.
17341         * posix/globtest.sh: Likewise.
17342         * posix/tst-getconf.sh: Likewise.
17343         * posix/wordexp-tst.sh: Likewise.
17344         * stdio-common/tst-printf.sh: Likewise.
17345         * stdio-common/tst-unbputc.sh: Likewise.
17346         * stdlib/tst-fmtmsg.sh: Likewise.
17347         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
17348         * catgets/Makefile: Do not specify -e option when running
17349         testsuite shell scripts.
17350         * elf/Makefile: Likewise.
17351         * grp/Makefile: Likewise.
17352         * iconvdata/Makefile: Likewise.
17353         * intl/Makefile: Likewise.
17354         * io/Makefile: Likewise.
17355         * libio/Makefile: Likewise.
17356         * malloc/Makefile: Likewise.
17357         * posix/Makefile: Likewise.
17358         * stdio-common/Makefile: Likewise.
17359         * stdlib/Makefile: Likewise.
17360         * sysdeps/x86_64/Makefile: Likewise.
17361
17362         * io/ftwtest-sh: Add copyright header.
17363         * posix/globtest.sh: Likewise.
17364         * posix/tst-getconf.sh: Likewise.
17365         * posix/wordexp-tst.sh: Likewise.
17366         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
17367
17368 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
17369
17370         [BZ #13679]
17371         * Makeconfig (+link): Defined as $(+link-static) if
17372         $(build-shared) isn't yes.
17373         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
17374         isn't yes.
17375         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
17376
17377         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
17378
17379         [BZ #14562]
17380         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
17381         new chunk size with MALLOC_ALIGN_MASK.
17382
17383 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
17384
17385         [BZ #5044]
17386         * stdio-common/printf_fphex.c: Include <stdbool.h> and
17387         <rounding-mode.h>.
17388         (__printf_fphex): Determine rounding using get_rounding_mode and
17389         round_away.
17390         * stdio-common/tst-printf-round.c (struct hex_test): New
17391         structure.
17392         (hex_tests): New variable.
17393         (test_hex_in_one_mode): New function.
17394         (do_test): Also run tests for hex float output.
17395
17396 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
17397
17398         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
17399         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
17400         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
17401         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
17402         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
17403         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
17404         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
17405         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
17406
17407 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
17408
17409         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
17410         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
17411         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
17412         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
17413
17414 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
17415
17416         [BZ #14579]
17417         * elf/rtld.c (dl_main): Limit the check for self loading to normal
17418         mode only.
17419         * elf/tst-rtld-load-self.sh: New test.
17420         * elf/Makefile: Run it.
17421
17422 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
17423
17424         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
17425         (tst-writev-ENV): Remove.
17426         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
17427
17428 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
17429
17430         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
17431
17432 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
17433
17434         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
17435         unconditional.
17436         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
17437         Likewise.
17438         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
17439         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
17440         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
17441         Likewise.
17442
17443 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
17444
17445         [BZ #14587]
17446         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
17447         * config.make.in (have-cpp-asm-debuginfo): Removed.
17448         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
17449         * configure: Regenerated.
17450
17451 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
17452
17453         [BZ #5044]
17454         * stdio-common/printf_fp.c: Include <stdbool.h> and
17455         <rounding-mode.h>.
17456         (___printf_fp): Determine rounding using get_rounding_mode and
17457         round_away.
17458         * stdio-common/tst-printf-round.c: New file.
17459         * stdio-common/Makefile (tests): Add tst-printf-round.
17460         (link-libm): New variable.
17461         ($(objpfx)tst-printf-round): Depend in $(link-libm).
17462
17463 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
17464
17465         [BZ #14576]
17466         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
17467         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
17468         Likewise.
17469         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
17470         Likewise.
17471
17472 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
17473
17474         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
17475         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
17476         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
17477         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
17478
17479 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
17480
17481         [BZ #14518]
17482         * include/rounding-mode.h: New file.
17483         * sysdeps/generic/get-rounding-mode.h: Likewise.
17484         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
17485         * stdlib/strtod_l.c: Include <rounding-mode.h>.
17486         (MAX_VALUE): New macro.
17487         (MIN_VALUE): Likewise.
17488         (overflow_value): New function.
17489         (underflow_value): Likewise.
17490         (round_and_return): Use overflow_value and underflow_value to
17491         determine return values in overflow and underflow cases.  Use
17492         round_away to determine rounding depending on rounding mode.
17493         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
17494         determine return values in overflow and underflow cases.
17495         * stdlib/tst-strtod-round.c: Include <fenv.h>.
17496         (struct test_results): New structure.
17497         (struct test): Use struct test_results to store expected results
17498         for all rounding modes.
17499         (TEST): Include expected results for all rounding modes.
17500         (test_in_one_mode): New function.
17501         (do_test): Use test_in_one_mode to compute and check results.
17502         Check results for all rounding modes.
17503         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
17504         $(link-libm).
17505
17506 2012-12-09  Allan McRae  <allan@archlinux.org>
17507
17508         * sysdeps/i386/fpu/libm-test-ulps: Update
17509
17510 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
17511
17512         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
17513         (_G_int32_t): Likewise.
17514         (_G_uint16_t): Likewise.
17515         (_G_uint32_t): Likewise.
17516         (_G_HAVE_BOOL): Likewise.
17517         (_G_HAVE_ATEXIT): Likewise.
17518         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
17519         (_G_HAVE_IO_FILE_OPEN): Likewise.
17520         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
17521         (_G_int32_t): Likewise.
17522         (_G_uint16_t): Likewise.
17523         (_G_uint32_t): Likewise.
17524         (_G_HAVE_BOOL): Likewise.
17525         (_G_HAVE_ATEXIT): Likewise.
17526         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
17527         (_G_HAVE_IO_FILE_OPEN): Likewise.
17528         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
17529         (_G_int32_t): Likewise.
17530         (_G_uint16_t): Likewise.
17531         (_G_uint32_t): Likewise.
17532         (_G_HAVE_BOOL): Likewise.
17533         (_G_HAVE_ATEXIT): Likewise.
17534         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
17535         (_G_HAVE_IO_FILE_OPEN): Likewise.
17536
17537 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
17538
17539         * csu/libc-tls.c: Update copyright years.
17540
17541 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
17542
17543         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
17544         [!_G_USING_THUNKS]: Remove conditional code.
17545         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
17546         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
17547
17548         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
17549         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
17550         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
17551         (_G_VTABLE_LABEL_PREFIX): Likewise.
17552         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
17553         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
17554         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
17555         (_G_VTABLE_LABEL_PREFIX): Likewise.
17556         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
17557         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
17558         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
17559         (_G_VTABLE_LABEL_PREFIX): Likewise.
17560         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
17561
17562 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
17563
17564         * libio/Makefile: Include ../Makeconfig before tests.
17565         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
17566         only if $(build-shared) is yes.
17567
17568         * iconv/gconv_db.c: Update copyright years.
17569
17570 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17571
17572         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
17573         unwind info if defined PIC. Fix special cases description.
17574         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
17575
17576         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
17577         DP_HI_MASK entry.
17578         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
17579
17580 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
17581
17582         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
17583
17584         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
17585         is NULL.
17586
17587         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
17588         (LDLIBS-tst-chk4): This.
17589         (LDFLAGS-tst-chk5): Renamed to ...
17590         (LDLIBS-tst-chk5): This.
17591         (LDFLAGS-tst-chk6): Renamed to ...
17592         (LDLIBS-tst-chk6): This.
17593         (LDFLAGS-tst-lfschk4): Renamed to ...
17594         (LDLIBS-tst-lfschk4): This.
17595         (LDFLAGS-tst-lfschk5): Renamed to ...
17596         (LDLIBS-tst-lfschk5): This.
17597         (LDFLAGS-tst-lfschk6): Renamed to ...
17598         (LDLIBS-tst-lfschk6): This.
17599
17600         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
17601         on $(common-objpfx)soversions.mk.
17602
17603 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
17604
17605         [BZ #10014]
17606         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
17607         example host name.
17608
17609 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
17610
17611         * malloc/arena.c (arena_get_retry): New function that gets
17612         another arena for the caller to try its request on.
17613         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
17614         current arena cannot fulfill the request.
17615         (__libc_memalign): Likewise.
17616         (__libc_memalign): Likewise.
17617         (__libc_pvalloc): Likewise.
17618         (__libc_calloc): Likewise.
17619
17620 2012-09-05  John Tobey  <john.tobey@gmail.com>
17621
17622         [BZ #13542]
17623         * manual/arith.texi (Operations on Complex): Fix description
17624         of carg branch cut.
17625
17626 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
17627
17628         [BZ #10014]
17629         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
17630         host name.
17631
17632         [BZ #10038]
17633         * manual/memory.texi (Memory): Make order of menu items match
17634         order of sections.
17635
17636 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
17637
17638         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
17639         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
17640         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
17641
17642 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
17643
17644         * csu/libc-tls.c (static_dtv): Renamed to ...
17645         (_dl_static_dtv): This.  Make it global.
17646         (_dl_initial_dtv): Removed.
17647         (__libc_setup_tls): Updated.
17648         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
17649         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
17650         DL_INITIAL_DTV.
17651
17652 2012-09-06  Petr Machata  <pmachata@redhat.com>
17653
17654         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
17655         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
17656         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
17657         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
17658
17659 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
17660
17661         [BZ #14545]
17662         * csu/libc-tls.c (_dl_initial_dtv): New variable.
17663         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
17664         freeing dtv[-1].
17665
17666 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
17667
17668         [BZ #14544]
17669         * Makeconfig (link-static-before-libc): Replace $(+prector)
17670         with $(+prectorT).
17671         (link-static-after-libc): Replace $(+postctor) with
17672         $(+postctorT).
17673         (link-bounded): Replace $(+prector)/$(+postctor) with
17674         $(+prectorT)/$(+postctorT).
17675         (+prectorT): New macro.
17676         (+postctorT): Likewise.
17677
17678 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
17679
17680         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
17681         (round_str): Handle values above the maximum for IBM long double
17682         as inexact.
17683         * stdlib/tst-strtod-round.c (tests): Regenerated.
17684
17685 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17686
17687         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
17688         assembler flag.
17689         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
17690         zarch_nohighgprs around the zarch optimized routines.
17691         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
17692         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
17693         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
17694         for zarch.
17695
17696 2012-09-05  David S. Miller  <davem@davemloft.net>
17697
17698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17699
17700         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
17701         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
17702         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
17703         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17704         entries.
17705
17706 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
17707
17708         * malloc/arena.c: Fold copyright years.
17709         * malloc/mcheck.c, malloc/memusage.c: Likewise.
17710
17711 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
17712
17713         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
17714
17715 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
17716
17717         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
17718
17719 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
17720
17721         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
17722         change internal state upon failure.
17723
17724 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
17725
17726         * malloc/mcheck.c (mcheck_check_all): Fix typo.
17727         * malloc/memusage.c (mmap): Likewise.
17728         (mmap64, mremap): Likewise.  Adjust name in comment.
17729
17730 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17731
17732         * libio/fileops.c: Fix typos in comments.
17733         * libio/oldfileops.c: Likewise.
17734         * libio/wfileops.c: Likewise.
17735
17736 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17737
17738         [BZ #1349]
17739         * malloc/Makefile (tests): Add tst-malloc-usable test case.
17740         (tst-malloc-usable-ENV): Set environment for test case.
17741         * malloc/hooks.c (malloc_check_get_size): New function to get
17742         requested size.
17743         * malloc/malloc.c (musable): Use malloc_check_get_size.
17744         * malloc/tst-malloc-usable.c: New test case.
17745
17746 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17747
17748         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
17749
17750 2012-09-05  Allan McRae  <allan@archlinux.org>
17751
17752         [BZ #13966]
17753         * configure.in (CXX_SYSINCLUDES): Use compiler output to
17754         determine header location.
17755         * configure: Regenerated.
17756
17757 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17758
17759         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
17760         float format.
17761         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
17762         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
17763         format.
17764         (test): Regenerate.
17765
17766 2012-09-04  David S. Miller  <davem@davemloft.net>
17767
17768         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
17769         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
17770         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
17771
17772 2012-09-04  Florian Weimer  <fweimer@redhat.com>
17773
17774         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
17775         failures.
17776
17777         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
17778
17779 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
17780
17781         [BZ #9914]
17782         * libio/iogetdelim.c: Include <limits.h>.
17783         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
17784         + len + 1 would overflow.
17785
17786 2012-09-03  Andreas Jaeger  <aj@suse.de>
17787
17788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17789         * sysdeps/i386/fpu/libm-test-ulps: Update.
17790
17791 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17792
17793         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
17794         Add s_sinf-sse2, s_conf-sse2.
17795
17796         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
17797         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
17798         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
17799         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
17800
17801         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
17802         for using routine as __sinf_ia32.
17803         Use macro for function declaration and weak_alias.
17804         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
17805         for using routine as __cosf_ia32.
17806         Use macro for function declaration and weak_alias.
17807
17808         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
17809         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
17810
17811         * sysdeps/x86_64/fpu/s_sinf.S: New file.
17812         * sysdeps/x86_64/fpu/s_cosf.S: New file.
17813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17814
17815         * math/libm-test.inc (cos_test): Add more test cases.
17816         (sin_test): Likewise.
17817         (sincos_test): Likewise.
17818
17819 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17820
17821         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
17822         (IFUNC_RESOLVE): Make pointers to the specialized implementations
17823         hidden.
17824         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
17825
17826 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
17827
17828         [BZ #14538]
17829         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
17830         first element of the GOT.
17831         (elf_machine_load_address): Return the difference between
17832         the runtime address of _DYNAMIC and elf_machine_dynamic ().
17833
17834 2012-09-01  Allan McRae  <allan@archlinux.org>
17835
17836         [BZ #13412]
17837         * configure.in (AWK): Require gawk version 3.0 or later.
17838         * configure: Regenerated.
17839
17840 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
17841
17842         * sysdeps/unix/sysv/linux/kernel-features.h
17843         (__ASSUME_POSIX_CPU_TIMERS): Remove.
17844         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
17845         [__NR_clock_getres]: Make code unconditional.
17846         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
17847         (clock_getcpuclockid): Remove code left unreachable by removal of
17848         conditionals.
17849         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
17850         code unconditional.
17851         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
17852         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
17853         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
17854         Make code unconditional.
17855         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
17856         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
17857         * sysdeps/unix/sysv/linux/clock_settime.c
17858         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
17859         conditional code.
17860         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
17861         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
17862
17863 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
17864
17865         [BZ #14476]
17866         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
17867         scripts/test-installation.pl.
17868
17869         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
17870         and $ld_so_version if it is set.
17871
17872 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17873
17874         [BZ #14516]
17875         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
17876         failure if reading from procfs failed.
17877         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
17878
17879 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
17880
17881         * sysdeps/unix/sysv/linux/kernel-features.h
17882         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
17883         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
17884         Remove conditional code.
17885         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17886         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
17887         Remove conditional code.
17888         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17889         * sysdeps/unix/sysv/linux/i386/fxstat.c
17890         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
17891         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17892         * sysdeps/unix/sysv/linux/i386/fxstatat.c
17893         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
17894         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17895         * sysdeps/unix/sysv/linux/i386/lxstat.c
17896         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
17897         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17898         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
17899         Remove conditional code.
17900         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17901         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
17902         Remove conditional code.
17903         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17904         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
17905         <kernel-features.h>.
17906         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
17907         Remove.
17908         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
17909         Remove conditional code.
17910         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
17911         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
17912         Remove conditional.
17913
17914 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
17915
17916         [BZ #5400]
17917         * NEWS: Add fixed bug number.
17918
17919 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
17920
17921         [BZ #14519]
17922         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
17923         underflowing exponent in case of negative sign.
17924         * stdlib/tst-strtod-round-data: Add more tests.
17925         * stdlib/tst-strtod-round.c (tests): Regenerated.
17926
17927         [BZ #3479]
17928         * stdlib/strtod_l.c (NDIG): Remove.
17929         (HEXNDIG): Likewise.
17930         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
17931         smallest representable value.
17932         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
17933         lie within an exact representation of 1/2 ulp of the result.
17934         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
17935         unconditionally.
17936         (TENS_P9_IDX): Define unconditionally.
17937         (TENS_P9_SIZE): Likewise.
17938         (TENS_P10_IDX): Likewise.
17939         (TENS_P10_SIZE): Likewise.
17940         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
17941         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
17942         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
17943         entries for 10^2^13 and 10^2^14.
17944         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
17945         (TENS_P13_IDX): Define.
17946         (TENS_P13_SIZE): Likewise.
17947         (TENS_P14_IDX): Likewise.
17948         (TENS_P14_SIZE): Likewise.
17949         (_fpioconst_pow10): Change array size to
17950         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
17951         unconditional.
17952         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
17953         1024]: Add entries for 10^2^13 and 10^2^14.
17954         [LAST_POW10 > _LAST_POW10]: Remove #error.
17955         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
17956         (_fpioconst_pow10): Change array size to
17957         FPIOCONST_POW10_ARRAY_SIZE.
17958         * stdlib/gen-fpioconst.c: New file.
17959         * stdlib/gen-tst-strtod-round.c: Likewise.
17960         * stdlib/tst-strtod-round-data: Likewise.
17961         * stdlib/tst-strtod-round.c: Likewise.
17962         * stdlib/Makefile (tests): Add tst-strtod-round.
17963
17964         [BZ #14459]
17965         * stdlib/strtod_l.c: Include <stdint.h>.
17966         (NDEBUG): Do not define.
17967         (round_and_return): Change EXPONENT parameter to type intmax_t.
17968         Rearrange calculations to avoid internal overflow possibilities.
17969         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
17970         Rearrange calculations to avoid internal overflow possibilities.
17971         Assert that number fits inside MPNSIZE limbs.
17972         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
17973         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
17974         calculations and add assertions to avoid internal overflow
17975         possibilities.  Add casts to avoid signed/unsigned operations.
17976         * stdlib/tst-strtod-overflow.c: New file.
17977         * stdlib/Makefile (tests): Add tst-strtod-overflow.
17978
17979 2012-08-25  Marek Polacek  <polacek@redhat.com>
17980
17981         * time/time.h: Fix some typos in comments.
17982
17983 2012-08-23  Roland McGrath  <roland@hack.frob.com>
17984
17985         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
17986         * posix/tst-rfc3484-2.c: Likewise.
17987         * posix/tst-rfc3484-3.c: Likewise.
17988
17989 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
17990
17991         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
17992         (EF_ARM_ABI_FLOAT_HARD): Likewise.
17993
17994 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
17995
17996         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
17997         #include of fxstatat64.c.
17998
17999 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18000
18001         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
18002         * shadow/getspent_r.c: Likewise.
18003         * shadow/getspnam.c: Likewise.
18004         * shadow/getspnam_r.c: Likewise.
18005         * gshadow/getsgent.c: Likewise.
18006         * gshadow/getsgent_r.c: Likewise.
18007         * gshadow/getsgnam.c: Likewise.
18008         * gshadow/getsgnam_r.c: Likewise.
18009         * inet/getnetbyad.c: Likewise.
18010         * inet/getnetbyad_r.c: Likewise.
18011         * inet/getnetbynm.c: Likewise.
18012         * inet/getnetbynm_r.c: Likewise.
18013         * inet/getnetent.c: Likewise.
18014         * inet/getnetent_r.c: Likewise.
18015         * inet/getproto.c: Likewise.
18016         * inet/getproto_r.c: Likewise.
18017         * inet/getprtent.c: Likewise.
18018         * inet/getprtent_r.c: Likewise.
18019         * inet/getprtname.c: Likewise.
18020         * inet/getprtname_r.c: Likewise.
18021         * inet/getrpcbyname.c: Likewise.
18022         * inet/getrpcbyname_r.c: Likewise.
18023         * inet/getrpcbynumber.c: Likewise.
18024         * inet/getrpcbynumber_r.c: Likewise.
18025         * inet/getrpcent.c: Likewise.
18026         * inet/getrpcent_r.c: Likewise.
18027         * inet/getaliasent.c: Likewise.
18028         * inet/getaliasent_r.c: Likewise.
18029         * inet/getaliasname.c: Likewise.
18030         * inet/getaliasname_r.c: Likewise.
18031         * nscd/getgrgid_r.c: Likewise.
18032         * nscd/getgrnam_r.c: Likewise.
18033         * nscd/gethstbyad_r.c: Likewise.
18034         * nscd/gethstbynm3_r.c: Likewise.
18035         * nscd/getpwnam_r.c: Likewise.
18036         * nscd/getpwuid_r.c: Likewise.
18037         * nscd/getsrvbynm_r.c: Likewise.
18038         * nscd/getsrvbypt_r.c: Likewise.
18039         * nscd/gai.c: Likewise.
18040
18041         * configure.in (build_nscd): New substituted variable, set
18042         by --disable-build-nscd and defaults to $use_nscd.
18043         * configure: Regenerated.
18044         * config.make.in (build-nscd): New substituted variable.
18045         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
18046         Change conditional to require [$(build-nscd) = yes] as well.
18047         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
18048
18049         [BZ# 13696]
18050         * configure.in (use_nscd): New substituted variable, set by
18051         --disable-nscd.  If enabled, define USE_NSCD.
18052         * configure: Regenerated.
18053         * config.h.in: Add USE_NSCD.
18054         * config.make.in (use-nscd): New substituted variable.
18055         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18056         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
18057         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
18058         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
18059         (CFLAGS-getgrnam_r.c): Likewise.
18060         (CFLAGS-initgroups.c): Likewise.
18061         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
18062         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
18063         Variables removed.
18064         * inet/getnetgrent_r.c
18065         (nscd_setnetgrent): New function, broken out of ...
18066         (setnetgrent): ... here.  Call it.
18067         (innetgr): Conditionalize nscd bits on [USE_NSCD].
18068         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
18069         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
18070         * nscd/Makefile (routines, aux): Move definitions after include of
18071         Makeconfig.  Conditionalize on [$(use-nscd) != no].
18072         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
18073         Conditionalize on [USE_NSCD].
18074         (is_nscd, nscd_init_cb): Likewise.
18075         (nss_load_library): Conditionalize init callback on [USE_NSCD].
18076         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
18077         * nss/nss_db/db-init.c: Likewise.
18078         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
18079         [USE_NSCD].
18080         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
18081         (make_request): Use it.
18082         (cache_valid_p): New function.
18083         (__check_pf): Use it.
18084         * NEWS: Add item for --disable-nscd.
18085
18086 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
18087
18088         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
18089         to support sed >= 4.2.1-20-ga9bf076.
18090         * configure: Regenerated.
18091
18092 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18093
18094         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
18095         Conditionalize whole body on [IREL].
18096
18097 2012-08-22  Jeff Law <law@redhat.com>
18098
18099         [BZ #14505]
18100         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
18101         if the family is PF_UNSPEC.
18102
18103 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
18104
18105         * Makerules (lib-version): Rename from V.
18106         (install-lib-nosubdir): Change V to lib-version.
18107
18108 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
18109
18110         [BZ #14252]
18111         * powerpc32/power6/wcschr.c: New file.
18112         * powerpc32/power6/wcscpy.c: New file.
18113         * powerpc32/power6/wcsrchr.c: New file.
18114         * powerpc64/power6/wcschr.c: New file.
18115         * powerpc64/power6/wcscpy.c: New file.
18116         * powerpc64/power6/wcsrchr.c: New file.
18117
18118 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18119
18120         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
18121         (two_way_short_needle): Use it.
18122         * string/strstr.c (AVAILABLE1_USES_J): Define.
18123         * string/strcasestr.c: Likewise.
18124
18125         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
18126         array references.
18127         * string/strcasestr.c (TOLOWER): Make side-effect safe.
18128
18129         [BZ #11607]
18130         * NEWS: Add an entry.
18131         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
18132         define their defaults.
18133         (two_way_short_needle): Detect end-of-string on-the-fly.
18134         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
18135         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
18136         * string/bug-strcasestr1.c: New test.
18137         * string/Makefile: Run it.
18138
18139 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18140
18141         [BZ #11607]
18142         * string/str-two-way.h (two_way_short_needle): Optimize matching of
18143         the first character.
18144
18145 2012-08-21  Roland McGrath  <roland@hack.frob.com>
18146
18147         * csu/elf-init.c (__libc_csu_irel): Function removed.
18148         * csu/libc-start.c (apply_irel): New function.
18149         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
18150
18151 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
18152
18153         * sysdeps/unix/sysv/linux/kernel-features.h
18154         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
18155         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
18156         <kernel-features.h>.
18157         [__NR_fadvise64_64]: Make code unconditional.
18158         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
18159         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18160         !__NR_fadvise64_64)]: Likewise.
18161         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18162         !__NR_fadvise64_64))]: Likewise.
18163         [__NR_fadvise64]: Make code unconditional.
18164         [!__NR_fadvise64]: Remove conditional code.
18165         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
18166         <kernel-features.h>.
18167         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
18168         unconditional.
18169         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
18170         conditional code.
18171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
18172         not include <kernel-features.h>.
18173         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
18174         unconditional.
18175         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
18176         conditional code.
18177         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
18178         include <kernel-features.h>.
18179         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
18180         unconditional.
18181         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
18182         conditional code.
18183
18184 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
18185
18186         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
18187         slight instruction rearrangements per scrollpipe analysis.
18188         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
18189
18190 2012-08-20  Roland McGrath  <roland@hack.frob.com>
18191
18192         * manual/syslog.texi (syslog; vsyslog, closelog):
18193         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
18194         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
18195
18196         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
18197         DSOCAPS to match condition on defining it.
18198
18199 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
18200
18201         * sysdeps/unix/sysv/linux/kernel-features.h
18202         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
18203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
18204         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
18205         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
18206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
18207         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
18208         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
18209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
18210         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
18211         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
18212
18213         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
18214         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
18215
18216         * sysdeps/unix/sysv/linux/kernel-features.h
18217         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
18218         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
18219         unconditional.
18220         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
18221         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
18222         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
18223         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
18224         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
18225         Make code unconditional.
18226         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
18227         (__mmap64) [!__NR_mmap2]: Likewise.
18228         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
18229         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
18230         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
18231         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
18232         [__NR_mmap2]: Make code unconditional.
18233         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
18234         (__mmap64) [!__NR_mmap2]: Likewise.
18235
18236 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18237
18238         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
18239
18240 2012-08-18  Andreas Jaeger  <aj@suse.de>
18241
18242         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
18243
18244 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
18245
18246         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
18247         * include/unistd.h (__have_sock_cloexec): Likewise.
18248         (__have_pipe2): Likewise.
18249         (__have_dup3): Likewise.
18250
18251 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
18252
18253         [BZ #9685]
18254         * include/unistd.h (__have_pipe2): Change define into an extern int.
18255         (__have_dup3): Likewise.
18256         * socket/have_sock_cloexec.c: Include fcntl.h.
18257         (__have_pipe2): New variable.
18258         (__have_dup3): Likewise.
18259
18260 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
18261
18262         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
18263
18264 2012-08-17  Marek Polacek  <polacek@redhat.com>
18265
18266         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
18267         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
18268
18269 2012-08-17  Roland McGrath  <roland@hack.frob.com>
18270
18271         * configure.in: Add AC_SUBST for sysheaders.
18272         * configure: Regenerated.
18273         * config.make.in (sysheaders): New substituted variable.
18274
18275         * sysdeps/unix/mkfifo.c: Moved ...
18276         * sysdeps/posix/mkfifo.c: ... here.
18277         * sysdeps/unix/mkfifoat.c: Moved ...
18278         * sysdeps/posix/mkfifoat.c: ... here.
18279
18280         * sysdeps/unix/utime.c: Moved ...
18281         * sysdeps/posix/utime.c: ... here.
18282
18283         * sysdeps/unix/time.c: Moved ...
18284         * sysdeps/posix/time.c: ... here.
18285         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
18286         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
18287
18288         * sysdeps/unix/nice.c: Moved ...
18289         * sysdeps/posix/nice.c: ... here.
18290
18291         * sysdeps/unix/alarm.c: Moved ...
18292         * sysdeps/posix/alarm.c: ... here.
18293
18294         * intl/Makefile ($(codeset_mo)): Depend on the input file.
18295
18296 2012-08-17  Jeff Law <law@redhat.com>
18297
18298         * intl/Makefile (codeset_mo): New variable.
18299         ($(codeset_mo)): New target.
18300         (tst-codeset.out): Depend on that.  Remove explicit rule.
18301         (tst-gettext3.out, tst-gettext5.out): Likewise.
18302         (LOCPATH-ENV, tst-codeset-ENV): New variables.
18303         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
18304         * intl/tst-codeset.sh: Remove.
18305         * intl/tst-gettext3.sh: Likewise.
18306         * intl/tst-gettext5.sh: Likewise.
18307
18308 2012-08-17  Roland McGrath  <roland@hack.frob.com>
18309
18310         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
18311         * sysdeps/unix/syscalls.list: ... here.
18312
18313         * sysdeps/posix/getaddrinfo.c
18314         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
18315         (gaiconf_init, gaiconf_reload): Use them.
18316         [!_STATBUF_ST_NSEC]
18317         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
18318         Define using time_t rather than struct timespec.
18319
18320         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
18321         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
18322         Macros removed.
18323         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
18324         [!NO_THREADS].
18325         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
18326         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
18327         Likewise.
18328
18329         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
18330         __libc_cleanup_push argument.
18331
18332         * bits/param.h: New file.
18333         * misc/sys/param.h: New file.
18334         * include/sys/param.h: New file.
18335         * misc/Makefile (headers): Add bits/param.h.
18336         * sysdeps/generic/sys/param.h: File removed.
18337         * sysdeps/unix/sysv/linux/bits/param.h: New file.
18338         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
18339         * sysdeps/mach/hurd/bits/param.h: New file.
18340         * sysdeps/mach/hurd/sys/param.h: File removed.
18341
18342         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
18343         last change.
18344
18345         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
18346         [_IO_MTSAFE_IO].
18347         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
18348         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
18349         New macros.
18350
18351         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
18352         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
18353         rather than -D_IO_MTSAFE_IO conditionally.
18354         * stdio-common/Makefile (CPPFLAGS): Likewise.
18355         * wcsmbs/Makefile (CPPFLAGS): Likewise.
18356         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
18357         Use $(libio-mtsafe).
18358         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
18359         of -D_IO_MTSAFE_IO.
18360         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
18361         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
18362         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
18363         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
18364         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
18365         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
18366         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
18367         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
18368         (CFLAGS-fread_u_chk.c): Likewise.
18369         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
18370         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
18371         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
18372         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
18373         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
18374         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
18375         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
18376         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
18377         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
18378
18379         * libio/Makefile: Test [$(libc-reentrant) = yes]
18380         instead of [$(filter %REENTRANT, $(defines)) nonempty].
18381
18382         * Makeconfig
18383         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
18384         * sysdeps/pthread/configure: File removed.
18385         * sysdeps/pthread/Makeconfig: New file.
18386         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
18387         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
18388
18389 2012-08-16  Gary Benson  <gbenson@redhat.com>
18390
18391         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
18392         unmapping the first object in a namespace.
18393
18394 2012-08-16  Roland McGrath  <roland@hack.frob.com>
18395
18396         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
18397         (__internal_setnetgrent): ... this.  Add internal_function to
18398         definition.  Add libc_hidden_def.
18399         (setnetgrent): Update caller.
18400         (internal_endnetgrent): Renamed to ...
18401         (__internal_endnetgrent): ... this.  Add internal_function to
18402         definition.  Add libc_hidden_def.
18403         (endnetgrent): Update caller.
18404         (internal_getnetgrent_r): Renamed to ...
18405         (__internal_getnetgrent_r): ... this.  Add internal_function to
18406         definition.  Add libc_hidden_def.
18407         (__getnetgrent_r): Update caller.
18408         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
18409
18410 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
18411
18412         * stdlib/longlong.h: Update from GCC.
18413
18414 2012-08-16  Roland McGrath  <roland@hack.frob.com>
18415
18416         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
18417         on _QL, which is set by umul_ppmm but never used.
18418         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
18419         variables, which are set by GMP macros but never used.
18420         * stdio-common/_itowa.c (_itowa): Likewise.
18421         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
18422         * stdlib/mod_1.c (mpn_mod_1): Likewise.
18423
18424 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
18425
18426         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
18427         struct La_sh_regs is not constant.
18428         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
18429         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
18430         and struct La_sparc64_regs are not constant.
18431
18432 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
18433
18434         * sysdeps/unix/sysv/linux/kernel-features.h
18435         (__ASSUME_POSIX_TIMERS): Remove.
18436         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
18437         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
18438         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
18439         Make code unconditional.
18440         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
18441         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
18442         Make code unconditional.
18443         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
18444         * sysdeps/unix/sysv/linux/clock_nanosleep.c
18445         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
18446         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
18447         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
18448         Make code unconditional.
18449         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
18450         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
18451         (__libc_missing_posix_timers): Remove.
18452
18453 2012-08-15  Roland McGrath  <roland@hack.frob.com>
18454
18455         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
18456         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
18457
18458         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
18459
18460         * elf/dl-sym.c: Include <stdlib.h>.
18461
18462         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
18463         constants, which avoids warnings in 32-bit builds.
18464
18465         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
18466         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
18467
18468         * misc/lseek.c: File moved to ...
18469         * io/lseek.c: ... here.
18470
18471         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
18472
18473         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
18474         shifting LEN more than 31 bits at once.
18475
18476 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18477
18478         [BZ #14195]
18479         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
18480         segmentation fault for a case of two empty input strings.
18481         * string/test-strncasecmp.c (check1): Renamed to...
18482         (bz12205): ...this.
18483         (bz14195): Add new testcase for two empty input strings and N > 0.
18484         (test_main): Call new testcase, adapt for renamed function.
18485
18486 2012-08-15  Andreas Jaeger  <aj@suse.de>
18487
18488         [BZ #14090]
18489         * crypt/md5test2.c: New test, based on test supplied by Serge
18490         Belyshev <belyshev@depni.sinp.msu.ru>.
18491         * crypt/Makefile (xtests): Add md5test-giant..
18492         * crypt/Makefile ($(objpfx)md5test-giant): Add.
18493
18494 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         [BZ #14090]
18497         * crypt/md5.c (md5_process_block): Don't assume the buffer
18498         length is less than 2**32.
18499         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
18500         length is less than 2**64.
18501
18502 2012-08-15  Roland McGrath  <roland@hack.frob.com>
18503
18504         * string/str-two-way.h: Include <sys/param.h>.
18505         (MAX): Macro removed.
18506
18507         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
18508         Move #define and #undef of memmove to just before and after
18509         including <string.h>.
18510
18511         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
18512         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
18513         and after including <string.h>.  Move declarations of
18514         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
18515         to before #include "string/memmove.c".
18516
18517         * include/dirent.h: Declare __getdirentries.
18518
18519         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
18520         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
18521
18522 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
18523
18524         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
18525         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
18526         * sysdeps/i386/configure: Regenerated.
18527         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
18528         STABS_CURRENT_FILE, and STABS_FUN.
18529         (END): Remove call to STABS_FUN_END.
18530         (STABS_CURRENT_FILE1): Delete.
18531         (STABS_CURRENT_FILE): Likewise.
18532         (STABS_FUN): Likewise.
18533         (STABS_FUN_END): Likewise.
18534         (STABS_FUN2): Likewise.
18535         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
18536         * sysdeps/x86_64/configure: Regenerated.
18537
18538 2012-08-14  Roland McGrath  <roland@hack.frob.com>
18539
18540         * elf/dl-open.c: Include <atomic.h>.
18541         * elf/dl-lookup.c: Likewise.
18542
18543 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
18544
18545         * sysdeps/unix/sysv/linux/kernel-features.h
18546         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
18547         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
18548         unconditionally.
18549         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
18550         unconditionally.
18551         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
18552         condition on __ASSUME_CLONE_THREAD_FLAGS.
18553
18554 2012-08-14  Andreas Jaeger  <aj@suse.de>
18555
18556         * sysdeps/i386/fpu/libm-test-ulps: Update.
18557
18558 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
18559
18560         * include/atomic.h (atomic_exchange_and_add): Split into ...
18561         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
18562         New atomic macros.
18563
18564 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
18565
18566         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18567
18568 2012-08-13  Jeff Law <law@redhat.com>
18569
18570         * manual/stdio.texi (snprintf): Clarify handling of the trailing
18571         null byte in the output string.
18572
18573 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
18574
18575         * sysdeps/unix/sysv/linux/kernel-features.h
18576         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
18577         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
18578         (__ASSUME_ARG_MAX_STACK_BASED): Define.
18579         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
18580         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
18581         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
18582         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
18583
18584 2012-08-09  Jeff Law <law@redhat.com>
18585
18586         [BZ #13939]
18587         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
18588         When avoid_arena is set, don't retry in the that arena.  Pick the
18589         next one, whatever it might be.
18590         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
18591         (arena_lock): Pass in new parameter to arena_get2.
18592         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
18593         arena_get2.
18594         (__libc_malloc): Unify retrying after main arena failure with
18595         __libc_memalign version.
18596         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
18597
18598 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
18599
18600         [BZ #14166]
18601         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
18602         to __redirect_strstr.
18603         (__strstr_sse42): Use typeof __redirect_strstr.
18604         (__strstr_ia32): Likewise.
18605         (__libc_strstr): New prototype.
18606         (strstr): Renamed to ...
18607         (__libc_strstr): This.
18608         (strstr): New strong alias of __libc_strstr.
18609         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18610         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
18611         __redirect_time.
18612         Include <time.h>.
18613         (__libc_time): New prototype.
18614         (time_ifunc): Replace time with __libc_time.
18615         (time): New strong alias and hidden definition of __libc_time.
18616         (__GI_time): Remove strong alias.
18617         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
18618         Include <stddef.h>.
18619         (memmove): Redefined to __redirect_memmove.
18620         (__memmove_sse2): Use typeof __redirect_memmove.
18621         (__memmove_ssse3): Likewise.
18622         (__memmove_ssse3_back): Likewise.
18623         (__libc_memmove): New prototype.
18624         (memmove): Renamed to ...
18625         (__libc_memmove): This.
18626         (memmove): New strong alias of __libc_memmove.
18627
18628 2012-08-08  Mark Salter  <msalter@redhat.com>
18629
18630         * elf/elf.h
18631         (R_MN10300_TLS_GD): Define.
18632         (R_MN10300_TLS_LD): Likewise.
18633         (R_MN10300_TLS_LDO): Likewise.
18634         (R_MN10300_TLS_GOTIE): Likewise.
18635         (R_MN10300_TLS_IE): Likewise.
18636         (R_MN10300_TLS_LE): Likewise.
18637         (R_MN10300_TLS_DTPMOD): Likewise.
18638         (R_MN10300_TLS_DTPOFF): Likewise.
18639         (R_MN10300_TLS_TPOFF): Likewise.
18640         (R_MN10300_SYM_DIFF): Likewise.
18641         (R_MN10300_ALIGN): Likewise.
18642         (R_MN10300_NUM): Update.
18643
18644 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
18645
18646         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
18647         Remove.
18648
18649 2012-08-08  Roland McGrath  <roland@hack.frob.com>
18650
18651         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
18652
18653         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
18654         sysdeps/unix -> sysdeps/posix move.
18655         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18656
18657 2012-08-07      Allan McRae     <allan@archlinux.org>
18658
18659         [BZ #14303]
18660         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
18661         (SUNOS_CPP): Likewise.
18662         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
18663         not found.
18664         (open_input): Call CPP using execvp.
18665
18666 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
18667
18668         * sysdeps/unix/sysv/linux/kernel-features.h
18669         (__ASSUME_PROT_GROWSUPDOWN): Remove.
18670         (__ASSUME_NO_CLONE_DETACHED): Likewise.
18671         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
18672         (__ASSUME_WAITID_SYSCALL): Likewise.
18673         * sysdeps/unix/sysv/linux/dl-execstack.c
18674         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
18675         code unconditional.
18676         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
18677         conditional code.
18678         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
18679         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
18680         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
18681         code.
18682         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
18683         unconditional.
18684         [__ASSUME_WAITID_SYSCALL]: Likewise.
18685         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
18686
18687 2012-08-07  Roland McGrath  <roland@hack.frob.com>
18688
18689         * sysdeps/unix/closedir.c: Renamed to ...
18690         * sysdeps/posix/closedir.c: ... here.
18691         * sysdeps/unix/dirfd.c: Renamed to ...
18692         * sysdeps/posix/dirfd.c: ... here.
18693         * sysdeps/unix/dirstream.h: Renamed to ...
18694         * sysdeps/posix/dirstream.h: ... here.
18695         * sysdeps/unix/fdopendir.c: Renamed to ...
18696         * sysdeps/posix/fdopendir.c: ... here.
18697         * sysdeps/unix/opendir.c: Renamed to ...
18698         * sysdeps/posix/opendir.c: ... here.
18699         * sysdeps/unix/readdir.c: Renamed to ...
18700         * sysdeps/posix/readdir.c: ... here.
18701         * sysdeps/unix/readdir_r.c: Renamed to ...
18702         * sysdeps/posix/readdir_r.c: ... here.
18703         * sysdeps/unix/rewinddir.c: Renamed to ...
18704         * sysdeps/posix/rewinddir.c: ... here.
18705         * sysdeps/unix/seekdir.c: Renamed to ...
18706         * sysdeps/posix/seekdir.c: ... here.
18707         * sysdeps/unix/telldir.c: Renamed to ...
18708         * sysdeps/posix/telldir.c: ... here.
18709         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
18710         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
18711         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18712         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18713
18714         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
18715         * bits/fcntl.h: ... here.
18716
18717         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
18718         not 0.
18719         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
18720         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
18721         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
18722         (struct flock): Move l_start, l_len to the beginning.
18723         Use __pid_t for l_pid.
18724         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
18725         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
18726         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
18727         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
18728         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
18729         [__USE_LARGEFILE64] (struct flock64): New type.
18730         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
18731
18732         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
18733         * bits/dirent.h: ... here.
18734
18735         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
18736         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
18737
18738 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
18739
18740         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
18741         Change from 2.6.0 to 2.6.16.
18742         * sysdeps/unix/sysv/linux/configure: Regenerated.
18743         * sysdeps/unix/sysv/linux/kernel-features.h
18744         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
18745         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
18746         version.
18747         (__ASSUME_UTIMES): Likewise.
18748         (__ASSUME_CLONE_STOPPED): Remove.
18749         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
18750         architectures, not kernel version.
18751         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
18752         (__ASSUME_NO_CLONE_DETACHED): Likewise.
18753         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
18754         (__ASSUME_WAITID_SYSCALL): Likewise.
18755         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
18756         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
18757         * README: State 2.6.16 as minimum Linux kernel version.  Do not
18758         refer to older versions.
18759
18760 2012-08-06  Roland McGrath  <roland@hack.frob.com>
18761
18762         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
18763         Define alphasort64 as an alias.
18764         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
18765         Define versionsort64 as an alias.
18766         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
18767         Define scandir64 as an alias.
18768         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
18769         Define scandirat64 as an alias.
18770         * dirent/alphasort64.c (alphasort64):
18771         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
18772         * dirent/versionsort64.c: Likewise.
18773         * dirent/scandir64.c: Likewise.
18774         * dirent/scandirat64.c: Likewise.
18775         * sysdeps/wordsize-64/alphasort.c: File removed.
18776         * sysdeps/wordsize-64/alphasort64.c: File removed.
18777         * sysdeps/wordsize-64/scandir.c: File removed.
18778         * sysdeps/wordsize-64/scandir64.c: File removed.
18779         * sysdeps/wordsize-64/scandirat.c: File removed.
18780         * sysdeps/wordsize-64/scandirat64.c: File removed.
18781         * sysdeps/wordsize-64/versionsort.c: File removed.
18782         * sysdeps/wordsize-64/versionsort64.c: File removed.
18783         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
18784         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
18785         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
18786         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
18787         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
18788         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
18789         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
18790         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
18791
18792         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
18793         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
18794         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
18795         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18796         [defined __arch64__ || defined __sparcv9]
18797         (__INO_T_MATCHES_INO64_T): New macro.
18798         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18799         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
18800         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
18801         * sysdeps/unix/sysv/linux/bits/dirent.h
18802         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
18803         (_DIRENT_MATCHES_DIRENT64): New macro.
18804
18805         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
18806         Define lockf64 as an alias.
18807         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
18808         Define fseeko64 as an alias.
18809         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
18810         Define ftello64 as an alias.
18811         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
18812         Define _IO_fgetpos64 and fgetpos64 as aliases.
18813         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
18814         Define _IO_fsetpos64 and fsetpos64 as aliases.
18815         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
18816         Conditionalize body on this.
18817         * libio/fseeko64.c: Likewise.
18818         * libio/ftello64.c: Likewise.
18819         * libio/iofgetpos64.c: Likewise.
18820         * libio/iofsetpos64.c: Likewise.
18821         * sysdeps/wordsize-64/lockf.c: File removed.
18822         * sysdeps/wordsize-64/lockf64.c: File removed.
18823         * sysdeps/wordsize-64/fseeko.c: File removed.
18824         * sysdeps/wordsize-64/fseeko64.c: File removed.
18825         * sysdeps/wordsize-64/ftello.c: File removed.
18826         * sysdeps/wordsize-64/ftello64.c: File removed.
18827         * sysdeps/wordsize-64/iofgetpos.c: File removed.
18828         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
18829         * sysdeps/wordsize-64/iofsetpos.c: File removed.
18830         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
18831         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
18832         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
18833         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
18834         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
18835         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
18836         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
18837         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
18838         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
18839         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
18840         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
18841
18842         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
18843         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
18844         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
18845         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18846         [defined __arch64__ || defined __sparcv9]
18847         (__OFF_T_MATCHES_OFF64_T): New macro.
18848         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18849         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
18850         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18851         (__OFF_T_MATCHES_OFF64_T): New macro.
18852
18853 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
18854
18855         * stdlib/secure-getenv.c (__secure_getenv): Replace
18856         GLIBC_2_16 with GLIBC_2_17.
18857
18858 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
18859
18860         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
18861         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
18862
18863 2012-08-03  David S. Miller  <davem@davemloft.net>
18864
18865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18866
18867 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
18868
18869         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
18870         Remove.
18871         (__ASSUME_CORRECT_SI_PID): Likewise.
18872         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
18873         (__ASSUME_TMPFS_NAME): Likewise.
18874         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
18875         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
18876         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
18877         (HAVE_AUX_SECURE): Make definition unconditional.
18878         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
18879         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
18880
18881 2012-08-03  Roland McGrath  <roland@hack.frob.com>
18882
18883         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
18884         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
18885         * sysdeps/mach/hurd/eloop-threshold.h: New file.
18886         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
18887         __eloop_threshold instead of SYMLOOP_MAX.
18888
18889         * sysdeps/generic/eloop-threshold.h: New file.
18890         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
18891         of MAXSYMLINKS.
18892         * elf/chroot_canon.c (chroot_canon): Likewise.
18893
18894 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
18895
18896         [BZ #13717]
18897         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
18898         Change to 2.6.0 everywhere.
18899         * sysdeps/unix/sysv/linux/configure: Regenerated.
18900         * sysdeps/unix/sysv/linux/kernel-features.h
18901         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
18902         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
18903         kernel versions.
18904         (__ASSUME_POSIX_TIMERS): Define unconditionally.
18905         (__ASSUME_FUTEX_REQUEUE): Remove.
18906         (__ASSUME_STATFS64): Define unconditionally.
18907         (__ASSUME_AT_SECURE): Likewise.
18908         (__ASSUME_CORRECT_SI_PID): Likewise.
18909         (__ASSUME_TGKILL): Define without depending on kernel version for
18910         i386.
18911         (__ASSUME_UTIMES): Likewise.
18912         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
18913         kernel version.
18914         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
18915         (__ASSUME_TMPFS_NAME): Likewise.
18916         * README: Update reference to Linux kernel versions.
18917
18918 2012-08-02  Marek Polacek  <polacek@redhat.com>
18919
18920         [BZ# 14150]
18921         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
18922         libc_cv_asm_type_prefix with %.
18923         * configure: Regenerated.
18924         * include/libc-symbols.h: Remove comment about
18925         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
18926         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
18927         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
18928         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
18929         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
18930         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
18931         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
18932         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
18933         * elf/tst-unique2mod1.c: Likewise.
18934         * elf/tst-unique1mod2.c: Likewise.
18935         * elf/tst-unique1mod1.c: Likewise.
18936         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
18937         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
18938         Replace ASM_TYPE_DIRECTIVE with .type.
18939         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18940         * sysdeps/i386/sysdep.h: Likewise.
18941         * sysdeps/x86_64/sysdep.h: Likewise.
18942         * sysdeps/sh/sysdep.h: Likewise.
18943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18944         Do not define ASM_TYPE_DIRECTIVE.
18945         * sysdeps/powerpc/sysdep.h: Likewise.
18946         * sysdeps/powerpc/powerpc32/sysdep.h:
18947         Replace ASM_TYPE_DIRECTIVE with .type.
18948         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
18949         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
18950         * sysdeps/i386/fpu/e_powf.S: Likewise.
18951         * sysdeps/i386/fpu/e_expl.S: Likewise.
18952         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18953         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18954         * sysdeps/i386/fpu/e_pow.S: Likewise.
18955         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
18956         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18957         * sysdeps/i386/fpu/s_expm1.S: Likewise.
18958         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
18959         * sysdeps/i386/fpu/e_log2.S: Likewise.
18960         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18961         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18962         * sysdeps/i386/fpu/e_powl.S: Likewise.
18963         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18964         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
18965         * sysdeps/i386/fpu/e_logl.S: Likewise.
18966         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
18967         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
18968         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
18969         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18970         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18971         * sysdeps/i386/fpu/e_log.S: Likewise.
18972         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18973         * sysdeps/i386/fpu/e_logf.S: Likewise.
18974         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18975         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18976         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
18977         * sysdeps/i386/fpu/e_log10.S: Likewise.
18978         * sysdeps/i386/fpu/s_frexp.S: Likewise.
18979         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18980         * sysdeps/i386/fpu/s_asinh.S: Likewise.
18981         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
18982         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18983         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
18984         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
18985         * sysdeps/i386/i686/strtok.S: Likewise.
18986         * sysdeps/i386/i386-mcount.S: Likewise.
18987         * sysdeps/i386/strtok.S: Likewise.
18988         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
18989         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18990         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18991         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18992         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18993         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18994         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
18995         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
18996         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18997         * sysdeps/x86_64/_mcount.S: Likewise.
18998         * sysdeps/x86_64/strtok.S: Likewise.
18999         * sysdeps/sh/_mcount.S: Likewise.
19000
19001 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19002
19003         * libio/iofopen.c: Include <fcntl.h>.
19004         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
19005         (_IO_fopen64, fopen64): Define as aliases.
19006         * libio/iofopen64.c: Include <fcntl.h>.
19007         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
19008         Conditionalize body on this.
19009         * sysdeps/wordsize-64/iofopen.c: File removed.
19010         * sysdeps/wordsize-64/iofopen64.c: File removed.
19011
19012 2012-08-01  Marek Polacek  <polacek@redhat.com>
19013
19014         * libc/Makeconfig: Use elf in place of binfmt-subdir.
19015         Use dlfcn directly instead of a variable.
19016         (binfmt-subdir): Do not define.
19017         (dlfcn): Likewise.
19018
19019 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
19020
19021         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
19022         Remove all definitions.
19023         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
19024         <kernel-features.h>.
19025         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19026         (miss_F_GETOWN_EX): Remove all definitions.
19027         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
19028         macro definition.
19029         [!__ASSUME_FCNTL64]: Remove conditional code.
19030         [__ASSUME_FCNTL64]: Make code unconditional.
19031         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
19032         <kernel-features.h>.
19033         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19034         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
19035         (lockf64) [__NR_fcntl64]: Make code unconditional.
19036         (lockf64) [__ASSUME_FCNTL64]: Likewise.
19037
19038         * sysdeps/unix/sysv/linux/kernel-features.h
19039         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
19040         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
19041         Make code unconditional.
19042         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19043         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
19045         [__NR_vfork]: Make code unconditional.
19046         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19047         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
19049         [__NR_vfork]: Make code unconditional.
19050         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19051         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19052
19053 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19054
19055         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
19056         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
19057
19058         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19059         Define mkstemp64 as an alias.
19060         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19061         Define mkstemps64 as an alias.
19062         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19063         Define mkostemp64 as an alias.
19064         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19065         Define mkostemps64 as an alias.
19066         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
19067         Conditionalize body on this.
19068         * misc/mkostemp64.c: Likewise.
19069         * misc/mkostemps64.c: Likewise.
19070         * misc/mkstemps64.c: Likewise.
19071         * sysdeps/wordsize-64/mkstemp64.c: File removed.
19072         * sysdeps/wordsize-64/mkostemp64.c: File removed.
19073         * sysdeps/wordsize-64/mkostemp.c: File removed.
19074         * sysdeps/wordsize-64/mkstemp.c: File removed.
19075         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
19076         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
19077         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
19078         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
19079
19080         [BZ #14138]
19081         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
19082         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
19083         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
19084         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
19085
19086         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
19087         compat_symbol macros from <shlib-compat.h> rather than the underlying
19088         default_symbol_version and symbol_version macros, so that DEFAULT
19089         lines in shlib-versions are respected.
19090         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
19091
19092 2012-08-01  Florian Weimer  <fweimer@redhat.com>
19093
19094         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
19095         Declare with warn_unused_result.
19096         (setgid, setregid, setegid, setresgid): Likewise.
19097         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
19098         Likewise.
19099         * WUR-REPORT: Remove set*id functions.
19100
19101 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
19102
19103         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
19104
19105 2012-07-31  Roland McGrath  <roland@hack.frob.com>
19106
19107         [BZ #10191]
19108         * include/sys/socket.h (__libc_accept, __libc_accept4):
19109         Add attribute_hidden.
19110         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
19111
19112         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
19113         use of PTR_MANGLE.
19114         * inet/getnetgrent_r.c (setup): Likewise.
19115
19116         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
19117
19118 2012-07-31  David S. Miller  <davem@davemloft.net>
19119
19120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19121
19122 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
19123
19124         [BZ #13629]
19125         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
19126         value between 1.0 and 2.0 and smaller part has absolute value less
19127         than 1.0.
19128         * math/s_clog10.c (__clog10): Likewise.
19129         * math/s_clog10f.c (__clog10f): Likewise.
19130         * math/s_clog10l.c (__clog10l): Likewise.
19131         * math/s_clogf.c (__clogf): Likewise.
19132         * math/s_clogl.c (__clogl): Likewise.
19133         * math/libm-test.inc (clog_test): Add more tests.
19134         (clog10_test): Likewise.
19135         * sysdeps/i386/fpu/libm-test-ulps: Update.
19136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19137
19138 2012-07-31  Florian Weimer  <fweimer@redhat.com>
19139
19140         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
19141         Exit with zero in case no suitable GID is found, and write a
19142         message to standard error.
19143
19144 2012-07-30  Roland McGrath  <roland@hack.frob.com>
19145
19146         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
19147         rather than to 1.
19148         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
19149         (MAXPATHLEN): Removed.
19150         (NOGROUP, NODEV): New macros.
19151         (setbit, clrbit, isset, isclr): New macros.
19152         (howmany, roundup, powerof2): New macros.
19153         (DEV_BSIZE): New macro.
19154
19155         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
19156         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
19157
19158         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
19159         definition on [!__NO_LONG_DOUBLE_MATH].
19160
19161         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
19162         PTR_MANGLE and PTR_DEMANGLE.
19163
19164         * socket/accept4.c (accept4): Rename to __libc_accept4.
19165         Define accept4 as a weak alias.
19166
19167         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
19168         on [_DIRENT_HAVE_D_TYPE].
19169         * io/ftw.c (ftw_dir): Likewise.
19170
19171         * io/xmknod.c (__xmknod): Don't check PATH for being null.
19172
19173         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
19174
19175         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
19176         Use the BSD numbers rather than the arbitrary ones we had.
19177         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
19178         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
19179         (SIGXCPU, SIGXFSZ): New macros.
19180         (_NSIG): Now 32.
19181
19182         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
19183         initializer on [_LIBC_REENTRANT].
19184
19185         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
19186         definitions inside [_POSIX_MAPPED_FILES].
19187
19188         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
19189
19190         * dirent/opendir.c: Include <fcntl.h>.
19191
19192         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
19193         (__libc_getspecific): Likewise.
19194         (__libc_key_create): Likewise.
19195
19196         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
19197         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
19198         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
19199         (tmpfile64): Define as alias.
19200         * sysdeps/wordsize-64/tmpfile.c: File removed.
19201         * sysdeps/wordsize-64/tmpfile64.c: File removed.
19202         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
19203         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
19204
19205         * stdio-common/vfscanf.c: Include <stdbool.h>.
19206         * nss/makedb.c: Likewise.
19207         * stdio-common/_i18n_number.h: Likewise.
19208         * argp/argp-help.c: Likewise.
19209         * posix/wordexp.c: Likewise.
19210         * sysdeps/posix/spawni.c: Likewise.
19211         * nss/nss_files/files-initgroups.c: Likewise.
19212         * stdio-common/reg-modifier.c: Include <stdlib.h>.
19213         * nss/nss_files/files-initgroups.c: Likewise.
19214         * nss/nss_db/db-netgrp.c: Likewise.
19215         * nss/nss_db/db-initgroups.c: Likewise.
19216         * io/fchmodat.c: Include <sys/stat.h>.
19217
19218         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
19219         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
19220
19221         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
19222         [HAVE_MMAP].
19223
19224         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
19225         Add multiple inclusion protection.
19226
19227 2012-07-27  David S. Miller  <davem@davemloft.net>
19228
19229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19230
19231 2012-07-27  Gary Benson  <gbenson@redhat.com>
19232
19233         [BZ #14298]
19234         * elf/rtld.c: Include <stap-probe.h>.
19235         (dl_main): Added static probes "init_start" and "init_complete".
19236         * elf/dl-load.c: Include <stap-probe.h>.
19237         (lose): Take new parameter "nsid".
19238         Added static probe "map_failed".
19239         (_dl_map_object_from_fd): Pass namespace id to lose.
19240         Added static probe "map_start".
19241         (open_verify): Pass namespace id to lose.
19242         * elf/dl-open.c: Include <stap-probe.h>.
19243         (dl_open_worker) Added static probes "map_complete", "reloc_start"
19244         and "reloc_complete".
19245         * elf/dl-close.c: Include <stap-probe.h>.
19246         (_dl_close_worker): Added static probes "unmap_start" and
19247         "unmap_complete".
19248         * elf/rtld-debugger-interface.txt: New file documenting the above.
19249
19250 2012-07-26  Roland McGrath  <roland@hack.frob.com>
19251
19252         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
19253         rather than a string variable.
19254         * sunrpc/rpc_main.c (h_output): Likewise.
19255         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
19256
19257 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
19258
19259         * inet/check_native.c: New file.
19260
19261 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
19262
19263         [BZ #13629]
19264         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
19265         if larger part has absolute value 1.0.
19266         * math/s_clog10.c (__clog10): Likewise.
19267         * math/s_clog10f.c (__clog10f): Likewise.
19268         * math/s_clog10l.c (__clog10l): Likewise.
19269         * math/s_clogf.c (__clogf): Likewise.
19270         * math/s_clogl.c (__clogl): Likewise.
19271         * math/libm-test.inc (clog_test): Add more tests.
19272         (clog10_test): Likewise.
19273         * sysdeps/i386/fpu/libm-test-ulps: Update.
19274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19275
19276         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
19277         (pltexit): Likewise.
19278         (La_regs): Likewise.
19279         (La_retval): Likewise.
19280         (int_retval): Likewise.
19281         Update #error for removed macros to refer only to definitions in
19282         tst-audit.h.
19283         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
19284         macro.
19285         (pltexit): Likewise.
19286         (La_regs): Likewise.
19287         (La_retval): Likewise.
19288         (int_retval): Likewise.
19289         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
19290         macro.
19291         (pltexit): Likewise.
19292         (La_regs): Likewise.
19293         (La_retval): Likewise.
19294         (int_retval): Likewise.
19295         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
19296         macro.
19297         (pltexit): Likewise.
19298         (La_regs): Likewise.
19299         (La_retval): Likewise.
19300         (int_retval): Likewise.
19301         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
19302         macro.
19303         (pltexit): Likewise.
19304         (La_regs): Likewise.
19305         (La_retval): Likewise.
19306         (int_retval): Likewise.
19307         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
19308         macro.
19309         (pltexit): Likewise.
19310         (La_regs): Likewise.
19311         (La_retval): Likewise.
19312         (int_retval): Likewise.
19313         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
19314         macro.
19315         (pltexit): Likewise.
19316         (La_regs): Likewise.
19317         (La_retval): Likewise.
19318         (int_retval): Likewise.
19319         * sysdeps/generic/tst-audit.h: Update comment to refer only to
19320         macro definitions in tst-audit.h.
19321         * sysdeps/i386/tst-audit.h: New file.
19322         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
19323         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
19324         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
19325         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
19326         * sysdeps/sh/tst-audit.h: Likewise.
19327         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
19328         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
19329         * sysdeps/x86_64/tst-audit.h: Likewise.
19330
19331 2012-07-26  Andreas Jaeger  <aj@suse.de>
19332
19333         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
19334         ptrace.
19335
19336         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
19337         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
19338         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
19339         PTRACE_O_MASK.
19340         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
19341         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
19342         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
19343
19344         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
19345         value.
19346
19347         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
19348         _sigsys.
19349         (si_call_addr, si_syscall, si_arch): Define new macro.
19350         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
19351         _sigsys.
19352         (si_call_addr, si_syscall, si_arch): Define new marcro.
19353         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
19354         _sigsys.
19355         (si_call_addr, si_syscall, si_arch): Define new macro.
19356         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
19357         _sigsys.
19358         (si_call_addr, si_syscall, si_arch): Define new macro.
19359
19360 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
19361
19362         [BZ #13717]
19363         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19364         Change to 2.4.21 where previously 2.4.1.
19365         * sysdeps/unix/sysv/linux/configure: Regenerated.
19366         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
19367         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
19368         Linux kernel version.
19369         (__ASSUME_STD_AUXV): Remove.
19370         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
19371         kernel version.
19372         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
19373         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
19374         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
19375         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
19376         (__ASSUME_NETLINK_SUPPORT): Likewise.
19377         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
19378         (__no_netlink_support): Remove conditional definition.
19379         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
19380         Remove.
19381         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
19382         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
19383         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
19384         (if_nameindex_ioctl): Remove.
19385         (if_nameindex_netlink): Do not handle __no_netlink_support.
19386         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
19387         code.
19388         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
19389         Remove conditional code.
19390         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
19391         code.
19392         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
19393         unconditional.
19394         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
19395         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
19396         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
19397         Remove.
19398         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
19399         [!__ASSUME_STD_AUXV]: Remove conditional code.
19400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
19401         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
19402         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
19403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
19404         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
19405         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
19406         code.
19407         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
19408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
19409         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
19410         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
19411         conditional code.
19412         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
19413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
19414         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
19415         code.
19416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
19417         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
19418         conditional code.
19419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
19420         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
19421         code unconditional.
19422         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19423         conditional code.
19424         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
19425         unconditional.
19426         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19427         conditional code.
19428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19429         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
19430         unconditional.
19431         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19432         conditional code.
19433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
19434         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
19435         code unconditional.
19436         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19437         conditional code.
19438         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
19439         unconditional.
19440         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19441         conditional code.
19442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
19443         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
19444         code unconditional.
19445         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19446         conditional code.
19447         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
19448         unconditional.
19449         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
19450         conditional code.
19451
19452 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
19453
19454         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
19455         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
19456         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
19457         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
19458         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
19459         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
19460         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
19461         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
19462         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
19463         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
19464         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
19465         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
19466         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
19467         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
19468         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
19469         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
19470         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
19471         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
19472         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
19473         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
19474         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
19475         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
19476         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
19477
19478 2012-07-25  Florian Weimer  <fweimer@redhat.com>
19479
19480         * Versions.def: Add GLIBC_2.17.
19481         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
19482         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
19483         Introduce __libc_secure_getenv.
19484         * stdlib/Versions (2.17): Add secure_getenv
19485         (GLIBC_PRIVATE): Add __libc_secure_getenv.
19486         * stdlib/secure-getenv.c: Rename __secure_getenv to
19487         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
19488         symbol __secure_getenv for GLIBC_2.0.
19489         * stdlib/tst-secure-getenv.c: New.
19490         * stdlib/Makefile (tests): Add testcase.
19491         * manual/startup.texi (Environment Access): Document
19492         secure_getenv.
19493         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
19494         __libc_secure_getenv.
19495         * inet/ruserpass.c (ruserpass): Likewise.
19496         * malloc/mtrace.c (mtrace): Likewise.
19497         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
19498         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
19499         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
19500         * sysdeps/posix/tempname.c: Likewise.  Evaluate
19501         HAVE_SECURE_GETENV.
19502         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
19503         __secure_getenv to __libc_secure_getenv.
19504         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
19505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19506         Likewise.
19507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19508         Likewise.
19509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
19510         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
19511         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
19512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
19513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
19514         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
19515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
19516
19517 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
19518
19519         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
19520         (struct La_i86_retval): Likewise.
19521         (struct La_x86_64_regs): Likewise.
19522         (struct La_x86_64_retval): Likewise.
19523         (struct La_x32_regs): Likewise.
19524         (struct La_x32_retval): Likewise.
19525         (struct La_ppc32_regs): Likewise.
19526         (struct La_ppc32_retval): Likewise.
19527         (struct La_ppc64_regs): Likewise.
19528         (struct La_ppc64_retval): Likewise.
19529         (struct La_sh_regs): Likewise.
19530         (struct La_sh_retval): Likewise.
19531         (struct La_s390_32_regs): Likewise.
19532         (struct La_s390_32_retval): Likewise.
19533         (struct La_s390_64_regs): Likewise.
19534         (struct La_s390_64_retval): Likewise.
19535         (struct La_sparc32_regs): Likewise.
19536         (struct La_sparc32_retval): Likewise.
19537         (struct La_sparc64_regs): Likewise.
19538         (struct La_sparc64_retval): Likewise.
19539         (struct audit_ifaces): Remove architecture-specific pltenter and
19540         pltexit members.
19541         * sysdeps/i386/ldsodefs.h: New file.
19542         * sysdeps/powerpc/ldsodefs.h: Likewise.
19543         * sysdeps/s390/ldsodefs.h: Likewise.
19544         * sysdeps/sh/ldsodefs.h: Likewise.
19545         * sysdeps/sparc/ldsodefs.h: Likewise.
19546         * sysdeps/x86_64/ldsodefs.h: Likewise.
19547
19548 2012-07-25  Marek Polacek  <polacek@redhat.com>
19549
19550         [BZ #6808]
19551         * math/libm-test.inc (yn_test): Add another test.
19552         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
19553         to ERANGE when the result is +-Inf.
19554         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
19555         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
19556         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
19557         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
19558
19559 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
19560
19561         * conform/data/time.h-data (NULL): Use macro-constant.  Require
19562         equal to 0.
19563         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
19564         clock_t.
19565         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
19566
19567 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
19568
19569         * configure.in <sysdeps resolving>: Correct printing
19570         Implies_before.
19571         * configure: Regenerate.
19572
19573 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
19574
19575         * math/w_ilogb.c: Include <limits.h>.
19576         * math/w_ilogbl.c: Likewise.
19577
19578 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
19579
19580         * manual/lang.texi (__va_copy): Document primarily as ISO C99
19581         va_copy.  Document allowing for unavailable va_copy only as
19582         pre-C99 compatibility.
19583         * manual/string.texi (Copying and Concatenation): Use va_copy
19584         instead of __va_copy in concat example.
19585
19586 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
19587
19588         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
19589         (__sendto): Use create_address_port.  Initialize APORT and deallocate
19590         it if not null.
19591
19592         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
19593         with O_NOLINK passed to __file_name_lookup.
19594
19595         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
19596         with O_NOLINK passed to __file_name_lookup.
19597
19598         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
19599         negative N or less than NGIDS.
19600
19601         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
19602         type to string_t.  Set ERANGE as errno and return it if NAME is not big
19603         enough.  Use memcpy instead of strncpy.
19604
19605 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
19606
19607         * elf/Makefile (check-data): Remove.
19608         (localplt.data): New vpath directive.
19609         ($(objpfx)check-localplt.out): Use localplt.data from vpath
19610         instead of $(check-data).
19611         * scripts/data/localplt-generic.data: Move to ...
19612         * sysdeps/generic/localplt.data: ... here.
19613         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
19614         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
19615         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
19616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
19617         ... here.
19618         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
19619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
19620         ... here.
19621         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
19622         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
19623         ... here.
19624         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
19625         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
19626         ... here.
19627         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
19628         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
19629         ... here.
19630         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
19631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
19632         ... here.
19633
19634 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19635
19636         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
19637         PPC32 and PPC64 files.
19638         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
19639         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
19640
19641 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19642
19643         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
19644         __makecontext_ret to ...
19645         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
19646         ... here and call exit if uc_link is NULL.  New file.
19647         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
19648         __makecontext_ret.S.
19649         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
19650         __makecontext_ret to ...
19651         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
19652         ... here and call exit if uc_link is NULL.  New file.
19653         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
19654         __makecontext_ret.S.
19655
19656 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19657
19658         * elf/elf.h (R_390_IRELATIVE): New definition.
19659         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
19660         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
19661         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
19662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
19663         (elf_machine_lazy_rel): Likewise.
19664         * sysdeps/s390/dl-irel.h: New file.
19665         * sysdeps/s390/s390-64/memcpy.S: New asm code.
19666         * sysdeps/s390/s390-64/memset.S: New asm code.
19667         * sysdeps/s390/s390-64/memcmp.S: New asm code.
19668         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
19669         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
19670         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
19671         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
19672         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
19673         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
19674         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
19675         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
19676         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
19677         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
19678         * sysdeps/s390/s390-32/memcpy.S: New asm code.
19679         * sysdeps/s390/s390-32/memset.S: New asm code.
19680         * sysdeps/s390/s390-32/memcmp.S: New asm code.
19681
19682 2012-07-17  Marek Polacek  <polacek@redhat.com>
19683
19684         [BZ #14349]
19685         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
19686         * sysdeps/s390/s390-64/configure.in: Likewise.
19687         * sysdeps/sparc/configure.in: Likewise.
19688         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
19689         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
19690         * sysdeps/i386/configure.in: Likewise.
19691         * sysdeps/x86_64/configure.in: Likewise.
19692         * sysdeps/sh/configure.in: Likewise.
19693         * sysdeps/s390/s390-32/configure: Regenerated.
19694         * sysdeps/s390/s390-64/configure: Likewise.
19695         * sysdeps/x86_64/configure: Likewise.
19696         * sysdeps/sh/configure: Likewise.
19697         * sysdeps/powerpc/powerpc64/configure: Likewise.
19698         * sysdeps/powerpc/powerpc32/configure: Likewise.
19699         * sysdeps/sparc/configure: Likwise.
19700         * sysdeps/i386/configure: Likewise.
19701
19702         * elf/dl-open.c: Comment fixes.
19703
19704 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
19705
19706         * Makefile [CXX] (check-data): Remove.
19707         [CXX] (c++-types.data): New vpath directive.
19708         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
19709         vpath.  Do not allow for C++ type data being missing.
19710         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
19711         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
19712         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
19713         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
19714         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
19715         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
19716         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
19717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
19718         ... here.
19719         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
19720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
19721         ... here.
19722         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
19723         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
19724         ... here.
19725         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
19726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
19727         ... here.
19728         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
19729         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
19730         ... here.
19731         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
19732         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
19733         ... here.
19734         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
19735         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
19736         ... here.
19737         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
19738         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
19739
19740         * elf/tls-macros.h (TLS_LE): Move architecture-specific
19741         definitions to architecture-specific files.
19742         (TLS_IE): Likewise.
19743         (TLS_LD): Likewise.
19744         (TLS_GD): Likewise.
19745         * sysdeps/i386/tls-macros.h: New file.
19746         * sysdeps/powerpc/tls-macros.h: Likewise.
19747         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
19748         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
19749         * sysdeps/sh/tls-macros.h: Likewise.
19750         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
19751         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
19752         * sysdeps/x86_64/tls-macros.h: Likewise.
19753
19754 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
19755
19756         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
19757         zero value for regular exit case.
19758
19759         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
19760         (__start_context): Preserve zero value for regular exit case.
19761
19762 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
19763             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19764
19765         * manual/setjmp.texi (setcontext): Clarify normal process
19766         termination when uc_link is the null pointer.
19767         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
19768         exit call.
19769
19770 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
19771
19772         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
19773         preprocessor.  Test for each exception mask separately.
19774
19775 2012-07-16  Andreas Jaeger  <aj@suse.de>
19776
19777         * po/ru.po: Update from translation team.
19778
19779 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
19780
19781         * conform/data/string.h-data (NULL): Use macro-constant.  Require
19782         equal to 0.
19783         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
19784         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
19785         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
19786         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
19787         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19788
19789 2012-07-13  Andreas Jaeger  <aj@suse.de>
19790
19791         * po/fr.po: Update from translation team.
19792
19793 2012-07-12  Marek Polacek  <polacek@redhat.com>
19794
19795         [BZ #14173]
19796         * math/libm-test.inc (yn_test): Add test for BZ #14173.
19797         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
19798         loop condition.
19799
19800 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
19801
19802         [BZ #13717]
19803         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19804         Change to 2.4.1 where previously 2.4.0.
19805         * sysdeps/unix/sysv/linux/configure: Regenerated.
19806         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
19807         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
19808         version.
19809         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
19810         (__ASSUME_AT_CLKTCK): Remove.
19811         (__ASSUME_AT_PAGESIZE): Likewise.
19812         (__ASSUME_AT_XID): Likewise.
19813         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
19814         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
19815         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
19816         unconditionally.
19817         (HAVE_AUX_PAGESIZE): Likewise.
19818         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
19819         [__ASSUME_AT_CLKTCK]: Make code unconditional.
19820         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
19821
19822 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
19823
19824         [BZ #14307]
19825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
19826         the temporary buffer used to invoke __gethostbyname2_r,
19827         __gethostbyaddr_r and gethostbyname4_r to make room for struct
19828         host_data / struct gaih_addrtuple.
19829         * resolv/nss_dns/dns-host.c (global scope): Move definition of
19830         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
19831         header file nss/nsswitch.h.
19832         * nss/nsswitch.h (global scope): Add definition of implementation
19833         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
19834         resolv/nss_dns/dns-host.c).
19835
19836 2012-07-11  Andreas Jaeger  <aj@suse.de>
19837
19838         * po/fr.po: Update from translation team.
19839
19840         * po/sv.po: Update from translation team
19841         * po/fr.po: Another update from translation team.
19842
19843 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19844
19845         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
19846         for subnormals or multiply small sinh result by itself.
19847         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19848         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19849
19850 2012-07-11  David S. Miller  <davem@davemloft.net>
19851
19852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19853
19854 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
19855
19856         [BZ #14347]
19857         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
19858         (INTERNAL_MARK): Shift it here.
19859
19860 2012-07-10  Marek Polacek  <polacek@redhat.com>
19861
19862         [BZ #14151]
19863         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
19864         libc_cv_asm_global_directive with .globl.
19865         * configure: Regenerated.
19866         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
19867         with .globl.
19868         * sysdeps/i386/configure: Regenerated.
19869         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
19870         with .globl.
19871         * sysdeps/x86_64/configure: Regenerated.
19872         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
19873         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
19874         * elf/tst-unique2mod2.c: Likewise.
19875         * elf/tst-unique2mod1.c: Likewise.
19876         * elf/tst-unique1mod2.c: Likewise.
19877         * elf/tst-unique1mod1.c: Likewise.
19878         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19879         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
19880         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19881         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
19882         * sysdeps/mach/sysdep.h: Likewise.
19883         * sysdeps/i386/sysdep.h: Likewise.
19884         * sysdeps/i386/i386-mcount.S: Likewise.
19885         * sysdeps/x86_64/_mcount.S: Likewise.
19886         * sysdeps/x86_64/sysdep.h: Likewise.
19887         * sysdeps/sh/_mcount.S: Likewise.
19888         * sysdeps/sh/sysdep.h: Likewise.
19889         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
19890         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
19891         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
19892         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
19893         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
19894         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
19895         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
19896         * locale/localeinfo.h: Likewise.
19897         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
19898         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
19899
19900 2012-07-09  Roland McGrath  <roland@hack.frob.com>
19901
19902         [BZ #14336]
19903         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
19904         system".
19905         * manual/message.texi (The Uniforum approach): Likewise.
19906         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
19907         (glibc iconv Implementation): Likewise.
19908
19909 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
19910
19911         [BZ #14337]
19912         * math/s_clog.c (__clog): Avoid scaling a value down where that
19913         could result in underflow.
19914         * math/s_clog10.c (__clog10): Likewise.
19915         * math/s_clog10f.c (__clog10f): Likewise.
19916         * math/s_clog10l.c (__clog10l): Likewise.
19917         * math/s_clogf.c (__clogf): Likewise.
19918         * math/s_clogl.c (__clogl): Likewise.
19919         * math/libm-test.inc (clog_test): Add more tests.
19920         (clog10_test): Likewise.
19921         * sysdeps/i386/fpu/libm-test-ulps: Update.
19922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19923
19924 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
19925
19926         [BZ #14283]
19927         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
19928         by 7 not 8 to examine high bit of fractional part.
19929
19930         [BZ #14042]
19931         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
19932         for call to __mcount_internal.
19933         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
19934         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
19935         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
19936
19937 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
19938
19939         [BZ #14154]
19940         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
19941         approximation for values within 0x1p-13f of an odd multiple of
19942         pi/4.
19943         * math/libm-test.inc (tan_test): Do not allow spurious underflow
19944         exception.  Add more tests.
19945         * sysdeps/i386/fpu/libm-test-ulps: Update.
19946
19947         [BZ #6778]
19948         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
19949         inputs and return -1 for them.  Do not check for +Inf in case not
19950         reachable for +Inf.
19951         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
19952         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
19953         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
19954         and return -1 for them.  Do not check for +Inf in case not
19955         reachable for +Inf.
19956         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
19957         define.
19958         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
19959         and return -1 for them.  Do not check for +Inf in case not
19960         reachable for +Inf.
19961         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
19962         spurious underflow.
19963         * sysdeps/i386/fpu/libm-test-ulps: Update.
19964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19965
19966 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
19967
19968         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
19969
19970 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
19971
19972         [BZ #14157]
19973         [BZ #14331]
19974         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
19975         could result in spurious underflow.  Scale down values above
19976         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
19977         * math/s_csqrtf.c (__csqrtf): Likewise.
19978         * math/s_csqrtl.c (__csqrtl): Likewise.
19979         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
19980         spurious underflow.
19981         * sysdeps/i386/fpu/libm-test-ulps: Update.
19982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19983
19984 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
19985
19986         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
19987         xopen-msg.sed.
19988         * catgets/xopen-msg.awk: New file.
19989         * catgets/xopen-msg.sed: Removed.
19990
19991         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
19992         po2text.sed.
19993         * intl/po2test.awk: New file.
19994         * intl/po2test.sed: Removed.
19995
19996 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
19997
19998         [BZ #14328]
19999         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
20000         or multiply small sinh result by itself.
20001         * math/s_ctanf.c (__ctanf): Likewise.
20002         * math/s_ctanh.c (__ctanh): Likewise.
20003         * math/s_ctanhf.c (__ctanhf): Likewise.
20004         * math/s_ctanhl.c (__ctanhl): Likewise.
20005         * math/s_ctanl.c (__ctanl): Likewise.
20006         * math/libm-test.inc (ctan_test_tonearest): New function.
20007         (ctan_test_towardzero): Likewise.
20008         (ctan_test_downward): Likewise.
20009         (ctan_test_upward): Likewise.
20010         (ctanh_test_tonearest): Likewise.
20011         (ctanh_test_towardzero): Likewise.
20012         (ctanh_test_downward): Likewise.
20013         (ctanh_test_upward): Likewise.
20014         (main): Call these new functions.
20015         * sysdeps/i386/fpu/libm-test-ulps: Update.
20016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20017
20018 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
20019
20020         * .gitignore: Delete /ports entry.
20021
20022 2012-07-03  Andreas Jaeger  <aj@suse.de>
20023
20024         * po/bg.po: Update from translation team.
20025         * po/cs.po: Likewise.
20026         * po/de.po: Likewise.
20027         * po/hr.po: Likewise.
20028         * po/nl.pl: Likewise.
20029         * po/pl.po: Likewise.
20030         * po/vi.po: Likewise.
20031
20032 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
20033
20034         * Makeconfig [!+link] (+link-before-libc): New variable.
20035         [!+link] (+link-after-libc): Likewise.
20036         [!+link] (+link-tests): Likewise.
20037         [!+link] (+link): Define in terms of $(+link-before-libc) and
20038         $(+link-after-libc).
20039         [!+link-static] (+link-static-before-libc): New variable.
20040         [!+link-static] (+link-static-after-libc): Likewise.
20041         [!+link-static] (+link-static-tests): Likewise.
20042         [!+link-static] (+link-static): Define in terms of
20043         $(+link-static-before-libc) and $(+link-static-after-libc).
20044         [build-shared] (link-libc-before-gnulib): New variable.
20045         [build-shared] (link-libc-tests): Likewise.
20046         [build-shared] (link-libc): Define in terms of
20047         $(link-libc-before-gnulib).
20048         [!build-shared] (link-libc-tests): New variable.
20049         (link-libc-static-tests): New variable.
20050         [!gnulib] (gnulib-arch): New variable.
20051         [!gnulib] (gnulib-tests): Likewise.
20052         [!gnulib] (static-gnulib-arch): Likewise.
20053         [!gnulib] (static-gnulib-tests): Likewise.
20054         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
20055         Define with "=" instead of ":=".
20056         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
20057         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
20058         * Rules (binaries-all-notests): New variable.
20059         (binaries-all-tests): Likewise.
20060         (binaries-static-notests): Likewise.
20061         (binaries-static-tests): Likewise.
20062         (binaries-all): Define using $(binaries-all-notests) and
20063         $(binaries-all-tests).
20064         (binaries-static): Define using $(binaries-static-notests) and
20065         $(binaries-static-tests).
20066         (binaries-shared-tests): New variable.
20067         (binaries-shared-notests): Likewise.
20068         (binaries-shared): Remove variable.
20069         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
20070         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
20071         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
20072         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
20073         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
20074         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
20075         * elf/Makefile (sln-modules): New variable.
20076         (extra-objs): Add $(sln-modules:=.o).
20077         (ldconfig-modules): Add static-stubs.
20078         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
20079         * elf/static-stubs.c: New file.
20080
20081         [BZ #14283]
20082         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
20083         by 7 not 8 to examine high bit of fractional part.  Use volatile
20084         variables when splitting into final array of floats if
20085         __FLT_EVAL_METHOD__ != 0.
20086         * math/libm-test.inc (cos_test): Add another test.
20087         (sin_test): Likewise.
20088         * sysdeps/i386/fpu/libm-test-ulps: Update.
20089
20090         [BZ #14273]
20091         * math/libm-test.inc (cosh_test): Add more tests.
20092
20093         * version.h (RELEASE): Set to "development".
20094         (VERSION): Set to "2.16.90".
20095
20096 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
20097
20098         * NEWS: Update copyright. Remove last-updated date.
20099         Mention math library bug fixes and timezone data changes.
20100         * README: Mention GNU/Hurd, x32, and HPPA support status.
20101
20102 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
20103
20104         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
20105
20106 2012-06-27  Andreas Jaeger  <aj@suse.de>
20107
20108         * manual/contrib.texi (Contributors): Add Samuel Thibault.
20109
20110 2012-06-25  Andreas Jaeger  <aj@suse.de>
20111
20112         * sysdeps/s390/fpu/libm-test-ulps: Update.
20113
20114 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
20115             Thomas Schwinge  <thomas@codesourcery.com>
20116
20117         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
20118         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
20119         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
20120         fanotify_mark.
20121
20122 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
20123
20124         * sysdeps/mach/start.c: Remove file.
20125         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
20126         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
20127         * sysdeps/sh/init-first.c: Likewise.
20128
20129         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
20130         registers for frame unwinding purposes, add CFI directives.
20131         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20132         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
20133         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
20134         Likewise.
20135
20136         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
20137         __fortify_fail returning.
20138         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20139
20140         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
20141         sysdeps/sh/____longjmp_chk.S.
20142         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
20143         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
20144         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
20145         (gen-as-const-headers): Append sigaltstack-offsets.sym.
20146
20147         * sysdeps/sh/abort-instr.h: New file.
20148         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
20149         process in case exit returns.
20150
20151         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
20152         initialize the GOT register before use.
20153
20154         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
20155         calculation of ARGC > 4.
20156
20157         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
20158         meaningful names to some local labels.
20159
20160 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20161             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20162
20163         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
20164         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
20165         (__arch_compare_and_exchange_val_16_acq): Likewise.
20166         (__arch_compare_and_exchange_val_32_acq): Likewise.
20167         (atomic_exchange_and_add): Fix gUSA sequence.
20168         (atomic_add): Likewise.
20169         (atomic_add_negative): Likewise.
20170         (atomic_add_zero): Likewise.
20171         (atomic_bit_test_set): Likewise.
20172
20173 2012-06-22  Andreas Schwab  <schwab@redhat.com>
20174
20175         [BZ #13579]
20176         * include/link.h (struct link_map): Add l_free_initfini.
20177         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
20178         l_initfini.
20179         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
20180         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
20181         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
20182         set.
20183
20184 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
20185
20186         * configure.in: Use AC_LANG_SOURCE.
20187         * configure: Regenerate.
20188
20189 2012-06-22  Roland McGrath  <roland@hack.frob.com>
20190
20191         * configure.in (libc_cv_localstatedir): New substituted variable.
20192         * configure: Regenerated.
20193         * config.make.in (localstatedir): New variable, substituted from
20194         libc_cv_localstatedir.
20195         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
20196         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
20197         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
20198         * sysdeps/gnu/configure: Regenerated.
20199
20200 2012-06-21  Jeff Law  <law@redhat.com>
20201
20202         [BZ #14277]
20203         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
20204         free.  Simplify list management for _LIBC case.
20205
20206 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
20207
20208         [BZ #14273]
20209         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
20210         Clear sign bit of 64-bit integer value before comparing against
20211         overflow value.
20212
20213         * sysdeps/mach/configure: Regenerated.
20214
20215 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
20216
20217         [BZ #14278]
20218         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
20219
20220 2012-06-21  Jeff Law  <law@redhat.com>
20221
20222         [BZ #13882]
20223         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
20224         uint16_t for elements in the "seen" array to avoid char overflows.
20225         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20226         * elf/dl-open.c (dl_open_worker): Likewise.
20227
20228 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
20229
20230         * scripts/list-sources.sh: Scan PORTS for translations.
20231         * po/libc.pot: Regenerated.
20232
20233 2012-06-21  Andreas Jaeger  <aj@suse.de>
20234
20235         [BZ #12194]
20236         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
20237         warning.
20238         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
20239         * bits/byteswap-16.h (__bswap_16): Likewise.
20240         * bits/byteswap.h (__bswap_constant_16): Likewise.
20241
20242 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20243
20244         [BZ #14117]
20245         * sysdeps/i386/fpu_control.h: Removed.
20246         * sysdeps/x86_64/fpu_control.h: Moved to ...
20247         * sysdeps/x86/fpu_control.h: Here.
20248
20249         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
20250         (_FPU_SETCW): Likewise.
20251
20252 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
20253
20254         [BZ #14117]
20255         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
20256         * sysdeps/x86/fpu/bits/mathinline.h: This.
20257         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
20258
20259         [BZ #14050]
20260         [BZ #14117]
20261         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
20262         functions if __x86_64__ is defined.
20263
20264 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
20265
20266         * string/endian.h: Add !__ASSEMBLER__ condition for including
20267         conversion interfaces.
20268
20269 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
20270
20271         [BZ #14241]
20272         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
20273         of ABS(x) in calculating zero to negative powers other than odd
20274         integers.
20275         * math/libm-test.inc (pow_test): Add more tests.
20276
20277 2012-06-15  Andreas Jaeger  <aj@suse.de>
20278
20279         * manual/contrib.texi (Contributors): Update entry of Liubov
20280         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
20281         Machado Filho.
20282
20283 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
20284
20285         * string/string.h: Add __wur to GNU version of strerror_r.
20286
20287 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
20288
20289         [BZ #14229]
20290         * string/Makefile (tests): Add tst-strtok_r.
20291         * string/tst-strtok_r.c: New file.
20292         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
20293         RAX_LP/RDX_LP on SAVE_PTR.
20294
20295 2012-06-14  Roland McGrath  <roland@hack.frob.com>
20296
20297         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
20298
20299 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
20300
20301         * libm_test.inc (csqrt_test): Allow more spurious underflow
20302         exceptions.
20303         (j0_test): Likewise.
20304         (j1_test): Likewise.
20305         (y0_test): Likewise.
20306         (y1_test): Likewise.
20307
20308 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
20309
20310         * po/Makefile (libc.pot): Use UTF-8 charset.
20311
20312 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
20313
20314         [BZ #14210]
20315         Suppress sign-conversion warning from FD_SET.
20316         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
20317         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
20318         not unsigned long int.
20319         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
20320
20321 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
20322
20323         [BZ #14050]
20324         [BZ #14117]
20325         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
20326         __extern_always_inline instead of __extern_inline.
20327         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
20328         (__signbit): Likewise.
20329         (__signbitl): Support C++ namespace.
20330         (lrintf): New inline function.
20331         (lrint): Likewise.
20332         (llrintf): Likewise.
20333         (llrint): Likewise.
20334         (fmaxf): Likewise.
20335         (fmax): Likewise.
20336         (fminf): Likewise.
20337         (fmin): Likewise.
20338         (rint): Likewise.
20339         (rintf): Likewise.
20340         (ceil): Likewise.
20341         (ceilf): Likewise.
20342         (floor): Likewise.
20343         (floorf): Likewise.
20344         (nearbyint): Likewise.
20345         (nearbyintf): Likewise.
20346
20347 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
20348
20349         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
20350         non-default versions.
20351
20352 2012-06-11  Roland McGrath  <roland@hack.frob.com>
20353
20354         [BZ #14218]
20355         * manual/argp.texi (Argp): Reword argp_parse description slightly.
20356
20357 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
20358
20359         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
20360         (FE_UPWARD, FE_DOWNWARD): Don't define.
20361         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
20362         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
20363
20364         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
20365         reading it.
20366         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
20367         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20368
20369 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20370
20371         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
20372         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
20373         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
20374         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
20375
20376 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
20377
20378         [BZ #14117]
20379         * sysdeps/i386/fpu/bits/fenv.h: Removed.
20380         * sysdeps/i386/fpu/Implies: New file.
20381         * sysdeps/x86_64/fpu/Implies: Likewise.
20382         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
20383         * sysdeps/x86/fpu/bits/fenv.h: This.
20384
20385         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
20386         __SSE_MATH__.
20387
20388 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
20389
20390         [BZ #14134]
20391         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
20392         character 0xffff that matches the last element of the
20393         conversion table.
20394
20395 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20396
20397         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
20398         fmodl commit.
20399
20400 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20401
20402         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
20403         values higher than 25.6283.
20404
20405 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20406
20407         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
20408         subnormal exponent extraction and add some __builtin_expect.
20409         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
20410         Fix for subnormal mantissa calculation.
20411
20412 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
20413
20414         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
20415         cpu2 is -1 and errno is not ENOSYS.
20416
20417 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
20418
20419         [BZ #14117]
20420         * sysdeps/i386/i486/bits/string.h: Renamed to ...
20421         * sysdeps/x86/bits/string.h: This.
20422         * sysdeps/x86_64/bits/string.h: Removed.
20423
20424         * sysdeps/i386/i486/bits/string.h: Define inline functions only
20425         if not compiling for x86-64, but compiling for >= i486.
20426
20427         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
20428         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
20429
20430         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
20431         New macro from Linux kernel 3.4.0.
20432         (FP_XSTATE_MAGIC2): Likewise.
20433         (FP_XSTATE_MAGIC2_SIZE): Likewise.
20434         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
20435         (struct _fpx_sw_bytes): New struct.
20436         (struct _xsave_hdr): Likewise.
20437         (struct _ymmh_state): Likewise.
20438         (struct _xstate): Likewise.
20439
20440         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
20441         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
20442         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
20443         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
20444         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
20445         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
20446
20447         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
20448         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
20449         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
20450         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
20451         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
20452         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
20453
20454 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20455
20456         [BZ #13743]
20457         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
20458         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
20459         (sysdep_headers): Include sys/platform/ppc.h.
20460         * sysdeps/powerpc/test-gettimebase.c: Test for
20461         __ppc_get_timebase() to catch future ISA opcode/insn changes.
20462         * manual/Makefile (appendices): Include platform.texi.
20463         * manual/contrib.texi (Contributors): Update @node pointers.
20464         * manual/maint.texi (Maintenance): Likewise.
20465         (Platform): New node.
20466         * manual/platform.texi: New file.  Document the new features.
20467
20468 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
20469             Jakub Jelinek  <jakub@redhat.com>
20470
20471         [BZ #14188]
20472         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
20473         where __builtin_expect is unavailable.
20474
20475 2012-06-03  David S. Miller  <davem@davemloft.net>
20476
20477         * stdlib/longlong.h: Updated from GCC.
20478
20479 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
20480
20481         [BZ #14042]
20482         * sysdeps/powerpc/powerpc32/mcount.c: New file.
20483         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
20484         __mcount_internal.
20485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
20486         (GLIBC_2.16): Likewise.
20487
20488 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
20489
20490         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
20491
20492 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
20493
20494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
20495         (default-abi): New variable.
20496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
20497         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
20498         variable.
20499         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
20500         Likewise.
20501         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
20502         Likewise.
20503         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
20504         Likewise.
20505
20506         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
20507         definition.  Document in comment.
20508
20509 2012-06-01  David S. Miller  <davem@davemloft.net>
20510
20511         * stdlib/longlong.h: Updated from GCC.
20512
20513 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
20514
20515         [BZ #14117]
20516         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
20517         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
20518         sys/debugreg.h sys/io.h here.
20519         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
20520         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
20521         sys/io.h.
20522         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
20523         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
20524         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
20525         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
20526         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
20527         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
20528
20529         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
20530         Define only if __x86_64__ is defined.
20531
20532 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
20533
20534         [BZ #14048]
20535         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
20536         Use int64_t for variable i.
20537         * math/libm-test.inc (fmod_test): Add more tests.
20538
20539         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
20540         z computation is not scheduled after fetestexcept.
20541         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
20542         Use math_force_eval instead of asm to ensure calculation scheduled
20543         before exception test.
20544         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
20545         Ensure a1 + u.d computation is not scheduled after fetestexcept.
20546
20547 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
20548
20549         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
20550         computation is not scheduled after fetestexcept.
20551
20552 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
20553
20554         [BZ #14117]
20555         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
20556         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
20557
20558 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20559
20560         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
20561         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
20562
20563 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
20564
20565         [BZ #14117]
20566         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
20567         <bits/wordsize.h>.
20568         (__WCHAR_MIN): Support __WORDSIZE == 64.
20569         (__WCHAR_MAX): Likewise.
20570
20571         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
20572         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
20573
20574         [BZ #14183]
20575         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
20576         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
20577
20578         [BZ #14117]
20579         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
20580         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
20581
20582         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
20583         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
20584
20585         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
20586         Defined to 1 if __x86_64__ isn't defined.
20587         (_STAT_VER_LINUX_OLD): New.
20588         (st_atime): Remove duplicate.
20589         (st_mtime): Likewise.
20590         (st_ctime): Likewise.
20591
20592 2012-05-31  David S. Miller  <davem@davemloft.net>
20593
20594         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
20595         entries.
20596
20597 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
20598
20599         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
20600         gen-libm-test.pl.
20601
20602         [BZ #14132]
20603         * elf/dl-reloc.c: Include <_itoa.h>.
20604         (_dl_reloc_bad_type): Remove use of INTUSE.
20605         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
20606         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
20607         * stdio-common/psiginfo.c (psiginfo): Likewise.
20608         * stdio-common/psignal.c (psignal): Likewise.
20609         * string/strsignal.c (strsignal): Likewise.
20610         * include/signal.h (_sys_siglist): Declare hidden proto.
20611         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
20612         INTVARDEF with libc_hidden_data_def.
20613         * stdio-common/itoa-udigits.c: Likewise.
20614         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
20615         (_itoa_lower_digits_internal): Remove declaration.
20616         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
20617         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
20618         (_sys_sigabbrev_internal): Remove aliases.
20619         (_sys_siglist): Define hidden alias.
20620
20621 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
20622
20623         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20624         bits/sysctl.h.
20625
20626 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
20627
20628         [BZ #14117]
20629         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
20630         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
20631
20632         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
20633         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
20634         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
20635         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
20636         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
20637         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
20638
20639         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
20640         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
20641         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
20642
20643         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
20644         with __addr.
20645         (insw): Likewise.
20646         (insl): Likewise.
20647         (outsb): Likewise.
20648         (outsw): Likewise.
20649         (outsl): Likewise.
20650
20651         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
20652         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
20653         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
20654
20655         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
20656         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
20657         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
20658         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
20659         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
20660         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
20661
20662         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
20663         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
20664
20665         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
20666         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
20667
20668         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
20669         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
20670         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
20671
20672         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
20673         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
20674         to ...
20675         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
20676
20677         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
20678         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
20679         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
20680
20681         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
20682         for x86-64.
20683         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
20684
20685 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
20686
20687         * math/math.h (M_El): Use two more decimal places.
20688         (M_LOG2El): Likewise.
20689         (M_LOG10El): Likewise.
20690         (M_LN2l): Likewise.
20691         (M_LN10l): Likewise.
20692         (M_PIl): Likewise.
20693         (M_PI_2l): Likewise.
20694         (M_PI_4l): Likewise.
20695         (M_1_PIl): Likewise.
20696         (M_2_PIl): Likewise.
20697         (M_2_SQRTPIl): Likewise.
20698         (M_SQRT2l): Likewise.
20699         (M_SQRT1_2l): Likewise.
20700
20701 2012-05-31  David S. Miller  <davem@davemloft.net>
20702
20703         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
20704         values between float registers.
20705         * sysdeps/sparc/sparc64/memset.S: Likewise.
20706         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
20707
20708 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
20709
20710         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
20711         -D_FORTIFY_SOURCE=1.
20712         (CPPFLAGS-tst-longjmp_chk.c): Define.
20713         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
20714         (CPPFLAGS-tst-longjmp_chk2.c): Define.
20715         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
20716         CFLAGS-tst-wchar-h.c.
20717
20718 2012-05-31  Marek Polacek  <polacek@redhat.com>
20719
20720         [BZ #14132]
20721         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
20722         __endmntent_internal): Remove declaration.
20723         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
20724         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
20725         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
20726
20727 2012-05-30  David S. Miller  <davem@davemloft.net>
20728
20729         * sysdeps/sparc/sparc32/soft-fp/q_util.c
20730         (___Q_simulate_exceptions): Use real FP ops rather than writing
20731         into the %fsr.
20732         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
20733         Likewise.
20734
20735 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
20736
20737         [BZ #14117]
20738         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
20739         * sysdeps/x86/bits/xtitypes.h: This.
20740
20741         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
20742         * sysdeps/x86/bits/wordsize.h: This.
20743
20744         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
20745         * sysdeps/x86/bits/huge_vall.h: This.
20746
20747         * sysdeps/i386/bits/select.h: Removed.
20748         * sysdeps/x86_64/bits/select.h: Renamed to ...
20749         * sysdeps/x86/bits/select.h: This.
20750
20751         * sysdeps/i386/bits/setjmp.h: Removed.
20752         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
20753         * sysdeps/x86/bits/setjmp.h: This.
20754
20755         * sysdeps/i386/bits/mathdef.h: Removed.
20756         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
20757         * sysdeps/x86/bits/mathdef.h: This.
20758
20759 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
20760
20761         [BZ #14132]
20762         * include/sys/socket.h (__connect_internal)
20763         (__libc_sa_len_internal): Remove declaration.
20764         (__connect, __libc_sa_len): Declare hidden_proto.
20765         (SA_LEN): Remove use of INTUSE.
20766         * socket/connect.c: Add libc_hidden_def.
20767         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
20768         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
20769         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
20770         alias.
20771         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
20772         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
20773         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
20774         of adding _internal alias.
20775
20776 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
20777
20778         [BZ #14117]
20779         * sysdeps/i386/bits/link.h: Removed.
20780         * sysdeps/i386/bits/linkmap.h: Likewise.
20781         * sysdeps/x86_64/bits/link.h: Renamed to ...
20782         * sysdeps/x86/bits/link.h: This.
20783         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
20784         * sysdeps/x86/bits/linkmap.h: This.
20785
20786         * sysdeps/i386/bits/endian.h: Removed.
20787         * sysdeps/x86_64/bits/endian.h: Renamed to ...
20788         * sysdeps/x86/bits/endian.h: This.
20789
20790         * sysdeps/i386/bits/byteswap.h: Removed.
20791         * sysdeps/i386/bits/byteswap-16.h: Likewise.
20792         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
20793         * sysdeps/x86/bits/byteswap.h: This.
20794         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
20795         * sysdeps/x86/bits/byteswap-16.h: This.
20796         * sysdeps/i386/Implies: Add x86.
20797         * sysdeps/x86_64/Implies: Likewise.
20798
20799 2012-05-30  David S. Miller  <davem@davemloft.net>
20800
20801         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
20802         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
20803         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
20804         (FP_TRAPPING_EXCEPTIONS): Define.
20805         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
20806         (FP_TRAPPING_EXCEPTIONS): Define.
20807         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
20808         subnormals only when inexact has been signalled or underflow
20809         exceptions are enabled.
20810         (_FP_PACK_CANONICAL): Likewise.
20811
20812 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
20813
20814         [BZ #14183]
20815         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
20816         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
20817
20818 2012-05-30  Richard Henderson  <rth@twiddle.net>
20819
20820         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
20821         with #ifndef NOT_IN_libc.
20822
20823         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
20824         marked to avoid plt entry.
20825
20826 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
20827
20828         [BZ #14112]
20829         * Makeconfig (default-abi): New macro.
20830         (abi-includes): Likewise.
20831         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
20832         $(abi-$(default-abi)-lib-soname) for soname if defined.
20833         ($(common-objpfx)gnu/lib-names.stmp): Generate from
20834         abi-variants.
20835         * Makefile (installed-stubs): Likewise.
20836         * include/stubs-biarch.h: Removed.
20837         * scripts/lib-names.awk: Only handle one library at a time.
20838         * scripts/soversions.awk: Remove WORDSIZE support.
20839         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
20840         entries.
20841         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
20842         Removed.
20843         (syscall-list-default-condition): Likewise.
20844         (syscall-list-default-condition): Likewise.
20845         (syscall-list-includes): Likewise.
20846         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
20847         syscall-list-* with abi-*.  Handle undefined abi-variants.
20848         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
20849         * sysdeps/unix/sysv/linux/i386/Implies: New file.
20850         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
20851         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
20852         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
20853         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
20854         Removed.
20855         (syscall-list-32-options): Likewise.
20856         (syscall-list-32-condition): Likewise.
20857         (syscall-list-64-options): Likewise.
20858         (syscall-list-64-condition): Likewise.
20859         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
20860         macro.
20861         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
20862         Renamed to ...
20863         (abi-*): This.
20864         (abi-64-ld-soname): New macro.
20865         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
20866         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
20867         Renamed to ...
20868         (abi-*): This.
20869         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
20870         * sysdeps/x86_64/x32/shlib-versions: Likewise.
20871
20872 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
20873
20874         * sysdeps/unix/sysv/linux/kernel-features.h
20875         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
20876         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
20877         include <kernel-features.h>.
20878         [!__NR_ftruncate64]: Remove conditional code.
20879         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20880         [__NR_ftruncate64]: Make code unconditional.
20881         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20882         * sysdeps/unix/sysv/linux/truncate64.c: Do not
20883         include <kernel-features.h>.
20884         [!__NR_ftruncate64]: Remove conditional code.
20885         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20886         [__NR_ftruncate64]: Make code unconditional.
20887         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
20889         include <kernel-features.h>.
20890         [!__NR_ftruncate64]: Remove conditional code.
20891         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20892         [__NR_ftruncate64]: Make code unconditional.
20893         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
20895         include <kernel-features.h>.
20896         [!__NR_ftruncate64]: Remove conditional code.
20897         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20898         [__NR_ftruncate64]: Make code unconditional.
20899         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
20900
20901         * configure.in (libc_cv_fpie): Weaken to a compile test using
20902         LIBC_TRY_CC_OPTION.
20903         * configure: Regenerated.
20904
20905 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20906
20907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
20908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
20909         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
20910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
20911         Refreshed.
20912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
20913         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
20914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
20915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
20916         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
20917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
20918         Refreshed.
20919
20920 2012-05-27  David S. Miller  <davem@davemloft.net>
20921
20922         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
20923         (___Q_zero): New.
20924         (__Q_simulate_exceptions): Return void.  Change to simulate
20925         exceptions by writing into the %fsr.
20926         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
20927         (__Qp_handle_exceptions): Likewise.
20928         (numbers): Delete.
20929         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
20930         __Qp_handle_exceptions.
20931         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
20932         __Qp_handle_exceptions.
20933         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
20934         as unused and give dummy FP_RND_NEAREST initializer.
20935         (FP_INHIBIT_RESULTS): Define.
20936         (___Q_simulate_exceptions): Update declaration.
20937         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
20938         formatting.
20939         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
20940         as unused and give dummy FP_RND_NEAREST initializer.
20941         (__Qp_handle_exceptions): Update declaration.
20942         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
20943         formatting.
20944
20945 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
20946
20947         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
20948         the temporary FPU control word.
20949         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
20950         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
20951         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
20952         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
20953         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
20954         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
20955         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
20956         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
20957         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
20958         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
20959         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20960
20961 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20962
20963         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
20964         fields.
20965
20966 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
20967
20968         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
20969         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
20970         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
20971         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
20972         Likewise.
20973         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
20974         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
20975         Likewise.
20976
20977 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
20978
20979         * po/h.po: Update from translation team.
20980
20981 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
20982
20983         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
20984
20985         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
20986         handling of denormals.
20987         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
20988         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
20989         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
20990         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
20991         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20992         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
20993         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
20994         Likewise.
20995
20996 2012-05-26  Marek Polacek  <polacek@redhat.com>
20997
20998         [BZ #14152]
20999         * math/libm-test.inc (fma_test): Don't always expect underflow
21000         exception.
21001
21002 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21003
21004         [BZ #12416]
21005         * elf/tst-execstack.c: Include stackinfo.h.
21006         (do_test): Adjust test case to ensure that pthread_getattr_np
21007         behaviour remains the same after marking stack executable.
21008
21009 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21010
21011         * sysdeps/unix/sysv/linux/kernel-features.h
21012         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
21013         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
21014         kernel-features.h.
21015         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
21016         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
21017         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
21018         kernel-features.h.
21019         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
21020         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
21021
21022 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21023
21024         * configure.in: Define the default includes to being none.
21025         * configure: Regenerated.
21026
21027 2012-05-25  Roland McGrath  <roland@hack.frob.com>
21028
21029         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
21030         * sysdeps/x86_64/setjmp.S: Likewise.
21031         * sysdeps/i386/bsd-setjmp.S: Likewise.
21032         * sysdeps/i386/bsd-_setjmp.S: Likewise.
21033         * sysdeps/i386/setjmp.S: Likewise.
21034         * sysdeps/i386/__longjmp.S: Likewise.
21035         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
21036         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
21037
21038         * include/stap-probe.h: New file.
21039         * configure.in: Handle --enable-systemtap.
21040         * configure: Regenerated.
21041         * config.h.in (USE_STAP_PROBE): New #undef.
21042         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
21043         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
21044         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
21045
21046 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21047
21048         [BZ #13717]
21049         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
21050         to 2.4.0 where earlier.
21051         * sysdeps/unix/sysv/linux/configure: Regenerated.
21052         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
21053         <kernel-features.h>.
21054         [__ASSUME_32BITUIDS]: Make code unconditional.
21055         [!__ASSUME_32BITUIDS]: Remove conditional code.
21056         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
21057         <kernel-features.h>.
21058         [__ASSUME_32BITUIDS]: Make code unconditional.
21059         [!__ASSUME_32BITUIDS]: Remove conditional code.
21060         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
21061         [__ASSUME_32BITUIDS]: Make code unconditional.
21062         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
21063         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
21064         <kernel-features.h>.
21065         [__ASSUME_32BITUIDS]: Make code unconditional.
21066         [!__ASSUME_32BITUIDS]: Remove conditional code.
21067         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
21068         <kernel-features.h>.
21069         [__ASSUME_32BITUIDS]: Make code unconditional.
21070         [!__ASSUME_32BITUIDS]: Remove conditional code.
21071         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
21072         <kernel-features.h>.
21073         [__ASSUME_32BITUIDS]: Make code unconditional.
21074         [!__ASSUME_32BITUIDS]: Remove conditional code.
21075         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
21076         <kernel-features.h>.
21077         [__ASSUME_32BITUIDS]: Make code unconditional.
21078         [!__ASSUME_32BITUIDS]: Remove conditional code.
21079         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21080         <kernel-features.h>.
21081         [__ASSUME_32BITUIDS]: Make code unconditional.
21082         [!__ASSUME_32BITUIDS]: Remove conditional code.
21083         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21084         <kernel-features.h>.
21085         [__ASSUME_32BITUIDS]: Make code unconditional.
21086         [!__ASSUME_32BITUIDS]: Remove conditional code.
21087         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
21088         <kernel-features.h>.
21089         [__ASSUME_32BITUIDS]: Make code unconditional.
21090         [!__ASSUME_32BITUIDS]: Remove conditional code.
21091         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
21092         <kernel-features.h>.
21093         [__ASSUME_32BITUIDS]: Make code unconditional.
21094         [!__ASSUME_32BITUIDS]: Remove conditional code.
21095         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21096         <kernel-features.h>.
21097         [__ASSUME_32BITUIDS]: Make code unconditional.
21098         [!__ASSUME_32BITUIDS]: Remove conditional code.
21099         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
21100         <kernel-features.h>.
21101         [__ASSUME_32BITUIDS]: Make code unconditional.
21102         [!__ASSUME_32BITUIDS]: Remove conditional code.
21103         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
21104         <kernel-features.h>.
21105         [__NR_setresgid] (__setresgid): Do not declare.
21106         [__ASSUME_32BITUIDS]: Make code unconditional.
21107         [!__ASSUME_32BITUIDS]: Remove conditional code.
21108         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
21109         <kernel-features.h>.
21110         [__NR_setresuid] (__setresuid): Do not declare.
21111         [__ASSUME_32BITUIDS]: Make code unconditional.
21112         [!__ASSUME_32BITUIDS]: Remove conditional code.
21113         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
21114         <kernel-features.h>.
21115         [__ASSUME_32BITUIDS]: Make code unconditional.
21116         [!__ASSUME_32BITUIDS]: Remove conditional code.
21117         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
21118         <kernel-features.h>.
21119         [__ASSUME_32BITUIDS]: Make code unconditional.
21120         [!__ASSUME_32BITUIDS]: Remove conditional code.
21121         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
21122         <kernel-features.h>.
21123         [__ASSUME_32BITUIDS]: Make code unconditional.
21124         [!__ASSUME_32BITUIDS]: Remove conditional code.
21125         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
21126         <kernel-features.h>.
21127         [__ASSUME_32BITUIDS]: Make code unconditional.
21128         [!__ASSUME_32BITUIDS]: Remove conditional code.
21129         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
21130         <kernel-features.h>.
21131         [__ASSUME_32BITUIDS]: Make code unconditional.
21132         [!__ASSUME_32BITUIDS]: Remove conditional code.
21133         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
21134         <kernel-features.h>.
21135         [__ASSUME_32BITUIDS]: Make code unconditional.
21136         [!__ASSUME_32BITUIDS]: Remove conditional code.
21137         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
21138         <kernel-features.h>.
21139         [__ASSUME_32BITUIDS]: Make code unconditional.
21140         [!__ASSUME_32BITUIDS]: Remove conditional code.
21141         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
21142         <kernel-features.h>.
21143         [__ASSUME_32BITUIDS]: Make code unconditional.
21144         [!__ASSUME_32BITUIDS]: Remove conditional code.
21145         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
21146         <kernel-features.h>.
21147         [__ASSUME_32BITUIDS]: Make code unconditional.
21148         [!__ASSUME_32BITUIDS]: Remove conditional code.
21149         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21150         <kernel-features.h>.
21151         [__ASSUME_32BITUIDS]: Make code unconditional.
21152         [!__ASSUME_32BITUIDS]: Remove conditional code.
21153         * sysdeps/unix/sysv/linux/kernel-features.h
21154         (__ASSUME_SETRESUID_SYSCALL): Remove.
21155         (__ASSUME_SETRESGID_SYSCALL): Likewise.
21156         (__ASSUME_32BITUIDS): Likewise.
21157         (__ASSUME_LDT_WORKS): Likewise.
21158         (__ASSUME_O_DIRECTORY): Likewise.
21159         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
21160         architecture but not kernel version.
21161         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
21162         (__ASSUME_MMAP2_SYSCALL): Likewise.
21163         (__ASSUME_STAT64_SYSCALL): Likewise.
21164         (__ASSUME_IPC64): Likewise.
21165         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
21166         <kernel-features.h>.
21167         [__ASSUME_32BITUIDS]: Make code unconditional.
21168         [!__ASSUME_32BITUIDS]: Remove conditional code.
21169         * sysdeps/unix/sysv/linux/opendir.c: Do not include
21170         <kernel-features.h>.
21171         [__ASSUME_O_DIRECTORY]: Make code unconditional.
21172         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
21173         132096]: Remove conditional code.
21174         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
21175         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
21176         <kernel-features.h>.
21177         [__ASSUME_32BITUIDS]: Make code unconditional.
21178         [!__ASSUME_32BITUIDS]: Remove conditional code.
21179         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
21180         <kernel-features.h>.
21181         [__ASSUME_32BITUIDS]: Make code unconditional.
21182         [!__ASSUME_32BITUIDS]: Remove conditional code.
21183         * sysdeps/unix/sysv/linux/setegid.c: Do not include
21184         <kernel-features.h>.
21185         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
21186         unconditional.
21187         (__setresgid): Do not declare.
21188         [__ASSUME_32BITUIDS]: Make code unconditional.
21189         [!__ASSUME_32BITUIDS]: Remove conditional code.
21190         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
21191         <kernel-features.h>.
21192         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
21193         unconditional.
21194         (__setresuid): Do not declare.
21195         [__ASSUME_32BITUIDS]: Make code unconditional.
21196         [!__ASSUME_32BITUIDS]: Remove conditional code.
21197         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
21198         <kernel-features.h>.
21199         [__ASSUME_32BITUIDS]: Make code unconditional.
21200         [!__ASSUME_32BITUIDS]: Remove conditional code.
21201         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
21202         <kernel-features.h>.
21203         [__ASSUME_32BITUIDS]: Make code unconditional.
21204         [!__ASSUME_32BITUIDS]: Remove conditional code.
21205
21206 2012-05-25  Richard Henderson  <rth@twiddle.net>
21207
21208         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
21209         dl_hwcap to ifunc resolver.
21210         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
21211         elf_ifunc_invoke.
21212         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
21213         dl_hwcap to ifunc resolver.
21214         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
21215
21216 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
21217
21218         [BZ #14153]
21219         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
21220         for |x| <= 2**-26, not 2**-57.
21221         * math/libm-test.inc (acos_test): Do not allow spurious underflow
21222         exception.
21223
21224 2012-05-24  Jeff Law  <law@redhat.com>
21225
21226         * stdio-common/Makefile (tests): Add bug25.
21227         * stdio-common/bug25.c: New test.
21228
21229 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21230
21231         [BZ #13576]
21232         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
21233         multiple of MALLOC_ALIGNMENT in size.
21234         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
21235
21236 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
21237
21238         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
21239         Require >= 256.
21240         (FILENAME_MAX): Use macro-int-constant.
21241         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
21242         (_IOFBF): Use macro-int-constant.
21243         (_IOLBF): Likewise.
21244         (_IONBF): Likewise.
21245         (SEEK_CUR): Likewise.
21246         (SEEK_END): Likewise.
21247         (SEEK_SET): Likewise.
21248         (TMP_MAX): Likewise.
21249         (EOF): Use macro-int-constant.  Require < 0.
21250         (NULL): Use macro-constant.  Require == 0.
21251         (stdin): Require type to be FILE *.
21252         (stdout): Likewise.
21253         (stderr): Likewise.
21254         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
21255         macro-int-constant.
21256         (EXIT_SUCCESS): Likewise.
21257         (NULL): Use macro-constant.  Require == 0.
21258         (RAND_MAX): Use macro-int-constant.
21259         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
21260         [C99-based standards] (strtof): Require function.
21261         [C99-based standards] (strtold): Likewise.
21262         [C99-based standards] (strtoll): Likewise.
21263         [C99-based standards] (strtoull): Likewise.
21264         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21265         [ISO || ISO99 || ISO11] (limits.h): Likewise.
21266         [ISO || ISO99 || ISO11] (math.h): Likewise.
21267         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
21268         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21269         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21270
21271 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
21272
21273         [BZ #14132]
21274         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
21275         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
21276         * intl/dgettext.c (DCGETTEXT): Likewise.
21277         * intl/gettext.c (DCGETTEXT): Likewise.
21278         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
21279         * posix/regex_internal.h (gettext): Likewise.
21280         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
21281         Remove declaration.
21282         * include/argz.h (__argz_count_internal)
21283         (__argz_stringify_internal): Remove declaration.
21284         (__argz_count, __argz_stringify): Declare hidden proto.
21285         * intl/dcgettext.c: Remove use of INTDEF.
21286         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
21287         * string/argz-stringify.c: Likewise.
21288         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
21289         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
21290         Declare hidden proto.
21291         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
21292         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
21293         Declare hidden proto.
21294         * include/stdio.h (__asprintf_internal): Don't declare.
21295         (__asprintf): Don't define as macro.  Declare hidden proto.
21296         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
21297         (__fsetlocking): Declare hidden proto.
21298         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
21299         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
21300         hidden proto.
21301         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
21302         (_IO_setlinebuf): Remove use of INTUSE.
21303         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
21304         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
21305         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
21306         Remove declaration.
21307         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
21308         (_IO_do_flush): Remove use of INTUSE.
21309         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
21310         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
21311         (_IO_adjust_column, _IO_least_wmarker)
21312         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
21313         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
21314         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
21315         (_IO_default_doallocate, _IO_wdefault_doallocate)
21316         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
21317         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
21318         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
21319         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
21320         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
21321         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
21322         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
21323         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
21324         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
21325         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
21326         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
21327         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
21328         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
21329         proto.
21330         (_IO_flush_all_internal, _IO_adjust_column_internal)
21331         (_IO_default_uflow_internal, _IO_default_finish_internal)
21332         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
21333         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
21334         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
21335         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
21336         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
21337         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
21338         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
21339         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
21340         (_IO_file_close_internal, _IO_file_close_it_internal)
21341         (_IO_file_underflow_internal, _IO_file_overflow_internal)
21342         (_IO_file_init_internal, _IO_file_attach_internal)
21343         (_IO_file_fopen_internal, _IO_file_read_internal)
21344         (_IO_file_sync_internal, _IO_file_seek_internal)
21345         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
21346         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
21347         (_IO_str_underflow_internal, _IO_str_overflow_internal)
21348         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
21349         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
21350         (_IO_list_all_internal, _IO_link_in_internal)
21351         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
21352         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
21353         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
21354         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
21355         (_IO_do_write_internal, _IO_padn_internal)
21356         (_IO_getline_info_internal, _IO_getline_internal)
21357         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
21358         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
21359         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
21360         (_IO_vfscanf_internal, _IO_vfprintf_internal)
21361         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
21362         (_IO_init_internal, _IO_un_link_internal): Don't declare.
21363         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
21364         with libc_hidden_ver, remove use of INTUSE.
21365         * libio/genops.c: Likewise.
21366         * libio/freopen.c: Likewise.
21367         * libio/freopen64.c: Likewise.
21368         * libio/iofclose.c: Likewise.
21369         * libio/iofdopen.c: Likewise.
21370         * libio/iofflush.c: Likewise.
21371         * libio/iofflush_u.c: Likewise.
21372         * libio/iofgets.c: Likewise.
21373         * libio/iofgets_u.c: Likewise.
21374         * libio/iofopen.c: Likewise.
21375         * libio/iofopncook.c: Likewise.
21376         * libio/iofread.c: Likewise.
21377         * libio/iofread_u.c: Likewise.
21378         * libio/ioftell.c: Likewise.
21379         * libio/iofwrite.c: Likewise.
21380         * libio/iogetline.c: Likewise.
21381         * libio/iogets.c: Likewise.
21382         * libio/iogetwline.c: Likewise.
21383         * libio/iopadn.c: Likewise.
21384         * libio/iopopen.c: Likewise.
21385         * libio/ioseekoff.c: Likewise.
21386         * libio/ioseekpos.c: Likewise.
21387         * libio/iosetbuffer.c: Likewise.
21388         * libio/iosetvbuf.c: Likewise.
21389         * libio/ioungetc.c: Likewise.
21390         * libio/ioungetwc.c: Likewise.
21391         * libio/iovdprintf.c: Likewise.
21392         * libio/iovsprintf.c: Likewise.
21393         * libio/iovsscanf.c: Likewise.
21394         * libio/memstream.c: Likewise.
21395         * libio/obprintf.c: Likewise.
21396         * libio/oldfileops.c: Likewise.
21397         * libio/oldiofclose.c: Likewise.
21398         * libio/oldiofdopen.c: Likewise.
21399         * libio/oldiofopen.c: Likewise.
21400         * libio/oldiopopen.c: Likewise.
21401         * libio/oldstdfiles.c: Likewise.
21402         * libio/putc.c: Likewise.
21403         * libio/setbuf.c: Likewise.
21404         * libio/setlinebuf.c: Likewise.
21405         * libio/stdfiles.c: Likewise.
21406         * libio/strops.c: Likewise.
21407         * libio/vasprintf.c: Likewise.
21408         * libio/vscanf.c: Likewise.
21409         * libio/vsnprintf.c: Likewise.
21410         * libio/vswprintf.c: Likewise.
21411         * libio/wfiledoalloc.c: Likewise.
21412         * libio/wfileops.c: Likewise.
21413         * libio/wgenops.c: Likewise.
21414         * libio/wmemstream.c: Likewise.
21415         * libio/wstrops.c: Likewise.
21416         * libio/__fpurge.c: Likewise.
21417         * libio/__fsetlocking.c: Likewise.
21418         * assert/assert.c: Likewise.
21419         * debug/fgets_chk.c: Likewise.
21420         * debug/fgets_u_chk.c: Likewise.
21421         * debug/fread_chk.c: Likewise.
21422         * debug/fread_u_chk.c: Likewise.
21423         * debug/gets_chk.c: Likewise.
21424         * debug/obprintf_chk.c: Likewise.
21425         * debug/vasprintf_chk.c: Likewise.
21426         * debug/vdprintf_chk.c: Likewise.
21427         * debug/vsnprintf_chk.c: Likewise.
21428         * debug/vsprintf_chk.c: Likewise.
21429         * malloc/mtrace.c: Likewise.
21430         * misc/error.c: Likewise.
21431         * misc/syslog.c: Likewise.
21432         * stdio-common/asprintf.c: Likewise.
21433         * stdio-common/fxprintf.c: Likewise.
21434         * stdio-common/getw.c: Likewise.
21435         * stdio-common/isoc99_fscanf.c: Likewise.
21436         * stdio-common/isoc99_scanf.c: Likewise.
21437         * stdio-common/isoc99_vfscanf.c: Likewise.
21438         * stdio-common/isoc99_vscanf.c: Likewise.
21439         * stdio-common/isoc99_vsscanf.c: Likewise.
21440         * stdio-common/printf-prs.c: Likewise.
21441         * stdio-common/printf_fp.c: Likewise.
21442         * stdio-common/printf_fphex.c: Likewise.
21443         * stdio-common/printf_size.c: Likewise.
21444         * stdio-common/putw.c: Likewise.
21445         * stdio-common/scanf.c: Likewise.
21446         * stdio-common/sprintf.c: Likewise.
21447         * stdio-common/tmpfile.c: Likewise.
21448         * stdio-common/vfprintf.c: Likewise.
21449         * stdio-common/vfscanf.c: Likewise.
21450         * stdlib/strfmon_l.c: Likewise.
21451         * sunrpc/openchild.c: Likewise.
21452         * sunrpc/xdr_stdio.c: Likewise.
21453         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
21454         * sysdeps/mach/hurd/tmpfile.c: Likewise.
21455
21456 2012-05-24  Roland McGrath  <roland@hack.frob.com>
21457
21458         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
21459
21460         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
21461         in the third column, to generate for the shared library an IFUNC
21462         that uses _dl_vdso_vsym.
21463         * Makerules (COMPILE.c, compile-stdin.c): New variables.
21464         * Makeconfig (object-suffixes-noshared): New variable.
21465
21466         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
21467         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
21468         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
21469         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
21470
21471         [BZ #14132]
21472         * include/sys/time.h (__gettimeofday): Remove macro.
21473         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
21474         * time/gettimeofday.c (__gettimeofday): Remove #undef.
21475         Remove INTDEF.
21476         (__gettimeofday): Add libc_hidden_def.
21477         (gettimeofday): Add libc_hidden_weak.
21478         * sysdeps/mach/gettimeofday.c: Likewise.
21479         * sysdeps/posix/gettimeofday.c: Likewise.
21480         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
21481         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
21482         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
21483         (__gettimeofday_internal): Remove strong_alias.
21484         (__gettimeofday): Add libc_hidden_def.
21485         (gettimeofday): Add libc_hidden_weak.
21486         * sysdeps/unix/syscalls.list (gettimeofday):
21487         Remove __gettimeofday_internal alias.
21488
21489 2012-05-24  Daniel Jacobowitz  <drow@false.org>
21490             H.J. Lu  <hongjiu.lu@intel.com>
21491
21492         [BZ #12495]
21493         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
21494         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
21495         (largebin_index_32_big): New.
21496         (largebin_index): Use it for 16-byte alignment.
21497         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
21498         correction with front_misalign.
21499
21500 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21501
21502         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
21503         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
21504         Likewise.
21505         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
21506         Likewise.
21507         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21508         Likewise.
21509         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
21510         Likewise.
21511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
21512         Likewise.
21513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
21514         Likewise.
21515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
21516         Likewise.
21517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
21518         Likewise.
21519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
21520         Likewise.
21521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
21522         Likewise.
21523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
21524         Likewise.
21525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
21526         Likewise.
21527
21528         * scripts/data/c++-types-x32-linux-gnu.data: New file.
21529         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
21530
21531 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
21532
21533         [BZ #10846]
21534         [BZ #14036]
21535         * math/libm-test.inc (exp_test): Add test from bug 14036.
21536         (pow_test): Add test from bug 10846.
21537
21538         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
21539         and other flags.
21540         (special_function): Do not include flags in test name.
21541         (parse_args): Likewise.
21542         * sysdeps/i386/fpu/libm-test-ulps: Update.
21543         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21544         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
21545         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
21546         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21547
21548         * math/gen-libm-test.pl (%beautify): Add entries for underflow
21549         exceptions.
21550         * math/libm-test.inc ("Philosophy"): Update comment about
21551         exception testing.
21552         (UNDERFLOW_EXCEPTION): New macro.
21553         (UNDERFLOW_EXCEPTION_OK): Likewise.
21554         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
21555         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
21556         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
21557         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
21558         (INVALID_EXCEPTION_OK): Update value.
21559         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
21560         (OVERFLOW_EXCEPTION_OK): Likewise.
21561         (IGNORE_ZERO_INF_SIGN): Likewise.
21562         (test_exceptions): Handle underflow exceptions.
21563         (acos_test): Update for underflow exception expectations.
21564         (cexp_test): Likewise.
21565         (clog_test): Likewise.
21566         (clog10_test): Likewise.
21567         (csqrt_test): Likewise.
21568         (ctan_test): Likewise.
21569         (ctanh_test): Likewise.
21570         (exp_test): Likewise.
21571         (exp10_test): Likewise.
21572         (exp2_test): Likewise.
21573         (expm1_test): Likewise.
21574         (fma_test): Likewise.
21575         (j0_test): Likewise.
21576         (jn_test): Likewise.
21577         (nexttoward_test): Likewise.
21578         (pow_test): Likewise.
21579         (scalbn_test): Likewise.
21580         (scalbln_test): Likewise.
21581         (tan_test): Likewise.
21582         (y1_test): Likewise.
21583         * sysdeps/i386/fpu/libm-test-ulps: Update.
21584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21585
21586 2012-05-23  David S. Miller  <davem@davemloft.net>
21587
21588         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
21589         (__libc_sigaction): Remove unused local variables.
21590
21591 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21592
21593         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
21594
21595 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21596
21597         mktime: avoid signed integer overflow
21598         * time/mktime.c (__mktime_internal): Do not mishandle the case
21599         where diff == INT_MIN.
21600
21601         mktime: simplify computation of average
21602         * time/mktime.c (ranged_convert): Use new time_t_avg function
21603         instead of rolling our own (probably-slower) code.
21604
21605         mktime: do not assume signed right shift propagates sign bit
21606         * time/mktime.c (isdst_differ): New static function.
21607         (__mktime_internal): No need to normalize tm_isdst now.
21608         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
21609         tm_isdst values.
21610
21611         mktime: merge another wrapv change from gnulib
21612         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
21613         from some compilers.
21614
21615         mktime: remove incorrect attempt at unusual arithmetics
21616         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
21617         The code didn't really work on such machines anyway.
21618         (TYPE_MINIMUM): Assume two's complement.
21619         (twos_complement_arithmetic): Verify that long_int and time_t
21620         are two's complement (or unsigned, in the latter case).
21621
21622         mktime: check signed shifts on long_int and time_t, too
21623         * time/mktime.c (SHR): Check that shifts work as desired
21624         on the types long_int and time_t too, as SHR is used on
21625         such types.
21626
21627         mktime: do not assume 'long' is wide enough
21628         * time/mktime.c (verify): Move decl up.
21629         (long_int): New type.
21630         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
21631         to remove assumption in the code that 'long' is wide enough to
21632         store year values.  This assumption is not true on x32 and on
21633         some non-glibc platforms.
21634
21635         mktime: merge wrapv change from gnulib
21636         * time/mktime.c (WRAPV): New macro.
21637         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
21638         (guess_time_tm, __mktime_internal): Do not assume that signed
21639         integer overflow wraps around; modern compilers generate code
21640         where this assumption is no longer valid.
21641
21642 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21643
21644         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
21645         Replace "jmp L(pseudo_end)" with "ret".
21646         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
21647         Likewise.
21648
21649 2012-05-23  Andreas Jaeger  <aj@suse.de>
21650
21651         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
21652         * sysdeps/unix/sysv/linux/poll.c: Remove file.
21653
21654 2012-05-23  Andreas Jaeger  <aj@suse.de>
21655             Maximilian Attems  <max@stro.at>
21656
21657         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
21658         New macros.
21659
21660 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21661
21662         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
21663         code so that pseudo_end is just ret and the stack pointer is
21664         correct also for static library in error case.
21665
21666 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
21667
21668         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
21669         move to syscalls.list.
21670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
21671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
21672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
21673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
21674
21675         * manual/install.texi (Running make install): Do not mention Linux
21676         kernel version for which pt_chown is not needed.
21677         (Linux): Do not mention problems with nscd with 2.0 kernels.
21678         * INSTALL: Regenerated.
21679
21680 2012-05-23  Andreas Jaeger  <aj@suse.de>
21681
21682         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
21683         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
21684         macro.
21685         * sysdeps/unix/sysv/linux/s390/bits/mman.h
21686         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
21687         * sysdeps/unix/sysv/linux/sh/bits/mman.h
21688         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
21689         * sysdeps/unix/sysv/linux/i386/bits/mman.h
21690         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
21691         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
21692         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
21693         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
21694         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
21695         * sysdeps/unix/sysv/linux/bits/in.h
21696         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
21697
21698 2012-05-22  Roland McGrath  <roland@hack.frob.com>
21699
21700         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
21701         (PREPARE_VERSION): Just use assert instead, it will be elided
21702         under [NDEBUG] anyway.
21703
21704 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21705
21706         * sysdeps/unix/sysv/linux/Makefile: Include
21707         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
21708         (sysdep_routines): Remove sysctl.
21709         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
21710         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
21711         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
21712         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
21713         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
21714
21715 2012-05-22  Andreas Jaeger  <aj@suse.de>
21716
21717         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
21718         that pseudo_end is just ret and the stack pointer is correct also
21719         for static library in error case.
21720
21721 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
21722
21723         [BZ #14122]
21724         * nss/nsswitch.c (defconfig_entries): New variable.
21725         (__nss_database_lookup): Don't leak defconfig entries.
21726         (nss_parse_service_list): Don't leak on error paths.
21727         (free_database_entries): New function.
21728         (free_defconfig): New function.
21729         (free_mem): Move common code to free_database_entries.
21730
21731 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21732
21733         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
21734         Add arch_prctl.
21735         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
21736
21737         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21738         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
21739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
21740         New macro.
21741         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
21742         (INTERNAL_SYSCALL_TYPES): Likewise.
21743         (LOAD_ARGS_TYPES_[1-6]): Likewise.
21744         (LOAD_REGS_TYPES_[1-6]): Likewise.
21745         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
21746         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
21747
21748 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21749
21750         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
21751         copysignl for GLIBC_2_0.
21752         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
21753         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
21754         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
21755         logbl for GLIBC_2_0.
21756         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
21757         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
21758
21759 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21760
21761         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
21762         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
21763
21764         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
21765         Use "neg %eax".
21766
21767         * time/mktime.c: Update copyright years.
21768
21769 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21770
21771         mktime: merge comment-quoting-style change from gnulib
21772         * time/mktime.c: Quote 'like this' in comments.
21773         The GNU coding standards suggest that we no longer quote `like this',
21774         as "`" and "'" are typically rendered asymmetrically nowadays.
21775         The typical gnulib style is to quote 'like this' when quoting
21776         code, and "like this" when quoting English.
21777
21778         * time/mktime.c (compile-command): Add "-I.".
21779
21780         mktime: merge mktime-internal.h change from gnulib
21781         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
21782
21783         mktime: merge time_r change from gnulib
21784         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
21785
21786         mktime: merge DEBUG change from gnulib
21787         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
21788         case system <time.h> has a #define.
21789
21790         mktime: merge <sys/types.h> change from gnulib
21791         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
21792         since <time.t> is now guaranteed to define time_t.
21793
21794         mktime: merge HAVE_CONFIG_H change from gnulib
21795         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
21796
21797 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21798
21799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
21800         Use "neg %eax".
21801
21802         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
21803         __rlim_t cast.
21804         (struct rusage): Use anonymous union to pad each field to
21805         __syscall_slong_t.
21806
21807 2012-05-21  David S. Miller  <davem@davemloft.net>
21808
21809         * Makefules (o-iterator): Remove .s cases.
21810         (compile-command.s): Delete.
21811         (COMPILE.s): Delete.
21812         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
21813
21814 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
21815
21816         * configure.in (libc_cv_predef_stack_protector): Only consider
21817         "foobar" and "__stack_chk_fail" lines in libc_undefs.
21818         * configure: Regenerated.
21819
21820 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
21821
21822         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
21823         New macro.  Use R*LP on int and pointer.
21824         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
21825         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
21826         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
21827         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
21828
21829         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
21830         [__WORDSIZE_TIME64_COMPAT32] instead of
21831         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
21832         (struct utmp): Likewise.
21833         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
21834         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
21835         Renamed to ...
21836         (__WORDSIZE_TIME64_COMPAT32): This.
21837         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
21838         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
21839         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
21840         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
21841         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
21842         (__WORDSIZE_TIME64_COMPAT32): New macro.
21843
21844 2012-05-21  Andreas Jaeger  <aj@suse.de>
21845
21846         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
21847         only if [SHARED]. Add prototype for __wcschr_ia32.
21848
21849 2012-05-21  Roland McGrath  <roland@hack.frob.com>
21850
21851         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
21852         of %rbp unmolested in the jmp_buf while mangling the low bits.
21853         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
21854         unmolested high bits of %rbp while demangling the low bits.
21855         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
21856
21857 2012-05-21  Andreas Jaeger  <aj@suse.de>
21858
21859         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
21860         * sunrpc/svc_simple.c: Use it for registerrpc.
21861         * sunrpc/xcrypt.c: Use it for passwd2des.
21862
21863         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
21864
21865 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
21866
21867         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
21868         Don't define if [__SYSCALL_WORDSIZE != 32].
21869         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
21870         New macro.
21871
21872 2012-05-21  Bruno Haible  <bruno@clisp.org>
21873             Andreas Jaeger  <aj@suse.de>
21874
21875         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
21876         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
21877         inptr and inend for must_buffer_ch.
21878         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
21879         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
21880         * stdio-common/Makefile (tests): Remove bug15.
21881         (bug15-ENV): Remove macro.
21882         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
21883         anymore.
21884
21885 2012-05-19  Andreas Jaeger  <aj@suse.de>
21886             Roland McGrath  <roland@hack.frob.com>
21887
21888         * manual/contrib.texi: Completely rewritten. It contains now an
21889         alphabetical list of contributors and their contributions.
21890
21891 2012-05-21  Richard Henderson  <rth@twiddle.net>
21892
21893         * misc/getauxval.c (__getauxval): Use unsigned long int.
21894         * misc/sys/auxv.h: Include <sys/cdefs.h>.
21895         (getauxval): Use unsigned long int.
21896
21897 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
21898
21899         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
21900
21901 2012-05-21  Roland McGrath  <roland@hack.frob.com>
21902
21903         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
21904         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
21905         __alignof__ (long double).
21906
21907 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21908
21909         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21910
21911 2012-05-20  Richard Henderson  <rth@twiddle.net>
21912
21913         * misc/getauxval.c: New file.
21914         * misc/sys/auxv.h: New file.
21915         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
21916         (routines): Add getauxval.
21917         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
21918         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
21919         * elf/dl-sysdep.c (_dl_auxv): Remove.
21920         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
21921         * elf/dl-support.c (_dl_auxv): New variable.
21922         (_dl_aux_init): Initialize it.
21923         * manual/startup.texi (Auxiliary Vector): New node.
21924         * sysdeps/generic/bits/hwcap.h: New file.
21925         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
21926         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
21927         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
21928         * sysdeps/sparc/sysdep.h: ... here.  Include it.
21929         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
21930         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
21931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21932         Update.
21933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
21934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
21935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
21936         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
21937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
21938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
21939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
21940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
21941
21942 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21943
21944         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21945
21946 2012-05-19  David S. Miller  <davem@davemloft.net>
21947
21948         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21949
21950 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
21951
21952         [BZ #14123]
21953         * math/s_ccosh.c: Include <float.h>
21954         (__ccosh): Avoid internal overflow calculating sinh and cosh
21955         values before multiplying by sin and cos values.
21956         * math/s_ccoshf.c: Likewise.
21957         * math/s_ccoshl.c: Likewise.
21958         * math/s_csin.c: Likewise.
21959         * math/s_csinf.c: Likewise.
21960         * math/s_csinl.c: Likewise.
21961         * math/s_csinh.c: Likewise.
21962         * math/s_csinhf.c: Likewise.
21963         * math/s_csinhl.c: Likewise.
21964         * math/libm-test.inc (ccos_test): Add more tests.
21965         (ccosh_test): Likewise.
21966         (csin_test): Likewise.
21967         (csinh_test): Likewise.
21968         * sysdeps/i386/fpu/libm-test-ulps: Update.
21969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21970
21971 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21972
21973         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
21974         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
21975
21976         * sysdeps/x86_64/x32/_itoa.h: Add comment.
21977
21978 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
21979
21980         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
21981         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
21982         * sysdeps/powerpc/soft-fp/Versions: Likewise.
21983         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
21984         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
21985         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
21986         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
21987         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
21988         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
21989         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
21990         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
21991         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
21992         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
21993         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
21994         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
21995         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
21996         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
21997         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
21998         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
21999         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
22000         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
22001         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
22002         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
22003         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
22004         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
22005         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
22006         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
22007         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
22008         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
22009         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
22010         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
22011
22012 2012-05-18  Andreas Jaeger  <aj@suse.de>
22013
22014         * csu/.gitignore: Delete.
22015
22016 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22017
22018         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
22019         (timex): Use __syscall_slong_t.
22020
22021 2012-05-18  Andreas Jaeger  <aj@suse.de>
22022             Carlos O'Donell  <carlos_odonell@mentor.com>
22023
22024         * manual/install.texi (Configuring and compiling): Update
22025         description about files modified in the source directory.
22026         * INSTALL: Regenerated.
22027
22028 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22029
22030         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
22031         value.  Use "or" to set return value to -1.
22032         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
22033         negate return value.
22034
22035 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22036
22037         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
22038         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
22039         failure if the compiler has Graphite support disabled.
22040         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
22041         Likewise.
22042         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
22043         CFLAGS-memmove.c): Likewise.
22044         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
22045         Likewise.
22046
22047 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22048
22049         * sysdeps/x86_64/x32/_itoa.h: New file.
22050
22051         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
22052         getdents system call only if kernel and user dirents have the
22053         same d_ino and d_off.
22054
22055         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
22056         LLONG_MAX != LONG_MAX.
22057         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22058         (_fitoa_word): Likewise.
22059
22060         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
22061         years.
22062         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
22063         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
22064         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
22065
22066         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
22067         include <bits/wordsize.h>.  Check __x86_64__ instead of
22068         __WORDSIZE.
22069         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
22070         if __x86_64__ is defined.  Use anonymous union on fpstate.
22071
22072         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
22073         anonymous union.
22074
22075 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
22076
22077         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
22078         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
22079         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
22080         Refer to _rtld_local_ro instead of _rtld_global_ro.
22081         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
22082         Likewise.
22083         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
22084         Likewise.
22085         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
22086         Likewise.
22087         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
22088         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
22089         of _rtld_global, and rtld_progname instead of _dl_argv[0].
22090
22091         * sysdeps/powerpc/powerpc32/dl-machine.c
22092         (__elf_machine_runtime_setup) [PROF]: Don't reference
22093         _dl_prof_resolve.
22094
22095 2012-05-18  Andreas Jaeger  <aj@suse.de>
22096
22097         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
22098         function only available for GCCs before 3.4 since GCC 3.4
22099         introduced a builtin.
22100         (lrint): Likewise.
22101         (llrintf): Likewise.
22102         (llrint): Likewise.
22103         (fmaxf): Likewise.
22104         (fmax): Likewise.
22105         (fminf): Likewise.
22106         (fmin): Likewise.
22107         (rint): Likewise.
22108         (rintf): Likewise.
22109         (nearbyint): Likewise.
22110         (nearbyintf): Likewise.
22111         (ceil): Likewise.
22112         (ceilf): Likewise.
22113         (floor): Likewise.
22114         (floorf): Likewise.
22115
22116 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22117
22118         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
22119         on both fields and cast pointer to __syscall_ulong_t.
22120
22121         * bits/types.h (__fsword_t): New type.
22122         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
22123         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
22124         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22125         (__FSWORD_T_TYPE): Likewise.
22126         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22127         (__FSWORD_T_TYPE): Likewise.
22128         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22129         (__FSWORD_T_TYPE): Likewise.
22130         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
22131         (__FSWORD_T_TYPE): Likewise.
22132         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
22133         __SWORD_TYPE with __fsword_t.
22134         (statfs64): Likewise.
22135
22136 2012-05-17  David S. Miller  <davem@davemloft.net>
22137
22138         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
22139
22140 2012-05-17  Andreas Jaeger  <aj@suse.de>
22141
22142         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
22143         warning.
22144
22145 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22146
22147         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
22148
22149 2012-05-17  Andreas Jaeger  <aj@suse.de>
22150
22151         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
22152         when it is used.
22153
22154 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
22155
22156         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
22157
22158 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22159
22160         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
22161         * sysdeps/x86_64/tst-mallocalign1.c: New file.
22162
22163 2012-05-17  Andreas Jaeger  <aj@suse.de>
22164             Carlos O'Donell  <carlos_odonell@mentor.com>
22165
22166         [BZ #14059]
22167         * sysdeps/x86_64/multiarch/init-arch.h
22168         (bit_YMM_Usable): Rename to...
22169         (bit_AVX_Usable): ... this.
22170         (bit_FMA4_Usable): New macro.
22171         (bit_XMM_state): New macro.
22172         (bit_YMM_state): New macro.
22173         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
22174         [__ASSEMBLER__] (index_AVX_Usable): ... this.
22175         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
22176         (CPUID_OSXSAVE): New macro.
22177         (CPUID_AVX): New macro.
22178         (CPUID_FMA4): New macro.
22179         (index_YMM_Usable): Rename to...
22180         (index_AVX_Usable): ... this.
22181         (HAS_AVX): Use HAS_ARCH_FEATURE.
22182         (HAS_FMA4): Likewise.
22183         (HAS_YMM_USABLE): Remove.
22184         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22185         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
22186         are present.
22187         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
22188         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
22189         * sysdeps/x86_64/multiarch/Makefile: Likewise.
22190         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
22191         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
22192
22193 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
22194
22195         * math/libm-test.c: Support platforms without multiple rounding modes.
22196         * math/bug-nextafter.c: Support platforms without FP exceptions.
22197         * math/bug-nexttoward.c: Likewise.
22198         * math/test-fenv.c: Likewise.
22199         * math/test-misc.c: Likewise.
22200         * stdlib/bug-getcontext.c: Likewise.
22201
22202 2012-05-17  Andreas Jaeger  <aj@suse.de>
22203
22204         * manual/examples/search.c (critter_cmp): Change signature to
22205         avoid warnings.
22206         * manual/string.texi (Collation Functions): Likewise.
22207
22208 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22209
22210         * bits/types.h: Fold copyright years.
22211         * bits/typesizes.h: Likewise.
22212         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
22213         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
22214         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
22215         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
22216         * time/time.h: Likewise.
22217
22218 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
22219
22220         [BZ #208]
22221         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
22222         in instead of returning them.  Return void.
22223         (__libc_mallinfo): Accumulate over all arenas.
22224         (__malloc_stats): Adjust for change in int_mallinfo interface.
22225
22226 2012-05-16  Roland McGrath  <roland@hack.frob.com>
22227
22228         [BZ #10375]
22229         * configure.in (NM): Add AC_CHECK_TOOL for it.
22230         (libc_extra_cflags): New substituted variable.
22231         Check for -fstack-protector being used implicitly.
22232         * configure: Regenerated.
22233         * config.make.in (config-extra-cflags): New variable,
22234         gets @libc_extra_cflags@.
22235         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
22236
22237         [BZ #10375]
22238         * configure.in: Check for _FORTIFY_SOURCE being predefined.
22239         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
22240         * configure: Regenerated.
22241         * config.make.in (CPPUNDEFS): New substituted variable.
22242         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
22243         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
22244         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
22245
22246 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22247
22248         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
22249         (mq_attr): Use __syscall_slong_t.
22250
22251 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22252
22253         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
22254         Check __x86_64__ instead of __WORDSIZE.
22255         (_STAT_VER_LINUX): Likewise.
22256         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
22257         __syscall_ulong_t and __syscall_slong_t.
22258         (stat64): Likewise.
22259
22260 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22261
22262         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
22263
22264 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22265
22266         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
22267
22268 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22269
22270         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
22271         __syscall_ulong_t.
22272
22273         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
22274         include <bits/wordsize.h>.  Check __x86_64__ instead of
22275         __WORDSIZE.
22276         (greg_t): Use "__extension__ long long int" if __x86_64__ is
22277         defined.
22278         (mcontext_t): Replace "unsigned long" with "unsigned long long".
22279
22280         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
22281         include <bits/wordsize.h>.  Check __x86_64__ instead of
22282         __WORDSIZE.
22283         (user_regs_struct): Use "__extension__ unsigned long long"
22284         instead of "unsigned long" if __x86_64__ is defined.
22285         (user): Likewise.  Pad after pointer field if __ILP32__ is
22286         defined.
22287
22288 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
22289
22290         * configure.in (makeinfo): Require version 4.5 or later.  Allow
22291         versions 5 to 9.
22292         * configure: Regenerated.
22293         * manual/install.texi (texinfo): Increase version requirement to
22294         4.5 or later.
22295         * INSTALL: Regenerated.
22296
22297         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
22298
22299 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22300
22301         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
22302
22303         * sysdeps/x86_64/x32/ffs.c: New file.
22304
22305         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
22306         __syscall_ulong_t.
22307         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
22308         defined.  Use __syscall_ulong_t.
22309         (shminfo): Use __syscall_ulong_t.
22310         (shm_info): Likewise.
22311
22312         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
22313         __syscall_ulong_t.
22314
22315         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
22316         <bits/wordsize.h>.
22317         (msgqnum_t): Use __syscall_ulong_t.
22318         (msglen_t): Likewise.
22319         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
22320         __syscall_ulong_t.
22321
22322         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
22323         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
22324
22325         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
22326
22327         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
22328         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
22329
22330         * sysvipc/sys/msg.h (msgbuf): Replace long int with
22331         __syscall_slong_t.
22332
22333         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
22334         include <bits/wordsize.h>.  Check __x86_64__ instead of
22335         __WORDSIZE.
22336
22337         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
22338         "unsigned long long int" if __x86_64__ is defined.
22339         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
22340
22341         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
22342         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
22343         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
22344
22345         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
22346         <stdint.h>.
22347         (GET_PC): Cast to uintptr_t first.
22348         (GET_FRAME): Likewise.
22349         (GET_STACK): Likewise.
22350
22351         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
22352         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
22353         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
22354         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
22355         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
22356         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
22357         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
22358         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
22359         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
22360         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
22361         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
22362         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
22363         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
22364         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
22365         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
22366         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
22367         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
22368         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
22369         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
22370         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
22371         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
22372         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
22373         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
22374         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
22375         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
22376         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
22377         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
22378         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
22379         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
22380
22381 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
22382
22383         * Makerules (+depfiles): Also collect depfiles from .oS in
22384         $(extra-objs).
22385         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
22386         .oS, $(libnldbl-routines)).
22387
22388         * Makerules (native-compile-mkdep-flags): Define.
22389         * sunrpc/Makefile (extra-objs): Add $(addprefix
22390         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
22391         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
22392         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
22393         calling $(make-target-directory).
22394
22395 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22396
22397         * bits/types.h (__snseconds_t): Removed.
22398         * time/time.h (struct timespec): Replace __snseconds_t with
22399         __syscall_slong_t.
22400         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
22401         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
22402         Likewise.
22403         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22404         (__SNSECONDS_T_TYPE): Likewise.
22405         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22406         (__SNSECONDS_T_TYPE): Likewise.
22407         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22408         (__SNSECONDS_T_TYPE): Likewise.
22409
22410 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22411
22412         * sysdeps/mach/hurd/bits/typesizes.h
22413         (__SYSCALL_SLONG_TYPE): New macro.
22414         (__SYSCALL_ULONG_TYPE): Likewise.
22415
22416 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22417
22418         * bits/types.h (__syscall_slong_t): New type.
22419         (__syscall_ulong_t): Likewise.
22420
22421         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
22422         (__SYSCALL_ULONG_TYPE): Likewise.
22423         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22424         (__SYSCALL_SLONG_TYPE): Likewise.
22425         (__SYSCALL_ULONG_TYPE): Likewise.
22426         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22427         (__SYSCALL_SLONG_TYPE): Likewise.
22428         (__SYSCALL_ULONG_TYPE): Likewise.
22429         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22430         (__SYSCALL_SLONG_TYPE): Likewise.
22431         (__SYSCALL_ULONG_TYPE): Likewise.
22432
22433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22434
22435         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
22436         Add sigaltstack-offsets.sym.
22437         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
22438         <sigaltstack-offsets.h>.
22439         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
22440         longjmp_msg pointer.
22441         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
22442         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
22443         signal stack.
22444         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
22445
22446 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
22447
22448         * elf/stackguard-macros.h: Remove file.
22449         * sysdeps/generic/stackguard-macros.h: New file.
22450         * sysdeps/i386/stackguard-macros.h: Likewise.
22451         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
22452         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
22453         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
22454         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
22455         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
22456         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
22457         * sysdeps/x86_64/stackguard-macros.h: Likewise.
22458         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
22459         <elf/stackguard-macros.h>.
22460
22461         [BZ #14109]
22462         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
22463         __aligned__ in attribute.
22464         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
22465         (gregset_t): Likewise.
22466
22467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22468
22469         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
22470         * sysdeps/x86_64/64/Implies-after: Here.  New file.
22471         * sysdeps/x86_64/x32/Implies-after: New file.
22472
22473 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22474
22475         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
22476         and access return value for _dl_profile_fixup.  Use R10_LP to
22477         load frame size.
22478
22479 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22480
22481         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
22482
22483 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22484
22485         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
22486         * sysdeps/x86_64/x32/sysdep.h: New file.
22487
22488 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22489
22490         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
22491         * sysdeps/x86_64/setjmp.S: Likewise.
22492
22493 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22494
22495         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
22496         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
22497         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
22498         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
22499         remove unused global constant.
22500
22501 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
22502
22503         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
22504         include of <not-cancel.h>.
22505
22506 2012-05-15  Roland McGrath  <roland@hack.frob.com>
22507
22508         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
22509
22510 2012-05-15  Jeff Law  <law@redhat.com>
22511             Andreas Jaeger  <aj@suse.de>
22512
22513         [BZ #13594]
22514         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
22515         out from...
22516         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
22517         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
22518         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
22519         code changing __hst_map_handle.map.
22520
22521 2012-05-15  Roland McGrath  <roland@hack.frob.com>
22522
22523         * configure.in (sysnames): Look for Implies-before and Implies-after
22524         files.
22525         * configure: Regenerated.
22526
22527 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22528
22529         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
22530         8-byte data alignment with LP_SIZE alignment.
22531
22532 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22533
22534         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
22535         into R10_LP.
22536
22537 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22538
22539         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
22540
22541 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22542
22543         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
22544         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
22545         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
22546         Likewise.
22547         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
22548
22549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22550
22551         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
22552         (stackinfo_sub_sp): Likewise.
22553
22554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22555
22556         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
22557         RAX_LP.
22558
22559 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22560
22561         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
22562         into R*_LP.
22563
22564 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22565
22566         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
22567         sizes into R*_LP.
22568
22569 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22570
22571         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
22572
22573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22574
22575         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
22576         into R11_LP and load __x86_64_shared_cache_size_half into
22577         R8_LP.
22578
22579 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22580
22581         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
22582         R8_LP.
22583
22584 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22585
22586         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
22587         logb for POWER7.
22588         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
22589         logbf for POWER7.
22590         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
22591         logbl for POWER7.
22592         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
22593         powerpc32/power7/fpu/s_logb.c via #include.
22594         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
22595         powerpc32/power7/fpu/s_logbf.c via #include.
22596         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
22597         powerpc32/power7/fpu/s_logbl.c via #include.
22598
22599 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
22600
22601         * README.libm: Remove file.
22602
22603 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22604
22605         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
22606         count for x32.  Use R*_LP and omit operand-size suffix.
22607
22608 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22609
22610         * shlib-versions: Move x86_64-.*-linux.* entries to ...
22611         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
22612         * sysdeps/x86_64/x32/shlib-versions: New file.
22613
22614 2012-05-14  Roland McGrath  <roland@hack.frob.com>
22615
22616         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
22617         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
22618         Use _dl_fatal_printf instead.
22619
22620 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
22621
22622         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
22623         set if not set by the user.  Do not allow for being unset.
22624         * sysdeps/unix/sysv/linux/configure: Regenerated.
22625
22626 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22627
22628         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
22629         the `q' suffix from lea and replace .quad with ASM_ADDR.
22630
22631 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22632
22633         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
22634         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
22635         instead of $17.
22636         (PTR_DEMANGLE): Likewise.
22637
22638 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22639
22640         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
22641         (LP_OP): Likewise.
22642         (ASM_ADDR): Likewise.
22643         (RAX_LP): Likewise.
22644         (RBP_LP): Likewise.
22645         (RBX_LP): Likewise.
22646         (RCX_LP): Likewise.
22647         (RDI_LP): Likewise.
22648         (RSI_LP): Likewise.
22649         (RSP_LP): Likewise.
22650         (R8_LP): Likewise.
22651         (R9_LP): Likewise.
22652         (R10_LP): Likewise.
22653         (R10_LP): Likewise.
22654         (R11_LP): Likewise.
22655         (R12_LP): Likewise.
22656         (R13_LP): Likewise.
22657         (R14_LP): Likewise.
22658         (R15_LP): Likewise.
22659
22660 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22661
22662         * sysdeps/x86_64/x32/dl-machine.h: New file.
22663
22664 2012-05-14  Andreas Jaeger  <aj@suse.de>
22665
22666         * manual/Makefile (subdir): Remove export of subdir.
22667         (all): Remove target.
22668         (.PHONY): Remove all from list.
22669         (mkinstalldirs): Remove.
22670         (.PHONY): Remove installdirs from list.
22671         ($(inst_infodir)/libc.info): Use make-target-directory.
22672         (installdirs): Remove.
22673         (subdir_%): Remove.
22674         (glibc-targets): Remove.
22675         (lib): Remove.
22676         (stubs): Remove.
22677         ($(objpfx)stubs ../po/manual.pot): Remove.
22678         ($(objpfx)stamp%): Remove.
22679         (make-target-directory): Remove.
22680         (subdir_install): Remove.
22681         (routines): Remove.
22682         (aux): Remove.
22683         (sources): Remove.
22684         (objects): Remove.
22685         (headers): Remove.
22686
22687         [BZ #13750]
22688         * manual/.gitignore: Remove, it's not needed anymore.
22689         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
22690         all files in it.
22691         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
22692         directory.
22693         (texis): Renamed to $(objpfx)texis.
22694         (texis-path): New, contains path to generated files.
22695         (chapters.%): Use texis-path for complete path, add extra argument
22696         libc-texinfo.sh.
22697         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
22698         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
22699         (summary,texi, stamp-summary): Use complete path of
22700         files. Generate files in build dir.
22701         (dir-add.texi): Build in build dir.
22702         (libm-err.texi,stamp-libm-err): Likewise.
22703         (version.texi, stamp-version): Likewise.
22704         (.%c.texi): Likewise.
22705         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
22706         (mostlyclean): Remove target.
22707         (realclean): Remove target.
22708         (generated): Add new variable with contents from mostlyclean and
22709         realclean, remove entries duplicated in common-mostlyclean, add
22710         stamp-libm-err and stamp-version.
22711         (generated-dirs): Add libc directory.
22712         ($(inst_infodir)/libc.info): Install files from build dir.
22713
22714         * manual/install.texi (Configuring and compiling): Adjust since
22715         the info files are not part of the tar ball anymore.
22716
22717 2012-05-14  Andreas Jaeger  <aj@suse.de>
22718
22719         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
22720         variable.
22721
22722 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
22723
22724         [BZ #13717]
22725         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22726         to 2.2.0 where earlier.
22727         * sysdeps/unix/sysv/linux/configure: Regenerated.
22728         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
22729         Remove conditional code.
22730         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
22731         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
22732         Remove conditional code.
22733         [!__NR_lchown]: Likewise.
22734         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
22735         [__NR_lchown]: Likewise.
22736         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
22737         comment referencing __ASSUME_LCHOWN_SYSCALL.
22738         * sysdeps/unix/sysv/linux/i386/sigaction.c
22739         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
22740         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
22741         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
22742         Remove conditional code.
22743         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
22744         (__protocol_available): Remove #if 0 code.
22745         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
22746         conditional code.
22747         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
22748         * sysdeps/unix/sysv/linux/kernel-features.h
22749         (__ASSUME_GETCWD_SYSCALL): Don't define.
22750         (__ASSUME_REALTIME_SIGNALS): Likewise.
22751         (__ASSUME_PREAD_SYSCALL): Likewise.
22752         (__ASSUME_PWRITE_SYSCALL): Likewise.
22753         (__ASSUME_POLL_SYSCALL): Likewise.
22754         (__ASSUME_LCHOWN_SYSCALL): Likewise.
22755         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
22756         non-SPARC.
22757         (__ASSUME_SIOCGIFNAME): Don't define.
22758         (__ASSUME_MSG_NOSIGNAL): Likewise.
22759         (__ASSUME_SENDFILE): Define unconditionally.
22760         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
22761         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
22762         conditional code.
22763         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
22764         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
22765         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
22766         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
22767         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
22768         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
22769         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
22770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
22771         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
22772         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22774         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
22775         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
22777         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
22778         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22780         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
22781         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
22783         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
22784         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
22786         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
22787         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
22789         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
22790         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
22792         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
22793         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22794         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
22795         Remove conditional code.
22796         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22797         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
22798         Remove conditional code.
22799         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22800         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
22801         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
22802         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
22803         Remove conditional code.
22804         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22805         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
22806         Remove conditional code.
22807         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22808         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
22809         Remove conditional code.
22810         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22811         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
22812         Remove conditional code.
22813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
22814         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
22815         Remove conditional code.
22816         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22817         * sysdeps/unix/sysv/linux/sh/pwrite64.c
22818         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
22819         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
22820         * sysdeps/unix/sysv/linux/sigaction.c
22821         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
22822         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
22823         * sysdeps/unix/sysv/linux/sigpending.c
22824         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
22825         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
22826         * sysdeps/unix/sysv/linux/sigprocmask.c
22827         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
22828         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
22829         * sysdeps/unix/sysv/linux/sigsuspend.c
22830         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
22831         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
22832         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
22833         (__libc_missing_rt_sigs): Remove.
22834         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
22835         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
22836         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
22837         Remove conditional code.
22838         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
22839         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
22840         return 1.
22841         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
22842         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
22843         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
22844         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
22845
22846 2012-05-14  Andreas Jaeger  <aj@suse.de>
22847
22848         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
22849         it's not used in glibc.
22850         (__coshm1): Likewise.
22851         (__acosh1p): Likewise.
22852         (__sgn): Likewise.
22853
22854         * manual/string.texi (Copying and Concatenation): Add missing
22855         variable in concat example.
22856         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
22857
22858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22859
22860         [BZ #14103]
22861         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
22862         __builtin_clzl with __builtin_clzll.
22863
22864 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22865
22866         [BZ #14104]
22867         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
22868         libc_freeres_ptr.
22869
22870 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22871
22872         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
22873         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
22874         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
22875         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
22876
22877 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
22878
22879         * NEWS: Update ia64 info.
22880
22881 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
22882
22883         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
22884         used as bcopy.
22885
22886 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
22887
22888         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
22889         * sysdeps/unix/syscalls.list (dup3): Likewise.
22890         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
22891         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
22892
22893 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22894
22895         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
22896         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
22897
22898 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22899
22900         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
22901         thread pointer.
22902         (TLS_IE): Use mov/add instead of movq/addq to load thread
22903         pointer.
22904         (TLS_GD_PREFIX): New.
22905         (TLS_GD): Use it.
22906
22907 2012-05-11  David S. Miller  <davem@davemloft.net>
22908
22909         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
22910         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
22911         (_FPU_SETCW): Likewise.
22912
22913 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
22914
22915         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
22916         is 32-byte aligned.
22917
22918 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
22919
22920         [BZ #11837]
22921         * iconvdata/gb18030.c: Update tables.
22922         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
22923         characters specially.
22924         (BODY for TO_LOOP): Add encoding of missing ranges.
22925
22926 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
22927
22928         [BZ #13673]
22929         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
22930         * sysdeps/mach/hurd/dup3.c: Likewise.
22931         * sysdeps/mach/hurd/readlinkat.c: Likewise.
22932         * sysdeps/powerpc/memmove.c:: Likewise.
22933
22934 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
22935
22936         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
22937         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
22938
22939 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
22940
22941         * elf/elf.h (R_X86_64_RELATIVE64): New.
22942         (R_X86_64_NUM): Updated.
22943         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22944         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
22945         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
22946         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
22947         tst-quad1pie tst-quad2pie
22948         (modules-names): Add tst-quadmod1 tst-quadmod2.
22949         ($(objpfx)tst-quad1): New dependency.
22950         ($(objpfx)tst-quad2): Likewise.
22951         ($(objpfx)tst-quad1pie): Likewise.
22952         ($(objpfx)tst-quad2pie): Likewise.
22953         * sysdeps/x86_64/tst-quad1.c: New file.
22954         * sysdeps/x86_64/tst-quad1pie.c: New file.
22955         * sysdeps/x86_64/tst-quad2.c: Likewise.
22956         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
22957         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
22958         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
22959         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
22960         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
22961
22962 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22963
22964         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
22965         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
22966         * streams/stropts.h (t_scalar_t): Define type.
22967
22968         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
22969         (_PATH_PRESERVE): Set to "/var/lib".
22970         (_PATH_RWHODIR): Set to "/var/spool/rwho".
22971
22972         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
22973         instead of int.
22974
22975         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
22976         if __dir_mkfile succeeded.
22977
22978         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
22979         checking for _hurd_dtablesize.  Unlock it right after having
22980         finished _hurd_dtable allocation.
22981
22982 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
22983
22984         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
22985         * sysdeps/mach/hurd/configure: Regenerated.
22986         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
22987         special-casing to...
22988         * sysdeps/gnu/configure.in: ... this new file.
22989         * sysdeps/unix/sysv/linux/configure: Regenerated.
22990         * sysdeps/gnu/configure: New generated file.
22991
22992         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
22993         for Linux: use nsec instead of usec, as well as:
22994         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
22995         members of type struct timespec.
22996         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
22997         New macros.
22998         (struct stat64): Likewise.
22999         (_STATBUF_ST_NSEC): New macro.
23000         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
23001
23002         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
23003         __strtoul_internal rather than strtoul.
23004
23005 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23006
23007         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
23008         and reject them.
23009
23010 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23011
23012         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
23013         which preserves existing values.
23014         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
23015
23016 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23017
23018         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
23019         TIMEOUT values.  Return EINVAL for NFDS values either negative or
23020         greater than FD_SETSIZE.
23021
23022 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23023
23024         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
23025         allocated, call __vm_protect to finish enabling the existing space, and
23026         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
23027         allocate the remainder.
23028
23029 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23030
23031         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
23032         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
23033
23034 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23035
23036         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
23037         sysdeps/mach/hurd/readlink.c.
23038
23039         * posix/tst-sysconf.c (posix_options): Only use
23040         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
23041         _POSIX_SYNCHRONIZED_IO when they are defined
23042         * sysdeps/mach/hurd/bits/posix_opt.h:
23043         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
23044         (_XOPEN_REALTIME): Undefine macro.
23045         (_XOPEN_REALTIME_THREADS): Undefine macro.
23046         (_XOPEN_SHM): Undefine macro.
23047         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
23048         macro to -1.
23049         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
23050         macro to -1.
23051         (_POSIX_ASYNC_IO): Undefine macro.
23052         (_POSIX_PRIORITIZED_IO): Undefine macro.
23053         (_POSIX_SPIN_LOCKS): Define macro to -1.
23054
23055         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
23056         SA_NODEFER, SA_RESETHAND.
23057         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
23058         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
23059         F_DUPFD_CLOEXEC.
23060
23061 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23062
23063         * elf/Makefile (pldd-modules): Define unconditionally.
23064
23065 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23066
23067         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
23068
23069 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23070
23071         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
23072         Return ENOENT when name is empty.
23073         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
23074
23075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23076
23077         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
23078
23079         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
23080
23081 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23082
23083         Fix mlock in all cases except non-readable pages.
23084         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
23085         instead of VM_PROT_ALL as parameter to __vm_wire function.
23086
23087         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
23088         (__mkdir): When path is `/', just fail with EEXIST.
23089         * sysdeps/mach/hurd/mkdirat.c: Likewise.
23090
23091 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23092
23093         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
23094         <sys/uio.h> (for writev).
23095         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
23096         and <sys/param.h> (for MIN).
23097
23098 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23099
23100         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
23101         REQUESTED_TIME.  Properly set the remaining time and return EINTR
23102         if interrupted.
23103
23104 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23105
23106         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
23107         Depend on against $(link-rpcuserlibs).
23108
23109 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23110
23111         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
23112         (__libc_stack_end): Do not use attribute_relro.
23113         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
23114         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
23115         to libthread-provided value.
23116         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
23117         attribute_relro.
23118
23119 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23120
23121         [BZ #3748]
23122         * bits/libc-lock.h (__libc_once_get): New macro.
23123         * sysdeps/mach/bits/libc-lock.h: Likewise.
23124         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
23125         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
23126         instead of using implementation details.
23127
23128         * libio/fileops.c: Unconditionally include <kernel-features.h>.
23129         * libio/freopen.c: Likewise.
23130         * libio/freopen64.c: Likewise.
23131         * misc/syslog.c: Likewise.
23132         * nscd/connections.c: Likewise.
23133         * nscd/netgroupcache.c: Likewise.
23134         * sysdeps/posix/getcwd.c: Likewise.
23135
23136 2012-05-10  Roland McGrath  <roland@hack.frob.com>
23137
23138         * math/w_ilogbf.c: Add #include <limits.h>.
23139
23140 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23141
23142         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
23143         path instead of returning without unlocking.
23144
23145         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
23146         immediate-write ioctls.
23147         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
23148
23149 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23150
23151         * sysdeps/mach/hurd/i386/init-first.c (init): Use
23152         __builtin_frame_address instead of making assumptions about the
23153         location of the return address relative to DATA.  Force early load of
23154         the return address.
23155         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
23156         __builtin_frame_address.
23157
23158         dup3 for GNU Hurd.
23159         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
23160         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
23161         implement dup3 and do some further code clean-ups.
23162         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
23163         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
23164
23165 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23166
23167         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
23168
23169         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
23170         HURD_CRITICAL_END around holding _hurd_dtable_lock.
23171         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
23172         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
23173         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
23174         d->port.lock.
23175
23176         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
23177         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
23178         when handler == SIG_ERR, not when handler != SIG_ERR.
23179
23180 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23181
23182         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
23183         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
23184         definitions.
23185
23186         accept4 for GNU Hurd.
23187         * include/sys/socket.h (__libc_accept4): New prototype.
23188         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
23189         to implement __libc_accept4.
23190         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
23191         __libc_accept4.
23192         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
23193
23194         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
23195         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
23196         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
23197         signal-defines.sym.
23198
23199 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23200
23201         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
23202
23203 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23204
23205         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
23206         assertion on O_CLOEXEC flag.
23207         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
23208         * hurd/intern-fd.c: Likewise.
23209         * hurd/port2fd.c: Likewise.
23210
23211 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23212
23213         [BZ #3906]
23214         * bits/in.h (IPV6_PKTINFO): Define new macro.
23215         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
23216
23217 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23218
23219         [BZ #13954]
23220         [BZ #13955]
23221         [BZ #13956]
23222         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
23223         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
23224         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
23225         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
23226         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23227         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
23228         * math/libm-test.inc (logb_test) : Additional logb tests.
23229
23230 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
23231             Andreas Jaeger  <aj@suse.de>
23232
23233         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
23234         * configure: Regenerated.
23235         * config.h.in (LINK_OBSOLETE_RPC): New macro.
23236         * config.make.in (link-obsolete-rpc): New substituted variable.
23237         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
23238         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
23239         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
23240         (shared-only-routines): Don't set it under [link-obsolete-rpc],
23241         so that libc.a contains the symbols.
23242         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
23243         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
23244         * sunrpc/auth_none.c: Likewise.
23245         * sunrpc/auth_unix.c: Likewise.
23246         * sunrpc/authdes_prot.c: Likewise.
23247         * sunrpc/authuxprot.c: Likewise.
23248         * sunrpc/clnt_gen.c: Likewise.
23249         * sunrpc/clnt_perr.c: Likewise.
23250         * sunrpc/clnt_raw.c: Likewise.
23251         * sunrpc/clnt_simp.c: Likewise.
23252         * sunrpc/clnt_tcp.c: Likewise.
23253         * sunrpc/clnt_udp.c: Likewise.
23254         * sunrpc/clnt_unix.c: Likewise.
23255         * sunrpc/des_crypt.c: Likewise.
23256         * sunrpc/des_soft.c: Likewise.
23257         * sunrpc/get_myaddr.c: Likewise.
23258         * sunrpc/key_call.c: Likewise.
23259         * sunrpc/key_prot.c: Likewise.
23260         * sunrpc/netname.c: Likewise.
23261         * sunrpc/pm_getmaps.c: Likewise.
23262         * sunrpc/pm_getport.c: Likewise.
23263         * sunrpc/pmap_clnt.c: Likewise.
23264         * sunrpc/pmap_prot.c: Likewise.
23265         * sunrpc/pmap_prot2.c: Likewise.
23266         * sunrpc/pmap_rmt.c: Likewise.
23267         * sunrpc/publickey.c: Likewise.
23268         * sunrpc/rpc_cmsg.c: Likewise.
23269         * sunrpc/rpc_common.c: Likewise.
23270         * sunrpc/rpc_dtable.c: Likewise.
23271         * sunrpc/rpc_prot.c: Likewise.
23272         * sunrpc/rpc_thread.c: Likewise.
23273         * sunrpc/rtime.c: Likewise.
23274         * sunrpc/svc.c: Likewise.
23275         * sunrpc/svc_auth.c: Likewise.
23276         * sunrpc/svc_raw.c: Likewise.
23277         * sunrpc/svc_run.c: Likewise.
23278         * sunrpc/svc_tcp.c: Likewise.
23279         * sunrpc/svc_udp.c: Likewise.
23280         * sunrpc/svc_unix.c: Likewise.
23281         * sunrpc/svcauth_des.c: Likewise.
23282         * sunrpc/xcrypt.c: Likewise.
23283         * sunrpc/xdr.c: Likewise.
23284         * sunrpc/xdr_array.c: Likewise.
23285         * sunrpc/xdr_float.c: Likewise.
23286         * sunrpc/xdr_intXX_t.c: Likewise.
23287         * sunrpc/xdr_mem.c: Likewise.
23288         * sunrpc/xdr_rec.c: Likewise.
23289         * sunrpc/xdr_ref.c: Likewise.
23290         * sunrpc/xdr_sizeof.c: Likewise.
23291         * sunrpc/xdr_stdio.c: Likewise.
23292
23293 2012-05-10  Roland McGrath  <roland@hack.frob.com>
23294
23295         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
23296         change.  Update copyright years.
23297
23298 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
23299
23300         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
23301
23302 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
23303             Joseph Myers  <joseph@codesourcery.com>
23304             Paul Pluzhnikov  <ppluzhnikov@google.com>
23305
23306         [BZ #14012]
23307         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
23308         requiring rpcgen.
23309         [cross-compiling] (extra-libs): Likewise.
23310         [cross-compiling] (extra-libs-others): Likewise.
23311         [cross-compiling] (librpcsvc-routines): Likewise.
23312         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
23313         [cross-compiling] (omit-deps): Likewise.
23314         (sunrpc-CPPFLAGS): New variable.
23315         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
23316         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
23317         (cross-rpcgen-objs): New variable.
23318         (extra-objs): Append $(cross-rpcgen-objs).
23319         ($(cross-rpcgen-objs)): New rule.
23320         ($(objpfx)cross-rpcgen): Likewise.
23321         (rpcgen-cmd): Define to use $(built-program-file).  Expand
23322         comment.
23323         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
23324         ($(objpfx)x%.stmp): Likewise.
23325         * sunrpc/proto.h [IS_IN_build] (_): Define.
23326         [IS_IN_build] (_libc_intl_domainname): Likewise.
23327
23328 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
23331         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
23332         and R_X86_64_TPOFF64.
23333
23334 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
23335
23336         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
23337         sysdeps/unix/sysv/syscalls.list.
23338         (stime): Likewise.
23339         (utime): Likewise.
23340         * sysdeps/unix/sysv/syscalls.list: Remove file.
23341
23342 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         [BZ #3440]
23345         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
23346         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
23347         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
23348         (__LC_IDENTIFICATION): Make these macros useful in #if
23349         expressions, as required by C99.
23350
23351 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
23352
23353         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
23354         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
23355         after this.
23356
23357 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23358
23359         * stdlib/longlong.h: Updated from GCC.
23360
23361 2012-05-09  Andreas Jaeger  <aj@suse.de>
23362
23363         * nscd/nscd.c (run_modes): Make named enum, reorder so that
23364         default is first entry.
23365         (run_mode): Set type.
23366         (main): Remove informal message about syslog.
23367         (options): Fix typo.
23368
23369         [BZ #14053]
23370         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
23371         to asm.
23372         (lrint): Likewise.
23373         (llrintf): Likewise.
23374         (llrint): Likewise.
23375         (rint): Likewise.
23376         (rintf): Likewise.
23377         (nearbyint): Likewise.
23378         (nearbyintf): Likewise.
23379
23380 2012-05-09  Andreas Jaeger  <aj@suse.de>
23381             Pedro Alves  <palves@redhat.com>
23382
23383         * nscd/nscd.c (run_mode): Use enum.
23384         (main): Cleanup coding style issue.
23385
23386 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
23387             Andreas Jaeger  <aj@suse.de>
23388
23389         * nscd/nscd.c (go_background): Replaced with...
23390         (run_mode): ... this.
23391         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
23392         (options): Add -F --foreground.
23393         (main): Implement it.
23394         (parse_opt): Parse it.
23395
23396 2012-05-09  Andreas Jaeger  <aj@suse.de>
23397
23398         [BZ #14083]
23399         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
23400         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
23401         -Wconversion warning.
23402         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
23403         Likewise.
23404
23405 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
23406
23407         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
23408         == 0.
23409         (LC_ALL): Use macro-int-constant.
23410         (LC_COLLATE): Likewise.
23411         (LC_CTYPE): Likewise.
23412         (LC_MESSAGES): Likewise.
23413         (LC_MONETARY): Likewise.
23414         (LC_NUMERIC): Likewise.
23415         (LC_TIME): Likewise.
23416         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
23417         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
23418         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23419         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
23420         Specify type.
23421         [C99-based standards] (float_t): Expect type.
23422         [C99-based standards] (double_t): Expect type.
23423         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
23424         type.
23425         [C99-based standards] (HUGE_VALL): Likewise.
23426         [C99-based standards] (INFINITY): Likewise.
23427         [C99-based standards] (NAN): Likewise.
23428         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
23429         [C99-based standards] (FP_NAN): Likewise.
23430         [C99-based standards] (FP_NORMAL): Likewise.
23431         [C99-based standards] (FP_SUBNORMAL): Likewise.
23432         [C99-based standards] (FP_ZERO): Likewise.
23433         [C99-based standards] (FP_FAST_FMA): Use
23434         optional-macro-int-constant.  Specify type.  Require == 1.
23435         [C99-based standards] (FP_FAST_FMAF): Likewise.
23436         [C99-based standards] (FP_FAST_FMAL): Likewise.
23437         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
23438         [C99-based standards] (FP_ILOGBNAN): Likewise.
23439         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
23440         Specify type.
23441         [C99-based standards] (MATH_ERREXCEPT): Likewise.
23442         [C99-based standards] (math_errhandling): Specify type.
23443         [ISO99 || ISO11] (signgam): Do not allow.
23444         [non-C99-based standards] (copysignf): Do not allow.
23445         [non-C99-based standards] (exp2f): Likewise.
23446         [non-C99-based standards] (log2f): Likewise.
23447         [non-C99-based standards] (modff): Allow.
23448         [non-C99-based standards] (erff): Do not allow.
23449         [non-C99-based standards] (erfcf): Likewise.
23450         [non-C99-based standards] (gammaf): Likewise.
23451         [non-C99-based standards] (hypotf): Likewise.
23452         [non-C99-based standards] (j0f): Likewise.
23453         [non-C99-based standards] (j1f): Likewise.
23454         [non-C99-based standards] (jnf): Likewise.
23455         [non-C99-based standards] (lgammaf): Likewise.
23456         [non-C99-based standards] (tgammaf): Likewise.
23457         [non-C99-based standards] (y0f): Likewise.
23458         [non-C99-based standards] (y1f): Likewise.
23459         [non-C99-based standards] (ynf): Likewise.
23460         [non-C99-based standards] (isnanf): Likewise.
23461         [non-C99-based standards] (acoshf): Likewise.
23462         [non-C99-based standards] (asinhf): Likewise.
23463         [non-C99-based standards] (atanhf): Likewise.
23464         [non-C99-based standards] (cbrtf): Likewise.
23465         [non-C99-based standards] (expm1f): Likewise.
23466         [non-C99-based standards] (ilogbf): Likewise.
23467         [non-C99-based standards] (log1pf): Likewise.
23468         [non-C99-based standards] (logbf): Likewise.
23469         [non-C99-based standards] (nextafterf): Likewise.
23470         [non-C99-based standards] (remainderf): Likewise.
23471         [non-C99-based standards] (rintf): Likewise.
23472         [non-C99-based standards] (scalbf): Likewise.
23473         [non-C99-based standards] (copysignl): Likewise.
23474         [non-C99-based standards] (exp2l): Likewise.
23475         [non-C99-based standards] (log2l): Likewise.
23476         [non-C99-based standards] (modfl): Allow.
23477         [non-C99-based standards] (erfl): Do not allow.
23478         [non-C99-based standards] (erfcl): Likewise.
23479         [non-C99-based standards] (gammal): Likewise.
23480         [non-C99-based standards] (hypotl): Likewise.
23481         [non-C99-based standards] (j0l): Likewise.
23482         [non-C99-based standards] (j1l): Likewise.
23483         [non-C99-based standards] (jnl): Likewise.
23484         [non-C99-based standards] (lgammal): Likewise.
23485         [non-C99-based standards] (tgammal): Likewise.
23486         [non-C99-based standards] (y0l): Likewise.
23487         [non-C99-based standards] (y1l): Likewise.
23488         [non-C99-based standards] (ynl): Likewise.
23489         [non-C99-based standards] (isnanl): Likewise.
23490         [non-C99-based standards] (acoshl): Likewise.
23491         [non-C99-based standards] (asinhl): Likewise.
23492         [non-C99-based standards] (atanhl): Likewise.
23493         [non-C99-based standards] (cbrtl): Likewise.
23494         [non-C99-based standards] (expm1l): Likewise.
23495         [non-C99-based standards] (ilogbl): Likewise.
23496         [non-C99-based standards] (log1pl): Likewise.
23497         [non-C99-based standards] (logbl): Likewise.
23498         [non-C99-based standards] (nextafterl): Likewise.
23499         [non-C99-based standards] (remainderl): Likewise.
23500         [non-C99-based standards] (rintl): Likewise.
23501         [non-C99-based standards] (scalbl): Likewise.
23502         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23503         [non-C99-based standards] (FP_*): Do not allow.
23504         [C99-based standards] (FP_*): Change to
23505         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
23506         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
23507         allow.
23508         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
23509         (SIG_ERR): Likewise.
23510         [X/Open-based standards] (SIG_HOLD): Likewise.
23511         (SIG_IGN): Likewise.
23512         (SIGABRT): Use macro-int-constant.  Specify type.  Require
23513         positive value.
23514         (SIGFPE): Likewise.
23515         (SIGILL): Likewise.
23516         (SIGINT): Likewise.
23517         (SIGSEGV): Likewise.
23518         (SIGTER): Likewise.
23519         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
23520         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
23521         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
23522         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
23523         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
23524         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
23525         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
23526         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
23527         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
23528         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
23529         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
23530         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
23531         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
23532         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
23533         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
23534         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
23535         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
23536         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
23537         [X/Open-based standards] (SIGTRAP): Likewise.
23538         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
23539         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
23540         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
23541         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
23542         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
23543         allow.
23544
23545 2012-05-08  Ian Wienand  <ianw@vmware.com>
23546
23547         [BZ #14080]
23548         * time/tzset.c (__tzset_parse_tz): Update default rules for
23549         daylight time changes in the Energy Policy Act of 2005.
23550
23551 2012-05-09  Andreas Jaeger  <aj@suse.de>
23552
23553         [BZ #13983]
23554         * elf/ldconfig.c (parse_conf): Change string to make clear that
23555         ldconfig only issued a warning if ld.so.conf does not exist.
23556
23557 2012-05-08  David S. Miller  <davem@davemloft.net>
23558
23559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
23560         movxtod instead of popping the value on the stack.
23561
23562         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23563
23564 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
23565
23566         * config.h.in: Add HAVE_ARM_PCS_VFP.
23567
23568 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
23569
23570         [BZ #13979]
23571         * include/features.h: Warn if user requests __FORTIFY_SOURCE
23572         checking but the checks are disabled for any reason.
23573
23574 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23575
23576         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
23577         and ELF64_R_TYPE with ELFW(R_TYPE).
23578
23579 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
23580
23581         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
23582         (ulimit): Likewise.
23583
23584         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
23585         (settimeofday): Likewise.
23586
23587 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
23588
23589         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
23590         a struct th_u2 inside the union, and move tu_block/tu_code into
23591         a new th_u3 union of tu_block/tu_code inside of that.  Move
23592         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
23593         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
23594         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
23595         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
23596         (th_stuff): Change to th_u1.tu_stuff.
23597         (th_data): Define.
23598         (th_msg): Change to th_u1.th_u2.tu_data.
23599
23600 2012-05-07  David S. Miller  <davem@davemloft.net>
23601
23602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23603
23604         [BZ #14074]
23605         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
23606         (SETUP_PIC_REG): Use it.
23607         (SETUP_PIC_REG_LEAF): Use it.
23608
23609 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
23610
23611         [BZ #13885]
23612         [BZ #13923]
23613         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
23614         USE_AS_EXPM1L.
23615         (EXPL_FINITE): Likewise.
23616         (FLDLOG): Likewise.
23617         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
23618         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
23619         e_expl.S.
23620         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
23621         USE_AS_EXPM1L.
23622         (EXPL_FINITE): Likewise.
23623         (FLDLOG): Likewise.
23624         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
23625         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
23626         e_expl.S.
23627         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
23628         test of -max_value argument for long double.
23629         * sysdeps/i386/fpu/libm-test-ulps: Update.
23630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23631
23632 2012-05-06  David S. Miller  <davem@davemloft.net>
23633
23634         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
23635         quad soft-float symbols whose references which are compiler
23636         generated.
23637         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
23638
23639 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
23640
23641         [BZ #13884]
23642         [BZ #13914]
23643         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
23644         USE_AS_EXP10L.
23645         (EXPL_FINITE): Likewise.
23646         (FLDLOG): Likewise.
23647         (c0): Likewise.
23648         (c1): Likewise.
23649         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
23650         Adjust comments for base varying.
23651         (__expl_finite): Change alias to EXPL_FINITE.
23652         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
23653         e_expl.S.
23654         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
23655         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23656         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23657         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
23658         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
23659         USE_AS_EXP10L.
23660         (EXPL_FINITE): Likewise.
23661         (FLDLOG): Likewise.
23662         (c0): Likewise.
23663         (c1): Likewise.
23664         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
23665         Adjust comments for base varying.
23666         (__expl_finite): Change alias to EXPL_FINITE.
23667         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
23668         tests for bugs.
23669         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23670
23671         [BZ #14064]
23672         * math/libm-test.inc (check_float_internal): Correct ulp
23673         calculation for subnormal expected results.
23674
23675 2012-05-06  Andreas Jaeger  <aj@suse.de>
23676
23677         * Makeconfig (+math-flags): New, set to -frounding-math.
23678         (+cflags): Add +math-flags so that all of glibc gets compiled with
23679         it.
23680
23681         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
23682
23683 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
23684
23685         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
23686         Disable one test.
23687
23688         [BZ #13787]
23689         [BZ #13922]
23690         [BZ #14036]
23691         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
23692         (__ieee754_expl): Allow for and saturate large arguments.
23693         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
23694         (u_threshold): Likewise.
23695         (__exp): Call __ieee754_exp before checking for overflow and
23696         underflow.
23697         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
23698         (u_threshold): Likewise.
23699         (__expf): Call __ieee754_expf before checking for overflow and
23700         underflow.
23701         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
23702         (u_threshold): Likewise.
23703         (__expl): Call __ieee754_expl before checking for overflow and
23704         underflow.
23705         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
23706         (__ieee754_expl): Allow for and saturate large arguments.
23707         * math/libm-test.inc (exp_test): Add another test.  Do not allow
23708         missing overflow exception on overflow.
23709         (expm1_test): Do not allow missing overflow exception on overflow.
23710
23711         * sysdeps/i386/fpu/e_expl.c: Move to ...
23712         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
23713         rather than using inline asm.
23714         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
23715         * sysdeps/x86_64/fpu/e_expl.S: Copy from
23716         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
23717
23718         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
23719         (nice): Likewise.
23720         (poll): Likewise.
23721         (signal): Likewise.
23722         (time): Likewise.
23723         (times): Likewise.
23724
23725 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
23726
23727         * sysdeps/unix/syscalls.list (adjtime): Add entry from
23728         sysdeps/unix/common/syscalls.list.
23729         (fchmod): Likewise.
23730         (fchown): Likewise.
23731         (ftruncate): Likewise.
23732         (getrusage): Likewise.
23733         (gettimeofday): Likewise.
23734         (setpgid): Likewise.
23735         (setregid): Likewise.
23736         (setreuid): Likewise.
23737         (sigaction): Likewise.
23738         (truncate): Likewise.
23739         (vhangup): Likewise.
23740         * sysdeps/unix/common/syscalls.list: Remove file.
23741         * sysdeps/unix/bsd/Implies: Don't include unix/common.
23742         * sysdeps/unix/sysv/linux/Implies: Likewise.
23743
23744 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
23745
23746         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
23747         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
23748         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
23749         Moved to ...
23750         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
23751         Here.
23752         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
23753         to ...
23754         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
23755         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
23756         to ...
23757         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
23758         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
23759         to ...
23760         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
23761         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
23762         to ...
23763         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
23764         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
23765         to ...
23766         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
23767         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
23768         to ...
23769         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
23770         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
23771         to ...
23772         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
23773         Here.
23774         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
23775         to ...
23776         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
23777         Here.
23778         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
23779         to ...
23780         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
23781         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
23782         Moved to ...
23783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
23784         Here.
23785         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
23786         to ...
23787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
23788
23789 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
23790
23791         * sysdeps/unix/common/bits/dirent.h: Remove file.
23792         * sysdeps/unix/common/bits/fcntl.h: Likewise.
23793
23794         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
23795         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
23796         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
23797         * sysdeps/unix/bsd/isatty.c: Likewise.
23798         * sysdeps/unix/bsd/tcdrain.c: Likewise.
23799         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
23800         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
23801
23802 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23803
23804         [BZ #13563]
23805         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
23806         long double comparison inaccuracies.
23807         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
23808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23809
23810 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
23811
23812         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
23813         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
23814
23815 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
23816
23817         [BZ #14049]
23818         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
23819         nonzero digits before rounding a hex value.
23820         * stdlib/tst-strtod.c (tests): Add another test.
23821
23822 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23823
23824         * sysdeps/s390/fpu/libm-test-ulps: Update.
23825
23826 2012-05-03  Andreas Jaeger  <aj@suse.de>
23827
23828         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
23829         does not get optimized out.
23830         (malloc_opt_barrier): New.
23831
23832 2012-05-03  Andreas Jaeger  <aj@suse.de>
23833             Roland McGrath  <roland@hack.frob.com>
23834
23835         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
23836         intermediate file deletion.
23837         (generated): Add .symlist files.
23838
23839 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
23840
23841         [BZ #13775]
23842         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
23843         Redirect under this condition.
23844         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
23845         [__USE_GNU] (__dprintf_chk): Not under this condition.
23846         [__USE_GNU] (__vdprintf_chk): Likewise.
23847         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
23848         under this condition.
23849         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
23850         [__USE_XOPEN2K8] (dprintf): Define under this condition.
23851         [__USE_XOPEN2K8] (vdprintf): Likewise.
23852         [__USE_GNU] (__dprintf_chk): Not under this condition.
23853         [__USE_GNU] (__vdprintf_chk): Likewise.
23854         [__USE_GNU] (dprintf): Likewise.
23855         [__USE_GNU] (vdprintf): Likewise.
23856
23857 2012-05-03  Roland McGrath  <roland@hack.frob.com>
23858
23859         * elf/Makefile (common-generated): Set this instead of generated for
23860         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
23861         $(all-built-dso)-derived lists.
23862
23863 2012-05-03  Andreas Jaeger  <aj@suse.de>
23864
23865         * sysdeps/i386/fpu/libm-test-ulps: Update.
23866
23867         * FAQ: Removed.
23868         * FAQ.in: Likewise.
23869         * scripts/gen-FAQ.pl: Likewise.
23870         * manual/install.texi (Installation): Point to online location of
23871         FAQ.
23872         * Makefile (files-for-dist): Remove FAQ.
23873         (FAQ): Remove.
23874
23875 2012-05-02  Allan McRae  <allan@archlinux.org>
23876
23877         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
23878         (LDFLAGS-reldepmod5.so): Likewise.
23879         (LDFLAGS-reldep6mod1.so): Likewise.
23880         (LDFLAGS-reldep6mod4.so): Likewise.
23881         (LDFLAGS-reldep8mod3.so): Likewise.
23882         (LDFLAGS-unload4mod1.so): Likewise.
23883         (LDFLAGS-unload4mod2.so): Likewise.
23884         (LDFLAGS-tst-initorder): Likewise.
23885         (LDFLAGS-tst-initordera2.so): Likewise.
23886         (LDFLAGS-tst-initordera3.so): Likewise.
23887         (LDFLAGS-tst-initordera4.so): Likewise.
23888         (LDFLAGS-tst-initorderb2.so): Likewise.
23889         (LDFLAGS-noload): Likewise.
23890         (LDFLAGS-next): Likewise.
23891         (LDFLAGS-order2mod1.so): Likewise.
23892         (LDFLAGS-order2mod2.so): Likewise.
23893         (LDFLAGS-tst-initorder2): Likewise.
23894         (LDFLAGS-tst-initorder2a.so): Likewise.
23895         (LDFLAGS-tst-initorder2b.so): Likewise.
23896         (LDFLAGS-tst-initorder2c.so): Likewise.
23897         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
23898
23899 2012-05-02  David S. Miller  <davem@davemloft.net>
23900
23901         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23902
23903 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
23904
23905         [BZ #14055]
23906         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
23907
23908 2012-05-02  Andreas Jaeger  <aj@suse.de>
23909
23910         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
23911         since we manipulate rounding mode.
23912         (CPPFLAGS-test-idouble.c): Likewise.
23913         (CPPFLAGS-test-ifloat.c): Likewise.
23914         (CFLAGS-test-ldouble.c): Likewise.
23915         (CFLAGS-test-double.c): Likewise.
23916         (CFLAGS-test-float.c): Likewise.
23917         (CFLAGS-test-misc.c): Likewise.
23918         (CFLAGS-test-test-fenv.c): Likewise.
23919
23920 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23921
23922         [BZ #2550]
23923         [BZ #2570]
23924         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
23925         comparisons to determine direction to adjust input.
23926
23927 2012-05-01  Roland McGrath  <roland@hack.frob.com>
23928
23929         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
23930         output to the target.
23931
23932         * scripts/localplt.awk: New file.
23933         * elf/Makefile ($(objpfx)check-localplt): Target removed.
23934         (check-localplt-CFLAGS): Variable removed.
23935         ($(all-built-dso:=.jmprel)): New static pattern rule.
23936         (generated): Add those targets.
23937         (localplt-built-dso): New variable.
23938         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
23939
23940         * elf/check-localplt.c: File removed.
23941
23942         * scripts/check-execstack.awk: New file.
23943         * elf/Makefile ($(objpfx)check-execstack): Target removed.
23944         (check-execstack-CFLAGS): Variable removed.
23945         ($(objpfx)check-execstack.h): Target removed.
23946         ($(objpfx)execstack-default): New target.
23947         (generated): Add that instead of check-execstack.h.
23948         ($(all-built-dso:=.phdr)): New static pattern rule.
23949         (generated): Add those targets.
23950         * elf/check-execstack.c: File removed.
23951
23952         * scripts/check-textrel.awk: New file.
23953         * elf/Makefile ($(objpfx)check-textrel): Target removed.
23954         (check-textrel-CFLAGS): Variable removed.
23955         (all-built-dso): Use := to define.o
23956         ($(all-built-dso:=.dyn)): New static pattern rule.
23957         (generated): Add those targets.
23958         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
23959         * config.make.in (READELF): New substituted variable.
23960         * elf/check-textrel.c: File removed.
23961
23962 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
23963
23964         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
23965         allow.
23966         * conform/data/ctype.h-data [C99-based standards] (isblank):
23967         Expect function.
23968         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
23969         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
23970         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23971         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
23972         Specify type.  Require positive value.
23973         (EILSEQ): Likewise.
23974         (ERANGE): Likewise.
23975         [ISO || POSIX] (EILSEQ): Do not expect.
23976         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
23977         Specify type.  Require positive value.
23978         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
23979         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
23980         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
23981         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
23982         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
23983         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
23984         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
23985         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
23986         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
23987         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
23988         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
23989         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
23990         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
23991         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
23992         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
23993         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
23994         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
23995         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
23996         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
23997         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
23998         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
23999         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
24000         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
24001         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
24002         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
24003         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
24004         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
24005         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
24006         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
24007         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
24008         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
24009         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
24010         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
24011         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
24012         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
24013         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
24014         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
24015         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
24016         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
24017         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
24018         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
24019         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
24020         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
24021         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
24022         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
24023         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
24024         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
24025         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
24026         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
24027         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
24028         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
24029         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
24030         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
24031         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
24032         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
24033         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
24034         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
24035         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
24036         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
24037         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
24038         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
24039         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
24040         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
24041         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
24042         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
24043         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
24044         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
24045         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
24046         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
24047         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
24048         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
24049         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
24050         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
24051         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
24052         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
24053         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
24054         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
24055         Require >= 2.
24056         (FLT_ROUNDS): Expect as macro, not constant.
24057         (FLT_MANT_DIG): Use macro-int-constant.
24058         (DBL_MANT_DIG): Likewise.
24059         (LDBL_MANT_DIG): Likewise.
24060         (FLT_DIG): Likewise.
24061         (DBL_DIG): Likewise.
24062         (LDBL_DIG): Likewise.
24063         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
24064         (DBL_MIN_EXP): Likewise.
24065         (LDBL_MIN_EXP): Likewise.
24066         (FLT_MAX_EXP): Use macro-int-constant.
24067         (DBL_MAX_EXP): Likewise.
24068         (LDBL_MAX_EXP): Likewise.
24069         (FLT_MAX_10_EXP): Likewise.
24070         (DBL_MAX_10_EXP): Likewise.
24071         (LDBL_MAX_10_EXP): Likewise.
24072         (FLT_MAX): Use macro-constant.
24073         (DBL_MAX): Likewise.
24074         (LDBL_MAX): Likewise.
24075         (FLT_EPSILON): Use macro-constant.  Give upper bound.
24076         (DBL_EPSILON): Likewise.
24077         (LDBL_EPSILON): Likewise.
24078         (FLT_MIN): Likewise.
24079         (DBL_MIN): Likewise.
24080         (LDBL_MIN): Likewise.
24081         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
24082         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
24083         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
24084         [ISO11] (FLT_HAS_SUBNORM): Likewise.
24085         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
24086         [ISO11] (DBL_DECIMAL_DIG): Likewise.
24087         [ISO11] (FLT_DECIMAL_DIG): Likewise.
24088         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
24089         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
24090         [ISO11] (FLT_TRUE_MIN): Likewise.
24091         [ISO11] (LDBL_TRUE_MIN): Likewise.
24092         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24093         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
24094         (SCHAR_MIN): Use macro-int-constant.  Specify type.
24095         (SCHAR_MAX): Likewise.
24096         (UCHAR_MAX): Likewise.
24097         (CHAR_MIN): Likewise.
24098         (CHAR_MAX): Likewise.
24099         (MB_LEN_MAX): Use macro-int-constant.
24100         (SHRT_MIN): Use macro-int-constant.  Specify type.
24101         (SHRT_MAX): Likewise.
24102         (USHRT_MAX): Likewise.
24103         (INT_MAX): Likewise.
24104         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
24105         bound negative.
24106         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24107         bound with "U".
24108         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24109         bound with "L".
24110         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
24111         bound negative.  Suffix upper bound with "L".
24112         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24113         bound with "UL".
24114         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
24115         Specify type.
24116         [C99-based standards] (LLONG_MAX): Likewise.
24117         [C99-based standards] (ULLONG_MAX): Likewise.
24118         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
24119         == 0.
24120         [ISO11] (max_align_t): Require type.
24121         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24122
24123         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
24124         from $CFLAGS, without defining away __attribute__ calls.
24125         (checknamespace): Use $CFLAGS_namespace.
24126
24127         * conform/conformtest.pl (@keywords): Only include C99 keywords
24128         for standards based on C99 or C11.
24129
24130         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
24131         Disable tests.
24132         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
24133         UNIX98]: Likewise.
24134
24135         * conform/conformtest.pl: Handle "macro-int-constant" and test for
24136         usability of symbols in #if.
24137
24138         * conform/conformtest.pl: If macro or constant types start
24139         "promoted:", expect the symbol to be of the following type
24140         promoted by the integer promotions.
24141
24142         * conform/conformtest.pl: Parse all "constant" and "macro" lines
24143         in one place.  Also handle "macro-constant".
24144
24145         * conform/conformtest.pl: Only accept expected macro values with
24146         "==".  Parse all "macro" lines in one place.
24147         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
24148
24149         * conform/conformtest.pl: Handle braced types on "constant" lines
24150         instead of handling "typed-constant".
24151         * conform/data/signal.h-data: Use "constant" instead of
24152         "typed-constant".
24153
24154         * conform/conformtest.pl: Handle "optional-" at start of lines in
24155         one place rather than duplicating several cases.  Handle each
24156         format of "macro" line with initial "optional-".
24157
24158         * conform/conformtest.pl: Only accept expected constant or
24159         optional-constant values with "==".  Parse all "constant" lines in
24160         one place.  Parse all "optional-constant" lines in one place.
24161         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
24162         * conform/data/fmtmsg.h-data: Likewise.
24163         * conform/data/netinet/in.h-data: Likewise.
24164         * conform/data/tar.h-data: Likewise.
24165         * conform/data/limits.h-data: Use "==" form on "constant" and
24166         "optional-constant" lines.
24167
24168         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
24169         Use -std=c99 for XOPEN2K.
24170         (@knownproblems): Remove.
24171         (newtoken): Don't check %isknown.
24172
24173         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
24174         Do not expect macro.
24175         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
24176         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
24177         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
24178         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
24179         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
24180         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
24181         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
24182         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
24183         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
24184         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
24185         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
24186         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
24187         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
24188         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
24189         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
24190         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
24191         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
24192         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
24193         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
24194         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
24195         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
24196         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
24197         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
24198         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
24199         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
24200         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
24201         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
24202         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
24203         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
24204         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
24205         [XPG3] (acosh): Likewise.
24206         [XPG3] (asinh): Likewise.
24207         [XPG3] (atanh): Likewise.
24208         [XPG3] (cbrt): Likewise.
24209         [XPG3] (expm1): Likewise.
24210         [XPG3] (ilogb): Likewise.
24211         [XPG3] (log1p): Likewise.
24212         [XPG3] (logb): Likewise.
24213         [XPG3] (nextafter): Likewise.
24214         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
24215         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
24216         [XPG3] (remainder): Likewise.
24217         [XPG3] (rint): Likewise.
24218         [XPG3 || XPG4 || UNIX98] (round): Likewise.
24219         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
24220         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
24221         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
24222         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
24223         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
24224         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
24225         [UNIX98 || XOPEN2K] (scalb): Expect.
24226         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
24227         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
24228         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
24229         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
24230         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
24231         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
24232         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
24233         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
24234         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
24235         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
24236         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
24237         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
24238         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
24239         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
24240         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
24241         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
24242         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
24243         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
24244         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
24245         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
24246         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
24247         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
24248         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
24249         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
24250         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
24251         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
24252         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
24253         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
24254         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
24255         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
24256         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
24257         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
24258         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
24259         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
24260         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
24261         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
24262         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
24263         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
24264         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
24265         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
24266         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
24267         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
24268         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
24269         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
24270         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
24271         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
24272         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
24273         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
24274         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
24275         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
24276         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
24277         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
24278         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
24279         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
24280         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
24281         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
24282         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
24283         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
24284         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
24285         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
24286         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
24287         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
24288         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
24289         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
24290         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
24291         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
24292         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
24293         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
24294         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
24295         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
24296         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
24297         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
24298         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
24299         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
24300         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
24301         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
24302         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
24303         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
24304         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
24305         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
24306         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
24307         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
24308         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
24309         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
24310         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
24311         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
24312         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
24313         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
24314         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
24315         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
24316         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
24317         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
24318         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
24319         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
24320         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
24321         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
24322         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
24323         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
24324         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
24325         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
24326         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
24327         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
24328         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
24329         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
24330         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
24331         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
24332         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
24333         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
24334         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
24335         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
24336         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
24337         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
24338         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
24339         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
24340         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
24341         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
24342         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
24343         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
24344         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
24345         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
24346         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
24347         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
24348         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
24349         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
24350         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
24351         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
24352         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
24353         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
24354         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
24355         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
24356         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
24357         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
24358         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
24359         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
24360         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
24361         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
24362         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
24363
24364         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
24365         _XOPEN_SOURCE_EXTENDED for XPG4.
24366
24367         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
24368
24369         * Makeconfig (localtime): Remove variable.
24370         (inst_localtime-file): Likewise.
24371
24372 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
24373
24374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
24375         Update.
24376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24377         Update.
24378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
24379         Update.
24380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
24381         Update.
24382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
24383         Update.
24384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
24385         Update.
24386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
24387         Update.
24388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
24389         Update.
24390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
24391         Update.
24392
24393 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
24394
24395         [BZ #2550]
24396         [BZ #2570]
24397         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
24398         comparisons to determine direction to adjust input.
24399         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24400         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
24401         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24402         Likewise.
24403         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24404         Likewise.
24405         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24406         Likewise.
24407         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24408         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24409         Likewise.
24410         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24411         Likewise.
24412         * math/libm-test.inc (nexttoward_test): Add more tests.
24413
24414 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
24415
24416         [BZ #14040]
24417         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
24418         in version GLIBC_2.1, not GLIBC_2.0.
24419         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
24420         Likewise.
24421
24422 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
24423
24424         [BZ #13942]
24425         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
24426         (1 - x) * (1 + x).
24427         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
24428         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
24429         * math/libm-test.inc (acos_test): Add more tests.
24430         (asin_test): Likewise.
24431         * sysdeps/i386/fpu/libm-test-ulps: Update.
24432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24433
24434         [BZ #14034]
24435         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
24436         of square root.
24437         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
24438         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
24439         * math/libm-test.inc (acos_test_tonearest): New function.
24440         (acos_test_towardzero): Likewise.
24441         (acos_test_downward): Likewise.
24442         (acos_test_upward): Likewise.
24443         (asin_test_tonearest): Likewise.
24444         (asin_test_towardzero): Likewise.
24445         (asin_test_downward): Likewise.
24446         (asin_test_upward): Likewise.
24447         (main): Call the new functions.
24448         * sysdeps/i386/fpu/libm-test-ulps: Update.
24449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24450
24451         [BZ #13884]
24452         [BZ #13924]
24453         * math/e_exp10.c: Include <float.h>.
24454         (__ieee754_exp10): Handle underflow here rather than multiplying
24455         large negative argument by M_LN10.
24456         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
24457         of __ieee754_expf.
24458         * math/e_exp10l.c: Include <float.h>.
24459         (__ieee754_exp10l): Handle underflow here rather than multiplying
24460         large negative argument by M_LN10l.
24461         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
24462         spurious overflow exception on underflow.
24463
24464 2012-04-29  Marek Polacek  <polacek@redhat.com>
24465
24466         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
24467         (__fortify_function): New macro.
24468         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
24469         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
24470         __extern_always_inline.
24471         * libio/bits/stdio2.h: Likewise.
24472         * libio/bits/stdio.h: Likewise.
24473         * string/string.h: Likewise.
24474         * string/bits/string3.h: Likewise.
24475         * include/stdio.h: Likewise.
24476         * stdlib/bits/stdlib.h: Likewise.
24477         * stdlib/stdlib.h: Likewise.
24478         * rt/bits/mqueue2.h: Likewise.
24479         * rt/mqueue.h: Likewise.
24480         * posix/bits/unistd.h: Likewise.
24481         * posix/unistd.h: Likewise.
24482         * io/bits/poll2.h: Likewise.
24483         * io/bits/fcntl2.h: Likewise.
24484         * io/fcntl.h: Likewise.
24485         * io/sys/poll.h: Likewise.
24486         * misc/bits/syslog.h: Likewise.
24487         * misc/bits/syslog-ldbl.h: Likewise.
24488         * misc/sys/syslog.h: Likewise.
24489         * socket/bits/socket2.h: Likewise.
24490         * socket/sys/socket.h: Likewise.
24491         * debug/tst-chk1.c: Likewise.
24492         * wcsmbs/bits/wchar2.h: Likewise.
24493         * wcsmbs/bits/wchar-ldbl.h: Likewise.
24494         * wcsmbs/wchar.h: Likewise.
24495
24496 2012-04-29  Andreas Jaeger  <aj@suse.de>
24497
24498         * Makerules (tests): Remove enable-check-abi protection.
24499         (check-abi-warn): Remove.
24500         (check-abi-%): Remove check-abi-warn usage.
24501
24502         * configure.in: Remove check-abi configure option.
24503         * configure: Regenerated.
24504         * config.make.in (enable-check-abi): Remove.
24505
24506 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
24507
24508         [BZ #14033]
24509         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
24510         double functions to double *_finite functions.
24511
24512         [BZ #13941]
24513         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
24514         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
24515         LDBL_MIN_EXP.
24516         * stdio-common/Makefile (tests): Add tst-sprintf3.
24517         * stdio-common/tst-sprintf3.c: New file.
24518
24519         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
24520         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
24521
24522 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
24523
24524         * conform/conformtest.pl: Remove duplicate typed-constant
24525         handling.
24526
24527 2012-04-28  David S. Miller  <davem@davemloft.net>
24528
24529         * Makerules (%.abilist): Add vpath on sysdep_dirs.
24530         (check-abi-%): Remove AWK script prerequisite and explicit
24531         abilist directory.
24532         (check-abi): Rewrite to just diff the symlist with the abilist.
24533         (config-tls, config-abi-config): Delete, no longer used.
24534         (update-abi-%): Remove AWK script and explicit abilist directory.
24535         (update-abi): Rewrite to simply compare and conditionally copy the
24536         symlist and the sysdep abilist file.  Remove update-abi-config
24537         checks.
24538         * abilist/ld.abilist: Remove.
24539         * abilist/libBrokenLocale.abilist: Remove.
24540         * abilist/libanl.abilist: Remove.
24541         * abilist/libcrypt.abilist: Remove.
24542         * abilist/libdl.abilist: Remove.
24543         * abilist/librt.abilist: Remove.
24544         * abilist/libthread_db.abilist: Remove.
24545         * abilist/libutil.abilist: Remove.
24546         * scripts/extract-abilist.awk: Remove.
24547         * scripts/merge-abilist.awk: Remove.
24548         * sysdeps/generic/libcidn.abilist: New file.
24549         * sysdeps/generic/libnss_compat.abilist: New file.
24550         * sysdeps/generic/libnss_db.abilist: New file.
24551         * sysdeps/generic/libnss_dns.abilist: New file.
24552         * sysdeps/generic/libnss_files.abilist: New file.
24553         * sysdeps/generic/libnss_hesiod.abilist: New file.
24554         * sysdeps/generic/libnss_nis.abilist: New file.
24555         * sysdeps/generic/libnss_nisplus.abilist: New file.
24556         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
24557         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
24558         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
24559         file.
24560         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
24561         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
24562         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
24563         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
24564         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
24565         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
24566         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
24567         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
24568         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
24569         file.
24570         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
24571         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
24572         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
24573         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
24574         file.
24575         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
24576         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
24577         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
24578         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
24579         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
24580         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
24581         file.
24582         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
24583         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
24584         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
24585         file.
24586         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
24587         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
24588         New file.
24589         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
24590         New file.
24591         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
24592         New file.
24593         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
24594         New file.
24595         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
24596         New file.
24597         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
24598         New file.
24599         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
24600         New file.
24601         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
24602         New file.
24603         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
24604         New file.
24605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
24606         New file.
24607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
24608         New file.
24609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
24610         New file.
24611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
24612         New file.
24613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
24614         file.
24615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
24616         New file.
24617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
24618         New file.
24619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
24620         file.
24621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
24622         New file.
24623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
24624         New file.
24625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
24626         file.
24627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
24628         New file.
24629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
24630         New file.
24631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
24632         New file.
24633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
24634         New file.
24635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
24636         New file.
24637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
24638         New file.
24639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
24640         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
24641         file.
24642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
24643         New file.
24644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
24645         file.
24646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
24647         file.
24648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
24649         file.
24650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
24651         file.
24652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
24653         file.
24654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
24655         New file.
24656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
24657         file.
24658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
24659         file.
24660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
24661         New file.
24662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
24663         file.
24664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
24665         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
24666         file.
24667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
24668         New file.
24669         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
24670         file.
24671         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
24672         file.
24673         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
24674         file.
24675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
24676         file.
24677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
24678         file.
24679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
24680         New file.
24681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
24682         file.
24683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
24684         file.
24685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
24686         New file.
24687         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
24688         file.
24689         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
24690         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
24691         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
24692         file.
24693         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
24694         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
24695         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
24696         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
24697         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
24698         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
24699         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
24700         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
24701         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
24702         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
24703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
24704         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
24705         file.
24706         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
24707         New file.
24708         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
24709         file.
24710         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
24711         file.
24712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
24713         file.
24714         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
24715         file.
24716         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
24717         file.
24718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
24719         New file.
24720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
24721         New file.
24722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
24723         file.
24724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
24725         New file.
24726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
24727         file.
24728         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
24729         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
24730         file.
24731         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
24732         New file.
24733         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
24734         file.
24735         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
24736         file.
24737         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
24738         file.
24739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
24740         file.
24741         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
24742         file.
24743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
24744         New file.
24745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
24746         New file.
24747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
24748         file.
24749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
24750         New file.
24751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
24752         file.
24753
24754 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
24755
24756         * conform/conformtest.pl: Fix typo in handling typed-constant from
24757         allow-header.
24758
24759 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
24760
24761         * README: Cut down references to pre-2.6 Linux kernels and
24762         Linuxthreads.  Update lists of configurations in libc and ports
24763         and sort alphabetically.  Say "or newer" with Linux kernel version
24764         requirements.
24765
24766         * config.h.in [IS_IN_build]: Allow compiling without optimization.
24767
24768 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
24769
24770         [BZ #887]
24771         * math/libm-test.inc (logb_test_downward): New test to expose
24772         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
24773         rounding mode.
24774
24775 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
24776
24777         [BZ #14027]
24778         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
24779         to be done.
24780         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
24781         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
24782
24783 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
24784
24785         * sysdeps/unix/i386/brk.S: Remove file.
24786         * sysdeps/unix/i386/dl-brk.S: Likewise.
24787         * sysdeps/unix/i386/pipe.S: Likewise.
24788         * sysdeps/unix/i386/sigreturn.S: Likewise.
24789         * sysdeps/unix/i386/syscall.S: Likewise.
24790         * sysdeps/unix/i386/vfork.S: Likewise.
24791         * sysdeps/unix/i386/wait.S: Likewise.
24792
24793         * sysdeps/unix/common/tcsendbrk.c: Move to ...
24794         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
24795
24796         * configure.in (arm*-none*): Do not allow without
24797         --enable-hacker-mode.
24798         (netbsd*): Remove case setting base_os.
24799         (386bsd*): Likewise.
24800         (freebsd*): Likewise.
24801         (bsdi*): Likewise.
24802         (osf*): Likewise.
24803         (sunos*): Likewise.
24804         (ultrix*): Likewise.
24805         (newsos*): Likewise.
24806         (dynix*): Likewise.
24807         (*bsd*): Likewise.
24808         (sysv*): Likewise.
24809         (isc*): Likewise.
24810         (esix*): Likewise.
24811         (sco*): Likewise.
24812         (minix*): Likewise.
24813         (irix4*): Likewise.
24814         (irix6*): Likewise.
24815         (solaris[2-9]*): Likewise.
24816         (none): Likewise.
24817         * configure: Regenerated.
24818
24819 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24820
24821         [BZ #11521]
24822         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
24823         overflow or cancellation in calculating denominator.
24824         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
24825         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
24826         down expression to avoid unexpected rounding in newer GCCs.
24827         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
24828
24829 2012-04-26  David S. Miller  <davem@davemloft.net>
24830
24831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
24832         long-double compat symbols.
24833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
24837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24838         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
24839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
24840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
24841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
24842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24843         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
24844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
24845         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
24846
24847 2012-04-25  David S. Miller  <davem@davemloft.net>
24848
24849         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
24850         HWCAP_* values only after the memory barriers have been defined.
24851         (atomic_full_barrier): Define.
24852         (atomic_read_barrier): Define.
24853         (atomic_write_barrier): Define.
24854
24855 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
24856
24857         * shlib-versions: Add libgcc_s version information.
24858         * sysdeps/generic/libgcc_s.h: Remove.
24859         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
24860         libgcc_s.h.
24861         * sysdeps/gnu/unwind-resume.c: Likewise.
24862         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
24863
24864 2012-04-25  David S. Miller  <davem@davemloft.net>
24865
24866         * sysdeps/unix/sparc/brk.S: Delete.
24867         * sysdeps/unix/sparc/dl-brk.S: Delete.
24868         * sysdeps/unix/sparc/pipe.S: Delete.
24869         * sysdeps/unix/sparc/sysdep.S: Delete.
24870         * sysdeps/unix/sparc/sysdep.h: Delete.
24871         * sysdeps/unix/sparc/vfork.S: Delete.
24872         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
24873         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
24874         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
24875         ret_ERRVAL, r0, r1, MOVE): Define.
24876         (JUMPTARGET): Remove.
24877         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
24878         sysdeps/unix/sparc/sysdep.h
24879         (ENTRY, END): Remove.
24880         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24881
24882 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
24883
24884         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
24885         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
24886         -DIS_IN_build.
24887
24888         * timezone/README: Update upstream location and email address for
24889         tzcode and tzdata.
24890         * timezone/zdump.c: Update from tzcode 2012b.
24891         * timezone/zic.c: Likewise.
24892
24893         * configure.in (libc_cv_as_needed): Remove test.
24894         * configure: Regenerated.
24895         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
24896         conditional definition.
24897         [$(have-as-needed) != yes] (no-as-needed): Likewise.
24898         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
24899         * config.make.in (have-as-needed): Remove variable.
24900
24901 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
24902             Paul Pluzhnikov  <ppluzhnikov@google.com>
24903
24904         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
24905         strings correctly.
24906
24907 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
24908
24909         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
24910         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
24911         * sysdeps/sh/strlen.S: Likewise.
24912
24913 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
24914
24915         * sysdeps/unix/fork.S: Remove file.
24916         * sysdeps/unix/i386/fork.S: Likewise.
24917         * sysdeps/unix/sparc/fork.S: Likewise.
24918
24919         * sysdeps/unix/system.c: Remove file.
24920         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
24921
24922         * sysdeps/unix/getegid.S: Remove file.
24923         * sysdeps/unix/geteuid.S: Likewise.
24924
24925 2012-04-24  Roland McGrath  <roland@hack.frob.com>
24926
24927         * scripts/check-localplt.awk: New file.
24928         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
24929         of diff.
24930         * scripts/data/localplt-generic.data: Add a comment.
24931
24932         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
24933         NODE when __dir_mkfile failed.
24934         * sysdeps/mach/hurd/symlinkat.c: Likewise.
24935         Reported by Ludovic Courtès <ludo@gnu.org>.
24936
24937 2012-04-24  Andreas Jaeger  <aj@suse.de>
24938
24939         * Makerules (common-clean): Also remove gen-as-const-headers
24940         files.
24941
24942 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
24943
24944         * Makerules (native-compile): Do not change working directory for
24945         build.  Use $(OUTPUT_OPTION) in command.
24946         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
24947
24948 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24949
24950         [BZ #13886]
24951         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
24952         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
24953         * math/libm-test.inc (floor_test): Add more tests.
24954         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
24955
24956 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
24957
24958         * sysdeps/unix/getdents.c: Remove file.
24959         * sysdeps/unix/sysv/getdents.c: Likewise.
24960         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
24961
24962         * sysdeps/unix/syscalls.list (madvise): Add syscall from
24963         sysdeps/unix/mman/syscalls.list.
24964         (mmap): Likewise.
24965         (mprotect): Likewise.
24966         (msync): Likewise.
24967         (munmap): Likewise.
24968         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
24969         * sysdeps/unix/mman/syscalls.list: Remove.
24970         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
24971
24972         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
24973         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
24974         * configure: Regenerated.
24975         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
24976         $(libgcc_s_suffix).
24977         * config.make.in (libgcc_s_suffix): Remove variable.
24978
24979 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
24980
24981         * sysdeps/unix/sysv/gethostname.c: Move to ...
24982         * sysdeps/posix/gethostname.c: ... here.
24983
24984         * sysdeps/unix/execve.S: Remove file.
24985
24986         * sysdeps/unix/_exit.S: Remove file.
24987
24988 2012-04-23  Andreas Jaeger  <aj@suse.de>
24989
24990         [BZ #13739]
24991         * manual/Makefile: Remove make dist support, there's no
24992         need for a stand-alone documentation tar ball.
24993         (TEXI2DVI): Define always, it's not in Makeconfig.
24994         (dist): Removed.
24995         (tar-it): Removed.
24996         (edition): Removed.
24997         (glibc-doc-$(edition).tar): Removed
24998         (%.Z): Removed.
24999         (%.gz): Removed.
25000         (%.uu): Removed.
25001         (ETAGS): Remove, it's in Makeconfig.
25002         (move-if-change): Remove, it's in Makeconfig.
25003
25004 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
25005
25006         [BZ #13970]
25007         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
25008         (strtod, strtof, strtold, strtol, strtoul, strtoq)
25009         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
25010         (strtod_l, strtof_l, strtold_l): Remove __wur.
25011         It is not necessarily an error to ignore strtol's return value.
25012         One can reliably look at the stored endptr to decide whether
25013         the number had valid syntax.
25014
25015 2012-04-21  Andreas Jaeger  <aj@suse.de>
25016
25017         [BZ #13739]
25018         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
25019
25020 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
25021
25022         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
25023         * sysdeps/unix/sysv/Versions: Remove file.
25024
25025 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
25026
25027         [BZ #13927]
25028         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25029
25030 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
25031
25032         [BZ #7064]
25033         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
25034         version from __vm86.
25035
25036 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
25037
25038         * sysdeps/unix/common/lxstat.c: Remove file.
25039         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
25040
25041         * sysdeps/unix/sysv/Makefile: Remove file.
25042
25043         * sysdeps/unix/sysv/direct.h: Remove file.
25044
25045         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
25046         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
25047         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
25048         * sysdeps/unix/sysv/bits/signum.h: Likewise.
25049         * sysdeps/unix/sysv/bits/stat.h: Likewise.
25050         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
25051         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
25052
25053         * sysdeps/unix/sysv/setrlimit.c: Remove file.
25054
25055         * sysdeps/unix/xmknod.c: Remove file.
25056         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
25057
25058         * sysdeps/unix/sysv/settimeofday.c: Remove file.
25059
25060         * sysdeps/unix/sysv/i386/time.S: Remove file.
25061
25062         * sysdeps/unix/fxstat.c: Remove file.
25063         * sysdeps/unix/xstat.c: Likewise.
25064         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
25065
25066         * sysdeps/unix/sysv/sigaction.c: Remove file.
25067
25068         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
25069         (sysdep_headers): Remove variable.
25070         [termio.h not in sysdep_headers] (generated): Likewise.
25071         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
25072         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
25073         * sysdeps/unix/sysv/tcdrain.c: Likewise.
25074         * sysdeps/unix/sysv/tcflow.c: Likewise.
25075         * sysdeps/unix/sysv/tcflush.c: Likewise.
25076         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
25077         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
25078         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
25079         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
25080         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
25081
25082         * sysdeps/unix/siglist.c: Remove file.
25083
25084         * sysdeps/unix/getppid.S: Remove file.
25085
25086         * sysdeps/unix/mkdir.c: Remove file.
25087         * sysdeps/unix/rmdir.c: Likewise.
25088
25089 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
25090
25091         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
25092         ERR_MAX value.
25093         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
25094         errlist-compat value.
25095
25096 2012-04-18  David S. Miller  <davem@davemloft.net>
25097
25098         * sysdeps/generic/memcopy.h (reg_char): Delete.
25099         * debug/strcat_chk.c: Use char, not reg_char.
25100         * debug/strcpy_chk.c: Likewise.
25101         * debug/strncat_chk.c: Likewise.
25102         * debug/strncpy_chk.c: Likewise.
25103         * string/memchr.c: Likewise.
25104         * string/memrchr.c: Likewise.
25105         * string/rawmemchr.c: Likewise.
25106         * string/strcat.c: Likewise.
25107         * string/strchr.c: Likewise.
25108         * string/strchrnul.c: Likewise.
25109         * string/strcmp.c: Likewise.
25110         * string/strcpy.c: Likewise.
25111         * string/strncat.c: Likewise.
25112         * string/strncmp.c: Likewise.
25113         * string/strncpy.c: Likewise.
25114
25115 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25116
25117         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
25118         __builtin_memcopy is called when src and dest ranges are known to not
25119         overlap.
25120
25121 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25122
25123         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
25124         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
25125         fwd_align_merge macro call.
25126         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
25127         bwd_align_merge macro call.
25128         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25129
25130 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25131
25132         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
25133         bwd_align_merge macros.
25134         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
25135         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
25136         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25137
25138 2012-04-18  David S. Miller  <davem@davemloft.net>
25139
25140         * sysdeps/sparc/sparc64/memcopy.h: Delete.
25141
25142 2012-04-18  Andreas Jaeger  <aj@suse.de>
25143
25144         [BZ# 6794]
25145         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
25146         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
25147         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25148
25149         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
25150         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
25151         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25152
25153         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
25154         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
25155         Adjust for changed ldbl-128 files.
25156
25157         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
25158         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
25159         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25160
25161 2012-04-17  David S. Miller  <davem@davemloft.net>
25162
25163         * sysdeps/sparc/sparc32/memcopy.h: Delete.
25164
25165 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
25166
25167         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
25168         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
25169         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
25170         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
25171         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
25172         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
25173
25174 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25175
25176         [BZ #6794]
25177         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
25178         * math/libm-test.inc: Add ilogb errno and exception tests.
25179         * math/w_ilogb.c: New file: ilogb wrapper.
25180         * math/w_ilogbf.c: New file: ilogbf wrapper.
25181         * math/w_ilogbl.c: New file: ilogbl wrapper.
25182         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
25183         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
25184         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
25185         exception being thrown with 0.0 as argument.
25186         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
25187         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
25188         exception being thrown with 0.0 as argument.
25189         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
25190         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
25191         exception being thrown with 0.0 as argument.
25192         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
25193         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
25194         exception being thrown with 0.0 as argument.
25195         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
25196         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
25197         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
25198         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
25199         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
25200         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
25201         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
25202         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
25203         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
25204
25205 2012-04-17  Petr Baudis  <pasky@ucw.cz>
25206
25207         * include/sys/uio.h: Change __vector to __iovec to avoid clash
25208         with altivec.
25209
25210 2012-04-16  Marek Polacek  <polacek@redhat.com>
25211
25212         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
25213
25214 2012-04-16  Marek Polacek  <polacek@redhat.com>
25215
25216         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
25217         operands of fdivp instruction.
25218
25219 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
25220
25221         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
25222         * elf/tst-auditmod3b.c: Likewise.
25223         * elf/tst-auditmod4b.c: Likewise.
25224         * elf/tst-auditmod5b.c: Likewise.
25225         * elf/tst-auditmod6b.c: Likewise.
25226         * elf/tst-auditmod6c.c: Likewise.
25227         * elf/tst-auditmod7b.c: Likewise.
25228         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
25229         * sysdeps/x86_64/preconfigure.in: Likewise.
25230         * sysdeps/x86_64/preconfigure: Regenerated.
25231
25232 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
25233
25234         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
25235         __ILP32__.
25236
25237 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
25238
25239         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25240         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
25241
25242 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
25243
25244         [BZ #13973]
25245         * locale/iso-639.def: Fix gl language name. Spotted by
25246         Yaron Shahrabani.
25247
25248 2012-04-12  Roland McGrath  <roland@hack.frob.com>
25249
25250         [BZ #2074]
25251         * libio/libio.h (__io_write_fn): Update comment.
25252
25253 2012-04-12  Petr Baudis  <pasky@ucw.cz>
25254
25255         [BZ #2074]
25256         * stdio.texi (Hook Functions): The user provided writer function
25257         is not allowed to return -1.
25258
25259 2012-04-11  David S. Miller  <davem@davemloft.net>
25260
25261         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25262
25263 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
25264
25265         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
25266         Add a leading slash to rtkaio.
25267
25268 2012-04-11  Jim Meyering  <meyering@redhat.com>
25269
25270         [BZ #11959]
25271         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
25272         It is not necessarily an error to ignore fwrite's return
25273         value.  One can reliably use ferror to test for errors after
25274         the fact.
25275
25276 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
25277
25278         * bits/types.h (__snseconds_t): New type.
25279         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
25280
25281         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
25282         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
25283         (__SNSECONDS_T_TYPE): Likewise.
25284         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
25285         (__SNSECONDS_T_TYPE): Likewise.
25286         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
25287         (__SNSECONDS_T_TYPE): Likewise.
25288
25289 2012-04-10  Andreas Jaeger  <aj@suse.de>
25290
25291         [BZ #2636]
25292         * manual/time.texi (Processor Time): Return type of times is
25293         elapsed real time since an arbitrary point in the past.
25294         (CPU Time): Move CLK_TCK from here...
25295         (Processor Time): ...to here.  Correct description.
25296         * manual/conf.texi (Constants for Sysconf): Correct description of
25297         _SC_CLK_TCK.
25298
25299 2012-04-10  David S. Miller  <davem@davemloft.net>
25300
25301         [BZ #13967]
25302         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
25303         where the is a gap between DT_REL(A) and DT_JMPREL.
25304
25305 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
25306
25307         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
25308         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
25309         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
25310
25311 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
25312
25313         * elf/dl-support.c (_dl_inhibit_cache): New variable.
25314         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
25315         (dl_main): Handle --inhibit-cache.
25316         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
25317         _dl_inhibit_cache.
25318         * elf/dl-load.c (_dl_map_object): Use it.
25319         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
25320
25321 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
25322
25323         [BZ #13872]
25324         * sysdeps/i386/fpu/e_powl.S (p78): New object.
25325         (__ieee754_powl): Saturate large exponents rather than testing for
25326         overflow of y*log2(x).
25327         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
25328         * math/libm-test.inc (pow_test): Do not permit spurious overflow
25329         exceptions.
25330
25331         [BZ #11521]
25332         * math/s_ctan.c: Include <float.h>.
25333         (__ctan): Avoid internal overflow or cancellation in calculating
25334         denominator.
25335         * math/s_ctanf.c: Likewise.
25336         * math/s_ctanl.c: Likewise.
25337         * math/s_ctanh.c: Likewise.
25338         * math/s_ctanhf.c: Likewise.
25339         * math/s_ctanhl.c: Likewise.
25340         * math/libm-test.inc (ctan_test): Add more tests.
25341         (ctanh_test): Likewise.
25342         * sysdeps/i386/fpu/libm-test-ulps: Update.
25343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25344
25345 2012-04-09  Andreas Jaeger  <aj@suse.de>
25346
25347         [BZ #6894]
25348         * manual/filesys.texi (Directory Entries): Mention that d_namlen
25349         is an optional BSD extension.
25350
25351         [BZ #10254]
25352         * manual/stdio.texi (Opening Streams): Document additional fopen
25353         parameters.
25354
25355 2012-04-09  Roland McGrath  <roland@hack.frob.com>
25356
25357         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
25358         %eax without telling the compiler.
25359
25360 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
25361
25362         [BZ # 13963]
25363         * manual/install.texi: Use sourceware.org.
25364
25365 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
25366
25367         [BZ #13873]
25368         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
25369         (__ieee754_pow): Generate overflow and underflow using huge*huge
25370         and tiny*tiny rather than just returning constant infinity or zero
25371         for large exponents.
25372         * math/libm-test.inc (pow_test): Require overflow exceptions for
25373         applicable cases of large exponents.
25374
25375         [BZ #706]
25376         * sysdeps/i386/fpu/e_pow.S (p10): New object.
25377         (__ieee754_pow): Use iterative multiplication algorithm only for
25378         integer exponents with absolute value below 1024.  Check for odd
25379         integer exponents when using algorithm for real exponents.
25380         * math/libm-test.inc (pow_test): Add more tests.
25381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25382
25383 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
25384
25385         [BZ #13705]
25386         * math/libm-test.inc (exp_test): Do not allow overflow exception
25387         on underflow test.
25388
25389 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
25390
25391         [BZ #13705]
25392         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
25393         instead of __kernel_standard_f.
25394
25395 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
25396
25397         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
25398         * sysdeps/x86_64/memset_chk.S: Likewise.
25399
25400 2012-04-08  Andreas Jaeger  <aj@suse.de>
25401
25402         [BZ #10153]
25403         * manual/startup.texi (Environment Access): Describe return value
25404         for putenv and setenv.
25405
25406         [BZ #6895]
25407         * manual/filesys.texi (Directory Entries): Add description for
25408         DT_LNK.
25409
25410         [BZ #6890]
25411         * manual/filesys.texi (Directory Entries): Clarify that it's file
25412         system not operating system in the description of DT_UNKNOWN.
25413
25414         [BZ #6578]
25415         * manual/syslog.texi (closelog): Fix reference, it's openlog.
25416
25417 2012-04-08  Stephen Compall  <s11@member.fsf.org>
25418
25419         [BZ #6649]
25420         * manual/llio.texi (Opening and Closing Files): Add cross
25421         reference to explain mode argument.
25422
25423 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
25424
25425         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
25426         * sysdeps/x86_64/memset_chk.S: Likewise.
25427
25428 2012-04-07  David S. Miller  <davem@davemloft.net>
25429
25430         * elf/elf.h (R_SPARC_WDISP10): Define.
25431         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
25432         R_SPARC_SIZE32.
25433         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
25434         R_SPARC_SIZE64 and R_SPARC_H34.
25435
25436 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
25437
25438         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
25439         conditions and remove no longer applicable assertion.
25440
25441 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
25442
25443         * bits/byteswap.h: Include <features.h>.
25444         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
25445         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
25446
25447 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
25448
25449         * bits/byteswap.h (__bswap_16): Removed.
25450         Include <bits/byteswap-16.h> to get __bswap_16.
25451         * sysdeps/i386/bits/byteswap.h: Likewise.
25452         * sysdeps/s390/bits/byteswap.h: Likewise.
25453         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25454         * bits/byteswap-16.h: New file.
25455         * sysdeps/i386/bits/byteswap-16.h: Likewise.
25456         * sysdeps/s390/bits/byteswap-16.h: Likewise.
25457         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
25458         * string/Makefile (headers): Add bits/byteswap-16.h.
25459
25460 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25461
25462         [BZ #13895]
25463         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
25464         extra indirection.
25465         * nss/Makefile (tests-static, tests): Add tst-nss-static.
25466         * nss/tst-nss-static.c: New.
25467
25468 2012-04-06  Robert Millan  <rmh@gnu.org>
25469
25470         [BZ #6486]
25471         * manual/llio.texi (File Position Primitive): lseek
25472         refers to WHENCE when it really means OFFSET.
25473
25474 2012-04-06  Andreas Jaeger  <aj@suse.de>
25475
25476         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
25477         strncmp declarations.
25478
25479         * abilist/libc.abilist: Add __poll and __ppoll.
25480
25481 2012-04-05  David S. Miller  <davem@davemloft.net>
25482
25483         * scripts/check-local-headers.sh: Accept a host triplet in the
25484         path matched by the exclude regexp.
25485
25486         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
25487         definition.
25488         * sysdeps/powerpc/powerpc32/dl-machine.h
25489         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
25490         * sysdeps/s390/s390-32/dl-machine.h
25491         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
25492         * sysdeps/sparc/sparc32/dl-machine.h
25493         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
25494         * sysdeps/sparc/sparc64/dl-machine.h
25495         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
25496
25497         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
25498         lazy binding.
25499         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
25500         undefined symbol errors.
25501
25502         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
25503         DT_NEEDED entries.
25504
25505 2012-04-05  Michael Matz  <matz@suse.de>
25506
25507         [BZ #13592]
25508         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
25509
25510 2012-04-05  Andreas Jaeger  <aj@suse.de>
25511
25512         [BZ #13908]
25513         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
25514         comment.
25515
25516 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25517
25518         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
25519         which ROUND is no valid rounding mode.
25520
25521 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25522
25523         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
25524         read again.
25525         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
25526
25527 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25528
25529         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
25530         an exception using FPU order intentionally.
25531
25532 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25533
25534         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
25535         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
25536         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
25537         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
25538
25539 2012-04-05  Simon Josefsson  <simon@josefsson.org>
25540
25541         [BZ #12340]
25542         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
25543         EINVAL when BUFLEN is too smal.
25544
25545 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
25546
25547         [BZ #13553]
25548         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
25549         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
25550
25551 2012-04-03  Andreas Jaeger  <aj@suse.de>
25552
25553         [BZ #13938]
25554         * manual/setjmp.texi (System V contexts): Fix sentence.
25555
25556         [BZ #13926]
25557         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
25558         New macro for this case.
25559         [!__GNUC__] (__bswap_64): New inline function for this case.
25560         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25561         * bits/byteswap.h: Likewise.
25562         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
25563         ull, guard with __GLIBC_HAVE_LONG_LONG.
25564
25565         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
25566         __GLIBC_HAVE_LONG_LONG.
25567
25568         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
25569         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
25570
25571 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25572
25573         [BZ #13691]
25574         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
25575         inptr and inend, rather than using last_ch.
25576
25577 2012-04-02  David S. Miller  <davem@davemloft.net>
25578
25579         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
25580         * stdio-common/printf-parse.h (read_int): Change return type to
25581         'int', return -1 on INT_MAX overflow.
25582         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
25583         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
25584         overflows INT_MAX.  Check for overflow of in-format-string precision
25585         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
25586         SIZE_MAX not INT_MAX for integer overflow test.
25587         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
25588         skip the construct in the format string but do not record anything.
25589         * stdio-common/bug22.c: Adjust to test both width/prevision
25590         INT_MAX overflow as well as total length INT_MAX overflow.  Check
25591         explicitly for proper errno values.
25592
25593 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
25594
25595         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
25596         CHAR_MAX.
25597         * string/test-strcmp.c [! WIDE]: Likewise.
25598         * time/tst-mktime2.c: Likewise for INT_MAX.
25599         * string/test-string.h: #include <sys/param.h> for MIN.
25600
25601         * csu/init-first.c (__libc_init_first): Call __ctype_init.
25602         * sysdeps/i386/init-first.c (init): Likewise.
25603         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
25604         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
25605         * sysdeps/sh/init-first.c (init): Likewise.
25606
25607 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
25608
25609         * po/ru.po: Update from translation team.
25610         * po/vi.po: Likewise.
25611
25612 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
25613
25614         * resolv/nss_dns/dns-host.c: Merge copyright years.
25615
25616 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25617
25618         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
25619         Optimize memcpy with prefetch if
25620         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
25621         src, dst pointers have unequal 16 byte alignments.
25622
25623 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
25624
25625         [BZ #13928]
25626         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
25627         from a CNAME entry and return the minimum ttl for the query.
25628         (gaih_getanswer_slice): Likewise.
25629
25630 2012-03-30  Jeff Law  <law@redhat.com>
25631
25632         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
25633         due to long keys.
25634         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
25635         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
25636
25637         * resolv/nss_dns/dns-host.c: Update copyright year.
25638
25639 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
25640
25641         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
25642         requests to save a system call.  Fix check that all bytes are sent.
25643
25644         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
25645         comments for sendmmsg.
25646
25647 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25648
25649         [BZ #13691]
25650         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
25651         with only 1 character between 0x0041 and 0x01b0.
25652         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
25653         * wcsmbs/tst-mbsnrtowcs.c: New file.
25654
25655 2012-03-29  David S. Miller  <davem@davemloft.net>
25656
25657         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
25658         small copies by hand.
25659
25660 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25661
25662         [BZ #13761]
25663         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
25664         _nss_compat_initgroups_dyn): Fall back to malloc/free
25665         for large group memberships.
25666
25667 2012-03-28  David S. Miller  <davem@davemloft.net>
25668
25669         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
25670         that branches into memcpy.
25671         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
25672         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
25673         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
25674         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
25675         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
25676         bits.
25677         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
25678         implementation too.
25679         * sysdeps/sparc/mempcpy.S: New file.
25680
25681         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
25682         the IFUNC routine in the libc case.
25683         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
25684
25685         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
25686         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
25687         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
25688         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
25689         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
25690         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
25691         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
25692         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
25693
25694         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
25695         loop to 256 bytes instead of 64 bytes and fix test signedness.
25696
25697         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
25698         * sysdeps/sparc/sparc32/Makefile: rather than here...
25699         * sysdeps/sparc/sparc64/Makefile: and here.
25700
25701 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
25702
25703         * malloc/mallocbug.c: Avoid warnings about unused variables.
25704
25705 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
25706
25707         [BZ #13760]
25708         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
25709         in the right place. Discard and retry query if response is
25710         larger than input buffer size.
25711
25712 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
25713
25714         [BZ #369]
25715         [BZ #2678]
25716         [BZ #3866]
25717         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
25718         x for large integer exponent.
25719         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
25720         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
25721         sign of result as needed afterwards.
25722         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
25723         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
25724         result for underflowing pow the same as for overflow.
25725         (__kernel_standard_l): Handle powl overflow and underflow here
25726         rather than calling __kernel_standard.
25727         * math/libm-test.inc (pow_test): Add more tests.
25728
25729         [BZ #3868]
25730         [BZ #13879]
25731         [BZ #13910]
25732         [BZ #13911]
25733         [BZ #13912]
25734         [BZ #13913]
25735         [BZ #13915]
25736         [BZ #13916]
25737         [BZ #13917]
25738         [BZ #13918]
25739         [BZ #13919]
25740         [BZ #13920]
25741         [BZ #13921]
25742         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
25743         * sysdeps/ieee754/k_standard.c: Include <float.h>.
25744         (__kernel_standard_l): New function.
25745         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
25746         __kernel_standard.
25747         * math/w_acosl.c (__acosl): Likewise.
25748         * math/w_asinl.c (__asinl): Likewise.
25749         * math/w_atan2l.c (__atan2l): Likewise.
25750         * math/w_atanhl.c (__atanhl): Likewise.
25751         * math/w_coshl.c (__coshl): Likewise.
25752         * math/w_exp10l.c (__exp10l): Likewise.
25753         * math/w_exp2l.c (__exp2l): Likewise.
25754         * math/w_fmodl.c (__fmodl): Likewise.
25755         * math/w_hypotl.c (__hypotl): Likewise.
25756         * math/w_j0l.c (__j0l, __y0l): Likewise.
25757         * math/w_j1l.c (__j1l, __y1l): Likewise.
25758         * math/w_jnl.c (__jnl, __ynl): Likewise.
25759         * math/w_lgammal.c (__lgammal): Likewise.
25760         * math/w_log10l.c (__log10l): Likewise.
25761         * math/w_log2l.c (__log2l): Likewise.
25762         * math/w_logl.c (__logl): Likewise.
25763         * math/w_powl.c (__powl): Likewise.
25764         * math/w_remainderl.c (__remainderl): Likewise.
25765         * math/w_scalbl.c (sysv_scalbl): Likewise.
25766         * math/w_sinhl.c (__sinhl): Likewise.
25767         * math/w_sqrtl.c (__sqrtl): Likewise.
25768         * math/w_tgammal.c (__tgammal): Likewise.
25769         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
25770         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
25771         * math/libm-test.inc (acos_test): Add more tests.
25772         (acosh_test): Likewise.
25773         (asin_test): Likewise.
25774         (atanh_test): Likewise.
25775         (exp_test): Likewise.
25776         (exp10_test): Likewise.
25777         (exp2_test): Likewise.
25778         (expm1_test): Likewise.
25779         (lgamma_test): Likewise.
25780         (log_test): Likewise.
25781         (log10_test): Likewise.
25782         (log1p_test): Likewise.
25783         (log2_test): Likewise.
25784         (pow_test): Do not allow some spurious overflow exceptions.
25785         (sqrt_test): Add more tests.
25786         (tgamma_test): Likewise.
25787         (y0_test): Likewise.
25788         (y1_test): Likewise.
25789         (yn_test): Likewise.
25790
25791 2012-03-27  Anton Blanchard  <anton@samba.org>
25792
25793         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
25794         MAP_HUGETLB.
25795         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
25796         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
25797         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
25798
25799 2012-03-27  David S. Miller  <davem@davemloft.net>
25800
25801         * conform/Makefile: Run run-conformtest.sh using $(BASH).
25802
25803         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
25804         have-as-vis3 check.
25805
25806 2012-03-27  Andreas Jaeger  <aj@suse.de>
25807
25808         * sysdeps/x86_64/elf/configure.in: Moved to ...
25809         * sysdeps/x86_64/configure.in: ... here.
25810         * sysdeps/x86_64/elf/start.S: Moved to ...
25811         * sysdeps/x86_64/start.S: ... here.
25812         * sysdeps/x86_64/elf/configure: Delete.
25813
25814         * sysdeps/x86_64/configure.in: Merge contents from
25815         sysdeps/i386/configure.in (without i686 check).
25816
25817         * sysdeps/i386/elf/Versions: Merge into ...
25818         * sysdeps/i386/Versions: ... this.
25819         * sysdeps/i386/elf/Versions: Delete file.
25820         * sysdeps/i386/elf/start.S: Moved to ...
25821         * sysdeps/i386/start.S: ...here.
25822         * sysdeps/i386/elf/configure.in: Merge into...
25823         * sysdeps/i386/configure.in: ...here.
25824         * sysdeps/i386/elf/configure.in: Delete file.
25825         * sysdeps/i386/elf/configure: Delete file.
25826
25827         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
25828         * debug/backtracesyms.c: ... here.
25829         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
25830         * debug/backtracesymsfd.c: ... here.
25831         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
25832         * sysdeps/generic/ifunc-sel.h: ... here.
25833
25834         * sysdeps/unix/i386/start.c: Delete file.
25835         * sysdeps/unix/sparc/start.c: Delete file.
25836         * sysdeps/unix/start.c: Delete file.
25837
25838         * sysdeps/sh/elf/configure.in: Moved to ...
25839         * sysdeps/sh/configure.in: ... here.
25840         * sysdeps/sh/elf/start.S: Moved to ...
25841         * sysdeps/sh/start.S: ... here.
25842         * sysdeps/sh/elf/configure: Delete file.
25843
25844         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
25845         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
25846         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
25847         * sysdeps/powerpc/powerpc64/entry.h: ... here.
25848         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
25849         * sysdeps/powerpc/powerpc64/start.S: here.
25850         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
25851         * sysdeps/powerpc/powerpc64/Makefile: ... this.
25852         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
25853         * sysdeps/powerpc/powerpc64/configure.in: ... this.
25854         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
25855
25856         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
25857         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
25858         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
25859         * sysdeps/powerpc/powerpc32/start.S: ... here.
25860         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
25861         * sysdeps/powerpc/powerpc32/configure.in: ... this.
25862         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
25863
25864         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
25865         * sysdeps/powerpc/ifunc-sel.h: ... here.
25866         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
25867         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
25868
25869         * sysdeps/sparc/elf/configure.in: Moved to ...
25870         * sysdeps/sparc/configure.in: ... here.
25871         * sysdeps/sparc/elf/configure: Delete file.
25872         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
25873         * sysdeps/sparc/sparc32/start.S: ... here.
25874         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
25875         * sysdeps/sparc/sparc64/start.S: ... here.
25876         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
25877         * sysdeps/sparc/sparc32/Makefile: ... this.
25878         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
25879         * sysdeps/sparc/sparc64/Makefile: ... this.
25880
25881         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
25882         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
25883         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
25884         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
25885         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
25886         * sysdeps/s390/s390-32/setjmp.S: ... here.
25887         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
25888         * sysdeps/s390/s390-32/configure.in: ... here.
25889         * sysdeps/s390/s390-32/elf/configure: Delete file.
25890         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
25891         * sysdeps/s390/s390-32/start.S: ... here.
25892
25893         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
25894         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
25895         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
25896         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
25897         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
25898         * sysdeps/s390/s390-64/setjmp.S: ... here.
25899         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
25900         * sysdeps/s390/s390-64/configure.in: ... here
25901         * sysdeps/s390/s390-64/elf/configure: Delete file.
25902         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
25903         * sysdeps/s390/s390-64/start.S: ... here.
25904         * sysdeps/s390/s390-64/elf/configure: Delete.
25905
25906         * configure.in: Remove support for elf directories in sysdeps.
25907
25908         * configure: Regenerated.
25909         * sysdeps/i386/configure: Regenerated.
25910         * sysdeps/powerpc/powerpc32/configure: Regenerated.
25911         * sysdeps/powerpc/powerpc64/configure: Regenerated.
25912         * sysdeps/s390/s390-32/configure: Regenerated.
25913         * sysdeps/s390/s390-64/configure: Regenerated.
25914         * sysdeps/sh/configure: Regenerated.
25915         * sysdeps/sparc/configure: Regenerated.
25916         * sysdeps/x86_64/configure: Regenerated.
25917
25918 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
25919
25920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25921
25922         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
25923         denormal result into account.
25924
25925 2012-03-25  Roland McGrath  <roland@hack.frob.com>
25926
25927         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
25928         Reported by Allan McRae <allan@archlinux.org>.
25929
25930 2012-03-23  Jeff Law  <law@redhat.com>
25931
25932         * nss/getnssent.c (__nss_getent): Fix typo.
25933
25934 2012-03-23  David S. Miller  <davem@davemloft.net>
25935
25936         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25937
25938 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
25939
25940         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
25941         to pad to uint64_t for each field.
25942         (dl_tls_index): Replace unsigned long with uint64_t.
25943
25944 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
25945         Paul Pluzhnikov  <ppluzhnikov@google.com>
25946
25947         [BZ #6528]
25948         * grp/Makefile (otherlibs): Don't set it.
25949         * inet/Makefile (otherlibs): Likewise.
25950         * login/Makefile (otherlibs): Likewise.
25951         * nscd/Makefile (otherlibs): Likewise.
25952         * posix/Makefile (otherlibs): Likewise.
25953         * pwd/Makefile (otherlibs): Likewise.
25954         * rt/Makefile (otherlibs): Likewise.
25955         * sunrpc/Makefile (otherlibs): Likewise.
25956         * nss/Makefile (otherlibs): Likewise.
25957         Add libnss_files to routines and static-only-routines.
25958         ($(objpfx)getent): Remove rule.
25959         * resolv/Makefile: Add libnss_dns and libresolv to routines and
25960         static-only-routines.
25961
25962 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
25963
25964         [BZ #13892]
25965         * math/s_cexp.c: Include <float.h>.
25966         (__cexp): Handle exp result overflowing not necessarily
25967         overflowing both real and imaginary parts of result.
25968         * math/s_cexpf.c: Likewise.
25969         * math/s_cexpl.c: Likewise.
25970         * math/libm-test.inc (cexp_test): Add more tests.
25971         * sysdeps/i386/fpu/libm-test-ulps: Update.
25972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25973
25974 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25975
25976         * include/link.h (ELFW): New macro.
25977         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
25978         Replace ELF64_R_TYPE with ELFW(R_TYPE).
25979
25980 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25981
25982         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
25983         with uint64_t.
25984
25985 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25986
25987         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
25988         declaration.
25989         (struct La_x32_retval): Likewise.
25990
25991 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25992
25993         * sysdeps/x86_64/preconfigure.in: New file.
25994         * sysdeps/x86_64/preconfigure: New generated file.
25995
25996 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
25997
25998         [BZ #13824]
25999         * math/e_exp2l.c: Include <float.h>.
26000         (__ieee754_exp2l): Handle overflow and underflow cases
26001         separately.  Only pass fractional part of argument to
26002         __ieee754_expl.
26003         * math/libm-test.inc (exp2_test): Add more tests.
26004
26005         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
26006         negating x to take absolute value.
26007         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
26008         Likewise.
26009         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
26010         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
26011         Likewise.
26012         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
26013         computing low part if x was negated.
26014         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
26015
26016 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26017
26018         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
26019         la_x32_gnu_pltexit.
26020         (pltexit): Cast int_retval to ptrdiff_t.
26021         * elf/tst-auditmod3b.c: Likewise.
26022         * elf/tst-auditmod4b.c: Likewise.
26023         * elf/tst-auditmod5b.c: Likewise.
26024         * elf/tst-auditmod6b.c: Likewise.
26025         * elf/tst-auditmod6c.c: Likewise.
26026         * elf/tst-auditmod7b.c: Likewise.
26027
26028         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
26029         and x32_gnu_pltexit.
26030
26031         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
26032         __ELF_NATIVE_CLASS.
26033         (La_x32_regs): New macro.
26034         (La_x32_retval): Likewise.
26035         (la_x32_gnu_pltenter): New function prototype.
26036         (la_x32_gnu_pltexit): Likewise.
26037
26038 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
26039
26040         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
26041         exponent.
26042
26043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26044
26045         * configure.in (libc_cv_cc_nofma): Check for option to disable
26046         generation of FMA instructions.
26047         * configure: Regenerate.
26048         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
26049         * sysdeps/ieee754/dbl-64/Makefile: New file.
26050         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26051         Remove brandred-fma4.
26052         (CFLAGS-brandred-fma4.c): Remove.
26053         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
26054         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
26055         define.
26056         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
26057         define.
26058
26059 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26060
26061         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
26062         LLONG_MAX != LONG_MAX.
26063         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26064         (_fitoa_word): Likewise.
26065         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
26066         LLONG_MAX != LONG_MAX.
26067         * stdio-common/_itowa.h: Include <_itoa.h>.
26068         (_itowa_word): Use _ITOA_WORD_TYPE on value.
26069         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
26070         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
26071         only if not defined.
26072         (_ITOA_WORD_TYPE): Likewise.
26073         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26074         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
26075
26076 2012-03-21  David S. Miller  <davem@davemloft.net>
26077
26078         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26079
26080 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26081
26082         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
26083         of x86_64 when setting libc_cv_slibdir, libdir and
26084         libc_cv_localedir.
26085         * sysdeps/unix/sysv/linux/configure: Regenerated.
26086
26087 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26088
26089         * manual/lang.texi (Old Varargs): Remove section.
26090         (How Variadic): Update menu.
26091         (va_start): Do not mention varargs.h.
26092
26093 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26094             Joseph Myers  <joseph@codesourcery.com>
26095
26096         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
26097         link test.
26098         * configure: Regenerated.
26099
26100 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26101
26102         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
26103         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
26104         conformtest.pl
26105
26106 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26107
26108         * NOTES: Remove.
26109         * Makefile (files-for-dist): Remove NOTES.
26110         (NOTES): Remove rule.
26111         * README: Don't refer to NOTES.
26112         * manual/creature.texi: Don't include macros.texi.
26113         * manual/intro.texi (creature.texi): Remove comment referring to
26114         NOTES.
26115
26116         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
26117         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
26118         * configure: Regenerated.
26119         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
26120         LIBC_TRY_CC_OPTION.
26121         (libc_cv_as_i686): Likewise.
26122         (libc_cv_cc_avx): Likewise.
26123         (libc_cv_cc_sse2avx): Likewise.
26124         (libc_cv_cc_fma4): Likewise.
26125         (libc_cv_cc_novzeroupper): Likewise.
26126         * sysdeps/i386/configure: Regenerated.
26127
26128         [BZ #13883]
26129         * sysdeps/i386/fpu/s_cexp.S: Remove.
26130         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26131         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26132         * math/libm-test.inc (cexp_test): Add more tests.
26133         * sysdeps/i386/fpu/libm-test-ulps: Update.
26134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26135
26136 2012-03-21  Allan McRae  <allan@archlinux.org>
26137
26138         * timezone/Makefile: Do not install iso3166.tab and zone.tab
26139
26140 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26141
26142         [BZ #13871]
26143         * math/w_exp2.c: Do not include <float.h>.
26144         (o_threshold, u_threshold): Remove.
26145         (__exp2): Calculate result before checking finiteness and calling
26146         __kernel_standard.
26147         * math/w_exp2f.c: Likewise.
26148         * math/w_exp2l.c: Likewise.
26149         * math/libm-test.inc (exp2_test): Require overflow exception for
26150         1e6 input.
26151
26152         [BZ #3866]
26153         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
26154         range of signed 64-bit integers before using fistpll.  Remove
26155         checks for whether integers fit in mantissa bits.
26156         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
26157         the range of signed 32-bit integers before using fistpl.  Remove
26158         checks for whether integers fit in mantissa bits.
26159         * sysdeps/i386/fpu/e_powl.S (p64): New object.
26160         (__ieee754_powl): Test for y outside the range of signed 64-bit
26161         integers before using fistpll.  Reduce 64-bit values to 63-bit
26162         ones as needed.
26163         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
26164         divide-by-zero is raised for zero to large negative powers.
26165         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
26166         (__ieee754_powl): Test for y outside the range of signed 64-bit
26167         integers before using fistpll.  Reduce 64-bit values to 63-bit
26168         ones as needed.
26169         * math/libm-test.inc (pow_test): Add more tests.
26170
26171 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26172
26173         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
26174         <stdio-common/_itoa.h>.
26175         * debug/segfault.c: Likewise.
26176         * elf/dl-cache.c: Likewise.
26177         * elf/dl-minimal.c: Likewise.
26178         * elf/dl-misc.c: Likewise.
26179         * elf/dl-sysdep.c: Likewise.
26180         * elf/dl-version.c: Likewise.
26181         * elf/rtld.c: Likewise.
26182         * hurd/hurdsock.c: Likewise.
26183         * hurd/lookup-retry.c: Likewise.
26184         * malloc/malloc.c: Likewise.
26185         * malloc/mtrace.c: Likewise.
26186         * nscd/nscd_getgr_r.c: Likewise.
26187         * nscd/nscd_getpw_r.c: Likewise.
26188         * nscd/nscd_getserv_r.c: Likewise.
26189         * posix/getopt_init.c: Likewise.
26190         * posix/wordexp.c: Likewise.
26191         * stdio-common/_itoa.c: Likewise.
26192         * stdio-common/printf_fphex.c: Likewise.
26193         * stdio-common/vfprintf.c: Likewise.
26194         * string/_strerror.c: Likewise.
26195         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
26196         * sysdeps/i386/i686/hp-timing.h: Likewise.
26197         * sysdeps/mach/_strerror.c: Likewise.
26198         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
26199         * sysdeps/mach/hurd/sethostid.c: Likewise.
26200         * sysdeps/mach/hurd/xmknodat.c: Likewise.
26201         * sysdeps/mach/xpg-strerror.c: Likewise.
26202         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
26203         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
26204         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
26205         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
26206         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
26207         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
26208         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
26209         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
26210         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
26211         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
26212         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
26213         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
26214         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
26215         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
26216         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
26217         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
26218         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
26219         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
26220         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
26221         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
26222         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
26223
26224         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
26225
26226         * stdio-common/_itoa.h: Moved to ...
26227         * sysdeps/generic/_itoa.h: Here.
26228
26229         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
26230
26231         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
26232         instead of "_itoa.h" and "_itowa.h".
26233         * stdio-common/vfprintf.: Likewise.
26234
26235 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26236
26237         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
26238         <bits/wordsize.h>.
26239         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
26240         (__signbit): Likwise.
26241         (llrintf): Likwise.
26242         (llrint): Likwise.
26243
26244 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26245
26246         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
26247         __WORDSIZE != 64.
26248
26249 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
26250
26251         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
26252         OVERFLOW_EXCEPTION_OK.
26253         * math/libm-test.inc ("Philosophy"): Update comment about
26254         exception testing.
26255         (OVERFLOW_EXCEPTION): Define.
26256         (OVERFLOW_EXCEPTION_OK): Likewise.
26257         (INVALID_EXCEPTION_OK): Renumber.
26258         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
26259         (IGNORE_ZERO_INF_SIGN): Likewise.
26260         (test_exceptions): Handle FE_OVERFLOW.
26261         (exp10_test): Expect overflow exceptions.
26262         (exp2_test): Likewise.
26263         (expm1_test): Likewise.
26264         (nextafter_test): Likewise.
26265         (pow_test): Likewise.
26266         (scalbn_test): Likewise.
26267         (scalbln_test): Likewise.
26268
26269 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26270
26271         * sysdeps/x86_64/bits/atomic.h
26272         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
26273         64bit integer.
26274         (atomic_exchange_acq): Likewise.
26275         (__arch_exchange_and_add_body): Likewise.
26276         (__arch_add_body): Likewise.
26277         (atomic_add_negative): Likewise.
26278         (atomic_add_zero): Likewise.
26279
26280 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
26283         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
26284
26285 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26286
26287         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
26288         Check __x86_64__ instead of __WORDSIZE.
26289
26290 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26291
26292         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
26293
26294 2012-03-19  David S. Miller  <davem@davemloft.net>
26295
26296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26297
26298         * sysdeps/sparc/fpu/fenv_private.h: New file.
26299         * sysdeps/sparc/fpu/math_private.h: Use it.
26300         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
26301         Remove.
26302         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
26303         (libc_feholdexcept_setroundl): Remove.
26304         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
26305         Remove.
26306         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
26307         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
26308
26309 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26310
26311         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
26312         int64_t instead of long int.
26313         (INSERT_WORDS64): Likwise.
26314
26315 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
26316
26317         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
26318         _Unwind_GetCFA return to _Unwind_Ptr first.
26319
26320 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
26321
26322         [BZ #13629]
26323         * math/s_clog.c: Include <float.h>.
26324         (__clog): Scale large or subnormal inputs.
26325         * math/s_clogf.c: Likewise.
26326         * math/s_clogl.c: Likewise.
26327         * math/s_clog10.c: Include <float.h>.
26328         (M_LOG10_2): Define.
26329         (__clog10): Scale large or subnormal inputs.
26330         * math/s_clog10f.c: Likewise.
26331         * math/s_clog10l.c: Likewise.
26332         * math/libm-test.inc (clog_test): Add more tests.
26333         (clog10_test): Likewise.
26334         * sysdeps/i386/fpu/libm-test-ulps: Update.
26335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26336
26337         [BZ #11451]
26338         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
26339         x and y.
26340         * math/libm-test.inc (atan2_test): Add another test.
26341
26342         * Makerules (common-objdir-compile): Remove.
26343         * sysdeps/unix/Makefile (config-generated): Do not add
26344         $(unix-generated) to variable.
26345         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
26346         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
26347         Remove rule.
26348         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
26349         Likewise.
26350         [generic bits/local_lim.h] (before-compile): Do not append to
26351         variable.
26352         [generic bits/local_lim.h] (common-generated): Likewise.
26353         [generic sys/param.h] (before-compile): Do not append to variable.
26354         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
26355         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
26356         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
26357         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
26358         include.
26359         [generic sys/param.h] (sys/param.h-includes): Remove variable.
26360         [generic sys/param.h] (sys/param.h-includes): Remove rule.
26361         [generic sys/param.h] ($(addprefix
26362         $(common-objpfx),$(sys/param.h-includes))): Likewise.
26363         [generic sys/param.h] (common-generated): Do not append to
26364         variable.
26365         [generic sys/param.h] (sysdep_headers): Likewise.
26366         [generic bits/errno.h] (before-compile): Do not append to
26367         variable.
26368         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
26369         rule.
26370         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
26371         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
26372         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
26373         [generic bits/errno.h] (common-generated): Do not append to
26374         variable.
26375         [generic bits/ioctls.h] (before-compile): Do not append to
26376         variable.
26377         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
26378         rule.
26379         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
26380         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
26381         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
26382         rule.
26383         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
26384         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
26385         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
26386         [generic bits/ioctls.h] (common-generated): Do not append to
26387         variable.
26388         [generic sys/syscall.h] (syscall.h): Remove variable.
26389         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
26390         rule.
26391         [generic sys/syscall.h] (before-compile): Do not append to
26392         variable.
26393         [generic sys/syscall.h] (common-generated): Likewise.
26394         * sysdeps/unix/errnos-tmpl.c: Remove file.
26395         * sysdeps/unix/errnos.awk: Likewise.
26396         * sysdeps/unix/ioctls-tmpl.c: Likewise.
26397         * sysdeps/unix/ioctls.awk: Likewise.
26398         * sysdeps/unix/mk-local_lim.c: Likewise.
26399         * sysdeps/unix/snarf-ioctls: Likewise.
26400
26401 2012-03-19  Richard Henderson  <rth@twiddle.net>
26402
26403         * sysdeps/i386/fpu/fenv_private.h: New file.
26404         * sysdeps/i386/fpu/math_private.h: Use it.
26405         (math_opt_barrier, math_force_eval): Remove.
26406         (libc_feholdexcept_setround_53bit): Remove.
26407         (libc_feupdateenv_53bit): Remove.
26408         * sysdeps/x86_64/fpu/math_private.h: Likewise.
26409         (math_opt_barrier, math_force_eval): Remove.
26410         (libc_feholdexcept): Remove.
26411         (libc_feholdexcept_setround): Remove.
26412         (libc_fetestexcept, libc_fesetenv): Remove.
26413         (libc_feupdateenv_test): Remove.
26414         (libc_feupdateenv, libc_feholdsetround): Remove.
26415         (libc_feresetround): Remove.
26416
26417         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
26418         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
26419
26420         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
26421         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
26422         (libc_feupdateenv_testl): New.
26423         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
26424         (libc_feupdateenv_testf): New.
26425         (libc_feupdateenv): Use libc_feupdateenv_test.
26426         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
26427         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
26428
26429         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
26430         (libc_feholdsetroundf, libc_feholdsetroundl): New.
26431         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
26432         (libc_feresetround_noex): New.
26433         (libc_feresetround_noexf): New.
26434         (libc_feresetround_noexl): New.
26435         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
26436         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
26437         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
26438         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
26439         SET_RESTORE_ROUND.
26440         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
26441         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
26442         (__cos): Likewise.
26443         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
26444         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
26445         SET_RESTORE_ROUND_NOEX.
26446         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
26447         SET_RESTORE_ROUND_NOEXF.
26448         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
26449         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
26450         (libc_feholdsetroundf): New.
26451         (libc_feresetround, libc_feresetroundf): New.
26452
26453         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
26454         (libc_feholdexcept_setround_53bit): Convert from macro to function.
26455         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
26456
26457         * sysdeps/generic/math_private.h: Include <fenv.h>.
26458         (default_libc_feholdexcept): New.
26459         (default_libc_feholdexcept_setround): New.
26460         (default_libc_fesetenv, default_libc_feupdateenv): New.
26461         (libc_feholdexcept): Only define if undefined.
26462         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
26463         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
26464         (libc_feholdexcept_setroundl): Likewise.
26465         (libc_feholdexcept_setround_53bit): Likewise.
26466         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
26467         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
26468         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
26469         (libc_feupdateenv_53bit): Likewise.
26470         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
26471         (libc_feholdexcept): Convert from macro to inline function.
26472         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
26473         (libc_fesetenv, libc_feupdateenv): Likewise.
26474
26475         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
26476         not previously defined.
26477         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
26478         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
26479         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
26480         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
26481         * sysdeps/ieee754/flt-32/math_private.h: New file.
26482         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
26483         math_private.h below SET_FLOAT_WORD.
26484         (__isnan, __isinf_ns, __finite): Remove.
26485         (__isnanf, __isinf_nsf, __finitef): Remove.
26486
26487 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
26488
26489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26490
26491 2012-03-17  David S. Miller  <davem@davemloft.net>
26492
26493         [BZ #6471]
26494         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
26495         for 2.16.
26496
26497 2012-03-16  David S. Miller  <davem@davemloft.net>
26498
26499         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
26500         warnings.
26501
26502         [BZ #6471]
26503         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
26504         properly.
26505         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
26506         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
26507         sysdep_routines when subdir is sysvipc.
26508         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
26509         __getshmlba helper.
26510
26511         * sysdeps/sparc/fpu/libm-test/ulps: Update.
26512
26513 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26514
26515         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
26516         [__LP64__].
26517
26518 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26519
26520         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
26521         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
26522         (__lround): Renamed to ...
26523         (__llround): This.  Replace long int with long long int.
26524         Define lround functions as aliases of llround functions.
26525         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
26526
26527 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26528
26529         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
26530         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
26531         adresses to uintptr_t.  Replace "long int" and "unsigned long
26532         int" with "greg_t" on va_arg.
26533
26534 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26535
26536         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
26537         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
26538
26539         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
26540         Move e_machine check before EI_CLASS check.  Handle x32
26541         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
26542         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
26543         SKIP_EM_IA_64 and include
26544         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
26545
26546         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
26547         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
26548         (add_system_dir): New macro.
26549
26550         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
26551         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
26552
26553 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
26554
26555         [BZ #2551]
26556         [BZ #2552]
26557         [BZ #2553]
26558         [BZ #2554]
26559         [BZ #2562]
26560         [BZ #2563]
26561         [BZ #2565]
26562         [BZ #2566]
26563         [BZ #2576]
26564         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
26565         (y0): Likewise.
26566         * math/w_j0f.c (j0f): Likewise.
26567         (y0f): Likewise.
26568         * math/w_j0l.c (__j0l): Likewise.
26569         (__y0l): Likewise.
26570         * math/w_j1.c (j1): Likewise.
26571         (y1): Likewise.
26572         * math/w_j1f.c (j1f): Likewise.
26573         (y1f): Likewise.
26574         * math/w_j1l.c (__j1l): Likewise.
26575         (__y1l): Likewise.
26576         * math/w_jn.c (jn): Likewise.
26577         (yn): Likewise.
26578         * math/w_jnf.c (jnf): Likewise.
26579         (ynf): Likewise.
26580         * math/w_jnl.c (__jnl): Likewise.
26581         (__ynl): Likewise.
26582         * math/libm-test.inc (j0_test): Add more tests.
26583         (j1_test): Likewise.
26584         (jn_test): Likewise.  Add trailing semicolon to existing test.
26585         (y0_test): Likewise.
26586         (y1_test): Likewise.
26587         * sysdeps/i386/fpu/libm-test-ulps: Update.
26588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26589
26590         [BZ #13851]
26591         [BZ #13854]
26592         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
26593         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
26594         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
26595         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
26596         (__tanl): Set errno for infinite argument.
26597         * sysdeps/i386/fpu/mptan.c: Remove.
26598         * sysdeps/i386/fpu/s_tan.S: Likewise.
26599         * sysdeps/i386/fpu/s_tanl.S: Likewise.
26600         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
26601         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
26602         * math/libm-test.inc (tan_test): Add more tests and enable more
26603         tests for double and long double.
26604         * sysdeps/i386/fpu/libm-test-ulps: Update.
26605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26606
26607 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
26608
26609         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
26610         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
26611
26612 2012-03-16  Roland McGrath  <roland@hack.frob.com>
26613
26614         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
26615         * configure.in: Use it for both main tree and add-ons.
26616         * configure: Regenerated.
26617
26618 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26619
26620         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
26621
26622 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
26623
26624         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
26625         in comment.
26626
26627         [BZ #13851]
26628         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
26629         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
26630         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
26631         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
26632         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
26633         infinite argument.
26634         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
26635         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
26636         != 0 for prec == 2.
26637         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
26638         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
26639         * sysdeps/i386/fpu/s_cosl.S: Likewise.
26640         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
26641         * sysdeps/i386/fpu/s_sinl.S: Likewise.
26642         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
26643         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
26644         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
26645         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
26646         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
26647         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
26648         * math/libm-test.inc (cos_test): Add more tests and enable more
26649         tests for long double.
26650         (sin_test): Likewise.
26651         (sincos_test): Likewise.
26652         * sysdeps/i386/fpu/libm-test-ulps: Update.
26653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26654
26655 2012-03-16  David S. Miller  <davem@davemloft.net>
26656
26657         * sysdeps/sparc/fpu/math_private.h: New file.
26658
26659 2012-03-15  David S. Miller  <davem@davemloft.net>
26660
26661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
26662         file.
26663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
26664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
26665         file.
26666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
26667         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
26668         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
26669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
26670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
26671         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
26672         sysdep routines.
26673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
26674
26675         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
26676         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
26677
26678         * sysdeps/sparc/sparc-ifunc.h: New file.
26679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
26680         sparc-ifunc.h
26681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
26682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26683         Likewise.
26684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26685         Likewise.
26686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
26687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
26690         Likewise.
26691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
26693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
26695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
26696         Likewise.
26697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
26698         Likewise.
26699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
26702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
26703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
26704         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
26705         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
26706         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
26707         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
26708         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
26709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
26710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
26711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
26712         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
26713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
26714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26715         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
26716         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26717         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
26718         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26719         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
26720         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26721         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
26722         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26723
26724 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
26725
26726         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
26727         scaling.
26728         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26729
26730 2012-03-15  Andreas Jaeger  <aj@suse.de>
26731
26732         [BZ #13852]
26733         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
26734         ieee754/flt-32 implementation for sin, cos and sincos.
26735         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
26736         * sysdeps/i386/fpu/s_cosf.S: Likewise.
26737         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
26738         * sysdeps/i386/fpu/s_sinf.S: Likewise.
26739         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
26740         ieee754/flt-32 implementation for tan.
26741
26742         * math/libm-test.inc (cos_test): Enable some large input tests for
26743         float as well
26744         (sin_test): Likewise.
26745         (sincos_test): Likewise.
26746         (tan_test): Add tests for large input.
26747
26748         * sysdeps/i386/fpu/libm-test-ulps: Update.
26749
26750 2012-03-15  Andreas Jaeger  <aj@suse.de>
26751
26752         [BZ #13658]
26753         * math/libm-test.inc (cos_test): Add more test cases.
26754         (sin_test): Likewise.
26755         (sincos_test): Likewise.
26756
26757 2012-03-15  Andreas Jaeger  <aj@suse.de>
26758
26759         [BZ #13837]
26760         * math/libm-test.inc (cos_test): Add a test case for large input
26761         value.
26762         (sin_test): Likewise.
26763         (sincos_test): Likewise.
26764
26765 2012-03-15  Andreas Jaeger  <aj@suse.de>,
26766         Joseph Myers  <joseph@codesourcery.com>
26767
26768         [BZ #13658]
26769         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
26770         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
26771         * sysdeps/i386/fpu/branred.c: Likewise.
26772         * sysdeps/i386/fpu/dosincos.c: Likewise.
26773         * sysdeps/i386/fpu/mpa.c: Likewise.
26774         * sysdeps/i386/fpu/s_cos.S: Likewise.
26775         * sysdeps/i386/fpu/s_sin.S: Likewise.
26776         * sysdeps/i386/fpu/s_sincos.S: Likewise.
26777         * sysdeps/i386/fpu/sincos32.c: Likewise.
26778
26779         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
26780         Define.
26781         (libc_feupdateenv_53bit): Define.
26782         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
26783         Define.
26784         (libc_feupdateenv_53bit): Define.
26785
26786         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
26787         53 bit (without extend i386 double precision).
26788
26789         * math/libm-test.inc (sincos_test): Add tests for large input.
26790         (sin): Likewise.
26791         (cos): Likewise.
26792
26793         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26794
26795 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
26796
26797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26798
26799 2012-03-15  David S. Miller  <davem@davemloft.net>
26800
26801         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
26802         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
26803         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
26804         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
26805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
26806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
26807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
26808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
26809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
26810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
26811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
26812         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
26813         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
26814         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
26815         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
26816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
26817         file.
26818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
26819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
26820         file.
26821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
26822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
26823         file.
26824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
26825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
26826         file.
26827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
26828         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
26829         fmin/fmax sysdep routines.
26830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
26831
26832 2012-03-14  David S. Miller  <davem@davemloft.net>
26833
26834         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
26835         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
26836         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
26837         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
26838         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
26839         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
26840         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
26841         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
26842         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
26843         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
26844         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
26845         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
26846         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
26847         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
26848         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
26849         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
26850         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
26851         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
26852         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
26853         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
26854         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
26855         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
26856         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
26857         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
26858         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
26859         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
26860         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
26861         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
26862         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
26863         routines.
26864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
26865         file.
26866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
26867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
26868         file.
26869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
26870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
26871         file.
26872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
26873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
26874         file.
26875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
26876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
26877         file.
26878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
26879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
26880         file.
26881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
26882         file.
26883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
26884         file.
26885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
26886         file.
26887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
26888         New file.
26889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
26890         file.
26891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
26892         file.
26893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
26894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
26895         file.
26896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
26897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
26898         file.
26899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
26900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
26901         file.
26902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
26903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
26904         VIS3 routines.
26905
26906         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
26907         New file.
26908
26909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26910
26911         * sysdeps/sparc/configure.in: New file.
26912         * sysdeps/sparc/configure: Generate.
26913         * configure.in (libc_cv_sparc_as_vis3): Substitute.
26914         * configure: Regenerate.
26915         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
26916         * config.make.in (have-as-vis3): New.
26917         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
26918         available use -Av9d instead of -Av9a.
26919         * sysdeps/sparc/sparc64/Makefile: Likewise.
26920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
26921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
26922         New file.
26923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
26924         file.
26925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
26926         New file.
26927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
26928         file.
26929         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
26930         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
26931         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
26932         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
26933         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
26934
26935         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
26936         fzeros/fnegs to load 0x80000000 into a float register instead of
26937         using the stack.
26938         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
26939
26940 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
26941
26942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26943         bits/syscall.h.
26944         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
26945         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
26946         ($(inst_includedir)/bits/syscall.h): Remove rule.
26947         ($(objpfx)bits/syscall.d): Include instead of
26948         $(objpfx)syscall-list.d.
26949         (generated): Change syscall-list.h and syscall-list.d to
26950         bits/syscall.h and bits/syscall.d.
26951
26952 2012-03-14  Roland McGrath  <roland@hack.frob.com>
26953
26954         [BZ #13846]
26955         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
26956
26957 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
26958
26959         [BZ #13841]
26960         * math/s_csqrt.c: Include <float.h>.
26961         (__csqrt): Scale large or subnormal inputs.
26962         * math/s_csqrtf.c: Likewise.
26963         * math/s_csqrtl.c: Likewise.
26964         * math/libm-test.inc (csqrt_test): Add more tests.
26965         * sysdeps/i386/fpu/libm-test-ulps: Update.
26966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26967
26968         [BZ #13840]
26969         * math/libm-test.inc (hypot_test): Add more tests.
26970
26971 2012-03-13  David S. Miller  <davem@davemloft.net>
26972
26973         [BZ #13840]
26974         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
26975         double-precision for the calculation instead of scaling.
26976
26977 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
26978
26979         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
26980         manipulate bits before adding and subtracting TWO52[sx].
26981         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
26982         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26983         Likewise.
26984         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
26985
26986 2012-03-13  David S. Miller  <davem@davemloft.net>
26987
26988         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
26989         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
26990         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
26991         rtld-global-offsets.h
26992         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26993
26994         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
26995         large parameters.
26996
26997         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
26998
26999         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
27000         'err' in the ifdef scope in which it is actually used.
27001
27002         * nss/nss_db/db-init.c: Include string.h
27003
27004 2012-03-12  David S. Miller  <davem@davemloft.net>
27005
27006         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27007         masking out of the most significant byte of random value used.
27008         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27009         Fix coding style in previous change.
27010
27011         * sysdeps/unix/sysv/linux/kernel-features.h
27012         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
27013         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
27014         expression.
27015         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
27016         later.
27017
27018 2012-03-11  David S. Miller  <davem@davemloft.net>
27019
27020         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
27021         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
27022         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
27023         for 'resultvar' otherwise things get truncated on 64-bit.
27024
27025         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27026         Fix masking out of the most significant byte of random value used.
27027
27028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27029
27030 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
27031
27032         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27033
27034 2012-03-09  David S. Miller  <davem@davemloft.net>
27035
27036         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
27037         variables with appropriate CPP guards.
27038         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
27039         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
27040         on resulting framesize and the management of the outregs buffer for pltexit.
27041         Preserve floating point return values across _dl_call_pltexit call.
27042         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
27043         framesize and the management of the outregs buffer for pltexit.
27044         Preserve floating point return values across _dl_call_pltexit
27045         call.
27046         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
27047         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
27048         (print_exit): Fix format string for return register value.
27049
27050 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
27051
27052         * sunrpc/Makefile (others): Add rpcgen.
27053         ($(objpfx)rpcgen): Remove special build rule and dependency on
27054         libc.
27055         * sunrpc/rpcgen.c: New file.
27056
27057 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27058
27059         [BZ #13673]
27060         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
27061         * stdio-common/bug-vfprintf-nargs.c: Likewise.
27062         * sysdeps/i386/crti.S: Likewise.
27063         * sysdeps/i386/crtn.S: Likewise.
27064         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
27065         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
27066         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
27067         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
27068         * sysdeps/sh/crti.S: Likewise.
27069         * sysdeps/sh/crtn.S: Likewise.
27070         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
27071
27072         [BZ #13673]
27073         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
27074         with URL.
27075         * locale/programs/locfile-kw.gperf: Likewise.
27076         * locale/programs/charmap-kw.h: Regenerated.
27077         * locale/programs/locfile-kw.h: Likewise.
27078
27079         [BZ #13673]
27080         * intl/plural.y: Replace FSF snail mail address with URL.
27081         * intl/plural.c: Regenerated.
27082
27083 2012-03-09  Richard Henderson  <rth@twiddle.net>
27084
27085         * include/math_private.h: Remove file.
27086         * math/math_private.h: Move file ...
27087         * sysdeps/generic/math_private.h: ... here.
27088
27089         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
27090         * sysdeps/powerpc/fpu/math_private.h: Likewise.
27091         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27092
27093         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
27094         and <math_private.h>.
27095         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27096         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27097         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27098         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27099         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27100         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
27101         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
27102         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27103         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
27104         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27105         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27106         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27107         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
27108         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27109         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
27110         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
27111         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27112         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
27113         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
27114         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
27115         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27116         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
27117         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
27118         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27119         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
27120         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
27121         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
27122         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27123         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27124         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27125         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
27126         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27127         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
27128         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
27129         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27130         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27131         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
27132         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27133         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27134         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27135         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
27136         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27137         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27138         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
27139         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
27140         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27141         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
27142         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
27143         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
27144         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27145         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
27146         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
27147         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
27148         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27149         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
27150         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
27151         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27152         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
27153         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
27154         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
27155         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
27156         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
27157         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27158         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27159         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
27160         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
27161         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
27162         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
27163         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
27164         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
27165         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
27166         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27167         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
27168         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27169         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
27170         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
27171         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
27172         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27173         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
27174         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
27175         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
27176         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
27177         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
27178         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
27179         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
27180         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
27181         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
27182         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
27183         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
27184         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27185         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27186         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
27187         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27188         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
27189         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
27190         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
27191         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
27192         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
27193         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
27194         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
27195         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
27196         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
27197         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
27198         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
27199         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
27200         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
27201         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
27202         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
27203         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
27204         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
27205         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
27206         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
27207         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
27208         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
27209         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
27210         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
27211         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
27212         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
27213         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
27214         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
27215         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
27216         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
27217         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
27218         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
27219         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
27220         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
27221         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
27222         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
27223         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
27224         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
27225         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
27226         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
27227         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
27228         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
27229         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
27230         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
27231         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
27232         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
27233         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
27234         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
27235         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
27236         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
27237         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
27238         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
27239         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
27240         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
27241         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
27242         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
27243         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
27244         * sysdeps/ieee754/k_standard.c: Likewise.
27245         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
27246         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
27247         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27248         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
27249         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
27250         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
27251         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
27252         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
27253         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
27254         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
27255         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
27256         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
27257         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
27258         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
27259         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
27260         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
27261         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
27262         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
27263         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
27264         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
27265         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
27266         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
27267         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
27268         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
27269         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
27270         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
27271         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
27272         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
27273         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
27274         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
27275         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
27276         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
27277         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
27278         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
27279         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
27280         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
27281         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
27282         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
27283         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
27284         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
27285         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
27286         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
27287         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
27288         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
27289         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
27290         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
27291         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
27292         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
27293         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
27294         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
27295         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
27296         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
27297         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
27298         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
27299         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
27300         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
27301         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
27302         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
27303         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
27304         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
27305         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
27306         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
27307         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
27308         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
27309         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27310         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27311         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
27312         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
27313         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
27314         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
27315         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
27316         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
27317         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
27318         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
27319         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
27320         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
27321         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
27322         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
27323         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
27324         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
27325         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
27326         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
27327         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
27328         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
27329         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
27330         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27331         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
27332         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
27333         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
27334         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
27335         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
27336         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
27337         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
27338         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
27339         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27340         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
27341         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
27342         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
27343         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
27344         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
27345         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
27346         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27347         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
27348         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
27349         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
27350         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
27351         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27352         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
27353         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
27354         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
27355         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
27356         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
27357         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
27358         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27359         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
27360         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
27361         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
27362         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27363         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
27364         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
27365         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
27366         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
27367         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
27368         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
27369         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27370         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
27371         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
27372         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
27373         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
27374         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
27375         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
27376         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
27377         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
27378         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
27379         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
27380         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
27381         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
27382         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
27383         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
27384         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
27385         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
27386         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
27387         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
27388         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
27389         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
27390         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
27391         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
27392         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
27393         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
27394         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
27395         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
27396         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
27397         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
27398         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
27399         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
27400         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
27401         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
27402         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
27403         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
27404         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
27405         * sysdeps/ieee754/s_lib_version.c: Likewise.
27406         * sysdeps/ieee754/s_matherr.c: Likewise.
27407         * sysdeps/ieee754/s_signgam.c: Likewise.
27408         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
27409         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
27410         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
27411         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
27412         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
27413         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
27414         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
27415         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
27416         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
27417         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
27418         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
27419         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
27420         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
27421         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
27422         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
27423         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
27424         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
27425         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
27426         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
27427         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
27428         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
27429
27430 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
27431
27432         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
27433         * sunrpc/rpc_main.c: Likewise.
27434         * sunrpc/rpc_svcout.c: Likewise.
27435
27436 2012-03-09  David S. Miller  <davem@davemloft.net>
27437
27438         * include/math_private.h: New file.
27439
27440 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
27441
27442         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
27443         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
27444         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
27445         from <bits/socket_type.h>.
27446         (enum __socket_type): Don't define here.
27447         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
27448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27449         bits/socket_type.h.
27450
27451         [BZ #13566]
27452         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
27453         checking __USE_GNU.
27454
27455         * Makerules ($(inst_includedir)/%.h): New rule.
27456         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
27457         (install-others): Remove variable setting.
27458         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
27459
27460 2012-03-08  Richard Henderson  <rth@twiddle.net>
27461
27462         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
27463         from macro to inline function; merge with the
27464         !__LIBC_INTERNAL_MATH_INLINES version.
27465         (__ieee754_sqrtf): Likewise.
27466
27467         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
27468         to inline function.
27469         (__rintf, __floor, __floorf): Likewise.
27470
27471         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
27472         macro to inline function.
27473         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
27474
27475         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
27476         not <math/math_private.h>.
27477
27478 2012-03-08  David S. Miller  <davem@davemloft.net>
27479
27480         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
27481         copyright year.
27482         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
27483
27484 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
27485
27486         * resolv/gai_misc.c (handle_requests): Fix struct timespec
27487         normalization.
27488         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
27489         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
27490
27491 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
27492
27493         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
27494         be defined individually, they must be defined as a block.  Define
27495         S for printing a string instead of hidint the different by using a
27496         macro for adding the 'l'.
27497         * stdio-common/tst-fphex-wide.c: Adjust.
27498
27499 2012-03-07  Marek Polacek  <polacek@redhat.com>
27500
27501         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
27502
27503 2012-03-08  Marek Polacek  <polacek@redhat.com>
27504
27505         [BZ #13806]
27506         * stdio-common/Makefile (tests): Add tst-fphex-wide.
27507         * stdio-common/tst-fphex.c: Define a few macros to make the
27508         test reusable.  Use them.
27509         * stdio-common/tst-fphex-wide.c: New file.
27510
27511 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
27512
27513         [BZ #6911]
27514         * manual/macros.texi (gnusystems): New macro.
27515         (nongnusystems): Likewise.
27516         (gnulinuxhurdsystems): Likewise.
27517         (gnuhurdsystems): Likewise..
27518         (gnulinuxsystems): Likewise.
27519         * manual/charset.texi: Use new macros or @theglibc{} to refer to
27520         variants of the GNU system, not "GNU system".
27521         * manual/conf.texi: Likewise.
27522         * manual/errno.texi: Likewise.  Update example of errno macro
27523         expansion.
27524         * manual/filesys.texi: Likewise.
27525         (getumask): Document as specific to GNU/Hurd.
27526         * manual/install.texi: Likewise.  Reword some references to
27527         GNU/Linux.
27528         * manual/intro.texi: Likewise.
27529         * manual/io.texi: Likewise.
27530         (File Name Portability): Detail which constraints are inapplicable
27531         to all GNU systems and which are only inapplicable to GNU/Hurd.
27532         * manual/job.texi: Likewise.
27533         * manual/llio.texi: Likewise.
27534         (O_NOCTTY): Document as present on GNU/Linux.
27535         * manual/maint.texi: Likewise.
27536         * manual/memory.texi: Likewise.
27537         * manual/pattern.texi: Likewise.
27538         * manual/pipe.texi: Likewise.
27539         * manual/process.texi: Likewise.
27540         * manual/resource.texi: Likewise.
27541         (RUSAGE_CHILDREN): Remove statement about specifying a particular
27542         child on GNU/Hurd.
27543         * manual/setjmp.texi: Likewise.
27544         * manual/signal.texi: Likewise.
27545         * manual/startup.texi: Likewise.
27546         * manual/stdio.texi: Likewise.
27547         * manual/terminal.texi: Likewise.
27548         (ONLCR): Document as POSIX.
27549         (OXTABS): Document availability on GNU/Linux as XTABS.
27550         (ONOEOT): Document availability separately from other bits.
27551         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
27552         * manual/time.texi: Likewise.
27553         * manual/users.texi: Likewise.
27554         * INSTALL: Regenerated.
27555         * sysdeps/gnu/errlist.c: Regenerated.
27556
27557         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
27558         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
27559         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
27560         puts.
27561         * configure: Regenerated.
27562
27563 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
27564
27565         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
27566         default includes instead of AC_HEADER_CHECK.
27567         * sysdeps/i386/configure: Regenerated.
27568
27569         [BZ #10716]
27570         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
27571         * math/s_cacoshf.c (__cacoshf): Likewise.
27572         * math/s_cacoshl.c (__cacoshl): Likewise.
27573         * math/s_casinh.c (__casinh): Set signs of result from argument.
27574         * math/s_casinhf.c (__casinhf): Likewise.
27575         * math/s_casinhl.c (__casinhl): Likewise.
27576         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
27577         (casinh_test): Add more tests.
27578         * sysdeps/i386/fpu/libm-test-ulps: Update.
27579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27580
27581 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
27582
27583         * po/zh_TW.po: Update from translation team.
27584
27585         * login/Makefile (distribute): Remove variable.
27586         * catgets/Makefile: Likewise.
27587         * mach/Makefile: Likewise.
27588         * malloc/Makefile: Likewise.
27589         * misc/Makefile: Likewise.
27590         * iconv/Makefile: Likewise.
27591         * nscd/Makefile: Likewise.
27592         * hurd/Makefile: Likewise.
27593         * manual/Makefile: Likewise.
27594         * locale/Makefile: Likewise.
27595         * intl/Makefile: Likewise.
27596         * conform/Makefile: Likewise.
27597         * nss/Makefile: Likewise.
27598         * time/Makefile: Likewise.
27599         * soft-fp/Makefile: Likewise.
27600         * dirent/Makefile: Likewise.
27601         * gmon/Makefile: Likewise.
27602         * po/Makefile: Likewise.
27603         * rt/Makefile: Likewise.
27604         * socket/Makefile: Likewise.
27605         * math/Makefile: Likewise.
27606         * signal/Makefile: Likewise.
27607         * debug/Makefile: Likewise.
27608         * elf/Makefile: Likewise.
27609         * timezone/Makefile: Likewise.
27610         * stdlib/Makefile: Likewise.
27611         * iconvdata/Makefile: Likewise.
27612         * sunrpc/Makefile: Likewise.
27613         * io/Makefile: Likewise.
27614         * argp/Makefile: Likewise.
27615         * inet/Makefile: Likewise.
27616         * hesiod/Makefile: Likewise.
27617         * grp/Makefile: Likewise.
27618         * csu/Makefile: Likewise.
27619         * wctype/Makefile: Likewise.
27620         * crypt/Makefile: Likewise.
27621         * libio/Makefile: Likewise.
27622         * string/Makefile: Likewise.
27623         * nis/Makefile: Likewise.
27624         * resolv/Makefile: Likewise.
27625         * stdio-common/Makefile: Likewise.
27626         * wcsmbs/Makefile: Likewise.
27627         * dlfcn/Makefile: Likewise.
27628         * posix/Makefile: Likewise.
27629
27630         [BZ #6959]
27631         * timezone/Makefile: Don't install timezone files, just the programs
27632         and scripts.
27633
27634 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
27635
27636         * nss/databases.def: Add missing gshadow entry.
27637
27638         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
27639
27640 2012-03-06  Marek Polacek  <polacek@redhat.com>
27641
27642         [BZ #13726]
27643         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
27644         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
27645         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
27646         * stdio-common/tst-long-dbl-fphex.c: New file.
27647
27648 2012-03-06  David S. Miller  <davem@davemloft.net>
27649
27650         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27651         (set_obp_int): New function.
27652         (get_obp_int): New function.
27653         (__get_clockfreq_via_dev_openprom): Likewise.
27654         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
27655         Avoid unused variable warnings on 'val' and use builtin_expect.
27656         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
27657         __builtin_expect.
27658         (INLINE_CLONE_SYSCALL): Likewise.
27659
27660 2012-03-05  David S. Miller  <davem@davemloft.net>
27661
27662         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27663
27664 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
27665
27666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27667
27668         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
27669         only for |x| >= 40.
27670         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
27671
27672 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
27673
27674         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
27675         Replace gettimeofday with __vdso_gettimeofday.
27676
27677         * sysdeps/unix/sysv/linux/x86_64/init-first.c
27678         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
27679         __vdso_clock_gettime and __vdso_getcpu.
27680
27681         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
27682         time with __vdso_time.
27683
27684 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
27685
27686         * manual/lang.texi (size_t): Note types to which size_t may be
27687         equivalent with the GNU C Library, but do not describe when
27688         differences between them are significant.
27689
27690 2012-03-05  Andreas Jaeger  <aj@suse.de>
27691
27692         * sysdeps/i386/fpu/libm-test-ulps: Update.
27693
27694 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
27695
27696         [BZ #3976]
27697         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
27698         (__ieee754_pow): Save and restore rounding mode and use
27699         round-to-nearest for main computations.
27700         * math/libm-test.inc (pow_test_tonearest): New function.
27701         (pow_test_towardzero): Likewise.
27702         (pow_test_downward): Likewise.
27703         (pow_test_upward): Likewise.
27704         (main): Call the new functions.
27705         * sysdeps/i386/fpu/libm-test-ulps: Update.
27706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27707
27708         [BZ #3976]
27709         * math/libm-test.inc (cosh_test_tonearest): New function.
27710         (cosh_test_towardzero): Likewise.
27711         (cosh_test_downward): Likewise.
27712         (cosh_test_upward): Likewise.
27713         (sinh_test_tonearest): Likewise.
27714         (sinh_test_towardzero): Likewise.
27715         (sinh_test_downward): Likewise.
27716         (sinh_test_upward): Likewise.
27717         (main): Call the new functions.
27718         * sysdeps/i386/fpu/libm-test-ulps: Update.
27719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27720
27721 2012-03-05  Tom de Vries  <tom@codesourcery.com>
27722
27723         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
27724         default stack guard is set in last bytes.
27725         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
27726
27727 2012-03-05  Kees Cook  <keescook@chromium.org>
27728
27729         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
27730
27731         [BZ #13656]
27732         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
27733         possibly allocate from heap instead of stack.
27734         * stdio-common/bug-vfprintf-nargs.c: New file.
27735         * stdio-common/Makefile (tests): Add nargs overflow test.
27736
27737 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
27738
27739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27740
27741 2012-03-03  Marek Polacek  <polacek@redhat.com>
27742
27743         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
27744         * math/math_private.h: Likewise.
27745         * stdlib/tst-strtod.c: Likewise.
27746         * sysdeps/i386/i486/bits/atomic.h: Likewise.
27747         * sysdeps/x86_64/bits/atomic.h: Likewise.
27748
27749 2012-03-02  David S. Miller  <davem@davemloft.net>
27750
27751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
27752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
27753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
27754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
27755         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
27756         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
27757         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
27758         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
27759
27760 2012-03-02  Roland McGrath  <roland@hack.frob.com>
27761
27762         [BZ #13792]
27763         * manual/examples/README: New file, says the example source files
27764         can be used under GPL>=2.
27765         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
27766         line containing just "*/".
27767         * manual/examples/add.c: Add copyright header (GPL>=2).
27768         * manual/examples/argp-ex1.c: Likewise.
27769         * manual/examples/argp-ex2.c: Likewise.
27770         * manual/examples/argp-ex3.c: Likewise.
27771         * manual/examples/argp-ex4.c: Likewise.
27772         * manual/examples/atexit.c: Likewise.
27773         * manual/examples/db.c: Likewise.
27774         * manual/examples/dir.c: Likewise.
27775         * manual/examples/dir2.c: Likewise.
27776         * manual/examples/execinfo.c: Likewise.
27777         * manual/examples/filecli.c: Likewise.
27778         * manual/examples/filesrv.c: Likewise.
27779         * manual/examples/fmtmsgexpl.c: Likewise.
27780         * manual/examples/genpass.c: Likewise.
27781         * manual/examples/inetcli.c: Likewise.
27782         * manual/examples/inetsrv.c: Likewise.
27783         * manual/examples/isockad.c: Likewise.
27784         * manual/examples/longopt.c: Likewise.
27785         * manual/examples/memopen.c: Likewise.
27786         * manual/examples/memstrm.c: Likewise.
27787         * manual/examples/mkfsock.c: Likewise.
27788         * manual/examples/mkisock.c: Likewise.
27789         * manual/examples/mygetpass.c: Likewise.
27790         * manual/examples/pipe.c: Likewise.
27791         * manual/examples/popen.c: Likewise.
27792         * manual/examples/rprintf.c: Likewise.
27793         * manual/examples/search.c: Likewise.
27794         * manual/examples/select.c: Likewise.
27795         * manual/examples/setjmp.c: Likewise.
27796         * manual/examples/sigh1.c: Likewise.
27797         * manual/examples/sigusr.c: Likewise.
27798         * manual/examples/stpcpy.c: Likewise.
27799         * manual/examples/strdupa.c: Likewise.
27800         * manual/examples/strftim.c: Likewise.
27801         * manual/examples/strncat.c: Likewise.
27802         * manual/examples/subopt.c: Likewise.
27803         * manual/examples/swapcontext.c: Likewise.
27804         * manual/examples/termios.c: Likewise.
27805         * manual/examples/testopt.c: Likewise.
27806         * manual/examples/testpass.c: Likewise.
27807         * manual/examples/timeval_subtract.c: Likewise.
27808
27809         [BZ #13792]
27810         * manual/time.texi (Elapsed Time): Move timeval_subtract example
27811         function to ...
27812         * manual/timeval_subtract.c.texi: ... here, new file.
27813
27814 2012-03-02  David S. Miller  <davem@davemloft.net>
27815
27816         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
27817
27818 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
27819
27820         [BZ #3976]
27821         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
27822         (__sin): Save and restore rounding mode and use round-to-nearest
27823         for all computations.
27824         (__cos): Save and restore rounding mode and use round-to-nearest
27825         for all computations.
27826         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
27827         <fenv.h>.
27828         (tan): Save and restore rounding mode and use round-to-nearest for
27829         all computations.
27830         * math/libm-test.inc (cos_test_tonearest): New function.
27831         (cos_test_towardzero): Likewise.
27832         (cos_test_downward): Likewise.
27833         (cos_test_upward): Likewise.
27834         (sin_test_tonearest): Likewise.
27835         (sin_test_towardzero): Likewise.
27836         (sin_test_downward): Likewise.
27837         (sin_test_upward): Likewise.
27838         (tan_test_tonearest): Likewise.
27839         (tan_test_towardzero): Likewise.
27840         (tan_test_downward): Likewise.
27841         (tan_test_upward): Likewise.
27842         (main): Call the new functions.
27843         * sysdeps/i386/fpu/libm-test-ulps: Update.
27844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27845
27846         [BZ #10135]
27847         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
27848         small n, then large n, before computing and testing k+n.
27849         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
27850         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
27851         Likewise.
27852         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
27853         Likewise.
27854         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
27855         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
27856         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
27857         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
27858         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
27859         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
27860         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
27861         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
27862         * math/libm-test.inc (scalbn_test): Add more tests.
27863         (scalbln_test): Likewise.
27864
27865         * manual/filesys.texi (mode_t): Describe constraints on size and
27866         signedness, not exact equivalence to a particular type.
27867         (ino_t): Likewise.
27868         (ino64_t): Likewise.
27869         (dev_t): Likewise.
27870         (nlink_t): Likewise.
27871         (blkcnt_t): Likewise.
27872         (blkcnt64_t): Likewise.
27873         * manual/llio.texi (off_t): Likewise.
27874
27875         [BZ #3976]
27876         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
27877         (__ieee754_exp): Save and restore rounding mode and use
27878         round-to-nearest for all computations.
27879         * math/libm-test.inc (exp_test_tonearest): New function.
27880         (exp_test_towardzero): Likewise.
27881         (exp_test_downward): Likewise.
27882         (exp_test_upward): Likewise.
27883         (main): Call the new functions.
27884         * sysdeps/i386/fpu/libm-test-ulps: Update.
27885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27886
27887 2012-03-01  Chris Demetriou  <cgd@google.com>
27888
27889         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
27890         have predictable order.
27891
27892 2012-03-01  David S. Miller  <davem@davemloft.net>
27893
27894         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
27895
27896         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
27897         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
27898         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
27899         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
27900
27901         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
27902         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
27903         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
27904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
27905         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
27906         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
27907         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
27908         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
27909         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
27910
27911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27912
27913         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
27914         * sysdeps/sparc/fpu/libm-test-ulps: to here.
27915         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
27916
27917         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
27918         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
27919         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
27920         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
27921         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
27922         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
27923         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
27924         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
27925         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
27926         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
27927         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
27928         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
27929         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27930         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
27931         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
27932         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27933         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
27934         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
27935         * sysdeps/sparc/elf/configure: Regenerated.
27936
27937 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
27938
27939         * configure.in (AS, LD): Require binutils 2.20 or later.
27940         * configure: Regenerated.
27941         * manual/install.texi (Tools for Compilation): Give binutils 2.20
27942         as required minimum version.
27943         * INSTALL: Regenerated.
27944
27945         [BZ #2541]
27946         [BZ #4108]
27947         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
27948         before squaring exponent.
27949         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
27950         bottom long double and 27 bits of top long double before squaring
27951         exponent.
27952         * math/libm-test.inc (erfc_test): Add more tests.
27953         * sysdeps/i386/fpu/libm-test-ulps: Update.
27954         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
27955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27956
27957 2012-03-01  Kai Tietz  <ktietz@redhat.com>
27958
27959         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
27960         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
27961         containing bit-fields.
27962         * soft-fp/extended.h (_FP_UNION_E): Likewise.
27963         * soft-fp/single.h (_FP_UNION_S): Likewise.
27964         * soft-fp/double.h (_FP_UNION_D): Likewise.
27965
27966 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
27967
27968         [BZ #13786]
27969         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
27970         not include ../strcmp.S.
27971         [USE_AS_STRNCASECMP_L]: Likewise.
27972         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
27973         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
27974         * sysdeps/i386/i686/multiarch/strncase_l-c.c
27975         (__strncasecmp_l_ia32): Define as alias to
27976         __strncasecmp_l_nonascii.
27977
27978         [BZ #5794]
27979         * math/libm-test.inc (expm1_test): Add test for bug 5794.
27980         * sysdeps/i386/fpu/libm-test-ulps: Update.
27981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27982
27983         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
27984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27985
27986 2012-02-29  Jeff Law  <law@redhat.com>
27987
27988         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
27989         out of bounds read.
27990
27991 2012-02-29  Marek Polacek  <polacek@redhat.com>
27992
27993         [BZ #13706]
27994         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
27995         * elf/Makefile: Add rules to run tst-unused-dep.out.
27996
27997 2012-02-28  David S. Miller  <davem@davemloft.net>
27998
27999         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
28000         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
28001         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
28002         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
28003         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
28004         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
28005
28006 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
28007
28008         * math/libm-test.inc (llround_test): Move one test from
28009         lround_test.  Use TEST_f_L in moved test.
28010         (lround_test): Move misplaced test to llround_test.  Add testcase
28011         from bug 2561.
28012
28013 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
28014
28015         * sysdeps/x86_64/fpu/e_expf.S: New file.
28016         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
28017
28018 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
28019
28020         [BZ #13637]
28021         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
28022         of remain_len that may cause incomplete multi-byte character and
28023         false match.
28024         * posix/bug-regex33.c: New file.
28025         * posix/Makefile (tests): Add bug-regex33.
28026
28027 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
28028
28029         * manual/macros.texi: New file.
28030         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
28031         * manual/libc.texinfo: Include macros.texi.
28032         * manual/creatute.texi: Likewise.
28033         * manual/install.texi: Likewise.
28034         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
28035         @glibcadj{} in references to the GNU C Library.
28036         * manual/charset.texi: Likewise.
28037         * manual/conf.texi: Likewise.
28038         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
28039         when not using those macros.
28040         * manual/creature.texi: Likewise.
28041         * manual/crypt.texi: Likewise.
28042         * manual/errno.texi: Likewise.
28043         * manual/filesys.texi: Likewise.
28044         * manual/header.texi: Likewise.
28045         * manual/install.texi: Likewise.
28046         * manual/intro.texi: Likewise.
28047         * manual/io.texi: Likewise.
28048         * manual/job.texi: Likewise.
28049         * manual/lang.texi: Likewise.
28050         * manual/libc.texiinfo: Likewise.
28051         * manual/llio.texi: Likewise.
28052         * manual/locale.texi: Likewise.
28053         * manual/maint.texi: Likewise.
28054         * manual/math.texi: Likewise.
28055         * manual/memory.texi: Likewise.
28056         * manual/message.texi: Likewise.
28057         * manual/nss.texi: Likewise.
28058         * manual/pattern.texi: Likewise.
28059         * manual/process.texi: Likewise.
28060         * manual/resource.texi: Likewise.
28061         * manual/search.texi: Likewise.
28062         * manual/setjmp.texi: Likewise.
28063         * manual/signal.texi: Likewise.
28064         * manual/socket.texi: Likewise.
28065         * manual/startup.texi: Likewise.
28066         * manual/stdio.texi: Likewise.
28067         * manual/string.texi: Likewise.
28068         * manual/sysinfo.texi: Likewise.
28069         * manual/syslog.texi: Likewise.
28070         * manual/terminal.texi: Likewise.
28071         * manual/time.texi: Likewise.
28072         * manual/users.texi: Likewise.
28073         * INSTALL: Regenerated.
28074         * NOTES: Regenerated.
28075         * sysdeps/gnu/errlist.c: Regenerated.
28076
28077 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
28078
28079         * include/dirent.h: Include <dirstream.h> before
28080         <dirent/dirent.h>.
28081
28082 2012-02-28  David S. Miller  <davem@davemloft.net>
28083
28084         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
28085         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
28086         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
28087         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
28088
28089 2012-02-27  David S. Miller  <davem@davemloft.net>
28090
28091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
28092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
28093         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
28094         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
28095
28096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
28097         frame pointer instead of stack pointer relative arg slot.
28098         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28099         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28100         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28101
28102 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
28103
28104         [BZ #3992]
28105         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
28106
28107 2012-02-27  David S. Miller  <davem@davemloft.net>
28108
28109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
28110         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
28112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
28113         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28114         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28115         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
28116         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
28117
28118 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28119
28120         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
28121         later.  Allow versions 5-9.
28122         * configure: Regenerated.
28123         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
28124         required minimum version and 4.6 as recommended version.  Do not
28125         mention bugs in GCC 2.7 and 2.8.
28126         * INSTALL: Regenerated.
28127
28128 2012-02-27  David S. Miller  <davem@davemloft.net>
28129
28130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
28131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
28132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
28133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
28134         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
28135         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
28136         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
28137         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
28138
28139         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
28140         manipulate bits before adding and subtracting TWO112[sx].
28141         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
28142
28143 2012-02-27  Roland McGrath  <roland@hack.frob.com>
28144
28145         [BZ #13775]
28146         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
28147         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
28148         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
28149         being in POSIX, because they are in 1003.1-2008.
28150
28151         * rt/tst-aio.c: Include <fcntl.h>.
28152         * rt/tst-aio7.c: Likewise.
28153         * rt/tst-aio64.c: Likewise.
28154
28155         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
28156
28157 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28158
28159         * manual/install.texi (--with-headers): Describe headers as
28160         interface headers, not private headers.
28161         (Specific advice for GNU/Linux systems): Describe use of headers
28162         from "make headers_install", not private headers from older
28163         kernels.
28164         * INSTALL: Regenerated.
28165         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
28166         Change to 2.6.19.
28167         * sysdeps/unix/sysv/linux/configure: Regenerated.
28168
28169         * manual/llio.texi (fclean): Remove documentation.
28170
28171         * manual/Makefile (libc-texi-generated): New variable.  Include
28172         version.texi.
28173         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
28174         $(libc-texi-generated), not duplicated list of files.
28175         (version.texi, stamp-version): New rules.
28176         (realclean): Remove $(libc-texi-generated), not individual files
28177         from that list.  Do not remove dir-add.texinfo.
28178         * manual/libc.texinfo: Comment out uses of edition numbers and
28179         references to printed manual.  Remove last-updated dates.
28180         (EDITION): Comment out.
28181         (ISBN): Likewise.
28182         (VERSION, UPDATED): Remove.
28183         (version.texi): Include.
28184
28185 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
28186
28187         * sysdeps/posix/spawni.c: Include <signal.h>.
28188         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
28189         * sysdeps/pthread/aio_fsync.c: Likewise.
28190
28191 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
28192
28193         * conform/Makefile (tests): Run only when not cross-compiling and
28194         when fast-check is not defined.
28195
28196         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
28197         * conform/data/limits.h-data: Fixes for POSIX2008.
28198         * conform/run-conformtest.sh: Run all tests.
28199         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
28200         headers.
28201         * include/bits/dlfcn.h: Likewise.
28202         * include/langinfo.h: Likewise.
28203         * include/monetary.h: Likewise.
28204         * include/sys/poll.h: Likewise.
28205
28206         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
28207         for __USE_GNU.
28208         * posix/spawn.h: Define __need_sigset_t.
28209         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
28210         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
28211         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
28212         to get sigevent_t only.
28213         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
28214         only for __USE_GNU.
28215         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28216         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28217         process_vm_writev only for __USE_GNU.
28218         * termios/termios.h: Declare tcgetsid also for POSIX2008.
28219
28220         * conform/Makefile: For now ignore errors from run-conformtest.
28221         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
28222         POSIX to avoid namespace pollution.  Don't prepend headers.
28223         * conform/data/aio.h-data: Fixes for POSIX testing.
28224         * conform/data/fcntl.h-data: Likewise.
28225         * conform/data/glob.h-data: Likewise.
28226         * conform/data/grp.h-data: Likewise.
28227         * conform/data/pthread.h-data: Likewise.
28228         * conform/data/pwd.h-data: Likewise.
28229         * conform/data/signal.h-data: Likewise.
28230         * conform/data/spawn.h-data: Likewise.
28231         * conform/data/stdio.h-data: Likewise.
28232         * conform/data/stdlib.h-data: Likewise.
28233         * conform/data/stropts.h-data: Likewise.
28234         * conform/data/sys/mman.h-data: Likewise.
28235         * conform/data/sys/stat.h-data: Likewise.
28236         * conform/data/sys/types.h-data: Likewise.
28237         * conform/data/sys/wait.h-data: Likewise.
28238         * conform/data/time.h-data: Likewise.
28239         * conform/data/unistd.h-data: Likewise.
28240         * conform/data/utime.h-data: Likewise.
28241
28242         * io/sys/stat.h: fchmod was always in POSIX.
28243         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
28244         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
28245         * rt/aio.h: Define __need_timespec before including <time.h>.
28246         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
28247         struct.  Add forward declaration of pthread_attr_t and use it in
28248         sigevent.
28249         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
28250         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
28251         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
28252         always remove CLK_TCK definition.
28253
28254 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
28255
28256         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
28257
28258 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
28259
28260         * conform/run-conformtest.sh: New file.
28261         * conform/Makefile: Run run-conformtest for tests.
28262         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
28263         support.
28264
28265         * conform/data/uchar.h-data: New file.
28266         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
28267         * conform/data/arpa/inet.h-data: Likewise.
28268         * conform/data/assert.h-data: Likewise.
28269         * conform/data/complex.h-data: Likewise.
28270         * conform/data/cpio.h-data: Likewise.
28271         * conform/data/ctype.h-data: Likewise.
28272         * conform/data/dirent.h-data: Likewise.
28273         * conform/data/dlfcn.h-data: Likewise.
28274         * conform/data/errno.h-data: Likewise.
28275         * conform/data/fcntl.h-data: Likewise.
28276         * conform/data/float.h-data: Likewise.
28277         * conform/data/fmtmsg.h-data: Likewise.
28278         * conform/data/fnmatch.h-data: Likewise.
28279         * conform/data/ftw.h-data: Likewise.
28280         * conform/data/glob.h-data: Likewise.
28281         * conform/data/grp.h-data: Likewise.
28282         * conform/data/iconv.h-data: Likewise.
28283         * conform/data/inttypes.h-data: Likewise.
28284         * conform/data/langinfo.h-data: Likewise.
28285         * conform/data/libgen.h-data: Likewise.
28286         * conform/data/limits.h-data: Likewise.
28287         * conform/data/locale.h-data: Likewise.
28288         * conform/data/math.h-data: Likewise.
28289         * conform/data/monetary.h-data: Likewise.
28290         * conform/data/mqueue.h-data: Likewise.
28291         * conform/data/ndbm.h-data: Likewise.
28292         * conform/data/net/if.h-data: Likewise.
28293         * conform/data/netdb.h-data: Likewise.
28294         * conform/data/netinet/in.h-data: Likewise.
28295         * conform/data/nl_types.h-data: Likewise.
28296         * conform/data/poll.h-data: Likewise.
28297         * conform/data/pthread.h-data: Likewise.
28298         * conform/data/pwd.h-data: Likewise.
28299         * conform/data/regex.h-data: Likewise.
28300         * conform/data/sched.h-data: Likewise.
28301         * conform/data/search.h-data: Likewise.
28302         * conform/data/semaphore.h-data: Likewise.
28303         * conform/data/setjmp.h-data: Likewise.
28304         * conform/data/signal.h-data: Likewise.
28305         * conform/data/spawn.h-data: Likewise.
28306         * conform/data/stdarg.h-data: Likewise.
28307         * conform/data/stdio.h-data: Likewise.
28308         * conform/data/stdlib.h-data: Likewise.
28309         * conform/data/string.h-data: Likewise.
28310         * conform/data/strings.h-data: Likewise.
28311         * conform/data/stropts.h-data: Likewise.
28312         * conform/data/sys/ipc.h-data: Likewise.
28313         * conform/data/sys/mman.h-data: Likewise.
28314         * conform/data/sys/msg.h-data: Likewise.
28315         * conform/data/sys/resource.h-data: Likewise.
28316         * conform/data/sys/select.h-data: Likewise.
28317         * conform/data/sys/sem.h-data: Likewise.
28318         * conform/data/sys/shm.h-data: Likewise.
28319         * conform/data/sys/socket.h-data: Likewise.
28320         * conform/data/sys/stat.h-data: Likewise.
28321         * conform/data/sys/statvfs.h-data: Likewise.
28322         * conform/data/sys/time.h-data: Likewise.
28323         * conform/data/sys/timeb.h-data: Likewise.
28324         * conform/data/sys/times.h-data: Likewise.
28325         * conform/data/sys/types.h-data: Likewise.
28326         * conform/data/sys/uio.h-data: Likewise.
28327         * conform/data/sys/un.h-data: Likewise.
28328         * conform/data/sys/utsname.h-data: Likewise.
28329         * conform/data/sys/wait.h-data: Likewise.
28330         * conform/data/syslog.h-data: Likewise.
28331         * conform/data/tar.h-data: Likewise.
28332         * conform/data/termios.h-data: Likewise.
28333         * conform/data/utime.h-data: Likewise.
28334         * conform/data/utmpx.h-data: Likewise.
28335         * conform/data/varargs.h-data: Likewise.
28336         * conform/data/wchar.h-data: Likewise.
28337         * conform/data/wctype.h-data: Likewise.
28338         * conform/data/wordexp.h-data: Likewise.
28339
28340         * include/stropts.h: New file.
28341         * include/uchar.h: New file.
28342         * include/aio.h: Changes to allow conformtest.pl to use the headers.
28343         * include/assert.h: Likewise.
28344         * include/ctype.h: Likewise.
28345         * include/dirent.h: Likewise.
28346         * include/dlfcn.h: Likewise.
28347         * include/fcntl.h: Likewise.
28348         * include/fnmatch.h: Likewise.
28349         * include/glob.h: Likewise.
28350         * include/grp.h: Likewise.
28351         * include/libio.h: Likewise.
28352         * include/locale.h: Likewise.
28353         * include/math.h: Likewise.
28354         * include/net/if.h: Likewise.
28355         * include/netdb.h: Likewise.
28356         * include/netinet/in.h: Likewise.
28357         * include/pthread.h: Likewise.
28358         * include/pwd.h: Likewise.
28359         * include/regex.h: Likewise.
28360         * include/sched.h: Likewise.
28361         * include/search.h: Likewise.
28362         * include/setjmp.h: Likewise.
28363         * include/signal.h: Likewise.
28364         * include/stdio.h: Likewise.
28365         * include/stdlib.h: Likewise.
28366         * include/string.h: Likewise.
28367         * include/sys/cdefs.h: Likewise.
28368         * include/sys/mman.h: Likewise.
28369         * include/sys/msg.h: Likewise.
28370         * include/sys/resource.h: Likewise.
28371         * include/sys/select.h: Likewise.
28372         * include/sys/socket.h: Likewise.
28373         * include/sys/stat.h: Likewise.
28374         * include/sys/statvfs.h: Likewise.
28375         * include/sys/time.h: Likewise.
28376         * include/sys/times.h: Likewise.
28377         * include/sys/uio.h: Likewise.
28378         * include/sys/utsname.h: Likewise.
28379         * include/sys/wait.h: Likewise.
28380         * include/termios.h: Likewise.
28381         * include/time.h: Likewise.
28382         * include/ulimit.h: Likewise.
28383         * include/unistd.h: Likewise.
28384         * include/utime.h: Likewise.
28385         * include/wchar.h: Likewise.
28386         * include/wctype.h: Likewise.
28387         * include/wordexp.h: Likewise.
28388
28389         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
28390
28391         * time/time.h: TIME_UTC must be a macro.
28392         Make timespec_get available for ISO C11 only as well.
28393
28394 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
28395
28396         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
28397         Reported by Peng Haitao <penght@cn.fujitsu.com>.
28398
28399 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
28400
28401         * configure.in: Use -o not -a in test for unsupported multi-arch.
28402
28403 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
28404
28405         * manual/texinfo.tex: Update to version 2012-01-19.16.
28406
28407 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
28408
28409         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
28410
28411 2012-02-24  Roland McGrath  <roland@hack.frob.com>
28412
28413         [BZ #13738]
28414         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
28415         * manual/fdl-1.3.texi: New file.
28416         * manual/fdl-1.1.texi: File removed.
28417
28418         [BZ #13738]
28419         * manual/libc.texinfo (FDL_VERSION): New @set.
28420         Use it for mention of FDL in cover text.
28421         (Documentation License): Use it in @include file name.
28422
28423 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
28424             Roland McGrath  <roland@hack.frob.com>
28425
28426         [BZ #5461]
28427         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
28428         not LONG_LONG_MAX and LONG_LONG_MIN.
28429         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
28430         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
28431         name.
28432         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
28433
28434 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
28435
28436         [BZ #2547]
28437         [BZ #11365]
28438         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
28439         manipulate bits before adding and subtracting TWO23[sx].
28440         * math/libm-test.inc (nearbyint_test): Add more tests.
28441
28442 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
28443
28444         [BZ #2548]
28445         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
28446         bits before adding and subtracting TWO23[sx].
28447         * math/libm-test.inc (rint_test): Add more tests.
28448         (rint_test_tonearest): Likewise.
28449         (rint_test_towardzero): Likewise.
28450         (rint_test_downward): Likewise.
28451         (rint_test_upward: Likewise.
28452
28453 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
28454
28455         [BZ #10110]
28456         * include/stdc-predef.h: New file.  Extracted from features.h.
28457         * include/features.h: Include stdc-predef.h.
28458         * Makefile (headers): Add stdc-predef.h.
28459         * CONFORMANCE (Compiler limitations): Update.
28460
28461 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
28462
28463         * manual/libc.texinfo (VERSION, UPDATED): Revert.
28464
28465 2012-02-21  David S. Miller  <davem@davemloft.net>
28466
28467         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
28468         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
28469
28470 2012-02-20  David S. Miller  <davem@davemloft.net>
28471
28472         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
28473         using a normal save/restore sequence, rather than allocating a
28474         dummy stack frame just to store a frame pointer and restore.
28475         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
28476
28477 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
28478
28479         * manual/install.texi: Fix stray word in line-wrapped comment.
28480
28481 2012-02-20  David S. Miller  <davem@davemloft.net>
28482
28483         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
28484         both binutils and gcc support GOTDATA.
28485
28486         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
28487         "rd %pc" in the PIC register setup sequences.
28488
28489         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
28490         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
28491         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
28492         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
28493         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
28494         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
28495         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28496         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
28497         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
28498         (SYSCALL_ERROR_HANDLER): Likewise.
28499         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
28500         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
28501         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
28502         (SYSCALL_ERROR_HANDLER): Likewise.
28503
28504         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
28505         (HAVE_GCC_GOTDATA): New.
28506         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
28507         relocation support in both binutils and gcc.
28508         * sysdeps/sparc/elf/configure: Regenerate.
28509
28510         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
28511         * sysdeps/sparc/sparc32/elf/configure: Delete.
28512         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
28513         * sysdeps/sparc/sparc64/elf/configure: Delete.
28514         * sysdeps/sparc/elf/configure.in: New file.
28515         * sysdeps/sparc/elf/configure: Generate.
28516
28517         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
28518         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
28519         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
28520         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
28521         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
28522
28523 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
28524
28525         * manual/install.texi: Do not mention specific glibc version
28526         numbers.
28527         * manual/libc.texinfo (VERSION, UPDATED): Update.
28528         (@copying): Use @copyright{} and range of years.
28529
28530 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
28531
28532         [BZ #13695]
28533         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
28534         [crti.S not in sysdirs] (generated): Do not append.
28535         [crti.S not in sysdirs] (omit-deps): Likewise.
28536         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
28537         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
28538         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
28539         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
28540         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
28541         Likewise.
28542         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
28543         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
28544         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
28545         * csu/defs.awk: Remove file.
28546         * sysdeps/generic/initfini.c: Likewise.
28547         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
28548         variable.
28549         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
28550         Likewise.
28551
28552 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
28553
28554         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
28555         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
28556         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
28557         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
28558         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28559         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
28560         <bits/epoll.h>.
28561         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
28562         (__EPOLL_PACKED): Define to empty if not defined by
28563         <bits/epoll.h>.
28564         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
28565         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28566         bits/epoll.h.
28567
28568 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
28569
28570         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
28571         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
28572         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
28573         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
28574         <bits/timerfd.h>.
28575         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
28576         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28577         bits/timerfd.h.
28578
28579 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
28580
28581         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
28582         in C locale.
28583         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28584         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
28585         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
28586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28587
28588 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
28589
28590         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28591         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
28592
28593 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
28594
28595         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
28596         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
28597         defined.
28598         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
28599         Likewise.
28600         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
28601         entry for 2.16.
28602
28603 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
28604
28605         * math/w_acos.c: Use non-signaling floating-point comparisons.
28606         * math/w_acosf.c: Likewise.
28607         * math/w_acosh.c: Likewise.
28608         * math/w_acoshf.c: Likewise.
28609         * math/w_acoshl.c: Likewise.
28610         * math/w_acosl.c: Likewise.
28611         * math/w_asin.c: Likewise.
28612         * math/w_asinf.c: Likewise.
28613         * math/w_asinl.c: Likewise.
28614         * math/w_atanh.c: Likewise.
28615         * math/w_atanhf.c: Likewise.
28616         * math/w_atanhl.c: Likewise.
28617         * math/w_exp2.c: Likewise.
28618         * math/w_exp2f.c: Likewise.
28619         * math/w_exp2l.c: Likewise.
28620         * math/w_j0.c: Likewise.
28621         * math/w_j0f.c: Likewise.
28622         * math/w_j0l.c: Likewise.
28623         * math/w_j1.c: Likewise.
28624         * math/w_j1f.c: Likewise.
28625         * math/w_j1l.c: Likewise.
28626         * math/w_jn.c: Likewise.
28627         * math/w_jnf.c: Likewise.
28628         * math/w_log.c: Likewise.
28629         * math/w_log10.c: Likewise.
28630         * math/w_log10f.c: Likewise.
28631         * math/w_log10l.c: Likewise.
28632         * math/w_log2.c: Likewise.
28633         * math/w_log2f.c: Likewise.
28634         * math/w_log2l.c: Likewise.
28635         * math/w_logf.c: Likewise.
28636         * math/w_logl.c: Likewise.
28637         * math/w_sqrt.c: Likewise.
28638         * math/w_sqrtf.c: Likewise.
28639         * math/w_sqrtl.c: Likewise.
28640         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28641         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
28642         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28643         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
28644         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
28645
28646 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
28647
28648         [BZ #9739]
28649         * manual/string.texi (strnlen): Use correct parameter name in
28650         equivalent expression.
28651
28652 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
28653
28654         [BZ #11174]
28655         * manual/users.texi (seteuid): Consistently use neweuid for
28656         argument name.
28657
28658 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
28659
28660         [BZ #13704]
28661         * manual/nss.texi (Services in the NSS configuration): Correct
28662         list of services in example configuration file.
28663
28664 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
28665
28666         [BZ #11322]
28667         * manual/arith.texi: Remove statements about negative zero
28668         behaving identically to zero.
28669
28670 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
28671
28672         [BZ #5993]
28673         * manual/install.texi: Do not document upgrading from libc5.
28674
28675 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
28676
28677         [BZ #4596]
28678         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
28679
28680 2012-02-18  David S. Miller  <davem@davemloft.net>
28681
28682         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
28683         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
28684         %o7 across the call.
28685         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
28686         instead.
28687         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
28688         SETUP_PIC_REG_LEAF.
28689         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28690         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
28691         * sysdeps/sparc/crtn.S: Likewise.
28692
28693 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
28694
28695         * aout/Makefile: Remove.
28696
28697 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
28698
28699         [BZ #13058]
28700         * manual/examples/argp-ex1.c (main): Format definition in GNU
28701         style.
28702         * manual/examples/argp-ex2.c (main): Likewise.
28703         * manual/examples/argp-ex3.c (main): Likewise.
28704         * manual/examples/argp-ex4.c (main): Likewise.
28705         * manual/examples/longopt.c (main): Use new-style prototype
28706         definition.
28707         * manual/examples/strncat.c (main): Specify return type and use
28708         (void) for arguments.
28709         * manual/examples/subopt.c (main): Use char **argv argument.
28710
28711 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
28712
28713         [BZ #5077]
28714         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
28715         rounding modes.
28716
28717 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
28718
28719         [BZ #6907]
28720         * manual/string.texi (strchr): Change when strchrnul is
28721         recommended.
28722
28723 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
28724
28725         [BZ #174]
28726         * manual/locale.texi (setlocale): Document LOCPATH.
28727
28728 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
28729
28730         [BZ #10210]
28731         * manual/process.texi (execle): Move @dots{} before last argument.
28732
28733 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
28734
28735         [BZ #12047]
28736         * manual/charset.texi (Generic Charset Conversion): Fix typo
28737         (LC_TYPE -> LC_CTYPE).
28738
28739 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
28740
28741         [BZ #5805]
28742         * manual/arith.texi (scalbn): Use @var{} on parameter names.
28743         (scalbnf): Likewise.
28744         (scalbnl): Likewise.
28745         (scalbln): Likewise.
28746         (scalblnf): Likewise.
28747         (scalblnl): Likewise.
28748         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
28749         (vwarnx): Likewise.
28750         (verr): Likewise.
28751         (verrx): Likewise.
28752         * manual/filesys.texi (telldir): Use braces around return type.
28753         * manual/llio.texi (mmap): Add space after comma.
28754         (mmap64): Likewise.
28755         * manual/math.texi (jn): Use @var{} on parameter names.
28756         (jnf): Likewise.
28757         (jnl): Likewise.
28758         (yn): Likewise.
28759         (ynf): Likewise.
28760         (ynl): Likewise.
28761         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
28762         line.
28763         * manual/resource.texi (ulimit): Use @dots{} instead of literal
28764         "...".
28765         (sched_get_priority_min): Remove semicolon on @deftypefun line.
28766         (sched_get_priority_max): Likewise.
28767         * manual/signal.texi (sigvec): Add space after comma.
28768         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
28769         names.
28770         (if_indextoname): Likewise.
28771         (if_freenameindex): Likewise.
28772         (sendto): Use ',' instead of '.' in prototype.
28773         * manual/startup.texi (syscall): Use @dots{} instead of literal
28774         "...".
28775         * manual/stdio.texi (__fpending): Separate initial words of
28776         paragraph from @deftypefun line.
28777         * manual/syslog.texi (syslog): Use @dots{} instead of literal
28778         "...".
28779         (vsyslog): Use @var{} on parameter names.
28780         * manual/terminal.texi (stty): Use @var{} on parameter names.
28781         * manual/users.texi (getutmp): Use @var{} on parameter names.
28782         (getutmpx): Likewise.
28783
28784 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
28785
28786         [BZ #6884]
28787         * manual/stdio.texi (fopen): Fix typos in description of
28788         ",ccs=STRING".
28789
28790 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
28791
28792         [BZ #4026]
28793         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
28794         get clock_id definition.
28795
28796 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
28797
28798         [BZ #4822]
28799         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
28800         (madvise): Cast every argument to void on its own.
28801
28802 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
28803
28804         [BZ #9902]
28805         * manual/startup.texi (Exit Status): Fix typo.
28806
28807 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
28808
28809         [BZ #10140]
28810         * manual/examples/argp-ex1.c: Include <stdlib.h>.
28811         * manual/examples/argp-ex2.c: Likewise.
28812         * manual/examples/argp-ex3.c: Likewise.
28813
28814 2012-02-16  Richard Henderson  <rth@redhat.com>
28815
28816         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
28817         * sysdeps/s390/s390-32/initfini.c: Remove.
28818         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
28819         * sysdeps/s390/s390-64/initfini.c: Remove.
28820
28821 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28822
28823         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
28824         compiler output for sysdeps/generic/initfini.c.
28825         * sysdeps/sh/elf/initfini.c: Remove file.
28826
28827 2012-02-16  David S. Miller  <davem@davemloft.net>
28828
28829         [BZ #11494]
28830         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
28831
28832         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
28833         * sysdeps/sparc/crti.S: New file.
28834         * sysdeps/sparc/crtn.S: New file.
28835         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
28836         * sysdeps/sparc/sparc64/Makefile: Likewise.
28837
28838 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
28839
28840         [BZ #3335]
28841         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
28842
28843 2012-02-15  Roland McGrath  <roland@hack.frob.com>
28844
28845         [BZ #4822]
28846         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
28847
28848         * mach/devstream.c (cookie_io_functions_t): Macro removed.
28849         (write, read, close): Likewise.
28850         Patch by Aurelien Jarno <aurelien@aurel32.net>.
28851
28852 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
28853
28854         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
28855         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
28856         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
28857         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
28858         <bits/signalfd.h>.
28859         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
28860         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28861         bits/signalfd.h.
28862
28863 2012-02-14  Marek Polacek  <polacek@redhat.com>
28864
28865         * sysdeps/x86_64/crti.S: New file.
28866         * sysdeps/x86_64/crtn.S: New file.
28867         * sysdeps/x86_64/elf/initfini.c: Remove file.
28868
28869 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
28870
28871         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
28872         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
28873         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
28874         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
28875         <bits/inotify.h>.
28876         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
28877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28878         bits/inotify.h.
28879
28880 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
28881
28882         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
28883         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
28884         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
28885         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
28886         <bits/eventfd.h>.
28887         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
28888         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28889         bits/eventfd.h.
28890
28891 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
28892
28893         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
28894         __feraiseexcept instead of feraiseexcept.
28895
28896         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
28897         nanosleep invocations.
28898         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
28899         strings, and add error checking for a nanosleep invocations.
28900
28901 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         Replace FSF snail mail address with URLs, as per GNU coding standards.
28904         Most of the snail mail addresses were wrong anyway, and omitting
28905         them makes the source code easier to maintain.  Almost all of the
28906         changes are to license notices and to locale LC_IDENTIFICATION
28907         addresses, except for this one:
28908         * manual/libc.texinfo: In "Published by", give the FSF's URL,
28909         not its snail mail address.
28910
28911 2012-02-09  Richard Henderson  <rth@twiddle.net>
28912
28913         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
28914         of kernel-features.h.
28915
28916         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
28917
28918 2012-02-08  Marek Polacek  <polacek@redhat.com>
28919
28920         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
28921         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
28922         * sysdeps/gnu/_G_config.h: Likewise.
28923         * sysdeps/generic/_G_config.h: Likewise.
28924
28925 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
28926
28927         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
28928         tests.
28929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28930
28931         * sysdeps/powerpc/powerpc32/crti.S: New file.
28932         * sysdeps/powerpc/powerpc32/crtn.S: New file.
28933         * sysdeps/powerpc/powerpc64/crti.S: New file.
28934         * sysdeps/powerpc/powerpc64/crtn.S: New file.
28935
28936         * Makeconfig (have-initfini): Don't set.
28937         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
28938         * configure.in (nopic_initfini): Don't substitute.
28939         * config.h.in (HAVE_INITFINI): Don't #undef.
28940         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
28941         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
28942
28943 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
28944
28945         Support crti.S and crtn.S provided directly by architectures.
28946         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
28947         [crti.S in sysdirs] (omit-deps): Likewise.
28948         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
28949         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
28950         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
28951         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
28952         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
28953         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
28954         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
28955         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
28956         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
28957         compiler output for sysdeps/generic/initfini.c.
28958         * sysdeps/i386/elf/Makefile: Remove file.
28959         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
28960
28961 2012-02-07  Marek Polacek  <polacek@redhat.com>
28962
28963         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
28964         * sysdeps/gnu/_G_config.h: Likewise.
28965         * sysdeps/mach/hurd/_G_config.h: Likewise.
28966
28967 2012-02-07  Marek Polacek  <polacek@redhat.com>
28968
28969         * math/Makefile (tests): Add tst-CMPLX2.
28970         * math/tst-CMPLX2.c: New file.
28971
28972 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
28973
28974         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28975
28976         * math/libm-test.inc (jn_test): Add missing L suffix.
28977
28978 2012-02-06  Marek Polacek  <polacek@redhat.com>
28979
28980         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
28981         * sysdeps/i386/fpu/e_powf.S: Likewise.
28982         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28983         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28984         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28985         * sysdeps/i386/fpu/e_pow.S: Likewise.
28986         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
28987         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28988         * sysdeps/i386/fpu/s_expm1.S: Likewise.
28989         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
28990         * sysdeps/i386/fpu/e_log2.S: Likewise.
28991         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28992         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28993         * sysdeps/i386/fpu/e_powl.S: Likewise.
28994         * sysdeps/i386/fpu/s_log1p.S: Likewise.
28995         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28996         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
28997         * sysdeps/i386/fpu/e_logl.S: Likewise.
28998         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
28999         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
29000         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29001         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29002         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29003         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29004         * sysdeps/i386/fpu/e_log.S: Likewise.
29005         * sysdeps/i386/fpu/s_cexp.S: Likewise.
29006         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29007         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
29008         * sysdeps/i386/fpu/e_logf.S: Likewise.
29009         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29010         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29011         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
29012         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29013         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
29014         * sysdeps/i386/fpu/e_log10.S: Likewise.
29015         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29016         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29017         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29018         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29019         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29020         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29021         * sysdeps/i386/asm-syntax.h: Likewise.
29022         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29023         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29024         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29025         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
29026         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
29027         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29028         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29029         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29030         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29031         * sysdeps/powerpc/sysdep.h: Likewise.
29032         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
29033         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29034
29035 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29036
29037         [BZ #411]
29038         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
29039
29040 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29041
29042         * sysdeps/i386/sysdep.h: Include <features.h>.
29043         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
29044         version.
29045
29046 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
29047
29048         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
29049         Define.
29050         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
29051         LOAD_PIC_REG_STR.
29052
29053 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29054
29055         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
29056         (SETUP_PIC_REG): Use GET_PC_THUNK.
29057         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
29058         macro.
29059
29060 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29061
29062         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
29063         for non-PIC compilation.
29064         (SETUP_PIC_REG): Add .p2align directive.
29065         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
29066         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
29067         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
29068         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
29069         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
29070         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
29071         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29072         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29073         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29074         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29075         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29076         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29077         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29078         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29079         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
29080         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29081         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29082         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
29083         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
29084         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
29085         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
29086         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29087         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
29088         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
29089         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
29090         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
29091         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29092         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29093         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
29094         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
29095         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
29096         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
29097         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
29098         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
29099         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
29100         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
29101         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
29102         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
29103         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
29104         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
29105         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
29106
29107 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29108
29109         * math/tst-CMPLX.c: Include <stdio.h>.
29110
29111 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
29112
29113         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
29114         float.
29115         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
29116         * sysdeps/sparc/bits/mathdef.h: Likewise.
29117
29118 2012-01-31  Marek Polacek  <polacek@redhat.com>
29119
29120         * libio/libio.h: Don't define _PARAMS.
29121         * locale/programs/config.h: Don't define PARAMS.
29122         * stdlib/strtol_l.c: Likewise.
29123         (__strtol_l): Remove PARAMS from the prototype.
29124
29125 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
29126
29127         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
29128         names.  Just use the correct names.  Remove unnecessary wrapper
29129         functions.
29130         * malloc/arena.c: Likewise.
29131         * malloc/hooks.c: Likewise.
29132
29133         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
29134         ARENA_TEST says not to.  Simplify test for creation of a new arena.
29135         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
29136
29137 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
29138
29139         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
29140         into tail calls.
29141         (update_get_addr): New function.
29142         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
29143         GET_ADDR_MODULE parameter.
29144
29145 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
29146
29147         * crypt/cert.c: Remove __STDC__ conditionals.
29148         * crypt/crypt-entry.c: Likewise.
29149         * crypt/crypt_util.c: Likewise.
29150         * libio/filedoalloc.c: Likewise.
29151         * libio/fileops.c: Likewise.
29152         * libio/genops.c: Likewise.
29153         * libio/iofclose.c: Likewise.
29154         * libio/iofdopen.c: Likewise.
29155         * libio/iofopen.c: Likewise.
29156         * libio/iofopen64.c: Likewise.
29157         * libio/iogetdelim.c: Likewise.
29158         * libio/iopopen.c: Likewise.
29159         * libio/obprintf.c: Likewise.
29160         * libio/oldfileops.c: Likewise.
29161         * libio/oldiofclose.c: Likewise.
29162         * libio/oldiofdopen.c: Likewise.
29163         * libio/oldiofopen.c: Likewise.
29164         * libio/oldiopopen.c: Likewise.
29165         * libio/wfiledoalloc.c: Likewise.
29166         * libio/wgenops.c: Likewise.
29167         * locale/programs/xmalloc.c: Likewise.
29168         * misc/syslog.c: Likewise.
29169         * stdio-common/xbug.c: Likewise.
29170         * string/memchr.c: Likewise.
29171         * string/memcmp.c: Likewise.
29172         * string/memrchr.c: Likewise.
29173         * string/rawmemchr.c: Likewise.
29174         * sysdeps/posix/getcwd.c: Likewise.
29175         * time/strftime_l.c: Likewise.
29176
29177 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
29178
29179         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
29180         * config.make.in (config-cflags-sse2avx): Define.
29181         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
29182         Fix typo.
29183
29184 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
29185
29186         * scripts/config.guess: Update from upstream config git repository.
29187         * scripts/config.sub: Likewise.
29188
29189 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
29190
29191         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
29192         (EM_NUM): Update.
29193         (R_TILEPRO_*, R_TILEGX_*): New macros.
29194
29195         * scripts/firstversions.awk: Fix bug in version range handling.
29196
29197         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
29198
29199         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
29200
29201         * include/sys/epoll.h: New file.
29202         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
29203         libc_hidden_def.
29204
29205 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
29206
29207         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
29208         Avoid unnecessary __WORDSIZE == 64 test.
29209         (fmaxf): Use VEX format if possible.
29210         (fmax): Likewise.
29211         (fminf): Likewise.
29212         (fmin): Likewise.
29213
29214         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
29215         * math/math_private.h: Remove libc_fegetround* and
29216         libc_fesetround*.
29217         * sysdeps/i386/configure.in: Check for -msse2avx.
29218         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
29219         also if SSE2AVX is defined.
29220         Remove libc_fegetround* and libc_fesetround*.
29221         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
29222         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
29223         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
29224         of HAS_YMM_USABLE.
29225         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
29226         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
29227         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
29228         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
29229         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
29230
29231         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
29232
29233 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29234
29235         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
29236         size is not set.
29237         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
29238
29239 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
29240
29241         [BZ #13618]
29242         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
29243         relocation.
29244         * Makeconfig (libm): Define.
29245         * elf/Makefile: Add rules to build and run tst-relsort1.
29246         * elf/tst-relsort1.c: New file.
29247         * elf/tst-relsort1mod1.c: New file.
29248         * elf/tst-relsort1mod2.c: New file.
29249
29250 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
29251
29252         * math/s_ldexp.c: Remove __STDC__ conditionals.
29253         * math/s_ldexpf.c: Likewise.
29254         * math/s_ldexpl.c: Likewise.
29255         * math/s_nextafter.c: Likewise.
29256         * math/s_nexttowardf.c: Likewise.
29257         * math/s_significand.c: Likewise.
29258         * math/s_significandf.c: Likewise.
29259         * math/s_significandl.c: Likewise.
29260         * math/w_jnl.c: Likewise.
29261         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29262         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29263         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29264         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29265         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29266         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29267         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
29268         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29269         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29270         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29271         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29272         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29273         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29274         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29275         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29276         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29277         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29278         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29279         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29280         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29281         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29282         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29283         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29284         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29285         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29286         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29287         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29288         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29289         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29290         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29291         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29292         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29293         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29294         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29295         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29296         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29297         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29298         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29299         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29300         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29301         * sysdeps/ieee754/k_standard.c: Likewise.
29302         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29303         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29304         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29305         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29306         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29307         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29308         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29309         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29310         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29311         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29312         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29313         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29314         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29315         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29316         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29317         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29318         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29319         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29320         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29321         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29322         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29323         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29324         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29325         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29326         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29327         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29328         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29329         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29330         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29331         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29332         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29333         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
29334         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29335         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29336         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29337         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29338         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
29339         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29340         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29341         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
29342         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
29343         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29344         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
29345         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
29346         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29347         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
29348         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
29349         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29350         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29351         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29354         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29355         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29356         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29357         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29358         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
29359         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29360         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29361         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29362         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29363         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29364         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29365         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29366         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29367         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29368         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29369         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29370         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29371         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29372         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29374         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29375         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29376         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29377         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29378         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29379         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29380         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29381         * sysdeps/ieee754/s_matherr.c: Likewise.
29382         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29383         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29384         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29385         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29386
29387 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
29388
29389         * crypt/md5.h: Remove __STDC__ conditionals.
29390         * libio/libioP.h: Likewise.
29391         * locale/programs/config.h: Likewise.
29392         * sysdeps/generic/sysdep.h: Likewise.
29393         * sysdeps/i386/asm-syntax.h: Likewise.
29394         * sysdeps/s390/asm-syntax.h: Likewise.
29395         * sysdeps/unix/sysdep.h: Likewise.
29396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
29397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
29398
29399 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
29400
29401         * libio/libio.h: Remove __STDC__ conditionals.
29402         * malloc/obstack.h: Likewise.
29403         * math/complex.h: Likewise.
29404         * math/math.h: Likewise.
29405         * sysdeps/generic/_G_config.h: Likewise.
29406         * sysdeps/gnu/_G_config.h: Likewise.
29407         * sysdeps/mach/hurd/_G_config.h: Likewise.
29408         * sysdeps/powerpc/bits/mathdef.h: Likewise.
29409         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
29410         * sysdeps/sparc/bits/mathdef.h: Likewise.
29411
29412 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
29413
29414         [BZ #13583]
29415         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
29416         Clean up HAS_* macros.
29417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
29418         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
29419         possible.
29420         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
29421         HAS_AVX.
29422         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
29423         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
29424         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
29425         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
29426         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
29427
29428 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
29429
29430         * elf/tst-unique3.cc (gets): Remove declaration.
29431         * elf/tst-unique3lib.cc (gets): Likewise.
29432         * elf/tst-unique3lib2.cc (gets): Likewise.
29433         * elf/tst-unique4.cc (gets): Likewise.
29434
29435 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
29436
29437         * include/stdio.h: Add C++ protection.  Add gets declarations and
29438         definitions.
29439         * debug/tst-chk1.c: Don't declare gets here.
29440         * stdio-common/tst-gets.c: Likewise.
29441
29442 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
29443
29444         * posix/glob: Remove directory.
29445
29446 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
29447
29448         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
29449
29450 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
29451
29452         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
29453         of the non-standard EPFNOSUPPORT.
29454
29455 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29456
29457         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
29458         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
29459         ANYWHERE set to 1 only on KERN_NO_SPACE error.
29460
29461 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
29462
29463         * wcsmbs/uchar.h: Test __STDC_VERSION__.
29464
29465 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
29466
29467         * nscd/aicache.c (addhstaiX): Do not cache negative results of
29468         transient errors.
29469         * nscd/grpcache.c (cache_addgr): Likewise.
29470         * nscd/hstcache.c (cache_addhst): Likewise.
29471         * nscd/initgrcache.c (addinitgroupsX): Likewise.
29472         * nscd/pwdcache.c (cache_addpw): Likewise.
29473         * nscd/servicescache.c (cache_addserv): Likewise.
29474
29475 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
29476
29477         * malloc/malloc.c: Various cleanups.
29478         * malloc/hooks.c: Likewise.
29479
29480         * stdlib/Makefile (tests): Add bug-fmtmsg1.
29481         * stdlib/bug-fmtmsg1.c: New file.
29482
29483         * stdlib/fmtmsg.c (init): Add missing unlock.
29484         Patch by Peng Haitao <penght@cn.fujitsu.com>.
29485
29486 2012-01-12  Marek Polacek  <polacek@redhat.com>
29487
29488         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
29489         and _GNU_SOURCE.
29490
29491 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
29492
29493         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
29494         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
29495         macro to ensure uniqueness of label name.
29496         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
29497         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
29498
29499 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
29500
29501         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
29502
29503         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
29504         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29505         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29506         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
29507
29508 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
29509
29510         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
29511
29512         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
29513         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29514         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29515
29516         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
29517
29518         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
29519         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29520         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29521         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
29522
29523         * math/bits/math-finite.h: Add ldexp support.
29524
29525 2012-01-10  Marek Polacek  <polacek@redhat.com>
29526
29527         * locale/programs/localedef.h (show_archive_content): Add noreturn
29528         attribute.
29529
29530 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
29531
29532         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
29533
29534 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
29535
29536         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
29537
29538         * io/Makefile (headers): Add bits/poll2.h.
29539
29540 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
29541
29542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
29543         typo #include statement.
29544
29545 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
29546
29547         * include/sys/cdefs.h: Define __attribute_alloc_size.
29548         * catgets/gencat.c: Add alloc_size attribute and apply consistently
29549         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
29550         * elf/pldd.c: Likewise.
29551         * iconv/iconv_charmap.c: Likewise.
29552         * iconv/iconvconfig.c: Likewise.
29553         * iconv/strtab.c: Likewise.
29554         * locale/programs/locale.c: Likewise.
29555         * locale/programs/localedef.h: Likewise.
29556         * locale/programs/simple-hash.c: Likewise.
29557         * nscd/nscd.h: Likewise.
29558         * nss/makedb.c: Likewise.
29559         * sysdeps/generic/ldconfig.h: Likewise.
29560         * locale/programs/localedef.c: Remove xmalloc prototype.
29561         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
29562
29563 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
29564
29565         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
29566         appropriate.
29567
29568 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
29569
29570         * math/Makefile (tests): Add tst-CMPLX.
29571         * math/tst-CMPLX.c: New file.
29572
29573         * math/complex.h (CMPLXL): Fix typo.
29574
29575         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
29576         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
29577         GLIBC_2.16.
29578         * debug/tst-chk1.c: Add poll and ppoll tests.
29579         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
29580         * include/sys/poll.h: Add hidden proto for ppoll.
29581         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
29582         * sysdeps/mach/hurd/ppoll.c: Likewise.
29583         * io/ppoll.c: Likewise.
29584         * debug/poll_chk.c: New file.
29585         * debug/ppoll_chk.c: New file.
29586         * include/bits/poll2.h: New file.
29587         * io/bits/poll2.h: New file.
29588
29589         [BZ #1350]
29590         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
29591
29592         * configure.in: static is always set to yes.  Remove.
29593         * config.make.in: Don't set build-static.
29594         * Makeconfig: Remove use of build-static.
29595         * dlfcn/Makefile: Likewise.
29596         * elf/Makefile: Likewise.
29597         * math/Makefile: Likewise.
29598         * misc/Makefile: Likewise.
29599         * nptl/Makefile: Likewise.
29600         * sysdeps/mach/hurd/Makefile: Likewise.
29601
29602         * configure.in: PWD_P is not used anymore.
29603         * config.make.in: Remove PWD_P entry.
29604
29605         * configure.in: Remove last remnants of RANLIB.
29606         No need to check for signed size_t anymore.
29607         Don't set libc_commonpagesize and libc_relro_required here for Alpha
29608         and IA-64.
29609         Remove __builtin_expect test because we require at least gcc 3.4.
29610         * aclocal.m4: Likewise.
29611
29612         * wcsmbs/mbrtoc16.c: Implement using towc function.
29613         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
29614         * wcsmbs/wcsmbsload.c: Likewise.
29615         * iconv/gconv_simple.c: Likewise.
29616         * iconv/gconv_int.h: Likewise.
29617         * iconv/gconv_builtin.h: Likewise.
29618         * iconv/iconv_prog.c: Remove CHAR16 handling.
29619
29620         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
29621
29622         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
29623
29624         * configure.in: Remove --with-elf and --enable-bounded options.
29625         Dont set base_machine for ia64.  More non-ELF conditions removed.
29626         Remove testing and setting of leading underscore information.
29627         * config.make.in (build-bounded): Set to no.
29628         * config.h.in: Remove NO_UNDERSCORES entry.
29629         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
29630         them.
29631         * csu/start.c: Remove !NO_UNDERSCORE code.
29632         * locale/localeinfo.h: Likewise.
29633         * sysdeps/generic/machine-gmon.h: Likewise.
29634         * sysdeps/generic/sysdep.h: Likewise.
29635         * sysdeps/i386/sysdep.h: Likewise.
29636         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
29637         * sysdeps/mach/sysdep.h: Likewise.
29638         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29639         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29640         * sysdeps/sh/sysdep.h: Likewise.
29641         * sysdeps/sparc/sparc32/alloca.S: Likewise.
29642         * sysdeps/unix/i386/sysdep.S: Likewise.
29643         * sysdeps/unix/sparc/start.c: Likewise.
29644         * sysdeps/unix/sparc/sysdep.S: Likewise.
29645         * sysdeps/unix/sparc/sysdep.h: Likewise.
29646         * sysdeps/unix/start.c: Likewise.
29647         * sysdeps/unix/x86_64/sysdep.S: Likewise.
29648         * sysdeps/x86_64/sysdep.h: Likewise.
29649
29650 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
29651
29652         [BZ #13553]
29653         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
29654         for non-gcc.
29655         * argp/argp-fmtstream.h: Use const instead __const.
29656         * argp/argp.h: Likewise.
29657         * assert/assert.h: Likewise.
29658         * bits/fenv.h: Likewise.
29659         * bits/sched.h: Likewise.
29660         * bits/sigset.h: Likewise.
29661         * bits/sigthread.h: Likewise.
29662         * catgets/nl_types.h: Likewise.
29663         * conform/data/pthread.h-data: Likewise.
29664         * crypt/crypt-private.h: Likewise.
29665         * crypt/crypt.h: Likewise.
29666         * crypt/crypt_util.c: Likewise.
29667         * ctype/ctype.h: Likewise.
29668         * debug/execinfo.h: Likewise.
29669         * debug/mbsnrtowcs_chk.c: Likewise.
29670         * debug/mbsrtowcs_chk.c: Likewise.
29671         * debug/wcsnrtombs_chk.c: Likewise.
29672         * debug/wcsrtombs_chk.c: Likewise.
29673         * debug/wcstombs_chk.c: Likewise.
29674         * dirent/dirent.h: Likewise.
29675         * dlfcn/dlfcn.h: Likewise.
29676         * elf/neededtest4.c: Likewise.
29677         * grp/grp.h: Likewise.
29678         * gshadow/gshadow.h: Likewise.
29679         * iconv/gconv.h: Likewise.
29680         * iconv/gconv_int.h: Likewise.
29681         * iconv/gconv_simple.c: Likewise.
29682         * iconv/iconv.h: Likewise.
29683         * iconv/loop.c: Likewise.
29684         * iconv/skeleton.c: Likewise.
29685         * include/aio.h: Likewise.
29686         * include/aliases.h: Likewise.
29687         * include/argz.h: Likewise.
29688         * include/arpa/inet.h: Likewise.
29689         * include/assert.h: Likewise.
29690         * include/dirent.h: Likewise.
29691         * include/dlfcn.h: Likewise.
29692         * include/execinfo.h: Likewise.
29693         * include/fcntl.h: Likewise.
29694         * include/fenv.h: Likewise.
29695         * include/glob.h: Likewise.
29696         * include/grp.h: Likewise.
29697         * include/libintl.h: Likewise.
29698         * include/mntent.h: Likewise.
29699         * include/netdb.h: Likewise.
29700         * include/pwd.h: Likewise.
29701         * include/rpc/netdb.h: Likewise.
29702         * include/sched.h: Likewise.
29703         * include/search.h: Likewise.
29704         * include/shadow.h: Likewise.
29705         * include/signal.h: Likewise.
29706         * include/stdio.h: Likewise.
29707         * include/stdlib.h: Likewise.
29708         * include/string.h: Likewise.
29709         * include/sys/socket.h: Likewise.
29710         * include/sys/stat.h: Likewise.
29711         * include/sys/statfs.h: Likewise.
29712         * include/sys/statvfs.h: Likewise.
29713         * include/sys/syslog.h: Likewise.
29714         * include/sys/time.h: Likewise.
29715         * include/sys/uio.h: Likewise.
29716         * include/time.h: Likewise.
29717         * include/unistd.h: Likewise.
29718         * include/utmp.h: Likewise.
29719         * include/wchar.h: Likewise.
29720         * include/wctype.h: Likewise.
29721         * inet/aliases.h: Likewise.
29722         * inet/arpa/inet.h: Likewise.
29723         * inet/netinet/ether.h: Likewise.
29724         * inet/netinet/in.h: Likewise.
29725         * intl/libintl.h: Likewise.
29726         * io/bits/fcntl2.h: Likewise.
29727         * io/fcntl.h: Likewise.
29728         * io/ftw.h: Likewise.
29729         * io/sys/poll.h: Likewise.
29730         * io/sys/stat.h: Likewise.
29731         * io/sys/statfs.h: Likewise.
29732         * io/sys/statvfs.h: Likewise.
29733         * io/utime.h: Likewise.
29734         * libio/bits/stdio.h: Likewise.
29735         * libio/bits/stdio2.h: Likewise.
29736         * libio/libio.h: Likewise.
29737         * libio/libioP.h: Likewise.
29738         * libio/stdio.h: Likewise.
29739         * locale/lc-ctype.c: Likewise.
29740         * locale/locale.h: Likewise.
29741         * login/utmp.h: Likewise.
29742         * malloc/arena.c: Likewise.
29743         * malloc/malloc.c: Likewise.
29744         * malloc/malloc.h: Likewise.
29745         * malloc/mcheck.c: Likewise.
29746         * malloc/mtrace.c: Likewise.
29747         * math/bits/mathcalls.h: Likewise.
29748         * math/fenv.h: Likewise.
29749         * math/math_private.h: Likewise.
29750         * misc/bits/error.h: Likewise.
29751         * misc/bits/syslog.h: Likewise.
29752         * misc/err.h: Likewise.
29753         * misc/error.h: Likewise.
29754         * misc/fstab.h: Likewise.
29755         * misc/mntent.h: Likewise.
29756         * misc/regexp.h: Likewise.
29757         * misc/search.h: Likewise.
29758         * misc/sgtty.h: Likewise.
29759         * misc/sys/mman.h: Likewise.
29760         * misc/sys/syslog.h: Likewise.
29761         * misc/sys/uio.h: Likewise.
29762         * misc/sys/xattr.h: Likewise.
29763         * misc/ttyent.h: Likewise.
29764         * nis/rpcsvc/ypclnt.h: Likewise.
29765         * nss/nss.h: Likewise.
29766         * posix/bits/unistd.h: Likewise.
29767         * posix/fnmatch.h: Likewise.
29768         * posix/glob.h: Likewise.
29769         * posix/sched.h: Likewise.
29770         * posix/spawn.h: Likewise.
29771         * posix/sys/wait.h: Likewise.
29772         * posix/unistd.h: Likewise.
29773         * posix/wordexp.h: Likewise.
29774         * pwd/pwd.h: Likewise.
29775         * resolv/netdb.h: Likewise.
29776         * resource/sys/resource.h: Likewise.
29777         * rt/aio.h: Likewise.
29778         * rt/bits/mqueue2.h: Likewise.
29779         * rt/mqueue.h: Likewise.
29780         * shadow/shadow.h: Likewise.
29781         * signal/signal.h: Likewise.
29782         * socket/send.c: Likewise.
29783         * socket/sendto.c: Likewise.
29784         * socket/sys/socket.h: Likewise.
29785         * stdio-common/printf.h: Likewise.
29786         * stdlib/bits/stdlib.h: Likewise.
29787         * stdlib/fmtmsg.h: Likewise.
29788         * stdlib/monetary.h: Likewise.
29789         * stdlib/stdlib.h: Likewise.
29790         * stdlib/ucontext.h: Likewise.
29791         * streams/stropts.h: Likewise.
29792         * string/argz.h: Likewise.
29793         * string/bits/string2.h: Likewise.
29794         * string/string.h: Likewise.
29795         * string/strings.h: Likewise.
29796         * sunrpc/rpc/auth.h: Likewise.
29797         * sunrpc/rpc/auth_des.h: Likewise.
29798         * sunrpc/rpc/clnt.h: Likewise.
29799         * sunrpc/rpc/netdb.h: Likewise.
29800         * sunrpc/rpc/pmap_clnt.h: Likewise.
29801         * sunrpc/rpc/xdr.h: Likewise.
29802         * sysdeps/generic/inttypes.h: Likewise.
29803         * sysdeps/generic/net/if.h: Likewise.
29804         * sysdeps/generic/sys/swap.h: Likewise.
29805         * sysdeps/gnu/net/if.h: Likewise.
29806         * sysdeps/gnu/utmpx.h: Likewise.
29807         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
29808         * sysdeps/i386/i486/bits/string.h: Likewise.
29809         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
29810         * sysdeps/s390/bits/string.h: Likewise.
29811         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
29812         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
29813         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29814         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
29815         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
29816         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
29817         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
29818         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
29819         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
29820         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
29821         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
29822         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
29823         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
29824         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
29825         * sysdeps/unix/sysv/linux/readv.c: Likewise.
29826         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
29827         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
29828         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29829         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
29830         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
29831         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
29832         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
29833         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
29834         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
29835         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
29836         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
29837         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
29838         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
29839         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
29840         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
29841         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
29842         * sysvipc/sys/ipc.h: Likewise.
29843         * sysvipc/sys/msg.h: Likewise.
29844         * sysvipc/sys/sem.h: Likewise.
29845         * sysvipc/sys/shm.h: Likewise.
29846         * termios/termios.h: Likewise.
29847         * time/sys/time.h: Likewise.
29848         * time/time.h: Likewise.
29849         * wcsmbs/bits/wchar2.h: Likewise.
29850         * wcsmbs/uchar.h: Likewise.
29851         * wcsmbs/wchar.h: Likewise.
29852         * wctype/wctype.h: Likewise.
29853
29854         [BZ #13551]
29855         * Makeconfig: Remove all but ELF support including AIX support.
29856         * Makerules: Likewise.
29857         * config.h.in: Likewise.
29858         * config.make.in: Likewise.
29859         * configure: Likewise.
29860         * configure.in: Likewise.
29861         * csu/Makefile: Likewise.
29862         * csu/version.c: Likewise.
29863         * debug/Makefile: Likewise.
29864         * dlfcn/Makefile: Likewise.
29865         * elf/Makefile: Likewise.
29866         * extra-lib.mk: Likewise.
29867         * iconv/Makefile: Likewise.
29868         * include/libc-symbols.h: Likewise.
29869         * include/shlib-compat.h: Likewise.
29870         * resolv/Makefile: Likewise.
29871         * resolv/res_libc.c: Likewise.
29872         * rt/Makefile: Likewise.
29873         * sysdeps/i386/asm-syntax.h: Likewise.
29874         * sysdeps/i386/sysdep.h: Likewise.
29875         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
29876         * sysdeps/mach/sysdep.h: Likewise.
29877         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
29878         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
29879         * sysdeps/s390/asm-syntax.h: Likewise.
29880         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29881         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29882         * sysdeps/sh/sysdep.h: Likewise.
29883         * sysdeps/unix/sparc/sysdep.h: Likewise.
29884         * sysdeps/wordsize-32/divdi3.c: Likewise.
29885         * sysdeps/x86_64/sysdep.h: Likewise.
29886
29887         * argp/Versions: Remove _argp_unlock_xxx.
29888
29889         [BZ #13559]
29890         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
29891         * abilist/libBrokenLocale.abilist: Likewise.
29892         * abilist/libanl.abilist: Likewise.
29893         * abilist/libc.abilist: Likewise.
29894         * abilist/libcrypt.abilist: Likewise.
29895         * abilist/libdl.abilist: Likewise.
29896         * abilist/libm.abilist: Likewise.
29897         * abilist/libnsl.abilist: Likewise.
29898         * abilist/libpthread.abilist: Likewise.
29899         * abilist/libresolv.abilist: Likewise.
29900         * abilist/librt.abilist: Likewise.
29901         * abilist/libthread_db.abilist: Likewise.
29902         * abilist/libutil.abilist: Likewise.
29903         * abilist/libnss_db.abilist: New file.
29904
29905         * scripts/abilist.awk: Add support for indirect functions.
29906
29907         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
29908
29909         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
29910
29911         * shlib-versions: Remove entries for ports architectures.
29912
29913         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
29914         files in ports.
29915         * elf/stackguard-macros.h: Remove support for IA-64.
29916         * elf/tst-auditmod1.c: Likewise.
29917         * sysdeps/generic/ldsodefs.h: Likewise.
29918
29919         * sysdeps/unix/sysv/linux/configure.in: Ports should define
29920         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
29921         configure files.
29922
29923         [BZ #13552]
29924         * configure.in: Remove --enable-omitfp support.
29925         * FAQ.in: Adjust.
29926         * config.make.in: Likewise.
29927         * Makeconfig: Likewise.
29928         * manual/install.texi: Likewise.
29929
29930         In case anyone cares, the IA-64 architecture could move to ports.
29931         * sysdeps/ia64/*: Removed.
29932         * sysdeps/unix/sysv/linux/ia64/*: Removed.
29933         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
29934
29935         [BZ #13555]
29936         * configure.in: Remove entries for unsupported architectures.
29937
29938         [BZ #13533]
29939         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
29940         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
29941         routines.
29942         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
29943         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
29944         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
29945         fall back to using wcrtomb.
29946         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
29947         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
29948         renaming.
29949         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
29950         * wcsmbs/tst-c16c32-1.c: New file.
29951
29952         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
29953         local variable.
29954
29955         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
29956
29957         * elf/tst-unique3.cc: Add explicit declaration of gets.
29958         * elf/tst-unique3lib.cc: Likewise.
29959         * elf/tst-unique3lib2.cc: Likewise.
29960         * elf/tst-unique4.cc: Likewise.
29961
29962         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
29963
29964 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
29965
29966         [BZ #13566]
29967         * assert/assert.h (static_assert): Don't define for C++.
29968         * libio/stdio.h (gets): Do declare for C++ <= C++11.
29969         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
29970
29971 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
29972
29973         * iconv/loop.c (single loop): Fix assertion in storing of
29974         remaining bytes.
29975
29976         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
29977
29978 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
29979
29980         * posix/getconf.c: Update copyright year.
29981         * nss/getent.c: Likewise.
29982         * nss/makedb.c: Likewise.
29983         * iconv/iconvconfig.c: Likewise.
29984         * iconv/iconv_prog.c: Likewise.
29985         * elf/ldconfig.c: Likewise.
29986         * elf/pldd.c: Likewise.
29987         * elf/sotruss.ksh: Likewise.
29988         * catgets/gencat.c: Likewise.
29989         * csu/version.c: Likewise.
29990         * elf/ldd.bash.in: Likewise.
29991         * elf/sprof.c (print_version): Likewise.
29992         * locale/programs/locale.c: Likewise.
29993         * locale/programs/localedef.c: Likewise.
29994         * login/programs/pt_chown.c: Likewise.
29995         * nscd/nscd.c (print_version): Likewise.
29996         * debug/xtrace.sh: Likewise.
29997         * malloc/memusage.sh: Likewise.
29998         * malloc/mtrace.pl: Likewise.
29999         * debug/catchsegv.sh: Likewise.
30000
30001 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
30002
30003         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
30004         pure attribute.
30005
30006 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
30007
30008         [BZ #13533]
30009         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
30010         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
30011         transformations.
30012         * iconv/gconv_int.h: Likewise.
30013         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
30014         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
30015         from libc for GLIBC_2.16.
30016         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
30017         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
30018         * wcsmbs/uchar.h: Really define mbstate_t.
30019         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
30020         * wcsmbs/c16rtomb.c: New file.
30021         * wcsmbs/mbrtoc16.c: New file.
30022         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
30023         for C/POSIX locale.
30024         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
30025         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
30026
30027         * wcsmbs/wchar.h: Add missing __restrict.
30028
30029 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30030
30031         [BZ #13532]
30032         * time/Makefile (routines): Add timespec_get.
30033         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
30034         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
30035         timespec for ISO C11.
30036         * time/timespec_get.c: New file.
30037         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
30038         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
30039
30040         [BZ #13531]
30041         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
30042         * stdlib/stdlib.h: Declare aligned_alloc.
30043         * Versions.def: Add GLIBC_2.16 for libc.
30044         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
30045
30046         [BZ 13527]
30047         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
30048         ISO C11.
30049
30050         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
30051         code.
30052
30053         [BZ #13528]
30054         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
30055
30056         [BZ #13529]
30057         * assert/assert.h (static_assert): Define.
30058
30059         * version.h: Update for 2.16 development version.
30060
30061         [BZ #13526]
30062         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
30063         _ISOC11_SOURCE.
30064
30065         * version.h (RELEASE): Bump for 2.15 release.
30066         * include/features.h (__GLIBC_MINOR__): Bump to 15.
30067
30068         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
30069         Patch by Marek Polacek <mpolacek@redhat.com>.
30070
30071         * bits/byteswap.h: Protect long long constants with __extension__.
30072         * sysdeps/i386/bits/byteswap.h: Likewise.
30073         * sysdeps/ia64/bits/byteswap.h: Likewise.
30074         * sysdeps/s390/bits/byteswap.h: Likewise.
30075         * sysdeps/x86_64/bits/byteswap.h: Likewise.
30076
30077 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30078
30079         [BZ #13540]
30080         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
30081         destination buffer.
30082         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30083
30084 2011-12-23  Marek Polacek  <polacek@redhat.com>
30085
30086         * elf/dl-addr.c (determine_info): Add inline keyword.
30087         * elf/tst-auditmod4b.c (check_avx): Likewise.
30088         * elf/tst-auditmod6b.c (check_avx): Likewise.
30089         * elf/tst-auditmod6c.c (check_avx): Likewise.
30090         * elf/tst-auditmod7b.c (check_avx): Likewise.
30091
30092 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30093
30094         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
30095         !__SSE_MATH__.
30096
30097 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30098
30099         [BZ #13540]
30100         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
30101         processing for last bytes.
30102
30103 2011-08-06  Bruno Haible  <bruno@clisp.org>
30104
30105         [BZ #13061]
30106         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
30107         U+0385, not to U+1FEE.
30108
30109         [BZ #13062]
30110         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
30111         entry for U+00A5 U+0301.
30112
30113 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30114
30115         [BZ #13166]
30116         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
30117         buffer for the output is too small.
30118
30119         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
30120         optimization.
30121
30122         [BZ #13185]
30123         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
30124         SSE flags if possible.
30125
30126 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30127
30128         [BZ #13540]
30129         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
30130         processing for last bytes.
30131
30132 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
30133
30134         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
30135         (syscall-list-default-options, syscall-list-default-condition)
30136         (syscall-list-includes): Define.
30137         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
30138         list of ABIs and options and #if conditions for each ABI.  Do not
30139         handle common syscalls between ABIs specially.
30140         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
30141         Remove.
30142         (syscall-list-variants, syscall-list-32bit-options)
30143         (syscall-list-32bit-condition, syscall-list-64bit-options)
30144         (syscall-list-64bit-condition): Define.
30145         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
30146         (syscall-list-variants, syscall-list-32bit-options)
30147         (syscall-list-32bit-condition, syscall-list-64bit-options)
30148         (syscall-list-64bit-condition): Define.
30149         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
30150         Remove.
30151         (syscall-list-variants, syscall-list-32bit-options)
30152         (syscall-list-32bit-condition, syscall-list-64bit-options)
30153         (syscall-list-64bit-condition): Define.
30154         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
30155         Remove.
30156         (syscall-list-variants, syscall-list-32bit-options)
30157         (syscall-list-32bit-condition, syscall-list-64bit-options)
30158         (syscall-list-64bit-condition): Define.
30159
30160 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30161
30162         * locale/iso-639.def: Add brx entry.
30163
30164         [BZ #13328]
30165         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
30166         Proposed by Mariusz_Cukr <marcukr@op.pl>.
30167
30168         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
30169         __feraiseexcept_renamed.
30170
30171 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
30172
30173         [BZ #13538]
30174         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
30175         EPOLLET with unsigned values.
30176         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30177         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
30178
30179         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
30180         to large cancellation.
30181         * math/s_cacoshf.c: Likewise.
30182         * math/s_cacoshl.c: Likewise.
30183
30184 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
30185
30186         [BZ #13305]
30187         [BZ #12786]
30188         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
30189         * math/s_cacoshf.c: Likewise.
30190         * math/s_cacoshl.c: Likewise.
30191
30192 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
30193
30194         [BZ #13439]
30195         * iconv/gconv.h: Define __GCONV_SWAP.
30196         * iconvdata/unicode.c: The swap bit must be stored in __flags.
30197         * iconvdata/utf-16.c: Likewise.
30198         * iconvdata/utf-32.c: Likewise.
30199
30200 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
30201
30202         [BZ #13524]
30203         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
30204         numerator after shifting it by one limb.
30205
30206 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
30207
30208         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
30209         under [__USE_EXTERN_INLINES].
30210
30211 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
30212
30213         [BZ #13446]
30214         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
30215
30216 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30217
30218         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
30219         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
30220         optimized code.
30221         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
30222         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
30223         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
30224         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
30225         for strncasecmp/strncasecmp_l compilation.
30226         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
30227         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
30228
30229 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
30230
30231         [BZ #13484]
30232         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
30233         of __asm__.
30234
30235 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
30236
30237         [BZ #13506]
30238         * time/tzfile.c (__tzfile_read): Check values from file header.
30239
30240 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
30241
30242         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
30243         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
30244         * powerpc/powerpc32/dl-start.S: Likewise.
30245         * powerpc/powerpc32/elf/start.S: Likewise.
30246         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30247         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
30248         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
30249         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
30250         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
30251         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
30252         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
30253         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
30254         * powerpc/powerpc32/fpu/s_round.S: Likewise.
30255         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
30256         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
30257         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
30258         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30259         * powerpc/powerpc32/memset.S: Likewise.
30260         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
30261         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
30262         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
30263         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
30264         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
30265         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30266         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30267         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30268         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
30269         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
30270         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
30271         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
30272         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
30273
30274 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30275
30276         * math/libm-test.inc: Added more nearbyint tests.
30277         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
30278         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
30279         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
30280         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
30281
30282 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
30283
30284         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
30285         FD_CLOEXEC.
30286
30287 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30288
30289         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
30290         Add wcscpy-ssse3 wcscpy-c.
30291         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
30292         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
30293         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
30294         * sysdeps/x86_64/wcschr.S: New file.
30295         * sysdeps/x86_64/wcsrchr.S: New file.
30296         * string/test-strcmp.c: Remove checking of wcscmp function for
30297         wrong alignments.
30298         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
30299         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
30300         wcsrchr-sse2 wcsrchr-c.
30301         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
30302         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
30303         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
30304         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
30305         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
30306         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
30307         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
30308         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
30309         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
30310         * wcsmbc/wcschr.c (WCSCHR): New macro.
30311
30312 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30313
30314         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
30315         * wcsmbs/test-wcsrchr.c: New file.
30316         * string/test-strrchr.c: Add wcsrchr support.
30317         (WIDE): New macro.
30318         * wcsmbs/test-wcscpy.c: New file.
30319         * string/test-strcpy.c: Add wcscpy support.
30320         (WIDE): New macro.
30321
30322 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
30323
30324         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
30325         the inner loop.
30326
30327 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
30328
30329         [BZ #13472]
30330         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
30331
30332 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
30333
30334         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
30335         Minor optimizations.
30336
30337         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
30338         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
30339         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
30340
30341 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
30342
30343         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
30344         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
30345         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
30346         for gcc to avoid warnings.
30347         * inet/Makefile (tests): Add tst-checks.
30348         * inet/tst-checks.c: New file.
30349
30350         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
30351         warning.
30352
30353         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
30354         __wmemcmp_sse2.
30355
30356         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
30357         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
30358
30359         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
30360
30361 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
30362
30363         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
30364         problem.
30365
30366         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
30367
30368 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
30369
30370         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
30371         conditional on GCC version.
30372         (__arch_compare_and_exchange_val_8_acq)
30373         (__arch_compare_and_exchange_val_16_acq)
30374         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
30375         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
30376         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
30377
30378 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
30379
30380         * sysdeps/sh/backtrace.c: New file.
30381
30382 2011-12-02  Andreas Schwab  <schwab@redhat.com>
30383
30384         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
30385         parenthesis.
30386
30387 2011-12-01  Andreas Schwab  <schwab@redhat.com>
30388
30389         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
30390         falling back to utime.
30391
30392 2011-11-30  Andreas Schwab  <schwab@redhat.com>
30393
30394         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
30395         expectations for float.
30396
30397 2011-11-29  Andreas Schwab  <schwab@redhat.com>
30398
30399         * locale/weight.h (findidx): Add parameter len.
30400         * locale/weightwc.h (findidx): Likewise.
30401         * posix/fnmatch_loop.c (FCT): Adjust caller.
30402         * posix/regcomp.c (build_equiv_class): Likewise.
30403         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
30404         * posix/regexec.c (check_node_accept_bytes): Likewise.
30405         * string/strcoll_l.c (STRCOLL): Likewise.
30406         * string/strxfrm_l.c (STRXFRM): Likewise.
30407
30408 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
30409
30410         * Makefile.in: Remove CVSOPT handling.
30411         * configure.in: Remove use of AC_REVISION.
30412         * iconvdata/Makefile (distribute): No need to filter out CVS.
30413         * scripts/list-sources.sh: Remove CVS, subversion and monotone
30414         handling.
30415
30416 2011-11-16  Andreas Schwab  <schwab@redhat.com>
30417
30418         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
30419         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
30420         [USE_AS_STRNCASECMP_L]: Likewise.
30421         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
30422         NO_TLS_DIRECT_SEG_REFS.
30423         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
30424         Fix argument offsets for non-PIC.
30425         [USE_AS_STRNCASECMP_L]: Likewise.
30426         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
30427         NO_TLS_DIRECT_SEG_REFS.
30428
30429 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
30430
30431         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
30432         O_CLOEXEC.
30433         * locale/loadlocale.c (_nl_load_locale): Likewise.
30434
30435 2011-11-15  Andreas Schwab  <schwab@redhat.com>
30436
30437         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
30438         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
30439         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
30440         (SYSCALL_GETTIME): Set errno on error.
30441
30442         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
30443         count references to noai6ai_cached.
30444
30445 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
30446
30447         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
30448
30449         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
30450         FD_CLOEXEC for /proc/self/maps.
30451
30452         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
30453         FD_CLOEXEC for /proc/meminfo.
30454
30455         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
30456         gai.conf.
30457
30458         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
30459         FD_CLOEXEC for given file.
30460
30461         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
30462
30463         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
30464         FD_CLOEXEC for /etc/hosts.
30465         (_gethtent): Likewise.
30466
30467         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
30468
30469         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
30470         cancellation and set FD_CLOEXEC for /etc/netgroup.
30471
30472         * nss/nss_files/files-key.c (search): Don't allow cancellation when
30473         reading /etc/publickey.
30474
30475         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
30476         allow cancellation when reading /etc/group.
30477
30478         * nss/nss_files/files-alias.c (internal_setent): Don't allow
30479         cancellation.
30480         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
30481
30482         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
30483         when using data file.
30484
30485         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
30486
30487         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
30488         (write_nis_obj): Use "c" and "e" in fopen.
30489
30490         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
30491
30492         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
30493
30494         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
30495
30496         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
30497
30498         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
30499         locale.alias.
30500
30501         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
30502
30503         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
30504
30505         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
30506
30507         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
30508         file parsing and set FD_CLOEXEC.
30509
30510 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
30511
30512         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
30513
30514 2011-11-14  Andreas Schwab  <schwab@redhat.com>
30515
30516         * malloc/arena.c (arena_get2): Don't call reused_arena when
30517         _int_new_arena failed.
30518
30519 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
30520
30521         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
30522         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
30523         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
30524         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30525         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30526         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
30527         to compile strcasecmp and strncasecmp.
30528         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
30529         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
30530
30531         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
30532
30533 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
30534
30535         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
30536         locale-defines.sym to gen-as-const-headers.
30537         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
30538         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
30539         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
30540         to compile strcasecmp and strncasecmp.
30541         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
30542         strcasecmp_l and strncasecmp_l.
30543         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
30544         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
30545         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
30546         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
30547         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
30548         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
30549         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
30550         * sysdeps/i386/i686/multiarch/strncase.S: New file.
30551         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
30552         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
30553         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
30554
30555 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
30556
30557         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
30558         result of SYSDEP_GETTIME_CPU to retval.
30559         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
30560         parameter list to macro.  Remove trailing semicolon.  Adjust users.
30561
30562         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
30563         variable.
30564
30565         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
30566         mantissa words.
30567         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
30568
30569         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
30570         from unused variable.
30571
30572         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
30573         DWARF definitions.
30574         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
30575         for assembling.
30576
30577         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
30578         over namespaces.
30579
30580         * sunrpc/rpc_prot.c (rejected): Fix case value.
30581
30582         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
30583         unsigned long long int to avoid warnings in shift.
30584
30585         * posix/regex_internal.c (re_string_reconstruct): Actually use result
30586         of use of trans.
30587         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
30588         variable tmp.
30589
30590         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
30591         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30592         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30593
30594         * nis/nis_table.c (nis_list): Use variable of correct type for
30595         result of __follow_path call.
30596
30597 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30598
30599         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
30600         of math functions ceil, trunc, floor, round, and sqrt, when
30601         avaliable on the platform.
30602         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
30603         name clash.
30604         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
30605         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
30606         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
30607
30608 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
30609
30610         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
30611         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
30612
30613 2011-11-11  Roland McGrath  <roland@hack.frob.com>
30614
30615         * include/unistd.h: Fix __readlink return type.
30616         Reported by Chris Metcalf <cmetcalf@tilera.com>.
30617
30618 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
30619
30620         * stdlib/ucontext.h: Undo last change for makecontext.
30621
30622 2011-11-11  Andreas Schwab  <schwab@redhat.com>
30623
30624         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
30625
30626         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
30627         * setjmp/setjmp.h: Mark functions as non-leaf.
30628         * setjmp/bits/setjmp2.h: Likewise.
30629         * stdlib/ucontext.h: Likewise.
30630
30631 2011-11-10  Andreas Schwab  <schwab@redhat.com>
30632
30633         * malloc/arena.c (_int_new_arena): Don't increment narenas.
30634         (reused_arena): Don't check arena limit.
30635         (arena_get2): Atomically check arena limit.
30636
30637 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
30638
30639         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
30640         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
30641
30642         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
30643         instructions.
30644
30645 2011-11-07  Andreas Schwab  <schwab@redhat.com>
30646
30647         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
30648         handler when locking.
30649
30650         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
30651         Fix size of allocated buffer.
30652
30653 2011-11-04  Andreas Schwab  <schwab@redhat.com>
30654
30655         [BZ #10103]
30656         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
30657         declarations for long double functions.
30658         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
30659
30660         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
30661
30662 2011-11-03  Andreas Schwab  <schwab@redhat.com>
30663
30664         * nscd/nscd.c (main): Don't start AVC thread until credentials are
30665         installed.
30666
30667         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
30668         is disabled.
30669
30670 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30671
30672         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
30673
30674 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
30675
30676         * include/alloca.h (stackinfo_alloca_round): Define.
30677         (extend_alloca): Use it.
30678         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
30679         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
30680         here.
30681
30682         * scripts/check-local-headers.sh: Ignore libaudit.h.
30683
30684         * nscd/Makefile (extra-objs): Make recursively expanded.
30685
30686 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
30687
30688         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
30689         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
30690
30691         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
30692         * posix/tst-rfc3484-2.c: Likewise.
30693         * posix/tst-rfc3484-3.c: Likewise.
30694
30695         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30696         process_vm_writev.
30697         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
30698         process_vm_writev.
30699         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
30700         process_vm_writev from libc using GLIBC_2.15 version.
30701
30702         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
30703
30704 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
30705
30706         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
30707         stack usage.
30708
30709 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
30710
30711         [BZ #13367]
30712         * nss/getent.c (initgroups_keys): Show error message in case no group
30713         names are given.
30714
30715         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
30716         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
30717         __bump_nl_timestamp.
30718         * nscd/connections (nscd_init): When host database is served open
30719         netlink socket and request notification about configuration changes.
30720         (main_loop_poll): Track netlink file descriptor and bump timestamp
30721         in case data becomes available.
30722         (main_loop_epoll): Likewise.
30723         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
30724         (database_pers_head): Add extra_data fileds.
30725         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
30726         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
30727         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
30728         Adjust caller.
30729         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
30730         in6ai data, call __free_in6ai.
30731         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
30732         Add -DHAVE_NETLINK.
30733         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
30734         interface information.  Reuse previous data if netlink timestamp
30735         is not changed.
30736         (__bump_nl_timestamp): New function.
30737         (__free_in6ai): New function.
30738
30739 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
30740
30741         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
30742         close_not_cancel_no_status here.
30743         (__check_pf): Reorganize code a bit to not call close twice if OOM.
30744
30745 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
30746
30747         [BZ #13276]
30748         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
30749         return value.
30750
30751         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
30752         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
30753         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
30754
30755 2011-07-03  Andreas Jaeger  <aj@suse.de>
30756
30757         [BZ #10709]
30758         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
30759         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
30760         * math/libm-test.inc (sin_test): Add test case.
30761
30762 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
30763
30764         [BZ #13337]
30765         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
30766         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
30767
30768         * elf/chroot_canon.c (chroot_canon): Cleanups.
30769
30770         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
30771
30772         [BZ #13335]
30773         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
30774         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
30775
30776         * string/test-strchr.c: Make usable for strchrnul testing.
30777         * string/test-strchrnul.c: New file.
30778         * string/Makefile (strop-tests): Add strchrnul.
30779
30780         * po/it.po: Update from translation team.
30781         * po/es.po: Likewise.
30782
30783 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
30784
30785         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
30786         the three constants needed as parameters.  Drop the others.
30787         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
30788         __m128i_strloadu_tolower.
30789         Create and initialize variable zero and use it in all the places
30790         where _mm_setzero_si128 was used.
30791
30792         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
30793         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
30794         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
30795         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
30796         anymore.
30797         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
30798         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
30799         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
30800         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
30801         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
30802         __mpranred, __mptan.
30803         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
30804         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
30805         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
30806         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
30807         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
30808         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
30809         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
30810         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
30811         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
30812
30813 2011-10-28  Andreas Schwab  <schwab@redhat.com>
30814
30815         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
30816         redefine if SHARED.
30817         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
30818
30819         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
30820         wide char related routines to wcsmbs subdir.
30821
30822 2011-10-27  Andreas Schwab  <schwab@redhat.com>
30823
30824         [BZ #13344]
30825         * misc/sys/cdefs.h (__THROWNL): Define.
30826         * posix/unistd.h: Use __THREADNL instead of __THREAD
30827         for memory synchronization functions.
30828
30829 2011-10-26  Roland McGrath  <roland@hack.frob.com>
30830
30831         [BZ #13349]
30832         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
30833         doesn't exist.
30834         * manual/stdio.texi (Obstack Streams): Node removed.
30835
30836 2011-10-26  Andreas Schwab  <schwab@redhat.com>
30837
30838         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
30839         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
30840         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
30841
30842         * math/math_private.h (math_force_eval): Allow non-addressable
30843         arguments.
30844         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
30845
30846 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
30847
30848         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
30849         file is not needed.
30850
30851         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
30852         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
30853         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30854         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30855         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30856         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30857         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30858         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
30859         Add AVX variants.
30860         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
30861         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
30862         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
30863         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
30864         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
30865         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
30866         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
30867         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
30868         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
30869         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
30870         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
30871         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
30872         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
30873         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
30874         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
30875         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
30876         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
30877         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
30878         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
30879
30880         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
30881         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
30882
30883         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
30884         place.  Use VEX encoding when compiling for AVX.
30885
30886 2011-10-25  Andreas Schwab  <schwab@redhat.com>
30887
30888         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
30889         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
30890
30891         * string/test-strchr.c (do_test): Don't generate NUL bytes.
30892
30893 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
30894
30895         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
30896         useless if() expression.
30897         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
30898         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
30899         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
30900         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30901         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
30902         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
30903         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
30904         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
30905         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
30906         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30907         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
30908         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
30909         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
30910         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
30911         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
30912         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
30913         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
30914         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
30915         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
30916
30917         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
30918
30919 2011-10-25  Andreas Schwab  <schwab@redhat.com>
30920
30921         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
30922         condition.
30923         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30924
30925 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
30926
30927         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
30928         .text section.  Avoid duplicate constants.
30929         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
30930         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
30931         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
30932         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
30933         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30934         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
30935         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30936         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
30937         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
30938         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
30939         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
30940         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
30941         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
30942         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
30943         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
30944         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
30945         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
30946         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
30947         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
30948         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
30949         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
30950         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
30951         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
30952         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
30953         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
30954         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
30955         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
30956         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
30957         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
30958         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
30959         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
30960         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
30961         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
30962         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
30963         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
30964         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
30965         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
30966         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
30967         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
30968         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
30969         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
30970         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
30971         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
30972         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
30973         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
30974
30975 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
30976
30977         * sysdeps/x86_64/dla.h: Move to ...
30978         * sysdeps/x86_64/fpu/dla.h: ...here.
30979         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
30980         situations.  Use __builtin_fma only for gcc 4.6 and up.
30981
30982         * config.make.in: Add have-mfma4 entry.
30983         * configure.in: Substitute libc_cv_cc_fma4.
30984         * math/Makefile (dbl-only-routines): Add sincostab.
30985         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
30986         Use __sincostab not sincos.
30987         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
30988         name is a macro.
30989         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30990         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
30991         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30992         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
30993         using __copysign.
30994         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
30995         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
30996         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
30997         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
30998         and __inv.
30999         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
31000         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
31001         __copysign.
31002         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
31003         define aliases when function name is a macro.
31004         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
31005         sysdeps/ieee754/dbl-64/sincos.tbl.
31006         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
31007         fma4-enabled routines.
31008         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
31009         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
31010         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
31011         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
31012         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
31013         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
31014         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
31015         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
31016         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
31017         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
31018         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
31019         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
31020         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
31021         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
31022         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
31023         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
31024         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
31025         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
31026         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
31027         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
31028         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
31029         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
31030         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
31031         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
31032         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
31033         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
31034         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
31035         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
31036         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
31037         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
31038
31039         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
31040         rename.
31041         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31042         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31043         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31044         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31045         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31046         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31047         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31048         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31049
31050 2011-10-24  Andreas Schwab  <schwab@redhat.com>
31051
31052         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
31053
31054 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31055
31056         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
31057
31058         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
31059         prediction.
31060         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
31061
31062         * string/strnlen.c: Don't define STRNLEN, reverse logic.
31063         Remove unused variable magic_bits.
31064         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
31065
31066         * string/strnlen.c: Define and use STRNLEN macro.
31067         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
31068         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
31069         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
31070         * wcsmbs/wcslen.c: Define and use WCSLEN.
31071         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
31072         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
31073         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
31074         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
31075         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
31076         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
31077         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
31078
31079 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31080
31081         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31082         strnlen-sse2-no-bsf.
31083         Rename strlen-no-bsf to strlen-sse2-no-bsf.
31084         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
31085         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
31086         Add strnlen support.
31087         (USE_AS_STRNLEN): New macro.
31088         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
31089         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
31090         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
31091         * sysdeps/x86_64/wcslen.S: New file.
31092
31093 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
31094
31095         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
31096         XMM-moves are used for copying on small sizes.
31097
31098 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31099
31100         * wcsmbs/Makefile (strop-tests): Add wcschr.
31101         * wcsmbs/test-wcschr.c: New file.
31102         * string/test-strchr.c: Update.
31103         Add wcschr support.
31104         (WIDE): New macro.
31105
31106 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31107
31108         * wcsmbs/Makefile (strop-tests): Add wcslen.
31109         * wcsmbs/test-wcslen.c: New file.
31110         * string/test-strlen.c: Update.
31111         Add wcslen support.
31112         (WIDE): New macro.
31113
31114 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31115
31116         * po/it.po: Update from translation team.
31117
31118 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31119
31120         * sysdeps/x86_64/wcscmp.S: Update.
31121         Fix wrong comparison semantics.
31122         wcscmp shall use signed comparison not unsigned.
31123         Don't use substraction to avoid overflow bug.
31124         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
31125         * wcsmbc/wcscmp.c: Likewise.
31126         * string/test-strcmp.c: Likewise.
31127         Add new tests to check cases with negative values.
31128
31129 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31130
31131         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
31132         * sysdeps/x86_64/dla.h: ...here.  New file.
31133         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
31134         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31135         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31136         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31137         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31138         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
31139         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31140         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31141         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31142
31143 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
31144
31145         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
31146         __ynl_finite aliases.
31147
31148 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
31149
31150         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31151
31152         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
31153         define DLA_FMA.
31154         [DLA_FMA] (EMULV): Use DLA_FMA.
31155         [DLA_FMA] (MUL12): Use EMULV.
31156         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
31157         that are not needed.
31158         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31159         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31160         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31161         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31162         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31163         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31164         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31165
31166 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
31167
31168         * math/s_nan.c: Undef __nan.
31169         * math/s_nanf.c: Undef __nanf.
31170         * math/s_nanl.c: Undef __nanl.
31171         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
31172         "math_private.h".
31173
31174 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
31175
31176         * math/s_catan.c: Add branch predictions.
31177         * math/s_catanf.c: Likewise.
31178         * math/s_catanh.c: Likewise.
31179         * math/s_catanhf.c: Likewise.
31180         * math/s_catanhl.c: Likewise.
31181         * math/s_catanl.c: Likewise.
31182         * math/s_cexp.c: Likewise.
31183         * math/s_cexpf.c: Likewise.
31184         * math/s_cexpl.c: Likewise.
31185         * math/s_clog.c: Likewise.
31186         * math/s_clog10.c: Likewise.
31187         * math/s_clog10f.c: Likewise.
31188         * math/s_clog10l.c: Likewise.
31189         * math/s_clogf.c: Likewise.
31190         * math/s_clogl.c: Likewise.
31191         * math/s_csqrt.c: Likewise.
31192         * math/s_csqrtf.c: Likewise.
31193         * math/s_csqrtl.c: Likewise.
31194         * math/s_ctanf.c: Likewise.
31195         * math/s_ctanh.c: Likewise.
31196         * math/s_ctanhf.c: Likewise.
31197         * math/s_ctanhl.c: Likewise.
31198         * math/s_ctanl.c: Likewise.
31199
31200         * math/math_private.h: Define __nan, __nanf, __nanl.
31201         * math/s_cacosh.c: Include <math_private.h>.
31202         * math/s_cacoshl.c: Likewise.
31203         * math/s_casinh.c: Likewise.
31204         * math/s_casinhf.c: Likewise.
31205         * math/s_casinhl.c: Likewise.
31206         * math/s_ccos.c: Rely entire on ccosh.
31207         * math/s_ccosf.c: Rely entire on ccoshf.
31208         * math/s_ccosl.c: Rely entirely on ccoshl.
31209         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
31210         Remove tests for FE_INVALID.
31211         * math/s_ccoshf.c: Likewise.
31212         * math/s_ccoshl.c: Likewise.
31213         * math/s_csin.c: Likewise.
31214         * math/s_csinf.c: Likewise.
31215         * math/s_csinh.c Likewise.
31216         * math/s_csinhf.c: Likewise.
31217         * math/s_csinhl.c: Likewise.
31218         * math/s_csinl.c: Likewise.
31219         * math/s_ctan.c: Likewise.
31220         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
31221         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
31222         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
31223
31224 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
31225
31226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
31227         compilation problems.
31228
31229         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
31230         __builtin_expect.
31231
31232 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
31233
31234         * sysdeps/i386/configure.in: Test for -mfma4 option.
31235         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
31236         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
31237         COMMON_CPUID_INDEX_80000001.
31238         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
31239         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
31240         use it if FMA3 is not supported.
31241         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
31242
31243         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
31244         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
31245
31246 2011-10-20  Andreas Schwab  <schwab@redhat.com>
31247
31248         [BZ #12892]
31249         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
31250         it would create a cycle with a link time dependency.
31251
31252 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
31253
31254         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
31255         instruction.
31256         * string/Makefile (strop-tests): Add rawmemchr.
31257         * string/test-rawmemchr.c: New file.
31258
31259         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
31260         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
31261         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
31262         when compiling str{,n}casecmp and when AVX is available.  Hook up
31263         new optimized code in initializers.
31264
31265 2011-10-19  Andreas Schwab  <schwab@redhat.com>
31266
31267         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
31268         __feraiseexcept instead of feraiseexcept.
31269
31270 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
31271
31272         * math/math_private.h: Define defaults for libc_fetestexcept and
31273         libc_feupdateenv.
31274         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
31275         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
31276         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
31277         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31278         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
31279         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
31280         libc_fetestexcept and libc_feupdateenv.
31281
31282         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
31283         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
31284         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
31285         * sysdeps/x86_64/fpu/math_private.h: Define special version of
31286         libc_feholdexcept_setround.
31287
31288         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
31289         Add s_nearbyint-c and s_nearbyintf-c.
31290         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
31291         nearbyintf inlines.
31292         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
31293         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
31294         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
31295         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
31296
31297         * math/math_private.h: Define defaults for libc_fegetround,
31298         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
31299         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
31300         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
31301         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
31302         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
31303         standard functions.
31304         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31305         Remove comments and hacks for old compiler versions.
31306         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
31307         libc_fegetround, libc_fesetround, libc_feholdexcept, and
31308         libc_feholdexceptl.
31309
31310 2011-10-18  Andreas Schwab  <schwab@redhat.com>
31311
31312         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
31313         (__feraiseexcept_renamed): Add __NTH.
31314         (feraiseexcept): Add __NTH.  Rename local variables to fix
31315         namespace violations.
31316
31317 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
31318
31319         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
31320
31321         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
31322
31323         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
31324         recently added interfaces.
31325         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
31326
31327         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
31328         about macro parameter expansion.
31329
31330         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
31331         __NO_MATH_INLINES is defined.  Cleanups.
31332
31333         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
31334         and __floorf is target has SSE4.1.
31335         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
31336         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
31337         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
31338         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
31339
31340         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
31341         name.
31342         (floorf): Likewise.
31343
31344         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
31345
31346 2011-10-17  Andreas Schwab  <schwab@redhat.com>
31347
31348         * misc/sys/cdefs.h: Fix last change.
31349
31350         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
31351         database lookup.
31352
31353 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
31354
31355         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
31356
31357         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
31358         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31359         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
31360         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
31361         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
31362         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
31363         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
31364         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
31365         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
31366         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
31367         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
31368         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
31369         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
31370         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
31371         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
31372         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
31373         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
31374         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
31375         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
31376         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
31377         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
31378         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
31379
31380         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
31381         ceil, ceilf, floor, floorf.
31382
31383         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
31384         Perform IRELATIVE relocations last.
31385
31386         * elf/do-rel.h: Add another parameter nrelative, replacing the
31387         local variable with the same name.  Change name of the function
31388         to end in Rel or Rela (uppercase).
31389         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
31390         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
31391         elf_dynamic_do_##reloc function.
31392
31393 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
31394
31395         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
31396         is sufficient, at least on modern CPUs.
31397
31398         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
31399
31400         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
31401         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
31402
31403         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
31404         __expl_finite.
31405         * math/bits/math-finite.h: Add entries for exp.
31406         * math/e_expl.c: Add __*_finite alias.
31407         * sysdeps/i386/fpu/e_exp.S: Likewise.
31408         * sysdeps/i386/fpu/e_expf.S: Likewise.
31409         * sysdeps/i386/fpu/e_expl.c: Likewise.
31410         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31411         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31412         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
31413         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
31414         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
31415         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
31416         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
31417
31418         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
31419         is sufficient, at least on modern CPUs.
31420
31421         * ctype/ctype-info.c (__ctype_init): Define.
31422         * include/ctype.h (__ctype_init): Declare.
31423         (__ctype_b_loc): The variable is always initialized.
31424         (__ctype_toupper_loc): Likewise.
31425         (__ctype_tolower_loc): Likewise.
31426         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
31427         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
31428
31429 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
31430
31431         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
31432
31433         * configure.in: Also look in $cxxmachine/include for C++ system
31434         headers.
31435
31436 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31437
31438         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
31439         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
31440         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
31441         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
31442         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
31443         (USE_AS_WMEMCMP): New macro.
31444         Fixing indents.
31445         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
31446         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
31447         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
31448         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
31449         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31450         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
31451         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
31452         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
31453         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
31454         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
31455         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
31456         (USE_AS_WMEMCMP): New macro.
31457         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
31458         * sysdeps/string/test-memcmp.c: Update.
31459         Fix simple_wmemcmp.
31460         Add new tests.
31461         * wcsmbs/wmemcmp.c: Update.
31462         (WMEMCMP): New macro.
31463         Fix overflow bug.
31464
31465 2011-10-12  Andreas Jaeger  <aj@suse.de>
31466
31467         [BZ #13268]
31468         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
31469
31470 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
31471
31472         * libio/iofwide.c (do_length): Avoid warning.
31473
31474         * ctype/ctype.h (__isctype_f): Add missing __THROW.
31475
31476 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
31477
31478         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
31479
31480         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
31481         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
31482         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
31483         * sysdeps/i386/i686/fpu/e_log.S: New file.
31484         * sysdeps/i386/i686/fpu/e_logf.S: New file.
31485         * sysdeps/i386/i686/fpu/e_logl.S: New file.
31486
31487         * ctype/ctype.h: Add support for inlined isXXX functions when
31488         compiling C++ code.
31489
31490 2011-10-14  Andreas Schwab  <schwab@redhat.com>
31491
31492         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
31493
31494         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
31495
31496 2011-10-13  Roland McGrath  <roland@hack.frob.com>
31497
31498         [BZ #13291]
31499         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
31500
31501 2011-10-13  Andreas Schwab  <schwab@redhat.com>
31502
31503         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
31504         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
31505         feraiseexcept.
31506
31507         * sysdeps/x86_64/memrchr.S: Check for zero size.
31508
31509         * string/stratcliff.c: Add memrchr tests.
31510
31511 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31512
31513         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31514         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
31515         rawmemchr-sse2 rawmemchr-sse2-bsf.
31516         * sysdeps/i386/i686/multiarch/memchr.S: New file.
31517         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
31518         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
31519         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
31520         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
31521         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
31522         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
31523         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
31524         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
31525         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
31526         * string/memrchr.c (MEMRCHR): New macro.
31527
31528 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
31529
31530         Add integration with gcc's -ffinite-math-only and optimize wrapper
31531         functions in libm.
31532         * Versions.def: Define GLIBC_2.15 version for libm.
31533         * math/Makefile (headers): Add bits/math-finite.h.
31534         * math/bits/math-finite.h: New file.
31535         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
31536         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
31537         * math/e_acoshl.c: Add __*_finite alias.
31538         * math/e_acosl.c: Likewise.
31539         * math/e_asinl.c: Likewise.
31540         * math/e_atan2l.c: Likewise.
31541         * math/e_atanhl.c: Likewise.
31542         * math/e_coshl.c: Likewise.
31543         * math/e_exp10.c: Likewise.
31544         * math/e_exp10f.c: Likewise.
31545         * math/e_exp10l.c: Likewise.
31546         * math/e_exp2l.c: Likewise.
31547         * math/e_fmodl.c: Likewise.
31548         * math/e_gammal_r.c: Likewise.
31549         * math/e_hypotl.c: Likewise.
31550         * math/e_j0l.c: Likewise.
31551         * math/e_j1l.c: Likewise.
31552         * math/e_jnl.c: Likewise.
31553         * math/e_lgammal_r.c: Likewise.
31554         * math/e_log10l.c: Likewise.
31555         * math/e_log2l.c: Likewise.
31556         * math/e_logl.c: Likewise.
31557         * math/e_powl.c: Likewise.
31558         * math/e_sinhl.c: Likewise.
31559         * math/e_sqrtl.c: Likewise.
31560         * math/e_scalb.c: Completely rewritten and optimized.
31561         * math/e_scalbf.c: Likewise.
31562         * math/e_scalbl.c: Likewise.
31563         * math/w_acos.c: Likewise.
31564         * math/w_acosf.c: Likewise.
31565         * math/w_acosl.c: Likewise.
31566         * math/w_acosh.c: Likewise.
31567         * math/w_acoshf.c: Likewise.
31568         * math/w_acoshl.c: Likewise.
31569         * math/w_asin.c: Likewise.
31570         * math/w_asinf.c: Likewise.
31571         * math/w_asinl.c: Likewise.
31572         * math/w_atan2.c: Likewise.
31573         * math/w_atan2f.c: Likewise.
31574         * math/w_atan2l.c: Likewise.
31575         * math/w_atanh.c: Likewise.
31576         * math/w_atanhf.c: Likewise.
31577         * math/w_atanhl.c: Likewise.
31578         * math/w_exp10.c: Likewise.
31579         * math/w_exp10f.c: Likewise.
31580         * math/w_exp10l.c: Likewise.
31581         * math/w_fmod.c: Likewise.
31582         * math/w_fmodf.c: Likewise.
31583         * math/w_fmodl.c: Likewise.
31584         * math/w_j0.c: Likewise.
31585         * math/w_j0f.c: Likewise.
31586         * math/w_j0l.c: Likewise.
31587         * math/w_j1.c: Likewise.
31588         * math/w_j1f.c: Likewise.
31589         * math/w_j1l.c: Likewise.
31590         * math/w_jn.c: Likewise.
31591         * math/w_jnf.c: Likewise.
31592         * math/w_log.c: Likewise.
31593         * math/w_logf.c: Likewise.
31594         * math/w_logl.c: Likewise.
31595         * math/w_log10.c: Likewise.
31596         * math/w_log10f.c: Likewise.
31597         * math/w_log10l.c: Likewise.
31598         * math/w_log2.c: Likewise.
31599         * math/w_log2f.c: Likewise.
31600         * math/w_log2l.c: Likewise.
31601         * math/w_pow.c: Likewise.
31602         * math/w_powf.c: Likewise.
31603         * math/w_powl.c: Likewise.
31604         * math/w_remainder.c: Likewise.
31605         * math/w_remainderf.c: Likewise.
31606         * math/w_remainderl.c: Likewise.
31607         * math/w_scalb.c: Likewise.
31608         * math/w_scalbf.c: Likewise.
31609         * math/w_scalbl.c: Likewise.
31610         * math/w_sqrt.c: Likewise.
31611         * math/w_sqrtf.c: Likewise.
31612         * math/w_sqrtl.c: Likewise.
31613         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
31614         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
31615         used.
31616         * math/math_private.h: Declare __kernel_standard_f.
31617         * math/w_cosh.c: Remove cruft and optimize a bit.
31618         * math/w_coshf.c: Likewise.
31619         * math/w_coshl.c: Likewise.
31620         * math/w_exp2.c: Likewise.
31621         * math/w_exp2f.c: Likewise.
31622         * math/w_exp2l.c: Likewise.
31623         * math/w_hypot.c: Likewise.
31624         * math/w_hypotf.c: Likewise.
31625         * math/w_hypotl.c: Likewise.
31626         * math/w_lgamma.c: Likewise.
31627         * math/w_lgamma_r.c: Likewise.
31628         * math/w_lgammaf.c: Likewise.
31629         * math/w_lgammaf_r.c: Likewise.
31630         * math/w_lgammal.c: Likewise.
31631         * math/w_lgammal_r.c: Likewise.
31632         * math/w_sinh.c: Likewise.
31633         * math/w_sinhf.c: Likewise.
31634         * math/w_sinhl.c: Likewise.
31635         * math/w_tgamma.c: Likewise.
31636         * math/w_tgammaf.c: Likewise.
31637         * math/w_tgammal.c: Likewise.
31638         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
31639         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
31640         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
31641         Minor optimizations.  Pretty printing.  Remove cruft.
31642         * sysdeps/i386/fpu/e_acosf.S: Likewise.
31643         * sysdeps/i386/fpu/e_acosh.S: Likewise.
31644         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
31645         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
31646         * sysdeps/i386/fpu/e_acosl.c: Likewise.
31647         * sysdeps/i386/fpu/e_asin.S: Likewise.
31648         * sysdeps/i386/fpu/e_asinf.S: Likewise.
31649         * sysdeps/i386/fpu/e_atan2.S: Likewise.
31650         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
31651         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
31652         * sysdeps/i386/fpu/e_atanh.S: Likewise.
31653         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
31654         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
31655         * sysdeps/i386/fpu/e_exp10.S: Likewise.
31656         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
31657         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
31658         * sysdeps/i386/fpu/e_exp2.S: Likewise.
31659         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
31660         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
31661         * sysdeps/i386/fpu/e_fmod.S: Likewise.
31662         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
31663         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
31664         * sysdeps/i386/fpu/e_hypot.S: Likewise.
31665         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
31666         * sysdeps/i386/fpu/e_log.S: Likewise.
31667         * sysdeps/i386/fpu/e_log10.S: Likewise.
31668         * sysdeps/i386/fpu/e_log10f.S: Likewise.
31669         * sysdeps/i386/fpu/e_log10l.S: Likewise.
31670         * sysdeps/i386/fpu/e_log2.S: Likewise.
31671         * sysdeps/i386/fpu/e_log2f.S: Likewise.
31672         * sysdeps/i386/fpu/e_log2l.S: Likewise.
31673         * sysdeps/i386/fpu/e_logf.S: Likewise.
31674         * sysdeps/i386/fpu/e_logl.S: Likewise.
31675         * sysdeps/i386/fpu/e_pow.S: Likewise.
31676         * sysdeps/i386/fpu/e_powf.S: Likewise.
31677         * sysdeps/i386/fpu/e_powl.S: Likewise.
31678         * sysdeps/i386/fpu/e_remainder.S: Likewise.
31679         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
31680         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
31681         * sysdeps/i386/fpu/e_scalb.S: Likewise.
31682         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
31683         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
31684         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
31685         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
31686         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
31687         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
31688         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
31689         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31690         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
31691         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31692         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
31693         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
31694         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
31695         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
31696         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
31697         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
31698         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
31699         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31700         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
31701         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
31702         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31703         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
31704         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
31705         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
31706         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31707         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
31708         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
31709         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31710         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31711         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
31712         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
31713         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
31714         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
31715         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
31716         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
31717         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
31718         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
31719         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31720         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
31721         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
31722         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
31723         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
31724         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
31725         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
31726         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
31727         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
31728         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
31729         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
31730         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
31731         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31732         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
31733         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
31734         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
31735         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
31736         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
31737         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
31738         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
31739         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
31740         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31741         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
31742         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
31743         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
31744         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
31745         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
31746         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
31747         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
31748         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
31749         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31750         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31751         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
31752         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
31753         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
31754         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
31755         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
31756         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
31757         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
31758         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
31759         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
31760         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
31761         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
31762         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
31763         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
31764         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
31765         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31766         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
31767         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
31768         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
31769         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
31770         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31771         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
31772         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
31773         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31774         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
31775         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
31776         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
31777         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31778         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
31779         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
31780         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
31781         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
31782         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
31783         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
31784         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
31785         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
31786         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
31787         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
31788         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
31789         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
31790         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
31791         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
31792         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
31793         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
31794         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
31795         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
31796         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
31797         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
31798         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
31799         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
31800         (__isnanf): Likewise.
31801         (__isinf_ns): Likewise.
31802         (__isinf_nsf): Likewise.
31803         (__finite): Likewise.
31804         (__finitef): Likewise.
31805         (__ieee754_sqrt): Define as macro.
31806         (__ieee754_sqrtf): Define as macro.
31807         (__ieee754_sqrtl): Define as macro.
31808         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
31809         inlined copy.
31810         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
31811         __FINITE_MATH_ONLY__ consistent.
31812         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
31813
31814 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
31815
31816         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
31817         of rawmemchr.
31818
31819         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
31820
31821 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
31822
31823         * po/ja.po: Update from translation team.
31824
31825 2011-10-08  Roland McGrath  <roland@hack.frob.com>
31826
31827         * locale/programs/locarchive.c (prepare_address_space): New function.
31828         (create_archive, enlarge_archive, open_archive): Use it.
31829
31830         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
31831         inside [SHARED], where it is used.
31832
31833         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
31834
31835         * nss/getent.c (netgroup_keys): Remove unused variable.
31836         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
31837
31838 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
31839
31840         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
31841         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
31842         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
31843         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
31844         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
31845         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
31846         * math/Makefile (libm-calls): Add s_isinf_ns.
31847         * math/divtc3.c: Use __isinf_nsl instead of isinf.
31848         * math/multc3.c: Likewise.
31849         * math/s_casin.c: Likewise.
31850         * math/s_casinf.c: Likewise.
31851         * math/s_casinl.c: Likewise.
31852         * math/s_ccos.c: Likewise.
31853         * math/s_ccosf.c: Likewise.
31854         * math/s_ccosl.c: Likewise.
31855         * math/s_ctan.c: Likewise.
31856         * math/s_ctanf.c: Likewise.
31857         * math/s_ctanh.c: Likewise.
31858         * math/s_ctanhf.c: Likewise.
31859         * math/s_ctanhl.c: Likewise.
31860         * math/s_ctanl.c: Likewise.
31861         * math/w_fmod.c: Likewise.
31862         * math/w_fmodf.c: Likewise.
31863         * math/w_fmodl.c: Likewise.
31864         * math/w_remainder.c: Likewise.
31865         * math/w_remainderf.c: Likewise.
31866         * math/w_remainderl.c: Likewise.
31867         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
31868         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
31869         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
31870         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
31871         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
31872         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
31873         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
31874         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
31875
31876         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
31877         of the number.
31878         * stdio-common/printf_fphex.c: Likewise.
31879         * stdio-common/printf_size.c: Likewise.
31880
31881         * math/e_exp10.c: Include math_private.h using <...> not "...".
31882         * math/e_exp10f.c: Likewise.
31883         * math/e_exp10l.c: Likewise.
31884         * math/e_exp2l.c: Likewise.
31885         * math/e_j0l.c: Likewise.
31886         * math/e_j1l.c: Likewise.
31887         * math/e_jnl.c: Likewise.
31888         * math/e_lgammal_r.c: Likewise.
31889         * math/e_rem_pio2l.c: Likewise.
31890         * math/e_scalb.c: Likewise.
31891         * math/e_scalbf.c: Likewise.
31892         * math/e_scalbl.c: Likewise.
31893         * math/k_cosl.c: Likewise.
31894         * math/k_sinl.c: Likewise.
31895         * math/k_tanl.c: Likewise.
31896         * math/s_cacoshf.c: Likewise.
31897         * math/s_catan.c: Likewise.
31898         * math/s_catanf.c: Likewise.
31899         * math/s_catanh.c: Likewise.
31900         * math/s_catanhf.c: Likewise.
31901         * math/s_catanhl.c: Likewise.
31902         * math/s_catanl.c: Likewise.
31903         * math/s_ccosh.c: Likewise.
31904         * math/s_ccoshf.c: Likewise.
31905         * math/s_ccoshl.c: Likewise.
31906         * math/s_cexp.c: Likewise.
31907         * math/s_cexpf.c: Likewise.
31908         * math/s_cexpl.c: Likewise.
31909         * math/s_clog.c: Likewise.
31910         * math/s_clog10.c: Likewise.
31911         * math/s_clog10f.c: Likewise.
31912         * math/s_clog10l.c: Likewise.
31913         * math/s_clogf.c: Likewise.
31914         * math/s_clogl.c: Likewise.
31915         * math/s_csin.c: Likewise.
31916         * math/s_csinf.c: Likewise.
31917         * math/s_csinh.c: Likewise.
31918         * math/s_csinhf.c: Likewise.
31919         * math/s_csinhl.c: Likewise.
31920         * math/s_csinl.c: Likewise.
31921         * math/s_csqrt.c: Likewise.
31922         * math/s_csqrtf.c: Likewise.
31923         * math/s_csqrtl.c: Likewise.
31924         * math/s_ctan.c: Likewise.
31925         * math/s_ctanf.c: Likewise.
31926         * math/s_ctanh.c: Likewise.
31927         * math/s_ctanhf.c: Likewise.
31928         * math/s_ctanhl.c: Likewise.
31929         * math/s_ctanl.c: Likewise.
31930         * math/s_ldexp.c: Likewise.
31931         * math/s_ldexpf.c: Likewise.
31932         * math/s_ldexpl.c: Likewise.
31933         * math/s_significand.c: Likewise.
31934         * math/s_significandf.c: Likewise.
31935         * math/s_significandl.c: Likewise.
31936         * math/w_acos.c: Likewise.
31937         * math/w_acosf.c: Likewise.
31938         * math/w_acosh.c: Likewise.
31939         * math/w_acoshf.c: Likewise.
31940         * math/w_acoshl.c: Likewise.
31941         * math/w_acosl.c: Likewise.
31942         * math/w_asin.c: Likewise.
31943         * math/w_asinf.c: Likewise.
31944         * math/w_asinl.c: Likewise.
31945         * math/w_atan2.c: Likewise.
31946         * math/w_atan2f.c: Likewise.
31947         * math/w_atan2l.c: Likewise.
31948         * math/w_atanh.c: Likewise.
31949         * math/w_atanhf.c: Likewise.
31950         * math/w_atanhl.c: Likewise.
31951         * math/w_cosh.c: Likewise.
31952         * math/w_coshf.c: Likewise.
31953         * math/w_coshl.c: Likewise.
31954         * math/w_dremf.c: Likewise.
31955         * math/w_exp10.c: Likewise.
31956         * math/w_exp10f.c: Likewise.
31957         * math/w_exp10l.c: Likewise.
31958         * math/w_exp2.c: Likewise.
31959         * math/w_exp2f.c: Likewise.
31960         * math/w_fmod.c: Likewise.
31961         * math/w_fmodf.c: Likewise.
31962         * math/w_fmodl.c: Likewise.
31963         * math/w_hypot.c: Likewise.
31964         * math/w_hypotf.c: Likewise.
31965         * math/w_hypotl.c: Likewise.
31966         * math/w_j0.c: Likewise.
31967         * math/w_j0f.c: Likewise.
31968         * math/w_j0l.c: Likewise.
31969         * math/w_j1.c: Likewise.
31970         * math/w_j1f.c: Likewise.
31971         * math/w_j1l.c: Likewise.
31972         * math/w_jn.c: Likewise.
31973         * math/w_jnf.c: Likewise.
31974         * math/w_jnl.c: Likewise.
31975         * math/w_lgamma.c: Likewise.
31976         * math/w_lgamma_r.c: Likewise.
31977         * math/w_lgammaf.c: Likewise.
31978         * math/w_lgammaf_r.c: Likewise.
31979         * math/w_lgammal.c: Likewise.
31980         * math/w_lgammal_r.c: Likewise.
31981         * math/w_log.c: Likewise.
31982         * math/w_log10.c: Likewise.
31983         * math/w_log10f.c: Likewise.
31984         * math/w_log10l.c: Likewise.
31985         * math/w_log2.c: Likewise.
31986         * math/w_log2f.c: Likewise.
31987         * math/w_log2l.c: Likewise.
31988         * math/w_logf.c: Likewise.
31989         * math/w_logl.c: Likewise.
31990         * math/w_pow.c: Likewise.
31991         * math/w_powf.c: Likewise.
31992         * math/w_powl.c: Likewise.
31993         * math/w_remainder.c: Likewise.
31994         * math/w_remainderf.c: Likewise.
31995         * math/w_remainderl.c: Likewise.
31996         * math/w_scalb.c: Likewise.
31997         * math/w_scalbf.c: Likewise.
31998         * math/w_scalbl.c: Likewise.
31999         * math/w_sinh.c: Likewise.
32000         * math/w_sinhf.c: Likewise.
32001         * math/w_sinhl.c: Likewise.
32002         * math/w_sqrt.c: Likewise.
32003         * math/w_sqrtf.c: Likewise.
32004         * math/w_sqrtl.c: Likewise.
32005         * math/w_tgamma.c: Likewise.
32006         * math/w_tgammaf.c: Likewise.
32007         * math/w_tgammal.c: Likewise.
32008
32009         * po/ja.po: Update from translation team.
32010
32011 2011-09-29  Andreas Jaeger  <aj@suse.de>
32012
32013         [BZ #13179]
32014         * sunrpc/netname.c (netname2host): Fix logic.
32015
32016         [BZ #6779]
32017         [BZ #6783]
32018         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
32019         correctly.
32020         * math/w_remainder.c (__remainder): Likewise.
32021         * math/w_remainderf.c (__remainderf): Likewise.
32022         * math/libm-test.inc (remainder_test): Add test cases.
32023
32024 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32025
32026         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
32027         sdiv_qrnnd.
32028
32029 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32030
32031         * string/test-memcmp.c: Avoid unncessary #defines.
32032         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32033
32034 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32035
32036         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
32037         Use new sse2 version for core i3 - i7 as it's faster
32038         than sse42 version.
32039         (bit_Prefer_PMINUB_for_stringop): New.
32040         * sysdeps/x86_64/rawmemchr.S: Update.
32041         Replace with faster SSE2 version.
32042         * sysdeps/x86_64/memrchr.S: New file.
32043         * sysdeps/x86_64/memchr.S: Update.
32044         Replace with faster SSE2 version.
32045
32046 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
32047
32048         * elf/dl-load.c (lose): Add cast to avoid warning.
32049
32050 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32051
32052         * po/ca.po: Update from translation team.
32053
32054         * inet/getnetgrent_r.c: Hook up nscd.
32055         * nscd/Makefile (routines): Add nscd_netgroup.
32056         (nscd-modules): Add netgroupcache.
32057         (CFLAGS-netgroupcache.c): Define.
32058         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
32059         (cache_search): Add const to second parameter.
32060         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
32061         INNETGR.
32062         (dbs): Add netgrdb entry.
32063         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
32064         (verify_persistent_db): Handle netgrdb.
32065         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
32066         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
32067         GETFDNETGR.
32068         (netgroup_response_header): Define.
32069         (innetgroup_response_header): Define.
32070         (datahead): Add netgroup_response_header and innetgroup_response_header
32071         elements.
32072         * nscd/nscd.conf: Add entries for netgroup cache.
32073         * nscd/nscd.h (dbtype): Add netgrdb.
32074         (_PATH_NSCD_NETGROUP_DB): Define.
32075         (netgroup_iov_disabled): Declare.
32076         (xmalloc, xcalloc, xrealloc): Move declarations here.
32077         (cache_search): Adjust prototype.
32078         Add netgroup-related prototypes.
32079         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
32080         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
32081         (__nscd_innetgr): Declare.
32082         * nscd/selinux.c (perms): Use access_vector_t as element type and
32083         add netgroup-related initializers.
32084         * nscd/netgroupcache.c: New file.
32085         * nscd/nscd_netgroup.c: New file.
32086         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
32087         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
32088         For four parameters use innetgr.
32089         * nss/nss_files/files-init.c: Add definition and callback for netgr.
32090         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
32091         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
32092         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
32093
32094         * nscd/connections.c (register_traced_file): Don't register file
32095         for disabled databases.
32096
32097 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
32098
32099         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
32100
32101         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
32102         from tree and freeing node.
32103
32104 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
32105
32106         * nss/nsswitch.c (__nss_database_lookup): Handle
32107         nss_parse_service_list out of memory case.
32108
32109 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
32110
32111         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
32112         out of memory case.
32113
32114 2011-10-04  Andreas Schwab  <schwab@redhat.com>
32115
32116         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
32117         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
32118         pass it down.
32119         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
32120         elf_machine_rela, elf_machine_lazy_rel.
32121         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
32122         (ELF_DYNAMIC_DO_REL): Likewise.
32123         (ELF_DYNAMIC_DO_RELA): Likewise.
32124         (ELF_DYNAMIC_RELOCATE): Likewise.
32125         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
32126         to ELF_DYNAMIC_DO_REL.
32127         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
32128         (dl_main): In trace mode always set __RTLD_NOIFUNC.
32129         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
32130         elf_machine_rela.
32131         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
32132         skip_ifunc, don't call ifunc function if non-zero.
32133         (elf_machine_rela): Likewise.
32134         (elf_machine_lazy_rel): Likewise.
32135         (elf_machine_lazy_rela): Likewise.
32136         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
32137         (elf_machine_lazy_rel): Likewise.
32138         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
32139         Likewise.
32140         (elf_machine_lazy_rel): Likewise.
32141         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
32142         Likewise.
32143         (elf_machine_lazy_rel): Likewise.
32144         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
32145         (elf_machine_lazy_rel): Likewise.
32146         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
32147         (elf_machine_lazy_rel): Likewise.
32148         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
32149         (elf_machine_lazy_rel): Likewise.
32150         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
32151         (elf_machine_lazy_rel): Likewise.
32152         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
32153         (elf_machine_lazy_rel): Likewise.
32154         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
32155         (elf_machine_lazy_rel): Likewise.
32156
32157 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
32158
32159         * nss/nss_files/files-init.c (_nss_files_init): Use static
32160         initialization for all the *_traced_file variables.
32161
32162 2011-09-28  Andreas Schwab  <schwab@redhat.com>
32163
32164         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32165
32166 2011-09-27  Roland McGrath  <roland@hack.frob.com>
32167
32168         [BZ #13226]
32169         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
32170
32171 2011-09-27  Andreas Schwab  <schwab@redhat.com>
32172
32173         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32174         Reread the line before reparsing it.
32175
32176 2011-09-26  Andreas Schwab  <schwab@redhat.com>
32177
32178         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
32179
32180 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
32181             Maxim Kuvyrkov  <maxim@codesourcery.com>
32182             Joseph Myers  <joseph@codesourcery.com>
32183
32184         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
32185         if needed for __stack_chk_guard.
32186
32187 2011-09-19  Roland McGrath  <roland@hack.frob.com>
32188
32189         * sysdeps/posix/spawni.c (script_execute): Always define it.
32190         It will be optimized away if unused.
32191         (maybe_script_execute): New function.
32192         (__spawni): Call it.
32193
32194         * Makerules: Don't include tls.make.
32195         (config-tls): Always set to thread.
32196         * tls.make.c: File removed.
32197
32198 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
32199
32200         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
32201         * config.make.in (CPPFLAGS-config): New substituted variable.
32202
32203 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
32204
32205         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
32206
32207         [BZ #13192]
32208         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
32209         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
32210
32211 2011-09-15  Roland McGrath  <roland@hack.frob.com>
32212
32213         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
32214         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
32215         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
32216         (CALL_FAIL): Likewise.
32217         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
32218         (CALL_FAIL): Macro removed.
32219         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
32220
32221 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
32222
32223         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
32224         for __FINITE_MATH_ONLY__ == 1.
32225
32226 2011-09-15  Andreas Schwab  <schwab@redhat.com>
32227
32228         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
32229         __ieee754_sqrt instead of sqrt.
32230         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
32231         __ieee754_sqrtf instead of sqrtf.
32232         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
32233         __floorf instead of floorf.
32234         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
32235         __floorf, __truncf instead of floorf, truncf.
32236
32237 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
32238
32239         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
32240
32241         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
32242         __extern_always_inline.
32243         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
32244         32-bit.
32245
32246 2011-09-14  Andreas Schwab  <schwab@redhat.com>
32247
32248         * elf/rtld.c (dl_main): Also relocate in dependency order when
32249         doing symbol dependency testing.
32250
32251 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
32252
32253         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
32254         Always define `refsym'.
32255
32256 2011-09-13  Andreas Schwab  <schwab@redhat.com>
32257
32258         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
32259         (__FD_ELT): Renamed from __FDELT.
32260         * misc/bits/select2.h (__FD_ELT): Likewise.
32261         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
32262         __FD_MASK instead of __FDELT, __FDMASK.
32263         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
32264         Likewise.
32265         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
32266         Likewise.
32267
32268         * elf/Makefile (gen-ldd): Fix pattern.
32269
32270         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
32271         (init_tls): Likewise.
32272
32273 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
32274
32275         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
32276
32277 2011-09-12  Andreas Schwab  <schwab@redhat.com>
32278
32279         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
32280         `struct cmsghdr *' instead of `void *'.
32281         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
32282         Likewise.
32283
32284 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
32285
32286         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
32287         if non-absolute.
32288         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
32289         ldd_rewrite_script.
32290
32291 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
32292
32293         * configure.in: Remove --with-tls option.
32294         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
32295         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
32296         out in case it is missing.
32297         * sysdeps/ia64/elf/configure.in: Likewise.
32298         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
32299         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
32300         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
32301         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
32302         * sysdeps/sh/elf/configure.in: Likewise.
32303         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
32304         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
32305         * sysdeps/x86_64/elf/configure.in: Likewise.
32306         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
32307         * sysdeps/mach/hurd/tls.h: Likewise.
32308
32309         [BZ #13067]
32310         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
32311
32312         [BZ #13090]
32313         * configure.in: Fix use of AC_INIT.
32314
32315         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
32316
32317 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
32318
32319         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
32320         __set_errno.
32321         * malloc/hooks.c: Likewise.
32322
32323         [BZ #11929]
32324         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
32325         variables statically.
32326         (narenas): Initialize.
32327         (list_lock): Initialize.
32328         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
32329         initializtion of main_arena and list_lock.  Small cleanups.
32330         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
32331         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
32332         Add initializers to main_arena and mp_.
32333         (malloc_state): Remove pagesize member.  Change all users to use
32334         GLRO(dl_pagesize).
32335
32336         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
32337         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
32338         is always initialized.
32339
32340         * malloc/malloc.c: Removed unused configurations and dead code.
32341         * malloc/arena.c: Likewise.
32342         * malloc/hooks.c: Likewise.
32343         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
32344
32345         * include/tls.h: Removed.  USE___THREAD must always be defined.
32346         * bits/libc-tsd.h: Don't handle !USE___THREAD.
32347         * elf/dl-libc.c: Likewise.
32348         * elf/dl-tsd.c: Likewise.
32349         * include/errno.h: Likewise.
32350         * include/netdb.h: Likewise.
32351         * include/resolv.h: Likewise.
32352         * inet/herrno-loc.c: Likewise.
32353         * inet/herrno.c: Likewise.
32354         * malloc/arena.c: Likewise.
32355         * malloc/hooks.c: Likewise.
32356         * malloc/malloc.c: Likewise.
32357         * resolv/res-state.c: Likewise.
32358         * resolv/res_libc.c: Likewise.
32359         * sysdeps/i386/dl-machine.h: Likewise.
32360         * sysdeps/ia64/dl-machine.h: Likewise.
32361         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
32362         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
32363         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
32364         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
32365         * sysdeps/sh/dl-machine.h: Likewise.
32366         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
32367         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
32368         * sysdeps/unix/i386/sysdep.S: Likewise.
32369         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
32370         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
32371         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
32372         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
32373         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
32374         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
32375         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
32376         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
32377         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
32378         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
32379         * sysdeps/unix/x86_64/sysdep.S: Likewise.
32380         * sysdeps/x86_64/dl-machine.h: Likewise.
32381         * tls.make.c: Likewise.
32382
32383         * configure.in: Remove --with-__thread option.  Make tests for
32384         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
32385         tls_model attribute fail if no support is available.  Remove
32386         USE_IN_LIBIO.
32387         * Makeconfig: Adjust for dropped configure option.  All features are
32388         now mandatory.
32389         * Makerules: Likewise.
32390         * Versions.def: Likewise.
32391         * argp/argp-fmtstream.c: Likewise.
32392         * argp/argp-fmtstream.h: Likewise.
32393         * argp/argp-help.c: Likewise.
32394         * assert/assert.c: Likewise.
32395         * config.h.in: Likewise.
32396         * config.make.in: Likewise.
32397         * configure: Likewise.
32398         * configure.in: Likewise.
32399         * csu/Versions: Likewise.
32400         * csu/init.c: Likewise.
32401         * elf/tst-audit2.c: Likewise.
32402         * elf/tst-tls10.c: Likewise.
32403         * elf/tst-tls10.h: Likewise.
32404         * elf/tst-tls11.c: Likewise.
32405         * elf/tst-tls12.c: Likewise.
32406         * elf/tst-tls14.c: Likewise.
32407         * elf/tst-tlsmod11.c: Likewise.
32408         * elf/tst-tlsmod12.c: Likewise.
32409         * elf/tst-tlsmod13.c: Likewise.
32410         * elf/tst-tlsmod13a.c: Likewise.
32411         * elf/tst-tlsmod14a.c: Likewise.
32412         * elf/tst-tlsmod15b.c: Likewise.
32413         * elf/tst-tlsmod16a.c: Likewise.
32414         * elf/tst-tlsmod16b.c: Likewise.
32415         * elf/tst-tlsmod7.c: Likewise.
32416         * elf/tst-tlsmod8.c: Likewise.
32417         * elf/tst-tlsmod9.c: Likewise.
32418         * gmon/gmon.c: Likewise.
32419         * grp/fgetgrent_r.c: Likewise.
32420         * grp/putgrent.c: Likewise.
32421         * hurd/fopenport.c: Likewise.
32422         * include/libc-symbols.h: Likewise.
32423         * include/tls.h: Likewise.
32424         * intl/gettextP.h: Likewise.
32425         * intl/loadinfo.h: Likewise.
32426         * locale/global-locale.c: Likewise.
32427         * locale/localeinfo.h: Likewise.
32428         * mach/devstream.c: Likewise.
32429         * malloc/arena.c: Likewise.
32430         * malloc/set-freeres.c: Likewise.
32431         * misc/err.c: Likewise.
32432         * misc/getttyent.c: Likewise.
32433         * misc/mntent_r.c: Likewise.
32434         * posix/getopt.c: Likewise.
32435         * posix/wordexp.c: Likewise.
32436         * pwd/fgetpwent_r.c: Likewise.
32437         * resolv/Versions: Likewise.
32438         * resolv/res_hconf.c: Likewise.
32439         * shadow/fgetspent_r.c: Likewise.
32440         * shadow/putspent.c: Likewise.
32441         * stdio-common/printf_fphex.c: Likewise.
32442         * stdio-common/tmpfile.c: Likewise.
32443         * stdlib/abort.c: Likewise.
32444         * stdlib/fmtmsg.c: Likewise.
32445         * sunrpc/auth_unix.c: Likewise.
32446         * sunrpc/clnt_perr.c: Likewise.
32447         * sunrpc/clnt_tcp.c: Likewise.
32448         * sunrpc/clnt_udp.c: Likewise.
32449         * sunrpc/clnt_unix.c: Likewise.
32450         * sunrpc/openchild.c: Likewise.
32451         * sunrpc/svc_simple.c: Likewise.
32452         * sunrpc/svc_tcp.c: Likewise.
32453         * sunrpc/svc_udp.c: Likewise.
32454         * sunrpc/svc_unix.c: Likewise.
32455         * sunrpc/xdr.c: Likewise.
32456         * sunrpc/xdr_array.c: Likewise.
32457         * sunrpc/xdr_rec.c: Likewise.
32458         * sunrpc/xdr_ref.c: Likewise.
32459         * sunrpc/xdr_stdio.c: Likewise.
32460
32461 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
32462
32463         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32464
32465 2011-07-03  Andreas Jaeger  <aj@suse.de>
32466
32467         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
32468         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
32469         regenerate with gen-libm-tests.pl.
32470
32471 2010-05-12  Petr Baudis  <pasky@suse.cz>
32472
32473         [BZ #11589]
32474         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
32475         around j0() zero points by switching to j1().
32476         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
32477         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
32478         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
32479         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
32480
32481 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
32482
32483         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
32484         instead of 0.
32485         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
32486         instead of 0.
32487         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
32488         Patch in part by Pavel Roskin <proski@gnu.org>.
32489
32490         [BZ #13138]
32491         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
32492         realloc.
32493         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
32494         Free memory block if necessary.
32495
32496         [BZ #12847]
32497         * libio/genops.c (INTDEF): For string streams the _lock pointer can
32498         be NULL.  Don't lock in this case.
32499
32500 2011-09-09  Roland McGrath  <roland@hack.frob.com>
32501
32502         * elf/elf.h (ELFOSABI_GNU): New macro.
32503         (ELFOSABI_LINUX): Define to that.
32504
32505 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
32506
32507         * string/strncat.c (strncat): Undef the symbol in case it has been
32508         defined in bits/string.h.
32509
32510 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
32511
32512         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
32513
32514         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
32515         link map.
32516
32517 2011-08-17  Andreas Jaeger  <aj@suse.de>
32518
32519         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
32520
32521 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
32522             Ian Lance Taylor  <iant@google.com>
32523
32524         * math/libm-test.inc (lround_test): New testcase.
32525         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
32526
32527 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
32528
32529         * Makefile: Remove support for automatic cvs check-ins.
32530         * Makerules: Likewise.
32531         * config.make.in: Likewise.
32532         * configure.in: Likewise.
32533         * intl/Makefile: Likewise.
32534         * locale/Makefile: Likewise.
32535         * po/Makefile: Likewise.
32536         * posix/Makefile: Likewise.
32537         * sysdeps/gnu/Makefile: Likewise.
32538         * sysdeps/mach/hurd/Makefile: Likewise.
32539         * sysdeps/sparc/sparc32/Makefile: Likewise.
32540
32541         [BZ #13118]
32542         * posix/Makefile (bug-regex32-ENV): Define.
32543         Patch by John Stanley <jpsinthemix@verizon.net>.
32544
32545         * misc/Makefile (headers): Add bits/select2.h.
32546         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
32547         * misc/bits/select2.h: New file.
32548         * include/bits/select2.h: New file.
32549         * debug/Makefile (routines): Add fdelt_chk.
32550         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
32551         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
32552         FD_ISSET.
32553         * debug/fdelt_chk.c: New file.
32554
32555         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
32556         * wcsmbs/test-wmemcmp.c: Likewise.
32557         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
32558         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
32559
32560 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32561
32562         * string/Makefile (strop-tests): Add memcmp.
32563         * string/test-wmemcmp.c: New file.
32564         * string/test-memcmp.c: Add wmemcmp support.
32565
32566 2011-09-08  Roland McGrath  <roland@hack.frob.com>
32567
32568         [BZ #13153]
32569         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
32570         2011-07-19 change.
32571
32572         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
32573         garbage value in a __mach_port_mod_refs call in the cases of the
32574         task-self and thread-self ports.
32575
32576 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32577
32578         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
32579
32580 2011-09-08  Andreas Schwab  <schwab@redhat.com>
32581
32582         * elf/dl-load.c (lose): Check for non-null L.
32583
32584 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
32585
32586         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
32587
32588         * elf/dl-libc.c (dlerror_run): Pass back error code from
32589         dl_catch_error.
32590
32591         [BZ #13123]
32592         * elf/dl-load.c (lose): Free l_origin if it is valid.
32593
32594         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
32595         names.
32596         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
32597         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
32598         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
32599         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
32600         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
32601         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
32602
32603 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32604
32605         * sysdeps/powerpc/fpu/e_hypot.c: New file.
32606         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
32607         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
32608         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
32609         * sysdeps/powerpc/fpu/k_cosf.c: New file.
32610         * sysdeps/powerpc/fpu/k_sinf.c: New file.
32611         * sysdeps/powerpc/fpu/s_cosf.c: New file.
32612         * sysdeps/powerpc/fpu/s_sinf.c: New file.
32613         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
32614         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
32615
32616 2011-08-15  Alan Modra  <amodra@gmail.com>
32617
32618         [BZ #13092]
32619         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
32620         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
32621         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
32622         ppc_mcount to static-only-routines.
32623         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
32624         __mcount_internal.
32625         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
32626         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
32627
32628 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
32629
32630         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
32631         for finite and infinity parameters.
32632
32633 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
32634
32635         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
32636         and add nop instructions for throughput optimization.
32637         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32638
32639 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
32640
32641         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
32642         aligned copy for power7 with vector-scalar instructions.
32643         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
32644
32645 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
32646
32647         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
32648         AVX check.
32649
32650 2011-09-07  Andreas Schwab  <schwab@redhat.com>
32651
32652         [BZ #13144]
32653         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
32654         last change.
32655
32656 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
32657
32658         * sysdeps/unix/sysv/linux/x86_64/init-first.c
32659         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
32660         syscall wrapper around clock_gettime in __vdso_clock_gettime.
32661         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
32662         clock_gettime.
32663
32664 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
32665
32666         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
32667         Forgot to demangle the pointer.
32668
32669         * sysdeps/i386/sysdep.h: Define atom_text_section.
32670         * sysdeps/x86_64/sysdep.h: Likewise.
32671         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
32672         section with atom_text_section.
32673         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
32674         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
32675         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
32676         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
32677         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
32678
32679         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
32680         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
32681         already be defined.  Change to take two parameters and don't assign
32682         result to variable.  Adjust all users.
32683         Define INTERNAL_GETTIME if not already defined.
32684         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
32685         call.
32686         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
32687         HAVE_CLOCK_GETTIME_VSYSCALL.
32688         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
32689
32690         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
32691         gettimeofday vsyscall, just use time.
32692
32693 2011-09-06  Andreas Schwab  <schwab@redhat.com>
32694
32695         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
32696         <errno.h>.
32697
32698 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
32699
32700         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
32701         syscall on x86-64.
32702         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
32703         syscall.
32704         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
32705         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
32706         syscall if possible.
32707
32708 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
32709
32710         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
32711         e_ident.  Don't pass to find_mapsXX.
32712         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
32713
32714 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
32715
32716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32717         strchr-sse2-no-bsf strrchr-sse2-no-bsf
32718         * sysdeps/x86_64/multiarch/strchr.S: Update.
32719         Check bit_slow_BSF bit.
32720         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
32721         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
32722         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
32723
32724 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
32725
32726         [BZ #13134]
32727         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
32728         before glibc 2.15.
32729         (tryshell): Define.
32730         (__spawni): Change last parameter to be flag.  Test
32731         SPAWN_XFLAGS_USE_PATH flag to use path or not.
32732         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
32733         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
32734         * posix/spawni.c: Likewise.
32735         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
32736         * posix/spawnp.c: Likewise.  Change normal version to use
32737         SPAWN_XFLAGS_USE_PATH.
32738         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
32739         SPAWN_XFLAGS_TRY_SHELL.
32740
32741         [BZ #13150]
32742         * posix/glob.h: Remove gcc 1.x support.
32743
32744         [BZ #13068]
32745         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
32746
32747 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
32748
32749         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32750         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
32751         strrchr-sse2-bsf
32752         * sysdeps/i386/i686/multiarch/strchr.S: New file.
32753         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
32754         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
32755         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
32756         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
32757         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
32758
32759 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32760
32761         * sysdeps/x86_64/wcscmp.S: New file.
32762
32763         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
32764         wcscmp-c wcscmp-sse2
32765         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
32766         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
32767         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
32768         * wcsmbs/wcscmp.c: Allow renaming.
32769
32770 2011-09-05  David S. Miller  <davem@davemloft.net>
32771
32772         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
32773         stack slot, rather than the struct return pointer slot.
32774         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
32775         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
32776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
32777         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
32778
32779 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
32780
32781         * po/ja.po: Update from translation team.
32782
32783         [BZ #13144]
32784         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
32785         kernel in 64-bit binaries.
32786
32787 2011-09-01  David S. Miller  <davem@davemloft.net>
32788
32789         * elf/elf.h (HWCAP_SPARC_*): Move to..
32790         * sysdeps/sparc/sysdep.h: this new file and add new values.
32791         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
32792         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
32793         _DL_HWCAP_COUNT to 24.
32794         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
32795         entries.
32796         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
32797         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
32798         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
32799         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
32800         instead of magic constants.
32801         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
32802
32803 2011-08-31  David S. Miller  <davem@davemloft.net>
32804
32805         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
32806         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
32807         Reimplement to do errno handling inline.
32808         (SYSCALL_ERROR_HANDLER): New macro.
32809         (__SYSCALL_STRING): Do not do errno handling in asm.
32810         (__CLONE_SYSCALL_STRING): Delete.
32811         (__INTERNAL_SYSCALL_STRING): Delete.
32812         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
32813         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
32814         (PSEUDO): Reimplement to do errno handling inline.
32815         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
32816         (SYSCALL_ERROR_HANDLER): New macro.
32817         (__SYSCALL_STRING): Do not do errno handling in asm.
32818         (__CLONE_SYSCALL_STRING): Delete.
32819         (__INTERNAL_SYSCALL_STRING): Delete.
32820         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
32821         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
32822         i386.
32823         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
32824         (inline_syscall*): Add 'err' argument.
32825         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
32826         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
32827         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
32828         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
32829
32830         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
32831         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
32832
32833 2011-08-30  Andreas Schwab  <schwab@redhat.com>
32834
32835         * elf/rtld.c (dl_main): Relocate objects in dependency order.
32836
32837 2011-08-29  Jiri Olsa <jolsa@redhat.com>
32838
32839         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
32840         directive.
32841
32842 2011-08-24  David S. Miller  <davem@davemloft.net>
32843
32844         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
32845
32846 2011-08-24  Andreas Schwab  <schwab@redhat.com>
32847
32848         * elf/Makefile: Add rules to build and run unload8 test.
32849         * elf/unload8.c: New file.
32850         * elf/unload8mod1.c: New file.
32851         * elf/unload8mod1x.c: New file.
32852         * elf/unload8mod2.c: New file.
32853         * elf/unload8mod3.c: New file.
32854
32855         * elf/dl-close.c (_dl_close_worker): Reset private search list if
32856         it wasn't used.
32857
32858 2011-08-23  David S. Miller  <davem@davemloft.net>
32859
32860         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
32861         subtract stack bias.
32862         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
32863         %sp not %fp in calculations.
32864         (_JMPBUF_UNWINDS_ADJ): Likewise.
32865
32866         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
32867         (aio_suspend): Call it to force an exception region around the
32868         AIO_MISC_WAIT() invocation.
32869
32870 2011-08-23  Andreas Schwab  <schwab@redhat.com>
32871
32872         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
32873         backslash.
32874
32875 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
32876
32877         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
32878         protection macro.
32879         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
32880         and <dl-machine.h>.
32881         (Elf64_FuncDesc): Remove.
32882
32883 2011-08-22  David S. Miller  <davem@davemloft.net>
32884
32885         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
32886         sigaltstack check, add missing cfi directives.
32887         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
32888         missing cfi directives, and sigaltstack handling.
32889
32890 2011-08-16  Andreas Schwab  <schwab@redhat.com>
32891
32892         [BZ #11724]
32893         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
32894         object is seen twice.
32895         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32896
32897         * elf/Makefile (distribute): Add tst-initorder2.c.
32898         (tests): Add tst-initorder2.
32899         (modules-names): Add tst-initorder2a tst-initorder2b
32900         tst-initorder2c tst-initorder2d.  Add rules to build them.
32901         ($(objpfx)tst-initorder2.out): New rule.
32902         * elf/tst-initorder2.c: New file.
32903         * elf/tst-initorder2.exp: New file.
32904
32905 2011-08-22  Andreas Schwab  <schwab@redhat.com>
32906
32907         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
32908
32909         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
32910         dependencies back to end of function.
32911
32912         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
32913         $(elfobjdir)/ld.so.
32914
32915 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
32916
32917         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
32918         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
32919         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
32920         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
32921         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
32922         of __vdso_gettimeofday.
32923         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
32924         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
32925         attribute_hidden.
32926         (_libc_vdso_platform_setup): Remove initialization of
32927         __vdso_gettimeofday and __vdso_time.
32928
32929 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
32930
32931         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
32932         and fgetc_unlocked.
32933         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
32934         getc_unlocked.
32935
32936         * elf/dl-open.c (add_to_global): Report additions to the global scope
32937         for LD_DEBUG=scopes.
32938         (dl_open_worker): Also print scope of newly loaded dependencies.
32939         (_dl_show_scope): Indicate if there is no scope.
32940
32941         [BZ #13114]
32942         * stdio-common/Makefile (tests): Add bug24.
32943         * stdio-common/bug24.c: New file.
32944
32945 2011-08-19  Andreas Jaeger  <aj@suse.de>
32946
32947         [BZ #13114]
32948         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
32949         non-existant file when using close-on-exec mode.
32950
32951 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
32952
32953         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
32954         the very first instruction.
32955
32956         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
32957         the CFI state in the end.
32958         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
32959         inclusion of dl-trampoline.h.
32960         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
32961
32962 2011-08-19  Andreas Schwab  <schwab@redhat.com>
32963
32964         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
32965         expectations for long double.
32966
32967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
32968         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
32969
32970 2011-08-14  David S. Miller  <davem@davemloft.net>
32971
32972         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
32973         artificual limit depends upon the system page size.
32974
32975 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
32976
32977         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
32978         * resolv/Makefile: Define CFLAGS-libresolv.
32979
32980 2011-08-17  Andreas Schwab  <schwab@redhat.com>
32981
32982         * nss/makedb.c (compute_tables): Make variables used in nested
32983         function static.
32984
32985 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
32986
32987         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
32988         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
32989         if buffer was too small.
32990
32991         * elf/pldd.c (main): Attach to all threads in the process.
32992         Rewrite /proc handling to use *at functions.
32993
32994 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
32995
32996         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
32997         specifies first scope to show.
32998         (dl_open_worker): Update callers.  Move printing scope of new
32999         object to before the relocation.
33000         * elf/rtld.c (dl_main): Update _dl_show_scope call.
33001         * sysdeps/generic/ldsodefs.h: Update declaration.
33002
33003         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
33004         string for the scope number.
33005
33006 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
33007
33008         * nscd/servicescache.c (cache_addserv): Make sure written is always
33009         initialized.
33010
33011 2011-08-14  Roland McGrath  <roland@hack.frob.com>
33012
33013         * sysdeps/i386/i486/bits/atomic.h
33014         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
33015         statement expression, so as to suppress "set but not used" warning.
33016         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
33017
33018         * string/strncat.c (STRNCAT): Use prototype definition.
33019
33020         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
33021         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
33022         -Iprograms here.
33023         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
33024         (localedef-modules): Add localedef.
33025         (locale-modules): Add locale.
33026
33027         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
33028         * elf/rtld.c (dl_main): Invert order of assignment in last change,
33029         to avoid a warning.
33030
33031 2011-08-14  David S. Miller  <davem@davemloft.net>
33032
33033         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
33034         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
33035
33036 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
33037
33038         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
33039         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
33040         * elf/rtld.c (dl_main): Set l_name of vDSO.
33041         Call _dl_show_scope when DL_DEBUG_SCOPES.
33042         (process_dl_debug): Recognize scopes flag and also set it for all.
33043         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
33044         Declare _dl_show_scope.
33045
33046         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
33047         (do_dlopen): Pass caller_dlopen to dl_open.
33048         (__libc_dlopen_mode): Initialize caller_dlopen.
33049
33050         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
33051         of libc.  Make tolower call locale-independent.  Optimize a bit by
33052         using isdigit instead of isalnum.
33053         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
33054
33055 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
33056
33057         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
33058         was a dependency or dynamically loaded.
33059
33060 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
33061
33062         * intl/l10nflist.c: Allow architecture-specific pop function.
33063         * sysdeps/x86_64/l10nflist.c: New file.
33064
33065         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
33066         classification.
33067
33068 2011-08-10  Andreas Schwab  <schwab@redhat.com>
33069
33070         * include/dirent.h: Add libc_hidden_proto for scandirat and
33071         scandirat64.  Don't declare __scandirat64.
33072         * dirent/scandirat.c: Add libc_hidden_def.
33073         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
33074         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
33075
33076 2011-08-10  David S. Miller  <davem@davemloft.net>
33077
33078         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
33079         enum.
33080         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33081         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33082         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33083
33084 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
33085
33086         * Versions.def [libc]: Add GLIBC_2.15.
33087         * dirent/Makefile (routines): Add scandirat and scandirat64.
33088         * dirent/Versions [libc]: Export scandirat and scandirat64 for
33089         GLIBC_2.15.
33090         * dirent/dirent.h: Declare scandirat and scandirat64.
33091         * dirent/scandirat.c: New file.
33092         * dirent/scandirat64.c: New file.
33093         * sysdeps/wordsize-64/scandirat.c: New file.
33094         * sysdeps/wordsize-64/scandirat64.c: New file.
33095         * dirent/opendir.c: Define opendirat.
33096         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
33097         using scandirat.
33098         * dirent/scandir64.c: Adjust for scandir.c change.
33099         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
33100         __scandirat64, and __scandir_cancel_handler.
33101         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
33102         additional parameter and use openat instead of open (outside of ld.so).
33103         Add new __opendir as wrapper around __opendirat.
33104         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
33105         here without requiring old scandirat implementation.
33106
33107 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
33108
33109         * dirent/scandir.c (cancel_handler): Renamed to
33110         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
33111         defined.  Adjust users.
33112         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
33113         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
33114
33115 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
33116
33117         * string/test-string.h (IMPL): Use __STRING to expand name and then
33118         stringify it.
33119
33120         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
33121         of cleanups.
33122
33123 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33124
33125         * string/Makefile: Update.
33126         (strop-tests): Append strncat.
33127         * string/test-wcscmp.c: New file.
33128         New comprehensive test for wcscmp.
33129         * string/test-strcmp.c: Update.
33130         (WIDE): New define.
33131
33132 2011-07-22  Andreas Schwab  <schwab@redhat.com>
33133
33134         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
33135         line.
33136
33137 2011-07-26  Andreas Schwab  <schwab@redhat.com>
33138
33139         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33140         encoding to ACE if AI_IDN.
33141
33142 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
33143
33144         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
33145         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
33146
33147 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33148
33149         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
33150         Fix overflow bug in strncat.
33151         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
33152
33153         * string/test-strncat.c: Update.
33154         Add new tests for checking overflow bugs.
33155
33156 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33157
33158         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33159         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
33160         * sysdeps/i386/i686/multiarch/strcat.S: New file.
33161         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
33162         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
33163         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
33164         * sysdeps/i386/i686/multiarch/strncat.S: New file.
33165         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
33166         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
33167
33168         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
33169         (USE_AS_STRCAT): Define.
33170         Add strcat and strncat support.
33171         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
33172
33173 2011-07-25  Andreas Schwab  <schwab@redhat.com>
33174
33175         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
33176         __n bigger than INT_MAX+1.
33177         (__strncmp_g): Likewise.
33178
33179 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
33180
33181         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
33182         * libio/stido.h: Likewise.
33183
33184         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
33185         (AF_NFC): Define.
33186         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
33187         (AF_NFC): Define.
33188
33189         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
33190         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33191         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33192         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33193         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33194
33195         [BZ #13021]
33196         * scripts/test-installation.pl: Don't expect libnss_test1 to be
33197         installed.
33198
33199         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
33200         typo.
33201         (_dl_x86_64_save_sse): Likewise.
33202
33203 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
33204
33205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
33206         OSXSAVE.
33207         (_dl_x86_64_save_sse): Likewise.
33208
33209         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
33210
33211         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
33212
33213 2011-07-21  Andreas Schwab  <schwab@redhat.com>
33214
33215         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
33216         change.
33217         (_dl_x86_64_save_sse): Use correct AVX check.
33218
33219 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33220
33221         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
33222         bug in strncpy/strncat.
33223         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
33224
33225 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
33226
33227         * string/tester.c (test_strcat): Add tests for different alignments
33228         of source and destination.
33229         (test_strncat): Likewise.
33230
33231 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
33232
33233         [BZ #12852]
33234         * posix/glob.c (glob): Check passed in values before using them in
33235         expressions to avoid some overflows.
33236         (glob_in_dir): Likewise.
33237
33238         [BZ #13007]
33239         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
33240         check for AVX enablement so that we don't crash with old kernels and
33241         new hardware.
33242         * elf/tst-audit4.c: Add same checks here.
33243         * elf/tst-audit6.c: Likewise.
33244
33245         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
33246
33247 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
33248
33249         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
33250
33251 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
33252
33253         * po/cs.po: Update from translation team.
33254         * po/bg.po: Likewise.
33255
33256 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
33257
33258         * misc/sys/cdefs.h: Add support for const attribute.
33259         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
33260         to gnu_dev_{major,minor,makedev} functions.
33261
33262 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
33263
33264         * intl/dcigettext.c (get_output_charset): Add missing bracket.
33265
33266 2011-07-20  Andreas Schwab  <schwab@redhat.com>
33267
33268         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
33269         strlen results.
33270
33271 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33272
33273         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
33274         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
33275         register in order to avoid conflicts with the soft frame pointer
33276         being held in r11 when necessary.
33277         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
33278         (INTERNAL_VSYSCALL_NCS): Likewise.
33279
33280 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
33281
33282         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
33283         * elf/dl-fini.c (_dl_fini): Adjust caller.
33284         * elf/dl-close.c (_dl_close_worker): Likewise.
33285         * sysdeps/generic/ldsodefs.h: Adjust declaration.
33286
33287 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
33288
33289         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
33290         "aux_cache->nlibs < 0".
33291
33292         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
33293         in the reload-count case.
33294
33295 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33296
33297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33298         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
33299         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
33300         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
33301         * sysdeps/x86_64/multiarch/strcat.S: New file.
33302         * sysdeps/x86_64/multiarch/strncat.S: New file.
33303         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
33304         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
33305         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
33306         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
33307         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
33308         (USE_AS_STRCAT): Define.
33309         Add strcat and strncat support.
33310         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
33311         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
33312         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
33313         * string/strncat.c: Update.
33314         (USE_AS_STRNCAT): Define.
33315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33316         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
33317         and i7.
33318         * sysdeps/x86_64/multiarch/init-arch.h
33319         (bit_Prefer_PMINUB_for_stringop): New.
33320         (index_Prefer_PMINUB_for_stringop): Likewise.
33321         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
33322         bit_Prefer_PMINUB_for_stringop.
33323
33324 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
33325
33326         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
33327         buffer64.
33328         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
33329         of casting of buffer.
33330         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
33331         buffer32 and buffer64.
33332         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
33333         writes instead of casting of buffer.
33334         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
33335         buffer32.
33336         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
33337         casting of buffer.
33338
33339 2011-07-19  Andreas Schwab  <schwab@redhat.com>
33340
33341         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
33342
33343 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
33344
33345         * nscd/nscd.c (termination_handler): Don't do anything for a database
33346         if it has not yet been initialized.
33347
33348 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
33349
33350         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
33351
33352 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
33353
33354         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
33355
33356 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
33357
33358         * po/nl.po: Update from translation team.
33359         * po/sv.po: Likewise.
33360
33361 2011-07-16  Roland McGrath  <roland@hack.frob.com>
33362
33363         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
33364         now disallowed by GCC.
33365
33366         * configure.in (use-default-link): Default to yes if a test -shared
33367         link meets our qualifications.
33368         * configure: Regenerated.
33369
33370         * config.make.in (output-format): New variable.
33371         * configure.in: Check for ld --print-output-format support.
33372         * configure: Regenerated.
33373         * Makerules ($(common-objpfx)format.lds)
33374         [$(output-format) != unknown]: Just use $(output-format),
33375         instead of the linker-script munging.
33376
33377 2011-07-14  Roland McGrath  <roland@hack.frob.com>
33378
33379         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
33380         of $(common-objpfx)shlib.lds.
33381         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
33382
33383         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
33384         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
33385
33386         * configure.in (-z relro check): Adjust test code to add a large
33387         writable data section after it.
33388         * configure: Regenerated.
33389
33390 2011-07-11  Roland McGrath  <roland@hack.frob.com>
33391
33392         * configure.in (-z relro check): Fix test code to make the variable
33393         truly const.
33394         * configure: Regenerated.
33395
33396 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
33397
33398         * nscd/nscd.h (struct traced_file): Define.
33399         (struct database_dyn): Remove inotify_descr, reset_res, and filename
33400         elements.  Add traced_files.
33401         (inotify_fd): Declare.
33402         (register_traced_file): Declare.
33403         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
33404         (inotify_fd): Export.
33405         (resolv_conf_descr): Remove.
33406         (nscd_init): Move inotify descriptor creation to main.
33407         Don't register files for notification here.
33408         (register_traced_file): New function.
33409         (invalidate_cache): Don't use reset_res to determine whether to call
33410         res_init, go through the list of registered files.
33411         (main_loop_poll): The inotify descriptors are now stored in the
33412         structures for the traced files.
33413         (main_loop_epoll): Likewise
33414         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
33415         to __nss_disable_nscd.
33416         * nscd/cache.c (prune_cache): There is no single inotify descriptor
33417         for a database anymore.  Check the records for all the registered
33418         files instead.
33419         * nss/Makefile (libnss_files-routines): Add files-init.
33420         (libnss_db-routines): Add db-init.
33421         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
33422         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
33423         * nss/nss_db/db-init.c: New file.
33424         * nss/nss_files/files-init.c: New file.
33425         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
33426         __nss_lookup_function.
33427         (__nss_lookup_function): Call nss_load_library.
33428         (nss_load_all_libraries): New function.
33429         (__nss_disable_nscd): Take parameter with callback function for files
33430         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
33431         used for the cached services.
33432         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
33433         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
33434         options for features to all the files in nscd.
33435
33436         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
33437
33438 2011-07-10  Roland McGrath  <roland@hack.frob.com>
33439
33440         * csu/elf-init.c (__libc_csu_init): Comment typo.
33441
33442 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
33443
33444         * po/pl.po: Update from translation team.
33445         * po/ja.po: Likewise.
33446         * po/ru.po: Likewise.
33447         * po/ko.po: Likewise.
33448         * po/fr.po: Likewise.
33449
33450 2011-07-09  Roland McGrath  <roland@hack.frob.com>
33451
33452         * configure.in (.ctors/.dtors header and trailer check):
33453         Use an empirical test on a built program.
33454         * configure: Regenerated.
33455
33456         * configure.in (-z relro check): Use an empirical test on a built DSO.
33457         Detect, but do not require, on ia64.
33458         * configure: Regenerated.
33459
33460         * configure.in (READELF): Find it with AC_CHECK_TOOL.
33461         Update tests that use readelf to use $READELF instead.
33462         * configure: Regenerated.
33463
33464 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
33465
33466         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
33467         if the result is not used.
33468
33469 2011-07-05  Andreas Jaeger  <aj@suse.de>
33470
33471         [BZ#9696]
33472         * stdlib/tst-strtod.c: Add testcase.
33473
33474 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
33475
33476         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
33477         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
33478         The latter has a higher limit.  Take additional parameter to pass to
33479         the new function.
33480         (__pathconf): Pass file to __statfs_link_max.
33481         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
33482         __statfs_link_max.
33483         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
33484         __statfs_link_max.
33485
33486         [BZ #12868]
33487         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
33488         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33489         Handle Lustre.
33490         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
33491         (__statfs_filesize_max): Likewise.
33492         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
33493
33494 2011-07-05  Andreas Jaeger  <aj@suse.de>
33495
33496         * resolv/res_comp.c (dn_skipname): Remove unused variable.
33497
33498 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
33499
33500         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
33501         `status' variable.
33502         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
33503         Likewise.
33504
33505 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
33506
33507         * Makefile (strop-tests): Add strncat.
33508         * string/test-strncat.c: New file.
33509
33510 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
33511
33512         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
33513
33514 2011-06-21  Andreas Jaeger  <aj@suse.de>
33515
33516         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
33517         Copy rule from iconvdata/Makefile.
33518
33519 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
33520
33521         [BZ #12922]
33522         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
33523         but no long options are defined, just return 'W'.
33524
33525 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
33526
33527         [BZ #9696]
33528         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
33529
33530 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
33531
33532         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
33533         netgroups to read.
33534         (innetgr): Likewise.
33535
33536 2011-07-05  Roland McGrath  <roland@hack.frob.com>
33537
33538         * config.make.in (install_root): Default to $(DESTDIR).
33539
33540 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
33541
33542         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
33543
33544 2011-07-02  Roland McGrath  <roland@hack.frob.com>
33545
33546         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
33547
33548         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
33549         containing directory rather than embedding absolute directory names.
33550
33551         * scripts/check-local-headers.sh: Rewritten using awk.
33552         Match by word, not by line.  Print error messages for matches.
33553         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
33554
33555         * Makerules [shlib-lds-flags empty]:
33556         ($(common-objpfx)libc_pic.opts): New target.
33557         ($(common-objpfx)libc_pic.os.clean): New target.
33558         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
33559
33560         * config.make.in (OBJCOPY): New variable.
33561         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
33562         * configure: Regenerated.
33563
33564         * config.make.in (use-default-link): New variable.
33565         * configure.in (use_default_link): Grok --with-default-link to set it.
33566         * configure: Regenerated.
33567         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
33568         (shlib-lds, shlib-lds-flags): Define to empty.
33569
33570         * Makerules (shlib-lds): New variable.
33571         (shlib-lds-flags): New variable.
33572         (build-shlib, build-moduile, build-module-asneeded): Use it.
33573         ($(common-objpfx)libc.so): Use $(shlib-lds).
33574         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
33575         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
33576
33577         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
33578         DT_FLAGS/DT_FLAGS_1 with zero flags.
33579
33580         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
33581         linker script munging.
33582
33583 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
33584
33585         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
33586         as 128-bit value.
33587         * crypt/sha512.c (sha512_process_block): Perform total addition using
33588         128-bit if possible.
33589         (__sha512_finish_ctx): Likewise.
33590         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
33591         as 64-bit value.
33592         * crypt/sha256.c (SWAP64): Define.
33593         (sha256_process_block): Perform total addition using 64-bit if
33594         possible.
33595         (__sha256_finish_ctx): Likewise.
33596
33597 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
33598
33599         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
33600         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33601         * nscd/hstcache.c (cache_addhst): Likewise.
33602         * nscd/grpcache.c (cache_addgr): Likewise.
33603         * nscd/aicache.c (addhstaiX): Likewise
33604         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
33605
33606 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
33607
33608         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
33609         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33610         * nscd/hstcache.c (cache_addhst): Likewise.
33611         * nscd/grpcache.c (cache_addgr): Likewise.
33612         * nscd/aicache.c (addhstaiX): Likewise
33613
33614 2011-07-01  Andreas Schwab  <schwab@redhat.com>
33615
33616         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
33617         domain only when needed.
33618
33619 2011-06-30  Andreas Schwab  <schwab@redhat.com>
33620
33621         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
33622         is always restored.
33623
33624 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
33625
33626         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
33627         are re-adding the entry.
33628         * nscd/servicescache.c (cache_addserv): Likewise.
33629
33630 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
33631
33632         * sysdeps/generic/dl-irel.h: fix protection against multiple
33633         inclusions.
33634         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
33635
33636 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
33637
33638         [BZ #12935]
33639         * malloc/memusage.sh: Fix quoting in message.
33640         * debug/xtrace.sh: Likewise.
33641
33642         * configure.in: Remove support for --experimental-malloc option, make
33643         it the default.
33644         * config.make.in: Likewise.
33645         * malloc/Makefile: Likewise.
33646
33647 2011-06-27  Andreas Schwab  <schwab@redhat.com>
33648
33649         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
33650         two-byte characters.
33651
33652 2011-06-27  Roland McGrath  <roland@hack.frob.com>
33653
33654         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
33655         AC_CACHE_CHECK invocation.
33656         * configure: Regenerated.
33657
33658         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
33659
33660 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
33661
33662         [BZ #12350]
33663         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
33664         bit from old_res_options.
33665
33666         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
33667
33668         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
33669         value type for setfct.
33670
33671 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
33672
33673         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
33674         __gettimeofday instead of gettimeofday.
33675
33676 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
33677
33678         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
33679
33680 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
33681
33682         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
33683
33684         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
33685         info.
33686
33687 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
33688
33689         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33690         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
33691         strcpy-sse2-unaligned strncpy-sse2-unaligned
33692         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
33693         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
33694         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
33695         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
33696         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
33697         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
33698         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
33699         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
33700         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
33701         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
33702         (STRCPY): Support SSE2 and SSSE3 versions.
33703
33704 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
33705
33706         [BZ #12874]
33707         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
33708         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
33709         kernels which artificially limit size of requests.
33710
33711 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
33712
33713         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33714         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
33715         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
33716         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
33717         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
33718         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
33719         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
33720         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
33721         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
33722         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
33723         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
33724         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
33725         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
33726         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
33727         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
33728         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33729         Enable unaligned load optimization for Intel Core i3, i5 and i7
33730         processors.
33731         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
33732         Define.
33733         (index_Fast_Unaligned_Load): Define.
33734         (HAS_FAST_UNALIGNED_LOAD): Define.
33735
33736 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
33737
33738         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
33739
33740 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
33741
33742         [BZ #12907]
33743         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
33744         until it is clear that the information is realy needed.
33745         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
33746
33747 2011-06-22  Andreas Schwab  <schwab@redhat.com>
33748
33749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
33750
33751 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
33752
33753         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
33754         /sys/devices/system/cpu/online if it is usable.
33755
33756         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
33757         reading the information from the /proc filesystem to once a second.
33758
33759 2011-06-21  Andreas Jaeger  <aj@suse.de>
33760
33761         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
33762         NULL after inclusion of kernel headers.
33763
33764 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
33765
33766         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
33767         calls to internal_setent.
33768
33769         [BZ #12885]
33770         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
33771         addresses using gethostbyname4_r ignore IPv4 addresses.
33772
33773         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
33774         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
33775
33776         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
33777
33778 2011-06-20  David S. Miller  <davem@davemloft.net>
33779
33780         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
33781         inclusions.
33782         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
33783
33784         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
33785         (elf_irel): Use it.
33786         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
33787         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
33788         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
33789         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
33790         * sysdeps/x86_64/dl-irel.h: Likewise.
33791
33792         * elf/dl-runtime.c: Use elf_ifunc_invoke.
33793         * elf/dl-sym.c: Likewise.
33794
33795 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
33796
33797         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
33798         need to dereference resplen2.
33799
33800 2011-06-14  Andreas Schwab  <schwab@redhat.com>
33801
33802         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
33803
33804 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
33805
33806         * Makeconfig: Define vardbdir and inst_vardbdir.
33807         * nss/Makefile: Add rules to install db-Makefile.
33808
33809         * nss/nss_db/db-XXX.c: Cleanup.
33810
33811         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
33812         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
33813         GLIBC_PRIVATE.
33814         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
33815         * nss/makedb.c: Implement -g option to specify that value strings
33816         are generated and should not be added to table iterated over for
33817         get*ent calls.
33818         * nss/nss_db/db-initgroups.c: New file.
33819
33820         * nss/getent.c: Add support for initgroups lookups through getgrouplist
33821         interface.
33822
33823         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
33824         (internal_getgrouplist): Adjust to name change.
33825         Update use_initgroups_entry if this is not the first call.
33826         * nss/databases.def: Add initgroups entry.
33827
33828         * nss/makedb.c (compute_tables): Check result of multiple hash table
33829         sizes to minimize maximum chain length.
33830
33831 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
33832
33833         * Versions.def: Add entry for libnss_db.
33834         * shlib-versions: Likewise.
33835         * nss/Makefile: Add rules to build libnss_db.
33836         * nss/Versions: Add libnss_db information.  Organize libnss_files
33837         entries better.
33838         * nss/db-Makefile: Add gshadow support.  Change rules for the new
33839         makedb progra.  Some minor improvements to generate smaller files.
33840         * nss/nss_db/nss_db.h: Move NSS database header data structures to
33841         here from...
33842         * nss/makedb.c: ...here.
33843         Improve database format to be smaller and require less memory at
33844         runtime.
33845         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
33846         db anymore.
33847         * nss/nss_db/db-netgrp.c: Likewise.
33848         * nss/nss_db/db-open.c: Likewise.
33849         * nss/nss_files/flies-XXX.x: Adjust comments.
33850         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
33851         * nss/nss_files/files-grp.c: Likewise.
33852         * nss/nss_files/files-hosts.c: Likewise.
33853         * nss/nss_files/files-network.c: Likewise.
33854         * nss/nss_files/files-proto.c: Likewise.
33855         * nss/nss_files/files-pwd.c: Likewise.
33856         * nss/nss_files/files-rpc.c: Likewise.
33857         * nss/nss_files/files-service.c: Likewise.
33858         * nss/nss_files/files-sgrp.c: Likewise.
33859         * nss/nss_files/files-spwd.c: Likewise.
33860         * nss/nss_db/db-alias.c: Removed.
33861         * nss/nss_db/dummy-db.h: Removed.
33862
33863 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
33864
33865         * nss/makedb.c: Rewritten to not use database library.
33866         * nss/Makefile: Update to build new makedb program.
33867
33868 2011-06-14  Andreas Jaeger  <aj@suse.de>
33869
33870         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
33871         memset declaration.
33872
33873 2011-06-10  Andreas Schwab  <schwab@redhat.com>
33874
33875         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
33876         tmpbuf.
33877
33878 2011-06-10  Roland McGrath  <roland@hack.frob.com>
33879
33880         * Makerules (shlib.lds): Fail if the linker script comes out empty.
33881         * elf/Makefile ($(objpfx)ld.so): Likewise.
33882
33883         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
33884         Don't list ld.so twice in dependencies.
33885
33886         * posix/bug-regex31.c: Include <stdlib.h>.
33887
33888         * nscd/hstcache.c (cache_addhst): Remove unused variable.
33889
33890         * nis/nss_compat/compat-spwd.c
33891         (getspent_next_nss_netgr): Remove unused variable.
33892         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
33893
33894         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
33895         nonmembers" output to use the right array.
33896
33897         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
33898
33899         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
33900
33901         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
33902         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
33903         * catgets/gencat.c (read_input_file): Likewise.
33904         * locale/programs/locarchive.c (enlarge_archive): Likewise.
33905
33906         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
33907         variable definition inside #if's controlling its use.
33908
33909         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
33910
33911         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
33912
33913         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
33914
33915         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
33916         unreachable code.
33917
33918         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
33919
33920         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
33921         * configure: Regenerated.
33922
33923         * Makerules: Revert last change.
33924         * elf/Makefile: Likewise.
33925
33926 2011-06-09  Roland McGrath  <roland@hack.frob.com>
33927
33928         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
33929         * elf/Makefile ($(objpfx)librtld.os): Likewise.
33930         (reloc-link): Likewise.
33931
33932 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
33933
33934         * elf/Makefile: Add rules to build pldd.
33935         * elf/pldd.c: New file.
33936         * elf/pldd-xx.c: New file.
33937
33938 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
33939
33940         * version.h: Update for 2.15 development version.
33941
33942 2011-06-07  David S. Miller  <davem@davemloft.net>
33943
33944         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
33945         ifuncs.
33946         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
33947         elf_machine_lazy_rel): Likewise.
33948         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
33949         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
33950         elf_machine_lazy_rel): Likewise.
33951         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
33952         dl_hwcap via passed in argument.
33953         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
33954         Likewise.
33955
33956 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33957
33958         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
33959
33960 2011-06-06  Roland McGrath  <roland@hack.frob.com>
33961
33962         [BZ #12849]
33963         * manual/fdl-1.1.texi: New file, verbatim from:
33964         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
33965         * manual/lgpl-2.1.texi: New file, verbatim from:
33966         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
33967         * manual/Makefile (licenses): New variable, list those new file names.
33968         (texis): Use it.
33969         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
33970
33971         * manual/fdl.texi: File removed.
33972         * manual/lesser.texi: File removed.
33973         * manual/libc.texinfo (Copying, Documentation License):
33974         Use new @include file names, put @appendix directive before @include.
33975
33976 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
33977
33978         [BZ #12841]
33979         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
33980         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
33981         (mq_open): Add __NTH.
33982
33983 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
33984
33985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33986         Assume Intel Core i3/i5/i7 processor if AVX is available.
33987
33988 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
33989
33990         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
33991         typo.
33992
33993 2011-05-31  Andreas Schwab  <schwab@redhat.com>
33994
33995         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
33996         memory.  Use alloca_account.  Fix memory leak when retrying.
33997
33998 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
33999
34000         * version.h (RELEASE): Bump for 2.14 release.
34001         * include/features.h (__GLIBC_MINOR__): Bump to 14.
34002
34003         * config.make.in (RANLIB): Remove entry.
34004
34005 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
34006
34007         * po/Makefile (po-sed-cmd): Add ksh to extensions.
34008         (libc.pot): Work around missing support for .ksh extension in xgettext.
34009
34010         [BZ #12684]
34011         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
34012         if both request failed.
34013         (send_dg): In case of server errors clear resplen or *resplen2.
34014
34015         [BZ #12454]
34016         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
34017         when there are multiple maps.
34018         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
34019         (_dl_fini): Remove test here.
34020
34021         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
34022
34023 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
34024
34025         [BZ #12350]
34026         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
34027         bit from old_res_options.
34028         (gaih_inet): Likewise.
34029
34030         [BZ #11099]
34031         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
34032         as signed.
34033
34034         * resolv/res_init.c (res_setoptions): Make the code more compact.
34035
34036         [BZ #11558]
34037         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
34038         set RES_USEVC.
34039
34040         [BZ #11634]
34041         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
34042
34043         * malloc/malloc.h: Mark malloc hook variables as deprecated.
34044
34045         [BZ #11781]
34046         * malloc/malloc.h: Declare malloc hook variables as volatile.
34047
34048         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
34049         in last patch.
34050
34051         [BZ #11799]
34052         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
34053         raise in the comment.
34054         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
34055         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
34056         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
34057
34058 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
34059
34060         [BZ #12811]
34061         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
34062         grow the buffers more if it already has to be sufficient.
34063         (build_wcs_upper_buffer): Likewise.
34064         * posix/regexec.c (check_matching): Likewise.
34065         (clean_state_log_if_needed): Likewise.
34066         (extend_buffers): Don't enlarge buffers beyond size of the input
34067         buffer.
34068         Patches mostly by Emil Wojak <emil@wojak.eu>.
34069         * posix/bug-regex32.c: New file.
34070         * posix/Makefile (tests): Add bug-regex32.
34071
34072         * locale/findlocale.c (_nl_find_locale): Return right away if
34073         _nl_explode_name failed.
34074         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
34075
34076         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
34077
34078         * debug/xtrace.sh: Unify messages.
34079         * malloc/memusage.sh: Likewise.
34080
34081         [BZ #12813]
34082         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
34083         time symbol from vDSO.  Substitute with vsyscall if not available.
34084         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
34085         __vdso_time.
34086
34087         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
34088         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
34089         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
34090         Add sendmmsg and internal_sendmmsg.
34091         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
34092         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
34093         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
34094
34095         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
34096         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
34097         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
34098
34099 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
34100
34101         [BZ #12813]
34102         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
34103         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
34104         available.
34105         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
34106         __vdso_getcpu.
34107
34108         [BZ #12814]
34109         * iconvdata/Makefile (tests): Add bug-iconv9.
34110         * iconvdata/bug-iconv9.c: New file.
34111
34112 2011-05-27  Andreas Schwab  <schwab@redhat.com>
34113
34114         [BZ #12814]
34115         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
34116
34117 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
34118
34119         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
34120         (struct user_regs_struct): Change intcs field back to cs.
34121
34122 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
34123
34124         * po/ja.po: Update from translation team.
34125
34126 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
34127
34128         [BZ #12795]
34129         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
34130         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
34131
34132 2011-05-20  Andreas Schwab  <schwab@redhat.com>
34133
34134         * stdlib/longlong.h: Update from GCC.
34135
34136 2011-05-23  Andreas Schwab  <schwab@redhat.com>
34137
34138         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
34139         parameter name.
34140         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
34141         Add parameter name.
34142         (__sysconf): Pass it down.
34143
34144 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
34145
34146         [BZ #12671]
34147         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
34148         some situations.
34149         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
34150         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
34151         add in in __libc_use_alloca calls.  Adjust callers.
34152         (glob): Use malloc in some situations.
34153
34154         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
34155         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
34156         pltexit.
34157
34158 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
34159
34160         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
34161         and CLOCK_BOOTTIME_ALARM.
34162
34163         [BZ #12782]
34164         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
34165         is returned.
34166
34167         * string/_strerror.c (__strerror_r): Print negative errors as signed
34168         numbers.
34169
34170         [BZ #12777]
34171         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
34172         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
34173         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
34174
34175         * configure.in: Fix typo in redirection and correct removal of test
34176         files in two cases.
34177
34178         [BZ #12788]
34179         * locale/setlocale.c (new_composite_name): Fix test to check for
34180         identical name of all categories.
34181
34182         [BZ #12792]
34183         * libio/filedoalloc.c (local_isatty): New function.
34184         (_IO_file_doallocate): Use local_isatty.
34185         * stdio-common/perror.c (perror): In case a new stream is used
34186         forward the stream error.
34187         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
34188         error flag.
34189
34190 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
34191
34192         [BZ #11869]
34193         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
34194         alloca.
34195         * include/alloca.h (extend_alloca_account): Define.
34196
34197         [BZ #11857]
34198         * posix/regex.h: Fix comments with documentation of user-accessible
34199         fields after compilation and describe correct free'ing of pattern
34200         after re_compile_pattern.
34201         Patch by Reuben Thomas <rrt@sc3d.org>.
34202
34203 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
34204
34205         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
34206         and -mno-altivec to prevent the compiler from using Altivec and/or
34207         VSX instructions when the corresponding registers are not available.
34208
34209 2011-05-19  Andreas Schwab  <schwab@redhat.com>
34210
34211         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
34212
34213 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
34214
34215         * libio/freopen.c (freopen): Use __dup2, not dup2.
34216         * libio/freopen64.c (freopen64): Likewise.
34217
34218 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
34219
34220         [BZ #12775]
34221         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
34222         * math/Makefile (tests): Add test-powl.
34223         (CFLAGS-test-powl.c): Define.
34224         * math/test-powl.c: New file.
34225
34226 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34227
34228         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
34229
34230 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
34231
34232         [BZ #11837]
34233         * iconvdata/gb18030.c: Update to GB18020-2005.
34234
34235 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
34236
34237         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
34238         RE_SYNTAX_POSIX_AWK): Update to match recent development.
34239         Patch by Aharon Robbins <arnold@skeeve.com>.
34240
34241         [BZ #11892]
34242         * stdlib/putenv.c (putenv): Don't always create copy of the variable
34243         on the stack.
34244
34245         [BZ #11895]
34246         * misc/pselect.c (__pselect): Handle timeout value errors hidden
34247         through underflows.
34248
34249         [BZ #12766]
34250         * misc/error.c (error_at_line): Ensure file_name and old_file_name
34251         point to strings before performing equality test for error_one_per_line
34252         mode.
34253
34254         [BZ #11697]
34255         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
34256
34257         [BZ #11820]
34258         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
34259         (struct user_fpregs_struct): Avoid __uint*_t types.
34260
34261         [BZ #6420]
34262         * malloc/mtrace.c (tr_where): Add additional parameter to point to
34263         symbol info.  Use it instead of calling _dl_addr locally.
34264         (lock_and_info): New function.
34265         (tr_freehook): Call lock_and_info and pass symbol info as additional
34266         parameter to tr_where.
34267         (tr_mallochook): Likewise.
34268         (tr_reallochook): Likewise.
34269         (tr_memalignhook): Likewise.
34270
34271         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
34272         used and couldn't be at all thread-safe.
34273
34274 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
34275
34276         * libio/freopen.c (freopen): Don't close old file descriptor
34277         before the new one is opened.  Instead dup the new file descriptor
34278         to the old one after the new stream is created.
34279         * libio/freopen64.c (freopen64): Likewise.
34280         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
34281         * libio/fileops.c (_IO_new_file_close_it): Handle new
34282         _IO_FLAGS2_NOCLOSE flag.
34283         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
34284         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
34285         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
34286         _IO_FLAGS2_NOCLOSE flag.
34287         * include/unistd.h: Add hidden_proto for dup3.
34288         Define __have_dup3.
34289         * io/dup3.c: Define hidden symbol.
34290         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
34291
34292         [BZ #7101]
34293         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
34294         when an incomplete long option is used.
34295         * posix/tst-getopt_long1.c: New file.
34296         * posix/Makefile (tests): Add tst-getopt_long1.
34297
34298         [BZ #10138]
34299         * scripts/config.guess: Update from autoconf-2.68.
34300         * scripts/config.sub: Likewise.
34301
34302         [BZ #10157]
34303         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
34304         tests into ...
34305         (has_cpuclock): ...this.  New function.
34306         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
34307         macro here based on has_cpuclock code.
34308
34309         [BZ #10149]
34310         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
34311         First byte (not low byte) is now always NUL.
34312         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
34313
34314         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
34315         Use non-cancelable interfaces.
34316
34317         [BZ #9809]
34318         * locale/iso-639.def: Add entry for Sorani.
34319
34320         [BZ #11901]
34321         * include/stdlib.h: Move include protection to the right place.
34322         Define abort_msg_s.  Declare __abort_msg with it.
34323         * stdlib/abort.c (__abort_msg): Adjust type.
34324         * assert/assert.c (__assert_fail_base): New function.  Majority
34325         of code from __assert_fail.  Allocate memory for __abort_msg with
34326         mmap.
34327         (__assert_fail): Now call __assert_fail_base.
34328         * assert/assert-perr.c: Remove bulk of implementation.  Use
34329         __assert_fail_base.
34330         * include/assert.hL Declare __assert_fail_base.
34331         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
34332         mmap.
34333         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
34334
34335 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
34336
34337         [BZ #11952]
34338         [BZ #12453]
34339         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
34340         until all modules are registered in the DTV.
34341         * elf/Makefile: Add rules to build and run tst-tls19.
34342         * elf/tst-tls19.c: New file.
34343         * elf/tst-tls19mod1.c: New file.
34344         * elf/tst-tls19mod2.c: New file.
34345         * elf/tst-tls19mod3.c: New file.
34346         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
34347
34348         [BZ #12083]
34349         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
34350         correctly.
34351
34352         [BZ #12601]
34353         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
34354         two-byte sequence errors.
34355         * iconvdata/Makefile (tests): Add bug-iconv8.
34356         * iconvdata/bug-iconv8.c: New file.
34357
34358         [BZ #12626]
34359         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
34360         buf2 definition.
34361
34362         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
34363
34364         [BZ #12432]
34365         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
34366         (dummy_getcfa): New function.
34367         (init): Get _Unwind_GetCFA address, use dummy if not found.
34368         (backtrace_helper): In recursion check, also check whether CFA changes.
34369         (__backtrace): Completely initialize arg.
34370
34371         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
34372         storing incomplete byte sequence in state object.  Avoid testing for
34373         guaranteed too small input if we know there is enough data available.
34374
34375 2011-05-11  Andreas Schwab  <schwab@redhat.com>
34376
34377         * Makeconfig (+link-pie): Indent.
34378         * Rules (binaries-pie): Define if $(have-fpie) and
34379         $(build-shared).
34380         (binaries-shared): Also filter out $(binaries-pie).
34381         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
34382         * nscd/Makefile (others-pie): Add nscd.
34383         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
34384         ($(objpfx)nscd): Remove command override.
34385         * login/Makefile (others-pie): Add pt_chown.
34386         ($(objpfx)pt_chown): Remove command override.
34387         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
34388         remove command overrides.
34389
34390 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
34391
34392         * libio/tst_putwc.c: Fix error messages.
34393
34394         [BZ #12724]
34395         * libio/fileops.c (_IO_new_file_close_it): Always flush when
34396         currently writing and seek to current position when not.
34397         * libio/Makefile (tests): Add bug-fclose1.
34398         * libio/bug-fclose1.c: New file.
34399
34400 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
34401
34402         [BZ #12511]
34403         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
34404         don't set DF_1_NODELETE here.
34405         (do_lookup_x): When entering new entry test for copy relocation
34406         and if necessary set DF_1_NODELETE flag.
34407         * elf/tst-unique4.cc: New file.
34408         * elf/tst-unique4.h: New file.
34409         * elf/tst-unique4lib.cc: New file.
34410         * elf/Makefile: Add rules to build and run tst-unique4.
34411         Patch by Piotr Bury <pbury@goahead.com>.
34412
34413 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
34414
34415         [BZ #12052]
34416         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
34417
34418         [BZ #12625]
34419         * misc/mntent_r.c (addmntent): Flush the stream after the output
34420
34421         [BZ #12393]
34422         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
34423         (is_trusted_path_normalize): Skip initial colon.  Append slash
34424         to empty buffer.  Duplicate is_trusted_path code but allow
34425         constructed patch to be prefix.
34426         (is_dst): Allow $ORIGIN followed by /.
34427         (_dl_dst_substitute): Correct clearing of check_for_trusted.
34428         Correct testing of result of is_trusted_path_normalize
34429         (decompose_rpath): Fix warning.
34430
34431 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
34432
34433         [BZ #11257]
34434         * grp/initgroups.c (internal_getgrouplist): When we found the service
34435         list through the initgroups entry in nsswitch.conf do not always
34436         continue on a successful lookup.  Don't always use the
34437         __nss_group_database value if it is set.
34438         * nss/nsswitch.conf (initgroups): Change action for successful db
34439         lookup to continue for compatibility.
34440
34441 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
34442
34443         [BZ #11532]
34444         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
34445         and CP774 modules.
34446         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
34447         and CP774 modules.
34448         * iconvdata/tst-tables.sh: Likewise.
34449         * iconvdata/cp770.c: New file.
34450         * iconvdata/cp771.c: New file.
34451         * iconvdata/cp772.c: New file.
34452         * iconvdata/cp773.c: New file.
34453         * iconvdata/cp774.c: New file.
34454         * iconvdata/testdata/CP770: New file.
34455         * iconvdata/testdata/CP770..UTF8: New file.
34456         * iconvdata/testdata/CP771: New file.
34457         * iconvdata/testdata/CP771..UTF8: New file.
34458         * iconvdata/testdata/CP772: New file.
34459         * iconvdata/testdata/CP772..UTF8: New file.
34460         * iconvdata/testdata/CP773: New file.
34461         * iconvdata/testdata/CP773..UTF8: New file.
34462         * iconvdata/testdata/CP774: New file.
34463         * iconvdata/testdata/CP774..UTF8: New file.
34464
34465         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
34466         END CHARMAP line.
34467         * iconvdata/gen-8bit-gap.sh: Likewise.
34468         * iconvdata/gen-8bit.sh: Likewise.
34469
34470         * locale/iso-639.def: Add ary entry.
34471
34472         [BZ #11258]
34473         * locale/C-translit.h.in: Add U20A1 transliteration.
34474
34475         [BZ #12178]
34476         * locale/iso-639.def: Add wae entry.
34477         Patch by Kevin Bortis <bortis@translate-wae.ch>.
34478
34479         [BZ #12545]
34480         * locale/programs/localedef.c (construct_output_path): Use ssize_t
34481         for n.
34482
34483         [BZ #12711]
34484         * locale/C-translit.h.in: Add entry for U20B9.
34485         Patch by pravin.d.s@gmail.com.
34486
34487 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
34488
34489         [BZ #12713]
34490         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
34491         ENAMETOOLONG use generic getcwd.
34492         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
34493         in rtld.  Use *stat64.
34494         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
34495         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
34496         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
34497         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
34498         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
34499         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
34500         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
34501         __fstatat64 macros.
34502         * include/dirent.h: Add libc_hidden_proto for rewinddir.
34503         * dirent/rewinddir.c: Add libc_hidden_def.
34504         * sysdeps/mach/hurd/rewinddir.c: Likewise.
34505         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
34506
34507         * include/dirent.h (__alloc_dir): Add flags parameter.
34508         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
34509         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
34510         __alloc_dir.
34511         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
34512         from fdopendir if O_CLOEXEC is already set.
34513
34514 2011-03-15  Alan Modra  <amodra@gmail.com>
34515
34516         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
34517         l_tls_firstbyte_offset non-zero.  Save padding offset in
34518         l_tls_firstbyte_offset for later use.
34519         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
34520         freeing static tls block.
34521
34522 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
34523
34524         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
34525         where #ifdef was intended.  The intent is to prevent ARG_MAX from
34526         being defined by the kernel headers.
34527
34528 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
34529
34530         [BZ #12734]
34531         * resolv/resolv.h: Define RES_NOTLDQUERY.
34532         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
34533         no-tld-query and set RES_NOTLDQUERY.
34534         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
34535         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
34536         modern BIND to search name as TLD unless forbidden.
34537
34538 2011-05-07  Petr Baudis  <pasky@suse.cz>
34539             Ulrich Drepper  <drepper@gmail.com>
34540
34541         [BZ #12393]
34542         * elf/dl-load.c (fillin_rpath): Move trusted path check...
34543         (is_trusted_path): ...to here.
34544         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
34545         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
34546         using is_trusted_path_normalize() in setuid scripts.
34547
34548 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
34549
34550         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
34551         __BEGIN/__END_DECLS.
34552
34553 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
34554
34555         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
34556         NSS_STATUS_NOTFOUND if no record was found.
34557
34558 2011-05-05  Andreas Schwab  <schwab@redhat.com>
34559
34560         * sunrpc/Makefile (headers): Add rpc/netdb.h.
34561         (headers-not-in-tirpc): Remove rpc/netdb.h
34562         * resolv/netdb.h: Revert last change.
34563
34564 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34565
34566         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
34567         circular dependency between libgcc.a and libc.a.
34568
34569 2011-05-05  Andreas Schwab  <schwab@redhat.com>
34570
34571         * resolv/netdb.h: Don't include <rpc/netdb.h>.
34572         * nis/Makefile: Don't install rpcsvc/*.
34573         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
34574         instead of <rpc/types.h>.
34575         (MAXHOSTNAMELEN): Define.
34576
34577 2011-05-03  Andreas Schwab  <schwab@redhat.com>
34578
34579         * elf/ldconfig.c (add_dir): Don't crash on empty path.
34580
34581 2011-04-28  Maciej Babinski  <mbabinski@google.com>
34582
34583         [BZ #12714]
34584         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
34585         gethostbyname4_r when IPv6 results are possible.
34586
34587 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
34588
34589         [BZ #12723]
34590         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
34591         _PC_PIPE_BUF handling.
34592
34593 2011-04-30  Bruno Haible  <bruno@clisp.org>
34594
34595         [BZ #12717]
34596         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
34597         * resolv/netdb.h (getnameinfo): Change type of flags parameter
34598         to 'int'.
34599         * inet/getnameinfo.c (getnameinfo): Likewise.
34600
34601 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
34602
34603         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
34604         to groups setting in database lookup.
34605         * nss/nsswitch.conf: Add initgroups entry.
34606
34607 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
34608
34609         [BZ #12685]
34610         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
34611         mode string.
34612         Patch by Eric Blake <eblake@redhat.com>.
34613
34614 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
34615
34616         * sunrpc/Makefile (need-export-routines): Add svc_run.
34617         (routines): Remove svc_run.
34618         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
34619         * sunrpc/clnt_perr.c (clnt_perrno): Export.
34620         * sunrpc/svc_run.c (svc_run): Likewise.
34621         * sunrpc/svc_udp.c (svcudp_create): Likewise.
34622
34623 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
34624
34625         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
34626         problem in reallocation in last patch.
34627
34628 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
34629
34630         * sunrpc/Makefile: Move inclusion of Rules.
34631
34632 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
34633
34634         * nss/nss_files/files-initgroups.c: New file.
34635         * nss/Makefile (libnss_files-routines): Add files-initgroups.
34636         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
34637         _nss_files_initgroups_dyn.
34638
34639 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
34640
34641         * elf/elf.h (R_ARM_IRELATIVE): Define.
34642
34643 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
34644
34645         * po/ru.po: Update from translation team.
34646
34647 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
34648
34649         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
34650         dependencies.
34651
34652 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
34653
34654         [BZ #12653]
34655         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
34656         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
34657         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34658         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34659         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
34660
34661 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
34662
34663         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
34664         differing bytes.
34665         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
34666         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
34667         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34668
34669 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
34670
34671         [BZ #12420]
34672         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
34673         storing it.
34674         * stdlib/bug-getcontext.c: New file.
34675         * stdlib/Makefile: Add rules to build and run bug-getcontext.
34676
34677 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34678
34679         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
34680         instructions into .machine "z9-109".
34681         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
34682         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
34683
34684 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34685
34686         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
34687         between environment variables and auxiliary vector.
34688
34689 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
34690
34691         * Makefile: Add rules to build linkobj/libc.so.
34692         * include/libc-symbols.h: Define libc_hidden_nolink.
34693         * include/rpc/auth.h: Mark functions which are to be hidden.
34694         * include/rpc/auth_des.h: Likewise.
34695         * include/rpc/auth_unix.h: Likewise.
34696         * include/rpc/clnt.h: Likewise.
34697         * include/rpc/des_crypt.h: Likewise.
34698         * include/rpc/key_prot.h: Likewise.
34699         * include/rpc/pmap_clnt.h: Likewise.
34700         * include/rpc/pmap_prot.h: Likewise.
34701         * include/rpc/pmap_rmt.h: Likewise.
34702         * include/rpc/rpc_msg.h: Likewise.
34703         * include/rpc/svc.h: Likewise.
34704         * include/rpc/svc_auth.h: Likewise.
34705         * include/rpc/xdr.h: Likewise.
34706         * nis/Makefile: Link all DSOs against linkobj/libc.so.
34707         * nss/Makefile: Likewise.
34708         * sunrpc/Makefile: Don't install headers.  Build library with normal
34709         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
34710         * sunrpc/auth_des.c: Hide exported symbols by default, export some
34711         for the compat linking library.  Remove use of INTDEF/INTUSE.
34712         * sunrpc/auth_none.c: Likewise.
34713         * sunrpc/auth_unix.c: Likewise.
34714         * sunrpc/authdes_prot.c: Likewise.
34715         * sunrpc/authuxprot.c: Likewise.
34716         * sunrpc/clnt_gen.c: Likewise.
34717         * sunrpc/clnt_perr.c: Likewise.
34718         * sunrpc/clnt_raw.c: Likewise.
34719         * sunrpc/clnt_simp.c: Likewise.
34720         * sunrpc/clnt_tcp.c: Likewise.
34721         * sunrpc/clnt_udp.c: Likewise.
34722         * sunrpc/clnt_unix.c: Likewise.
34723         * sunrpc/des_crypt.c: Likewise.
34724         * sunrpc/des_soft.c: Likewise.
34725         * sunrpc/get_myaddr.c: Likewise.
34726         * sunrpc/key_call.c: Likewise.
34727         * sunrpc/key_prot.c: Likewise.
34728         * sunrpc/netname.c: Likewise.
34729         * sunrpc/pm_getmaps.c: Likewise.
34730         * sunrpc/pm_getport.c: Likewise.
34731         * sunrpc/pmap_clnt.c: Likewise.
34732         * sunrpc/pmap_prot.c: Likewise.
34733         * sunrpc/pmap_prot2.c: Likewise.
34734         * sunrpc/pmap_rmt.c: Likewise.
34735         * sunrpc/publickey.c: Likewise.
34736         * sunrpc/rpc_cmsg.c: Likewise.
34737         * sunrpc/rpc_common.c: Likewise.
34738         * sunrpc/rpc_dtable.c: Likewise.
34739         * sunrpc/rpc_prot.c: Likewise.
34740         * sunrpc/rpc_thread.c: Likewise.
34741         * sunrpc/rtime.c: Likewise.
34742         * sunrpc/svc.c: Likewise.
34743         * sunrpc/svc_auth.c: Likewise.
34744         * sunrpc/svc_authux.c: Likewise.
34745         * sunrpc/svc_raw.c: Likewise.
34746         * sunrpc/svc_run.c: Likewise.
34747         * sunrpc/svc_simple.c: Likewise.
34748         * sunrpc/svc_tcp.c: Likewise.
34749         * sunrpc/svc_udp.c: Likewise.
34750         * sunrpc/svc_unix.c: Likewise.
34751         * sunrpc/svcauth_des.c: Likewise.
34752         * sunrpc/xcrypt.c: Likewise.
34753         * sunrpc/xdr.c: Likewise.
34754         * sunrpc/xdr_array.c: Likewise.
34755         * sunrpc/xdr_float.c: Likewise.
34756         * sunrpc/xdr_intXX_t.c: Likewise.
34757         * sunrpc/xdr_mem.c: Likewise.
34758         * sunrpc/xdr_rec.c: Likewise.
34759         * sunrpc/xdr_ref.c: Likewise.
34760         * sunrpc/xdr_sizeof.c: Likewise.
34761         * sunrpc/xdr_stdio.c: Likewise.
34762
34763 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
34764
34765         [BZ #12650]
34766         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
34767         * sysdeps/ia64/dl-tls.h: Likewise.
34768         * sysdeps/powerpc/dl-tls.h: Likewise.
34769         * sysdeps/s390/dl-tls.h: Likewise.
34770         * sysdeps/sh/dl-tls.h: Likewise.
34771         * sysdeps/sparc/dl-tls.h: Likewise.
34772         * sysdeps/x86_64/dl-tls.h: Likewise.
34773         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
34774
34775 2011-03-14  Andreas Schwab  <schwab@redhat.com>
34776
34777         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
34778         rpath element also skip the following colon.
34779         (expand_dynamic_string_token): Add is_path parameter and pass
34780         down to DL_DST_REQUIRED and _dl_dst_substitute.
34781         (decompose_rpath): Call expand_dynamic_string_token with
34782         non-zero is_path.  Ignore empty rpaths.
34783         (_dl_map_object_from_fd): Call expand_dynamic_string_token
34784         with zero is_path.
34785
34786 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
34787
34788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
34789         Make cancelable.
34790
34791 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
34792
34793         [BZ #12655]
34794         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
34795         Patch by Filipe David Manana <fdmanana@apache.org>.
34796
34797 2011-04-07  Andreas Schwab  <schwab@redhat.com>
34798
34799         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
34800         Maintain aligned stack.
34801         (CHECK_RSP): Remove unused macro.
34802
34803 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
34804
34805         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
34806         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
34807
34808 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
34809
34810         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
34811
34812         * include/features.h: Mention __USE_XOPEN2K8 in comment.
34813
34814 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
34815
34816         [BZ #12518]
34817         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
34818         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
34819         * sysdeps/x86_64/memmove.c: New file.
34820         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
34821         (memcpy): Renamed to ...
34822         (__new_memcpy): This.
34823         (memcpy): Provide GLIBC_2_14 memcpy.
34824         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
34825         (memcpy): Provide GLIBC_2_2_5 memcpy.
34826
34827 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
34828
34829         [BZ #12631]
34830         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
34831
34832 2011-03-30  Andreas Schwab  <schwab@redhat.com>
34833
34834         * misc/syncfs.c: New file.
34835         * misc/Makefile (routines): Add syncfs.
34836         * posix/unistd.h: Declare syncfs.
34837         * sysdeps/unix/syscalls.list: Add syncfs.
34838
34839 2011-04-01  Andreas Schwab  <schwab@redhat.com>
34840
34841         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
34842         open_by_handle_at.
34843         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34844         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
34845         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34846         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34847         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34848         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
34849         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34850
34851 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
34852
34853         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
34854         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
34855         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
34856         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34857         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34858         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34859         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34860
34861         * io/Makefile: Compile fallocate.c, fallocate64.c, and
34862         sync_file_range.c with -fexceptions.
34863         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
34864         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
34865         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
34866         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
34867         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
34868         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
34869         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
34870         sync_file_range as cancellation point
34871         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
34872         now a wrapper around __call_sync_file_range with cancellation handling.
34873         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
34874         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
34875         function name to __call_sync_file_range.
34876         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
34877         Add call_sync_file_range.
34878
34879 2011-04-01  Andreas Schwab  <schwab@redhat.com>
34880
34881         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
34882         bits/timex.h.
34883
34884 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
34885
34886         * iconv/iconv.h: Fix typo in comment.
34887         * io/fcntl.h: Likewise.
34888         * libio/stdio.h: Likewise.
34889         * posix/spawn.h: Likewise.
34890         * posix/unistd.h: Likewise.
34891         * stdlib/stdlib.h: Likewise.
34892         * time/time.h: Likewise.
34893         * wcsmbs/wchar.h: Likewise.
34894
34895         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
34896         open_by_handle): Add.
34897         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
34898         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
34899         Augment a few comments.
34900         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
34901         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34902         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34903         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34904         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34905         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
34906         open_by_handle.
34907
34908         * io/fcntl.h (AT_EMPTY_PATH): Define.
34909
34910 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
34911
34912         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
34913         * sysdeps/unix/sysv/linux/bits/time.h: New file.
34914         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
34915         to...
34916         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
34917         * Versions.def: Add GLIBC_2.14.
34918         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
34919         Export.
34920
34921 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
34922
34923         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
34924         round counter.
34925         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
34926
34927 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34928
34929         [BZ #12597]
34930         * string/test-strncmp.c (do_page_test): New function.
34931         (check2): Likewise.
34932         (test_main): Call check2.
34933         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
34934
34935 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
34936
34937         [BZ #12587]
34938         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
34939         Handle cache information in CPU leaf 4.
34940         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
34941
34942 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
34943
34944         [BZ #12583]
34945         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
34946         character representation.
34947         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
34948
34949 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
34950
34951         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
34952         END(__isnan) to END(__isnanf) to match function entry point/label
34953         EALIGN(__isnanf,...).
34954
34955 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
34956
34957         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
34958
34959 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
34960
34961         [BZ #12510]
34962         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
34963         copy from the symbol referenced in the relocation to initialize the
34964         used variable.
34965         Patch by Piotr Bury <pbury@goahead.com>.
34966         * elf/Makefile: Add rules to build and tst-unique3.
34967         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
34968         * elf/tst-unique3.cc: New file.
34969         * elf/tst-unique3.h: New file.
34970         * elf/tst-unique3lib.cc: New file.
34971         * elf/tst-unique3lib2.cc: New file.
34972
34973         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
34974
34975 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
34976
34977         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
34978         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
34979         to _start.
34980
34981 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
34982
34983         * elf/dl-load.c (_dl_map_object): If we are looking for the first
34984         to-be-loaded object along a path to loader is ld.so.
34985
34986 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
34987             Ulrich Drepper  <drepper@gmail.com>
34988
34989         * sysdeps/x86_64/memset.S: After aligning destination, code
34990         branches to different locations depending on the value of
34991         misalignment, when multiarch is enabled. Fix this.
34992
34993 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
34994
34995         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
34996         Set _x86_64_preferred_memory_instruction for AMD processsors.
34997         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34998         Set bit_Prefer_SSE_for_memop for AMD processors.
34999
35000 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
35001
35002         * libio/fmemopen.c (fmemopen): Optimize a bit.
35003
35004 2011-03-03  Andreas Schwab  <schwab@redhat.com>
35005
35006         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
35007
35008 2011-03-03  Roland McGrath  <roland@redhat.com>
35009
35010         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
35011
35012 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
35013
35014         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
35015         __bzero_ultra1 instead of __memset_ultra1.
35016
35017 2011-02-23  Andreas Schwab  <schwab@redhat.com>
35018             Ulrich Drepper  <drepper@gmail.com>
35019
35020         [BZ #12509]
35021         * include/link.h (struct link_map): Add l_orig_initfini.
35022         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
35023         returning unsuccessfully.
35024         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
35025         close of a file loaded at startup, restore the original l_initfini
35026         list.
35027         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
35028         list, store the pointer.
35029         * elf/Makefile ($(objpfx)noload-mem): New rule.
35030         (noload-ENV): Define.
35031         (tests): Add $(objpfx)noload-mem.
35032         * elf/noload.c: Include <memcheck.h>.
35033         (main): Call mtrace.  Close all opened handles.
35034
35035 2011-02-17  Andreas Schwab  <schwab@redhat.com>
35036
35037         [BZ #12454]
35038         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
35039         dependencies are missing.
35040
35041 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35042
35043         Fix __if_freereq crash: Unlike the generic version which uses free,
35044         Hurd needs munmap.
35045         * sysdeps/mach/hurd/ifreq.h: New file.
35046
35047 2011-01-27  Petr Baudis  <pasky@suse.cz>
35048             Ulrich Drepper  <drepper@gmail.com>
35049
35050         [BZ 12445]#
35051         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
35052         to extend_alloca().
35053         * stdio-common/bug23.c: New file.
35054         * stdio-common/Makefile (tests): Add bug23.
35055
35056 2010-09-28  Andreas Schwab  <schwab@redhat.com>
35057             Ulrich Drepper  <drepper@gmail.com>
35058
35059         [BZ #12489]
35060         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
35061         before performing relro protection.  At old place add assertion
35062         to make sure nothing changed.
35063
35064 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
35065             Glauber de Oliveira Costa  <glommer@gmail.com>
35066
35067         * elf/elf.h: Add new ARM TLS relocs.
35068
35069 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
35070
35071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
35072         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
35073         cast from r3.
35074         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
35075         'tests' variable.
35076         * sysdeps/wordsize-64/tst-writev.c: New file.
35077
35078 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
35079
35080         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
35081         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
35082         insns in _dl_start to prevent a TOC reference before relocs are
35083         resolved.
35084
35085 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
35086
35087         [BZ #12469]
35088         * Makeconfig: Remove RANLIB definition.
35089         * Makerules: Don't use RANLIB.
35090         * aclocal.m4: Remove ranlib test.
35091         * configure.in: No need to check for ranlib.
35092         * elf/rtld-Rules: Don't use RANLIB.
35093
35094 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35095
35096         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
35097         protection macro.
35098         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
35099         inclusion protection macro.
35100
35101         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
35102         SIGRTMIN and SIGRTMAX and print information in that case only when
35103         SIGRTMIN is defined.
35104
35105 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
35106
35107         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
35108         arginfo fn returning -1.
35109
35110         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
35111         and thousands string is zero terminated.
35112
35113 2011-02-03  Andreas Schwab  <schwab@redhat.com>
35114
35115         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
35116         sysdeps/unix/sysv/linux/bits/socket.h.
35117
35118 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35119
35120         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
35121         (__CPU_COUNT): Remove old macros.
35122         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
35123         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
35124         (__CPU_ALLOC, __CPU_FREE): Add macros.
35125         (__sched_cpualloc, __sched_cpufree): Add declarations.
35126
35127 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
35128
35129         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
35130         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
35131         * nscd/aicache.c (addhstaiX): Return timeout of added value.
35132         (readdhstai): Return value of addhstaiX call.
35133         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
35134         (addgrbyX): Return value returned by cache_addgr.
35135         (readdgrbyname): Return value returned by addgrbyX.
35136         (readdgrbygid): Likewise.
35137         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
35138         (addpwbyX): Return value returned by cache_addpw.
35139         (readdpwbyname): Return value returned by addhstbyX.
35140         (readdpwbyuid): Likewise.
35141         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
35142         (addservbyX): Return value returned by cache_addserv.
35143         (readdservbyname): Return value returned by addservbyX:
35144         (readdservbyport): Likewise.
35145         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
35146         (addhstbyX): Return value returned by cache_addhst.
35147         (readdhstbyname): Return value returned by addhstbyX.
35148         (readdhstbyaddr): Likewise.
35149         (readdhstbynamev6): Likewise.
35150         (readdhstbyaddrv6): Likewise.
35151         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
35152         (readdinitgroups): Return value returned by addinitgroupsX.
35153         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
35154         (prune_cache): Keep track of timeout value of re-added entries.
35155         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
35156         * nscd/nscd.h: Adjust prototypes of readd* functions.
35157
35158 2011-02-04  Roland McGrath  <roland@redhat.com>
35159
35160         * nis/nis_server.c (nis_servstate): Use the right name for 0.
35161         (nis_stats): Likewise.
35162         * nis/nis_modify.c (nis_modify): Likewise.
35163         * nis/nis_remove.c (nis_remove): Likewise.
35164         * nis/nis_add.c (nis_add): Likewise.
35165
35166         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
35167
35168         * posix/fnmatch_loop.c: Add some consts.
35169
35170         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
35171
35172 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
35173
35174         [BZ #12460]
35175         * config.make.in (config-cflags-novzeroupper): Define.
35176         * configure.in: Substitute libc_cv_cc_novzeroupper.
35177         * elf/Makefile (AVX-CFLAGS): Define.
35178         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
35179         (CFLAGS-tst-auditmod4a.c): Likewise.
35180         (CFLAGS-tst-auditmod4b.c): Likewise.
35181         (CFLAGS-tst-auditmod6b.c): Likewise.
35182         (CFLAGS-tst-auditmod6c.c): Likewise.
35183         (CFLAGS-tst-auditmod7b.c): Likewise.
35184         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
35185
35186 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
35187
35188         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
35189         function to the callback.
35190         Patch partly by Jiri Olsa <jolsa@redhat.com>.
35191
35192 2011-02-02  Andreas Schwab  <schwab@redhat.com>
35193
35194         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
35195         of errno.
35196
35197 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
35198
35199         [BZ #11724]
35200         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
35201         of constructors.
35202         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
35203         of destructors.
35204         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
35205
35206         [BZ #11724]
35207         * elf/Makefile: Add rules to build and run new test.
35208         * elf/tst-initorder.c: New file.
35209         * elf/tst-initorder.exp: New file.
35210         * elf/tst-initordera1.c: New file.
35211         * elf/tst-initordera2.c: New file.
35212         * elf/tst-initordera3.c: New file.
35213         * elf/tst-initordera4.c: New file.
35214         * elf/tst-initorderb1.c: New file.
35215         * elf/tst-initorderb2.c: New file.
35216         * elf/tst-order-a1.c: New file.
35217         * elf/tst-order-a2.c: New file.
35218         * elf/tst-order-a3.c: New file.
35219         * elf/tst-order-a4.c: New file.
35220         * elf/tst-order-b1.c: New file.
35221         * elf/tst-order-b2.c: New file.
35222         * elf/tst-order-main.c: New file.
35223         New test case by George Gensure <werkt0@gmail.com>.
35224
35225 2010-10-01  Andreas Schwab  <schwab@redhat.com>
35226
35227         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35228         decoding ACE if AI_CANONIDN.
35229
35230 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
35231
35232         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
35233
35234 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
35235
35236         * version.h (RELEASE): Bump for 2.13 release.
35237         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
35238
35239         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
35240
35241         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
35242         MADV_NOHUGEPAGE.
35243         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
35244         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
35245         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35246         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35247         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35248         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
35249
35250         * posix/getconf.c: Update copyright year.
35251         * catgets/gencat.c: Likewise.
35252         * csu/version.c: Likewise.
35253         * debug/catchsegv.sh: Likewise.
35254         * debug/xtrace.sh: Likewise.
35255         * elf/ldconfig.c: Likewise.
35256         * elf/ldd.bash.in: Likewise.
35257         * elf/sprof.c (print_version): Likewise.
35258         * iconv/iconv_prog.c: Likewise.
35259         * iconv/iconvconfig.c: Likewise.
35260         * locale/programs/locale.c: Likewise.
35261         * locale/programs/localedef.c: Likewise.
35262         * malloc/memusage.sh: Likewise.
35263         * malloc/mtrace.pl: Likewise.
35264         * nscd/nscd.c (print_version): Likewise.
35265         * nss/getent.c: Likewise.
35266
35267         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
35268         PF_CAIF, and PF_ALG.
35269         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
35270
35271 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
35272
35273         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
35274         (modules-names): Use them.
35275         (ifunc-test-modules, ifunc-pie-tests): Define.
35276         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
35277         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
35278         (test-extras): Likewise.
35279         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
35280         $(compile-command.c).
35281         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
35282         (all-built-dso): Define.
35283         (check-textrel.out, check-execstack.out): Depend on it.
35284
35285         * configure.in: Don't override --enable-multi-arch.
35286
35287 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
35288
35289         [BZ #6812]
35290         * nscd/hstcache.c (tryagain): Define.
35291         (cache_addhst): Return tryagain not notfound for temporary errors.
35292         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
35293         failed.
35294
35295 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
35296
35297         [BZ #10563]
35298         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
35299         to make the syscall.
35300         * sysdeps/unix/sysv/linux/setgroups.c: New file.
35301
35302         [BZ #12378]
35303         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
35304         and fall back to matching as normal character if the string ends before
35305         the matching ']' is found.  This is what POSIX requires.
35306         * posix/testfnm.c: Adjust test result.
35307         * posix/globtest.sh: Adjust test result.  Add new test.
35308         * posix/tst-fnmatch.input: Likewise.
35309         * posix/tst-fnmatch2.c: Add new test.
35310
35311 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
35312
35313         * elf/Makefile (check-execstack): Revert last change.  Depend on
35314         check-execstack.h.
35315         (check-execstack.h): New target.
35316         (generated): Add check-execstack.h.
35317         * elf/check-execstack.c: Include "check-execstack.h".
35318         (main): Revert last change.
35319         (handle_file): Return zero if GNU_STACK is absent and
35320         DEFAULT_STACK_PERMS doesn't include PF_X.
35321
35322 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
35323
35324         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
35325         in child fails because the descriptor is already closed.
35326         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
35327         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
35328         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
35329
35330         [BZ #12397]
35331         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
35332         syscall.
35333
35334         [BZ #10484]
35335         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
35336         temporary buffer used to handle multi lookups locally.
35337         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
35338
35339 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
35340
35341         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
35342         loader is ld.so.
35343
35344 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
35345
35346         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
35347         alignment for SSE2.
35348
35349 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
35350
35351         [BZ #12394]
35352         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
35353         characters.  When rounding increased number of integer digits recompute
35354         number of groups.
35355         * stdio-common/tst-grouping.c: New file.
35356         * stdio-common/Makefile: Add rules to build and run tst-grouping.
35357
35358 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
35359
35360         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
35361         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
35362
35363         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
35364         void.
35365         * bits/select.h: Likewise.
35366
35367 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
35368
35369         * po/ja.po: Update from translation team.
35370
35371 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
35372
35373         [BZ #11155]
35374         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
35375         implementation just like for lxstat, fxstatat, et al.
35376
35377 2010-12-27  Jim Meyering  <meyering@redhat.com>
35378
35379         [BZ #12348]
35380         * posix/regexec.c (build_trtable): Return failure indication upon
35381         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
35382
35383 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
35384
35385         [BZ #12201]
35386         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
35387         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
35388         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
35389         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
35390
35391         [BZ #12207]
35392         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
35393
35394         [BZ #12204]
35395         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
35396         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
35397
35398 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
35399
35400         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
35401         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
35402         script has SORT_BY_INIT_PRIORITY.
35403         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
35404         NO_CTORS_DTORS_SECTIONS is defined.
35405         * elf/soinit.c: Likewise.
35406         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
35407         NO_CTORS_DTORS_SECTIONS is defined.
35408         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
35409         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
35410         * sysdeps/sh/init-first.c: Likewise.
35411         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
35412
35413 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
35414
35415         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
35416         always use the slow path.
35417
35418 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
35419
35420         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
35421         similar rule which adds the sysdep directories to the header search in
35422         order to pick up the correct platform stackinfo.h.
35423         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
35424         perform test if it is, otherwise return successfully without testing.
35425         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
35426         DEFAULT_STACK_PERMS define in stackinfo.h.
35427         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
35428         defined in stackinfo.h.
35429         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
35430         DEFAULT_STACK_PERMS defined in stackinfo.h.
35431         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
35432         * sysdeps/ia64/stackinfo.h: Likewise.
35433         * sysdeps/s390/stackinfo.h: Likewise.
35434         * sysdeps/sh/stackinfo.h: Likewise.
35435         * sysdeps/sparc/stackinfo.h: Likewise.
35436         * sysdeps/x86_64/stackinfo.h: Likewise.
35437         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
35438         PF_X for powerpc64.  Retain PF_X for powerpc32.
35439
35440 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
35441
35442         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
35443         accurately.
35444         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
35445         GETDENTS_64BIT_ALIGNED.
35446
35447 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
35448
35449         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
35450
35451 2010-12-10  Andreas Schwab  <schwab@redhat.com>
35452
35453         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
35454         _GNU_SOURCE.
35455
35456         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
35457         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
35458         Remove __restrict.
35459         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
35460         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
35461
35462 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
35463
35464         [BZ #11655]
35465         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
35466         are initialized.
35467
35468 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
35469
35470         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
35471
35472 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
35473
35474         * po/it.po: Update from translation team.
35475
35476 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
35477
35478         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
35479         unused codes.
35480
35481 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
35482
35483         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
35484
35485 2010-11-24  Andreas Schwab  <schwab@redhat.com>
35486
35487         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
35488         specially.
35489         (gaih_getanswer_slice): Likewise.
35490
35491 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
35492
35493         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
35494
35495 2010-05-31  Petr Baudis  <pasky@suse.cz>
35496
35497         [BZ #11149]
35498         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
35499         silently even in the chroot mode.
35500
35501 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
35502
35503         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
35504         last patch a bit.  Pretty printing
35505
35506 2010-05-31  Petr Baudis <pasky@suse.cz>
35507
35508         [BZ #10085]
35509         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
35510         initialization of skip_initgroups_dyn.
35511
35512 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
35513
35514         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
35515         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
35516
35517 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
35518
35519         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
35520
35521 2010-11-11  Andreas Schwab  <schwab@redhat.com>
35522
35523         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
35524         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
35525         (tst-fnmatch-ENV): Set MALLOC_TRACE.
35526         ($(objpfx)tst-fnmatch-mem): New rule.
35527         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
35528         * posix/tst-fnmatch.c (main): Call mtrace.
35529
35530 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
35531
35532         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35533         Support Intel processor model 6 and model 0x2c.
35534
35535 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
35536
35537         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
35538           signed comparison.
35539
35540 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
35541
35542         [BZ #12205]
35543         * string/test-strncasecmp.c (check_result): New function.
35544         (do_one_test): Use it.
35545         (check1): New function.
35546         (test_main): Use it.
35547         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
35548         Support strcasecmp and strncasecmp.
35549
35550 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
35551
35552         [BZ #12194]
35553         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
35554         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35555
35556 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
35557
35558         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
35559         IFUNC support.
35560         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35561         memset-x86-64.
35562         * sysdeps/x86_64/multiarch/bzero.S: New file.
35563         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
35564         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
35565         * sysdeps/x86_64/multiarch/memset.S: New file.
35566         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
35567         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35568         Set bit_Prefer_SSE_for_memop for Intel processors.
35569         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
35570         Define.
35571         (index_Prefer_SSE_for_memop): Define.
35572         (HAS_PREFER_SSE_FOR_MEMOP): Define.
35573
35574 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
35575
35576         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
35577         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
35578
35579 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
35580
35581         [BZ #12191]
35582         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
35583         (__x86_64_raw_data_cache_size_half): Likewise.
35584         (__x86_64_raw_shared_cache_size): Likewise.
35585         (__x86_64_raw_shared_cache_size_half): Likewise.
35586
35587         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
35588         (__x86_64_raw_data_cache_size_half): Likewise.
35589         (__x86_64_raw_shared_cache_size): Likewise.
35590         (__x86_64_raw_shared_cache_size_half): Likewise.
35591         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
35592         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
35593         and __x86_64_raw_shared_cache_size_half.  Round
35594         __x86_64_data_cache_size_half, __x86_64_data_cache_size
35595         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
35596         to multiple of 256 bytes.
35597
35598 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
35599
35600         [BZ #12167]
35601         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
35602         of inacessible symlinks.  Verify result of symlink before returning it.
35603         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
35604         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
35605
35606 2010-10-28  Erich Ritz  <erichritz@gmail.com>
35607
35608         * math/math.h (isinf): Fix typo in comment.
35609
35610 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
35611
35612         * po/da.po: Update from translation team.
35613
35614 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
35615
35616         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
35617         is added to the list.
35618
35619 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35620             Ulrich Drepper  <drepper@gmail.com>
35621
35622         * elf/dl-object.c (_dl_new_object): Don't append the new object to
35623         the global list here.  Move code to...
35624         (_dl_add_to_namespace_list): ...here.  New function.
35625         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
35626         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
35627         * elf/dl-load.c (lose): Don't remove the element from the list.
35628         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
35629         (_dl_map_object): Likewise.
35630
35631 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
35632
35633         [BZ #12159]
35634         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
35635         into all bytes of SSE register.
35636         Patch by Richard Li <richardpku@gmail.com>.
35637
35638 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
35639
35640         [BZ #12140]
35641         * malloc/malloc.c (_int_free): Fill correct number of bytes when
35642         perturbing.
35643
35644 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
35645
35646         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
35647         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
35648         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
35649         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
35650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
35651         submachine.
35652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
35653
35654 2010-10-22  Andreas Schwab  <schwab@redhat.com>
35655
35656         * include/dlfcn.h (__RTLD_SECURE): Define.
35657         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
35658         mode & __RTLD_SECURE instead.
35659         (open_path): Rename preloaded parameter to secure.
35660         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
35661         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
35662         * elf/dl-deps.c (openaux): Likewise.
35663         * elf/rtld.c (struct map_args): Remove is_preloaded.
35664         (map_doit): Don't use it.
35665         (dl_main): Likewise.
35666         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
35667         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
35668
35669 2010-09-09  Andreas Schwab  <schwab@redhat.com>
35670
35671         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
35672         (sysd-rules-targets): Remove duplicates.
35673         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
35674         rtld-%.$o dependency.
35675
35676 2010-10-18  Andreas Schwab  <schwab@redhat.com>
35677
35678         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
35679         _dl_map_object do it.
35680
35681 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
35682
35683         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
35684         fast fma builtins, define the macros in the C99 standard.
35685         (FP_FAST_FMAF): Likewise.
35686         (FP_FAST_FMAL): Likewise.
35687         * sysdeps/x86_64/bits/mathdef.h: Likewise.
35688
35689         * bits/mathdef.h: Update copyright year.
35690         * sysdeps/powerpc/bits/mathdef.h: Likewise.
35691
35692 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
35693
35694         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
35695         builtins, define the macros in the C99 standard.
35696         (FP_FAST_FMAF): Likewise.
35697         (FP_FAST_FMAL): Likewise.
35698         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
35699         multiply/add.
35700         (FP_FAST_FMAF): Likewise.
35701
35702 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
35703
35704         [BZ #3268]
35705         * math/libm-test.inc (fma_test): Some new testcases.
35706         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
35707         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
35708         y and infinite z.  Do multiplication by C already in long double.
35709         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
35710         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
35711         y and infinite z.  Do bitwise or of inexact bit into u.d.
35712         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
35713         * sysdeps/i386/fpu/s_fmaf.S: Removed.
35714         * sysdeps/i386/fpu/s_fma.S: Removed.
35715         * sysdeps/i386/fpu/s_fmal.S: Removed.
35716
35717 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
35718
35719         [BZ #3268]
35720         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
35721         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
35722         computation is not scheduled after fetestexcept.  Fix value
35723         of minimum denormal long double.
35724
35725 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
35726
35727         [BZ #3268]
35728         * math/libm-test.inc (fma_test): Add some more tests.
35729         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
35730         correctly.
35731
35732 2010-10-15  Andreas Schwab  <schwab@redhat.com>
35733
35734         * scripts/data/localplt-s390-linux-gnu.data: New file.
35735         * scripts/data/localplt-s390x-linux-gnu.data: New file.
35736
35737 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
35738
35739         [BZ #3268]
35740         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
35741         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
35742         instead of dbl-64.
35743         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
35744         inlines.
35745         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
35746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
35747         if one of x and y is very large and the other is subnormal.
35748         * sysdeps/s390/fpu/s_fmaf.c: New file.
35749         * sysdeps/s390/fpu/s_fma.c: New file.
35750         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
35751         * sysdeps/powerpc/fpu/s_fma.S: New file.
35752         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
35753         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
35754         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
35755
35756 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
35757
35758         [BZ #3268]
35759         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
35760         fma tests.
35761         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
35762         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
35763         * sysdeps/i386/i686/multiarch/s_fma.c: Include
35764         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
35765         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
35766         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
35767         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
35768
35769 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
35770
35771         [BZ #12078]
35772         * posix/regcomp.c (parse_branch): One more memory leak plugged.
35773         * posix/bug-regex31.input: Add test case.
35774
35775 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
35776
35777         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
35778         * posix/bug-regex31.input: New file.
35779
35780         [BZ #12078]
35781         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
35782         (parse_sub_exp): Fix last change, use postorder.
35783
35784         * posix/bug-regex31.c: New file.
35785         * posix/Makefile: Add rules to build and run bug-regex31.
35786
35787         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
35788
35789         [BZ #12078]
35790         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
35791
35792         [BZ #12108]
35793         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
35794         to have entries in sys_siglist.
35795
35796         [BZ #12093]
35797         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
35798         be NULL.
35799
35800 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
35801
35802         [BZ #3268]
35803         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
35804         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
35805         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
35806         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
35807         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
35808         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
35809         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
35810         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
35811         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
35812         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
35813         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
35814         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
35815         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35816         * math/ftestexcept.c (fetestexcept): Likewise.
35817         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
35818         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
35819         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
35820         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
35821         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
35822         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
35823         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
35824
35825 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
35826
35827         [BZ #12107]
35828         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
35829         newline.
35830
35831 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
35832
35833         * string/bug-strstr1.c: New file.
35834         * string/Makefile: Add rules to build and run bug-strstr1.
35835
35836 2010-10-05  Eric Blake  <eblake@redhat.com>
35837
35838         [BZ #12092]
35839         * string/str-two-way.h (two_way_long_needle): Always clear memory
35840         when skipping input due to the shift table.
35841
35842 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
35843
35844         [BZ #12005]
35845         * malloc/mcheck.c: Handle large requests.
35846
35847         [BZ #12077]
35848         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
35849         for strncmp and strncasecmp.
35850         * string/stratcliff.c: Add tests for strcmp and strncmp.
35851         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
35852
35853 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35854
35855         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
35856         __set_fpscr.
35857
35858 2010-09-30  Andreas Jaeger  <aj@suse.de>
35859
35860         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
35861         (CGROUP_SUPER_MAGIC): Define.
35862         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35863         Handle btrfs and cgroup file systems.
35864         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
35865         Likewise.
35866
35867 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
35868
35869         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
35870         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
35871
35872 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35873
35874         [BZ #12067]
35875         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
35876         trying to locate the ELF header.
35877
35878 2010-09-27  Andreas Schwab  <schwab@redhat.com>
35879
35880         [BZ #11611]
35881         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
35882         Mask out sign-bit copies when constructing f_fsid.
35883
35884 2010-09-24  Petr Baudis <pasky@suse.cz>
35885
35886         * debug/stack_chk_fail_local.c: Add missing licence exception.
35887         * debug/warning-nop.c: Likewise.
35888
35889 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
35890
35891         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
35892         implementing getdents64 using getdents syscall, set d_type if
35893         __ASSUME_GETDENTS32_D_TYPE.
35894
35895 2010-09-16  Andreas Schwab  <schwab@redhat.com>
35896
35897         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
35898         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
35899
35900 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
35901
35902         [BZ #12037]
35903         * posix/unistd.h: Undo change of feature selection for ftruncate from
35904         2010-01-11.
35905
35906 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
35907
35908         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
35909         detection.
35910
35911 2010-09-20  Andreas Schwab  <schwab@redhat.com>
35912
35913         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
35914         fanotify_mark.
35915         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
35916
35917 2010-09-14  Andreas Schwab  <schwab@redhat.com>
35918
35919         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
35920         variables after CHECK_SP call.
35921         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
35922
35923 2010-09-13  Andreas Schwab  <schwab@redhat.com>
35924             Ulrich Drepper  <drepper@redhat.com>
35925
35926         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
35927         re-relocationg ld.so.
35928         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
35929         _dl_init_paths call.
35930         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
35931         here anymore.
35932
35933 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
35934
35935         * resolv/res_init.c (__res_vinit): Count the default server we added.
35936
35937 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
35938             Ulrich Drepper  <drepper@redhat.com>
35939
35940         [BZ #11968]
35941         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
35942         (____longjmp_chk): Use %ebx for saving value across system call.
35943         Add unwind info.
35944
35945 2010-09-06  Andreas Schwab  <schwab@redhat.com>
35946
35947         * manual/Makefile: Don't mix pattern rules with normal rules.
35948
35949 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
35950
35951         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
35952         operation.
35953         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
35954         * libio/iofopncook.c (_IO_cookie_init): Likewise.
35955         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
35956         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
35957         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
35958         Likewise.
35959
35960 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
35961
35962         [BZ #11979]
35963         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
35964         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
35965
35966 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
35967
35968         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
35969         * sysdeps/x86_64/addmul_1.S: Likewise.
35970         * sysdeps/x86_64/lshift.S: Likewise.
35971         * sysdeps/x86_64/mul_1.S: Likewise.
35972         * sysdeps/x86_64/rshift.S: Likewise.
35973         * sysdeps/x86_64/sub_n.S: Likewise.
35974         * sysdeps/x86_64/submul_1.S: Likewise.
35975
35976 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35977
35978         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
35979         Define __sched_param instead of SCHED_* and sched_param when
35980         <bits/sched.h> is included with __need_schedparam defined.
35981         * bits/sched.h [__need_schedparam]
35982         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
35983         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
35984         (__defined_schedparam): Define to 1.
35985         (__sched_param): New structure, identical to sched_param.
35986         (__need_schedparam): Undefine.
35987
35988 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
35989
35990         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
35991         (epoll_create1): Declare.
35992
35993         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
35994
35995 2010-08-31  Andreas Schwab  <schwab@redhat.com>
35996
35997         [BZ #7066]
35998         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
35999         shifting retval into place.
36000
36001 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
36002
36003         * nis/rpcsvc/nis.h: Update copyright notice.
36004         * nis/rpcsvc/nis.x: Likewise.
36005         * nis/rpcsvc/nis_callback.h: Likewise.
36006         * nis/rpcsvc/nis_callback.x: Likewise.
36007         * nis/rpcsvc/nis_object.x: Likewise.
36008         * nis/rpcsvc/nis_tags.h: Likewise.
36009         * nis/rpcsvc/yp.h: Likewise.
36010         * nis/rpcsvc/yp.x: Likewise.
36011         * nis/rpcsvc/ypupd.h: Likewise.
36012         * nis/yp_xdr.c: Likewise.
36013         * nis/ypupdate_xdr.c: Likewise.
36014
36015         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
36016         mainly the body of pmap_getport.  Add parameters to specify timeouts.
36017         (pmap_getport): Use __libc_rpc_getport.
36018         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
36019         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
36020         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
36021
36022 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
36023
36024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
36025         fanotify_mark.
36026
36027 2010-08-27  Roland McGrath  <roland@redhat.com>
36028
36029         * sysdeps/i386/i686/multiarch/Makefile
36030         (CFLAGS-varshift.c): New variable.
36031
36032 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
36033
36034         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
36035         * sysdeps/i386/i686/multiarch/varshift.c: New file.
36036
36037         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
36038
36039         * sysdeps/x86_64/strlen.S: Minimal code improvement.
36040
36041 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
36042
36043         * sysdeps/x86_64/strlen.S: Unroll the loop.
36044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36045         strlen-sse2 strlen-sse2-bsf.
36046         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
36047         __strlen_no_bsf if bit_Slow_BSF is set.
36048         (__strlen_sse42): Removed.
36049         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
36050         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
36051
36052 2010-08-25  Roland McGrath  <roland@redhat.com>
36053
36054         * sysdeps/x86_64/multiarch/varshift.S: File removed.
36055         * sysdeps/x86_64/multiarch/varshift.c: New file.
36056         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
36057         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
36058         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
36059         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
36060
36061 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
36062
36063         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36064         strlen-sse2 strlen-sse2-bsf.
36065         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
36066         __strlen_sse2_bsf if bit_Slow_BSF is unset.
36067         (__strlen_sse2): Removed.
36068         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
36069         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
36070         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
36071         bit_Slow_BSF for Atom.
36072         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
36073         (index_Slow_BSF): Define.
36074         (HAS_SLOW_BSF): Define.
36075
36076 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
36077
36078         [BZ #10851]
36079         * resolv/res_init.c (__res_vinit): When no server address at all
36080         is given default to loopback.
36081
36082 2010-08-24  Roland McGrath  <roland@redhat.com>
36083
36084         * configure.in: Remove config-name.h generation.
36085         * configure: Regenerated.
36086         * config-name.in: File removed.
36087         * scripts/config-uname.sh: New file.
36088         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
36089         ($(objdir)config-name.h): New target.
36090
36091         * sunrpc/rpc_parse.h: Avoid nested comment.
36092
36093 2010-08-24  Richard Henderson  <rth@redhat.com>
36094             Ulrich Drepper  <drepper@redhat.com>
36095             H.J. Lu  <hongjiu.lu@intel.com>
36096
36097         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
36098         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
36099         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
36100         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
36101         _mm_alignr_epi8 with _mm_loadu_si128.
36102         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
36103         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
36104         (__m128i_shift_right): Removed.
36105         * sysdeps/i386/i686/multiarch/varshift.h: New file.
36106         * sysdeps/i386/i686/multiarch/varshift.S: New file.
36107         * sysdeps/x86_64/multiarch/varshift.h: New file.
36108         * sysdeps/x86_64/multiarch/varshift.S: New file.
36109
36110 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
36111
36112         * configure.in: Move assembler checks to before sysdep dir checking.
36113
36114 2010-08-20  Petr Baudis  <pasky@suse.cz>
36115
36116         * LICENSES: Sync the sunrpc license.
36117
36118 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
36119
36120         * sunrpc/auth_des.c: Update copyright notice once again.
36121         * sunrpc/auth_none.c: Likewise.
36122         * sunrpc/auth_unix.c: Likewise.
36123         * sunrpc/authdes_prot.c: Likewise.
36124         * sunrpc/authuxprot.c: Likewise.
36125         * sunrpc/bindrsvprt.c: Likewise.
36126         * sunrpc/clnt_gen.c: Likewise.
36127         * sunrpc/clnt_perr.c: Likewise.
36128         * sunrpc/clnt_raw.c: Likewise.
36129         * sunrpc/clnt_simp.c: Likewise.
36130         * sunrpc/clnt_tcp.c: Likewise.
36131         * sunrpc/clnt_udp.c: Likewise.
36132         * sunrpc/clnt_unix.c: Likewise.
36133         * sunrpc/des_crypt.c: Likewise.
36134         * sunrpc/des_soft.c: Likewise.
36135         * sunrpc/get_myaddr.c: Likewise.
36136         * sunrpc/getrpcport.c: Likewise.
36137         * sunrpc/key_call.c: Likewise.
36138         * sunrpc/key_prot.c: Likewise.
36139         * sunrpc/openchild.c: Likewise.
36140         * sunrpc/pm_getmaps.c: Likewise.
36141         * sunrpc/pm_getport.c: Likewise.
36142         * sunrpc/pmap_clnt.c: Likewise.
36143         * sunrpc/pmap_prot.c: Likewise.
36144         * sunrpc/pmap_prot2.c: Likewise.
36145         * sunrpc/pmap_rmt.c: Likewise.
36146         * sunrpc/rpc/auth.h: Likewise.
36147         * sunrpc/rpc/auth_unix.h: Likewise.
36148         * sunrpc/rpc/clnt.h: Likewise.
36149         * sunrpc/rpc/des_crypt.h: Likewise.
36150         * sunrpc/rpc/key_prot.h: Likewise.
36151         * sunrpc/rpc/netdb.h: Likewise.
36152         * sunrpc/rpc/pmap_clnt.h: Likewise.
36153         * sunrpc/rpc/pmap_prot.h: Likewise.
36154         * sunrpc/rpc/pmap_rmt.h: Likewise.
36155         * sunrpc/rpc/rpc.h: Likewise.
36156         * sunrpc/rpc/rpc_des.h: Likewise.
36157         * sunrpc/rpc/rpc_msg.h: Likewise.
36158         * sunrpc/rpc/svc.h: Likewise.
36159         * sunrpc/rpc/svc_auth.h: Likewise.
36160         * sunrpc/rpc/types.h: Likewise.
36161         * sunrpc/rpc/xdr.h: Likewise.
36162         * sunrpc/rpc_clntout.c: Likewise.
36163         * sunrpc/rpc_cmsg.c: Likewise.
36164         * sunrpc/rpc_common.c: Likewise.
36165         * sunrpc/rpc_cout.c: Likewise.
36166         * sunrpc/rpc_dtable.c: Likewise.
36167         * sunrpc/rpc_hout.c: Likewise.
36168         * sunrpc/rpc_main.c: Likewise.
36169         * sunrpc/rpc_parse.c: Likewise.
36170         * sunrpc/rpc_parse.h: Likewise.
36171         * sunrpc/rpc_prot.c: Likewise.
36172         * sunrpc/rpc_sample.c: Likewise.
36173         * sunrpc/rpc_scan.c: Likewise.
36174         * sunrpc/rpc_scan.h: Likewise.
36175         * sunrpc/rpc_svcout.c: Likewise.
36176         * sunrpc/rpc_tblout.c: Likewise.
36177         * sunrpc/rpc_util.c: Likewise.
36178         * sunrpc/rpc_util.h: Likewise.
36179         * sunrpc/rpcinfo.c: Likewise.
36180         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
36181         * sunrpc/rpcsvc/key_prot.x: Likewise.
36182         * sunrpc/rpcsvc/klm_prot.x: Likewise.
36183         * sunrpc/rpcsvc/mount.x: Likewise.
36184         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
36185         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
36186         * sunrpc/rpcsvc/rex.x: Likewise.
36187         * sunrpc/rpcsvc/rstat.x: Likewise.
36188         * sunrpc/rpcsvc/rusers.x: Likewise.
36189         * sunrpc/rpcsvc/sm_inter.x: Likewise.
36190         * sunrpc/rpcsvc/spray.x: Likewise.
36191         * sunrpc/rpcsvc/yppasswd.x: Likewise.
36192         * sunrpc/rtime.c: Likewise.
36193         * sunrpc/svc.c: Likewise.
36194         * sunrpc/svc_auth.c: Likewise.
36195         * sunrpc/svc_authux.c: Likewise.
36196         * sunrpc/svc_raw.c: Likewise.
36197         * sunrpc/svc_run.c: Likewise.
36198         * sunrpc/svc_simple.c: Likewise.
36199         * sunrpc/svc_tcp.c: Likewise.
36200         * sunrpc/svc_udp.c: Likewise.
36201         * sunrpc/svc_unix.c: Likewise.
36202         * sunrpc/svcauth_des.c: Likewise.
36203         * sunrpc/xcrypt.c: Likewise.
36204         * sunrpc/xdr.c: Likewise.
36205         * sunrpc/xdr_array.c: Likewise.
36206         * sunrpc/xdr_float.c: Likewise.
36207         * sunrpc/xdr_mem.c: Likewise.
36208         * sunrpc/xdr_rec.c: Likewise.
36209         * sunrpc/xdr_ref.c: Likewise.
36210         * sunrpc/xdr_sizeof.c: Likewise.
36211         * sunrpc/xdr_stdio.c: Likewise.
36212
36213         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
36214         handling.
36215
36216 2010-08-19  Andreas Schwab  <schwab@redhat.com>
36217
36218         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
36219
36220 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
36221
36222         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
36223         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
36224         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
36225         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
36226         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
36227         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
36228         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
36229         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
36230         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
36231         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
36232         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
36233         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
36234         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
36235         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
36236
36237 2010-07-26  Anton Blanchard  <anton@samba.org>
36238
36239         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
36240         * malloc/arena.c (heap_trim): Likewise.
36241
36242 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
36243
36244         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
36245         here.  Not...
36246         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
36247         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
36248
36249 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
36250
36251         * sysdeps/i386/elf/Makefile: New file.
36252
36253 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
36254
36255         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
36256         from fanotify_init.
36257         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
36258         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
36259
36260 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
36261
36262         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
36263         of strncasecmp_l.
36264         * sysdeps/multiarch/strcmp.S: Likewise.
36265
36266 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
36267
36268         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
36269         strncase_l-nonascii.
36270         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
36271         Add strncase_l-ssse3.
36272         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
36273         * sysdeps/x86_64/strcmp.S: Likewise.
36274         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
36275         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
36276         * sysdeps/x86_64/strncase.S: New file.
36277         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
36278         * sysdeps/x86_64/strncase_l.S: New file.
36279         * string/Makefile (strop-tests): Add strncasecmp.
36280         * string/test-strncasecmp.c: New file.
36281
36282         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
36283         warning.
36284
36285         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
36286         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
36287
36288 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
36289
36290         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
36291
36292 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
36293
36294         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
36295         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
36296         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
36297
36298 2010-05-01  Alan Modra  <amodra@gmail.com>
36299
36300         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
36301         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
36302         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
36303         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
36304         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
36305         tidying.  Don't tail-call __sigjmp_save for static lib.
36306         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
36307         save location.
36308         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
36309         (CALL_MCOUNT): Add eh info, and nop after bl.
36310         (TAIL_CALL_SYSCALL_ERROR): New macro.
36311         (PSEUDO_RET): Use it.
36312         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
36313         Correct save location of integer regs and cr.
36314         (_dl_profile_resolve): Correct cr save location.  Delete nops
36315         after bl when SHARED.  Reduce cfi size a little by better
36316         placement of cfi directives.
36317         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
36318         make a stack frame.  Instead use parm save area as a temp.
36319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
36320         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
36321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
36322         Don't make a stack frame for parent, use parm save area.
36323         Increase child stack frame to 112 bytes.  Don't save unused reg,
36324         and adjust reg usage.  Set up cfi on error recovery and
36325         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
36326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
36327         (__makecontext): Add dummy nop after jump to exit.
36328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
36329         Use correct parm save area and cr save, reduce stack frame.
36330         Correct cfi for possible PSEUDO_RET frame setup.
36331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
36332         Branch to local label emitted by PSEUDO_RET rather than
36333         __syscall_error.
36334
36335 2010-08-12  Andreas Schwab  <schwab@redhat.com>
36336
36337         [BZ #11904]
36338         * locale/programs/locale.c (print_assignment): New function.
36339         (show_locale_vars): Use it.
36340
36341 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
36342
36343         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
36344         field.
36345         (struct statfs64): Likewise.
36346         (_STATFS_F_FLAGS): Define.
36347         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
36348         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
36349         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
36350         (ST_VALID): Define locally.
36351         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
36352         __statvfs_getflags, use the provided value.
36353         * sysdeps/unix/sysv/linux/kernel-features.h: Define
36354         __ASSUME_STATFS_F_FLAGS.
36355
36356         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
36357
36358         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
36359         Add sys/fanotify.h.
36360         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
36361         fanotify_mask for GLIBC_2.13.
36362         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
36363         fanotify_init and fanotify_mark.
36364         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
36365         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
36366
36367         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
36368         Add prlimit.
36369         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
36370         prlimit64 for GLIBC_2.13.
36371         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
36372         prlimit64.
36373         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
36374         syscall.
36375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
36376         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
36377         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
36378         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
36379         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
36380         add prlimit alias.
36381         * sysdeps/unix/sysv/linux/prlimit.c: New file.
36382
36383         [BZ #11903]
36384         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
36385         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
36386
36387         * nss/Makefile: Add rules to build and run tst-nss-test1.
36388         * shlib-versions: Add entry for libnss_test1.
36389         * nss/nss_test1.c: New file.
36390         * nss/tst-nss-test1.c: New file.
36391
36392         * nss/nsswitch.c (__nss_database_custom): Define new variable.
36393         (__nss_configure_lookup): Set appropriate entry in
36394         __nss_configure_lookup to true.
36395         * nss/nsswitch.h: Define enum with indeces of databases in
36396         databases and __nss_database_custom arrays.  Declare
36397         __nss_database_custom.
36398         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
36399         to avoid using nscd when custom rules are installed.
36400         * nss/getXXbyYY_r.c: Likewise.
36401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
36402
36403         * nss/nss_files/files-parse.c: Whitespace fixes.
36404
36405 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
36406
36407         [BZ #11883]
36408         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
36409         * posix/fnmatch_loop.c: Likewise.
36410
36411 2010-07-17  Andi Kleen  <ak@linux.intel.com>
36412
36413         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
36414         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
36415         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
36416         * Versions.def [GLIBC_2.13]: Add.
36417
36418 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
36419
36420         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36421         Also fail if tpwd after pwuid call is NULL.
36422
36423 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36424
36425         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
36426         when converting to ms.
36427
36428 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36429
36430         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
36431         EOPNOTSUPP errors with ENOTTY.
36432         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
36433         EOPNOTSUPP errors with ENOTTY.
36434
36435 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
36436
36437         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
36438         Add strcasecmp_l-ssse3.
36439         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
36440         strcasecmp.
36441         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
36442         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
36443         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
36444
36445 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
36446
36447         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
36448
36449         * string/Makefile (strop-tests): Add strcasecmp.
36450         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
36451         strcasecmp_l-nonascii.
36452         (gen-as-const-headers): Add locale-defines.sym.
36453         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
36454         * sysdeps/x86_64/strcasecmp.S: New file.
36455         * sysdeps/x86_64/strcasecmp_l.S: New file.
36456         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
36457         * sysdeps/x86_64/locale-defines.sym: New file.
36458         * string/test-strcasecmp.c: New file.
36459
36460         * string/test-strcasestr.c: Test both ends of the range of characters.
36461         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
36462
36463 2010-07-29  Roland McGrath  <roland@redhat.com>
36464
36465         [BZ #11856]
36466         * manual/locale.texi (Yes-or-No Questions): Fix example code.
36467
36468 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
36469
36470         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
36471         for ld.so.
36472
36473 2010-07-27  Andreas Schwab  <schwab@redhat.com>
36474
36475         * manual/memory.texi (Malloc Tunable Parameters): Document
36476         M_PERTURB.
36477
36478 2010-07-26  Roland McGrath  <roland@redhat.com>
36479
36480         [BZ #11840]
36481         * configure.in (-fgnu89-inline check): Set and substitute
36482         gnu89_inline, not libc_cv_gnu89_inline.
36483         * configure: Regenerated.
36484         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
36485
36486 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
36487
36488         * string/test-strnlen.c: New file.
36489         * string/Makefile (strop-tests): Add strnlen.
36490         * string/tester.c (test_strnlen): Add a few more test cases.
36491         * string/tst-strlen.c: Better error reporting.
36492
36493         * sysdeps/x86_64/strnlen.S: New file.
36494
36495 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
36496
36497         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
36498         lower-latency instructions.
36499
36500 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
36501
36502         * string/test-strcasestr.c: New file.
36503         * string/test-strstr.c: New file.
36504         * string/Makefile (strop-tests): Add strstr and strcasestr.
36505         * string/str-two-way.h: Don't undefine MAX.
36506         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
36507
36508 2010-07-21  Andreas Schwab  <schwab@redhat.com>
36509
36510         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36511         strcasestr-nonascii.
36512         (CFLAGS-strcasestr-nonascii.c): Define.
36513         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
36514         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
36515         Remove unused attribute.
36516
36517 2010-07-20  Roland McGrath  <roland@redhat.com>
36518
36519         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
36520         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
36521         ld.so.cache was broken.  With it, there is no way to disable dsocaps
36522         like LD_HWCAP_MASK can disable hwcaps.
36523
36524 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
36525
36526         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
36527
36528 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
36529
36530         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
36531         call in strcasestr.
36532         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
36533         __strcasestr_sse42_nonascii.
36534         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
36535         strcasestr-nonascii.c.
36536         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
36537
36538 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
36539
36540         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
36541         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
36542         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
36543         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
36544
36545 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
36546
36547         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
36548         fcntl.
36549
36550 2010-07-06  Andreas Schwab  <schwab@redhat.com>
36551
36552         [BZ #11577]
36553         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
36554         dl_signal_cerror.
36555
36556 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
36557
36558         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
36559         _PC_PIPE_BUF using F_GETPIPE_SZ.
36560
36561 2010-07-05  Roland McGrath  <roland@redhat.com>
36562
36563         * manual/arith.texi (Rounding Functions): Fix rint description
36564         implicit in round description.
36565
36566 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
36567
36568         * elf/Makefile: Fix linking for a few tests to make recent linker
36569         happy.
36570
36571 2010-06-30  Andreas Schwab  <schwab@redhat.com>
36572
36573         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
36574         $(common-objpfx)libc_nonshared.a.
36575
36576 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
36577
36578         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
36579         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
36580         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
36581         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
36582         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
36583         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
36584         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
36585         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
36586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
36587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
36588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
36589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
36590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
36591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
36592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
36593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
36594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
36595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
36596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
36597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
36598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
36599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
36600         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
36601         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
36602         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
36603         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
36604         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
36605         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
36606         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
36607         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
36608         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
36609         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
36610         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
36611         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
36612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
36613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
36614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
36615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
36616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
36617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
36618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
36619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
36620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
36621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
36622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
36623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
36624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
36625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
36626
36627 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
36628
36629         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
36630         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
36631         * string/memmove.c (memmove): Renamed to ...
36632         (MEMMOVE): ...this.  Default to memmove.
36633         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
36634         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
36635         (END_CHK): Define.
36636         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36637         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
36638         mempcpy-ssse3-back memmove-ssse3-back.
36639         * sysdeps/x86_64/multiarch/bcopy.S: New file .
36640         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
36641         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
36642         * sysdeps/x86_64/multiarch/memcpy.S: New file.
36643         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
36644         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
36645         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
36646         * sysdeps/x86_64/multiarch/memmove.c: New file.
36647         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
36648         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
36649         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
36650         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
36651         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
36652         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
36653         Define.
36654         (index_Fast_Copy_Backward): Define.
36655         (HAS_ARCH_FEATURE): Define.
36656         (HAS_FAST_REP_STRING): Define.
36657         (HAS_FAST_COPY_BACKWARD): Define.
36658
36659 2010-06-21  Andreas Schwab  <schwab@redhat.com>
36660
36661         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36662         Restore proper fallback handling.
36663
36664 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
36665
36666         [BZ #11701]
36667         * posix/group_member.c (__group_member): Correct checking loop.
36668
36669         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
36670         OOM in getpwuid_r correctly.  Return error number when the caller
36671         should return, otherwise -1.
36672         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
36673         call returning > 0 value.
36674         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
36675
36676 2010-06-07  Andreas Schwab  <schwab@redhat.com>
36677
36678         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
36679         libc_nonshared.a from targets in modules-names.
36680
36681 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
36682
36683         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
36684         requires it.
36685
36686 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
36687
36688         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
36689         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
36690         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
36691         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
36692
36693 2010-06-02  Andreas Schwab  <schwab@redhat.com>
36694
36695         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
36696
36697 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
36698
36699         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
36700         and F_GETPIPE_SZ.
36701         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36702         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36703         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36704         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36705         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36706         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
36707
36708 2010-06-14  Roland McGrath  <roland@redhat.com>
36709
36710         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
36711
36712 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
36713
36714         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
36715         __REDIRECT followed by __THROW.
36716         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
36717         * posix/getopt.h (getopt): Likewise.
36718
36719 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
36720
36721         * hurd/lookup-at.c (__file_name_lookup_at): Accept
36722         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
36723         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
36724         in AT_FLAGS.
36725         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
36726         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
36727
36728 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
36729
36730         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
36731
36732 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
36733
36734         [BZ #11640]
36735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36736         Properly check family and model.
36737
36738 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
36739
36740         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
36741
36742 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
36743
36744         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
36745
36746 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
36747
36748         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
36749         symbol reference.
36750
36751 2010-05-19  Andreas Schwab  <schwab@redhat.com>
36752
36753         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
36754         symbol reference.
36755
36756 2010-05-21  Andreas Schwab  <schwab@redhat.com>
36757
36758         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
36759         and internal_recvmmsg.
36760         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
36761         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
36762         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
36763         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
36764
36765         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
36766         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
36767         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
36768
36769 2010-05-20  Andreas Schwab  <schwab@redhat.com>
36770
36771         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
36772
36773 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
36774
36775         POWER7 optimizations.
36776         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
36777         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
36778
36779 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
36780
36781         * version.h: Update for 2.13 development version.
36782
36783 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
36784
36785         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
36786         exceptions.  Return 0.
36787
36788 2010-05-07  Roland McGrath  <roland@redhat.com>
36789
36790         * elf/ldconfig.c (main): Add a const.
36791
36792 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
36793
36794         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
36795         (args_options): Add no-idn option.
36796         (ahosts_keys_int): Add idn_flags to ai_flags.
36797         (parse_option): Handle 'i' option to clear idn_flags.
36798
36799         * malloc/malloc.c (_int_free): Possible race in the most recently
36800         added check.  Only act on the data if no current modification
36801         happened.
36802
36803 See ChangeLog.17 for earlier changes.