Correct types of fields in libm-test.inc structures.
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/libm-test.inc (struct test_fF_f1_data): Change type of
4         extra_test to int.
5         (struct test_f_i_data): Change type of max_ulp to int.
6
7         * math/libm-test.inc (test_ffI_f1_data): New type.
8         (RUN_TEST_LOOP_ffI_f1): New macro.
9         (remquo_test_data): New variable.
10         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
11
12         * setjmp/tst-setjmp-fp.c: New file.
13         * setjmp/Makefile (tests): Add tst-setjmp-fp.
14         (link-libm): New variable.
15         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
16
17         * math/libm-test.inc (struct test_f_i_data): New type.
18         (RUN_TEST_LOOP_f_i): New macro.
19         (RUN_TEST_LOOP_f_i_tg): Likewise.
20         (fpclassify_test_data): New variable.
21         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
22         (ilogb_test_data): New variable.
23         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
24
25         * math/libm-test.inc (scalbln_test): Correct function name in END
26         call.
27
28         * math/libm-test.inc (struct test_f_f1_data): Add comment.
29         (RUN_TEST_LOOP_fI_f1): New macro.
30         (frexp_test_data): New variable.
31         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
32
33         * math/libm-test.inc (struct test_fF_f1_data): New type.
34         (RUN_TEST_LOOP_fF_f1): New macro.
35         (modf_test_data): New variable.
36         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
37
38         * math/libm-test.inc (struct test_f_f1_data): New type.
39         (RUN_TEST_LOOP_f_f1): New macro.
40         (gamma_test_data): New variable.
41         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
42         (lgamma_test_data): New variable.
43         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
44
45 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
46
47         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
49         (main): Comment "tls" pseudo-hwcap.
50
51 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
52
53         * math/libm-test.inc (struct test_fl_f_data): New type.
54         (RUN_TEST_LOOP_fl_f): New variable.
55         (scalbln_test_data): New variable.
56         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
57
58         * math/libm-test.inc (struct test_fi_f_data): New type.
59         (RUN_TEST_LOOP_fi_f): New macro.
60         (ldexp_test_data): New variable.
61         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
62         (scalbn_test_data): New variable.
63         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
64
65         * math/libm-test.inc (struct test_c_f_data): New type.
66         (RUN_TEST_LOOP_c_f): New macro.
67         (cabs_test_data): New variable.
68         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
69         (carg_test_data): New variable.
70         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
71         (cimag_test_data): New variable.
72         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
73         (creal_test_data): New variable.
74         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
75
76         * math/libm-test.inc (struct test_if_f_data): New type.
77         (RUN_TEST_LOOP_if_f): New macro.
78         (jn_test_data): New variable.
79         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
80         (yn_test_data): New variable.
81         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
82
83         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
84
85 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86
87         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
88         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
89
90 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
91
92         * benchtests/Makefile (CPPFLAGS-nonlib): Add
93         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
94         (bench-deps): Add bench-timing.h.
95         * benchtests-bench-skeleton.c: Include bench-timing.h.
96         (main): Use TIMING_* macros instead of clock_gettime.
97         * benchtests/bench-timing.h: New file.
98
99         [BZ #14582]
100         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
101         Renamed from _LIB_VERSION.
102         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
103
104 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
105
106         * math/libm-test.inc (struct test_fff_f_data): New type.
107         (RUN_TEST_LOOP_fff_f): New macro.
108         (fma_test_data): New variable.
109         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
110         (fma_towardzero_test_data): New variable.
111         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
112         (fma_downward_test_data): New variable.
113         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
114         (fma_upward_test_data): New variable.
115         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
116
117         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
118         (struct test_c_c_data): New type.
119         (RUN_TEST_LOOP_c_c): New macro.
120         (cacos_test_data): New variable.
121         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
122         (cacosh_test_data): New variable.
123         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
124         (casin_test_data): New variable.
125         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
126         (casinh_test_data): New variable.
127         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
128         (catan_test_data): New variable.
129         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
130         (catanh_test_data): New variable.
131         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
132         (ccos_test_data): New variable.
133         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
134         (ccosh_test_data): New variable.
135         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
136         (cexp_test_data): New variable.
137         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
138         (clog_test_data): New variable.
139         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
140         (clog10_test_data): New variable.
141         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
142         (conj_test_data): New variable.
143         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
144         (cproj_test_data): New variable.
145         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
146         (csin_test_data): New variable.
147         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
148         (csinh_test_data): New variable.
149         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
150         (csqrt_test_data): New variable.
151         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
152         (ctan_test_data): New variable.
153         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
154         (ctan_tonearest_test_data): New variable.
155         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
156         (ctan_towardzero_test_data): New variable.
157         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
158         (ctan_downward_test_data): New variable.
159         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
160         (ctan_upward_test_data): New variable.
161         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
162         (ctanh_test_data): New variable.
163         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
164         (ctanh_tonearest_test_data): New variable.
165         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
166         (ctanh_towardzero_test_data): New variable.
167         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
168         (ctanh_downward_test_data): New variable.
169         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
170         (ctanh_upward_test_data): New variable.
171         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
172         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
173         of BUILD_COMPLEX.
174
175         * math/libm-test.inc (struct test_ff_f_data): New type.
176         (struct test_ff_f_data_nexttoward): Likewise.
177         (RUN_TEST_LOOP_2_f): New macro.
178         (RUN_TEST_LOOP_ff_f): Likewise.
179         (atan2_test_data): New variable.
180         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
181         (copysign_test_data): New variable.
182         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
183         (fdim_test_data): New variable.
184         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
185         (fmax_test_data): New variable.
186         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
187         (fmin_test_data): New variable.
188         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
189         (fmod_test_data): New variable.
190         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
191         (hypot_test_data): New variable.
192         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
193         (nextafter_test_data): New variable.
194         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
195         (nexttoward_test_data): New variable.
196         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
197         (pow_test_data): New variable.
198         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
199         (pow_tonearest_test_data): New variable.
200         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
201         (pow_towardzero_test_data): New variable.
202         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
203         (pow_downward_test_data): New variable.
204         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
205         (pow_upward_test_data): New variable.
206         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
207         (remainder_test_data): New variable.
208         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
209         (scalb_test_data): New variable.
210         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
211         * sysdeps/i386/fpu/libm-test-ulps: Update.
212
213 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
214
215         * math/libm-test.inc (fma_test): Use max_value instead of local
216         variable fltmax.
217         (nextafter_test): Likewise.
218
219         * math/libm-test.inc (acos_towardzero_test_data): New variable.
220         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
221         (acos_downward_test_data): New variable.
222         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
223         (acos_upward_test_data): New variable.
224         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
225         (acosh_test_data): New variable.
226         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
227         (asin_test_data): New variable.
228         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
229         (asin_tonearest_test_data): New variable.
230         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
231         (asin_towardzero_test_data): New variable.
232         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
233         (asin_downward_test_data): New variable.
234         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
235         (asin_upward_test_data): New variable.
236         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
237         (asinh_test_data): New variable.
238         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
239         (atan_test_data): New variable.
240         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
241         (atanh_test_data): New variable.
242         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
243         (cbrt_test_data): New variable.
244         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
245         (ceil_test_data): New variable.
246         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
247         (cos_test_data): New variable.
248         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
249         (cos_tonearest_test_data): New variable.
250         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
251         (cos_towardzero_test_data): New variable.
252         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
253         (cos_downward_test_data): New variable.
254         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
255         (cos_upward_test_data): New variable.
256         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
257         (cosh_test_data): New variable.
258         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
259         (cosh_tonearest_test_data): New variable.
260         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
261         (cosh_towardzero_test_data): New variable.
262         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
263         (cosh_downward_test_data): New variable.
264         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
265         (cosh_upward_test_data): New variable.
266         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
267         (erf_test_data): New variable.
268         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
269         (erfc_test_data): New variable.
270         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
271         (exp_test_data): New variable.
272         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
273         (exp_tonearest_test_data): New variable.
274         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
275         (exp_towardzero_test_data): New variable.
276         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
277         (exp_downward_test_data): New variable.
278         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
279         (exp_upward_test_data): New variable.
280         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
281         (exp10_test_data): New variable.
282         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
283         (exp2_test_data): New variable.
284         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
285         (expm1_test_data): New variable.
286         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
287         (fabs_test_data): New variable.
288         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
289         (floor_test_data): New variable.
290         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
291         (j0_test_data): New variable.
292         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
293         (j1_test_data): New variable.
294         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
295         (log_test_data): New variable.
296         (log_test): Run tests with RUN_TEST_LOOP_f_f.
297         (log10_test_data): New variable.
298         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
299         (log1p_test_data): New variable.
300         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
301         (log2_test_data): New variable.
302         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
303         (logb_test_data): New variable.
304         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
305         (logb_downward_test_data): New variable.
306         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
307         (nearbyint_test_data): New variable.
308         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
309         (rint_test_data): New variable.
310         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
311         (rint_tonearest_test_data): New variable.
312         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
313         (rint_towardzero_test_data): New variable.
314         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
315         (rint_downward_test_data): New variable.
316         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
317         (rint_upward_test_data): New variable.
318         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
319         (round_test_data): New variable.
320         (round_test): Run tests with RUN_TEST_LOOP_f_f.
321         (sin_test_data): New variable.
322         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
323         (sin_tonearest_test_data): New variable.
324         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
325         (sin_towardzero_test_data): New variable.
326         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
327         (sin_downward_test_data): New variable.
328         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
329         (sin_upward_test_data): New variable.
330         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
331         (sinh_test_data): New variable.
332         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
333         (sinh_tonearest_test_data): New variable.
334         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
335         (sinh_towardzero_test_data): New variable.
336         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
337         (sinh_downward_test_data): New variable.
338         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
339         (sinh_upward_test_data): New variable.
340         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
341         (sqrt_test_data): New variable.
342         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
343         (tan_test_data): New variable.
344         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
345         (tan_tonearest_test_data): New variable.
346         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
347         (tan_towardzero_test_data): New variable.
348         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
349         (tan_downward_test_data): New variable.
350         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
351         (tan_upward_test_data): New variable.
352         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
353         (tanh_test_data): New variable.
354         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
355         (tgamma_test_data): New variable.
356         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
357         (trunc_test_data): New variable.
358         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
359         (y0_test_data): New variable.
360         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
361         (y1_test_data): New variable.
362         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
363         (significand_test_data): New variable.
364         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
365
366 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
367
368         [BZ #12387]
369         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
370
371 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
372
373         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
374
375 2013-05-10  Andreas Jaeger  <aj@suse.de>
376
377         [BZ #15448]
378         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
379         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
380
381 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
382
383         * math/gen-libm-test.pl (adjust_arg): New function.
384         (special_functions): Handle generating output in both functions
385         and arrays.
386         (parse_args): Likewise.
387         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
388         $in_func argument to parse_args.
389         * math/libm-test.inc (struct test_f_f_data): New type.
390         (IF_ROUND_INIT_): New macro.
391         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
392         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
393         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
394         (IF_ROUND_INIT_FE_UPWARD): Likewise.
395         (ROUND_RESTORE_): Likewise.
396         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
397         (ROUND_RESTORE_FE_TONEAREST): Likewise.
398         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
399         (ROUND_RESTORE_FE_UPWARD): Likewise.
400         (RUN_TEST_LOOP_f_f): New macro.
401         (acos_test_data): New variable.
402         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
403         (acos_tonearest_test_data): New variable.
404         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
405
406 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
407
408         * benchtests/bench-skeleton.c (startup): Fix coding style.
409
410 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
411
412         [BZ #6809]
413         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
414         negative infinity argument.
415         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
416         negative infinity argument.
417         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
418         negative infinity argument.
419         * math/libm-test.inc (tgamma_test): Expect errno to be set for
420         domain errors.
421
422 2013-05-10  Florian Weimer  <fweimer@redhat.com>
423
424         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
425         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
426         * iconv/iconv_prog.c (main): Likewise.
427         * locale/programs/charmap-dir.c (charmap_readdir)
428         (fopen_uncompressed): Likewise.
429         * locale/programs/locfile.c (siblings_uncached)
430         (write_locale_data): Use lstat64 instead of lstat.
431         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
432         stat.
433
434 2013-05-10  Andreas Jaeger  <aj@suse.de>
435
436         [BZ #15395]
437         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
438         localization.
439         Include <locale.h>.
440
441 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
442
443         * elf/dl-close.c (_dl_close_worker): Add comments.
444
445 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
446
447         [BZ #15359]
448         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
449         high part of pi/2.
450         (__ieee754_rem_pio2l): Update comments.
451
452         [BZ #15429]
453         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
454         high part of pi/2.
455         (__ieee754_rem_pio2l): Update comments.
456
457         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
458         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
459
460         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
461         M_PI_4l.
462
463         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
464         (M_PI_34_LOG10El): Likewise.
465         (M_PI2_LOG10El): Likewise.
466         (M_PI4_LOG10El): Likewise.
467         (M_PI_LOG10El): Likewise.
468
469 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
470
471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
472
473 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
474
475         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
476         (MINUS_ZERO_INIT): Likewise.
477         (PLUS_INFTY_INIT): Likewise.
478         (MINUS_INFTY_INIT): Likewise.
479         (QNAN_VALUE_INIT): Likewise.
480         (MAX_VALUE_INIT): Likewise.
481         (MIN_VALUE_INIT): Likewise.
482         (MIN_SUBNORM_VALUE_INIT): Likewise.
483         (plus_zero): Initialize with PLUS_ZERO_INIT.
484         (minus_zero): Initialize with MINUS_ZERO_INIT.
485         (plus_infty): Initialize with PLUS_INFTY_INIT.
486         (minus_infty): Initialize with MINUS_INFTY_INIT.
487         (qnan_value): Initialize with QNAN_VALUE_INIT.
488         (max_value): Initialize with MAX_VALUE_INIT.
489         (min_value): Initialize with MIN_VALUE_INIT.
490         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
491
492         * math/libm-test.inc (RUN_TEST_if_f): New macro.
493         (jn_test): Use TEST_if_f instead of TEST_ff_f.
494         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
495         (yn_test): Use TEST_if_f instead of TEST_ff_f.
496
497         * math/libm-test.inc (RUN_TEST_f_f): New macro.
498         (RUN_TEST_2_f): Likewise.
499         (RUN_TEST_ff_f): Likewise.
500         (RUN_TEST_fi_f): Likewise.
501         (RUN_TEST_fl_f): Likewise.
502         (RUN_TEST_fff_f): Likewise.
503         (RUN_TEST_c_f): Likewise.
504         (RUN_TEST_f_f1): Likewise.
505         (RUN_TEST_fF_f1): Likewise.
506         (RUN_TEST_fI_f1): Likewise.
507         (RUN_TEST_ffI_f1): Likewise.
508         (RUN_TEST_c_c): Likewise.
509         (RUN_TEST_cc_c): Likewise.
510         (RUN_TEST_f_i): Likewise.
511         (RUN_TEST_f_i_tg): Likewise.
512         (RUN_TEST_ff_i_tg): Likewise.
513         (RUN_TEST_f_b): Likewise.
514         (RUN_TEST_f_b_tg): Likewise.
515         (RUN_TEST_f_l): Likewise.
516         (RUN_TEST_f_L): Likewise.
517         (RUN_TEST_sincos): Likewise.
518         * math/gen-libm-test.pl (new_test): Take new argument to indicate
519         whether to show exceptions.  Do not include ");\n" in return
520         value.
521         (special_functions): Output call to RUN_TEST_sincos instead of
522         check_float calls.  Update calls to new_test.
523         (parse_args): Output call to single RUN_TEST_* macro instead of
524         check_* calls and other assignments.  Update calls to new_test.
525
526         [BZ #2546]
527         [BZ #2560]
528         [BZ #5159]
529         [BZ #15426]
530         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
531         input to result for tgamma overflow.
532         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
533         (gamma_coeff): New variable.
534         (NCOEFF): New macro.
535         (gamma_positive): New function.
536         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
537         underflow here.  Use gamma_positive instead of exp (lgamma) for
538         other arguments.
539         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
540         (gamma_coeff): New variable.
541         (NCOEFF): New macro.
542         (gammaf_positive): New function.
543         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
544         underflow here.  Use gamma_positive instead of exp (lgamma) for
545         other arguments.
546         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
547         (gamma_coeff): New variable.
548         (NCOEFF): New macro.
549         (gammal_positive): New function.
550         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
551         underflow here.  Use gamma_positive instead of exp (lgamma) for
552         other arguments.
553         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
554         (gamma_coeff): New variable.
555         (NCOEFF): New macro.
556         (gammal_positive): New function.
557         (__ieee754_gammal_r): Handle positive infinity, overflow and
558         underflow here.  Handle NaN the same as positive infinity.  Remove
559         check x < 0xffffffff for negative integers.  Use gamma_positive
560         instead of exp (lgamma) for other arguments.
561         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
562         (gamma_coeff): New variable.
563         (NCOEFF): New macro.
564         (gammal_positive): New function.
565         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
566         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
567         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
568         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
569         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
570         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
571         * sysdeps/generic/math_private.h (__gamma_productf): New
572         prototype.
573         (__gamma_product): Likewise.
574         (__gamma_productl): Likewise.
575         * math/Makefile (libm-calls): Add gamma_product.
576         * math/libm-test.inc (tgamma_test): Add more tests.
577         * sysdeps/i386/fpu/libm-test-ulps: Update.
578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
579
580 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
581
582         * benchtests/bench-skeleton.c (main): Preheat CPU.
583
584 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
585
586         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
587
588 2013-05-07  Roland McGrath  <roland@hack.frob.com>
589
590         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
591         and _dl_skip_args_internal.
592
593 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
594
595         * manual/message.texi (Message Translation): Talk about users.
596         Message to key mapping impacts design.
597
598 2013-05-06  Roland McGrath  <roland@hack.frob.com>
599
600         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
601
602         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
603
604         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
605         * sysdeps/wordsize-64/glob64.c: ... here.
606
607         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
608         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
609         New macros.
610
611         * debug/getlogin_r_chk.c: Moved to ...
612         * login/getlogin_r_chk.c: ... here.
613         * debug/Makefile (routines): Move getlogin_r_chk to ...
614         * login/Makefile (routines): ... here.
615         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
616         * login/Versions (libc: GLIBC_2.4): ... here.
617
618         * io/poll.c (__poll): Renamed from poll.
619         Add libc_hidden_def.
620         (poll): Define as weak alias.
621
622         * debug/ptsname_r_chk.c: Moved to ...
623         * login/ptsname_r_chk.c: ... here.
624         * debug/Makefile (routines): Move ptsname_r_chk to ...
625         * login/Makefile (routines): ... here.
626         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
627         * login/Versions (libc: GLIBC_2.4): ... here.
628
629         * posix/getlogin.c: Moved to ...
630         * login/getlogin.c: ... here.
631         * posix/getlogin_r.c: Moved to ...
632         * login/getlogin_r.c: ... here.
633         * posix/getlogin_r.c: Moved to ...
634         * login/getlogin_r.c: ... here.
635         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
636         * login/Makefile (routines): ... here.
637         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
638         * login/Versions (libc: GLIBC_2.0): ... here.
639
640         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
641         (setrlimit): Define as weak alias.
642
643         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
644         Call __ names for open, ftruncate, and close.
645         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
646         (truncate): Define as weak alias.
647
648 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
649
650         * math/gen-libm-test.pl (parse_args): Initialize x before each
651         test of frexp, modf and remquo.
652
653         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
654         test signgam value.
655
656 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
657
658         [BZ #15418]
659         [BZ #15419]
660         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
661         internal tests.
662         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
663
664 2013-05-06  Roland McGrath  <roland@hack.frob.com>
665
666         * elf/dl-writev.h: New file.
667         * elf/dl-misc.c: Include it.
668         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
669         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
670
671 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
672
673         * math/libm-test.inc (noXFails): Remove variable.
674         (noXPasses): Likewise.
675         (BUILD_COMPLEX_INT): Remove macro.
676         (print_screen): Remove xfail argument.
677         (print_screen_max_error): Likewise.
678         (update_stats): Likewise.
679         (print_max_error): Likewise.  Update calls to other affected
680         functions.
681         (print_complex_max_error): Likewise.
682         (test_single_exception): Update calls to print_screen.
683         (test_single_errno): Likewise.
684         (check_float_internal): Remove xfail argument.  Update calls to
685         other affected functions.
686         (check_float): Likewise.
687         (check_complex): Likewise.
688         (check_int): Likewise.
689         (check_long): Likewise.
690         (check_bool): Likewise.
691         (check_longlong): Likewise.
692         (main): Don't print noXFails and noXPasses.
693         * math/gen-libm-test.pl (top level): Don't mention expected
694         failure handling in comment.
695         (new_test): Don't handle expected failures.
696         (parse_args): Don't mention expected failure handling in comment.
697         (generate_testfile): Don't handle expected failures.
698         (parse_ulps): Likewise.
699         (print_ulps_file): Likewise.
700         (get_failure): Remove function.
701         (output_test): Don't handle expected failures.
702         * make/README.libm-test: Don't mention expected failure handling.
703
704         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
705         (minus_zero): Likewise.
706         (plus_infty): Likewise.
707         (minus_infty): Likewise.
708         (qnan_value): Likewise.
709         (max_value): Likewise.
710         (min_value): Likewise.
711         (min_subnorm_value): Likewise.
712         (initialize): Do not initialize those variables dynamically.
713
714 2013-05-03  Roland McGrath  <roland@hack.frob.com>
715
716         * io/open.c (__open_2): Moved to ...
717         * io/open_2.c: ... this new file.
718         * io/open64.c (__open64_2): Moved to ...
719         * io/open64_2.c: ... this new file.
720         * io/openat.c (__openat_2): Moved to ...
721         * io/openat_2.c: ... this new file.
722         * io/openat64.c (__openat64_2): Moved to ...
723         * io/openat64_2.c: ... this new file.
724         * io/Makefile (routines): Add them.
725         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
726         * sysdeps/unix/sysv/linux/open_2.c: File removed.
727         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
728         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
729         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
730         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
731         (__openat64): Add hidden_ver.
732         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
733         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
734
735         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
736         Separately conditionalize setting of GLRO(dl_sysinfo) so
737         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
738         as well, but the actual setting is only under [NEED_DL_SYSINFO].
739
740 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
741
742         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
743         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
744         definition.
745         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
746         * sysdeps/unix/sysv/linux/powerpc/init-first.c
747         (_libc_vdso_platform_setup): Add __vdso_time initialization.
748         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
749         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
750
751 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
752
753         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
754         test signgam value.
755
756         * math/libm-test.inc (hypot_test): Do not use
757         IGNORE_ZERO_INF_SIGN.
758
759 2013-05-03  Andreas Jaeger  <aj@suse.de>
760
761         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
762         Linux 3.9.
763         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
764         (PF_MAX): Adjust for VSOCK change.
765
766 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
767
768         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
769
770 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
771
772         [BZ #15264]
773         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
774         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
775         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
776
777 2013-05-02  David S. Miller  <davem@davemloft.net>
778
779         * sysdeps/sparc/fpu/libm-test-ulps: Update.
780
781 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
782
783         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
784
785 2013-05-01  Roland McGrath  <roland@hack.frob.com>
786
787         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
788
789 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
790
791         [BZ #14952]
792         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
793         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
794         Use __attribute__ ((__gnu_inline__)).
795         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
796         Don't use __attribute__ ((__gnu_inline__)).
797
798 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
799
800         [BZ #15423]
801         * math/s_catan.c (__catan): Handle small real or imaginary part of
802         input specially to avoid spurious underflow.
803         * math/s_catanf.c (__catanf): Likewise.
804         * math/s_catanh.c (__catanh): Likewise.
805         * math/s_catanhf.c (__catanhf): Likewise.
806         * math/s_catanhl.c (__catanhl): Likewise.
807         * math/s_catanl.c (__catanl): Likewise.
808         * math/libm-test.inc (catan_test): Add more tests.
809         (catanh_test): Likewise.
810         * sysdeps/i386/fpu/libm-test-ulps: Update.
811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
812
813 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
814
815         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
816
817 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
818
819         [BZ #15416]
820         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
821         accurately for denominator in atan2.
822         * math/s_catanf.c (__catanf): Likewise.
823         * math/s_catanh.c (__catanh): Likewise.
824         * math/s_catanhf.c (__catanhf): Likewise.
825         * math/s_catanhl.c (__catanhl): Likewise.
826         * math/s_catanl.c (__catanl): Likewise.
827         * math/libm-test.inc (catan_test): Add more tests.
828         (catanh_test): Likewise.
829         * sysdeps/i386/fpu/libm-test-ulps: Update.
830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
831
832 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
833
834         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
835
836         * benchtests/Makefile (bench): Remove slow benchmarks.
837         * benchtests/atan-inputs: Add slow benchmark inputs.
838         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
839         (BENCH_FUNC): Accept variant offset.
840         (VARIANT): Define.
841         * benchtests/bench-skeleton.c (main): Run benchmark for each
842         variant.
843         * benchtests/cos-inputs: Add slow benchmark inputs.
844         * benchtests/exp-inputs: Likewise.
845         * benchtests/pow-inputs: Likewise.
846         * benchtests/sin-inputs: Likewise.
847         * benchtests/slowatan-inputs: Remove.
848         * benchtests/slowatan.c: Remove.
849         * benchtests/slowcos-inputs: Remove.
850         * benchtests/slowcos.c: Remove.
851         * benchtests/slowexp-inputs: Remove.
852         * benchtests/slowexp.c: Remove.
853         * benchtests/slowpow-inputs: Remove.
854         * benchtests/slowpow.c: Remove.
855         * benchtests/slowsin-inputs: Remove.
856         * benchtests/slowsin.c: Remove.
857         * benchtests/slowtan-inputs: Remove.
858         * benchtests/slowtan.c: Remove.
859         * benchtests/tan-inputs: Add slow benchmark inputs.
860         * scripts/bench.pl: Parse comments and directives.
861
862         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
863         in CPPFLAGS.
864         ($(objpfx)bench-%.c): Remove *-ITER.
865         * benchtests/bench-modf.c: Remove definition of ITER.
866         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
867         (main): Loop for DURATION seconds instead of fixed number of
868         iterations.
869         * scripts/bench.pl: Don't expect iterations in parameters.
870
871 2013-04-29  Roland McGrath  <roland@hack.frob.com>
872
873         * io/fchdir.c (__fchdir): Renamed from fchdir.
874         (fchdir): Define as weak alias.
875
876 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
877
878         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
879         (ERRNO_EDOM): Likewise.
880         (ERRNO_ERANGE): Likewise.
881         (noErrnoTests): New variable.
882         (init_max_error): Set errno to 0.
883         (test_single_errno): New function.
884         (test_errno): Likewise.
885         (check_float_internal): Call test_errno.  Set errno to 0.
886         (check_complex): Refer to errno tests in comment.
887         (check_int): Call test_errno.  Set errno to 0.
888         (check_long): Likewise.
889         (check_bool): Likewise.
890         (check_longlong): Likewise.
891         (cos_test): Use ERRNO_* flags for errno tests instead of
892         check_int.
893         (expm1_test): Likewise.
894         (fmod_test): Likewise.
895         (ilogb_test): Likewise.
896         (lgamma_test): Likewise.
897         (pow_test): Likewise.
898         (remainder_test): Likewise.
899         (sin_test): Likewise.
900         (tan_test): Likewise.
901         (yn_test): Likewise.
902         (initialize): Set errno to 0.
903         (main): Print number of errno tests.
904         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
905
906 2013-04-29  Andreas Jaeger  <aj@suse.de>
907
908         [BZ #15084]
909         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
910         and RES_USEVC.
911
912         [BZ #15085]
913         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
914         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
915         unimplemented.
916
917         [BZ #15380]
918         * stdlib/random.c (__initstate): Return NULL if
919         __initstate fails.
920
921         [BZ #15086]
922         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
923         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
924         RES_SNGLKUPREOP.
925
926 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
927
928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
929
930 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
931
932         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
933         of individual tests.
934         (casin_test): Likewise.
935         (casinh_test): Likewise.
936
937 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
938
939         [BZ #15409]
940         * math/s_catan.c (__catan): Handle arguments with large real or
941         imaginary part separately without squaring.
942         * math/s_catanf.c (__catanf): Likewise.
943         * math/s_catanh.c (__catanh): Likewise.
944         * math/s_catanhf.c (__catanhf): Likewise.
945         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
946         and redefine.
947         (__catanhl): Handle arguments with large real or imaginary part
948         separately without squaring.
949         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
950         and redefine.
951         (__catanl): Handle arguments with large real or imaginary part
952         separately without squaring.
953         * math/libm-test.inc (catan_test): Add more tests.
954         (catanh_test): Likewise.
955         * sysdeps/i386/fpu/libm-test-ulps: Update.
956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
957
958 2013-04-27  Andreas Jaeger  <aj@suse.de>
959
960         [BZ #15007]
961         * stdlib/stdlib.h: Update guards for qecvt.
962         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
963         <stdlib.h>.
964
965 2013-04-27  Allan McRae  <allan@archlinux.org>
966
967         * sysdeps/i386/fpu/libm-test-ulps: Update.
968
969 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
970
971         [BZ #15406]
972         * math/s_catan.c: Include <float.h>.
973         (__catan): Ensure underflow exception occurs for underflowed
974         result.
975         * math/s_catanf.c: Include <float.h>.
976         (__catanf): Ensure underflow exception occurs for underflowed
977         result.
978         * math/s_catanh.c: Include <float.h>.
979         (__catanh): Ensure underflow exception occurs for underflowed
980         result.
981         * math/s_catanhf.c: Include <float.h>.
982         (__catanhf): Ensure underflow exception occurs for underflowed
983         result.
984         * math/s_catanhl.c: Include <float.h>.
985         (__catanhl): Ensure underflow exception occurs for underflowed
986         result.
987         * math/s_catanl.c: Include <float.h>.
988         (__catanl): Ensure underflow exception occurs for underflowed
989         result.
990         * math/libm-test.inc (catan_test): Add more tests.
991         (catanh_test): Likewise.
992
993         [BZ #15405]
994         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
995         underflowed result.
996         * math/s_ccoshf.c (__ccoshf): Likewise.
997         * math/s_ccoshl.c (__ccoshl): Likewise.
998         * math/s_csin.c (__csin): Likewise.
999         * math/s_csinf.c (__csinf): Likewise.
1000         * math/s_csinh.c (__csinh): Likewise.
1001         * math/s_csinhf.c (__csinhf): Likewise.
1002         * math/s_csinhl.c (__csinhl): Likewise.
1003         * math/s_csinl.c (__csinl): Likewise.
1004         * math/libm-test.inc (ccos_test): Add more tests.
1005         (ccosh_test): Likewise.
1006         (csin_test): Likewise.
1007         (csinh_test): Likewise.
1008
1009 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1010
1011         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1012         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1013         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1014         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1015         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1016         powerpc/power5+/fpu folders.
1017         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1018
1019
1020 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1021
1022         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1023
1024 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1025
1026         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1027         additions to variable.
1028         [$(config-machine) = x86_64] (modules-names): Likewise.
1029         ($(objpfx)tst-audit3): Remove dependency.
1030         ($(objpfx)tst-audit3.out): Likewise.
1031         ($(objpfx)tst-audit4): Likewise.
1032         ($(objpfx)tst-audit4.out): Likewise.
1033         ($(objpfx)tst-audit5): Likewise.
1034         ($(objpfx)tst-audit5.out): Likewise.
1035         ($(objpfx)tst-audit6): Likewise.
1036         ($(objpfx)tst-audit6.out): Likewise.
1037         ($(objpfx)tst-audit7): Likewise.
1038         ($(objpfx)tst-audit7.out): Likewise.
1039         (tst-audit3-ENV): Remove variable.
1040         (tst-audit4-ENV): Likewise.
1041         (tst-audit5-ENV): Likewise.
1042         (tst-audit6-ENV): Likewise.
1043         (tst-audit7-ENV): Likewise.
1044         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1045         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1046         addition to variable.
1047         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1048         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1049         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1050         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1051         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1052         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1053         tst-audit3, tst-audit4 and tst-audit5.
1054         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1055         tst-audit6 and tst-audit7.
1056         [$(subdir) = elf] (modules-names): Add audit modules for those
1057         tests.
1058         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1059         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1060         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1061         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1062         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1063         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1064         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1065         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1066         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1067         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1068         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1069         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1070         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1071         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1072         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1073         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1074         Likewise.
1075         [$(subdir) = elf && $(config-cflags-avx) = yes]
1076         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1077         [$(subdir) = elf && $(config-cflags-avx) = yes]
1078         (CFLAGS-tst-auditmod4a.c): Likewise.
1079         [$(subdir) = elf && $(config-cflags-avx) = yes]
1080         (CFLAGS-tst-auditmod4b.c): Likewise.
1081         [$(subdir) = elf && $(config-cflags-avx) = yes]
1082         (CFLAGS-tst-auditmod6b.c): Likewise.
1083         [$(subdir) = elf && $(config-cflags-avx) = yes]
1084         (CFLAGS-tst-auditmod6c.c): Likewise.
1085         [$(subdir) = elf && $(config-cflags-avx) = yes]
1086         (CFLAGS-tst-auditmod7b.c): Likewise.
1087         * elf/tst-audit3.c: Move to ...
1088         * sysdeps/x86_64/tst-audit3.c: ... here.
1089         * elf/tst-audit4.c: Move to ...
1090         * sysdeps/x86_64/tst-audit4.c: ... here.
1091         * elf/tst-audit5.c: Move to ...
1092         * sysdeps/x86_64/tst-audit5.c: ... here.
1093         * elf/tst-audit6.c: Move to ...
1094         * sysdeps/x86_64/tst-audit6.c: ... here.
1095         * elf/tst-audit7.c: Move to ...
1096         * sysdeps/x86_64/tst-audit7.c: ... here.
1097         * elf/tst-auditmod3a.c: Move to ...
1098         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1099         * elf/tst-auditmod3b.c: Move to ...
1100         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1101         * elf/tst-auditmod4a.c: Move to ...
1102         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1103         * elf/tst-auditmod4b.c: Move to ...
1104         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1105         * elf/tst-auditmod5a.c: Move to ...
1106         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1107         * elf/tst-auditmod5b.c: Move to ...
1108         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1109         * elf/tst-auditmod6a.c: Move to ...
1110         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1111         * elf/tst-auditmod6b.c: Move to ...
1112         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1113         * elf/tst-auditmod6c.c: Move to ...
1114         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1115         * elf/tst-auditmod7a.c: Move to ...
1116         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1117         * elf/tst-auditmod7b.c: Move to ...
1118         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1119
1120 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1121
1122         [BZ #15366]
1123         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1124         define unconditionally.
1125         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1126         define unconditionally.
1127         (INT8_C, INT16_C, etc.): Likewise.
1128
1129 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1130
1131         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1132         __ehdr_start with hidden visibility.
1133
1134         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1135
1136 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1137
1138         * math/libm-test.inc (cos_test): Use accurate hex constants.
1139         (sincost_test): Likewise.
1140
1141 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1142
1143         * math/libm-test.inc (catan_test): Add more tests.
1144         (catanh_test): Likewise.
1145
1146         * math/s_catanf.c (__catanf): Use suffixed floating-point
1147         constants.
1148         * math/s_catanhf.c (__catanhf): Likewise.
1149         * math/s_catanhl.c (__catanhl): Likewise.
1150         * math/s_catanl.c (__catanl): Likewise.
1151
1152         [BZ #15394]
1153         * math/s_catan.c (__catan): Calculate imaginary part of result
1154         with log1p not log unless computing log of number close to 0.
1155         * math/s_catanf.c (__catanf): Likewise.
1156         * math/s_catanl.c (__catanl): Likewise.
1157         * math/s_catanh.c (__catanh): Calculate real part of result with
1158         log1p not log unless computing log of number close to 0.
1159         * math/s_catanhf.c (__catanhf): Likewise.
1160         * math/s_catanhl.c (__catanhl): Likewise.
1161         * math/libm-test.inc (catan_test): Add more tests.
1162         (catanh_test): Likewise.
1163         * sysdeps/i386/fpu/libm-test-ulps: Update.
1164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1165
1166 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1167
1168         * benchtests/Makefile: Mention files in which fast and slow
1169         paths of math functions are implemented.
1170
1171 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1172
1173         * sysdeps/posix/timespec_get.c: New file.
1174
1175 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1176
1177         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1178         POWER.
1179         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1180         for POWER.
1181         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1182         powerpc/power5/fpu folders.
1183         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1184         * benchtests/Makefile: Add modf testcase.
1185         * benchtests/bench-modf.c: New file: Benchmark test for mo
1186
1187 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1188
1189         [BZ #14888]
1190         * time/Makefile (tests): Add tst-strptime-whitespace.
1191         * time/strptime_l.c (get_number): Use ISSPACE.
1192         (__strptime_internal): Likewise.
1193         * time/tst-strptime-whitespace.c: New test case.
1194
1195 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1196
1197         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1198         member.
1199         (_nss_files_init): Set it here.
1200
1201 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1202
1203         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1204         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1205         unsigned.
1206
1207 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1208
1209         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1210
1211 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1212
1213         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1214         size just once.
1215
1216 2013-04-21  David S. Miller  <davem@davemloft.net>
1217
1218         * po/ru.po: Update Russion translation from translation project.
1219
1220 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1221
1222         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1223         and setfsgid.
1224
1225 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1226
1227         * configure.in: Remove i386 configure warning. Remove i386 case.
1228         * configure: Regenerate.
1229         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1230         Add example to error message.
1231         * sysdeps/i386/configure: Regenerate.
1232
1233 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1234
1235         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1236         slowtan.
1237         * benchtests/cos-inputs: New file.
1238         * benchtests/slowcos-inputs: New file.
1239         * benchtests/slowcos.c: New file.
1240         * benchtests/slowtan-inputs: New file.
1241         * benchtests/slowtan.c: New file.
1242         * benchtests/tan-inputs: New file.
1243
1244 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1245
1246         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1247         considered kosher.
1248
1249 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1250
1251         * benchtests/Makefile: Include cppflags-iterator.mk to add
1252         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1253
1254         * Makefile.in (bench-clean): New target.
1255         * benchtests/Makefile (bench-clean): Likewise.
1256
1257 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1258
1259         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1260
1261 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1262
1263         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1264
1265 2013-04-15  Andreas Schwab  <schwab@suse.de>
1266
1267         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1268         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1269         * nscd/pwdcache.c (cache_addpw): Likewise.
1270         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1271         more than recsize.
1272
1273 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1274
1275         * benchtests/Makefile (bench): Write all output to
1276         bench-out.tmp together.
1277
1278 2013-04-15  Andreas Schwab  <schwab@suse.de>
1279
1280         * nscd/nscd.c (main): Don't fork again after closing files.
1281
1282 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1283
1284         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1285
1286         * benchtests/Rules (bench-deps): Collect dependencies into a
1287         single variable.  Add Makefile to dependencies.
1288         ($(objpfx)bench-%.c): Depend on bench-deps.
1289
1290 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1291             Xavier Roche  <roche+kml2@exalead.com>
1292
1293         [BZ #15361]
1294         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1295         just that it's a file descriptor.
1296         * manual/llio.texi (Synchronizing AIO Operations): Update description
1297         for EBADF error from aio_fsync.
1298
1299 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1300
1301         * Rules (bench): Move target definition...
1302         * benchtests/Makefile: ... here.
1303
1304 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1305
1306         * math/libm-test.inc (cos_test): Fix PI/2 test.
1307         (sincos_test): Likewise.
1308         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1309         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1310
1311 2013-04-11  Andreas Schwab  <schwab@suse.de>
1312
1313         [BZ #13988]
1314         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1315         accept exponent character only when digits were seen.
1316         * stdio-common/Makefile (tests): Add bug26.
1317         * stdio-common/bug26.c: New file.
1318
1319         [BZ #14293]
1320         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1321         non-freeable.
1322
1323 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1324
1325         * Makeconfig (rtld-prefix): Define built linker prefix.
1326         * Rules (run-bench): Use it.
1327         * math/Makefile (run-regen-ulps): Likewise.
1328
1329         * Rules (bench): Remove eval.
1330
1331 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1332             Roland McGrath  <roland@hack.frob.com>
1333             Ondrej Bilka  <neleai@seznam.cz>
1334
1335         [BZ #15346]
1336         * time/getdate.c: Include ctype.h and alloca.h.
1337         (__getdate_r): Trim leading and trailing spaces of input.
1338         * time/tst-getdate.c (tests): Add tests with leading and
1339         trailing spaces.
1340
1341 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1342
1343         [BZ #14280]
1344         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1345         when computing value.
1346
1347 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1348
1349         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1350         Use testrun.sh to run libm tests.
1351
1352         [BZ #15309]
1353         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1354
1355 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1356
1357         [BZ #15264]
1358         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1359
1360 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1361
1362         * Makefile.in (regen-ulps): New target.
1363         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1364         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1365         [ifneq (no,$(PERL)] (regen-ulps): New target.
1366         [ifeq (no,$(PERL)] (regen-ulps): New target.
1367         * math/libm-test.inc (ulps_file_name): Define.
1368         (output_dir): New variable.
1369         (options): Add "output-dir" option.
1370         (parse_opt): Handle 'o' case.
1371         (main): If output_dir is non-NULL use it as a prefix
1372         otherwise use "".
1373         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1374
1375 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1376
1377         [BZ #10060, #10062]
1378         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1379         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1380         fail configure if __sync_val_compare_and_swap is not inlined.
1381         * sysdeps/i386/configure: Regenerate.
1382         * configure.in: Build for i686 when configured for i386.
1383         * configure: Regenerate.
1384         * README: Remove i386 reference.
1385
1386 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1387
1388         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1389         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1390
1391 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1392
1393         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1394         (lmsnanval): New variables.
1395         (F): Add conversion tests.
1396         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1397         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1398
1399         * stdio-common/tstdiomisc.c (F): Properly collect individual
1400         tests' results.
1401
1402         [BZ #14686, #15336]
1403         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1404         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1405         Instead, use input NaN values or generate a qNaN by arithmetic
1406         operation.  Also fix bugs to comply with the standard.
1407         * math/libm-test.inc (remainder_test): Add more tests.
1408
1409         [BZ #15335, #15342]
1410         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1411         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1412         input NaN values or generate a qNaN by arithmetic operation.
1413
1414         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1415         unreachable code.
1416
1417         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1418         definitions.
1419
1420 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1421
1422         [BZ #14478]
1423         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1424         underflowed result.
1425         * math/s_cexpf.c (__cexpf): Likewise.
1426         * math/s_cexpl.c (__cexpl): Likewise.
1427         * math/libm-test.inc (cexp_test): Add more tests.
1428
1429 2013-04-03  Andreas Schwab  <schwab@suse.de>
1430
1431         [BZ #15330]
1432         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1433         order arrays from heap if bigger than alloca cutoff.
1434
1435 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1436
1437         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1438         (SNAN_TESTS_double): Refer to GCC PR56831.
1439         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1440         GCC PR56828.
1441
1442 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1443
1444         * Rules (bench): Move bench.out after the run is complete.
1445
1446         * Rules (bench): Echo currently running benchmark.
1447
1448         * benchtests/Makefile (bench): Add atan and slowatan.
1449         * benchtests/atan-inputs: New file.
1450         * benchtests/slowatan-inputs: New file.
1451         * benchtests/slowatan.c: New file.
1452
1453         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1454         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1455         its value.
1456
1457         [BZ #15305]
1458         * sysdeps/unix/sysv/linux/kernel-features.h
1459         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1460         __ASSUME_XFS_RESTRICTED_CHOWN.
1461         * sysdeps/unix/sysv/linux/pathconf.c
1462         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1463         Save and restore errno.
1464
1465 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1466
1467         [BZ #15327]
1468         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1469         arguments using __kernel_casinh.
1470         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1471         arguments using __kernel_casinhf.
1472         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1473         arguments using __kernel_casinhl.
1474         * math/libm-test.inc (cacosh_test): Add more tests.
1475         * sysdeps/i386/fpu/libm-test-ulps: Update.
1476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1477
1478 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1479
1480         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1481         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1482
1483         * bench/Makefile (bench): Add sin and slowsin.
1484         * benchtests/sin-inputs: New file.
1485         * benchtests/slowsin-inputs: New file.
1486         * benchtests/slowsin.c: New file.
1487
1488         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1489         (bench): Add slowexp and slowpow.
1490         (exp-ITER): Increase iterations.
1491         (pow-ITER): Likewise.
1492         * benchtests/exp-inputs: Change input.
1493         * benchtests/pow-inputs: Likewise.
1494         * benchtests/slowexp-inputs: New file.
1495         * benchtests/slowexp.c: New file.
1496         * benchtests/slowpow-inputs: New file.
1497         * benchtests/slowpow.c: New file.
1498
1499 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1500
1501         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1502         instructions.
1503         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1504         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1505         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1506         * benchtests/Makefile: Add rint benchtest.
1507         * benchtests/rint-inputs: Input for rint benchtest.
1508
1509 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1510
1511         * Versions.def (libm): Add GLIBC_2.18.
1512         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1513         hidden libm prototypes.
1514         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1515         * math/Makefile (libm-calls): Add s_issignaling.
1516         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1517         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1518         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1519         declaration.
1520         * math/math.h [__USE_GNU] (issignaling): New macro.
1521         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1522         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1523         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1524         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1525         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1526         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1527         * manual/arith.texi (issignaling): New section.
1528         * manual/libm-err-tab.pl (@all_functions): Update comment.
1529         * math/gen-libm-test.pl (parse_args): Apply special handling for
1530         issignaling.
1531         * math/libm-test.inc (print_float, issignaling_test): New
1532         functions.
1533         (check_float_internal): Add issignaling checks.
1534         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1535         default definition.
1536         * sysdeps/powerpc/math-tests.h: New file.
1537         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1538         tests.
1539         * math/test-snan.c (TEST_FUNC): Likewise.
1540
1541 2013-03-30  David S. Miller  <davem@davemloft.net>
1542
1543         * po/de.po: Update from translation team.
1544
1545 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #10357]
1548         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1549         imaginary part less than 1.0 and real part less than 0.5
1550         specially.
1551         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1552         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1553         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1554         (cacos_test): Add more tests.
1555         (casin_test): Likewise.
1556         (casinh_test): Likewise.
1557         * sysdeps/i386/fpu/libm-test-ulps: Update.
1558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1559
1560 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1561
1562         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1563         ONE with its value.
1564
1565         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1566         (__pow_mp): Replace ONE and MONE with their values.
1567         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1568         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1569         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1570         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1571         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1572         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1573
1574         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1575
1576         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1577         (__pow_mp): Replace ZERO and MZERO with their values.
1578         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1579         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1580         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1581         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1582         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1583         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1584         (__sqr): Likewise.
1585
1586         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1587
1588         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1589
1590 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1591
1592         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1593         Declare with __attribute__ ((weak)).
1594         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1595         Call __call_tls_dtors only if it's not NULL.
1596
1597 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1598
1599         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1600         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1601         magic __ehdr_start linker symbol if it's defined.
1602         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1603         them up here if it was already done.
1604
1605         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1606         (_dl_aux_init): Use const in cast when setting it.
1607         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1608         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1609         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1610
1611         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1612         Declare them here.
1613         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1614         * csu/libc-tls.c: Nor here.
1615         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1616
1617         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1618         (__libc_message): Never call vsyslog.
1619
1620 2013-03-28  Alan Modra  <amodra@gmail.com>
1621
1622         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1623         Define as empty.
1624         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1625         Likewise.
1626
1627 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1628
1629         [BZ #15214]
1630         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1631         underflow.
1632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1633
1634 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1635
1636         [BZ #15304]
1637         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1638         Don't add gid passed as argument.
1639
1640         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1641
1642 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1643
1644         [BZ #15307]
1645         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1646         imaginary part between 1.0 and 1.5 and real part less than 0.5
1647         specially.
1648         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1649         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1650         * math/libm-test.inc (cacos_test): Add more tests.
1651         (casin_test): Likewise.
1652         (casinh_test): Likewise.
1653         * sysdeps/i386/fpu/libm-test-ulps: Update.
1654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1655
1656 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1657
1658         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1659         constants.
1660         (norm): Likewise.
1661         (denorm): Likewise.
1662         (__dbl_mp): Likewise.
1663         (add_magnitudes): Likewise.
1664         (sub_magnitudes): Likewise.
1665         (__add): Likewise.
1666         (__sub): Likewise.
1667         (__mul): Likewise.
1668         (__sqr): Likewise.
1669         (__inv): Likewise.
1670         (__dvd): Likewise.
1671
1672         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1673         commented code.
1674         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1675         (__dubcos): Likewise.
1676         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1677         (__ieee754_acos): Likewise.
1678         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1679         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1680         (__exp1): Likewise.
1681         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1682         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1683         (log1): Likewise.
1684         (my_log2): Likewise.
1685         (checkint): Likewise.
1686         * sysdeps/ieee754/dbl-64/e_remainder.c
1687         (__ieee754_remainder): Likewise.
1688         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1689         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1690         (bsloww): Likewise.
1691         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1692
1693         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1694         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1695         MANTISSA_STORE_T to store computations on mantissa.  Use
1696         macros for rounding and division.
1697         (denorm): Likewise.
1698         (__dbl_mp): Likewise.
1699         (add_magnitudes): Likewise.
1700         (sub_magnitudes): Likewise.
1701         (__mul): Likewise.
1702         (__sqr): Likewise.
1703         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1704         powers of two in terms of TWOPOW macro.
1705         (mp_no): Make type of mantissa as MANTISSA_T.
1706         [!RADIXI]: Define RADIXI.
1707         [!TWO52]: Define TWO52.
1708         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1709
1710 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1711
1712         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1713         llroundl symbol when building for PPC32.
1714
1715 2013-03-24  Mark H Weaver  <mhw@netris.org>
1716
1717         * manual/arith.texi (Normalization Functions): Fix prototypes for
1718         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1719
1720 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1721
1722         [BZ #13889]
1723         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1724         high value to check if expl overflow.
1725         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1726         to check for underflow and overflow.
1727         * math/libm-test.inc: Add exp test.
1728
1729 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1730
1731         [BZ #11120]
1732         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1733         with NOT_IN_libc.
1734
1735 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1736
1737         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1738         symbol.
1739
1740 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1741
1742         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1743         wrap blocks consisting of several statements.
1744
1745         * sysdeps/generic/math-tests.h: New file.
1746         * sysdeps/i386/fpu/math-tests.h: Likewise.
1747         * math/test-snan.c: Include it.
1748         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1749
1750 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1751
1752         [BZ #15285]
1753         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1754         (__ieee754_j0l): Do not improve calculations using cos of twice
1755         input for inputs above LDBL_MAX / 2.0L.
1756         (__ieee754_y0l): Likewise.
1757         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1758         (__ieee754_j1l): Do not improve calculations using cos of twice
1759         input for inputs above LDBL_MAX / 2.0L.
1760         (__ieee754_y1l): Likewise.
1761         * math/libm-test.inc (j0_test): Add another test.
1762         (j1_test): Likewise.
1763         (y0_test): Likewise.
1764         (y1_test): Likewise.
1765         * sysdeps/i386/fpu/libm-test-ulps: Update.
1766
1767 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1768
1769         * Rules ($(objpfx)bench-%.c): Include code from a C source
1770         file.
1771
1772 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1773
1774         [BZ #15287]
1775         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1776         imaginary part 1.0 and real part less than 0.5 specially.
1777         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1778         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1779         * math/libm-test.inc (cacos_test): Add more tests.
1780         (casin_test): Likewise.
1781         (casinh_test): Likewise.
1782         * sysdeps/i386/fpu/libm-test-ulps: Update.
1783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1784
1785 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1786
1787         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1788         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1789
1790 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1791
1792         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1793         * config.make.in (config-cflags-sse4): Remove variable.
1794         (config-cflags-avx): Likewise.
1795         (config-cflags-sse2avx): Likewise.
1796         (config-cflags-novzeroupper): Likewise.
1797         (config-asflags-i686): Likewise.
1798         (have-mfma4): Likewise.
1799         (have-as-vis3): Likewise.
1800         (MIG): Likewise.
1801         * configure.in (MIG): Do not AC_SUBST.
1802         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1803         (libc_cv_cc_sse4): Do not AC_SUBST.
1804         (libc_cv_cc_avx): Likewise.
1805         (libc_cv_cc_sse2avx): Likewise.
1806         (libc_cv_cc_novzeroupper): Likewise.
1807         (libc_cv_cc_fma4): Likewise.
1808         (libc_cv_as_i686): Likewise.
1809         (libc_cv_sparc_as_vis3): Likewise.
1810         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1811         LIBC_CONFIG_VAR.
1812         (config-asflags-i686): Likewise.
1813         (config-cflags-avx): Likewise.
1814         (config-cflags-sse2avx): Likewise.
1815         (have-mfma4): Likewise.
1816         (config-cflags-novzeroupper): Likewise.
1817         * sysdeps/mach/configure.in (MIG): Likewise.
1818         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1819         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1820         LIBC_CONFIG_VAR.
1821         (config-cflags-avx): Likewise.
1822         (config-cflags-sse2avx): Likewise.
1823         (have-mfma4): Likewise.
1824         (config-cflags-novzeroupper): Likewise.
1825         * configure: Regenerated.
1826         * sysdeps/i386/configure: Likewise.
1827         * sysdeps/mach/configure: Likewise.
1828         * sysdeps/sparc/configure: Likewise.
1829         * sysdeps/x86_64/configure: Likewise.
1830
1831 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1832
1833         [BZ #14812]
1834         * locale/programs/localedef.c (options): Put N_ translation marker
1835         on argument names, not just descriptions.
1836
1837 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1838
1839         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1840
1841 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1842
1843         [BZ #14176]
1844         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1845
1846 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1847
1848         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1849         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1850         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1851         [!BEFORE_ABORT] (before_abort): New function.
1852         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1853         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1854         (writev_for_fatal): New function.
1855         (WRITEV_FOR_FATAL): New macro; call that.
1856         (backtrace_and_maps): New function.
1857         (BEFORE_ABORT): New macro; call that.
1858         (struct str_list): Type removed.
1859         (__libc_message, __libc_fatal): Functions removed.
1860         Include <sysdeps/posix/libc_fatal.c> instead.
1861
1862 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1863
1864         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1865         constants.
1866         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1867         double constants.
1868
1869 2013-03-19  Andreas Schwab  <schwab@suse.de>
1870
1871         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1872         * sysdeps/gnu/configure: Regenerate.
1873
1874         * configure.in: Substitute libc_cv_rtlddir.
1875         * configure: Regenerate.
1876         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1877         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1878         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1879         * elf/Makefile (install-others, CFLAGS-interp.c)
1880         (ldso_install, common-ldd-rewrite): Likewise.
1881         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1882         $(inst_slibdir)/$(rtld-installed-name).
1883         * scripts/rellns-sh: Add -p option.
1884         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1885         for source.
1886
1887 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1888
1889         * manual/nptl.texi: Renamed to ...
1890         * manual/threads.texi: ... this.
1891         * manual/Makefile (chapters): Update.
1892
1893 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1894
1895         [BZ #14812]
1896         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1897         on argument names, not just descriptions.
1898         * malloc/memusagestat.c (options): Likewise.
1899         * nss/getent.c (options): Likewise.
1900
1901 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1902
1903         [BZ #14812]
1904         * iconv/iconv_prog.c (options): Put N_ translation marker
1905         on argument names, not just descriptions.
1906         * iconv/iconvconfig.c (options): Likewise.
1907
1908 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1909
1910         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1911         implementation which is faster on all x86_64 architectures.
1912         Tested on AMD, Intel Nehalem, SNB, IVB.
1913         * sysdeps/x86_64/strnlen.S: Likewise.
1914
1915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1916         Remove all multiarch strlen and strnlen versions.
1917         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1918         Remove strlen and strnlen related parts.
1919
1920         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1921         Inline strlen part.
1922         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1923
1924         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1925         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1926         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1927         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1928         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1929         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1930
1931 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1932
1933         * manual/memory.texi (Malloc Tunable Parameters):
1934         Sort parameters alphabetically. Add comments for missing entries.
1935
1936 2013-03-17  David S. Miller  <davem@davemloft.net>
1937
1938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1939
1940 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1941
1942         [BZ #15283]
1943         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1944         for arguments at most half maximum finite value.
1945         * math/libm-test.inc (j0_test): Add more tests.
1946         (j1_test): Likewise.
1947         (y0_test): Likewise.
1948         (y1_test): Likewise.
1949         * sysdeps/i386/fpu/libm-test-ulps: Update.
1950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1951
1952         [BZ #14155]
1953         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1954         1 / x and functions P and Q for arguments above 0x1p256L.
1955         (__ieee754_y0l): Likewise.
1956         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1957         (__ieee754_y1l): Likewise.
1958         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1959         (j1_test): Likewise.
1960         (y0_test): Likewise.
1961         (y1_test): Likewise.
1962
1963 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1964
1965         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1966         variable.
1967
1968 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1969
1970         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1971         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1972         zero since it's initialized to EXEC_PAGESIZE.
1973
1974         * sysdeps/unix/sysv/linux/ldsodefs.h
1975         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1976         * sysdeps/generic/ldsodefs.h: ... here.
1977
1978 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1979
1980         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1981
1982         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1983         math/test-snan.c.
1984         * math/test-snan.c: Renamed from
1985         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1986         * math/Makefile (tests): Add test-snan.
1987         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1988         test-powerpc-snan.
1989
1990         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1991         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1992         functions.
1993         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1994         __builtin_nan family of functions.
1995         * math/libm-test.inc (initialize): Initialize qnan_value with
1996         __builtin_nan family of functions.
1997         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1998         Remove variables.
1999         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2000         Remove functions.
2001         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2002         storage class.  Initialize qNaN_var and sNaN_var with
2003         __builtin_nan and __builtin_nans families of functions,
2004         respectively.
2005
2006         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2007         (sqrt_test): Remove duplicate test with qNaN input.
2008         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2009         (round_test, signbit_test, significand_test): Note missing +/-Inf
2010         as well as qNaN tests.
2011
2012         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2013         qNaN_var.  Fix a few strings, too.
2014         * math/libm-test.inc (nan_value): Rename to qnan_value.
2015         * math/gen-libm-test.pl (%beautify): Adjust to that.
2016         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2017         * math/test-misc.c (main): Likewise.
2018         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2019         to __qnan_bytes, and __qnan_union, respectively.
2020         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2021         Likewise.
2022         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2023         and lqnanval, respectively.
2024         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2025         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2026         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2027         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2028
2029         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2030         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2031         doubles.
2032
2033         * math/test-misc.c (main): Fix copy'n'pastos.
2034         * misc/tst-efgcvt.c (special): Likewise.
2035
2036         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2037         Remove declarations.
2038
2039 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2040
2041         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2042         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2043         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2044         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2045
2046 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2047
2048         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2049         macro to return vdso values correctly in IFUNC implementations.
2050         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2051         Optimization by using IFUNC.
2052
2053 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2054             Richard Henderson  <rth@redhat.com>
2055             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2056
2057         * Makefile.in (bench): New target.
2058         * NEWS: Mention the benchmark framework.
2059         * Rules (bench): Likewise.
2060         (binaries-bench): Generate binaries for functions to
2061         benchmark.
2062         * benchtests/Makefile: New makefile for benchmark tests.
2063         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2064         programs.
2065         * benchtests/exp-inputs: New input file for EXP function.
2066         * benchtests/pow-inputs: New input file for POW function.
2067         * scripts/bench.pl: New script to generate source files for
2068         benchmark programs.
2069
2070 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2071
2072         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2073         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2074         computations on mantissa.  Use macros for rounding and
2075         division.
2076         (denorm): Likewise.
2077         (__dbl_mp): Likewise.
2078         (add_magnitudes): Likewise.
2079         (sub_magnitudes): Likewise.
2080         (__mul): Likewise.
2081         (__sqr): Likewise.
2082         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2083         powers of two in terms of TWOPOW macro.
2084         (mp_no): Make type of mantissa as MANTISSA_T.
2085         [!RADIXI]: Define RADIXI.
2086         [!TWO52]: Define TWO52.
2087         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2088
2089         * manual/nptl.texi (cindex): Modify threads to pthreads.
2090
2091 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2092
2093         * sysdeps/x86_64/preconfigure: Regenerated.
2094
2095 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2096
2097         [BZ #14155]
2098         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2099         0x1p28 and above.
2100         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2101         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2102         0x1p28 and above.
2103         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2104         * math/libm-test.inc (j0_test): Do not allow one spurious
2105         underflow exception.
2106         (y1_test): Likewise.
2107
2108 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2109
2110         * manual/Makefile (chapters): Add nptl.
2111         * manual/debug.texi (Debugging Support): Add link to Threads
2112         chapter.
2113         * manual/nptl.texi: New file.
2114
2115         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2116
2117 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2118
2119         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2120         for non-NULL pointer before the memory validity test. Pointed
2121         out by Holger Brunck <holger.brunck@keymile.com>.
2122
2123 2013-03-13  Andreas Schwab  <schwab@suse.de>
2124
2125         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2126         instead of .os.
2127
2128 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * timezone/zic.c: Update from tzcode 2013b.
2131
2132 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2133
2134         * manual/install.texi (Configuring and compiling):
2135         Mention i686 and i586.
2136         * INSTALL: Regenerate.
2137
2138 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2139
2140         * sysdeps/init_array/elf-init.c: New file.
2141         * csu/elf-init.c
2142         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2143         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2144
2145         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2146         __gmon_start__ as global, but as static with a .preinit_array pointer.
2147         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2148         * sysdeps/init_array/crti.S: New file, empty except for comments.
2149         * sysdeps/init_array/crtn.S: Likewise.
2150
2151 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2152
2153         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2154         definining bcopy.
2155         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2156         Remove Prefer_SSE_for_memop.
2157         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2158         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2159         HAS_PREFER_SSE_FOR_MEMOP.
2160         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2161         memset-x86-64.
2162         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2163         Remove bzero, memset ifunc support.
2164         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2165         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2166         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2167         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2168
2169 2013-03-11  Andreas Schwab  <schwab@suse.de>
2170
2171         [BZ #15234]
2172         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2173         by SHLIB_COMPAT.
2174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2175         (GLIBC_2.16): Remove pthread_atfork.
2176
2177 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2178
2179         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2180         (ptestcases.h): Likewise.
2181
2182 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2183
2184         * Makeconfig ($(common-objpfx)config.status): Depend on
2185         sysdeps/*/preconfigure{,.in} too.
2186
2187 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2188
2189         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2190         (__free_hook): Use void * instead of __malloc_ptr_t.
2191         (__malloc_hook): Likewise.
2192         (__realloc_hook): Likewise.
2193         (__memalign_hook): Likewise.
2194         (__after_morecore_hook): Likewise.
2195         * malloc/arena.c (save_malloc_hook): Likewise.
2196         (save_free_hook): Likewise.
2197         * malloc/hooks.c (malloc_hook_ini): Likewise.
2198         (realloc_hook_ini): Likewise.
2199         (memalign_hook_ini): Likewise.
2200         * malloc/malloc.c (malloc_hook_ini): Likewise.
2201         (realloc_hook_ini): Likewise.
2202         (memalign_hook_ini): Likewise.
2203         (__free_hook): Likewise.
2204         (__malloc_hook): Likewise.
2205         (__realloc_hook): Likewise.
2206         (__memalign_hook): Likewise.
2207         (__libc_malloc): Likewise.
2208         (__libc_free): Likewise.
2209         (__libc_realloc): Likewise.
2210         (__libc_memalign): Likewise.
2211         (__libc_valloc): Likewise.
2212         (__libc_pvalloc): Likewise.
2213         (__libc_calloc): Likewise.
2214         (__posix_memalign): Likewise.
2215         * malloc/morecore.c (__sbrk): Likewise.
2216         (__default_morecore): Likewise.
2217
2218         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2219
2220         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2221         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2222         __malloc_ptrdiff_t.
2223
2224         * malloc/malloc.h (__malloc_size_t): Remove macro.
2225         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2226         __malloc_size_t.
2227         (old_memalign_hook): Likewise.
2228         (old_realloc_hook): Likewise.
2229         (struct hdr): Likewise.
2230         (flood): Likewise.
2231         (mallochook): Likewise.
2232         (memalignhook): Likewise.
2233         (reallochook): Likewise.
2234         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2235         (tr_old_realloc_hook): Likewise.
2236         (tr_old_memalign_hook): Likewise.
2237         (tr_mallochook): Likewise.
2238         (tr_reallochook): Likewise.
2239         (tr_memalignhook): Likewise.
2240
2241 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2242
2243         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2244         default_ldbl_pack and using as default implementation.
2245         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2246         implementation.
2247         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2248         redundant definition.
2249         (ldbl_insert_mantissa): Likewise.
2250         (ldbl_canonicalize): Likewise.
2251         (ldbl_nearbyint): Likewise.
2252         (ldbl_pack): Rename to ldbl_pack_ppc.
2253         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2254         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2255         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2256
2257 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2258
2259         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2260         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2261         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2262         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2263         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2264         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2265         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2266         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2267
2268 2013-03-07  Andreas Jaeger  <aj@suse.de>
2269
2270         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2271         bits/mman-linux.h.
2272
2273 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2274
2275         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2276         Include mpa.h and declare __MPEXP.
2277         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2278         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2279         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2280         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2281         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2282         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2283         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2284
2285         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2286         (__slowpow): Use long double EXPL and LOGL functions to
2287         compute POW.
2288         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2289         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2290         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2291         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2292         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2293         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2294
2295         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2296         intermediate variable to calculate exponent.
2297         (__sqr): Likewise.
2298         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2299         Likewise.
2300         (__sqr): Likewise.
2301
2302         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2303         [!NO__SQR]: Define __sqr.
2304         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2305         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2306         sysdeps/ieee754/dbl-64/mpa.c.
2307         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2308
2309         [BZ #12723]
2310         * posix/Makefile (tests): Add tst-pathconf.
2311         * posix/tst-pathconf.c: New test case.
2312         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2313         _PC_PIPE_BUF.
2314         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2315
2316 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2317
2318         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2319
2320 2013-03-06  Andreas Jaeger  <aj@suse.de>
2321
2322         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2323         definition via __MAP_ANONYMOUS.
2324
2325         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2326         it's not part of Linux headers.
2327
2328         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2329         (MAP_HUGE_MASK): Define.
2330
2331         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2332         Define.
2333         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2334         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2335         Define.
2336         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2337         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2338         Define.
2339         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2340         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2341         Define.
2342         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2343
2344         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2345         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2346         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2347         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2348         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2349         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2350
2351         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2352         Handle f2fs.
2353
2354         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2355         Handle f2fs and efivarfs.
2356
2357         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2358         f2fs.
2359
2360         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2361         (EFIVARFS_MAGIC): Add.
2362         (F2FS_LINK_MAX): Add.
2363
2364 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2365
2366         * stdio-common/vfprintf.c: Replace __builtin_expect with
2367         __glibc_unlikely.
2368
2369 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2370
2371         [BZ #13550]
2372         * sysdeps/generic/bp-sym.h: Remove file.
2373         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2374         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2375         <bp-sym.h> and <bp-asm.h>.
2376         (__longjmp): Don't use BP_SYM.
2377         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2378         and <bp-asm.h>.
2379         (memcpy): Don't use BP_SYM.
2380         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2381         <bp-sym.h> and <bp-asm.h>.
2382         (memcpy): Don't use BP_SYM.
2383         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2384         <bp-asm.h>.
2385         (memcpy): Don't use BP_SYM.
2386         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2387         <bp-asm.h>.
2388         (memset): Don't use BP_SYM.
2389         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2390         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2391         (__bzero): Don't use BP_SYM.
2392         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2393         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2394         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2395         <bp-sym.h> and <bp-asm.h>.
2396         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2397         pointers.
2398         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2399         <bp-sym.h> and <bp-asm.h>.
2400         (memcpy): Don't use BP_SYM.
2401         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2402         <bp-sym.h> and <bp-asm.h>.
2403         (memset): Don't use BP_SYM.
2404         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2405         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2406         (__bzero): Don't use BP_SYM.
2407         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2408         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2409         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2410         <bp-sym.h> and <bp-asm.h>.
2411         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2412         pointers.
2413         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2414         <bp-sym.h> and <bp-asm.h>.
2415         (memcpy): Don't use BP_SYM.
2416         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2417         <bp-sym.h> and <bp-asm.h>.
2418         (memset): Don't use BP_SYM.
2419         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2420         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2421         (__bzero): Don't use BP_SYM.
2422         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2423         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2424         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2425         <bp-sym.h> and <bp-asm.h>.
2426         (__memchr): Don't use BP_SYM.
2427         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2428         <bp-sym.h> and <bp-asm.h>.
2429         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2430         pointers.
2431         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2432         <bp-sym.h> and <bp-asm.h>.
2433         (memcpy): Don't use BP_SYM.
2434         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2435         <bp-sym.h> and <bp-asm.h>.
2436         (__mempcpy): Don't use BP_SYM.
2437         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2438         <bp-sym.h> and <bp-asm.h>.
2439         (__memrchr): Don't use BP_SYM.
2440         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2441         <bp-sym.h> and <bp-asm.h>.
2442         (memset): Don't use BP_SYM.
2443         (__bzero): Likewise.
2444         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2445         <bp-sym.h> and <bp-asm.h>.
2446         (__rawmemchr): Don't use BP_SYM.
2447         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2448         <bp-sym.h> and <bp-asm.h>.
2449         (__STRCMP): Don't use BP_SYM.
2450         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2451         <bp-sym.h> and <bp-asm.h>.
2452         (strchr): Don't use BP_SYM.
2453         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2454         <bp-sym.h> and <bp-asm.h>.
2455         (__strchrnul): Don't use BP_SYM.
2456         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2457         <bp-sym.h> and <bp-asm.h>.
2458         (strlen): Don't use BP_SYM.
2459         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2460         <bp-sym.h> and <bp-asm.h>.
2461         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2462         pointers.
2463         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2464         <bp-sym.h> and <bp-asm.h>.
2465         (__strnlen): Don't use BP_SYM.
2466         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2467         <bp-sym.h> and <bp-asm.h>.
2468         (__GI__setjmp): Don't use BP_SYM.
2469         (_setjmp): Likewise.
2470         (__sigsetjmp): Likewise.
2471         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2472         (L(start_addresses)): Don't use BP_SYM.
2473         (_start): Likewise.
2474         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2475         <bp-asm.h>.
2476         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2477         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2478         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2479         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2480         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2481         <bp-asm.h>.
2482         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2483         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2484         about bounded pointers.
2485         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2486         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2487         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2488         <bp-asm.h>.
2489         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2490         about bounded pointers.  Remove GKM FIXME comments.
2491         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2492         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2493         <bp-asm.h>.
2494         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2495         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2496         Remove GKM FIXME comments.
2497         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2498         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2499         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2500         <bp-asm.h>.
2501         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2502         about bounded pointers.  Remove GKM FIXME comment.
2503         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2504         and <bp-asm.h>.
2505         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2506         pointers.
2507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2508         <bp-sym.h> and <bp-asm.h>.
2509         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2511         <bp-sym.h> and <bp-asm.h>.
2512         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2513         comment.
2514
2515 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2516
2517         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2518         call free(NULL).
2519
2520 2013-03-05  David S. Miller  <davem@davemloft.net>
2521
2522         * po/es.po: Update from translation team.
2523
2524 2013-03-05  Andreas Jaeger  <aj@suse.de>
2525
2526         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2527         <bits/mman-linux.h>.
2528         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2529         is fine.
2530         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2531         <bits/mman-linux.h> to end of file.
2532         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2533         is fine.
2534         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2535         <bits/mman-linux.h> to end of file.
2536         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2537         is fine.
2538         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2539         <bits/mman-linux.h> to end of file.
2540
2541         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2542         (MCL_CURRENT, MCL_FUTURE): Define here.
2543
2544 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2545
2546         [BZ #15232]
2547         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2548         attribute_hidden.
2549         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2550
2551 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2552
2553         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2554         fourth parameter needed for rt_sigprocmask syscall.
2555         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2556         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2557         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2558         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2559         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2560         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2561
2562 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2563
2564         [BZ #13550]
2565         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2566         comment about bounded pointers.
2567         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2568         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2569
2570 2013-03-04  Andreas Jaeger  <aj@suse.de>
2571
2572         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2573         common definitions.
2574
2575         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2576         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2577         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2578         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2579         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2580         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2581
2582 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2583
2584         [BZ #15055]
2585         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2586         __ieee754_sqrl instead of __sqrl.
2587
2588 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2589
2590         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2591         * sysdeps/powerpc/fpu_control.h: ... here.
2592         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2593         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2594         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2595         * sysdeps/powerpc/bits/mathinline.h: ... here.
2596
2597 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2598
2599         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2600         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2601         to just [NEED_DL_SYSINFO_DSO].
2602         * elf/dl-support.c: Likewise.
2603         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2604         * elf/rtld.c (dl_main): Likewise.
2605         * elf/setup-vdso.h (setup_vdso): Likewise.
2606         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2607         * sysdeps/unix/sysv/linux/dl-sysdep.c
2608         (_dl_discover_osversion): Likewise.
2609
2610 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2611
2612         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2613         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2614
2615 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2616
2617         * NEWS: Mention libm performance improvements and non-x86 PI
2618         futex support.
2619
2620         * csu/libc-start.c (__pthread_initialize_minimal): Change
2621         function arguments.
2622         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2623
2624 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2625
2626         [BZ #13550]
2627         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2628         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2629         <bp-sym.h> and <bp-asm.h>.
2630         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2631         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2632         and <bp-asm.h>.
2633         (memcpy): Don't use BP_SYM.
2634         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2635         <bp-asm.h>.
2636         (__mpn_add_n): Don't use BP_SYM.
2637         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2638         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2639         and <bp-asm.h>.
2640         (__mpn_addmul_1): Don't use BP_SYM.
2641         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2642         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2643         <bp-sym.h>.
2644         (_setjmp): Don't use BP_SYM.
2645         (__novmx_setjmp): Likewise.
2646         (__GI__setjmp): Likewise.
2647         (__vmx_setjmp): Likewise.
2648         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2649         <bp-sym.h>.
2650         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2651         (__bzero): Don't use BP_SYM.
2652         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2653         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2654         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2655         <bp-sym.h> and <bp-asm.h>.
2656         (memcpy): Don't use BP_SYM.
2657         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2658         <bp-sym.h> and <bp-asm.h>.
2659         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2660         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2661         <bp-sym.h> and <bp-asm.h>.
2662         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2663         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2664         <bp-asm.h>.
2665         (__mpn_lshift): Don't use BP_SYM.
2666         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2667         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2668         <bp-asm.h>.
2669         (memset): Don't use BP_SYM.
2670         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2671         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2672         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2673         <bp-asm.h>.
2674         (__mpn_mul_1): Don't use BP_SYM.
2675         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2676         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2677         <bp-sym.h> and <bp-asm.h>.
2678         (memcmp): Don't use BP_SYM.
2679         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2680         <bp-sym.h> and <bp-asm.h>.
2681         (memcpy): Don't use BP_SYM.
2682         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2683         <bp-sym.h> and <bp-asm.h>.
2684         (memset): Don't use BP_SYM.
2685         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2686         <bp-sym.h> and <bp-asm.h>.
2687         (strncmp): Don't use BP_SYM.
2688         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2689         <bp-sym.h> and <bp-asm.h>.
2690         (memcpy): Don't use BP_SYM.
2691         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2692         <bp-sym.h> and <bp-asm.h>.
2693         (memset): Don't use BP_SYM.
2694         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2695         <bp-sym.h> and <bp-asm.h>.
2696         (__memchr): Don't use BP_SYM.
2697         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2698         <bp-sym.h> and <bp-asm.h>.
2699         (memcmp): Don't use BP_SYM.
2700         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2701         <bp-sym.h> and <bp-asm.h>.
2702         (memcpy): Don't use BP_SYM.
2703         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2704         <bp-sym.h> and <bp-asm.h>.
2705         (__mempcpy): Don't use BP_SYM.
2706         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2707         <bp-sym.h> and <bp-asm.h>.
2708         (__memrchr): Don't use BP_SYM.
2709         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2710         <bp-sym.h> and <bp-asm.h>.
2711         (memset): Don't use BP_SYM.
2712         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2713         <bp-sym.h> and <bp-asm.h>.
2714         (__rawmemchr): Don't use BP_SYM.
2715         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2716         <bp-sym.h> and <bp-asm.h>.
2717         (__STRCMP): Don't use BP_SYM.
2718         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2719         <bp-sym.h> and <bp-asm.h>.
2720         (strchr): Don't use BP_SYM.
2721         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2722         <bp-sym.h> and <bp-asm.h>.
2723         (__strchrnul): Don't use BP_SYM.
2724         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2725         <bp-sym.h> and <bp-asm.h>.
2726         (strlen): Don't use BP_SYM.
2727         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2728         <bp-sym.h> and <bp-asm.h>.
2729         (strncmp): Don't use BP_SYM.
2730         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2731         <bp-sym.h> and <bp-asm.h>.
2732         (__strnlen): Don't use BP_SYM.
2733         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2734         <bp-asm.h>.
2735         (__mpn_rshift): Don't use BP_SYM.
2736         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2737         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2738         <bp-sym.h> and <bp-asm.h>.
2739         (__sigsetjmp): Don't use BP_SYM.
2740         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2741         (L(start_addresses)): Don't use BP_SYM.
2742         (_start): Likewise.
2743         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2744         <bp-asm.h>.
2745         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2746         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2747         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2748         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2749         <bp-asm.h>.
2750         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2751         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2752         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2753         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2754         <bp-asm.h>.
2755         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2756         comments.
2757         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2758         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2759         <bp-asm.h>.
2760         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2761         FIXME comments.
2762         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2763         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2764         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2765         <bp-asm.h>.
2766         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2767         comment.
2768         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2769         and <bp-asm.h>.
2770         (strncmp): Don't use BP_SYM,
2771         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2772         <bp-asm.h>.
2773         (__mpn_sub_n): Don't use BP_SYM.
2774         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2775         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2776         and <bp-asm.h>.
2777         (__mpn_submul_1): Don't use BP_SYM.
2778         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2780         <bp-sym.h> and <bp-asm.h>.
2781         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2783         <bp-sym.h> and <bp-asm.h>.
2784         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2785         comment.
2786
2787 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2788
2789         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2790         Use ZK to minimize writes to Z.
2791         (sub_magnitudes): Simplify code a bit.
2792         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2793         Use ZK to minimize writes to Z.
2794         (sub_magnitudes): Simplify code a bit.
2795
2796 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2797
2798         * csu/gmon-start.c: Add special exception to license text.
2799
2800 2013-02-27  Richard Henderson  <rth@redhat.com>
2801
2802         * scripts/config.guess: Update from config.git.
2803         * scripts/config.sub: Likewise.
2804
2805 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2806
2807         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2808
2809         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2810
2811         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2812
2813         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2814
2815         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2816
2817 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2818
2819         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2820         [$(build-shared = yes].
2821
2822 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2823
2824         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2825         (__mul): Reduce iterations for calculating mantissa.
2826
2827         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2828         MPTWO.
2829         (__mpranred): Likewise.
2830
2831         [BZ #15160]
2832         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2833         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2834
2835 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2836
2837         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2838         Define __attribute__.
2839
2840 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2841
2842         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2843         unused.
2844         * posix/regex_internal.h (__attribute): Remove.
2845         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2846         (re_string_context_at): Likewise.
2847         (bitset_not): Use __attribute__ and mark function as possibly
2848         unused.
2849         (bitset_merge): Likewise.
2850         (bitset_mask): Likewise.
2851         (re_string_char_size_at): Likewise.
2852         (re_string_wchar_at): Likewise.
2853         (re_string_elem_size_at): Likewise.
2854
2855 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2856
2857         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2858         code.
2859         (cc32): Likewise.
2860
2861         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2862         (__acr): Likewise.
2863         (__cpy): Likewise.
2864         (norm): Likewise.
2865         (denorm): Likewise.
2866         (__dbl_mp): Likewise.
2867         (add_magnitudes): Likewise.
2868         (sub_magnitudes): Likewise.
2869         (__mul): Likewise.
2870         (__inv): Likewise.
2871
2872         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2873         style.
2874
2875         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2876         style.
2877
2878         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2879         code.
2880
2881         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2882         up changes with default code.
2883         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2884         Likewise.
2885
2886 2013-02-24  Allan McRae  <allan@archlinux.org>
2887
2888         * manual/socket.texi (The Internet Namespace): Order menu items
2889         to match that in the file.
2890
2891         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2892         node listing of the info page menu.
2893
2894 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2895
2896         [BZ #13550]
2897         * sysdeps/i386/bp-asm.h: Remove file.
2898         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2899         (PARMS): Do not use macros from bp-asm.h.
2900         (S1): Likewise.
2901         (S2): Likewise.
2902         (SIZE): Likewise.
2903         (__mpn_add_n): Do not use BP_SYM
2904         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2905         "bp-asm.h".
2906         (PARMS): Do not use macros from bp-asm.h.
2907         (S1): Likewise.
2908         (SIZE): Likewise.
2909         (__mpn_addmul_1): Do not use BP_SYM
2910         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2911         "bp-asm.h".
2912         (PARMS): Do not use macros from bp-asm.h.
2913         (SIGMSK): Likewise.
2914         (_setjmp): Likewise.  Do not use BP_SYM.
2915         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2916         "bp-asm.h".
2917         (PARMS): Do not use macros from bp-asm.h.
2918         (SIGMSK): Likewise.
2919         (setjmp): Likewise.  Do not use BP_SYM.
2920         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2921         "bp-asm.h".
2922         (PARMS): Do not use macros from bp-asm.h.
2923         (__frexp): Do not use BP_SYM.
2924         (frexp): Likewise.
2925         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2926         "bp-asm.h".
2927         (PARMS): Do not use macros from bp-asm.h.
2928         (__frexpf): Do not use BP_SYM.
2929         (frexpf): Likewise.
2930         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2931         "bp-asm.h".
2932         (PARMS): Do not use macros from bp-asm.h.
2933         (__frexpl): Do not use BP_SYM.
2934         (frexpl): Likewise.
2935         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2936         "bp-asm.h".
2937         (PARMS): Do not use macros from bp-asm.h.
2938         (__remquo): Do not use BP_SYM.
2939         (remquo): Likewise.
2940         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2941         "bp-asm.h".
2942         (PARMS): Do not use macros from bp-asm.h.
2943         (__remquof): Do not use BP_SYM.
2944         (remquof): Likewise.
2945         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2946         "bp-asm.h".
2947         (PARMS): Do not use macros from bp-asm.h.
2948         (__remquol): Do not use BP_SYM.
2949         (remquol): Likewise.
2950         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2951         "bp-asm.h".
2952         (PARMS): Do not use macros from bp-asm.h.
2953         (DEST): Likewise.
2954         (SRC): Likewise.
2955         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2956         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2957         "bp-asm.h".
2958         (PARMS): Do not use macros from bp-asm.h.
2959         (strlen): Do not use BP_SYM.
2960         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2961         "bp-asm.h".
2962         (PARMS): Do not use macros from bp-asm.h.
2963         (S1): Likewise.
2964         (S2): Likewise.
2965         (SIZE): Likewise.
2966         (__mpn_add_n): Do not use BP_SYM.
2967         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2968         "bp-asm.h".
2969         (PARMS): Do not use macros from bp-asm.h.
2970         (S1): Likewise.
2971         (SIZE): Likewise.
2972         (__mpn_addmul_1): Do not use BP_SYM.
2973         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2974         weak_alias.
2975         (bzero): Likewise.
2976         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2977         "bp-asm.h".
2978         (PARMS): Do not use macros from bp-asm.h.
2979         (S): Likewise.
2980         (SIZE): Likewise.
2981         (__mpn_lshift): Do not use BP_SYM.
2982         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2983         "bp-asm.h".
2984         (PARMS): Do not use macros from bp-asm.h.
2985         (DEST): Likewise.
2986         (SRC): Likewise.
2987         (LEN): Likewise.
2988         (memcpy): Likewise.  Do not use BP_SYM.
2989         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2990         libc_hidden_def and weak_alias.
2991         (mempcpy): Do not use BP_SYM in weak_alias.
2992         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2993         "bp-asm.h".
2994         (PARMS): Do not use macros from bp-asm.h.
2995         (DEST): Likewise.
2996         (LEN): Likewise.
2997         [!BZERO_P] (CHR): Likewise.
2998         (memset): Likewise.  Do not use BP_SYM.
2999         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3000         "bp-asm.h".
3001         (PARMS): Do not use macros from bp-asm.h.
3002         (S1): Likewise.
3003         (SIZE): Likewise.
3004         (__mpn_mul_1): Do not use BP_SYM.
3005         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3006         "bp-asm.h".
3007         (PARMS): Do not use macros from bp-asm.h.
3008         (S): Likewise.
3009         (SIZE): Likewise.
3010         (__mpn_rshift): Do not use BP_SYM.
3011         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3012         "bp-asm.h".
3013         (PARMS): Do not use macros from bp-asm.h.
3014         (STR): Likewise.
3015         (CHR): Likewise.
3016         (strchr): Likewise.  Do not use BP_SYM.
3017         (index): Do not use BP_SYM in weak_alias.
3018         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3019         "bp-asm.h".
3020         (PARMS): Do not use macros from bp-asm.h.
3021         (DEST): Likewise.
3022         (SRC): Likewise.
3023         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3024         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3025         "bp-asm.h".
3026         (PARMS): Do not use macros from bp-asm.h.
3027         (strlen): Do not use BP_SYM.
3028         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3029         "bp-asm.h".
3030         (PARMS): Do not use macros from bp-asm.h.
3031         (S1): Likewise.
3032         (S2): Likewise.
3033         (SIZE): Likewise.
3034         (__mpn_sub_n): Do not use BP_SYM.
3035         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3036         "bp-asm.h".
3037         (PARMS): Do not use macros from bp-asm.h.
3038         (S1): Likewise.
3039         (SIZE): Likewise.
3040         (__mpn_submul_1): Do not use BP_SYM.
3041         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3042         "bp-asm.h".
3043         (PARMS): Do not use macros from bp-asm.h.
3044         (S1): Likewise.
3045         (S2): Likewise.
3046         (SIZE): Likewise.
3047         (__mpn_add_n): Do not use BP_SYM.
3048         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3049         weak_alias.
3050         (bzero): Likewise.
3051         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3052         "bp-asm.h".
3053         (PARMS): Do not use macros from bp-asm.h.
3054         (BLK2): Likewise.
3055         (LEN): Likewise.
3056         (memcmp): Do not use BP_SYM.
3057         (bcmp): Do not use BP_SYM in weak_alias.
3058         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3059         "bp-asm.h".
3060         (PARMS): Do not use macros from bp-asm.h.
3061         (DEST): Likewise.
3062         (SRC): Likewise.
3063         (LEN): Likewise.
3064         (memcpy): Likewise.  Do not use BP_SYM.
3065         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3066         "bp-asm.h".
3067         (PARMS): Do not use macros from bp-asm.h.
3068         (DEST): Likewise.
3069         (SRC): Likewise.
3070         (LEN): Likewise.
3071         (memmove): Likewise.  Do not use BP_SYM.
3072         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3073         "bp-asm.h".
3074         (PARMS): Do not use macros from bp-asm.h.
3075         (DEST): Likewise.
3076         (SRC): Likewise.
3077         (LEN): Likewise.
3078         (__mempcpy): Likewise.  Do not use BP_SYM.
3079         (mempcpy): Do not use BP_SYM in weak_alias.
3080         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3081         "bp-asm.h".
3082         (PARMS): Do not use macros from bp-asm.h.
3083         (DEST): Likewise.
3084         (LEN): Likewise.
3085         [!BZERO_P] (CHR): Likewise.
3086         (memset): Likewise.  Do not use BP_SYM.
3087         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3088         "bp-asm.h".
3089         (PARMS): Do not use macros from bp-asm.h.
3090         (STR2): Likewise.
3091         (strcmp): Do not use BP_SYM.
3092         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3093         "bp-asm.h".
3094         (PARMS): Do not use macros from bp-asm.h.
3095         (STR): Likewise.
3096         (DELIM): Likewise.
3097         [USE_AS_STRTOK_R] (SAVE): Likewise.
3098         (FUNCTION): Likewise.  Do not use BP_SYM.
3099         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3100         aliases.
3101         (strtok_r): Likewise.
3102         (__GI___strtok_r): Likewise.
3103         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3104         (PARMS): Do not use macros from bp-asm.h.
3105         (S): Likewise.
3106         (SIZE): Likewise.
3107         (__mpn_lshift): Do not use BP_SYM.
3108         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3109         (PARMS): Do not use macros from bp-asm.h.
3110         (STR): Likewise.
3111         (CHR): Likewise.
3112         (__memchr): Do not use BP_SYM.
3113         (memchr): Do not use BP_SYM in weak_alias.
3114         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3115         (PARMS): Do not use macros from bp-asm.h.
3116         (BLK2): Likewise.
3117         (LEN): Likewise.
3118         (memcmp): Do not use BP_SYM.
3119         (bcmp): Do not use BP_SYM in weak_alias.
3120         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3121         (PARMS): Do not use macros from bp-asm.h.
3122         (S1): Likewise.
3123         (SIZE): Likewise.
3124         (__mpn_mul_1): Do not use BP_SYM.
3125         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3126         "bp-asm.h".
3127         (PARMS): Do not use macros from bp-asm.h.
3128         (STR): Likewise.
3129         (CHR): Likewise.
3130         (__rawmemchr): Do not use BP_SYM.
3131         (rawmemchr): Do not use BP_SYM in weak_alias.
3132         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3133         (PARMS): Do not use macros from bp-asm.h.
3134         (S): Likewise.
3135         (SIZE): Likewise.
3136         (__mpn_rshift): Do not use BP_SYM.
3137         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3138         (PARMS): Do not use macros from bp-asm.h.
3139         (SIGMSK): Likewise.
3140         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3141         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3142         (_start): Do not use BP_SYM.
3143         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3144         (PARMS): Do not use macros from bp-asm.h.
3145         (DEST): Likewise.
3146         (SRC): Likewise.
3147         (__stpcpy): Likewise.  Do not use BP_SYM.
3148         (stpcpy): Do not use BP_SYM in weak_alias.
3149         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3150         "bp-asm.h".
3151         (PARMS): Do not use macros from bp-asm.h.
3152         (DEST): Likewise.
3153         (SRC): Likewise.
3154         (LEN): Likewise.
3155         (__stpncpy): Likewise.  Do not use BP_SYM.
3156         (stpncpy): Do not use BP_SYM in weak_alias.
3157         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3158         (PARMS): Do not use macros from bp-asm.h.
3159         (STR): Likewise.
3160         (CHR): Likewise.
3161         (strchr): Likewise.  Do not use BP_SYM.
3162         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3163         "bp-asm.h".
3164         (PARMS): Do not use macros from bp-asm.h.
3165         (STR): Likewise.
3166         (CHR): Likewise.
3167         (__strchrnul): Likewise.  Do not use BP_SYM.
3168         (strchrnul): Do not use BP_SYM in weak_alias.
3169         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3170         "bp-asm.h".
3171         (PARMS): Do not use macros from bp-asm.h.
3172         (STOP): Likewise.
3173         (strcspn): Do not use BP_SYM.
3174         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3175         "bp-asm.h".
3176         (PARMS): Do not use macros from bp-asm.h.
3177         (STR): Likewise.
3178         (STOP): Likewise.
3179         (strpbrk): Likewise.  Do not use BP_SYM.
3180         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3181         "bp-asm.h".
3182         (PARMS): Do not use macros from bp-asm.h.
3183         (STR): Likewise.
3184         (CHR): Likewise.
3185         (strrchr): Likewise.  Do not use BP_SYM.
3186         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3187         (PARMS): Do not use macros from bp-asm.h.
3188         (SKIP): Likewise.
3189         (strspn): Do not use BP_SYM.
3190         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3191         (PARMS): Do not use macros from bp-asm.h.
3192         (STR): Likewise.
3193         (DELIM): Likewise.
3194         (SAVE): Likewise.
3195         (FUNCTION): Likewise.  Do not use BP_SYM.
3196         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3197         aliases.
3198         (strtok_r): Likewise.
3199         (__GI___strtok_r): Likewise.
3200         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3201         (PARMS): Do not use macros from bp-asm.h.
3202         (S1): Likewise.
3203         (S2): Likewise.
3204         (SIZE): Likewise.
3205         (__mpn_sub_n): Do not use BP_SYM.
3206         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3207         "bp-asm.h".
3208         (PARMS): Do not use macros from bp-asm.h.
3209         (S1): Likewise.
3210         (SIZE): Likewise.
3211         (__mpn_submul_1): Do not use BP_SYM.
3212         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3213         <bp-sym.h>.
3214         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3215         and <bp-asm.h>.
3216         (PARMS): Do not use macros from bp-asm.h.
3217         (FLAGS): Likewise.
3218         (PTID): Likewise.
3219         (TLS): Likewise.
3220         (CTID): Likewise.
3221         (__clone): Do not use BP_SYM.
3222         (clone): Do not use BP_SYM in weak_alias.
3223         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3224         and <bp-asm.h>.
3225         (PARMS): Do not use macros from bp-asm.h.
3226         (LEN): Likewise.
3227         (__mmap64): Do not use BP_SYM.
3228         (mmap64): Do not use BP_SYM in weak_alias.
3229         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3230         <bp-sym.h> and <bp-asm.h>.
3231         (PARMS): Do not use macros from bp-asm.h.
3232         (__posix_fadvise64_l64): Do not use BP_SYM.
3233         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3234         (PARMS): Do not use macros from bp-asm.h.
3235         (NSOPS): Likewise.
3236         (semtimedop): Do not use BP_SYM.
3237         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3238         and <bp-asm.h>.
3239
3240 2013-02-21  Allan McRae  <allan@archlinux.org>
3241
3242         * manual/message.texi (Charset conversion in gettext):
3243         Move @end statement to beginning of line.
3244
3245 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3246
3247         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3248         static.
3249         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3250         Likewise.
3251
3252         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3253         (denorm): Likewise.
3254         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3255         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3256
3257 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3258
3259         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3260         tail-call to the resolved function if pltexit isn't needed.
3261
3262 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3263
3264         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3265         or Y being zero as being unlikely.
3266         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3267         Likewise.
3268
3269 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3270
3271         * manual/nss.texi (System Databases and Name Service Switch):
3272         Remove frobnicate @pxref.
3273
3274 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3275
3276         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3277         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3278
3279 2013-02-20  Petr Machata  <pmachata@redhat.com>
3280
3281         * elf/elf.h (R_ARM_TARGET1): New macro.
3282         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3283         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3284         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3285         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3286         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3287         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3288         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3289         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3290         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3291         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3292         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3293         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3294         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3295         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3296         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3297         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3298         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3299         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3300         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3301         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3302         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3303         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3304         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3305         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3306         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3307         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3308         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3309         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3310         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3311         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3312         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3313         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3314         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3315         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3316         (R_ARM_THM_GOT_BREL12): Likewise.
3317         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3318         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3319         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3320         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3321         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3322         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3323         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3324         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3325         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3326
3327 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3328
3329         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3330         __attribute_used__ to __attribute__ ((unused)).
3331
3332 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3333
3334         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3335         powerpc mpa.c.
3336         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3337         comment formatting.
3338         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3339
3340 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3341
3342         [BZ #13550]
3343         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3344         Remove macro.
3345         (ENTER): Remove both macro definitions.
3346         (LEAVE): Likewise.
3347         (CHECK_BOUNDS_LOW): Likewise.
3348         (CHECK_BOUNDS_HIGH): Likewise.
3349         (CHECK_BOUNDS_BOTH): Likewise.
3350         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3351         (RETURN_BOUNDED_POINTER): Likewise.
3352         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3353         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3354         (POP_ERRNO_LOCATION_RETURN): Likewise.
3355         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3356         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3357         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3358         macros.
3359         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3360         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3361         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3362         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3363         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3364         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3365         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3366         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3367         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3368         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3369         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3370         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3371         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3372         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3373         removed macros.
3374         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3375         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3376         macros.
3377         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3378         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3379         * sysdeps/i386/i586/memset.S (memset): Likewise.
3380         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3381         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3382         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3383         macros.
3384         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3385         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3386         Change uses of L(2) to L(out).
3387         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3388         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3389         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3390         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3391         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3392         removed macros.
3393         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3394         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3395         macros.
3396         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3397         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3398         (RETURN): Do not use macro LEAVE.
3399         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3400         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3401         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3402         * sysdeps/i386/i686/memset.S (memset): Likewise.
3403         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3404         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3405         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3406         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3407         Likewise.
3408         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3409         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3410         L(1_2) and L(1_3) into L(1).
3411         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3412         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3413         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3414         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3415         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3416         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3417         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3418         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3419         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3420         macros.
3421         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3422         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3423         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3424         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3425         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3426         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3427         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3428         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3429         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3430         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3431         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3432         * sysdeps/i386/strspn.S (strspn): Likewise.
3433         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3434         conditional code.
3435         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3436         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3437         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3438         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3439         L(1_3) into L(1_1).
3440         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3441         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3442         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3443         macros.
3444         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3445
3446 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3447
3448         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3449         macro.
3450
3451 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3452
3453         * math/atest-exp.c (exp_mpn): Remove ROUND.
3454         * math/atest-exp2.c (exp_mpn): Likewise.
3455         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3456
3457         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3458         * stdlib/tst-tls-atexit-lib.c: Likewise.
3459         * stdlib/tst-tls-atexit.c: Likewise.
3460
3461 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3462
3463         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3464         and __attribute_alloc_size__.
3465
3466 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3467
3468         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3469         __attribute_alloc_size__.
3470         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3471         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3472
3473 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3474
3475         * include/programs/xmalloc.h: New file.
3476         * catgets/gencat.c: Include it.
3477         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3478         * elf/pldd.c: Likewise.
3479         * iconv/iconv_charmap.c: Likewise.
3480         * iconv/iconvconfig.c: Likewise.
3481         * iconv/strtab.c: Likewise.
3482         * locale/programs/locale.c: Likewise.
3483         * locale/programs/localedef.h: Likewise.
3484         * locale/programs/simple-hash.c: Likewise.
3485         * nscd/nscd.h: Likewise.
3486         * nss/makedb.c: Likewise.
3487         * sysdeps/generic/ldconfig.h: Likewise.
3488
3489 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3490
3491         * Versions.def: Add GLIBC_2.18.
3492         * include/link.h (struct link_map): New member l_tls_dtor_count.
3493         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3494         (__call_tls_dtors): Likewise.
3495         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3496         __cxa_thread_atexit_impl.
3497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3498         Likewise.
3499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3500         Likewise.
3501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3502         Likewise.
3503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3504         Likewise.
3505         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3506         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3507         Likewise.
3508         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3509         Likewise.
3510         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3512         Likewise.
3513         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3514         (tests): Add test case tst-tls-atexit.
3515         (modules-names): Add shared library for tst-tls-atexit.
3516         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3517         (GLIBC_PRIVATE): Add __call_tls_dtors.
3518         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3519         for libstdc++.
3520         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3521         * stdlib/tst-tls-atexit.c: New test case.
3522         * stdlib/tst-tls-atexit-lib.c: New test case.
3523
3524         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3525
3526         * elf/Versions (ld): Add _dl_find_dso_for_object.
3527         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3528         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3529         (dl_open_worker): Use _dl_find_dso_for_object.
3530         * elf/dl-sym.c (do_sym): Likewise.
3531         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3532
3533 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3534
3535         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3536         Syntactic changes only.
3537         (_dl_runtime_profile): Do a tail-call to the resolved function.
3538
3539 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3540
3541         [BZ #13550]
3542         * sysdeps/x86_64/bp-asm.h: Remove file.
3543         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3544         <bp-sym.h> and <bp-asm.h>.
3545         (__clone): Do not use BP_SYM.
3546         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3547         <bp-sym.h> and <bp-asm.h>.
3548         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3549         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3550         "bp-asm.h".
3551         (_setjmp): Do not use BP_SYM.
3552         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3553         "bp-asm.h".
3554         (setjmp): Do not use BP_SYM.
3555         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3556         libc_hidden_def.
3557         (mempcpy): Do not use BP_SYM in weak_alias.
3558         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3559         "bp-asm.h".
3560         (strchr): Do not use BP_SYM.
3561         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3562         "bp-asm.h".
3563         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3564         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3565         (_start): Do not use BP_SYM.
3566         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3567         "bp-asm.h".
3568         (strcat): Do not use BP_SYM.
3569         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3570         "bp-asm.h".
3571         (STRCMP): Do not use BP_SYM.
3572         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3573         "bp-asm.h".
3574         (STRCPY): Do not use BP_SYM.
3575         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3576         "bp-asm.h".
3577         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3578         "bp-asm.h".
3579         (FUNCTION): Do not use BP_SYM.
3580         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3581         weak_alias.
3582         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3583
3584 2013-02-17  Andreas Jaeger  <aj@suse.de>
3585
3586         * time/Versions: Sort entries.
3587         * string/Versions: Likewise.
3588         * resolv/Versions: Likewise.
3589         * posix/Versions: Likewise.
3590         * iconv/Versions: Likewise.
3591         * elf/Versions: Likewise.
3592         * wcsmbs/Versions: Likewise.
3593
3594 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3595
3596         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3597         loop termination condition.
3598
3599         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3600         variable to calculate EZ.
3601         (__sqr): Likewise.
3602
3603         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3604         the lower precision input.
3605
3606 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3607
3608         [BZ #13550]
3609         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3610         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3611         (run-via-rtld-prefix): Do not handle %-bp tests.
3612         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3613         (all-object-suffixes): Remove .ob.
3614         (bppfx): Remove variable.
3615         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3616         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3617         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3618         [$(build-bounded) = yes] (libtype.ob): Likewise.
3619         * Makerules (elide-routines.ob): Remove variable.
3620         (do-tests-clean): Do not handle *-bp.out.
3621         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3622         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3623         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3624         (tests): Do not include $(tests-bp.out).
3625         (xtests): Do not include $(xtests-bp.out).
3626         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3627         [$(build-bounded) = yes] ($(addprefix
3628         $(objpfx),$(binaries-bounded))): Remove rule.
3629         ($(objpfx)%-bp.out): Remove rule.
3630         * config.make.in (build-bounded): Remove variable.
3631         * crypt/Makefile [$(build-bounded) = yes]
3632         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3633         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3634         append to variable.
3635         [$(build-bounded) = yes] (install-lib): Likewise.
3636         [$(build-bounded) = yes] (generated): Likewise.
3637         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3638         Remove rule.
3639         * intl/Makefile [$(build-bounded) = yes]
3640         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3641         * math/Makefile [$(build-bounded) = yes]
3642         ($(tests:%=$(objpfx)%-bp): Likewise.
3643         * misc/Makefile [$(build-bounded) = yes]
3644         ($(objpfx)tst-tsearch-bp): Likewise.
3645         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3646         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3647         Remove dependency.
3648         * string/Makefile (o-objects.ob): Remove variable.
3649         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3650         (CFLAGS-.ob): Remove variable.
3651         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3652         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3653         both definitions of variable.
3654         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3655         (ASFLAGS-.ob): Remove variable.
3656
3657 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3658
3659         [BZ #13550]
3660         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3661         Remove __BOUNDED_POINTERS__ from condition.
3662         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3663         * string/bits/string2.h [!__NO_STRING_INLINES &&
3664         !__BOUNDED_POINTERS__]: Likewise.
3665         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3666         Likewise.
3667         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3668         Remove conditional code.
3669         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3670         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3671         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3672         condition.
3673
3674         [BZ #13550]
3675         * csu/libc-start.c: Do not include <bp-sym.h>.
3676         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3677         * elf/dl-open.c: Do not include <bp-sym.h>.
3678         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3679         * math/fegetenv.c: Do not include <bp-sym.h>.
3680         (fegetenv): Do not use BP_SYM in versioned symbols.
3681         * nptl/sysdeps/pthread/bits/libc-lockP.h
3682         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3683         <bp-sym.h>.
3684         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3685         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3686         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3687         (__pthread_mutex_destroy): Likewise.
3688         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3689         (__pthread_mutex_lock): Likewise.
3690         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3691         (__pthread_mutex_trylock): Likewise.
3692         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3693         (__pthread_mutex_unlock): Likewise.
3694         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3695         (__pthread_mutexattr_init): Likewise.
3696         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3697         (__pthread_mutexattr_destroy): Likewise.
3698         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3699         (__pthread_mutexattr_settype): Likewise.
3700         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3701         (__pthread_rwlock_init): Likewise.
3702         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3703         (__pthread_rwlock_destroy): Likewise.
3704         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3705         (__pthread_rwlock_rdlock): Likewise.
3706         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3707         (__pthread_rwlock_tryrdlock): Likewise.
3708         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3709         (__pthread_rwlock_wrlock): Likewise.
3710         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3711         (__pthread_rwlock_trywrlock): Likewise.
3712         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3713         (__pthread_rwlock_unlock): Likewise.
3714         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3715         (__pthread_key_create): Likewise.
3716         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3717         (__pthread_setspecific): Likewise.
3718         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3719         (__pthread_getspecific): Likewise.
3720         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3721         Likewise.
3722         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3723         (_pthread_cleanup_push_defer): Likewise.
3724         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3725         (_pthread_cleanup_pop_restore): Likewise.
3726         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3727         (pthread_setcancelstate): Likewise.
3728         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3729         <bp-sym.h>.
3730         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3731         (memchr): Do not use BP_SYM in weak_alias.
3732         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3733         (fegetenv): Do not use BP_SYM in versioned symbols.
3734         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3735         (fesetenv): Do not use BP_SYM in versioned symbols.
3736         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3737         (feupdateenv): Do not use BP_SYM in versioned symbols.
3738         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3739         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3740         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3741         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3742         (open64): Do not use BP_SYM in weak_alias.
3743         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3744         (fegetenv): Do not use BP_SYM in versioned symbols.
3745         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3746         (fesetenv): Do not use BP_SYM in versioned symbols.
3747         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3748         (feupdateenv): Do not use BP_SYM in versioned symbols.
3749         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3750         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3751         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3752         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3753         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3754         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3755         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3756         <bp-sym.h>.
3757         (__libc_start_main): Do not use BP_SYM.
3758
3759 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3760
3761         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3762         redundant return line.
3763         (norm): Likewise.
3764         (denorm): Likewise.
3765         (dbl_mp): Likewise.
3766         (sub_magnitudes): Likewise.
3767         (__add): Likewise.
3768         (__sub): Likewise.
3769         (__mul): Likewise.
3770         (__inv): Likewise.
3771         (__dvd): Likewise.
3772         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3773         (norm): Likewise.
3774         (denorm): Likewise.
3775         (dbl_mp): Likewise.
3776         (sub_magnitudes): Likewise.
3777         (__add): Likewise.
3778         (__sub): Likewise.
3779         (__mul): Likewise.
3780         (__inv): Likewise.
3781         (__dvd): Likewise.
3782
3783         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3784         instead of __mul.
3785         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3786         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3787         (cc32): Likewise.
3788
3789         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3790         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3791         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3792         of __mul for squares.
3793         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3794         function
3795         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3796         Likewise.
3797         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3798         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3799
3800 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3801
3802         [BZ #13550]
3803         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3804         code.
3805         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3806         prototype or function definition.  Rename ubp_* variables and
3807         parameters.  Remove argv definitions conditional on
3808         [__BOUNDED_POINTERS__].
3809         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3810         * elf/dl-runtime.c (_dl_fixup): Likewise.
3811         * include/set-hooks.h (RUN_HOOK): Likewise.
3812         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3813         definition.
3814         * string/strcpy.c (strcpy): Do not use __unbounded.
3815         * sysdeps/generic/frame.h (struct layout): Likewise.
3816         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3817         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3818         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3819         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3820         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3821         (__backtrace): Likewise.
3822         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3823         use __ptrvalue.
3824         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3825         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3826         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3827         Likewise.
3828         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3829         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3830         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3831         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3832         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3833         Do not use __unbounded.
3834         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3835         Rename __unboundedrlimits parameter to rlimits in prototype.
3836         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3837         Do not use __unbounded.
3838         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3839         not use __ptrvalue.
3840         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3841         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3842         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3843         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3844         __ptrvalue or __unbounded.
3845         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3846         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3847         use __unbounded.
3848         (__new_msgctl): Do not use __ptrvalue.
3849         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3850         __unbounded.
3851         (__libc_msgrcv): Do not use __ptrvalue.
3852         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3853         startup_info): Do not use __unbounded.
3854         (__libc_start_main): Likewise.  Rename ubp_* variables and
3855         parameters.  Remove argv definitions conditional on
3856         [__BOUNDED_POINTERS__].
3857         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3858         __ptrvalue.
3859         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3860         use __unbounded.
3861         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3862         or __ptrvalue.
3863         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3864         use __unbounded.
3865         (__new_shmctl): Do not use __ptrvalue.
3866         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3867         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3868         Likewise.
3869         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3870         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3871         (__libc_sigaction): Likewise.
3872         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3873         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3874         Likewise.
3875         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3876
3877 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3878
3879         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3880
3881         * string/mempcpy.c: Implement by calling memcpy.
3882
3883 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3884
3885         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3886
3887         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3888         evaluation.
3889
3890         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3891         values in the mantissa.
3892
3893         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3894         minimize writes to Z.
3895         (sub_magnitudes): Simplify code a bit.
3896
3897 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3898
3899         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3900         from the message.  The linker prefixes all warnings with that already.
3901
3902 2013-02-12  Andreas Schwab  <schwab@suse.de>
3903
3904         [BZ #15078]
3905         * posix/regexec.c (extend_buffers): Add parameter min_len.
3906         (check_matching): Pass minimum needed length.
3907         (clean_state_log_if_needed): Likewise.
3908         (get_subexp): Likewise.
3909         * posix/Makefile (tests): Add bug-regex34.
3910         (bug-regex34-ENV): Define.
3911         * posix/bug-regex34.c: New file.
3912
3913         [BZ #11561]
3914         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3915         elements compare against the byte sequence of it, not its name.
3916         * posix/Makefile (tests): Add bug-regex35.
3917         (bug-regex35-ENV): Define.
3918         * posix/bug-regex35.c: New file.
3919
3920 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3921
3922         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3923         comment.
3924         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3925         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3926         (CHECK_EOL): Add undef.
3927
3928 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3929
3930         * bits/stdlib-bsearch.h: New file.
3931         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3932         * stdlib/stdlib.h: Likewise.
3933
3934 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3935
3936         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3937         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3938         declaration.
3939         * manual/search.texi (Array Search Function): Add missing const in
3940         lfind prototype.
3941         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3942         declaration to use rlim_t.
3943         (Basic Scheduling Functions): Remove erroneous const from
3944         sched_getparam prototype.  Remove erroneous * from
3945         sched_get_priority_max and sched_get_priority_min prototypes.
3946         (Resource Usage): Fix summary @comment on vtimes to refer to
3947         sys/vtimes.h rather than vtimes.h.
3948         Add missing *s in vtimes prototype.
3949         (Limits on Resources): Fix ulimit prototype to return long int.
3950         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3951         prototypes to use long int rather than double.
3952         (BSD Random): Fix initstate and setstate to use char *, not void *.
3953         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3954         prototype to make second argument 'struct aiocb64 *const[]'.
3955         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3956         (Status of AIO Operations): Remove erroneous const in aio_return and
3957         aio_return64 prototypes.
3958         (Synchronizing I/O): Fix sync prototype to return void.
3959         * manual/startup.texi (Suboptions): Remove an erroneous const in
3960         getsubopt prototype.
3961         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3962         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3963         use size_t rather than int.
3964         (Scanning All Users): Likewise for getpwent_r.
3965         (Setting Groups): Add missing const to setgroups prototype.
3966         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3967         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3968         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3969         'const void *' rather than 'const char *'.
3970         (Host Address Functions): Likewise for inet_ntop.
3971         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3972         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3973         ssize_t for return value.
3974         (Sending Data): Likewise for send, sendto, sendmsg.
3975         (Socket Option Functions): Add a missing const in setsockopt prototype.
3976         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3977         use wchar_t for the argument.
3978         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3979         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3980         take no arguments.
3981         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3982         double/float/long double for second argument.
3983         Fix return types of significand, significandf, significandl.
3984         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3985         argument in fchmod prototype.
3986         (File Owner): Use uid_t and gid_t in fchown prototype.
3987         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3988         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3989         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3990         use 'const struct dirent **' as argument types to CMP function pointer
3991         argument.
3992         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3993         (File Times): Fix summary magic @comment for struct utimbuf and utime
3994         to refer to utime.h, not time.h.
3995         * manual/string.texi (Argz Functions): Add missing const in
3996         argz_extract and argz_next prototypes.
3997         (Finding Tokens in a String): Likewise for basename.
3998         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3999         (Copying and Concatenation): Fix typo in wmemmove prototype.
4000         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4001         (Signal Stack): Remove erroneous const in sigstack prototype.
4002         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4003         prototype.
4004         (Simple Calendar Time): Likewise for stime.
4005         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4006         prototype.
4007         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4008         say sys/sysctl.h instead.
4009         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4010         and vsyslog prototypes.
4011
4012 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4013
4014         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4015         Remove.
4016
4017 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4018
4019         * misc/sys/mman.h: Fix typo in mremap comment.
4020
4021 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4022
4023         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4024         the '\0' terminator.
4025
4026 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4027
4028         [BZ #13550]
4029         * debug/segfault.c: Don't include <bp-checks.h>.
4030         * sysdeps/generic/bp-checks.h: Remove file.
4031         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4032         (__GETDENTS): Don't use CHECK_N.
4033         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4034         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4035         (__getgroups): Don't use CHECK_N.
4036         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4037         (setgroups): Don't use CHECK_N.
4038         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4039         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4040         (__libc_msgrcv): Don't use CHECK_N.
4041         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4042         (__libc_msgsnd): Don't use CHECK_N.
4043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4044         <bp-checks.h>.
4045         (__libc_pread): Don't use CHECK_N.
4046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4047         include <bp-checks.h>.
4048         (__libc_pread64): Don't use CHECK_N.
4049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4050         include <bp-checks.h>.
4051         (__libc_pwrite): Don't use CHECK_N.
4052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4053         include <bp-checks.h>.
4054         (__libc_pwrite64): Don't use CHECK_N.
4055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4056         <bp-checks.h>.
4057         (__libc_pread): Don't use CHECK_N.
4058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4059         include <bp-checks.h>.
4060         (__libc_pread64): Don't use CHECK_N.
4061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4062         include <bp-checks.h>.
4063         (__libc_pwrite): Don't use CHECK_N.
4064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4065         include <bp-checks.h>.
4066         (__libc_pwrite64): Don't use CHECK_N.
4067         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4068         (do_pread): Don't use CHECK_N.
4069         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4070         (do_pread64): Don't use CHECK_N.
4071         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4072         (do_pwrite): Don't use CHECK_N.
4073         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4074         (do_pwrite64): Don't use CHECK_N.
4075         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4076         (__libc_readv): Don't use CHECK_N.
4077         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4078         (semop): Don't use CHECK_N.
4079         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4080         <bp-checks.h>.
4081         (semtimedop): Don't use CHECK_N.
4082         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4083         (__libc_pread): Don't use CHECK_N.
4084         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4085         <bp-checks.h>.
4086         (__libc_pread64): Don't use CHECK_N.
4087         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4088         <bp-checks.h>.
4089         (__libc_pwrite): Don't use CHECK_N.
4090         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4091         <bp-checks.h>.
4092         (__libc_pwrite64): Don't use CHECK_N.
4093         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4094         <bp-checks.h>.
4095         (__libc_msgrcv): Don't use CHECK_N.
4096         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4097         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4098         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4099         (__libc_writev): Don't use CHECK_N.
4100
4101 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4102
4103         * string/strcpy.c: Removed unused variable.
4104
4105         * Makeconfig (+sysdep-includes): Define with := rather than =.
4106         Use an existing include/ subdir of each sysdeps dir before it.
4107
4108 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4109
4110         * nscd/connection.c (register_traced_file): Comment function.
4111         [HAVE_INOTIFY] (union __inev): Define.
4112         [HAVE_INOTIFY] (inotify_check_files): New function.
4113         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4114         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4115         clear_db_cache.
4116         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4117
4118 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4119
4120         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4121         loaded if not already and that a failure is permanent.
4122
4123 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4124
4125         [BZ #15006]
4126         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4127         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4128
4129 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4130
4131         [BZ #13550]
4132         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4133         (CHECK_1_NULL_OK): Likewise.
4134         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4135         (__fxstat): Do not use CHECK_1.
4136         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4137         <bp-checks.h>.
4138         (___fxstat64): Do not use CHECK_1.
4139         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4140         <bp-checks.h>.
4141         (__fxstatat): Do not use CHECK_1.
4142         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4143         <bp-checks.h>.
4144         (__fxstatat64): Do not use CHECK_1.
4145         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4146         <bp-checks.h>.
4147         (__fxstat): Do not use CHECK_1.
4148         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4149         <bp-checks.h>.
4150         (__fxstatat): Do not use CHECK_1.
4151         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4152         <bp-checks.h>.
4153         (__getresgid): Do not use CHECK_1.
4154         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4155         <bp-checks.h>.
4156         (__getresuid): Do not use CHECK_1.
4157         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4158         <bp-checks.h>.
4159         (__lxstat): Do not use CHECK_1.
4160         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4161         <bp-checks.h>.
4162         (__old_msgctl): Do not use CHECK_1.
4163         (__new_msgctl): Likewise.
4164         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4165         <bp-checks.h>.
4166         (__new_setrlimit): Do not use CHECK_1.
4167         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4168         <bp-checks.h>.
4169         (__old_shmctl): Do not use CHECK_1.
4170         (__new_shmctl): Likewise.
4171         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4172         <bp-checks.h>.
4173         (__xstat): Do not use CHECK_1.
4174         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4175         (__lxstat): Do not use CHECK_1.
4176         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4177         <bp-checks.h>.
4178         (___lxstat64): Do not use CHECK_1.
4179         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4180         (__old_msgctl): Do not use CHECK_1.
4181         (__new_msgctl): Likewise.
4182         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4183         <bp-checks.h>.
4184         (__gettimeofday): Do not use CHECK_1.
4185         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4186         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4187         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4188         <bp-checks.h>.
4189         (__gettimeofday): Do not use CHECK_1.
4190         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4191         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4192         (__new_shmctl): Do not use CHECK_1.
4193         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4194         <bp-checks.h>.
4195         (do_sigtimedwait): Do not use CHECK_1.
4196         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4197         <bp-checks.h>.
4198         (do_sigwaitinfo): Do not use CHECK_1.
4199         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4200         <bp-checks.h>.
4201         (msgctl): Do not use CHECK_1.
4202         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4203         <bp-checks.h>.
4204         (shmctl): Do not use CHECK_1.
4205         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4206         (ustat): Do not use CHECK_1.
4207         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4208         <bp-checks.h>.
4209         (__fxstat): Do not use CHECK_1.
4210         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4211         <bp-checks.h>.
4212         (__fxstatat): Do not use CHECK_1.
4213         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4214         <bp-checks.h>.
4215         (__lxstat): Do not use CHECK_1.
4216         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4217         <bp-checks.h>.
4218         (__xstat): Do not use CHECK_1.
4219         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4220         (__xstat): Do not use CHECK_1.
4221         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4222         (___xstat64): Do not use CHECK_1.
4223
4224         [BZ #13550]
4225         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4226         definitions.
4227         (CHECK_BOUNDS_HIGH): Likewise.
4228         * string/strcpy.c: Do not include <bp-checks.h>.
4229         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4230
4231 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4232
4233         * nscd/nscd-client.h (__nscd_drop_map_ref):
4234         Add __attribute__ ((unused)).
4235         * nis/nss-nisplus.h (niserr2nss): Likewise.
4236
4237         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4238         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4239
4240         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4241         Remove inline keyword.
4242         * include/rounding-mode.h (round_away): Likewise.
4243         * libio/wfileops.c (adjust_wide_data): Likewise.
4244         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4245         (__m128i_strloadu_tolower): Likewise.
4246         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4247         (__m128i_strloadu_tolower): Likewise.
4248         * time/mktime.c (ydhms_diff): Likewise.
4249         * locale/elem-hash.h (elem_hash): Likewise.
4250         * locale/setlocale.c (setdata): Likewise.
4251         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4252         (re_string_wchar_at): Likewise.
4253         (bitset_not, bitset_merge, bitset_mask): Likewise.
4254         [!(__GNUC__ > 3)] (inline): Remove macro.
4255         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4256         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4257         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4258         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4259         * string/memcmp.c (memcmp_bytes): Likewise.
4260         * locale/programs/locarchive.c (compute_hashval): Likewise.
4261         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4262         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4263         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4264         * nss/getent.c (print_rpc, print_protocols): Likewise.
4265         (print_passwd, print_group, print_aliases): Likewise.
4266         * nis/nss-nisplus.h (niserr2nss): Likewise.
4267         * nscd/connections.c (restart_p): Likewise.
4268         Change return type to bool.
4269
4270 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4271
4272         * Makeconfig (all-Depend-files): Add existing
4273         $(sorted-subdirs:=/Depend) files.
4274         (all-subdirs): Remove nss.
4275         * sysdeps/unix/inet/Subdirs: Add it here instead.
4276         * hesiod/Depend: New file.
4277
4278         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4279         instead of calling alloca.
4280
4281         * io/lseek.c (__lseek): Rename to __libc_lseek.
4282         Define __lseek as an alias.
4283
4284         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4285
4286 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4287
4288         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4289         else clause and remove check for non-standard endianness.
4290
4291 2013-02-04  David S. Miller  <davem@davemloft.net>
4292
4293         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4294
4295 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4296
4297         [BZ #13550]
4298         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4299         (__ubp_memchr): Remove prototype.
4300         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4301         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4302         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4303         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4304         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4305         Remove alias.
4306         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4307         (__ubp_memchr): Likewise.
4308         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4309         (__ubp_memchr): Likewise.
4310         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4311         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4312         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4313         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4314         CHECK_STRING.
4315         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4316         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4317         (__getcwd): Do not use CHECK_STRING.
4318         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4319         <bp-checks.h>.
4320         (__real_chown): Do not use CHECK_STRING.
4321         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4322         <bp-checks.h>.
4323         (fchownat): Do not use CHECK_STRING.
4324         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4325         CHECK_STRING.
4326         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4327         <bp-checks.h>.
4328         (__lchown): Do not use CHECK_STRING.
4329         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4330         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4331         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4332         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4334         include <bp-checks.h>.
4335         (truncate64): Do not use CHECK_STRING.
4336         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4337         <bp-checks.h>.
4338         (__real_chown): Do not use CHECK_STRING.
4339         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4340         <bp-checks.h>.
4341         (__lchown): Do not use CHECK_STRING.
4342         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4343         <bp-checks.h>.
4344         (__chown): Do not use CHECK_STRING.
4345         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4346         <bp-checks.h>.
4347         (truncate64): Do not use CHECK_STRING.
4348         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4349         Likewise.
4350         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4351         (__xmknod): Do not use CHECK_STRING.
4352         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4353         <bp-checks.h>.
4354         (__xmknodat): Do not use CHECK_STRING.
4355         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4356         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4357
4358 2013-02-04  Andreas Schwab  <schwab@suse.de>
4359
4360         [BZ #14142]
4361         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4362         * include/netdb.h: Likewise for h_errno.
4363         * elf/tst-stackguard1.c: Include <tls.h>.
4364
4365 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4366
4367         * elf/link.h (struct link_map): Extend the l_addr comment.
4368         * include/link.h (struct link_map): Likewise.
4369
4370 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4371
4372         [BZ #13550]
4373         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4374         (BOUNDED_1): Remove macro.
4375         * debug/backtrace.c: Don't include <bp-checks.h>.
4376         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4377         (__backtrace): Likewise.
4378         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4379         <bp-checks.h>.
4380         (__backtrace): Don't use BOUNDED_1.
4381         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4382         <bp-checks.h>.
4383         (__backtrace): Don't use BOUNDED_1.
4384         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4385         (__backtrace): Don't use BOUNDED_1.
4386         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4387         (shmat): Don't use BOUNDED_N.
4388
4389 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4390
4391         [BZ #13550]
4392         * sysdeps/generic/bp-start.h: Remove file.
4393         * csu/libc-start.c: Don't include <bp-start.h>.
4394         (LIBC_START_MAIN): Set up __environ directly instead of using
4395         INIT_ARGV_and_ENVIRON.
4396         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4397         <bp-start.h>.
4398
4399         [BZ #13550]
4400         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4401         definitions.
4402         (CHECK_FCNTL): Likewise.
4403         (CHECK_N_PAGES): Likewise.
4404
4405         [BZ #13550]
4406         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4407         definitions.
4408         (CHECK_SIGSET_NULL_OK): Likewise.
4409         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4410         <bp-checks.h>.
4411         (sigpending): Don't use CHECK_SIGSET.
4412         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4413         <bp-checks.h>.
4414         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4415         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4416         <bp-checks.h>.
4417         (do_sigsuspend): Don't use CHECK_SIGSET.
4418         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4419         use CHECK_SIGSET.
4420         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4421         (do_sigwait): Don't use CHECK_SIGSET.
4422         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4423         use CHECK_SIGSET.
4424         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4425         include <bp-checks.h>.
4426         (sigpending): Don't use CHECK_SIGSET.
4427         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4428         include <bp-checks.h>.
4429         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4430         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4431         <bp-checks.h>.
4432         (sigpending): Don't use CHECK_SIGSET.
4433         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4434         <bp-checks.h>.
4435         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4436
4437         [BZ #13550]
4438         * sysdeps/generic/bp-semctl.h: Remove file.
4439         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4440         <bp-checks.h> and <bp-semctl.h>.
4441         (__old_semctl): Don't use CHECK_SEMCTL.
4442         (__new_semctl): Likewise.
4443         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4444         and <bp-semctl.h>.
4445         (__old_semctl): Don't use CHECK_SEMCTL.
4446         (__new_semctl): Likewise.
4447         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4448         <bp-checks.h> and <bp-semctl.h>.
4449         (__old_semctl): Don't use CHECK_SEMCTL.
4450         (__new_semctl): Likewise.
4451         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4452         <bp-checks.h> and <bp-semctl.h>.
4453         (semctl): Don't use CHECK_SEMCTL.
4454
4455         [BZ #13550]
4456         * Makerules (elide-bp-thunks): Remove variable.
4457         (elide-routines.oS): Don't use $(elide-bp-thunks).
4458         (elide-routines.os): Likewise.
4459         (elide-routines.o): Likewise.
4460         (elide-routines.op): Likewise.
4461         (elide-routines.og): Likewise.
4462         (objects): Don't use $(bp-thunks).
4463         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4464         include.
4465         (common-generated): Do not add s-proto-bp.d.
4466         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4467         (int): Likewise.
4468         (typ): Likewise.
4469         Do not generate makefile rules for bounded-pointer thunks.
4470         * sysdeps/generic/bp-thunks.h: Remove file.
4471         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4472         * sysdeps/unix/s-proto-bp.S: Likewise.
4473
4474         [BZ #15062]
4475         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4476         parts of result separately when argument is not close to line from
4477         -i to i and one part of argument is small.
4478         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4479         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4480         * math/libm-test.inc (cacos_test): Add more tests.
4481         (casin_test): Likewise.
4482         (casinh_test): Likewise.
4483         * sysdeps/i386/fpu/libm-test-ulps: Update.
4484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4485
4486 2013-01-31  David S. Miller  <davem@davemloft.net>
4487
4488         * po/de.po: Update from translation team.
4489
4490 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4491
4492         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4493
4494 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4495
4496         * configure.in (_AC_PROG_CC_C89): New definition.
4497         * configure: Regenerate.
4498
4499         * configure.in (AC_PROG_CPP): New definition.
4500         * configure: Regenerate.
4501
4502 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4503
4504         * debug/tst-backtrace.h: New file.
4505         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4506         (ret): Remove variable.
4507         (x): Likewise.
4508         (FAIL): Remove macro.
4509         (NO_INLINE): Likewise.
4510         (fn1): Use match function instead of strstr.
4511         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4512         (ret): Remove variable.
4513         (x): Likewise.
4514         (FAIL): Remove macro.
4515         (NO_INLINE): Likewise.
4516         (fn): Use match function instead of strstr.
4517         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4518         (ret): Remove variable.
4519         (x): Likewise.
4520         (FAIL): Remove macro.
4521         (NO_INLINE): Likewise.
4522         (handle_signal): Use match function instead of strstr.
4523         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4524         (ret): Remove variable.
4525         (x): Likewise.
4526         (FAIL): Remove macro.
4527         (NO_INLINE): Likewise.
4528         (handle_signal): Use match function instead of strstr.
4529
4530 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4531
4532         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4533
4534 2013-01-23  David S. Miller  <davem@davemloft.net>
4535
4536         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4537         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4538         argument of CAS if possible.
4539         * sysdeps/sparc/sparc64/bits/atomic.h
4540         (__arch_compare_and_exchange_val_32_acq): Likewise.
4541         (__arch_compare_and_exchange_val_64_acq): Likewise.
4542
4543 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4544
4545         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4546         * sysdeps/posix/ulimit.c: ... this.
4547         Include <limits.h>.
4548         * sysdeps/unix/bsd/ulimit.c: Remove file.
4549
4550 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4551
4552         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4553         (LDFLAGS-tst-array5): Likewise.
4554
4555 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4556
4557         [BZ #15036]
4558         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4559         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4560         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4561         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4562
4563 2013-01-21  David S. Miller  <davem@davemloft.net>
4564
4565         * sysdeps/sparc/backtrace.c: New file.
4566         * sysdeps/sparc/sparc32/backtrace.h: New file.
4567         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4568         * sysdeps/sparc/sparc64/backtrace.h: New file.
4569         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4570         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4571         -funwind-tables.
4572
4573 2013-01-21  Andreas Schwab  <schwab@suse.de>
4574
4575         [BZ #15020]
4576         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4577         closed its stdout.
4578
4579 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4580
4581         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4582         "mpa2.h".
4583         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4584
4585 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4586             Mark Mitchell  <mark@codesourcery.com>
4587             Tom de Vries  <tom@codesourcery.com>
4588             Paul Pluzhnikov  <ppluzhnikov@google.com>
4589
4590         * debug/tst-backtrace2.c: New file.
4591         * debug/tst-backtrace3.c: Likewise.
4592         * debug/tst-backtrace4.c: Likewise.
4593         * debug/tst-backtrace5.c: Likewise.
4594         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4595         (CFLAGS-tst-backtrace3.c): Likewise.
4596         (CFLAGS-tst-backtrace4.c): Likewise.
4597         (CFLAGS-tst-backtrace5.c): Likewise.
4598         (LDFLAGS-tst-backtrace2): Likewise.
4599         (LDFLAGS-tst-backtrace3): Likewise.
4600         (LDFLAGS-tst-backtrace4): Likewise.
4601         (LDFLAGS-tst-backtrace5): Likewise.
4602         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4603         tst-backtrace4 and tst-backtrace5.
4604
4605 2013-01-18  Anton Blanchard  <anton@samba.org>
4606             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4607
4608         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4609         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4610         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4611         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4613         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4614         "+r" and remove output regs list as redundant.  Add explicit inline
4615         asm to specify register of return val to work around compiler codegen
4616         bug.  Remove (int) cast on return value.  Add return type parameter to
4617         use in macro so that this macro does not truncate return value for
4618         64-bit values.
4619         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4620         pass to INTERNAL_VSYSCALL_NCS.
4621         (INLINE_VSYSCALL): Add 'long int' as return type to
4622         INTERNAL_VSYSCALL_NCS macro invocation.
4623         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4624         INTERNAL_VSYSCALL_NCS macro invocation.
4625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4626
4627 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4628
4629         [BZ #14496]
4630         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4631         Fix application of SIMD FP exception mask.
4632
4633         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4634         mp_no from a power of two.
4635         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4636         __mpexp_twomm1.  Use __pow_mp.
4637
4638         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4639         multiplication.
4640
4641 2013-01-17  David S. Miller  <davem@davemloft.net>
4642
4643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4644
4645 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4646
4647         [BZ #15023]
4648         * include/complex.h: Condition contents on [!_COMPLEX_H].
4649         (__kernel_casinhf): New prototype.
4650         (__kernel_casinh): Likewise.
4651         (__kernel_casinhl): Likewise.
4652         * math/Makefile (libm_calls): Add k_casinh.
4653         * math/k_casinh.c: New file.
4654         * math/k_casinhf.c: Likewise.
4655         * math/k_casinhl.c: Likewise.
4656         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4657         finite nonzero arguments.
4658         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4659         finite nonzero arguments.
4660         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4661         finite nonzero arguments.
4662         * math/s_casinh.c: Do not include <float.h>.
4663         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4664         * math/s_casinhf.c: Do not include <float.h>.
4665         (__casinhf): Move code for finite nonzero arguments to
4666         k_casinhf.c.
4667         * math/s_casinhl.c: Do not include <float.h>.
4668         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4669         redefine.
4670         (__casinhl): Move code for finite nonzero arguments to
4671         k_casinhl.c.
4672         * math/libm-test.inc (cacos_test): Add more tests.
4673         * sysdeps/i386/fpu/libm-test-ulps: Update.
4674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4675
4676 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4677
4678         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4679         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4680         [!HAVE_MREMAP]: Remove [defined linux] case.
4681         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4682
4683 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4684
4685         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4686
4687 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4688
4689         * elf/elf.h (R_386_SIZE32): New relocation.
4690         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4691         R_386_SIZE32.
4692         (elf_machine_rela): Likewise.
4693         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4694         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4695
4696 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4697
4698         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4699         (FP_FAST_FMA): Do not define.
4700         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4701         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4702         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4703         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4704         !_SOFT_FLOAT]: Likewise.
4705         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4706         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4707         value.
4708         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4709         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4710         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4711         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4712         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4713         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4714         file.
4715
4716 2013-01-16  Andreas Schwab  <schwab@suse.de>
4717
4718         [BZ #14327]
4719         * include/stdlib.h (__mktemp): Add declaration.
4720         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4721         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4722
4723 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4724
4725         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4726         definitions.
4727         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4728         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4729         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4730         definitions here.
4731         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4732         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4733         definitions.
4734         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4735         and ONE.
4736         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4737         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4738         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4739         definitions.
4740         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4741         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4742         definitions.
4743         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4744
4745         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4746
4747 2013-01-15  David S. Miller  <davem@davemloft.net>
4748
4749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4750         trunc{,f} to libm-sysdep_routes.
4751         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4753         file.
4754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4756         file.
4757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4758         file.
4759         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4760         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4761         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4762         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4763         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4764         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4765         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4766         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4767
4768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4769         nearbyint{,f} to libm-sysdep_routes.
4770         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4772         New file.
4773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4774         file.
4775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4776         New file.
4777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4778         file.
4779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4781         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4782         file.
4783         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4784         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4785         file.
4786         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4787         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4788         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4789
4790         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4791         libc_feholdexcept and libc_fesetenv.
4792
4793 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4794
4795         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4796
4797 2013-01-14  David S. Miller  <davem@davemloft.net>
4798
4799         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4800         (SPARC_ASM_VIS2_IFUNC): Likewise.
4801         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4803         use of 'siam' instruction.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4805         Likewise.
4806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4807         Likewise.
4808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4809         Likewise.
4810         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4811         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4812         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4813         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4815         file.
4816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4817         file.
4818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4819         file.
4820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4821         file.
4822         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4823         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4824         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4825         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4827         new VIS2 routines.
4828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4831         Likewise.
4832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4833         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4834         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4835         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4837         routines to libm-sysdep_routines.
4838         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4839
4840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4841         fdim/fdimf to libm-sysdep_routines.
4842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4843         file.
4844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4846         file.
4847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4850         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4851         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4852         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4853         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4854
4855 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4856
4857         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4858         to optimize copies.
4859
4860         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4861         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4862         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4863
4864         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4865         local variable MPTWO.
4866         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4867         Likewise.
4868
4869 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4870
4871         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4872         GLOB_NOESCAPE.
4873
4874 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4875
4876         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4877
4878 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4879
4880         * manual/pattern.texi (glob_t): Document gl_flags.
4881         (glob64_t): Likewise.
4882
4883 2013-01-11  David S. Miller  <davem@davemloft.net>
4884
4885         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4886         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4887         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4888         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4889         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4890         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4891         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4892         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4893         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4894         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4895         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4896         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4897         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4898
4899         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4900         sparc V9 rather than using V8 code.
4901         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4902         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4903
4904         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4905         Move to...
4906         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4907         Here.
4908
4909 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4910
4911         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4912         not in the main loop.
4913         * configure: Regenerated.
4914
4915 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4916
4917         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4918         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4919         to just #else.
4920         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4921         [!__GLIBC_HAVE_LONG_LONG] case.
4922         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4923         condition to just #else.
4924         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4925         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4926         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4927         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4928         unconditional.
4929         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4930         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4931         #elif condition to just #else.
4932         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4933         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4934         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4935         #elif condition to just #else.
4936
4937 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4938
4939         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4940         (EF_MIPS_ARCH_64): Fix value.
4941         (EF_MIPS_ARCH_32R2): New.
4942         (EF_MIPS_ARCH_64R2): New.
4943
4944 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4945
4946         * Makeconfig (+link-pie-before-libc): New.
4947         (+link-pie-after-libc): Likewise.
4948         (+link-pie-tests): Likewise.
4949         (+link-pie): Rewritten.
4950         (link-before-libc): Remove $(config-LDFLAGS).
4951         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4952         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4953         (config-LDFLAGS): Renamed to ...
4954         (rtld-LDFLAGS): This.
4955         (rtld-tests-LDFLAGS): New macro.
4956         (link-libc-rpath-link): Likewise.
4957         (link-libc-tests-rpath-link): Likewise.
4958         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4959         (link-libc): Prepand $(link-libc-rpath-link).
4960         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4961         (test-program-prefix): New macro.
4962         (test-via-rtld-prefix): Likewise.
4963         (test-program-cmd): Likewise.
4964         (host-test-program-cmd): Likewise.
4965         * Makefile ($(common-objpfx)testrun.sh): Replace
4966         $(run-program-prefix) with $(test-program-prefix).
4967         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4968         $(rtld-LDFLAGS).
4969         ($(common-objpfx)shlib.lds): Likewise.
4970         (build-module-helper): Likewise.
4971         ($(common-objpfx)format.lds): Likewise.
4972         * Rules (binaries-pie-tests): New.
4973         (binaries-pie-notests): Likewise.
4974         (binaries-pie): Rewritten.
4975         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4976         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4977         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4978         (make-test-out): Replace $(host-built-program-cmd) with
4979         $(host-test-program-cmd).
4980         * config.make.in (build-hardcoded-path-in-tests): New variable.
4981         * configure.in (--enable-hardcoded-path-in-tests): New configure
4982         option.
4983         (hardcoded_path_in_tests): New AC_SUBST.
4984         * configure: Regenerated.
4985         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4986         $(built-program-cmd) with $(test-program-cmd).
4987         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4988         (test_program_cmd): This.
4989         * elf/Makefile ($(objpfx)order.out): Run test with
4990         $(test-program-prefix).
4991         ($(objpfx)order2.out): Likewise.
4992         ($(objpfx)tst-initorder.out): Likewise.
4993         ($(objpfx)tst-initorder2.out): Likewise.
4994         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4995         $(test-program-cmd).
4996         ($(objpfx)tst-array1-static.out): Likewise.
4997         ($(objpfx)tst-array2.out): Likewise.
4998         ($(objpfx)tst-array3.out): Likewise.
4999         ($(objpfx)tst-array4.out): Likewise.
5000         ($(objpfx)tst-array5.out): Likewise.
5001         ($(objpfx)tst-array5-static.out): Likewise.
5002         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5003         $(test-program-cmd).
5004         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5005         $(run-program-prefix) with $(test-program-prefix).
5006         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5007         (test_program_prefix): This.
5008         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5009         $(run-program-prefix) with $(test-program-prefix).
5010         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5011         (test_program_prefix): This.
5012         * iconvdata/tst-tables.sh: Likewise.
5013         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5014         $(run-program-prefix) with $(test-program-prefix).
5015         ($(objpfx)tst-translit.out): Likewise.
5016         ($(objpfx)tst-gettext2.out): Likewise.
5017         ($(objpfx)tst-gettext4.out): Likewise.
5018         ($(objpfx)tst-gettext6.out): Likewise.
5019         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5020         (test_program_prefix): This.
5021         * intl/tst-gettext2.sh: Likewise.
5022         * intl/tst-gettext4.sh  Likewise.
5023         * intl/tst-gettext6.sh: Likewise.
5024         * intl/tst-translit.sh: Likewise.
5025         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5026         with $(test-program-cmd).
5027         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5028         $(run-program-prefix) with $(test-program-prefix).
5029         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5030         (test_program_prefix): This.
5031         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5032         $(run-program-prefix) with $(test-program-prefix).
5033         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5034         (test_program_prefix): This.
5035         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5036         * posix/Makefile ($(objpfx)globtest.out): Replace
5037         $(run-via-rtld-prefix) and $(test-wrapper) with
5038         $(test-program-prefix) and $(test-via-rtld-prefix).
5039         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5040         $(test-program-prefix).
5041         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5042         $(host-test-program-cmd).
5043         (tst-spawn-ARGS): Likewise.
5044         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5045         $(test-program-prefix).
5046         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5047         (test_via_rtld_prefix): This.
5048         (test_wrapper): Renamed to ...
5049         (test_program_prefix): This.
5050         (run_program_prefix): Replaced by test_program_prefix.
5051         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5052         (test_program_prefix): This.
5053         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5054         with $(host-test-program-cmd).
5055         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5056         $(run-program-prefix) with $(test-program-prefix).
5057         ($(objpfx)tst-printf.out): Likewise.
5058         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5059         $(test-program-cmd).
5060         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5061         (test_program_prefix): This.
5062         * stdio-common/tst-unbputc.sh: Likewise.
5063         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5064         $(run-program-prefix) with $(test-program-prefix).
5065         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5066         (test_program_prefix): This.
5067         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5068         $(built-program-cmd) with $(test-program-cmd).
5069
5070 2013-01-11  Andreas Jaeger  <aj@suse.de>
5071
5072         [BZ #15003]
5073         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5074         value. Sync with Linux 3.7.
5075
5076 2013-01-10  David S. Miller  <davem@davemloft.net>
5077
5078         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5079         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5080         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5081
5082 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5083
5084         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5085         never set.
5086         * configure: Regenerated.
5087
5088 2013-01-10  David S. Miller  <davem@davemloft.net>
5089
5090         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5091         sparc V9 rather than using V8 code.
5092         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5093         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5094
5095 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5096
5097         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5098         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5099         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5100         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5101         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5102         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5103         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5104         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5105         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5106         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5107         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5108         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5109         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5110         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5111         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5112         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5113         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5114         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5115         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5116         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5117         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5118         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5119         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5120         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5121         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5122         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5123         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5124
5125 2013-01-10  David S. Miller  <davem@davemloft.net>
5126
5127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5128
5129 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5130
5131         * posix/Makefile (tests-static): New variable.
5132         (tests): Add $(tests-static).
5133         (tst-exec-static-ARGS): New variable.
5134         (tst-spawn-static-ARGS): Likewise.
5135         * posix/tst-exec-static.c: New file.
5136         * posix/tst-spawn-static.c: Likewise.
5137         * posix/tst-exec.c: Support run directly.
5138         * posix/tst-spawn.c: Likewise.
5139
5140 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5141
5142         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5143         long.
5144         * math/bits/mathcalls.h (llrint): Likewise.
5145         (llround): Likewise.
5146         * stdlib/stdlib.h (struct drand48_data): Likewise.
5147         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5148         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5149         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5150         Likewise.
5151         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5152         Likewise.
5153         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5154         (elf_greg_t): Likewise.
5155         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5156         (__jmp_buf): Likewise.
5157         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5158         definitions.
5159         (llrint): Likewise, for all definitions.
5160         (llrintl): Likewise.
5161
5162         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5163         Remove [__GNUC__] condition.
5164         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5165         condition to just [__USE_ISOC99].
5166         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5167
5168 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5169
5170         [BZ #14200]
5171         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5172         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5173         defined.
5174         (_POSIX_V6_ILP32_OFF32): Likewise.
5175         (_XBS5_ILP32_OFF32): Likewise.
5176         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5177         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5178
5179 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5180
5181         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5182
5183         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5184         doubles __mpexp_twomm1.  Adjust usage.
5185         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5186         Remove.
5187
5188 2013-01-10  Andreas Schwab  <schwab@suse.de>
5189
5190         [BZ #14964]
5191         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5192         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5193
5194 2013-01-09  David S. Miller  <davem@davemloft.net>
5195
5196         [BZ #15003]
5197         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5198         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5199         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5200         TCP_FASTOPEN): Define.
5201         (tcp_repair_opt): New structure.
5202         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5203         enum values.
5204         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5205         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5206         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5207         (tcp_cookie_transactions): New structure.
5208
5209 2013-01-09  Anton Blanchard  <anton@samba.org>
5210
5211         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5212         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5213         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5214         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5215
5216 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5217
5218         * include/features.h (__USE_ANSI): Remove.
5219
5220 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5221
5222         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5223
5224         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5225
5226 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5227
5228         * sysdeps/s390/fpu/libm-test-ulps: Update.
5229
5230         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5231
5232         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5233         (__acr): Likewise.
5234         (__cpy): Likewise.
5235         (norm): Likewise.
5236         (denorm): Likewise.
5237         (__mp_dbl): Likewise.
5238         (__dbl_mp): Likewise.
5239         (add_magnitudes): Likewise.
5240         (sub_magnitudes): Likewise.
5241         (__add): Likewise.
5242         (__sub): Likewise.
5243         (__mul): Likewise.
5244         (__inv): Likewise.
5245         (__dvd): Likewise.
5246         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5247         (__acr): Likewise.
5248         (__cpy): Likewise.
5249         (norm): Likewise.
5250         (denorm): Likewise.
5251         (__mp_dbl): Likewise.
5252         (__dbl_mp): Likewise.
5253         (add_magnitudes): Likewise.
5254         (sub_magnitudes): Likewise.
5255         (__add): Likewise.
5256         (__sub): Likewise.
5257         (__mul): Likewise.
5258         (__inv): Likewise.
5259         (__dvd): Likewise.
5260         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5261         (__acr): Likewise.
5262         (__cpy): Likewise.
5263         (norm): Likewise.
5264         (denorm): Likewise.
5265         (__mp_dbl): Likewise.
5266         (__dbl_mp): Likewise.
5267         (add_magnitudes): Likewise.
5268         (sub_magnitudes): Likewise.
5269         (__add): Likewise.
5270         (__sub): Likewise.
5271         (__mul): Likewise.
5272         (__inv): Likewise.
5273         (__dvd): Likewise.
5274
5275 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5276
5277         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5278         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5279         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5280         2 && __USE_EXTERN_INLINES]: Likewise.
5281
5282 2013-01-08  Andreas Jaeger  <aj@suse.de>
5283
5284         [BZ# 14985]
5285         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5286         Remove.
5287         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5288         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5289
5290 2013-01-07  Anton Blanchard  <anton@samba.org>
5291
5292         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5293         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5294         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5295         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5296         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5297         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5298         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5299         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5300         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5301         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5302         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5303         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5304         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5305         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5306         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5307         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5308         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5309         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5310         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5311         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5312         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5313         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5314         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5315         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5316         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5317         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5318         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5319         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5320         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5321         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5322         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5323         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5324         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5325         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5326         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5327         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5328         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5329         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5330         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5331         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5332         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5333         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5334         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5335
5336 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5339         (__MALLOC_PMT): Likewise.
5340         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5341         [__GNUC__], only on [_LIBC].
5342         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5343         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5344         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5345         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5346         forward declaration.
5347         (realloc_hook_ini): Likewise.
5348         (memalign_hook_ini): Likewise.
5349         (__libc_memalign): Do not use __MALLOC_PMT in variable
5350         declaration.
5351         (__libc_valloc): Likewise.
5352         (__libc_pvalloc): Likewise.
5353         (__libc_calloc): Likewise.
5354         (__posix_memalign): Likewise.
5355
5356         [BZ #14996]
5357         * math/s_casinh.c: Include <float.h>.
5358         (__casinh): Do not do computation with squaring and square root
5359         for large arguments.
5360         * math/s_casinhf.c: Include <float.h>.
5361         (__casinhf): Do not do computation with squaring and square root
5362         for large arguments.
5363         * math/s_casinhl.c: Include <float.h>.
5364         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5365         (__casinhl): Do not do computation with squaring and square root
5366         for large arguments.
5367         * math/libm-test.inc (casin_test): Add more tests.
5368         (casinh_test): Likewise.
5369         * sysdeps/i386/fpu/libm-test-ulps: Update.
5370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5371
5372 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5373
5374         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5375         (__x86_64_raw_data_cache_size): Likewise.
5376         (__x86_64_data_cache_size_half): Likewise.
5377         (__x86_64_raw_data_cache_size_half): Likewise.
5378         (__x86_64_shared_cache_size): Likewise.
5379         (__x86_64_raw_shared_cache_size): Likewise.
5380         (__x86_64_shared_cache_size_half): Likewise.
5381         (__x86_64_raw_shared_cache_size_half): Likewise.
5382         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5383         to ...
5384         (__x86_data_cache_size): This.
5385         (__x86_64_raw_data_cache_size): Renamed to ...
5386         (__x86_raw_data_cache_size): This.
5387         (__x86_64_data_cache_size_half): Renamed to ...
5388         (__x86_data_cache_size_half): This.
5389         (__x86_64_raw_data_cache_size_half): Renamed to ...
5390         (__x86_raw_data_cache_size_half): This.
5391         (__x86_64_shared_cache_size): Renamed to ...
5392         (__x86_shared_cache_size): This.
5393         (__x86_64_raw_shared_cache_size): Renamed to ...
5394         (__x86_raw_shared_cache_size): This.
5395         (__x86_64_shared_cache_size_half): Renamed to ...
5396         (__x86_shared_cache_size_half): This.
5397         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5398         (__x86_raw_shared_cache_size_half): This.
5399         * sysdeps/x86_64/memcpy.S: Updated.
5400         * sysdeps/x86_64/memset.S: Likewise.
5401         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5402         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5403         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5404
5405 2013-01-04  David S. Miller  <davem@davemloft.net>
5406
5407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5408
5409 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5410
5411         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5412         1 to avoid redefinition warning.
5413         (__USE_GNU): Don't define.
5414         (init_signaling_nan): Protoize.
5415
5416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5417
5418 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5419
5420         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5421         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5422         (__cpymn): Likewise.
5423         (norm): Remove commented code.
5424         (denorm): Likewise.
5425         (__mp_dbl): Likewise.
5426         (__inv): Likewise.
5427         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5428         (__cpymn): Likewise.
5429         (norm): Remove commented code.
5430         (denorm): Likewise.
5431         (__mp_dbl): Likewise.
5432         (__inv): Likewise.
5433
5434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5435         mp_no value for 1.0 and 2.0.
5436         (norm): Use RADIXI instead of radixi.d.
5437         (denorm): Likewise.
5438         (__mul): Use 0.0 instead of zero.d.
5439         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5440         mp_no value for 1.0 and 2.0.
5441         (norm): Use RADIXI instead of radixi.d.
5442         (denorm): Likewise.
5443         (__mul): Use 0.0 instead of zero.d.
5444
5445 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5446
5447         [BZ #14994]
5448         * math/s_casinh.c (__casinh): Reduce finite argument to first
5449         quadrant then set signs of results at the end.
5450         * math/s_casinhf.c (__casinhf): Likewise.
5451         * math/s_casinhl.c (__casinhl): Likewise.
5452         * math/libm-test.inc (casin_test): Add more tests.
5453         (casinh_test): Likewise.
5454         * sysdeps/i386/fpu/libm-test-ulps: Update.
5455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5456
5457 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5458
5459         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5460
5461         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5462
5463         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5464         declarations.
5465         (denorm): Likewise.
5466         (__mp_dbl): Likewise.
5467         (__inv): Likewise.
5468
5469         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5470         and adjust the header comment.
5471
5472         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5473         variable name from declaration.
5474
5475 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5476
5477         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5478         Initialize COMMON_CPUID_INDEX_7 element.
5479         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5480         (CPUID_RTM): Likewise.
5481         (HAS_RTM): Likewise.
5482         (COMMON_CPUID_INDEX_7): New enum.
5483
5484 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5485
5486         [BZ #14981]
5487         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5488         size is zero, record memory as freed.
5489
5490 2013-01-03  Andreas Jaeger  <aj@suse.de>
5491
5492         * po/ia.po: Add new Interlingua translation.
5493
5494 2012-01-03  Allan McRae  <allan@archlinux.org>
5495
5496         * locale/programs/localedef.c: Fix description of '--posix' flag.
5497
5498 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5499
5500         * NEWS: Update dates in second copyright notice.
5501         * README: Update copyright dates in example.
5502         * manual/libc.texinfo: Update copyright dates.
5503         * scripts/test-installation.pl: Update copyright date in --version
5504         output.
5505
5506         * hurd/ctty-input.c: Fix copyright notice formatting.
5507         * hurd/ctty-output.c: Likewise.
5508         * hurd/dtable.c: Likewise.
5509         * hurd/hurd-raise.c: Likewise.
5510         * hurd/hurdprio.c: Likewise.
5511         * hurd/msgportdemux.c: Likewise.
5512         * misc/sys/file.h: Likewise.
5513         * misc/sys/ioctl.h: Likewise.
5514         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5515         * sysdeps/mach/hurd/chdir.c: Likewise.
5516         * sysdeps/mach/hurd/fchdir.c: Likewise.
5517         * sysdeps/mach/hurd/rename.c: Likewise.
5518         * sysdeps/mach/hurd/rmdir.c: Likewise.
5519         * sysdeps/mach/hurd/seekdir.c: Likewise.
5520         * sysdeps/mach/hurd/setsid.c: Likewise.
5521         * sysdeps/posix/wait3.c: Likewise.
5522
5523         * All files with FSF copyright notices: Update copyright dates
5524         using scripts/update-copyrights.
5525         * intl/plural.c: Regenerated.
5526         * locale/programs/charmap-kw.h: Likewise.
5527         * locale/programs/locfile-kw.h: Likewise.
5528
5529 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5530
5531         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5532         four values.
5533
5534         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5535         calculation loop and add branch prediction.
5536
5537         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5538         check access beyond bounds of m1np.
5539
5540         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5541         MPTWO.
5542         (__inv): Remove local variable MPTWO to use the global
5543         constant.
5544         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5545         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5546         variable MPTWO.
5547         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5548         MP3HALFS static const.
5549
5550 2013-01-01  David S. Miller  <davem@davemloft.net>
5551
5552         * po/ca.po: Update from translation team.
5553
5554 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5555
5556         * scripts/update-copyrights: New file.
5557         * Makeconfig: Reformat copyright notice.
5558         * ctype/ctype.h: Likewise.
5559         * debug/swprintf_chk.c: Likewise.
5560         * elf/dl-cache.c: Likewise.
5561         * elf/dl-debug.c: Likewise.
5562         * elf/dl-object.c: Likewise.
5563         * grp/initgroups.c: Likewise.
5564         * hurd/Makefile: Likewise.
5565         * hurd/hurd/signal.h: Likewise.
5566         * hurd/hurdfault.c: Likewise.
5567         * hurd/hurdioctl.c: Likewise.
5568         * hurd/hurdlookup.c: Likewise.
5569         * hurd/intr-msg.c: Likewise.
5570         * iconv/gconv_open.c: Likewise.
5571         * libio/swprintf.c: Likewise.
5572         * locale/lc-ctype.c: Likewise.
5573         * locale/nl_langinfo.c: Likewise.
5574         * mach/Machrules: Likewise.
5575         * mach/Makefile: Likewise.
5576         * malloc/obstack.h: Likewise.
5577         * manual/Makefile: Likewise.
5578         * manual/tsort.awk: Likewise.
5579         * misc/bits/stab.def: Likewise.
5580         * nis/nis_print_group_entry.c: Likewise.
5581         * nis/nis_table.c: Likewise.
5582         * nis/nss_compat/compat-pwd.c: Likewise.
5583         * nis/nss_compat/compat-spwd.c: Likewise.
5584         * po/Makefile: Likewise.
5585         * posix/fnmatch.c: Likewise.
5586         * posix/regex.h: Likewise.
5587         * resolv/Makefile: Likewise.
5588         * resolv/nss_dns/dns-network.c: Likewise.
5589         * resolv/res_hconf.c: Likewise.
5590         * scripts/gen-sorted.awk: Likewise.
5591         * soft-fp/soft-fp.h: Likewise.
5592         * stdio-common/printf.h: Likewise.
5593         * stdlib/monetary.h: Likewise.
5594         * stdlib/random.c: Likewise.
5595         * stdlib/random_r.c: Likewise.
5596         * sysdeps/generic/Makefile: Likewise.
5597         * sysdeps/gnu/Makefile: Likewise.
5598         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5599         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5600         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5601         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5602         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5603         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5604         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5605         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5606         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5607         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5608         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5609         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5610         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5611         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5612         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5613         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5614         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5615         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5616         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5617         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5618         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5619         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5620         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5621         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5622         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5623         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5624         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5626         * sysdeps/mach/hurd/errnos.awk: Likewise.
5627         * sysdeps/mach/hurd/fork.c: Likewise.
5628         * sysdeps/mach/hurd/getcwd.c: Likewise.
5629         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5630         * sysdeps/mach/hurd/mmap.c: Likewise.
5631         * sysdeps/mach/hurd/utimes.c: Likewise.
5632         * sysdeps/mach/hurd/xmknod.c: Likewise.
5633         * sysdeps/posix/profil.c: Likewise.
5634         * sysdeps/posix/readdir_r.c: Likewise.
5635         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5636         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5637         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5638         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5639         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5640         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5641         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5642         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5643         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5644         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5645         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5646         * sysdeps/pthread/lio_listio.c: Likewise.
5647         * sysdeps/sparc/dl-procinfo.h: Likewise.
5648         * sysdeps/unix/i386/sysdep.S: Likewise.
5649         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5650         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5651         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5652         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5654         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5655         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5656         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5657         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5658         * sysdeps/wordsize-32/divdi3.c: Likewise.
5659         * time/sys/time.h: Likewise.
5660         * wcsmbs/Makefile: Likewise.
5661
5662 2013-01-01  David S. Miller  <davem@davemloft.net>
5663
5664         * po/fr.po: Update from translation team.
5665
5666         * catgets/gencat.c: Update copyright year.
5667         * csu/version.c: Likewise.
5668         * debug/catchsegv.sh: Likewise.
5669         * debug/pcprofiledump.c: Likewise.
5670         * debug/xtrace.sh: Likewise.
5671         * elf/ldconfig.c: Likewise.
5672         * elf/ldd.bash.in: Likewise.
5673         * elf/pldd.c: Likewise.
5674         * elf/sotruss.ksh: Likewise.
5675         * elf/sprof.c: Likewise.
5676         * iconv/iconv_prog.c: Likewise.
5677         * iconv/iconvconfig.c: Likewise.
5678         * locale/programs/locale.c: Likewise.
5679         * locale/programs/localedef.c: Likewise.
5680         * login/programs/pt_chown.c: Likewise.
5681         * malloc/memusage.sh: Likewise.
5682         * malloc/memusagestat.c: Likewise.
5683         * malloc/mtrace.pl: Likewise.
5684         * nscd/nscd.c: Likewise.
5685         * nss/getent.c: Likewise.
5686         * nss/makedb.c: Likewise.
5687         * posix/getconf.c: Likewise.
5688
5689 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5690
5691         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5692         numbers.
5693
5694 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5695
5696         * math/bits/mathcalls.h (modf): Use __nonnull.
5697
5698 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5699
5700         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5701         (split): Use macro CN instead of the bare value.
5702         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5703         could be used.
5704         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5705         instead of the bare value.
5706         (power1): Likewise.
5707
5708 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5709
5710         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5711         __ATAN_TWOM.
5712         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5713
5714         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5715         their values.
5716         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5717         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5718         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5719         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5720
5721 2012-12-28  Andreas Jaeger  <aj@suse.de>
5722
5723         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5724         values are from Linux 3.7.
5725
5726         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5727         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5728
5729 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5730
5731         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5732         TRUE case.
5733
5734         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5735         (norm): Likewise.
5736         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5737         variables with preprocessor constants.
5738         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5739         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5740         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5741
5742 2012-12-27  Bruno Haible  <bruno@clisp.org>
5743
5744         [BZ #14317]
5745         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5746         only if needed.
5747
5748 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5749
5750         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5751         and use variable directly.
5752         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5753
5754         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5755         MPONE.
5756         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5757         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5758         variable MPONE.
5759         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5760         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5761         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5762         include directive.  Remove local variable MPONE.
5763         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5764         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5765         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5766
5767 2012-12-25  David S. Miller  <davem@davemloft.net>
5768
5769         * version.h (RELEASE): Set to "development".
5770         (VERSION): Set to "2.17.90".
5771         * NEWS: Add 2.18 section.
5772
5773 2012-12-21  David S. Miller  <davem@davemloft.net>
5774
5775         * po/hr.po: Update from translation team.
5776
5777 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5778
5779         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5780
5781 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5782
5783         * NEWS:  Mention new memcpy for MIPS.
5784
5785 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5786
5787         * manual/contrib.texi (Contributors): Spelling correction.
5788
5789 2012-12-15  David S. Miller  <davem@davemloft.net>
5790
5791         * po/ru.po: Update from translation team.
5792
5793 2012-12-13  David S. Miller  <davem@davemloft.net>
5794
5795         * NEWS: Mention IFUNC testsuite enhancements.
5796
5797         * po/pl.po: Update from translation team.
5798         * po/bg.po: Likewise.
5799
5800         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5801         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5802
5803 2012-12-11  David S. Miller  <davem@davemloft.net>
5804
5805         * po/sv.po: Update from translation team.
5806
5807         * po/vi.po: Update from translation team.
5808
5809         * po/cs.po: Update from translation team.
5810
5811         * po/de.po: Update from translation team.
5812         * po/eo.po: Likewise.
5813         * po/nl.po: Likewise.
5814
5815 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5816
5817         [BZ #14246]
5818         * manual/argp.texi (Argp Helper Functions): Move node to follow
5819         Argp Parsing State.
5820
5821         [BZ #14872]
5822         * manual/conf.texi (Limits on File System Capacity): Mention if
5823         terminating null is included in the max size.
5824
5825 2012-12-10  Andreas Jaeger  <aj@suse.de>
5826
5827         * po/cs.po: Update from translation team.
5828
5829 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5830
5831         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5832         void pointer and cast to uintptr_t.
5833         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5834         path.
5835         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5836         * sysdeps/s390/s390-64/memset.S: Likewise.
5837
5838 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5839
5840         [BZ #14833]
5841         * menual/message.texi (Message Translation): Fix typos.
5842         (Helper programs for gettext): Likewise.
5843
5844 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5845
5846         [BZ #14898]
5847         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5848         Change to -1.
5849
5850 2012-12-07  David S. Miller  <davem@davemloft.net>
5851
5852         * po/libc.pot: Update.
5853
5854 2012-12-07  Richard Henderson  <rth@redhat.com>
5855
5856         [BZ #10114]
5857         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5858         normal/normal case to before the switch.
5859         (_FP_DIV): Likewise.
5860
5861 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5862             Mike Frysinger  <vapier@gentoo.org>
5863
5864         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5865         check for __NR_fadvise64_64.
5866
5867 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5868
5869         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5870         0, not just to plain "0" as a statement.
5871         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5872         with cw.
5873
5874 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5875
5876         * NEWS: Use sourceware.org in Bugzilla URL.
5877
5878 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5879
5880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5881         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5882
5883         * stdio-common/tst-put-error.c (do_test): Add newline to the
5884         padded test to ensure flush.
5885
5886 2012-12-05  Jeff Law  <law@redhat.com>
5887
5888         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5889
5890 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5891
5892         * README: Don't refer to ports add-on as distributed separately.
5893         Mention AArch64 in list of systems supported in the ports add-on.
5894
5895         * LICENSES: Add more non-FSF copyright and license notices.
5896
5897         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5898         ((unused)).
5899
5900         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5901
5902         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5903         10000 as width of padded output.
5904
5905 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5906
5907         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5908
5909         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5910         variable LX with __attribute__ ((unused)).
5911         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5912         Likewise.
5913         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5914         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5915         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5916         with __attribute__ ((unused)).
5917
5918 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5919
5920         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5921
5922 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5923
5924         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5925         (CFLAGS-nldbl-acos.c): New variable.
5926         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5927         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5928         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5929         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5930         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5931         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5932         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5933         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5934         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5935         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5936         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5937         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5938         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5939         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5940         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5941         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5942         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5943         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5944         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5945         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5946         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5947         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5948         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5949         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5950         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5951         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5952         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5953         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5954         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5955         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5956         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5957         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5958         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5959         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5960         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5961         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5962         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5963         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5964         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5965         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5966         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5967         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5968         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5969         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5970         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5971         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5972         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5973         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5974         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5975         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5976         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5977         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5978         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5979         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5980         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5981         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5982         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5983         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5984         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5985         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5986         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5987         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5988         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5989         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5990         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5991         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5992         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5993         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5994         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5995         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5996         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5997         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5998         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5999         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6000         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6001         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6002         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6003         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6004         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6005         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6006         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6007         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6008         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6009         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6010         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6011         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6012         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6013         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6014         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6015         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6016         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6017         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6018         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6019         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6020         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6021         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6022         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6023
6024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6025         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6026
6027         [BZ #14914]
6028         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6029         whole low double instead of just low 47 bits when splitting values
6030         into two parts.
6031
6032 2012-12-03  Allan McRae  <allan@archlinux.org>
6033
6034         * manual/stdio.texi (Predefined Printf Handlers): Remove
6035         @hsep and @vsep usage.
6036
6037 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6038
6039         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6040         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6041
6042 2012-12-03  Jeff Law  <law@redhat.com>
6043
6044         * time/sys/time.h (settimeofday): Do not mark TV argument
6045         as __nonnull.
6046
6047 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6048
6049         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6050         when currently writing and seek to current position when not.
6051         * libio/Makefile (tests): Remove bug-fclose1.
6052         * libio/bug-fclose1.c: Delete.
6053
6054 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6055
6056         * manual/arith.texi (feenableexcept): Fix typo.
6057         (fedisableexcept): Likewise.
6058
6059 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6060
6061         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6062         second, differently-typed declaration, rather than a cast.
6063
6064 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6065
6066         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6067         * include/rpc/svc.h: ... here.
6068
6069 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6070
6071         [BZ #13013]
6072         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6073         depending n and resplen2 to catch cases where answer
6074         equals answerp2.
6075
6076 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6077
6078         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6079         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6080
6081 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6082
6083         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6084
6085 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6086
6087         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6088
6089 2012-11-28  Jeff Law  <law@redhat.com>
6090
6091         [BZ #13761]
6092         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6093         dataset_temporary.  Track alloca usage into alloca_used.
6094         If dataset is large allocate and release it via malloc/free.
6095
6096 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6097
6098         [BZ #14197]
6099         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6100
6101 2012-11-28  David S. Miller  <davem@davemloft.net>
6102
6103         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6104
6105 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6106
6107         [BZ #14803]
6108         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6109         of pi/2 rounded to nearest to 64 bits.
6110         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6111         nearest to 64 bits.
6112         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6113         bits.
6114
6115 2012-11-28  Jeff Law <law@redhat.com>
6116             Martin Osvald <mosvald@redhat.com>
6117
6118         [BZ #14889]
6119         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6120         * sunrpc/svc.c: Include time.h.
6121         (__svc_accept_failed): New function.
6122         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6123         any reason other than EINTR, call __svc_accept_failed.
6124         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6125         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6126
6127 2012-11-28  Andreas Schwab  <schwab@suse.de>
6128
6129         * scripts/abilist.awk: Also handle indirect functions in .opd
6130         section.
6131
6132 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6133
6134         [BZ #13881]
6135         * sysdeps/x86/fpu/powl_helper.c: New file.
6136         * sysdeps/x86/fpu/Makefile: Likewise.
6137         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6138         (p3): New object.
6139         (__ieee754_powl): Use __powl_helper for finite arguments except
6140         integer exponents below 8.
6141         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6142         (p3): New object.
6143         (__ieee754_powl): Use __powl_helper for finite arguments except
6144         integer exponents below 8.
6145         * math/libm-test.inc (pow_test): Add more tests and enable some
6146         previously disabled tests.
6147         * sysdeps/i386/fpu/libm-test-ulps: Update.
6148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6149
6150 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6151             Carlos O'Donell  <carlos_odonell@mentor.com>
6152
6153         * nss/makedb.c (is_prime): Assert that input is odd and greater
6154         than 4.  Note that fact in a comment too.
6155         (next_prime): Add 4 to input.
6156
6157 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6158
6159         [BZ #11741]
6160         * libio/Makefile (tests): Add test case tst-fwrite-error.
6161         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6162         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6163         * libio/tst-fwrite-error.c: New test case.
6164
6165 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6166
6167         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6168         before casting to void *.
6169         * include/libc-internal.h (__pointer_type): New macro.
6170         (__integer_if_pointer_type_sub): Likewise.
6171         (__integer_if_pointer_type): Likewise.
6172         (cast_to_integer): Likewise.
6173         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6174         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6175         before casting to atomic64_t.
6176         (atomic_exchange_acq): Likewise.
6177         (__arch_exchange_and_add_body): Likewise.
6178         (__arch_add_body): Likewise.
6179         (atomic_add_negative): Likewise.
6180         (atomic_add_zero): Likewise.
6181
6182 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6183
6184         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6185         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6186         (add_fdes): Likewise.
6187         (linear_search_fdes): Likewise.
6188         (binary_search_unencoded_fdes): Likewise.
6189
6190 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6191
6192         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6193
6194 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6195
6196         * configure.in: Autodetect C++ header directories.
6197         * configure: Regenerated.
6198
6199 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6200
6201         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6202
6203 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6204
6205         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6206
6207 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6208
6209         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6210         LDBL_MANT_DIG == 106]: Disable some tests.
6211         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6212         Likewise.
6213         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6214         Likewise.
6215
6216         [BZ #14871]
6217         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6218         input for small inputs.  Return +/- pi/2 for large inputs.
6219         * math/libm-test.inc (atan_test): Add more tests.
6220
6221         * sysdeps/generic/unwind-dw2-fde-glibc.c
6222         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6223         __attribute__ ((unused)).
6224
6225         [BZ #14645]
6226         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6227         x * y if x and y are nonzero and z is zero.
6228
6229         [BZ #14811]
6230         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6231         nonzero exponents with absolute value below 0x1p-117 to +/-
6232         0x1p-117.
6233
6234         [BZ #14869]
6235         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6236         up arguments below 2**-450, not just those below 2**-500.
6237         * math/libm-test.inc (hypot_test): Add another test.
6238
6239         [BZ #14868]
6240         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6241         Return a+b for ratio over 2**120, not 2**60.
6242         * math/libm-test.inc (hypot_test): Add another test.
6243
6244         * math/libm-test.inc (clog_test): Use
6245         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6246         (clog10_test): Likewise.
6247
6248         [BZ #6778]
6249         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6250
6251 2012-11-22  Andreas Schwab  <schwab@suse.de>
6252
6253         * sysdeps/i386/fpu/libm-test-ulps: Update.
6254
6255 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6256
6257         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6258         printf output with newline.
6259
6260 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6261
6262         [BZ #14865]
6263         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6264         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6265         -z nodlopen, -z initfirst and -z execstack support.
6266         * configure: Regenerated.
6267
6268         * elf/elf.h (DF_1_NODIRECT): New macro.
6269         (DF_1_IGNMULDEF): Likewise.
6270         (DF_1_NOKSYMS): Likewise.
6271         (DF_1_NOHDR): Likewise.
6272         (DF_1_EDITED): Likewise.
6273         (DF_1_NORELOC): Likewise.
6274         (DF_1_SYMINTPOSE): Likewise.
6275         (DF_1_GLOBAUDIT): Likewise.
6276         (DF_1_SINGLETON): Likewise.
6277         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6278         DT_1_SUPPORTED_MASK bits.
6279         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6280
6281 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6282
6283         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6284
6285 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6286
6287         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6288         macro.
6289
6290         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6291         (sendmmsg): Move declarations...
6292         * socket/sys/socket.h: ... here.
6293         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6294         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6295         include it from...
6296         * socket/recvmmsg.c: ... this new file.
6297         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6298         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6299         definition of __sendmmsg hidden.
6300         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6301         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6302         Move ENOSYS stub into and include it from...
6303         * socket/sendmmsg.c: ... this new file.
6304         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6305         (sysdep_routines): Move recvmmsg and sendmmsg...
6306         * socket/Makefile (routines): ... here.
6307         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6308         (GLIBC_PRIVATE): Add __sendmmsg.
6309         * include/sys/socket.h (__sendmmsg): Add declarations.
6310         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6311         sendmmsg.
6312
6313 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6314
6315         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6316         variable I1 with __attribute__ ((unused)).
6317         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6318
6319 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6320
6321         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6322         DUMMY variables with __attribute__ ((unused)).
6323
6324         * bits/byteswap.h: Include <bits/types.h>.
6325         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6326
6327 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6328
6329         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6330         string_t.  Do not manually set errno.
6331         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6332         length with __strnlen.  Make sure to both set errno and return it on
6333         failure.
6334
6335 2012-11-19  David S. Miller  <davem@davemloft.net>
6336
6337         With help from Joseph Myers.
6338         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6339         very large arguments properly.
6340         * math/libm-test.inc (atan_test): New tests.
6341         (atan2_test): New tests.
6342         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6343         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6344
6345 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6346
6347         [BZ #14856]
6348         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6349         Define to 3.
6350
6351         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6352         [POSIX] (EADDRNOTAVAIL): Likewise.
6353         [POSIX] (EAFNOSUPPORT): Likewise.
6354         [POSIX] (EALREADY): Likewise.
6355         [POSIX] (ECONNABORTED): Likewise.
6356         [POSIX] (ECONNREFUSED): Likewise.
6357         [POSIX] (ECONNRESET): Likewise.
6358         [POSIX] (EDESTADDRREQ): Likewise.
6359         [POSIX] (EDQUOT): Likewise.
6360         [POSIX] (EHOSTUNREACH): Likewise.
6361         [POSIX] (EIDRM): Likewise.
6362         [POSIX] (EISCONN): Likewise.
6363         [POSIX] (ELOOP): Likewise.
6364         [POSIX] (EMULTIHOP): Likewise.
6365         [POSIX] (ENETDOWN): Likewise.
6366         [POSIX] (ENETUNREACH): Likewise.
6367         [POSIX] (ENOBUFS): Likewise.
6368         [POSIX] (ENODATA): Likewise.
6369         [POSIX] (ENOLINK): Likewise.
6370         [POSIX] (ENOMSG): Likewise.
6371         [POSIX] (ENOPROTOOPT): Likewise.
6372         [POSIX] (ENOSR): Likewise.
6373         [POSIX] (ENOSTR): Likewise.
6374         [POSIX] (ENOTCONN): Likewise.
6375         [POSIX] (ENOTSOCK): Likewise.
6376         [POSIX] (EOPNOTSUPP): Likewise.
6377         [POSIX] (EOVERFLOW): Likewise.
6378         [POSIX] (EPROTO): Likewise.
6379         [POSIX] (EPROTONOSUPPORT): Likewise.
6380         [POSIX] (EPROTOTYPE): Likewise.
6381         [POSIX] (ESTALE): Likewise.
6382         [POSIX] (ETIME): Likewise.
6383         [POSIX] (ETXTBSY): Likewise.
6384         [POSIX] (EWOULDBLOCK): Likewise.
6385         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6386         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6387         [POSIX] (SEEK_CUR): Likewise.
6388         [POSIX] (SEEK_END): Likewise.
6389         [POSIX || UNIX98] (mode_t): Do not require.
6390         [POSIX] (off_t): Likewise.
6391         [POSIX] (pid_t): Likewise.
6392         [POSIX] (sys/stat.h): Do not allow header.
6393         [POSIX] (unistd.h): Likewise.
6394         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6395         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6396         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6397         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6398         require.
6399         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6400         sigevent): Specify elements.
6401         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6402         entry.
6403         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6404         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6405
6406         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6407         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6408         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6409         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6410         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6411         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6412         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6413         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6414         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6415         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6416         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6417         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6418         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6419         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6420         Likewise.
6421         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6422         Likewise.
6423         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6424         Likewise.
6425         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6426         Likewise.
6427         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6428         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6429         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6430         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6431         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6432         Specify lower bound on value.
6433         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6434         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6435         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6436         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6437         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6438         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6439         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6440         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6441         value.
6442         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6443         as optional.
6444         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6445         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6446         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6460         entry.
6461         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6462         optional.
6463         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6469         Likewise.
6470         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6475         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6476         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6477         as optional.
6478         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6482         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6483         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6484         specify as optional.
6485         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6486         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6487         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6488         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6489         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6490         [XPG3] (NL_LANGMAX): Likewise.
6491         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6492         [POSIX || XPG3] (NL_NMAX): Likewise.
6493         [POSIX || XPG3] (NL_SETMAX): Likewise.
6494         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6495         [XPG3] (NZERO): Likewise.
6496         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6497         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6498         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6499         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6500         (REG_ERANGE): Expect.
6501         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6502         optional-constant.
6503         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6504         Use (void) in prototype.
6505         [POSIX] (*_t): Allow.
6506         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6507         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6508         (WRDE_BADVAL): Expect.
6509
6510         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6511         expect.
6512         [XPG3 || XPG4] (O_RSYNC): Likewise.
6513         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6514         Likewise.
6515         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6516         [XPG3 || XPG4] (sigqueue): Likewise.
6517         [XPG3 || XPG4] (sigtimedwait): Likewise.
6518         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6519         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6520         [XPG3 || XPG4] (vsnprintf): Likewise.
6521         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6522         Likewise.
6523         [XPG3 || XPG4] (blksize_t): Likewise.
6524         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6525         Likewise.
6526         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6527         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6528         [XPG3 || XPG4] (struct itimerspec): Likewise.
6529         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6530         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6531         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6532         [XPG3 || XPG4] (clockid_t): Likewise.
6533         [XPG3 || XPG4] (timer_t): Likewise.
6534         [XPG3 || XPG4] (clock_getres): Likewise.
6535         [XPG3 || XPG4] (clock_gettime): Likewise.
6536         [XPG3 || XPG4] (clock_settime): Likewise.
6537         [XPG3 || XPG4] (nanosleep): Likewise.
6538         [XPG3 || XPG4] (timer_create): Likewise.
6539         [XPG3 || XPG4] (timer_delete): Likewise.
6540         [XPG3 || XPG4] (timer_gettime): Likewise.
6541         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6542         [XPG3 || XPG4] (timer_settime): Likewise.
6543         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6544         [XPG3 || XPG4] (getlogin_r): Likewise.
6545         [XPG3 || XPG4] (pread): Likewise.
6546         [XPG3 || XPG4] (pthread_atfork): Likewise.
6547         [XPG3 || XPG4] (pwrite): Likewise.
6548
6549         [BZ #14835]
6550         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6551         <bits/siginfo.h>.
6552
6553 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6554
6555         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6556         finalizing MALLSTREAM.
6557
6558         * sysdeps/mach/hurd/syncfs.c: New file.
6559
6560 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6561
6562         [BZ #14719]
6563         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6564         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6565         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6566         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6567         (_nss_dns_gethostbyname4_r): Likewise.
6568         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6569         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6570
6571 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6572
6573         [BZ #13763]
6574         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6575
6576 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6577
6578         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6579         * elf/cache.c (print_entry): Print ",AArch64" for
6580         FLAG_AARCH64_LIB64
6581
6582         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6583         * elf/cache.c (print_entry): Print ",hard-float" for
6584         FLAG_ARM_LIBHF.
6585
6586 2012-11-18  David S. Miller  <davem@davemloft.net>
6587
6588         With help from Joseph Myers.
6589         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6590         cutoff to 2**-13.
6591         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6592         cutoff to 2**-25.
6593         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6594         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6595         small.
6596         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6597         * math/libm-test.inc (y0_test): New tests.
6598         (y1_test): New tests.
6599         * sysdeps/i386/fpu/libm-test-ulps: Update.
6600         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6602
6603 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6604
6605         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6606         64-bit targets.
6607         * configure: Regenerated.
6608
6609 2012-11-17  David S. Miller  <davem@davemloft.net>
6610
6611         [BZ #14811]
6612         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6613         nonzero exponents with absolute value below 0x1p-128 to +/-
6614         0x1p-128.
6615
6616 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6617
6618         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6619
6620         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6621
6622         * posix/getconf-speclist.c: New file.
6623         * posix/posix-envs.def: Likewise.
6624         * posix/confstr.c (START_ENV_GROUP): New macro.
6625         (END_ENV_GROUP): Likewise.
6626         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6627         (KNOWN_PRESENT_ENV_STRING): Likewise.
6628         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6629         (UNKNOWN_ENVIRONMENT): Likewise.
6630         (confstr): Include posix-envs.def instead of handling
6631         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6632         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6633         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6634         (END_ENV_GROUP): Likewise.
6635         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6636         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6637         (UNKNOWN_ENVIRONMENT): Likewise.
6638         (__sysconf): Include posix-envs.def instead of handling associated
6639         cases directly here.
6640         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6641         preprocessing getconf-speclist.c rather than running getconf or
6642         generating empty file.
6643
6644 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6645
6646         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6647
6648 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6649
6650         [BZ #14672]
6651         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6652
6653 2012-11-16  David S. Miller  <davem@davemloft.net>
6654
6655         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6656         smaller than LDBL_EPSILON/2.0L, just return xm1.
6657
6658 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6659
6660         * elf/tst-array1.c (init): Set constructor priority to 1000.
6661         (fini): Set destructor priority to 1000.
6662         * elf/tst-array2dep.c: Likewise.
6663
6664 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6665
6666         [BZ #11741]
6667         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6668         (_IO_new_file_xsputn): Also return EOF if none of the input
6669         data was written when overflow failed.
6670         * libio/iopadn.c (_IO_padn): Likewise.
6671         * libio/iowpadn.c (_IO_wpadn): Likewise.
6672         * stdio-common/tst-put-error.c: Add copyright notice.
6673         (do_test): Add case for printing padded string.
6674         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6675         _IO_padn returned error.
6676         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6677         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6678         return EOF.
6679
6680 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6681
6682         * libio/libioP.h: Add comment note that the references to C++
6683         bits are now obsolete.
6684
6685 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6686
6687         * math/libm-test.inc (check_complex): Use asprintf.
6688
6689 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6690
6691         * debug/pcprofiledump.c (print_version): Update copyright year.
6692         * malloc/memusagestat.c (print_version): Likewise.
6693
6694 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6695
6696         [BZ #14831]
6697         * elf/Makefile (tests): Add tst-audit8.
6698         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6699         ($(objpfx)tst-audit8.out): New target.
6700         (tst-audit8-ENV): New variable.
6701         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6702         audit if l_reloc_result is NULL.
6703         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6704         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6705         * elf/tst-audit8.c: New file.
6706
6707 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6708
6709         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6710         * misc/Makefile (CFLAGS-select.c): Define.
6711         * posix/Makefile (CFLAGS-pause.c): Define.
6712
6713 2012-11-13  David S. Miller  <davem@davemloft.net>
6714
6715         * crypt/Makefile: Move test targets after toplevel Rules
6716         inclusion.  Grab any necessary sysdep routines when linking.
6717         * crypt/md5.c (md5_process_block): Remove define, we will always
6718         name it __md5_process_block.
6719         (md5_finish_ctx): Update md5_process_block call.
6720         (md5_stream): Likewise.
6721         (md5_process_bytes): Likewise.
6722         (md5_process_block): Rename to __md5_process_block and move to ...
6723         * crypt/md5-block.c: ... here.
6724         * crypt/sha256.c (sha256_process_block): Move to ...
6725         * crypt/sha256-block.c: ... here.
6726         * crypt/sha512.c (sha512_process_block): Move to ...
6727         * crypt/sha512-block.c: ... here.
6728         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6729         path.
6730         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6731         * sysdeps/sparc/sparc64/multiarch/Makefile
6732         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6733         crypt subdir.
6734         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6735         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6736         multiarch changes.
6737         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6738         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6739         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6740         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6741         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6742         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6743         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6744         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6745         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6746         file.
6747         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6748         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6749         file.
6750         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6751
6752 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6753
6754         * timezone/tzselect.ksh: Update from tzcode git revision
6755         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6756         * timezone/zdump.c: Likewise.
6757         * timezone/zic.c: Likewise.
6758         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6759         in TZVERSION setting, not $(PKGVERSION).
6760         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6761         REPORT_BUGS_TO settings.
6762
6763         [BZ #14838]
6764         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6765         macro.
6766
6767 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6768
6769         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6770         detection to immediately after _FP_ROUND().
6771         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6772         bits are 0.
6773
6774 2012-11-11  David S. Miller  <davem@davemloft.net>
6775
6776         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6777         inttypes.h
6778         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6779         __close rather than their public counterparts.
6780
6781 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6782
6783         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6784         file.
6785         [UNIX98] (sem_timedwait): Do not expect.
6786         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6787         [XPG4 || UNIX98] (sockatmark): Do not expect.
6788         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6789         (clock_getcpuclockid): Do not expect.
6790         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6791         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6792         Do not expect.
6793         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6794         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6795         [UNIX98] (vwscanf): Likewise.
6796         [UNIX98] (vswscanf): Likewise.
6797
6798 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6799
6800         * timezone/version.h: Remove file.
6801         * timezone/README: Do not refer to version.h.
6802         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6803         $(objpfx)version.h.
6804         ($(objpfx)zdump.o): Likewise.
6805         ($(objpfx)version.h): New target.
6806
6807         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6808         2012i.
6809         * timezone/README: Don't mention modification to tzselect.ksh.
6810         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6811         work on unmodified tzselect.ksh.  Substitute version numbers in
6812         tzselect.ksh.
6813
6814         * Makefile (format-me): Remove.
6815         (INSTALL): Adjust indentation.  Use commands directly instead of
6816         using $(format-me).
6817
6818         * aclocal.m4 (ACX_PKGVERSION): New macro.
6819         (ACX_BUGURL): Likewise.
6820         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6821         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6822         (REPORT_BUGS_TO): Likewise.
6823         * configure: Regenerated.
6824         * config.h.in (PKGVERSION): New macro.
6825         (REPORT_BUGS_TO): Likewise.
6826         * config.make.in (PKGVERSION): New variable.
6827         (PKGVERSION_TEXI): Likewise.
6828         (REPORT_BUGS_TO): Likewise.
6829         (REPORT_BUGS_TEXI): Likewise.
6830         * Makefile (format-me): Use -I$(common-objpfx)manual.
6831         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6832         ($(common-objpfx)manual/%): New target.
6833         (manual/%): Remove target.
6834         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6835         (print_version): Use PKGVERSION.
6836         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6837         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6838         and REPORT_BUGS_TO.
6839         ($(objpfx)xtrace): Likewise.
6840         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6841         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6842         (print_version): Use PKGVERSION.
6843         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6844         (do_version): Use PKGVERSION.
6845         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6846         REPORT_BUGS_TO.
6847         (common-ldd-rewrite): Likewise.
6848         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6849         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6850         (print_version): Use PKGVERSION.
6851         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6852         * elf/pldd.c (argp_program_bug_address): Remove variable.
6853         (more_help): New function.
6854         (argp): Use more_help.
6855         (print_version): Use PKGVERSION.
6856         * elf/sln.c (main): Use PKGVERSION.
6857         (usage): Use REPORT_BUGS_TO.
6858         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6859         (top level): Use PKGVERSION.
6860         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6861         (print_version): Use PKGVERSION.
6862         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6863         (print_version): Use PKGVERSION.
6864         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6865         (print_version): Use PKGVERSION.
6866         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6867         (print_version): Use PKGVERSION.
6868         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6869         (print_version): Use PKGVERSION.
6870         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6871         (print_version): Use PKGVERSION.
6872         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6873         and BUGURL.
6874         ($(objpfx)memusage): Likewise.
6875         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6876         (do_version): Use PKGVERSION.
6877         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6878         (print_version): Use PKGVERSION.
6879         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6880         ($PKGVERSION): New variable.
6881         ($REPORT_BUGS_TO): Likewise.
6882         (usage): Use $REPORT_BUGS_TO.
6883         (top level): Use $PKGVERSION.
6884         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6885         ($(objpfx)pkgvers.texi): New rule.
6886         ($(objpfx)stamp-pkgvers): Likewise.
6887         * manual/install.texi: Include pkgvers.texi.
6888         (--with-pkgversion): Document new configure option.
6889         (--with-bugurl): Likewise.
6890         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6891         than necessarily for this particular distribution.  Use
6892         REPORT_BUGS_TO for where to report bugs.
6893         * INSTALL: Regenerated.
6894         * manual/libc.texinfo: Include pkgvers.texi.
6895         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6896         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6897         (print_version): Use PKGVERSION.
6898         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6899         (print_version): Use PKGVERSION.
6900         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6901         (print_version): Use PKGVERSION.
6902         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6903         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6904         macro.
6905         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6906         (print_version): Use PKGVERSION.
6907         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6908         (print_version): Use PKGVERSION.
6909         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6910         and PKGVERSION.
6911
6912         * timezone/checktab.awk: Update from tzcode 2012i.
6913         * timezone/ialloc.c: Likewise.
6914         * timezone/private.h: Likewise.
6915         * timezone/scheck.c: Likewise.
6916         * timezone/tzfile.h: Likewise.
6917         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6918         (TZVERSION): Hardcode tzcode version number.
6919         * timezone/zdump.c: Update from tzcode 2012i.
6920         * timezone/zic.c: Likewise.
6921         * timezone/version.h: New file.
6922         * timezone/README: Describe version.h.  Update upstream location.
6923
6924         [BZ #14824]
6925         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6926         (mktemp): Enable declaration.
6927         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6928         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6929         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6930         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6931         Likewise.
6932         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6933         Likewise.
6934         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6935         Likewise.
6936         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6937         Likewise.
6938         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6939         Likewise.
6940         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6941         Likewise.
6942
6943         [BZ #14821]
6944         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6945         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6946         for copies of such integer values.
6947         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6948         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6949
6950 2012-11-09  Andreas Jaeger  <aj@suse.de>
6951
6952         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6953         definitions and declarations that are provided by
6954         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6955
6956 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6957
6958         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6959         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6960         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6961         definition.
6962
6963 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6964
6965         * elf/elf.h: Update comment before AArch64 relocations.
6966
6967 2012-11-07  David S. Miller  <davem@davemloft.net>
6968
6969         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6970         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6971         (__start_context): Declare.
6972         (__makecontext_ret): Delete.
6973         (__makecontext): Hook up __start_context instead of
6974         __makecontext_ret.
6975         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6976         (sysdep_routines): Add __start_context when in stdlib.
6977
6978 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6981         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6982         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6983         hardcoded "nm".
6984         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6985         (READELF): New variable.  Use it instead of hardcoded "readelf".
6986
6987 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6988
6989         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6990         * sysdeps/x86/Makefile: Here.
6991         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6992         * sysdeps/x86/tst-xmmymm.sh: This.
6993
6994 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6995
6996         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6997         expectations.
6998         [UNIX98] (pthread_barrier_t): Do not expect.
6999         [UNIX98] (pthread_barrierattr_t): Likewise.
7000         [UNIX98] (pthread_spinlock_t): Likewise.
7001         [UNIX98] (pthread_barrier_destroy): Likewise.
7002         [UNIX98] (pthread_barrier_init): Likewise.
7003         [UNIX98] (pthread_barrier_wait): Likewise.
7004         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7005         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7006         [UNIX98] (pthread_barrierattr_init): Likewise.
7007         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7008         [UNIX98] (pthread_getcpuclockid): Likewise.
7009         [UNIX98] (pthread_mutex_timedlock): Likewise.
7010         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7011         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7012         [UNIX98] (pthread_sigmask): Likewise.
7013         [UNIX98] (pthread_spin_destroy): Likewise.
7014         [UNIX98] (pthread_spin_init): Likewise.
7015         [UNIX98] (pthread_spin_lock): Likewise.
7016         [UNIX98] (pthread_spin_trylock): Likewise.
7017         [UNIX98] (pthread_spin_unlock): Likewise.
7018         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7019         Do not expect.
7020         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7021         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7022         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7023         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7024         [XPG3 || XPG4] (pthread_key_t): Likewise.
7025         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7026         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7027         [XPG3 || XPG4] (pthread_once_t): Likewise.
7028         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7029         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7030         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7031         [XPG3 || XPG4] (pthread_t): Likewise.
7032
7033         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7034         not expect.
7035         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7036
7037         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7038         Change function return type to int.
7039
7040         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7041         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7042         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7043         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7044         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7045         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7046         [!POSIX] (posix_madvise): Likewise.
7047         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7048         && !UNIX98].
7049         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7050         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7051         (mode_t): Likewise.
7052         (posix_mem_offset): Likewise.
7053         (posix_typed_mem_get_info): Likewise.
7054         (posix_typed_mem_open): Likewise.
7055
7056         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7057         Change condition to [XOPEN2K8].
7058
7059         * conform/conformtest.pl: Preprocess allow-header data with -x c
7060         instead of from stdin.
7061         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7062         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7063         [C99-based standards] (cerfc): Likewise.
7064         [C99-based standards] (cexp2): Likewise.
7065         [C99-based standards] (cexpm1): Likewise.
7066         [C99-based standards] (clog10): Likewise.
7067         [C99-based standards] (clog1p): Likewise.
7068         [C99-based standards] (clog2): Likewise.
7069         [C99-based standards] (clgamma): Likewise.
7070         [C99-based standards] (ctgamma): Likewise.
7071         [C99-based standards] (cerff): Likewise.
7072         [C99-based standards] (cerfcf): Likewise.
7073         [C99-based standards] (cexp2f): Likewise.
7074         [C99-based standards] (cexpm1f): Likewise.
7075         [C99-based standards] (clog10f): Likewise.
7076         [C99-based standards] (clog1pf): Likewise.
7077         [C99-based standards] (clog2f): Likewise.
7078         [C99-based standards] (clgammaf): Likewise.
7079         [C99-based standards] (ctgammaf): Likewise.
7080         [C99-based standards] (cerfl): Likewise.
7081         [C99-based standards] (cerfcl): Likewise.
7082         [C99-based standards] (cexp2l): Likewise.
7083         [C99-based standards] (cexpm1l): Likewise.
7084         [C99-based standards] (clog10l): Likewise.
7085         [C99-based standards] (clog1pl): Likewise.
7086         [C99-based standards] (clog2l): Likewise.
7087         [C99-based standards] (clgammal): Likewise.
7088         [C99-based standards] (ctgammal): Likewise.
7089         * conform/data/inttypes.h-data [C99-based standards]: Include
7090         stdint.h-data.  Remove all expectations for stdint.h contents.
7091         [C99-based standards] (PRI*): Do not allow.
7092         [C99-based standards] (SCN*): Likewise.
7093         [C99-based standards] (*_t): Likewise.
7094         [C99-based-standards] (PRId8): Expect macro.
7095         [C99-based-standards] (PRIi8): Likewise.
7096         [C99-based-standards] (PRIo8): Likewise.
7097         [C99-based-standards] (PRIu8): Likewise.
7098         [C99-based-standards] (PRIx8): Likewise.
7099         [C99-based-standards] (PRIX8): Likewise.
7100         [C99-based-standards] (SCNd8): Likewise.
7101         [C99-based-standards] (SCNi8): Likewise.
7102         [C99-based-standards] (SCNo8): Likewise.
7103         [C99-based-standards] (SCNu8): Likewise.
7104         [C99-based-standards] (SCNx8): Likewise.
7105         [C99-based-standards] (PRIdLEAST8): Likewise.
7106         [C99-based-standards] (PRIiLEAST8): Likewise.
7107         [C99-based-standards] (PRIoLEAST8): Likewise.
7108         [C99-based-standards] (PRIuLEAST8): Likewise.
7109         [C99-based-standards] (PRIxLEAST8): Likewise.
7110         [C99-based-standards] (PRIXLEAST8): Likewise.
7111         [C99-based-standards] (SCNdLEAST8): Likewise.
7112         [C99-based-standards] (SCNiLEAST8): Likewise.
7113         [C99-based-standards] (SCNoLEAST8): Likewise.
7114         [C99-based-standards] (SCNuLEAST8): Likewise.
7115         [C99-based-standards] (SCNxLEAST8): Likewise.
7116         [C99-based-standards] (PRIdFAST8): Likewise.
7117         [C99-based-standards] (PRIiFAST8): Likewise.
7118         [C99-based-standards] (PRIoFAST8): Likewise.
7119         [C99-based-standards] (PRIuFAST8): Likewise.
7120         [C99-based-standards] (PRIxFAST8): Likewise.
7121         [C99-based-standards] (PRIXFAST8): Likewise.
7122         [C99-based-standards] (SCNdFAST8): Likewise.
7123         [C99-based-standards] (SCNiFAST8): Likewise.
7124         [C99-based-standards] (SCNoFAST8): Likewise.
7125         [C99-based-standards] (SCNuFAST8): Likewise.
7126         [C99-based-standards] (SCNxFAST8): Likewise.
7127         [C99-based-standards] (PRId16): Likewise.
7128         [C99-based-standards] (PRIi16): Likewise.
7129         [C99-based-standards] (PRIo16): Likewise.
7130         [C99-based-standards] (PRIu16): Likewise.
7131         [C99-based-standards] (PRIx16): Likewise.
7132         [C99-based-standards] (PRIX16): Likewise.
7133         [C99-based-standards] (SCNd16): Likewise.
7134         [C99-based-standards] (SCNi16): Likewise.
7135         [C99-based-standards] (SCNo16): Likewise.
7136         [C99-based-standards] (SCNu16): Likewise.
7137         [C99-based-standards] (SCNx16): Likewise.
7138         [C99-based-standards] (PRIdLEAST16): Likewise.
7139         [C99-based-standards] (PRIiLEAST16): Likewise.
7140         [C99-based-standards] (PRIoLEAST16): Likewise.
7141         [C99-based-standards] (PRIuLEAST16): Likewise.
7142         [C99-based-standards] (PRIxLEAST16): Likewise.
7143         [C99-based-standards] (PRIXLEAST16): Likewise.
7144         [C99-based-standards] (SCNdLEAST16): Likewise.
7145         [C99-based-standards] (SCNiLEAST16): Likewise.
7146         [C99-based-standards] (SCNoLEAST16): Likewise.
7147         [C99-based-standards] (SCNuLEAST16): Likewise.
7148         [C99-based-standards] (SCNxLEAST16): Likewise.
7149         [C99-based-standards] (PRIdFAST16): Likewise.
7150         [C99-based-standards] (PRIiFAST16): Likewise.
7151         [C99-based-standards] (PRIoFAST16): Likewise.
7152         [C99-based-standards] (PRIuFAST16): Likewise.
7153         [C99-based-standards] (PRIxFAST16): Likewise.
7154         [C99-based-standards] (PRIXFAST16): Likewise.
7155         [C99-based-standards] (SCNdFAST16): Likewise.
7156         [C99-based-standards] (SCNiFAST16): Likewise.
7157         [C99-based-standards] (SCNoFAST16): Likewise.
7158         [C99-based-standards] (SCNuFAST16): Likewise.
7159         [C99-based-standards] (SCNxFAST16): Likewise.
7160         [C99-based-standards] (PRId32): Likewise.
7161         [C99-based-standards] (PRIi32): Likewise.
7162         [C99-based-standards] (PRIo32): Likewise.
7163         [C99-based-standards] (PRIu32): Likewise.
7164         [C99-based-standards] (PRIx32): Likewise.
7165         [C99-based-standards] (PRIX32): Likewise.
7166         [C99-based-standards] (SCNd32): Likewise.
7167         [C99-based-standards] (SCNi32): Likewise.
7168         [C99-based-standards] (SCNo32): Likewise.
7169         [C99-based-standards] (SCNu32): Likewise.
7170         [C99-based-standards] (SCNx32): Likewise.
7171         [C99-based-standards] (PRIdLEAST32): Likewise.
7172         [C99-based-standards] (PRIiLEAST32): Likewise.
7173         [C99-based-standards] (PRIoLEAST32): Likewise.
7174         [C99-based-standards] (PRIuLEAST32): Likewise.
7175         [C99-based-standards] (PRIxLEAST32): Likewise.
7176         [C99-based-standards] (PRIXLEAST32): Likewise.
7177         [C99-based-standards] (SCNdLEAST32): Likewise.
7178         [C99-based-standards] (SCNiLEAST32): Likewise.
7179         [C99-based-standards] (SCNoLEAST32): Likewise.
7180         [C99-based-standards] (SCNuLEAST32): Likewise.
7181         [C99-based-standards] (SCNxLEAST32): Likewise.
7182         [C99-based-standards] (PRIdFAST32): Likewise.
7183         [C99-based-standards] (PRIiFAST32): Likewise.
7184         [C99-based-standards] (PRIoFAST32): Likewise.
7185         [C99-based-standards] (PRIuFAST32): Likewise.
7186         [C99-based-standards] (PRIxFAST32): Likewise.
7187         [C99-based-standards] (PRIXFAST32): Likewise.
7188         [C99-based-standards] (SCNdFAST32): Likewise.
7189         [C99-based-standards] (SCNiFAST32): Likewise.
7190         [C99-based-standards] (SCNoFAST32): Likewise.
7191         [C99-based-standards] (SCNuFAST32): Likewise.
7192         [C99-based-standards] (SCNxFAST32): Likewise.
7193         [C99-based-standards] (PRId64): Likewise.
7194         [C99-based-standards] (PRIi64): Likewise.
7195         [C99-based-standards] (PRIo64): Likewise.
7196         [C99-based-standards] (PRIu64): Likewise.
7197         [C99-based-standards] (PRIx64): Likewise.
7198         [C99-based-standards] (PRIX64): Likewise.
7199         [C99-based-standards] (SCNd64): Likewise.
7200         [C99-based-standards] (SCNi64): Likewise.
7201         [C99-based-standards] (SCNo64): Likewise.
7202         [C99-based-standards] (SCNu64): Likewise.
7203         [C99-based-standards] (SCNx64): Likewise.
7204         [C99-based-standards] (PRIdLEAST64): Likewise.
7205         [C99-based-standards] (PRIiLEAST64): Likewise.
7206         [C99-based-standards] (PRIoLEAST64): Likewise.
7207         [C99-based-standards] (PRIuLEAST64): Likewise.
7208         [C99-based-standards] (PRIxLEAST64): Likewise.
7209         [C99-based-standards] (PRIXLEAST64): Likewise.
7210         [C99-based-standards] (SCNdLEAST64): Likewise.
7211         [C99-based-standards] (SCNiLEAST64): Likewise.
7212         [C99-based-standards] (SCNoLEAST64): Likewise.
7213         [C99-based-standards] (SCNuLEAST64): Likewise.
7214         [C99-based-standards] (SCNxLEAST64): Likewise.
7215         [C99-based-standards] (PRIdFAST64): Likewise.
7216         [C99-based-standards] (PRIiFAST64): Likewise.
7217         [C99-based-standards] (PRIoFAST64): Likewise.
7218         [C99-based-standards] (PRIuFAST64): Likewise.
7219         [C99-based-standards] (PRIxFAST64): Likewise.
7220         [C99-based-standards] (PRIXFAST64): Likewise.
7221         [C99-based-standards] (SCNdFAST64): Likewise.
7222         [C99-based-standards] (SCNiFAST64): Likewise.
7223         [C99-based-standards] (SCNoFAST64): Likewise.
7224         [C99-based-standards] (SCNuFAST64): Likewise.
7225         [C99-based-standards] (SCNxFAST64): Likewise.
7226         [C99-based-standards] (PRIdMAX): Likewise.
7227         [C99-based-standards] (PRIiMAX): Likewise.
7228         [C99-based-standards] (PRIoMAX): Likewise.
7229         [C99-based-standards] (PRIuMAX): Likewise.
7230         [C99-based-standards] (PRIxMAX): Likewise.
7231         [C99-based-standards] (PRIXMAX): Likewise.
7232         [C99-based-standards] (SCNdMAX): Likewise.
7233         [C99-based-standards] (SCNiMAX): Likewise.
7234         [C99-based-standards] (SCNoMAX): Likewise.
7235         [C99-based-standards] (SCNuMAX): Likewise.
7236         [C99-based-standards] (SCNxMAX): Likewise.
7237         [C99-based-standards] (PRIdPTR): Likewise.
7238         [C99-based-standards] (PRIiPTR): Likewise.
7239         [C99-based-standards] (PRIoPTR): Likewise.
7240         [C99-based-standards] (PRIuPTR): Likewise.
7241         [C99-based-standards] (PRIxPTR): Likewise.
7242         [C99-based-standards] (PRIXPTR): Likewise.
7243         [C99-based-standards] (SCNdPTR): Likewise.
7244         [C99-based-standards] (SCNiPTR): Likewise.
7245         [C99-based-standards] (SCNoPTR): Likewise.
7246         [C99-based-standards] (SCNuPTR): Likewise.
7247         [C99-based-standards] (SCNxPTR): Likewise.
7248         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7249         allow.
7250         * conform/data/stdint.h-data: Update comments to clarify
7251         requirements.
7252         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7253         type.
7254         [C99-based standards] (INT8_MAX): Likewise.
7255         [C99-based standards] (INT16_MIN): Likewise.
7256         [C99-based standards] (INT16_MAX): Likewise.
7257         [C99-based standards] (INT32_MIN): Likewise.
7258         [C99-based standards] (INT32_MAX): Likewise.
7259         [C99-based standards] (INT64_MIN): Likewise.
7260         [C99-based standards] (INT64_MAX): Likewise.
7261         [C99-based standards] (UINT8_MAX): Likewise.
7262         [C99-based standards] (UINT16_MAX): Likewise.
7263         [C99-based standards] (UINT32_MAX): Likewise.
7264         [C99-based standards] (UINT64_MAX): Likewise.
7265         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7266         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7267         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7268         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7269         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7270         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7271         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7272         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7273         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7274         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7275         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7276         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7277         [C99-based standards] (INT_FAST8_MIN): Likewise.
7278         [C99-based standards] (INT_FAST8_MAX): Likewise.
7279         [C99-based standards] (INT_FAST16_MIN): Likewise.
7280         [C99-based standards] (INT_FAST16_MAX): Likewise.
7281         [C99-based standards] (INT_FAST32_MIN): Likewise.
7282         [C99-based standards] (INT_FAST32_MAX): Likewise.
7283         [C99-based standards] (INT_FAST64_MIN): Likewise.
7284         [C99-based standards] (INT_FAST64_MAX): Likewise.
7285         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7286         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7287         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7288         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7289         [C99-based standards] (INTPTR_MIN): Likewise.
7290         [C99-based standards] (INTPTR_MAX): Likewise.
7291         [C99-based standards] (UINTPTR_MAX): Likewise.
7292         [C99-based standards] (INTMAX_MIN): Likewise.
7293         [C99-based standards] (INTMAX_MAX): Likewise.
7294         [C99-based standards] (UINTMAX_MAX): Likewise.
7295         [C99-based standards] (PTRDIFF_MIN): Likewise.
7296         [C99-based standards] (PTRDIFF_MAX): Likewise.
7297         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7298         [C99-based standards] (SIZE_MAX): Likewise.
7299         [C99-based standards] (WCHAR_MAX): Likewise.
7300         [C99-based standards] (WINT_MAX): Likewise.
7301         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7302         constraint on value.
7303         [C99-based standards] (WCHAR_MIN): Likewise.
7304         [C99-based standards] (WINT_MIN): Likewise.
7305         [C99-based standards] (*_t): Allow.
7306         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7307         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7308         Include math.h-data and complex.h-data.  Remove all expectations
7309         of math.h and complex.h contents.
7310         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7311         at end of line.
7312         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7313         (struct tm): Expect tag.
7314         [C99-based-standards] (wcstof): Expect function.
7315         [C99-based-standards] (wcstold): Likewise.
7316         [C99-based-standards] (wcstoll): Likewise.
7317         [C99-based-standards] (wcstoull): Likewise.
7318         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7319         macro-int-constant.  Specify type.
7320         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7321         constraint on value.
7322         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7323         Specify type.
7324         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7325         Specify value.
7326         [ISO C standards]: Do not allow headers.
7327         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7328         wcs[abcdefghijklmnopqrstuvwxyz]*.
7329         [ISO C standards] (*_t): Do not allow.
7330         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7331         Expect function.
7332         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7333         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7334         Specify type.
7335         [ISO C standards]: Do not allow headers.
7336         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7337         is[abcdefghijklmnopqrstuvwxyz]*.
7338         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7339         to[abcdefghijklmnopqrstuvwxyz]*.
7340         [ISO C standards] (*_t): Do not allow.
7341         * conform/data/stdalign.h-data: New file.
7342         * conform/data/stdbool.h-data: Likewise.
7343         * conform/data/stdnoreturn.h-data: Likewise.
7344
7345 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7346
7347         [BZ #14815]
7348         * manual/filesys.texi (Directory Entries): Typo fix.
7349         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7350
7351 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7352
7353         * elf/elf.h (EM_AARCH64): New macro.
7354         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7355         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7356         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7357         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7358         (R_AARCH64_TLSDESC): Likewise.
7359         (NT_ARM_TLS): Likewise.
7360         (NT_ARM_HW_BREAK): Likewise.
7361         (NT_ARM_HW_WATCH): Likewise.
7362
7363 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7364
7365         [BZ #14811]
7366         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7367         (__ieee754_powl): Saturate nonzero exponents with absolute value
7368         below 0x1p-79 to +/- 0x1p-79.
7369         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7370         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7371         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7372         nonzero exponents with absolute value below 0x1p-32 to +/-
7373         0x1p-32.
7374         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7375         (__ieee754_powl): Saturate nonzero exponents with absolute value
7376         below 0x1p-79 to +/- 0x1p-79.
7377         * math/libm-test.inc (pow_test): Add more tests.
7378
7379 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7380
7381         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7382         _dl_s390_cap_flags with kernel. Increase string length.
7383         (_dl_s390_platforms): Add z196 and zEC12.
7384
7385 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7386
7387         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7388         Change XOPEN21K to XOPEN2K.
7389
7390 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7391
7392         * string/memmove.c: Use memcpy when possible.
7393
7394 2012-11-06  Andreas Jaeger  <aj@suse.de>
7395
7396         * po/eo.po: Update from translation team.
7397
7398 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7399
7400         [BZ #14793]
7401         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7402         exponent and small x and y exponents, scale x or y up.  Increase
7403         by 2 the exponent used in scaling up.
7404         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7405         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7406         * math/libm-test.inc (fma_test): Add more tests.
7407         (fma_test_towardzero): Likewise.
7408         (fma_test_downward): Likewise.
7409         (fma_test_upward): Likewise.
7410
7411 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7412
7413         [BZ #14805]
7414         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7415         fenv_t *.
7416
7417         [BZ #14801]
7418         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7419         namespace for names of struct fields.
7420         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7421         fenv_t fields.
7422         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7423         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7424
7425 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7426
7427         [BZ #3665]
7428         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7429
7430 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7431
7432         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7433         PTR_DEMANGLE.
7434
7435         [BZ #5246]
7436         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7437         PTR_DEMANGLE.
7438
7439 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7440
7441         [BZ #14797]
7442         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7443         definitely overflow as x * y not x * y + z.
7444         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7445         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7446         * math/libm-test.inc (fma_test): Add more tests.
7447         (fma_test_towardzero): Likewise.
7448         (fma_test_downward): Likewise.
7449         (fma_test_upward): Likewise.
7450
7451 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7452
7453         [BZ #157]
7454
7455         * include/stub-tag.h: Remove file.
7456         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7457         '#include' of it.
7458         * manual/maint.texi (Porting): Don't reference it.
7459         * Makerules ($(objpfx)stubs): Likewise.
7460         * dirent/closedir.c: Don't include <stub-tag.h>.
7461         * dirent/dirfd.c: Likewise.
7462         * dirent/fdopendir.c: Likewise.
7463         * dirent/getdents.c: Likewise.
7464         * dirent/getdents64.c: Likewise.
7465         * dirent/opendir.c: Likewise.
7466         * dirent/readdir.c: Likewise.
7467         * dirent/readdir64.c: Likewise.
7468         * dirent/readdir64_r.c: Likewise.
7469         * dirent/readdir_r.c: Likewise.
7470         * dirent/rewinddir.c: Likewise.
7471         * dirent/seekdir.c: Likewise.
7472         * dirent/telldir.c: Likewise.
7473         * gmon/profil.c: Likewise.
7474         * grp/setgroups.c: Likewise.
7475         * inet/if_index.c: Likewise.
7476         * io/access.c: Likewise.
7477         * io/chdir.c: Likewise.
7478         * io/chmod.c: Likewise.
7479         * io/chown.c: Likewise.
7480         * io/close.c: Likewise.
7481         * io/dup.c: Likewise.
7482         * io/dup2.c: Likewise.
7483         * io/dup3.c: Likewise.
7484         * io/euidaccess.c: Likewise.
7485         * io/faccessat.c: Likewise.
7486         * io/fchdir.c: Likewise.
7487         * io/fchmod.c: Likewise.
7488         * io/fchmodat.c: Likewise.
7489         * io/fchown.c: Likewise.
7490         * io/fchownat.c: Likewise.
7491         * io/fcntl.c: Likewise.
7492         * io/flock.c: Likewise.
7493         * io/fstatfs.c: Likewise.
7494         * io/fstatfs64.c: Likewise.
7495         * io/fstatvfs.c: Likewise.
7496         * io/fstatvfs64.c: Likewise.
7497         * io/futimens.c: Likewise.
7498         * io/fxstat.c: Likewise.
7499         * io/fxstat64.c: Likewise.
7500         * io/fxstatat.c: Likewise.
7501         * io/fxstatat64.c: Likewise.
7502         * io/getcwd.c: Likewise.
7503         * io/isatty.c: Likewise.
7504         * io/lchmod.c: Likewise.
7505         * io/lchown.c: Likewise.
7506         * io/link.c: Likewise.
7507         * io/linkat.c: Likewise.
7508         * io/lseek.c: Likewise.
7509         * io/lseek64.c: Likewise.
7510         * io/lxstat64.c: Likewise.
7511         * io/mkdir.c: Likewise.
7512         * io/mkdirat.c: Likewise.
7513         * io/mkfifo.c: Likewise.
7514         * io/mkfifoat.c: Likewise.
7515         * io/open.c: Likewise.
7516         * io/open64.c: Likewise.
7517         * io/openat.c: Likewise.
7518         * io/openat64.c: Likewise.
7519         * io/pipe.c: Likewise.
7520         * io/pipe2.c: Likewise.
7521         * io/poll.c: Likewise.
7522         * io/posix_fadvise.c: Likewise.
7523         * io/posix_fadvise64.c: Likewise.
7524         * io/posix_fallocate.c: Likewise.
7525         * io/posix_fallocate64.c: Likewise.
7526         * io/read.c: Likewise.
7527         * io/readlink.c: Likewise.
7528         * io/readlinkat.c: Likewise.
7529         * io/rmdir.c: Likewise.
7530         * io/sendfile.c: Likewise.
7531         * io/sendfile64.c: Likewise.
7532         * io/statfs.c: Likewise.
7533         * io/statfs64.c: Likewise.
7534         * io/statvfs.c: Likewise.
7535         * io/statvfs64.c: Likewise.
7536         * io/symlink.c: Likewise.
7537         * io/symlinkat.c: Likewise.
7538         * io/ttyname.c: Likewise.
7539         * io/ttyname_r.c: Likewise.
7540         * io/umask.c: Likewise.
7541         * io/unlink.c: Likewise.
7542         * io/unlinkat.c: Likewise.
7543         * io/utime.c: Likewise.
7544         * io/utimensat.c: Likewise.
7545         * io/write.c: Likewise.
7546         * io/xmknod.c: Likewise.
7547         * io/xmknodat.c: Likewise.
7548         * io/xstat.c: Likewise.
7549         * io/xstat64.c: Likewise.
7550         * login/getpt.c: Likewise.
7551         * login/grantpt.c: Likewise.
7552         * login/unlockpt.c: Likewise.
7553         * math/e_acoshl.c: Likewise.
7554         * math/e_acosl.c: Likewise.
7555         * math/e_asinl.c: Likewise.
7556         * math/e_atan2l.c: Likewise.
7557         * math/e_atanhl.c: Likewise.
7558         * math/e_coshl.c: Likewise.
7559         * math/e_expl.c: Likewise.
7560         * math/e_fmodl.c: Likewise.
7561         * math/e_gammal_r.c: Likewise.
7562         * math/e_hypotl.c: Likewise.
7563         * math/e_j0l.c: Likewise.
7564         * math/e_j1l.c: Likewise.
7565         * math/e_jnl.c: Likewise.
7566         * math/e_lgammal_r.c: Likewise.
7567         * math/e_log10l.c: Likewise.
7568         * math/e_log2l.c: Likewise.
7569         * math/e_logl.c: Likewise.
7570         * math/e_powl.c: Likewise.
7571         * math/e_rem_pio2l.c: Likewise.
7572         * math/e_sinhl.c: Likewise.
7573         * math/e_sqrtl.c: Likewise.
7574         * math/fclrexcpt.c: Likewise.
7575         * math/fedisblxcpt.c: Likewise.
7576         * math/feenablxcpt.c: Likewise.
7577         * math/fegetenv.c: Likewise.
7578         * math/fegetexcept.c: Likewise.
7579         * math/fegetround.c: Likewise.
7580         * math/feholdexcpt.c: Likewise.
7581         * math/fesetenv.c: Likewise.
7582         * math/fesetround.c: Likewise.
7583         * math/feupdateenv.c: Likewise.
7584         * math/fgetexcptflg.c: Likewise.
7585         * math/fraiseexcpt.c: Likewise.
7586         * math/fsetexcptflg.c: Likewise.
7587         * math/ftestexcept.c: Likewise.
7588         * math/k_cosl.c: Likewise.
7589         * math/k_rem_pio2l.c: Likewise.
7590         * math/k_sinl.c: Likewise.
7591         * math/k_tanl.c: Likewise.
7592         * math/s_asinhl.c: Likewise.
7593         * math/s_atanl.c: Likewise.
7594         * math/s_cbrtl.c: Likewise.
7595         * math/s_erfl.c: Likewise.
7596         * math/s_expm1l.c: Likewise.
7597         * math/s_log1pl.c: Likewise.
7598         * math/s_tanhl.c: Likewise.
7599         * misc/acct.c: Likewise.
7600         * misc/brk.c: Likewise.
7601         * misc/chflags.c: Likewise.
7602         * misc/chroot.c: Likewise.
7603         * misc/fchflags.c: Likewise.
7604         * misc/fgetxattr.c: Likewise.
7605         * misc/flistxattr.c: Likewise.
7606         * misc/fremovexattr.c: Likewise.
7607         * misc/fsetxattr.c: Likewise.
7608         * misc/fsync.c: Likewise.
7609         * misc/ftruncate.c: Likewise.
7610         * misc/futimes.c: Likewise.
7611         * misc/futimesat.c: Likewise.
7612         * misc/getdomain.c: Likewise.
7613         * misc/getdtsz.c: Likewise.
7614         * misc/gethostid.c: Likewise.
7615         * misc/gethostname.c: Likewise.
7616         * misc/getloadavg.c: Likewise.
7617         * misc/getpagesize.c: Likewise.
7618         * misc/getsysstats.c: Likewise.
7619         * misc/getxattr.c: Likewise.
7620         * misc/gtty.c: Likewise.
7621         * misc/ioctl.c: Likewise.
7622         * misc/lgetxattr.c: Likewise.
7623         * misc/listxattr.c: Likewise.
7624         * misc/llistxattr.c: Likewise.
7625         * misc/lremovexattr.c: Likewise.
7626         * misc/lsetxattr.c: Likewise.
7627         * misc/lutimes.c: Likewise.
7628         * misc/madvise.c: Likewise.
7629         * misc/mincore.c: Likewise.
7630         * misc/mlock.c: Likewise.
7631         * misc/mlockall.c: Likewise.
7632         * misc/mmap.c: Likewise.
7633         * misc/mprotect.c: Likewise.
7634         * misc/msync.c: Likewise.
7635         * misc/munlock.c: Likewise.
7636         * misc/munlockall.c: Likewise.
7637         * misc/munmap.c: Likewise.
7638         * misc/preadv.c: Likewise.
7639         * misc/preadv64.c: Likewise.
7640         * misc/ptrace.c: Likewise.
7641         * misc/pwritev.c: Likewise.
7642         * misc/pwritev64.c: Likewise.
7643         * misc/readv.c: Likewise.
7644         * misc/reboot.c: Likewise.
7645         * misc/remap_file_pages.c: Likewise.
7646         * misc/removexattr.c: Likewise.
7647         * misc/revoke.c: Likewise.
7648         * misc/select.c: Likewise.
7649         * misc/setdomain.c: Likewise.
7650         * misc/setegid.c: Likewise.
7651         * misc/seteuid.c: Likewise.
7652         * misc/sethostid.c: Likewise.
7653         * misc/sethostname.c: Likewise.
7654         * misc/setregid.c: Likewise.
7655         * misc/setreuid.c: Likewise.
7656         * misc/setxattr.c: Likewise.
7657         * misc/sstk.c: Likewise.
7658         * misc/stty.c: Likewise.
7659         * misc/swapoff.c: Likewise.
7660         * misc/swapon.c: Likewise.
7661         * misc/sync.c: Likewise.
7662         * misc/syncfs.c: Likewise.
7663         * misc/syscall.c: Likewise.
7664         * misc/truncate.c: Likewise.
7665         * misc/ualarm.c: Likewise.
7666         * misc/usleep.c: Likewise.
7667         * misc/ustat.c: Likewise.
7668         * misc/utimes.c: Likewise.
7669         * misc/vhangup.c: Likewise.
7670         * misc/writev.c: Likewise.
7671         * posix/_exit.c: Likewise.
7672         * posix/alarm.c: Likewise.
7673         * posix/execve.c: Likewise.
7674         * posix/fexecve.c: Likewise.
7675         * posix/fork.c: Likewise.
7676         * posix/fpathconf.c: Likewise.
7677         * posix/getaddrinfo.c: Likewise.
7678         * posix/getegid.c: Likewise.
7679         * posix/geteuid.c: Likewise.
7680         * posix/getgid.c: Likewise.
7681         * posix/getgroups.c: Likewise.
7682         * posix/getlogin.c: Likewise.
7683         * posix/getlogin_r.c: Likewise.
7684         * posix/getpgid.c: Likewise.
7685         * posix/getpid.c: Likewise.
7686         * posix/getppid.c: Likewise.
7687         * posix/getresgid.c: Likewise.
7688         * posix/getresuid.c: Likewise.
7689         * posix/getsid.c: Likewise.
7690         * posix/getuid.c: Likewise.
7691         * posix/glob64.c: Likewise.
7692         * posix/nanosleep.c: Likewise.
7693         * posix/pathconf.c: Likewise.
7694         * posix/pause.c: Likewise.
7695         * posix/posix_madvise.c: Likewise.
7696         * posix/pread.c: Likewise.
7697         * posix/pread64.c: Likewise.
7698         * posix/pwrite.c: Likewise.
7699         * posix/pwrite64.c: Likewise.
7700         * posix/sched_getaffinity.c: Likewise.
7701         * posix/sched_getp.c: Likewise.
7702         * posix/sched_gets.c: Likewise.
7703         * posix/sched_primax.c: Likewise.
7704         * posix/sched_primin.c: Likewise.
7705         * posix/sched_rr_gi.c: Likewise.
7706         * posix/sched_setaffinity.c: Likewise.
7707         * posix/sched_setp.c: Likewise.
7708         * posix/sched_sets.c: Likewise.
7709         * posix/sched_yield.c: Likewise.
7710         * posix/setgid.c: Likewise.
7711         * posix/setlogin.c: Likewise.
7712         * posix/setpgid.c: Likewise.
7713         * posix/setresgid.c: Likewise.
7714         * posix/setresuid.c: Likewise.
7715         * posix/setsid.c: Likewise.
7716         * posix/setuid.c: Likewise.
7717         * posix/sleep.c: Likewise.
7718         * posix/spawni.c: Likewise.
7719         * posix/sysconf.c: Likewise.
7720         * posix/times.c: Likewise.
7721         * posix/wait.c: Likewise.
7722         * posix/wait3.c: Likewise.
7723         * posix/wait4.c: Likewise.
7724         * posix/waitpid.c: Likewise.
7725         * resolv/gai_sigqueue.c: Likewise.
7726         * resource/getpriority.c: Likewise.
7727         * resource/getrlimit.c: Likewise.
7728         * resource/getrusage.c: Likewise.
7729         * resource/nice.c: Likewise.
7730         * resource/setpriority.c: Likewise.
7731         * resource/setrlimit.c: Likewise.
7732         * resource/ulimit.c: Likewise.
7733         * rt/aio_cancel.c: Likewise.
7734         * rt/aio_fsync.c: Likewise.
7735         * rt/aio_read.c: Likewise.
7736         * rt/aio_sigqueue.c: Likewise.
7737         * rt/aio_suspend.c: Likewise.
7738         * rt/aio_write.c: Likewise.
7739         * rt/clock_getres.c: Likewise.
7740         * rt/clock_gettime.c: Likewise.
7741         * rt/clock_nanosleep.c: Likewise.
7742         * rt/clock_settime.c: Likewise.
7743         * rt/lio_listio.c: Likewise.
7744         * rt/mq_close.c: Likewise.
7745         * rt/mq_getattr.c: Likewise.
7746         * rt/mq_notify.c: Likewise.
7747         * rt/mq_open.c: Likewise.
7748         * rt/mq_receive.c: Likewise.
7749         * rt/mq_send.c: Likewise.
7750         * rt/mq_setattr.c: Likewise.
7751         * rt/mq_timedreceive.c: Likewise.
7752         * rt/mq_timedsend.c: Likewise.
7753         * rt/mq_unlink.c: Likewise.
7754         * rt/shm_open.c: Likewise.
7755         * rt/shm_unlink.c: Likewise.
7756         * rt/timer_create.c: Likewise.
7757         * rt/timer_delete.c: Likewise.
7758         * rt/timer_getoverr.c: Likewise.
7759         * rt/timer_gettime.c: Likewise.
7760         * rt/timer_settime.c: Likewise.
7761         * setjmp/__longjmp.c: Likewise.
7762         * setjmp/setjmp.c: Likewise.
7763         * signal/kill.c: Likewise.
7764         * signal/killpg.c: Likewise.
7765         * signal/raise.c: Likewise.
7766         * signal/sigaction.c: Likewise.
7767         * signal/sigaltstack.c: Likewise.
7768         * signal/sigblock.c: Likewise.
7769         * signal/sigignore.c: Likewise.
7770         * signal/sigintr.c: Likewise.
7771         * signal/signal.c: Likewise.
7772         * signal/sigpause.c: Likewise.
7773         * signal/sigpending.c: Likewise.
7774         * signal/sigqueue.c: Likewise.
7775         * signal/sigreturn.c: Likewise.
7776         * signal/sigset.c: Likewise.
7777         * signal/sigsetmask.c: Likewise.
7778         * signal/sigstack.c: Likewise.
7779         * signal/sigsuspend.c: Likewise.
7780         * signal/sigtimedwait.c: Likewise.
7781         * signal/sigvec.c: Likewise.
7782         * signal/sigwait.c: Likewise.
7783         * signal/sigwaitinfo.c: Likewise.
7784         * signal/sysv_signal.c: Likewise.
7785         * socket/accept.c: Likewise.
7786         * socket/accept4.c: Likewise.
7787         * socket/bind.c: Likewise.
7788         * socket/connect.c: Likewise.
7789         * socket/getpeername.c: Likewise.
7790         * socket/getsockname.c: Likewise.
7791         * socket/getsockopt.c: Likewise.
7792         * socket/isfdtype.c: Likewise.
7793         * socket/listen.c: Likewise.
7794         * socket/recv.c: Likewise.
7795         * socket/recvfrom.c: Likewise.
7796         * socket/recvmsg.c: Likewise.
7797         * socket/send.c: Likewise.
7798         * socket/sendmsg.c: Likewise.
7799         * socket/sendto.c: Likewise.
7800         * socket/setsockopt.c: Likewise.
7801         * socket/shutdown.c: Likewise.
7802         * socket/sockatmark.c: Likewise.
7803         * socket/socket.c: Likewise.
7804         * socket/socketpair.c: Likewise.
7805         * stdio-common/ctermid.c: Likewise.
7806         * stdio-common/cuserid.c: Likewise.
7807         * stdio-common/remove.c: Likewise.
7808         * stdio-common/rename.c: Likewise.
7809         * stdio-common/renameat.c: Likewise.
7810         * stdio-common/tempname.c: Likewise.
7811         * stdlib/getcontext.c: Likewise.
7812         * stdlib/makecontext.c: Likewise.
7813         * stdlib/setcontext.c: Likewise.
7814         * stdlib/swapcontext.c: Likewise.
7815         * stdlib/system.c: Likewise.
7816         * streams/fattach.c: Likewise.
7817         * streams/fdetach.c: Likewise.
7818         * streams/getmsg.c: Likewise.
7819         * streams/getpmsg.c: Likewise.
7820         * streams/putmsg.c: Likewise.
7821         * streams/putpmsg.c: Likewise.
7822         * sysdeps/unix/bsd/getpt.c: Likewise.
7823         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7824         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7825         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7827         Likewise.
7828         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7829         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7830         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7831         * sysvipc/msgctl.c: Likewise.
7832         * sysvipc/msgget.c: Likewise.
7833         * sysvipc/msgrcv.c: Likewise.
7834         * sysvipc/msgsnd.c: Likewise.
7835         * sysvipc/semctl.c: Likewise.
7836         * sysvipc/semget.c: Likewise.
7837         * sysvipc/semop.c: Likewise.
7838         * sysvipc/semtimedop.c: Likewise.
7839         * sysvipc/shmat.c: Likewise.
7840         * sysvipc/shmctl.c: Likewise.
7841         * sysvipc/shmdt.c: Likewise.
7842         * sysvipc/shmget.c: Likewise.
7843         * termios/tcdrain.c: Likewise.
7844         * termios/tcflow.c: Likewise.
7845         * termios/tcflush.c: Likewise.
7846         * termios/tcgetattr.c: Likewise.
7847         * termios/tcgetpgrp.c: Likewise.
7848         * termios/tcsendbrk.c: Likewise.
7849         * termios/tcsetattr.c: Likewise.
7850         * termios/tcsetpgrp.c: Likewise.
7851         * time/adjtime.c: Likewise.
7852         * time/clock.c: Likewise.
7853         * time/getitimer.c: Likewise.
7854         * time/gettimeofday.c: Likewise.
7855         * time/setitimer.c: Likewise.
7856         * time/settimeofday.c: Likewise.
7857         * time/stime.c: Likewise.
7858         * time/time.c: Likewise.
7859
7860 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7861
7862         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7863         /usr/old/bin.
7864
7865         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7866         instead of spaces.
7867         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7868
7869 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7870
7871         [BZ #14796]
7872         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7873         FE_TONEAREST before applying Dekker multiplication and Knuth
7874         addition.  Clear inexact exceptions and check for exact zero
7875         results afterwards.
7876         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7877         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7878         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7879         * math/libm-test.inc (fma_test): Add more tests.
7880         (fma_test_towardzero): Likewise.
7881         (fma_test_downward): Likewise.
7882         (fma_test_upward): Likewise.
7883         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7884         function.
7885         (libc_fesetround): New macro.
7886         (libc_fesetroundf): Likewise.
7887         (libc_fesetroundl): Likewise.
7888         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7889         function.
7890         (libc_fesetround_387): Likewise.
7891         (libc_fesetroundf): New macro.
7892         (libc_fesetround): Likewise.
7893         (libc_fesetroundl): Likewise.
7894         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7895         function.
7896         (libc_fesetroundf): New macro.
7897         (libc_fesetround): Likewise.
7898         (libc_fesetroundl): Likewise.
7899         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7900         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7901         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7902         libm_hidden_ver.
7903         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7904         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7905         libm_hidden_def.
7906         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7907         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7908         libm_hidden_ver.
7909         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7910         libm_hidden_def.
7911
7912         [BZ #3439]
7913         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7914         integer constant usable in #if and use that to give value to enum
7915         constant.
7916         (FE_DIVBYZERO): Likewise.
7917         (FE_UNDERFLOW): Likewise.
7918         (FE_OVERFLOW): Likewise.
7919         (FE_INVALID): Likewise.
7920         (FE_INVALID_SNAN): Likewise.
7921         (FE_INVALID_ISI): Likewise.
7922         (FE_INVALID_IDI): Likewise.
7923         (FE_INVALID_ZDZ): Likewise.
7924         (FE_INVALID_IMZ): Likewise.
7925         (FE_INVALID_COMPARE): Likewise.
7926         (FE_INVALID_SOFTWARE): Likewise.
7927         (FE_INVALID_SQRT): Likewise.
7928         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7929         (FE_TONEAREST): Likewise.
7930         (FE_TOWARDZERO): Likewise.
7931         (FE_UPWARD): Likewise.
7932         (FE_DOWNWARD): Likewise.
7933         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7934         (FE_DIVBYZERO): Likewise.
7935         (FE_OVERFLOW): Likewise.
7936         (FE_UNDERFLOW): Likewise.
7937         (FE_INEXACT): Likewise.
7938         (FE_TONEAREST): Likewise.
7939         (FE_DOWNWARD): Likewise.
7940         (FE_UPWARD): Likewise.
7941         (FE_TOWARDZERO): Likewise.
7942         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7943         (FE_UNDERFLOW): Likewise.
7944         (FE_OVERFLOW): Likewise.
7945         (FE_DIVBYZERO): Likewise.
7946         (FE_INVALID): Likewise.
7947         (FE_TONEAREST): Likewise.
7948         (FE_TOWARDZERO): Likewise.
7949         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7950         (FE_OVERFLOW): Likewise.
7951         (FE_UNDERFLOW): Likewise.
7952         (FE_DIVBYZERO): Likewise.
7953         (FE_INEXACT): Likewise.
7954         (FE_TONEAREST): Likewise.
7955         (FE_TOWARDZERO): Likewise.
7956         (FE_UPWARD): Likewise.
7957         (FE_DOWNWARD): Likewise.
7958         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7959         (FE_DIVBYZERO): Likewise.
7960         (FE_OVERFLOW): Likewise.
7961         (FE_UNDERFLOW): Likewise.
7962         (FE_INEXACT): Likewise.
7963         (FE_TONEAREST): Likewise.
7964         (FE_DOWNWARD): Likewise.
7965         (FE_UPWARD): Likewise.
7966         (FE_TOWARDZERO): Likewise.
7967
7968 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7969
7970         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7971
7972 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7973
7974         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7975         commands.  Quote $PWD.
7976         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7977         -x" by "export".
7978         (remove_newlines): Remove.
7979
7980 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7981
7982         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7983         * stdlib/stdlib.h (atof): Moved to ...
7984         * include/bits/stdlib-float.h: Here.  New file.
7985         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7986         * stdlib/bits/stdlib-float.h: New file.
7987         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7988         -mno-sse -mno-mmx.
7989         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7990         <xmmintrin.h>.
7991
7992 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * conform/conformtest.pl (@headers): Add fenv.h.
7995         * conform/data/fenv.h-data: New file.
7996         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7997         include of <math/fenv.h>.
7998
7999         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8000         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8001         && !UNIX98].  Enables tests for XOPEN2K8.
8002         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8003         POSIX2008]: Likewise.
8004
8005         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8006         (struct rusage): Do not expect type or its members.
8007
8008         [BZ #3439]
8009         * math/math.h (FP_NAN): Define macro to integer constant usable in
8010         #if and use that to give value to enum constant.
8011         (FP_INFINITE): Likewise.
8012         (FP_ZERO): Likewise.
8013         (FP_SUBNORMAL): Likewise.
8014         (FP_NORMAL): Likewise.
8015
8016 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8017
8018         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8019         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8020         arguments.
8021
8022 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8023
8024         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8025         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8026         autoconf-time if not.
8027         * configure.in: Remove AC_PREREQ.
8028
8029 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8030
8031         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8032         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8033         of the internal implementation.
8034
8035 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8036
8037         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8038         except include of <misc/sys/syslog.h>.
8039
8040 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8041
8042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8043         function returns with a NULL context exit with zero.
8044
8045 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8046
8047         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8048
8049 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8050
8051         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8052         (run_program_cmd): This.
8053         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8054         (tst_langinfo): New variable.  Use it.
8055
8056 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8057
8058         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8059         floating point opcodes.
8060
8061 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8062
8063         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8064         variable.
8065
8066         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8067
8068         * sysdeps/mach/hurd/powerpc: Remove directory.
8069         * sysdeps/mach/powerpc: Likewise.
8070
8071 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8072
8073         * scripts/check-local-headers.sh: Ignore c++ headers.
8074
8075 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8076
8077         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8078         __libc_cleanup_region_start argument.
8079
8080 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8081
8082         [BZ #14784]
8083         [BZ #14785]
8084         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8085         x * y using scaling, not as x * y + z.
8086         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8087         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8088         * math/libm-test.inc (fma_test): Add more tests.
8089         (fma_test_towardzero): Likewise.
8090         (fma_test_downward): Likewise.
8091         (fma_test_upward): Likewise.
8092
8093 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8094
8095         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8096
8097 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8098
8099         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8100         New variable.
8101
8102 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8103
8104         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8105
8106 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8107
8108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8109         Fix sort order.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8111         Likewise.
8112
8113 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8114
8115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8116         Fix the order of the list for glibc 2.17.
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8118         Likewise.
8119
8120 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8121
8122         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8123
8124 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8125
8126         [BZ #14610]
8127         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8128         for low part of x being zero before using __atanl (y).
8129         * math/libm-test.inc (atan2_test): Add another test.
8130
8131         * manual/install.texi (Configuring and compiling): Document
8132         general use of test-wrapper and test-wrapper-env.
8133         * INSTALL: Regenerated.
8134
8135         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8136         (__fma): Do not extract and scale down low bits on after-rounding
8137         systems when result rounded to normal precision would have normal
8138         exponent.
8139         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8140         (__fmal): Do not extract and scale down low bits on after-rounding
8141         systems when result rounded to normal precision would have normal
8142         exponent.
8143         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8144         (__fmal): Do not extract and scale down low bits on after-rounding
8145         systems when result rounded to normal precision would have normal
8146         exponent.
8147         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8148         macro.
8149         (fma_test): Add more tests.
8150         (fma_test_towardzero): Likewise.
8151         (fma_test_downward): Likewise.
8152         (fma_test_upward): Likewise.
8153
8154 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8155
8156         * sysdeps/i386/tininess.h: Renamed to ...
8157         * sysdeps/x86/tininess.h: This.
8158         * sysdeps/x86_64/tininess.h: Removed.
8159
8160 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8161
8162         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8163         input.  Use $(build-program-cmd).
8164         ($(objpfx)tst-array1-static.out): Likewise.
8165         ($(objpfx)tst-array2.out): Likewise.
8166         ($(objpfx)tst-array3.out): Likewise.
8167         ($(objpfx)tst-array4.out): Likewise.
8168         ($(objpfx)tst-array5.out): Likewise.
8169         ($(objpfx)tst-array5-static.out): Likewise.
8170
8171 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8172
8173         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8174         if defined.
8175
8176         * nss/nsswitch.h (nss_interface_function): Provide new
8177         macro for use with NSS functions.
8178         * grp/initgroups.c: Use new macro.
8179         * nss/getXXbyYY.c: Likewise.
8180         * nss/getXXbyYY_r.c: Likewise.
8181         * nss/getXXent.c: Likewise.
8182         * nss/getXXent_r.c: Likewise.
8183         * sysdeps/posix/getaddrinfo.c: Likewise.
8184
8185 2012-10-30  Andreas Jaeger  <aj@suse.de>
8186
8187         * po/ru.po: Update Russion translation from translation project.
8188
8189 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8190
8191         [BZ #14152]
8192         [BZ #14783]
8193         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8194         result and shift together with sticky bit instead of replicating
8195         round-to-nearest rounding.
8196         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8197         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8198         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8199         missing underflow exceptions.
8200         (fma_test_towardzero): Add more tests.
8201         (fma_test_downward): Likewise.
8202         (fma_test_upward): Likewise.
8203
8204         [BZ #14047]
8205         * sysdeps/generic/tininess.h: New file.
8206         * sysdeps/i386/tininess.h: Likewise.
8207         * sysdeps/sh/tininess.h: Likewise.
8208         * sysdeps/x86_64/tininess.h: Likewise.
8209         * stdlib/tst-strtod-underflow.c: Likewise.
8210         * stdlib/tst-tininess.c: Likewise.
8211         * stdlib/strtod_l.c: Include <tininess.h>.
8212         (round_and_return): Do not set errno for exact underflow cases.
8213         Force an underflow exception when setting errno for underflow.
8214         Determine underflow based on rounding to normal precision if
8215         TININESS_AFTER_ROUNDING.
8216         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8217         ERANGE for exact underflow cases.
8218         * stdlib/Makefile (tests): Add tst-tininess and
8219         tst-strtod-underflow.
8220         ($(objpfx)tst-tininess): Use $(link-libm).
8221         ($(objpfx)tst-strtod-underflow): Likewise.
8222
8223 2012-10-30  Andreas Jaeger  <aj@suse.de>
8224
8225         [BZ#14767]
8226         * elf/Makefile (tests): Remove conditional for have-initfini-array
8227         since this is now always required and the variable does not exist
8228         anymore.
8229         (tests-static): Likewise.
8230         (modules-names): Likewise.
8231
8232         * po/eo.po: Add Esperanto translation from translation project.
8233
8234         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8235         merged with constructor/destructor.
8236         (init_array): Likewise.
8237         * elf/tst-array2dep.c (fini_array): Likewise.
8238         (init_array): Likewise.
8239
8240 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8241
8242         * manual/message.texi: Delete @cartouche tags.
8243
8244 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8245
8246         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8247         EOPNOTSUPP.
8248         * sysdeps/mach/hurd/fsync.c: Likewise.
8249
8250         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8251         [_POSIX_REALTIME_SIGNALS]: Change condition to
8252         [_POSIX_REALTIME_SIGNALS > 0].
8253
8254 2012-10-27  Andreas Jaeger  <aj@suse.de>
8255
8256         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8257         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8258         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8259         [__WORDSIZE != 64]: Likewise.
8260
8261 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8262
8263         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8264         *  iconvdata/tst-tables.sh: Likewise.
8265
8266 2012-10-25  David S. Miller  <davem@davemloft.net>
8267
8268         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8269         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8270         of strtoull.
8271
8272         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8273         ifunc-impl-list.c
8274         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8275         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8276         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8277         file.
8278
8279 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8280
8281         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8282         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8283         __getdirentries.
8284
8285 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8286             Jim Blandy  <jimb@codesourcery.com>
8287
8288         * scripts/cross-test-ssh.sh: New file.
8289         * manual/install.texi (Configuring and compiling): Document use of
8290         cross-test-ssh.sh.
8291         * INSTALL: Regenerated.
8292
8293 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8294
8295         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8296         EOPNOTSUPP.
8297
8298 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8299
8300         * Makeconfig (run-program-prefix): Fix comment.
8301
8302 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8303             Jim Blandy  <jimb@codesourcery.com>
8304
8305         * Makeconfig (test-wrapper): New variable,
8306         (test-wrapper-env): Likewise.
8307         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8308         (run-built-tests): Define to yes.
8309         (run-program-prefix): Use $(test-wrapper).
8310         (built-program-cmd): Likewise.
8311         * Rules (make-test-out): Use $(test-wrapper-env) and
8312         $(host-built-program-cmd).
8313         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8314         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8315         tst-pathopt.sh.
8316         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8317         $(test-wrapper-env) to tst-rtld-load-self.sh.
8318         ($(objpfx)order2.out): Use $(test-wrapper).
8319         ($(objpfx)tst-initorder.out): Likewise.
8320         ($(objpfx)tst-initorder2.out): Likewise.
8321         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8322         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8323         (test_wrapper_env): New variable.  Use it to run ld.so.
8324         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8325         Use it to run ld.so.
8326         (test_wrapper_env): Likewise.
8327         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8328         $(test-wrapper) to run-iconv-test.sh.
8329         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8330         (ICONV): Use $test_wrapper.
8331         * posix/Makefile ($(objpfx)globtest.out): Pass
8332         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8333         globtest.sh, not $(run-program-prefix).
8334         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8335         (test_wrapper): Likewise.
8336         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8337         set together with run_via_rtld_prefix.
8338         (run_program_prefix): Define in terms of test_wrapper and
8339         run_via_rtld_prefix.
8340
8341 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8342
8343         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8344         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8345         Targets removed.
8346
8347         [BZ #14743]
8348         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8349         Declare __clock_getres, __clock_gettime, __clock_settime,
8350         __clock_nanosleep, and __clock_getcpuclockid.
8351         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8352         Remove librt_hidden_def (clock_gettime).
8353         * sysdeps/unix/clock_gettime.c: Likewise.
8354         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8355         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8356         * rt/clock_getres.c: Define __clock_getres as an alias.
8357         * sysdeps/posix/clock_getres.c: Likewise.
8358         * rt/clock_settime.c: Define __clock_settime as an alias.
8359         * sysdeps/unix/clock_settime.c: Likewise.
8360         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8361         * sysdeps/unix/clock_nanosleep.c: Likewise.
8362         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8363         * rt/clock-compat.c: New file.
8364         * rt/Makefile (librt-routines): Add clock-compat and move
8365         $(clock-routines) to ...
8366         (routines): ... here, new variable.
8367         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8368         Don't add get_clockfreq here.
8369         * rt/Versions (libc: GLIBC_2.17): New version set.
8370         Add clock_* symbols here.
8371         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8372         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8373         (GLIBC_2.17): Add clock_* symbols.
8374         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8375         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8376         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8378         Likewise.
8379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8380         Likewise.
8381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8382         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8384         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8385         * NEWS: Mention the move.
8386
8387         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8388         Use __open, __read, __close rather than their public counterparts.
8389         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8390         (__get_clockfreq_via_cpuinfo): Likewise.
8391         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8392         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8393
8394         * config.h.in (HAVE_IFUNC): New #undef.
8395         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8396         was successful.
8397         * configure: Regenerated.
8398
8399 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8400
8401         * configure.in: Move READELF check to start of file.
8402         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8403         libc_cv_asm_gnu_indirect_function in the process.
8404         * configure: Regenerated.
8405
8406 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8407
8408         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8409         send the output to /dev/null.
8410         (libc_cv_cc_with_libunwind): Likewise.
8411         (libc_cv_as_noexecstack): Likewise.
8412         * configure: Regenerate.
8413
8414 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8415
8416         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8417
8418         * posix/globtest.sh (TMPDIR): Do not set.
8419         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8420         (testout): Likewise.
8421
8422 2012-10-24  Andreas Jaeger  <aj@suse.de>
8423
8424         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8425         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8426         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8427         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8428         posix_fadvise64, posix_fallocate64.
8429
8430         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8431         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8432         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8433         Likewise.
8434         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8435         Likewise.
8436         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8437
8438         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8439         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8440         <bits/fcntl-linux.h>.
8441         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8442
8443         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8444         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8445         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8446         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8447         [__WORDSIZE != 64]: Likewise.
8448
8449 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8450
8451         * Makeconfig (run-built-tests): New variable.
8452         * Rules [$(cross-compiling) = yes]: Change condition to
8453         [$(run-built-tests) = no].
8454         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8455         to [$(run-built-tests) = yes].
8456         * elf/Makefile [$(cross-compiling) = no]: Likewise
8457         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8458         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8459         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8460         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8461         * io/Makefile [$(cross-compiling) = no]: Likewise.
8462         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8463         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8464         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8465         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8466         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8467         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8468         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8469         * string/Makefile [$(cross-compiling) = no]: Likewise.
8470
8471         * posix/Makefile ($(objpfx)globtest.out): Pass
8472         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8473         $(rtld-installed-name).
8474         * posix/globtest.sh (elf_objpfx): Remove variable.
8475         (rtld_installed_name): Likewise.
8476         (library_path): Likewise.
8477         (run_program_prefix): New variable.  Use for running globtest
8478         binary.
8479
8480 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8481             Joseph Myers  <joseph@codesourcery.com>
8482
8483         * Makeconfig (host-built-program-cmd): New variable.
8484         * elf/Makefile (tst-stackguard1-ARGS): Use
8485         $(host-built-program-cmd).
8486         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8487         (tst-spawn-ARGS): Likewise.
8488         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8489
8490 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8491             Jim Blandy  <jimb@codesourcery.com>
8492
8493         * Makeconfig (run-via-rtld-prefix): New variable.
8494         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8495         (built-program-cmd): Likewise.
8496
8497 2012-10-22  Andreas Jaeger  <aj@suse.de>
8498
8499         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8500         __O_RSYNC if it exists, otherwise to O_SYNC.
8501
8502 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8503             Joseph Myers  <joseph@codesourcery.com>
8504
8505         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8506         /dev/null.
8507         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8508         from /dev/null
8509         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8510         /dev/null.
8511
8512 2012-10-22  Andreas Jaeger  <aj@suse.de>
8513
8514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8515         Define always.
8516         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8517
8518         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8519         bits/fcntl-linux.h.
8520
8521         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8522         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8523
8524         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8525         to __O_LARGEFILE.
8526         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8527         to __O_LARGEFILE.
8528
8529 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8530             Joseph Myers  <joseph@codesourcery.com>
8531
8532         * config.make.in (NM): New variable.
8533
8534 2012-10-21  Andreas Jaeger  <aj@suse.de>
8535
8536         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8537         definitions and declarations that are provided by
8538         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8539
8540 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8541
8542         [BZ #14683]
8543         * elf/Makefile (tests-static): Add tst-leaks1-static.
8544         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8545         ($(objpfx)tst-leaks1-static): New rule.
8546         ($(objpfx)tst-leaks1-static-mem): Likewise.
8547         (tst-leaks1-static-ENV): New macro.
8548         * elf/dl-open.c (dl_open_worker): Check the main application
8549         only if SHARED is defined.
8550         * elf/tst-leaks1-static.c: New file.
8551
8552 2012-10-20  Andreas Jaeger  <aj@suse.de>
8553
8554         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8555         generic values for Linux.
8556         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8557         and declarations that are provided by <bits/fcntl-linux.h> and
8558         include <bits/fcntl-linux.h>.
8559         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8560         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8561
8562 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8563
8564         * io/fcntl.h: Move include of <bits/types.h> to the top and
8565         include it unconditionally.
8566
8567 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8568
8569         * wcsmbs/Makefile (tests-ifunc): New variable.
8570         (tests): Add $(tests-ifunc).
8571         * wcsmbs/test-wcschr-ifunc.c: New file.
8572         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8573         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8574         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8575         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8576         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8577
8578         * string/Makefile (tests-ifunc): New variable.
8579         (tests): Add $(tests-ifunc).
8580         * string/test-memccpy.c (TEST_NAME): New macro.
8581         * string/test-memchr.c (TEST_NAME): Likewise.
8582         * string/test-memcmp.c (TEST_NAME): Likewise.
8583         * string/test-memcpy.c (TEST_NAME): Likewise.
8584         * string/test-memmem.c (TEST_NAME): Likewise.
8585         * string/test-memmove.c (TEST_NAME): Likewise.
8586         * string/test-memset.c (TEST_NAME): Likewise.
8587         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8588         * string/test-stpcpy.c (TEST_NAME): Likewise.
8589         * string/test-stpncpy.c (TEST_NAME): Likewise.
8590         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8591         * string/test-strcasestr.c (TEST_NAME): Likewise.
8592         * string/test-strcat.c (TEST_NAME): Likewise.
8593         * string/test-strchr.c (TEST_NAME): Likewise.
8594         * string/test-strcmp.c(TEST_NAME): Likewise.
8595         * string/test-strcpy.c (TEST_NAME): Likewise.
8596         * string/test-strcspn.c (TEST_NAME): Likewise.
8597         * string/test-strlen.c (TEST_NAME): Likewise.
8598         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8599         * string/test-strncmp.c (TEST_NAME): Likewise.
8600         * string/test-strncpy.c (TEST_NAME): Likewise.
8601         * string/test-strnlen.c (TEST_NAME): Likewise.
8602         * string/test-strpbrk.c (TEST_NAME): Likewise.
8603         * string/test-strrchr.c (TEST_NAME): Likewise.
8604         * string/test-strspn.c (TEST_NAME): Likewise.
8605         * string/test-strstr.c (TEST_NAME): Likewise.
8606         * string/test-bcopy-ifunc.c: New file.
8607         * string/test-bzero-ifunc.c: Likewise.
8608         * string/test-memccpy-ifunc.c: Likewise.
8609         * string/test-memchr-ifunc.c: Likewise.
8610         * string/test-memcmp-ifunc.c: Likewise.
8611         * string/test-memcpy-ifunc.c: Likewise.
8612         * string/test-memmem-ifunc.c: Likewise.
8613         * string/test-memmove-ifunc.c: Likewise.
8614         * string/test-mempcpy-ifunc.c: Likewise.
8615         * string/test-memset-ifunc.c: Likewise.
8616         * string/test-rawmemchr-ifunc.c: Likewise.
8617         * string/test-stpcpy-ifunc.c: Likewise.
8618         * string/test-stpncpy-ifunc.c: Likewise.
8619         * string/test-strcasecmp-ifunc.c: Likewise.
8620         * string/test-strcasestr-ifunc.c: Likewise.
8621         * string/test-strcat-ifunc.c: Likewise.
8622         * string/test-strchr-ifunc.c: Likewise.
8623         * string/test-strchrnul-ifunc.c: Likewise.
8624         * string/test-strcmp-ifunc.c: Likewise.
8625         * string/test-strcpy-ifunc.c: Likewise.
8626         * string/test-strcspn-ifunc.c: Likewise.
8627         * string/test-strlen-ifunc.c: Likewise.
8628         * string/test-strncasecmp-ifunc.c: Likewise.
8629         * string/test-strncat-ifunc.c: Likewise.
8630         * string/test-strncmp-ifunc.c: Likewise.
8631         * string/test-strncpy-ifunc.c: Likewise.
8632         * string/test-strnlen-ifunc.c: Likewise.
8633         * string/test-strpbrk-ifunc.c: Likewise.
8634         * string/test-strrchr-ifunc.c: Likewise.
8635         * string/test-strspn-ifunc.c: Likewise.
8636         * string/test-strstr-ifunc.c: Likewise.
8637
8638         * debug/Makefile (tests-ifunc): New variable.
8639         (tests): Add $(tests-ifunc).
8640         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8641         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8642         * debug/test-stpcpy_chk-ifunc.c: New file.
8643         * debug/test-strcpy_chk-ifunc.c: Likewise.
8644
8645 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8646
8647         [BZ #13601]
8648         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8649         header is not read in.
8650
8651 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8654         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8655         directly.  Pass built executable to script as
8656         $(built-program-cmd).
8657         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8658         $testprogram without using LD_LIBRARY_PATH and $ldso.
8659
8660         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8661         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8662         $(rtld-installed-name).
8663         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8664         (rtld_installed_name): Likewise.
8665         (library_path): Likewise.
8666         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8667         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8668         $(run-program-prefix) to tst-tables.sh.
8669         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8670         it to run tst-table-from and tst-table-to.
8671         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8672         Pass it to tst-table.sh.
8673         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8674         $(run-program-prefix) to tst-gettext.sh.
8675         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8676         tst-translit.sh.
8677         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8678         tst-gettext2.sh.
8679         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8680         to run tst-gettext.
8681         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8682         to run tst-gettext2.
8683         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8684         to run tst-translit.
8685         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8686         $(run-program-prefix) to tst-mtrace.sh.
8687         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8688         to run tst-mtrace.
8689         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8690         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8691         $(rtld-installed-name).
8692         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8693         (rtld_installed_name): Likewise.
8694         (run_program_prefix): New variable.  Use it to run wordexp-test.
8695
8696         * Makeconfig (ARCH): Remove all definitions.
8697         (machine): Likewise.
8698         [ARCH]: Remove conditional code.
8699         [!objdir]: Give error.
8700         [!objdir] (objpfx): Remove.
8701         [!objdir] (common-objpfx): Likewise.
8702         [!objdir] (common-objdir): Likewise.
8703         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8704         AC_CONFIG_FILES call.
8705         * configure: Regenerated.
8706
8707         [BZ #13888]
8708         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8709         or TMPDIR.
8710         (testout): Likewise.
8711
8712         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8713         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8714         $(rtld-installed-name).
8715         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8716         (rtld_installed_name): Likwise.
8717         (runit): Remove function.
8718         (run_getconf): New variable,  Use it for running getconf binary.
8719
8720 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8721
8722         [BZ #14716]
8723         * string/test-memmem.c (check_result): New function.
8724         (do_one_test): Use it.
8725         (check1): New function.
8726         (test_main): Use it.
8727
8728 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8729
8730         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8731
8732 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8733
8734         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8735         (_G_LSEEK64): Likewise.
8736         (_G_MMAP64): Likewise.
8737         (_G_FSTAT64): Likewise.
8738         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8739         (_G_LSEEK64): Likewise.
8740         (_G_MMAP64): Likewise.
8741         (_G_FSTAT64): Likewise.
8742         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8743         unconditional.  Call __mmap64 directly.
8744         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8745         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8746         __lseek64 directly.
8747         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8748         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8749         __mmap64 directly.
8750         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8751         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8752         __lseek64 directly.
8753         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8754         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8755         __lseek64 directly.
8756         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8757         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8758         __lseek64 directly.
8759         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8760         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8761         __fxstat64 directly.
8762         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8763         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8764         unconditional.
8765         (freopen64) [!_G_OPEN64]: Remove conditional code.
8766         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8767         unconditional.
8768         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8769         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8770         unconditional.
8771         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8772         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8773         unconditional.
8774         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8775         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8776         unconditional.
8777         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8778         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8779         unconditional.
8780         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8781         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8782         unconditional.
8783         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8784         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8785         unconditional.
8786         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8787
8788 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8789
8790         [BZ #12140]
8791         * manual/memory.texi (Malloc Tunable Parameters): Add note
8792         about free list pointers overwriting some perturb bytes.
8793         Wording suggested by Roland McGrath.
8794
8795 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8796
8797         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8798         (lgamma_test): Likewise.
8799         (tgamma_test): Likewise.
8800
8801 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8802
8803         [BZ #14700]
8804         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8805         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8806
8807 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8808
8809         * NEWS: Mention BZ #14716.
8810         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8811         when removing AVAILABLE1_USES_J macro.
8812
8813 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8814
8815         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8816         (__bswap_64): __uint64_t for unsigned 64-bit int.
8817
8818 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8819
8820         * include/string.h (memmem): Declare libc hidden alias.
8821         * string/memmem.c (memmem): Define libc hidden alias.
8822         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8823         __read, __close instead of open, read, close.
8824
8825 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8826
8827         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8828         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8829         global and hidden.
8830         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8831         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8832         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8833         Likewise.
8834         (__rawmemchr_sse2): Likewise.
8835         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8836         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8837         (__strchr_sse2): Likewise.
8838         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8839         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8840         (__strcasecmp_sse2): Likewise.
8841         (__strncasecmp_sse2): Likewise.
8842         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8843         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8844         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8845         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8846         (__strrchr_sse2): Likewise.
8847         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8848         ifunc-impl-list.c.
8849         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8850         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8851         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8852         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8853         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8854         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8855         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8856         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8857         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8858         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8859         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8860         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8861         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8862         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8863         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8864         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8865         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8866         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8867         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8868         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8869         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8870         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8871         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8872         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8873         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8874         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8875         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8876         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8877         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8878         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8879
8880         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8881         global and hidden.
8882         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8883         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8884         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8885         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8886         Likewise.
8887         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8888         Likewise.
8889         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8890         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8891         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8892         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8893         ifunc-impl-list.c.
8894         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8895         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8896         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8897         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8898         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8899         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8900         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8901         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8902         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8903         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8904         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8905         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8906         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8907         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8908         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8909         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8910         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8911         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8912         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8913         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8914         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8915         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8916         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8917         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8918         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8919         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8920         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8921         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8922         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8923         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8924         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8925         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8926         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8927         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8928         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8929         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8930         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8931         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8932         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8933         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8934         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8935
8936         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8937         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8938         * include/ifunc-impl-list.h: New file.
8939         * misc/ifunc-impl-list.c: Likewise.
8940         * misc/Makefile (routines): Add ifunc-impl-list.
8941         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8942         * string/test-string.h: Include <ifunc-impl-list.h>.
8943         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8944         impl_array): New variables.
8945         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8946         are defined.
8947         (test_init): Call __libc_ifunc_impl_list to initialize
8948         func_list if TEST_IFUNC and TEST_NAME are defined.
8949
8950         * string/Makefile (strop-tests): Add bcopy and bzero.
8951         * string/test-bcopy.c: New file.
8952         * string/test-bzero.c: Likewise.
8953         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8954         defined.
8955         * string/test-memset.c: Support bzero test if TEST_BZERO is
8956         defined.
8957         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8958         __libc_memmove.
8959         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8960         __libc_memset.
8961         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8962         of memset.
8963
8964 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8965
8966         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8967         * configure: Regenerated.
8968
8969         * Makeconfig (+link-static-before-libc): Don't include
8970         $(link-static-libc).
8971
8972         * libio/libio.h (_IO_pos_t): Remove.
8973
8974 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8975
8976         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8977         McGrath.
8978
8979 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8980
8981         * crypt/crypt-entry.c: Include fips-private.h.
8982         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8983         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8984         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8985         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8986
8987 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8988
8989         * crypt/crypt-private.h: Include stdbool.h.
8990         (_ufc_setup_salt_r): Return bool.
8991         * crypt/crypt-entry.c: Include errno.h.
8992         (__crypt_r): Return NULL with EINVAL for bad salt.
8993         * crypt/crypt_util.c (bad_for_salt): New.
8994         (_ufc_setup_salt_r): Check that salt is long enough and within
8995         the specified alphabet.
8996         * crypt/badsalttest.c: New file.
8997         * crypt/Makefile (tests): Add it.
8998         ($(objpfx)badsalttest): New.
8999
9000 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9001
9002         * NEWS: Add entry for BZ #14602.
9003
9004 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9005
9006         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9007         type-generic.
9008         * math/libm-test.inc: Update comment listing what functions and
9009         macros are tested.
9010         (isgreater_test): New function.
9011         (isgreaterequal_test): Likewise.
9012         (isless_test): Likewise.
9013         (islessequal_test): Likewise.
9014         (islessgreater_test): Likewise.
9015         (isunordered_test): Likewise.
9016         (main): Call the new functions.
9017
9018 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9019
9020         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9021         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9022         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9023         * sysdeps/i386/configure: Regenerated.
9024         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9025         * sysdeps/mach/configure: Regenerated.
9026         * sysdeps/mach/hurd/configure: Regenerated.
9027         * sysdeps/powerpc/configure: Regenerated.
9028         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9029         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9030         * sysdeps/s390/s390-32/configure: Regenerated.
9031         * sysdeps/s390/s390-64/configure: Regenerated.
9032         * sysdeps/sh/configure: Regenerated.
9033         * sysdeps/sparc/configure: Regenerated.
9034         * sysdeps/unix/sysv/linux/configure: Regenerated.
9035         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9036         * sysdeps/x86_64/configure: Regenerated.
9037
9038         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9039         defined.  Don't check if MAP is NULL.
9040
9041 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9042
9043         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9044         (_G_stat64): Likewise.
9045         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9046         (_G_stat64): Likewise.
9047         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9048         instead of struct _G_stat64.
9049         * libio/fileops.c (mmap_remap_check): Likewise.
9050         (decide_maybe_mmap): Likewise.
9051         (_IO_new_file_seekoff): Likewise.
9052         (_IO_file_stat): Likewise.
9053         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9054         _G_off64_t.
9055         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9056         instead of struct _G_stat64.
9057         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9058
9059 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9060
9061         [BZ #14602]
9062         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9063         Replace with ...
9064         (CHECK_EOL): New macro.
9065         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9066         CHECK_EOL.
9067         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9068         Replace with CHECK_EOL.
9069         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9070         Replace with CHECK_EOL.
9071
9072 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9073
9074         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9075         type-generic.
9076         * math/libm-test.inc: Update comment listing what functions and
9077         macros are tested.
9078         (finite_test): New function.
9079         (isinf_test): Likewise.
9080         (isnan_test): Likewise.
9081         (fpclassify_test): Test subnormal input.
9082         (isfinite_test): Likewise.
9083         (isnormal_test): Likewise.
9084         (main): Call the new functions.
9085
9086 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9087
9088         [BZ #14660]
9089         * Makerules (%.dynsym): Force C locale when running
9090         $(OBJDUMP) --dynamic-syms.
9091
9092 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9093
9094         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9095         <stdint.h>.
9096
9097 2012-10-06  David S. Miller  <davem@davemloft.net>
9098
9099         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9100         upper 32-bits of the length value in %o2 since we use branch-on-register
9101         tests which consider the entire 64-bit register.
9102
9103 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9104
9105         * string/test-strstr.c (check2): Add a test for page boundary.
9106
9107 2012-10-05  David S. Miller  <davem@davemloft.net>
9108
9109         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9110         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9111         file.
9112         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9113         sysdep_routines.
9114         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9115         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9116         and bzero when HWCAP_SPARC_CRYPTO is present.
9117
9118 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9119
9120         [BZ #14602]
9121         * string/test-strstr.c (check2): New function.
9122         (test_main): Call check2.
9123
9124         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9125         and bug-strchr1.
9126         * string/bug-strcasestr1.c (do_test): Moved to ...
9127         * string/test-strcasestr.c (check1): Here.  New function.
9128         (do_one_test): Break out result checking code into ...
9129         (check_result): This.  New function.
9130         (do_one_test): Call check_result.
9131         (test_main): Call check1.
9132         * string/bug-strchr1.c (do_test): Moved to ...
9133         * string/test-strchr.c (check1): Here.  New function.
9134         (do_one_test): Break out result checking code into ...
9135         (check_result): This.  New function.
9136         (do_one_test): Call check_result.
9137         (test_main): Call check1.
9138         * string/bug-strstr1.c (main): Moved to ...
9139         * string/test-strstr.c (check1): Here.  New function.
9140         (do_one_test): Break out result checking code into ...
9141         (check_result): This.  New function.
9142         (do_one_test): Call check_result.
9143         (test_main): Call check1.
9144         * string/bug-strcasestr1.c: Removed.
9145         * string/bug-strchr1.c: Likewise.
9146         * string/bug-strstr1.c: Likewise.
9147
9148         * elf/Makefile (dl-routines): Add hwcaps.
9149         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9150         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9151         (_dl_important_hwcaps): Moved to ...
9152         * elf/dl-hwcaps.c: Here.  New file.
9153         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9154
9155         [BZ #14557]
9156         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9157         if IS_IN_rtld isn't defined.
9158
9159         * elf/dl-support.c (_dl_sysinfo_map): New.
9160         Include "get-dynamic-info.h" and "setup-vdso.h".
9161         (_dl_non_dynamic_init): Call setup_vdso.
9162         * elf/dynamic-link.h: Don't include <assert.h>.
9163         (elf_get_dynamic_info): Moved to ...
9164         * elf/get-dynamic-info.h: Here.  New file.
9165         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9166         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9167         * elf/setup-vdso.h: Here.  New file.
9168         * elf/rtld.c: Include "setup-vdso.h".
9169         (dl_main): Call setup_vdso.
9170
9171 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9172
9173         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9174         creal in comment listing functions tested.  List finite, isinf,
9175         isnan, isless, islessequal, isgreater, isgreaterequal,
9176         islessgreater, isunordered, lgamma_r and pow10 as functions and
9177         macros not tested.  Mention which functions not tested are aliases
9178         for other functions.  Fix typo.  Note that signs of NaNs are not
9179         tested.
9180
9181         * scripts/config.guess: Update from config.git.
9182         * scripts/config.sub: Likewise.
9183
9184 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9185
9186         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9187         * misc/madvise.c (madvise): Renamed to __madvise.
9188         Make madvise a weak alias.
9189         * include/sys/mman.h: Declare __madvise.
9190         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9191         * sysdeps/unix/syscalls.list
9192         (madvise): Make __madvise the strong name, and madvise a weak alias.
9193         * sysdeps/unix/sysv/linux/syscalls.list
9194         (madvise, mmap): Remove redundant entries.
9195         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9196         * malloc/malloc.c (mtrim): Likewise.
9197         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9198
9199 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9200
9201         * sysdeps/mach/hurd/dl-cache.c: File removed.
9202         * config.h.in (USE_LDCONFIG): New #undef.
9203         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9204         * configure: Regenerated.
9205         * elf/Makefile (dl-routines): Add dl-cache only under
9206         [$(use-ldconfig) = yes].
9207         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9208         cache on [USE_LDCONFIG].
9209         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9210         [USE_LDCONFIG].
9211         * elf/rtld.c (dl_main): Likewise.
9212
9213 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9214
9215         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9216         _SC_LEVEL4_CACHE_LINESIZE.
9217
9218 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9219
9220         * sysdeps/unix/bsd/confstr.h: File removed.
9221
9222 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9223
9224         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9225         sys/sdt-config.h.
9226
9227 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9228
9229         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9230         Make 'mapoff' field ElfW(Off) rather than off_t.
9231
9232 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9233
9234         * nscd/Makefile: Remove nscd-cflags and all its users.
9235         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9236         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9237
9238         [BZ #10631]
9239         * malloc.c (malloc_printerr): Clarify error message.
9240
9241 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9242
9243         [BZ #14648]
9244         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9245         Set bit_FMA_Usable if FMA is supported.
9246         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9247         macro.
9248         (bit_FMA4_Usable): Updated.
9249         (index_FMA_Usable): New macro.
9250         (CPUID_FMA): Likewise
9251         (HAS_FMA): Defined with bit_FMA_Usable.
9252
9253 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9254
9255         * bits/types.h (__swblk_t): Type removed.
9256         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9257         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9258         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9259         (__SWBLK_T_TYPE): Likewise.
9260         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9261         (__SWBLK_T_TYPE): Likewise.
9262         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9263         (__SWBLK_T_TYPE): Likewise.
9264         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9265         (__SWBLK_T_TYPE): Likewise.
9266
9267 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9268             Honza Horak <hhorak@redhat.com>
9269
9270         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9271         (xdr_mapname): Use YPMAXMAP as maxsize.
9272         (xdr_peername): Use YPMAXPEER as maxsize.
9273         (xdr_keydat): Use YPAXRECORD as maxsize.
9274         (xdr_valdat): Use YPMAXRECORD as maxsize.
9275
9276 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9277
9278         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9279
9280         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9281         * csu/init-first.c: ... here.
9282         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9283         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9284         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9285         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9286         * sysdeps/i386/init-first.c: File removed.
9287         * sysdeps/sh/init-first.c: File removed.
9288
9289 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9290
9291         [BZ #14645]
9292         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9293         if x * y might underflow to zero and z is zero.
9294         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9295         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9296         * math/libm-test.inc (min_subnorm_value): New variable.
9297         (fma_test): Add more tests.
9298         (fma_test_towardzero): Likewise.
9299         (fma_test_downward): Likewise
9300         (fma_test_upward): Likewise.
9301         (initialize): Set min_subnorm_value.
9302
9303 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9304
9305         [BZ #14638]
9306         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9307         0 + 0.
9308         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9309         mode for addition resulting in exact zero.
9310         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9311         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9312         exact 0 + 0.
9313         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9314         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9315         * math/libm-test.inc (fma_test): Add more tests.
9316         (fma_test_towardzero): New function.
9317         (fma_test_downward): Likewise.
9318         (fma_test_upward): Likewise.
9319         (main): Call the new functions.
9320
9321 2012-09-28  David S. Miller  <davem@davemloft.net>
9322
9323         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9324
9325 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9326
9327         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9328         instead of SIGALRM.
9329
9330         * sysdeps/gnu/_G_config.h: Moved to ...
9331         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9332         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9333         * sysdeps/generic/_G_config.h: ... here.
9334
9335         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9336
9337         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9338
9339         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9340         Conditionalize target on [libnss_test1.so-version].
9341
9342         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9343
9344         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9345         (elfobjdir): Move out of conditionals.
9346
9347         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9348         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9349         (__nss_lookup_function): Conditionalize label remove_from_tree on
9350         [!DO_STATIC_NSS || SHARED], matching its only use.
9351
9352 2012-09-28  David S. Miller  <davem@davemloft.net>
9353
9354         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9355         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9356         file.
9357         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9358         sysdep_routines.
9359         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9360         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9361         when HWCAP_SPARC_CRYPTO is present.
9362
9363 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9364
9365         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9366
9367 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9368
9369         [BZ #6530]
9370         * stdio-common/vfprintf.c (process_string_arg): Revert
9371         2000-07-22 change.
9372
9373 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9374
9375         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9376         for testcase.
9377         * stdio-common/tst-sprintf.c: Include <locale.h>
9378         (main): Test sprintf's handling of incomplete multibyte
9379         characters.
9380
9381 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9382
9383         * elf/dl-runtime.c (VERSYMIDX): Removed.
9384         * elf/dl-version.c (VERSYMIDX): Likewise.
9385         * elf/do-rel.h (VERSYMIDX): Likewise.
9386         (VALIDX): Likewise.
9387         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9388         * elf/rtld.c (VALIDX): Likewise.
9389         (ADDRIDX): Likewise.
9390         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9391         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9392         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9393         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9394         (VALIDX): Likewise.
9395         (ADDRIDX): Likewise.
9396
9397 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9398
9399         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9400
9401 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9402
9403         [BZ #11438]
9404         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9405         to global scope.
9406         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9407         addresses are in the same scope as 192.0.2/24.
9408         * posix/gai.conf: Document new scope table defaults.
9409
9410 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9411
9412         [BZ #5298]
9413         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9414         for ftell.  Compute offsets from write pointers instead.
9415         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9416
9417 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9418
9419         [BZ #14543]
9420         * libio/Makefile (tests): New test case tst-fseek.
9421         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9422         combination works in wide mode.
9423         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9424         state when the external buffer state changes.
9425
9426 2012-09-27  David S. Miller  <davem@davemloft.net>
9427
9428         [BZ #14376]
9429         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9430         pass reloc->r_addend in as the 'high' argument to
9431         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9432
9433         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9434
9435 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9436
9437         * rt/tst-aio2.c: Include <pthread.h>.
9438         * rt/tst-aio3.c: Likewise.
9439
9440 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9441
9442         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9443
9444 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9447         contents on [SHARED].
9448
9449 2012-09-26  Marek Polacek  <polacek@redhat.com>
9450
9451         [BZ #14530]
9452         [BZ #13741]
9453         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9454         for C++ and GCC <4.3 as well as for non GCC compilers.
9455
9456 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9457
9458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9459
9460 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9461
9462         * Makefile.in (all, install): Declare with .PHONY.
9463         Reported by Michael Hope <michael.hope@linaro.org>.
9464
9465 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9466
9467         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9468         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9469         system header.
9470         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9471         Likewise.
9472         (sydep_routines): Add the new and the internal functions.
9473         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9474         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9476         (GLIBC_2.17): Add the new function.
9477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9478         (GLIBC_2.17): Likewise.
9479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9480         (GLIBC_2.17): Likewise.
9481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9482         (GLIBC_2.17): Likewise.
9483         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9484
9485 2012-09-25  Alan Modra  <amodra@gmail.com>
9486
9487         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9488         Add release barrier before setting once_control to say
9489         initialisation is done.  Add hints on lwarx.  Use macro in
9490         place of isync.
9491         (clear_once_control): Add release barrier.
9492
9493 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9494
9495         [BZ #13629]
9496         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9497         specially.
9498         * math/s_clog10.c (__clog10): Likewise.
9499         * math/s_clog10f.c (__clog10f): Likewise.
9500         * math/s_clog10l.c (__clog10l): Likewise.
9501         * math/s_clogf.c (__clogf): Likewise.
9502         * math/s_clogl.c (__clogl): Likewise.
9503         * math/Makefile (libm-calls): Add x2y2m1.
9504         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9505         (__x2y2m1): Likewise.
9506         (__x2y2m1l): Likewise.
9507         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9508         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9509         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9510         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9511         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9512         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9513         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9514         * sysdeps/i386/fpu/libm-test-ulps: Update.
9515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9516
9517         [BZ #14621]
9518         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9519         int as type of variable DEPTH.
9520         (glob): Use size_t instead of int as type of variables NEWCOUNT
9521         and OLD_PATHC.
9522
9523 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9524
9525         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9526         Add s_sincosf-sse2.
9527         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9528         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9529         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9530         macros for using routine as __sincosf_ia32.
9531         Use macro for function declaration and weak_alias.
9532         * sysdeps/i386/fpu/libm-test-ulps: Update.
9533
9534         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9535         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9536
9537         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9538         subnormal argument.
9539         * math/s_cexpf.c (__cexpf): Likewise.
9540         * math/s_csinf.c (__csinf): Likewise.
9541         * math/s_csinhf.c (__csinhf): Likewise.
9542         * math/s_ctanf.c (__ctanf): Likewise.
9543         * math/s_ctanhf.c (__ctanhf): Likewise.
9544         * math/s_ccosh.c (__ccoshf): Likewise.
9545         * math/s_cexp.c (__cexpl): Likewise.
9546         * math/s_csin.c (__csin): Likewise.
9547         * math/s_csinh.c (__csinh): Likewise.
9548         * math/s_ctan.c (__ctan): Likewise.
9549         * math/s_ctanh.c (ctanh): Likewise.
9550         * math/s_ccoshl.c (__ccoshl): Likewise.
9551         * math/s_cexpl.c (__cexpl): Likewise.
9552         * math/s_csinl.c (__csinl): Likewise.
9553         * math/s_csinhl.c (__csinhl): Likewise.
9554         * math/s_ctanl.c (__ctanl): Likewise.
9555         * math/s_ctanhl.c (__ctanhl): Likewise.
9556
9557 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9558
9559         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9560         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9561         (_IO_off_t): Define to __off_t, not _G_off_t.
9562         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9563         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9564         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9565         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9566         type of __dummy and __dummy2 fields.
9567         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9568         (_G_ssize_t): Likewise.
9569         (_G_off_t): Likewise.
9570         (_G_pid_t): Likewise.
9571         (_G_uid_t): Likewise.
9572         (_G_wchar_t): Likewise.
9573         (_G_wint_t): Likewise.
9574         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9575         (_G_ssize_t): Likewise.
9576         (_G_off_t): Likewise.
9577         (_G_pid_t): Likewise.
9578         (_G_uid_t): Likewise.
9579         (_G_wchar_t): Likewise.
9580         (_G_wint_t): Likewise.
9581         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9582         (_G_ssize_t): Likewise.
9583         (_G_off_t): Likewise.
9584         (_G_pid_t): Likewise.
9585         (_G_uid_t): Likewise.
9586         (_G_wchar_t): Likewise.
9587         (_G_wint_t): Likewise.
9588
9589 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9590
9591         * malloc/arena.c: Include malloc-sysdep.h.
9592         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9593         is sufficient to shrink the heap or an unmap is needed.
9594         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9595         new function check_may_shrink_heap.
9596         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9597         new function check_may_shrink_heap.
9598
9599 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9600
9601         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9602         comments.
9603
9604 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9605
9606         * catgets/test-gencat.sh: Add "set -e".
9607         * elf/tst-pathopt.sh: Likewise.
9608         * grp/tst_fgetgrent.sh: Likewise.
9609         * iconvdata/run-iconv-test.sh: Likewise.
9610         * intl/tst-gettext.sh: Likewise.
9611         * intl/tst-gettext2.sh: Likewise.
9612         * intl/tst-gettext4.sh: Likewise.
9613         * intl/tst-gettext6.sh: Likewise.
9614         * intl/tst-translit.sh: Likewise.
9615         * io/ftwtest-sh: Likewise.
9616         * libio/test-freopen.sh: Likewise.
9617         * malloc/tst-mtrace.sh: Likewise.
9618         * posix/globtest.sh: Likewise.
9619         * posix/tst-getconf.sh: Likewise.
9620         * posix/wordexp-tst.sh: Likewise.
9621         * stdio-common/tst-printf.sh: Likewise.
9622         * stdio-common/tst-unbputc.sh: Likewise.
9623         * stdlib/tst-fmtmsg.sh: Likewise.
9624         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9625         * catgets/Makefile: Do not specify -e option when running
9626         testsuite shell scripts.
9627         * elf/Makefile: Likewise.
9628         * grp/Makefile: Likewise.
9629         * iconvdata/Makefile: Likewise.
9630         * intl/Makefile: Likewise.
9631         * io/Makefile: Likewise.
9632         * libio/Makefile: Likewise.
9633         * malloc/Makefile: Likewise.
9634         * posix/Makefile: Likewise.
9635         * stdio-common/Makefile: Likewise.
9636         * stdlib/Makefile: Likewise.
9637         * sysdeps/x86_64/Makefile: Likewise.
9638
9639         * io/ftwtest-sh: Add copyright header.
9640         * posix/globtest.sh: Likewise.
9641         * posix/tst-getconf.sh: Likewise.
9642         * posix/wordexp-tst.sh: Likewise.
9643         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9644
9645 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9646
9647         [BZ #13679]
9648         * Makeconfig (+link): Defined as $(+link-static) if
9649         $(build-shared) isn't yes.
9650         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9651         isn't yes.
9652         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9653
9654         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9655
9656         [BZ #14562]
9657         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9658         new chunk size with MALLOC_ALIGN_MASK.
9659
9660 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9661
9662         [BZ #5044]
9663         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9664         <rounding-mode.h>.
9665         (__printf_fphex): Determine rounding using get_rounding_mode and
9666         round_away.
9667         * stdio-common/tst-printf-round.c (struct hex_test): New
9668         structure.
9669         (hex_tests): New variable.
9670         (test_hex_in_one_mode): New function.
9671         (do_test): Also run tests for hex float output.
9672
9673 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9676         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9677         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9678         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9679         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9680         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9681         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9682         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9683
9684 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9685
9686         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9687         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9688         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9689         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9690
9691 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9692
9693         [BZ #14579]
9694         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9695         mode only.
9696         * elf/tst-rtld-load-self.sh: New test.
9697         * elf/Makefile: Run it.
9698
9699 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9700
9701         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9702         (tst-writev-ENV): Remove.
9703         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9704
9705 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9706
9707         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9708
9709 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9710
9711         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9712         unconditional.
9713         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9714         Likewise.
9715         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9716         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9717         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9718         Likewise.
9719
9720 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9721
9722         [BZ #14587]
9723         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9724         * config.make.in (have-cpp-asm-debuginfo): Removed.
9725         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9726         * configure: Regenerated.
9727
9728 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9729
9730         [BZ #5044]
9731         * stdio-common/printf_fp.c: Include <stdbool.h> and
9732         <rounding-mode.h>.
9733         (___printf_fp): Determine rounding using get_rounding_mode and
9734         round_away.
9735         * stdio-common/tst-printf-round.c: New file.
9736         * stdio-common/Makefile (tests): Add tst-printf-round.
9737         (link-libm): New variable.
9738         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9739
9740 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9741
9742         [BZ #14576]
9743         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9744         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9745         Likewise.
9746         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9747         Likewise.
9748
9749 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9750
9751         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9752         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9753         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9754         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9755
9756 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9757
9758         [BZ #14518]
9759         * include/rounding-mode.h: New file.
9760         * sysdeps/generic/get-rounding-mode.h: Likewise.
9761         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9762         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9763         (MAX_VALUE): New macro.
9764         (MIN_VALUE): Likewise.
9765         (overflow_value): New function.
9766         (underflow_value): Likewise.
9767         (round_and_return): Use overflow_value and underflow_value to
9768         determine return values in overflow and underflow cases.  Use
9769         round_away to determine rounding depending on rounding mode.
9770         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9771         determine return values in overflow and underflow cases.
9772         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9773         (struct test_results): New structure.
9774         (struct test): Use struct test_results to store expected results
9775         for all rounding modes.
9776         (TEST): Include expected results for all rounding modes.
9777         (test_in_one_mode): New function.
9778         (do_test): Use test_in_one_mode to compute and check results.
9779         Check results for all rounding modes.
9780         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9781         $(link-libm).
9782
9783 2012-12-09  Allan McRae  <allan@archlinux.org>
9784
9785         * sysdeps/i386/fpu/libm-test-ulps: Update
9786
9787 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9788
9789         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9790         (_G_int32_t): Likewise.
9791         (_G_uint16_t): Likewise.
9792         (_G_uint32_t): Likewise.
9793         (_G_HAVE_BOOL): Likewise.
9794         (_G_HAVE_ATEXIT): Likewise.
9795         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9796         (_G_HAVE_IO_FILE_OPEN): Likewise.
9797         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9798         (_G_int32_t): Likewise.
9799         (_G_uint16_t): Likewise.
9800         (_G_uint32_t): Likewise.
9801         (_G_HAVE_BOOL): Likewise.
9802         (_G_HAVE_ATEXIT): Likewise.
9803         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9804         (_G_HAVE_IO_FILE_OPEN): Likewise.
9805         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9806         (_G_int32_t): Likewise.
9807         (_G_uint16_t): Likewise.
9808         (_G_uint32_t): Likewise.
9809         (_G_HAVE_BOOL): Likewise.
9810         (_G_HAVE_ATEXIT): Likewise.
9811         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9812         (_G_HAVE_IO_FILE_OPEN): Likewise.
9813
9814 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9815
9816         * csu/libc-tls.c: Update copyright years.
9817
9818 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9819
9820         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9821         [!_G_USING_THUNKS]: Remove conditional code.
9822         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9823         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9824
9825         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9826         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9827         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9828         (_G_VTABLE_LABEL_PREFIX): Likewise.
9829         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9830         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9831         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9832         (_G_VTABLE_LABEL_PREFIX): Likewise.
9833         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9834         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9835         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9836         (_G_VTABLE_LABEL_PREFIX): Likewise.
9837         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9838
9839 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9840
9841         * libio/Makefile: Include ../Makeconfig before tests.
9842         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9843         only if $(build-shared) is yes.
9844
9845         * iconv/gconv_db.c: Update copyright years.
9846
9847 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9848
9849         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9850         unwind info if defined PIC. Fix special cases description.
9851         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9852
9853         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9854         DP_HI_MASK entry.
9855         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9856
9857 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9858
9859         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9860
9861         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9862         is NULL.
9863
9864         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9865         (LDLIBS-tst-chk4): This.
9866         (LDFLAGS-tst-chk5): Renamed to ...
9867         (LDLIBS-tst-chk5): This.
9868         (LDFLAGS-tst-chk6): Renamed to ...
9869         (LDLIBS-tst-chk6): This.
9870         (LDFLAGS-tst-lfschk4): Renamed to ...
9871         (LDLIBS-tst-lfschk4): This.
9872         (LDFLAGS-tst-lfschk5): Renamed to ...
9873         (LDLIBS-tst-lfschk5): This.
9874         (LDFLAGS-tst-lfschk6): Renamed to ...
9875         (LDLIBS-tst-lfschk6): This.
9876
9877         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9878         on $(common-objpfx)soversions.mk.
9879
9880 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9881
9882         [BZ #10014]
9883         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9884         example host name.
9885
9886 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9887
9888         * malloc/arena.c (arena_get_retry): New function that gets
9889         another arena for the caller to try its request on.
9890         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9891         current arena cannot fulfill the request.
9892         (__libc_memalign): Likewise.
9893         (__libc_memalign): Likewise.
9894         (__libc_pvalloc): Likewise.
9895         (__libc_calloc): Likewise.
9896
9897 2012-09-05  John Tobey  <john.tobey@gmail.com>
9898
9899         [BZ #13542]
9900         * manual/arith.texi (Operations on Complex): Fix description
9901         of carg branch cut.
9902
9903 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9904
9905         [BZ #10014]
9906         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9907         host name.
9908
9909         [BZ #10038]
9910         * manual/memory.texi (Memory): Make order of menu items match
9911         order of sections.
9912
9913 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9914
9915         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9916         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9917         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9918
9919 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9920
9921         * csu/libc-tls.c (static_dtv): Renamed to ...
9922         (_dl_static_dtv): This.  Make it global.
9923         (_dl_initial_dtv): Removed.
9924         (__libc_setup_tls): Updated.
9925         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9926         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9927         DL_INITIAL_DTV.
9928
9929 2012-09-06  Petr Machata  <pmachata@redhat.com>
9930
9931         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9932         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9933         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9934         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9935
9936 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9937
9938         [BZ #14545]
9939         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9940         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9941         freeing dtv[-1].
9942
9943 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9944
9945         [BZ #14544]
9946         * Makeconfig (link-static-before-libc): Replace $(+prector)
9947         with $(+prectorT).
9948         (link-static-after-libc): Replace $(+postctor) with
9949         $(+postctorT).
9950         (link-bounded): Replace $(+prector)/$(+postctor) with
9951         $(+prectorT)/$(+postctorT).
9952         (+prectorT): New macro.
9953         (+postctorT): Likewise.
9954
9955 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9956
9957         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9958         (round_str): Handle values above the maximum for IBM long double
9959         as inexact.
9960         * stdlib/tst-strtod-round.c (tests): Regenerated.
9961
9962 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9963
9964         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9965         assembler flag.
9966         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9967         zarch_nohighgprs around the zarch optimized routines.
9968         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9969         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9970         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9971         for zarch.
9972
9973 2012-09-05  David S. Miller  <davem@davemloft.net>
9974
9975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9976
9977         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9978         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9979         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9980         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9981         entries.
9982
9983 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9984
9985         * malloc/arena.c: Fold copyright years.
9986         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9987
9988 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9989
9990         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9991
9992 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9993
9994         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9995
9996 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9997
9998         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9999         change internal state upon failure.
10000
10001 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10002
10003         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10004         * malloc/memusage.c (mmap): Likewise.
10005         (mmap64, mremap): Likewise.  Adjust name in comment.
10006
10007 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10008
10009         * libio/fileops.c: Fix typos in comments.
10010         * libio/oldfileops.c: Likewise.
10011         * libio/wfileops.c: Likewise.
10012
10013 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10014
10015         [BZ #1349]
10016         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10017         (tst-malloc-usable-ENV): Set environment for test case.
10018         * malloc/hooks.c (malloc_check_get_size): New function to get
10019         requested size.
10020         * malloc/malloc.c (musable): Use malloc_check_get_size.
10021         * malloc/tst-malloc-usable.c: New test case.
10022
10023 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10024
10025         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10026
10027 2012-09-05  Allan McRae  <allan@archlinux.org>
10028
10029         [BZ #13966]
10030         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10031         determine header location.
10032         * configure: Regenerated.
10033
10034 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10035
10036         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10037         float format.
10038         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10039         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10040         format.
10041         (test): Regenerate.
10042
10043 2012-09-04  David S. Miller  <davem@davemloft.net>
10044
10045         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10046         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10047         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10048
10049 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10050
10051         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10052         failures.
10053
10054         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10055
10056 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10057
10058         [BZ #9914]
10059         * libio/iogetdelim.c: Include <limits.h>.
10060         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10061         + len + 1 would overflow.
10062
10063 2012-09-03  Andreas Jaeger  <aj@suse.de>
10064
10065         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10066         * sysdeps/i386/fpu/libm-test-ulps: Update.
10067
10068 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10069
10070         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10071         Add s_sinf-sse2, s_conf-sse2.
10072
10073         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10074         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10075         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10076         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10077
10078         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10079         for using routine as __sinf_ia32.
10080         Use macro for function declaration and weak_alias.
10081         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10082         for using routine as __cosf_ia32.
10083         Use macro for function declaration and weak_alias.
10084
10085         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10086         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10087
10088         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10089         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10091
10092         * math/libm-test.inc (cos_test): Add more test cases.
10093         (sin_test): Likewise.
10094         (sincos_test): Likewise.
10095
10096 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10097
10098         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10099         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10100         hidden.
10101         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10102
10103 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10104
10105         [BZ #14538]
10106         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10107         first element of the GOT.
10108         (elf_machine_load_address): Return the difference between
10109         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10110
10111 2012-09-01  Allan McRae  <allan@archlinux.org>
10112
10113         [BZ #13412]
10114         * configure.in (AWK): Require gawk version 3.0 or later.
10115         * configure: Regenerated.
10116
10117 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10118
10119         * sysdeps/unix/sysv/linux/kernel-features.h
10120         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10121         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10122         [__NR_clock_getres]: Make code unconditional.
10123         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10124         (clock_getcpuclockid): Remove code left unreachable by removal of
10125         conditionals.
10126         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10127         code unconditional.
10128         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10129         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10130         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10131         Make code unconditional.
10132         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10133         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10134         * sysdeps/unix/sysv/linux/clock_settime.c
10135         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10136         conditional code.
10137         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10138         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10139
10140 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10141
10142         [BZ #14476]
10143         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10144         scripts/test-installation.pl.
10145
10146         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10147         and $ld_so_version if it is set.
10148
10149 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10150
10151         [BZ #14516]
10152         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10153         failure if reading from procfs failed.
10154         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10155
10156 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10157
10158         * sysdeps/unix/sysv/linux/kernel-features.h
10159         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10160         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10161         Remove conditional code.
10162         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10163         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10164         Remove conditional code.
10165         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10166         * sysdeps/unix/sysv/linux/i386/fxstat.c
10167         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10168         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10169         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10170         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10171         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10172         * sysdeps/unix/sysv/linux/i386/lxstat.c
10173         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10174         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10175         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10176         Remove conditional code.
10177         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10178         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10179         Remove conditional code.
10180         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10181         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10182         <kernel-features.h>.
10183         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10184         Remove.
10185         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10186         Remove conditional code.
10187         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10188         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10189         Remove conditional.
10190
10191 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10192
10193         [BZ #5400]
10194         * NEWS: Add fixed bug number.
10195
10196 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10197
10198         [BZ #14519]
10199         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10200         underflowing exponent in case of negative sign.
10201         * stdlib/tst-strtod-round-data: Add more tests.
10202         * stdlib/tst-strtod-round.c (tests): Regenerated.
10203
10204         [BZ #3479]
10205         * stdlib/strtod_l.c (NDIG): Remove.
10206         (HEXNDIG): Likewise.
10207         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10208         smallest representable value.
10209         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10210         lie within an exact representation of 1/2 ulp of the result.
10211         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10212         unconditionally.
10213         (TENS_P9_IDX): Define unconditionally.
10214         (TENS_P9_SIZE): Likewise.
10215         (TENS_P10_IDX): Likewise.
10216         (TENS_P10_SIZE): Likewise.
10217         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10218         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10219         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10220         entries for 10^2^13 and 10^2^14.
10221         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10222         (TENS_P13_IDX): Define.
10223         (TENS_P13_SIZE): Likewise.
10224         (TENS_P14_IDX): Likewise.
10225         (TENS_P14_SIZE): Likewise.
10226         (_fpioconst_pow10): Change array size to
10227         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10228         unconditional.
10229         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10230         1024]: Add entries for 10^2^13 and 10^2^14.
10231         [LAST_POW10 > _LAST_POW10]: Remove #error.
10232         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10233         (_fpioconst_pow10): Change array size to
10234         FPIOCONST_POW10_ARRAY_SIZE.
10235         * stdlib/gen-fpioconst.c: New file.
10236         * stdlib/gen-tst-strtod-round.c: Likewise.
10237         * stdlib/tst-strtod-round-data: Likewise.
10238         * stdlib/tst-strtod-round.c: Likewise.
10239         * stdlib/Makefile (tests): Add tst-strtod-round.
10240
10241         [BZ #14459]
10242         * stdlib/strtod_l.c: Include <stdint.h>.
10243         (NDEBUG): Do not define.
10244         (round_and_return): Change EXPONENT parameter to type intmax_t.
10245         Rearrange calculations to avoid internal overflow possibilities.
10246         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10247         Rearrange calculations to avoid internal overflow possibilities.
10248         Assert that number fits inside MPNSIZE limbs.
10249         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10250         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10251         calculations and add assertions to avoid internal overflow
10252         possibilities.  Add casts to avoid signed/unsigned operations.
10253         * stdlib/tst-strtod-overflow.c: New file.
10254         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10255
10256 2012-08-25  Marek Polacek  <polacek@redhat.com>
10257
10258         * time/time.h: Fix some typos in comments.
10259
10260 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10261
10262         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10263         * posix/tst-rfc3484-2.c: Likewise.
10264         * posix/tst-rfc3484-3.c: Likewise.
10265
10266 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10267
10268         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10269         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10270
10271 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10272
10273         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10274         #include of fxstatat64.c.
10275
10276 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10277
10278         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10279         * shadow/getspent_r.c: Likewise.
10280         * shadow/getspnam.c: Likewise.
10281         * shadow/getspnam_r.c: Likewise.
10282         * gshadow/getsgent.c: Likewise.
10283         * gshadow/getsgent_r.c: Likewise.
10284         * gshadow/getsgnam.c: Likewise.
10285         * gshadow/getsgnam_r.c: Likewise.
10286         * inet/getnetbyad.c: Likewise.
10287         * inet/getnetbyad_r.c: Likewise.
10288         * inet/getnetbynm.c: Likewise.
10289         * inet/getnetbynm_r.c: Likewise.
10290         * inet/getnetent.c: Likewise.
10291         * inet/getnetent_r.c: Likewise.
10292         * inet/getproto.c: Likewise.
10293         * inet/getproto_r.c: Likewise.
10294         * inet/getprtent.c: Likewise.
10295         * inet/getprtent_r.c: Likewise.
10296         * inet/getprtname.c: Likewise.
10297         * inet/getprtname_r.c: Likewise.
10298         * inet/getrpcbyname.c: Likewise.
10299         * inet/getrpcbyname_r.c: Likewise.
10300         * inet/getrpcbynumber.c: Likewise.
10301         * inet/getrpcbynumber_r.c: Likewise.
10302         * inet/getrpcent.c: Likewise.
10303         * inet/getrpcent_r.c: Likewise.
10304         * inet/getaliasent.c: Likewise.
10305         * inet/getaliasent_r.c: Likewise.
10306         * inet/getaliasname.c: Likewise.
10307         * inet/getaliasname_r.c: Likewise.
10308         * nscd/getgrgid_r.c: Likewise.
10309         * nscd/getgrnam_r.c: Likewise.
10310         * nscd/gethstbyad_r.c: Likewise.
10311         * nscd/gethstbynm3_r.c: Likewise.
10312         * nscd/getpwnam_r.c: Likewise.
10313         * nscd/getpwuid_r.c: Likewise.
10314         * nscd/getsrvbynm_r.c: Likewise.
10315         * nscd/getsrvbypt_r.c: Likewise.
10316         * nscd/gai.c: Likewise.
10317
10318         * configure.in (build_nscd): New substituted variable, set
10319         by --disable-build-nscd and defaults to $use_nscd.
10320         * configure: Regenerated.
10321         * config.make.in (build-nscd): New substituted variable.
10322         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10323         Change conditional to require [$(build-nscd) = yes] as well.
10324         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10325
10326         [BZ# 13696]
10327         * configure.in (use_nscd): New substituted variable, set by
10328         --disable-nscd.  If enabled, define USE_NSCD.
10329         * configure: Regenerated.
10330         * config.h.in: Add USE_NSCD.
10331         * config.make.in (use-nscd): New substituted variable.
10332         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10333         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10334         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10335         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10336         (CFLAGS-getgrnam_r.c): Likewise.
10337         (CFLAGS-initgroups.c): Likewise.
10338         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10339         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10340         Variables removed.
10341         * inet/getnetgrent_r.c
10342         (nscd_setnetgrent): New function, broken out of ...
10343         (setnetgrent): ... here.  Call it.
10344         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10345         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10346         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10347         * nscd/Makefile (routines, aux): Move definitions after include of
10348         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10349         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10350         Conditionalize on [USE_NSCD].
10351         (is_nscd, nscd_init_cb): Likewise.
10352         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10353         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10354         * nss/nss_db/db-init.c: Likewise.
10355         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10356         [USE_NSCD].
10357         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10358         (make_request): Use it.
10359         (cache_valid_p): New function.
10360         (__check_pf): Use it.
10361         * NEWS: Add item for --disable-nscd.
10362
10363 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10364
10365         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10366         to support sed >= 4.2.1-20-ga9bf076.
10367         * configure: Regenerated.
10368
10369 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10370
10371         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10372         Conditionalize whole body on [IREL].
10373
10374 2012-08-22  Jeff Law <law@redhat.com>
10375
10376         [BZ #14505]
10377         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10378         if the family is PF_UNSPEC.
10379
10380 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10381
10382         * Makerules (lib-version): Rename from V.
10383         (install-lib-nosubdir): Change V to lib-version.
10384
10385 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10386
10387         [BZ #14252]
10388         * powerpc32/power6/wcschr.c: New file.
10389         * powerpc32/power6/wcscpy.c: New file.
10390         * powerpc32/power6/wcsrchr.c: New file.
10391         * powerpc64/power6/wcschr.c: New file.
10392         * powerpc64/power6/wcscpy.c: New file.
10393         * powerpc64/power6/wcsrchr.c: New file.
10394
10395 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10396
10397         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10398         (two_way_short_needle): Use it.
10399         * string/strstr.c (AVAILABLE1_USES_J): Define.
10400         * string/strcasestr.c: Likewise.
10401
10402         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10403         array references.
10404         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10405
10406         [BZ #11607]
10407         * NEWS: Add an entry.
10408         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10409         define their defaults.
10410         (two_way_short_needle): Detect end-of-string on-the-fly.
10411         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10412         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10413         * string/bug-strcasestr1.c: New test.
10414         * string/Makefile: Run it.
10415
10416 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10417
10418         [BZ #11607]
10419         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10420         the first character.
10421
10422 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10423
10424         * csu/elf-init.c (__libc_csu_irel): Function removed.
10425         * csu/libc-start.c (apply_irel): New function.
10426         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10427
10428 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10429
10430         * sysdeps/unix/sysv/linux/kernel-features.h
10431         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10432         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10433         <kernel-features.h>.
10434         [__NR_fadvise64_64]: Make code unconditional.
10435         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10436         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10437         !__NR_fadvise64_64)]: Likewise.
10438         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10439         !__NR_fadvise64_64))]: Likewise.
10440         [__NR_fadvise64]: Make code unconditional.
10441         [!__NR_fadvise64]: Remove conditional code.
10442         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10443         <kernel-features.h>.
10444         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10445         unconditional.
10446         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10447         conditional code.
10448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10449         not include <kernel-features.h>.
10450         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10451         unconditional.
10452         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10453         conditional code.
10454         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10455         include <kernel-features.h>.
10456         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10457         unconditional.
10458         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10459         conditional code.
10460
10461 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10462
10463         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10464         slight instruction rearrangements per scrollpipe analysis.
10465         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10466
10467 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10468
10469         * manual/syslog.texi (syslog; vsyslog, closelog):
10470         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10471         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10472
10473         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10474         DSOCAPS to match condition on defining it.
10475
10476 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10477
10478         * sysdeps/unix/sysv/linux/kernel-features.h
10479         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10481         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10482         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10484         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10485         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10487         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10488         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10489
10490         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10491         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10492
10493         * sysdeps/unix/sysv/linux/kernel-features.h
10494         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10495         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10496         unconditional.
10497         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10498         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10499         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10500         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10501         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10502         Make code unconditional.
10503         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10504         (__mmap64) [!__NR_mmap2]: Likewise.
10505         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10506         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10507         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10508         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10509         [__NR_mmap2]: Make code unconditional.
10510         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10511         (__mmap64) [!__NR_mmap2]: Likewise.
10512
10513 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10514
10515         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10516
10517 2012-08-18  Andreas Jaeger  <aj@suse.de>
10518
10519         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10520
10521 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10522
10523         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10524         * include/unistd.h (__have_sock_cloexec): Likewise.
10525         (__have_pipe2): Likewise.
10526         (__have_dup3): Likewise.
10527
10528 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10529
10530         [BZ #9685]
10531         * include/unistd.h (__have_pipe2): Change define into an extern int.
10532         (__have_dup3): Likewise.
10533         * socket/have_sock_cloexec.c: Include fcntl.h.
10534         (__have_pipe2): New variable.
10535         (__have_dup3): Likewise.
10536
10537 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10538
10539         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10540
10541 2012-08-17  Marek Polacek  <polacek@redhat.com>
10542
10543         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10544         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10545
10546 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10547
10548         * configure.in: Add AC_SUBST for sysheaders.
10549         * configure: Regenerated.
10550         * config.make.in (sysheaders): New substituted variable.
10551
10552         * sysdeps/unix/mkfifo.c: Moved ...
10553         * sysdeps/posix/mkfifo.c: ... here.
10554         * sysdeps/unix/mkfifoat.c: Moved ...
10555         * sysdeps/posix/mkfifoat.c: ... here.
10556
10557         * sysdeps/unix/utime.c: Moved ...
10558         * sysdeps/posix/utime.c: ... here.
10559
10560         * sysdeps/unix/time.c: Moved ...
10561         * sysdeps/posix/time.c: ... here.
10562         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10563         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10564
10565         * sysdeps/unix/nice.c: Moved ...
10566         * sysdeps/posix/nice.c: ... here.
10567
10568         * sysdeps/unix/alarm.c: Moved ...
10569         * sysdeps/posix/alarm.c: ... here.
10570
10571         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10572
10573 2012-08-17  Jeff Law <law@redhat.com>
10574
10575         * intl/Makefile (codeset_mo): New variable.
10576         ($(codeset_mo)): New target.
10577         (tst-codeset.out): Depend on that.  Remove explicit rule.
10578         (tst-gettext3.out, tst-gettext5.out): Likewise.
10579         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10580         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10581         * intl/tst-codeset.sh: Remove.
10582         * intl/tst-gettext3.sh: Likewise.
10583         * intl/tst-gettext5.sh: Likewise.
10584
10585 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10586
10587         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10588         * sysdeps/unix/syscalls.list: ... here.
10589
10590         * sysdeps/posix/getaddrinfo.c
10591         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10592         (gaiconf_init, gaiconf_reload): Use them.
10593         [!_STATBUF_ST_NSEC]
10594         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10595         Define using time_t rather than struct timespec.
10596
10597         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10598         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10599         Macros removed.
10600         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10601         [!NO_THREADS].
10602         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10603         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10604         Likewise.
10605
10606         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10607         __libc_cleanup_push argument.
10608
10609         * bits/param.h: New file.
10610         * misc/sys/param.h: New file.
10611         * include/sys/param.h: New file.
10612         * misc/Makefile (headers): Add bits/param.h.
10613         * sysdeps/generic/sys/param.h: File removed.
10614         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10615         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10616         * sysdeps/mach/hurd/bits/param.h: New file.
10617         * sysdeps/mach/hurd/sys/param.h: File removed.
10618
10619         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10620         last change.
10621
10622         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10623         [_IO_MTSAFE_IO].
10624         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10625         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10626         New macros.
10627
10628         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10629         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10630         rather than -D_IO_MTSAFE_IO conditionally.
10631         * stdio-common/Makefile (CPPFLAGS): Likewise.
10632         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10633         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10634         Use $(libio-mtsafe).
10635         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10636         of -D_IO_MTSAFE_IO.
10637         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10638         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10639         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10640         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10641         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10642         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10643         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10644         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10645         (CFLAGS-fread_u_chk.c): Likewise.
10646         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10647         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10648         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10649         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10650         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10651         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10652         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10653         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10654         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10655
10656         * libio/Makefile: Test [$(libc-reentrant) = yes]
10657         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10658
10659         * Makeconfig
10660         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10661         * sysdeps/pthread/configure: File removed.
10662         * sysdeps/pthread/Makeconfig: New file.
10663         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10664         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10665
10666 2012-08-16  Gary Benson  <gbenson@redhat.com>
10667
10668         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10669         unmapping the first object in a namespace.
10670
10671 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10672
10673         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10674         (__internal_setnetgrent): ... this.  Add internal_function to
10675         definition.  Add libc_hidden_def.
10676         (setnetgrent): Update caller.
10677         (internal_endnetgrent): Renamed to ...
10678         (__internal_endnetgrent): ... this.  Add internal_function to
10679         definition.  Add libc_hidden_def.
10680         (endnetgrent): Update caller.
10681         (internal_getnetgrent_r): Renamed to ...
10682         (__internal_getnetgrent_r): ... this.  Add internal_function to
10683         definition.  Add libc_hidden_def.
10684         (__getnetgrent_r): Update caller.
10685         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10686
10687 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10688
10689         * stdlib/longlong.h: Update from GCC.
10690
10691 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10692
10693         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10694         on _QL, which is set by umul_ppmm but never used.
10695         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10696         variables, which are set by GMP macros but never used.
10697         * stdio-common/_itowa.c (_itowa): Likewise.
10698         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10699         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10700
10701 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10702
10703         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10704         struct La_sh_regs is not constant.
10705         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10706         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10707         and struct La_sparc64_regs are not constant.
10708
10709 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10710
10711         * sysdeps/unix/sysv/linux/kernel-features.h
10712         (__ASSUME_POSIX_TIMERS): Remove.
10713         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10714         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10715         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10716         Make code unconditional.
10717         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10718         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10719         Make code unconditional.
10720         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10721         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10722         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10723         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10724         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10725         Make code unconditional.
10726         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10727         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10728         (__libc_missing_posix_timers): Remove.
10729
10730 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10731
10732         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10733         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10734
10735         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10736
10737         * elf/dl-sym.c: Include <stdlib.h>.
10738
10739         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10740         constants, which avoids warnings in 32-bit builds.
10741
10742         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10743         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10744
10745         * misc/lseek.c: File moved to ...
10746         * io/lseek.c: ... here.
10747
10748         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10749
10750         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10751         shifting LEN more than 31 bits at once.
10752
10753 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10754
10755         [BZ #14195]
10756         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10757         segmentation fault for a case of two empty input strings.
10758         * string/test-strncasecmp.c (check1): Renamed to...
10759         (bz12205): ...this.
10760         (bz14195): Add new testcase for two empty input strings and N > 0.
10761         (test_main): Call new testcase, adapt for renamed function.
10762
10763 2012-08-15  Andreas Jaeger  <aj@suse.de>
10764
10765         [BZ #14090]
10766         * crypt/md5test2.c: New test, based on test supplied by Serge
10767         Belyshev <belyshev@depni.sinp.msu.ru>.
10768         * crypt/Makefile (xtests): Add md5test-giant..
10769         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10770
10771 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10772
10773         [BZ #14090]
10774         * crypt/md5.c (md5_process_block): Don't assume the buffer
10775         length is less than 2**32.
10776         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10777         length is less than 2**64.
10778
10779 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10780
10781         * string/str-two-way.h: Include <sys/param.h>.
10782         (MAX): Macro removed.
10783
10784         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10785         Move #define and #undef of memmove to just before and after
10786         including <string.h>.
10787
10788         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10789         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10790         and after including <string.h>.  Move declarations of
10791         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10792         to before #include "string/memmove.c".
10793
10794         * include/dirent.h: Declare __getdirentries.
10795
10796         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10797         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10798
10799 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10800
10801         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10802         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10803         * sysdeps/i386/configure: Regenerated.
10804         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10805         STABS_CURRENT_FILE, and STABS_FUN.
10806         (END): Remove call to STABS_FUN_END.
10807         (STABS_CURRENT_FILE1): Delete.
10808         (STABS_CURRENT_FILE): Likewise.
10809         (STABS_FUN): Likewise.
10810         (STABS_FUN_END): Likewise.
10811         (STABS_FUN2): Likewise.
10812         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10813         * sysdeps/x86_64/configure: Regenerated.
10814
10815 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10816
10817         * elf/dl-open.c: Include <atomic.h>.
10818         * elf/dl-lookup.c: Likewise.
10819
10820 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10821
10822         * sysdeps/unix/sysv/linux/kernel-features.h
10823         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10824         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10825         unconditionally.
10826         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10827         unconditionally.
10828         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10829         condition on __ASSUME_CLONE_THREAD_FLAGS.
10830
10831 2012-08-14  Andreas Jaeger  <aj@suse.de>
10832
10833         * sysdeps/i386/fpu/libm-test-ulps: Update.
10834
10835 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10836
10837         * include/atomic.h (atomic_exchange_and_add): Split into ...
10838         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10839         New atomic macros.
10840
10841 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10842
10843         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10844
10845 2012-08-13  Jeff Law <law@redhat.com>
10846
10847         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10848         null byte in the output string.
10849
10850 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10851
10852         * sysdeps/unix/sysv/linux/kernel-features.h
10853         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10854         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10855         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10856         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10857         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10858         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10859         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10860
10861 2012-08-09  Jeff Law <law@redhat.com>
10862
10863         [BZ #13939]
10864         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10865         When avoid_arena is set, don't retry in the that arena.  Pick the
10866         next one, whatever it might be.
10867         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10868         (arena_lock): Pass in new parameter to arena_get2.
10869         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10870         arena_get2.
10871         (__libc_malloc): Unify retrying after main arena failure with
10872         __libc_memalign version.
10873         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10874
10875 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10876
10877         [BZ #14166]
10878         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10879         to __redirect_strstr.
10880         (__strstr_sse42): Use typeof __redirect_strstr.
10881         (__strstr_ia32): Likewise.
10882         (__libc_strstr): New prototype.
10883         (strstr): Renamed to ...
10884         (__libc_strstr): This.
10885         (strstr): New strong alias of __libc_strstr.
10886         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10887         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10888         __redirect_time.
10889         Include <time.h>.
10890         (__libc_time): New prototype.
10891         (time_ifunc): Replace time with __libc_time.
10892         (time): New strong alias and hidden definition of __libc_time.
10893         (__GI_time): Remove strong alias.
10894         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10895         Include <stddef.h>.
10896         (memmove): Redefined to __redirect_memmove.
10897         (__memmove_sse2): Use typeof __redirect_memmove.
10898         (__memmove_ssse3): Likewise.
10899         (__memmove_ssse3_back): Likewise.
10900         (__libc_memmove): New prototype.
10901         (memmove): Renamed to ...
10902         (__libc_memmove): This.
10903         (memmove): New strong alias of __libc_memmove.
10904
10905 2012-08-08  Mark Salter  <msalter@redhat.com>
10906
10907         * elf/elf.h
10908         (R_MN10300_TLS_GD): Define.
10909         (R_MN10300_TLS_LD): Likewise.
10910         (R_MN10300_TLS_LDO): Likewise.
10911         (R_MN10300_TLS_GOTIE): Likewise.
10912         (R_MN10300_TLS_IE): Likewise.
10913         (R_MN10300_TLS_LE): Likewise.
10914         (R_MN10300_TLS_DTPMOD): Likewise.
10915         (R_MN10300_TLS_DTPOFF): Likewise.
10916         (R_MN10300_TLS_TPOFF): Likewise.
10917         (R_MN10300_SYM_DIFF): Likewise.
10918         (R_MN10300_ALIGN): Likewise.
10919         (R_MN10300_NUM): Update.
10920
10921 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10922
10923         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10924         Remove.
10925
10926 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10927
10928         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10929
10930         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10931         sysdeps/unix -> sysdeps/posix move.
10932         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10933
10934 2012-08-07      Allan McRae     <allan@archlinux.org>
10935
10936         [BZ #14303]
10937         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10938         (SUNOS_CPP): Likewise.
10939         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10940         not found.
10941         (open_input): Call CPP using execvp.
10942
10943 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10944
10945         * sysdeps/unix/sysv/linux/kernel-features.h
10946         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10947         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10948         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10949         (__ASSUME_WAITID_SYSCALL): Likewise.
10950         * sysdeps/unix/sysv/linux/dl-execstack.c
10951         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10952         code unconditional.
10953         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10954         conditional code.
10955         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10956         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10957         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10958         code.
10959         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10960         unconditional.
10961         [__ASSUME_WAITID_SYSCALL]: Likewise.
10962         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10963
10964 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10965
10966         * sysdeps/unix/closedir.c: Renamed to ...
10967         * sysdeps/posix/closedir.c: ... here.
10968         * sysdeps/unix/dirfd.c: Renamed to ...
10969         * sysdeps/posix/dirfd.c: ... here.
10970         * sysdeps/unix/dirstream.h: Renamed to ...
10971         * sysdeps/posix/dirstream.h: ... here.
10972         * sysdeps/unix/fdopendir.c: Renamed to ...
10973         * sysdeps/posix/fdopendir.c: ... here.
10974         * sysdeps/unix/opendir.c: Renamed to ...
10975         * sysdeps/posix/opendir.c: ... here.
10976         * sysdeps/unix/readdir.c: Renamed to ...
10977         * sysdeps/posix/readdir.c: ... here.
10978         * sysdeps/unix/readdir_r.c: Renamed to ...
10979         * sysdeps/posix/readdir_r.c: ... here.
10980         * sysdeps/unix/rewinddir.c: Renamed to ...
10981         * sysdeps/posix/rewinddir.c: ... here.
10982         * sysdeps/unix/seekdir.c: Renamed to ...
10983         * sysdeps/posix/seekdir.c: ... here.
10984         * sysdeps/unix/telldir.c: Renamed to ...
10985         * sysdeps/posix/telldir.c: ... here.
10986         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10987         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10988         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10989         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10990
10991         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10992         * bits/fcntl.h: ... here.
10993
10994         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10995         not 0.
10996         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10997         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10998         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10999         (struct flock): Move l_start, l_len to the beginning.
11000         Use __pid_t for l_pid.
11001         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11002         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11003         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11004         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11005         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11006         [__USE_LARGEFILE64] (struct flock64): New type.
11007         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11008
11009         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11010         * bits/dirent.h: ... here.
11011
11012         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11013         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11014
11015 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11016
11017         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11018         Change from 2.6.0 to 2.6.16.
11019         * sysdeps/unix/sysv/linux/configure: Regenerated.
11020         * sysdeps/unix/sysv/linux/kernel-features.h
11021         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11022         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11023         version.
11024         (__ASSUME_UTIMES): Likewise.
11025         (__ASSUME_CLONE_STOPPED): Remove.
11026         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11027         architectures, not kernel version.
11028         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11029         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11030         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11031         (__ASSUME_WAITID_SYSCALL): Likewise.
11032         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11033         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11034         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11035         refer to older versions.
11036
11037 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11038
11039         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11040         Define alphasort64 as an alias.
11041         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11042         Define versionsort64 as an alias.
11043         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11044         Define scandir64 as an alias.
11045         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11046         Define scandirat64 as an alias.
11047         * dirent/alphasort64.c (alphasort64):
11048         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11049         * dirent/versionsort64.c: Likewise.
11050         * dirent/scandir64.c: Likewise.
11051         * dirent/scandirat64.c: Likewise.
11052         * sysdeps/wordsize-64/alphasort.c: File removed.
11053         * sysdeps/wordsize-64/alphasort64.c: File removed.
11054         * sysdeps/wordsize-64/scandir.c: File removed.
11055         * sysdeps/wordsize-64/scandir64.c: File removed.
11056         * sysdeps/wordsize-64/scandirat.c: File removed.
11057         * sysdeps/wordsize-64/scandirat64.c: File removed.
11058         * sysdeps/wordsize-64/versionsort.c: File removed.
11059         * sysdeps/wordsize-64/versionsort64.c: File removed.
11060         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11061         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11062         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11063         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11064         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11065         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11066         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11067         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11068
11069         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11070         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11071         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11072         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11073         [defined __arch64__ || defined __sparcv9]
11074         (__INO_T_MATCHES_INO64_T): New macro.
11075         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11076         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11077         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11078         * sysdeps/unix/sysv/linux/bits/dirent.h
11079         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11080         (_DIRENT_MATCHES_DIRENT64): New macro.
11081
11082         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11083         Define lockf64 as an alias.
11084         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11085         Define fseeko64 as an alias.
11086         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11087         Define ftello64 as an alias.
11088         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11089         Define _IO_fgetpos64 and fgetpos64 as aliases.
11090         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11091         Define _IO_fsetpos64 and fsetpos64 as aliases.
11092         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11093         Conditionalize body on this.
11094         * libio/fseeko64.c: Likewise.
11095         * libio/ftello64.c: Likewise.
11096         * libio/iofgetpos64.c: Likewise.
11097         * libio/iofsetpos64.c: Likewise.
11098         * sysdeps/wordsize-64/lockf.c: File removed.
11099         * sysdeps/wordsize-64/lockf64.c: File removed.
11100         * sysdeps/wordsize-64/fseeko.c: File removed.
11101         * sysdeps/wordsize-64/fseeko64.c: File removed.
11102         * sysdeps/wordsize-64/ftello.c: File removed.
11103         * sysdeps/wordsize-64/ftello64.c: File removed.
11104         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11105         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11106         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11107         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11108         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11109         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11110         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11111         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11112         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11113         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11114         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11115         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11116         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11117         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11118
11119         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11120         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11121         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11122         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11123         [defined __arch64__ || defined __sparcv9]
11124         (__OFF_T_MATCHES_OFF64_T): New macro.
11125         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11126         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11127         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11128         (__OFF_T_MATCHES_OFF64_T): New macro.
11129
11130 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11131
11132         * stdlib/secure-getenv.c (__secure_getenv): Replace
11133         GLIBC_2_16 with GLIBC_2_17.
11134
11135 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11136
11137         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11138         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11139
11140 2012-08-03  David S. Miller  <davem@davemloft.net>
11141
11142         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11143
11144 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11145
11146         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11147         Remove.
11148         (__ASSUME_CORRECT_SI_PID): Likewise.
11149         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11150         (__ASSUME_TMPFS_NAME): Likewise.
11151         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11152         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11153         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11154         (HAVE_AUX_SECURE): Make definition unconditional.
11155         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11156         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11157
11158 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11159
11160         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11161         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11162         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11163         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11164         __eloop_threshold instead of SYMLOOP_MAX.
11165
11166         * sysdeps/generic/eloop-threshold.h: New file.
11167         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11168         of MAXSYMLINKS.
11169         * elf/chroot_canon.c (chroot_canon): Likewise.
11170
11171 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11172
11173         [BZ #13717]
11174         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11175         Change to 2.6.0 everywhere.
11176         * sysdeps/unix/sysv/linux/configure: Regenerated.
11177         * sysdeps/unix/sysv/linux/kernel-features.h
11178         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11179         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11180         kernel versions.
11181         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11182         (__ASSUME_FUTEX_REQUEUE): Remove.
11183         (__ASSUME_STATFS64): Define unconditionally.
11184         (__ASSUME_AT_SECURE): Likewise.
11185         (__ASSUME_CORRECT_SI_PID): Likewise.
11186         (__ASSUME_TGKILL): Define without depending on kernel version for
11187         i386.
11188         (__ASSUME_UTIMES): Likewise.
11189         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11190         kernel version.
11191         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11192         (__ASSUME_TMPFS_NAME): Likewise.
11193         * README: Update reference to Linux kernel versions.
11194
11195 2012-08-02  Marek Polacek  <polacek@redhat.com>
11196
11197         [BZ# 14150]
11198         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11199         libc_cv_asm_type_prefix with %.
11200         * configure: Regenerated.
11201         * include/libc-symbols.h: Remove comment about
11202         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11203         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11204         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11205         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11206         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11207         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11208         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11209         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11210         * elf/tst-unique2mod1.c: Likewise.
11211         * elf/tst-unique1mod2.c: Likewise.
11212         * elf/tst-unique1mod1.c: Likewise.
11213         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11214         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11215         Replace ASM_TYPE_DIRECTIVE with .type.
11216         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11217         * sysdeps/i386/sysdep.h: Likewise.
11218         * sysdeps/x86_64/sysdep.h: Likewise.
11219         * sysdeps/sh/sysdep.h: Likewise.
11220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11221         Do not define ASM_TYPE_DIRECTIVE.
11222         * sysdeps/powerpc/sysdep.h: Likewise.
11223         * sysdeps/powerpc/powerpc32/sysdep.h:
11224         Replace ASM_TYPE_DIRECTIVE with .type.
11225         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11226         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11227         * sysdeps/i386/fpu/e_powf.S: Likewise.
11228         * sysdeps/i386/fpu/e_expl.S: Likewise.
11229         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11230         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11231         * sysdeps/i386/fpu/e_pow.S: Likewise.
11232         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11233         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11234         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11235         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11236         * sysdeps/i386/fpu/e_log2.S: Likewise.
11237         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11238         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11239         * sysdeps/i386/fpu/e_powl.S: Likewise.
11240         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11241         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11242         * sysdeps/i386/fpu/e_logl.S: Likewise.
11243         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11244         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11245         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11246         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11247         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11248         * sysdeps/i386/fpu/e_log.S: Likewise.
11249         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11250         * sysdeps/i386/fpu/e_logf.S: Likewise.
11251         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11252         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11253         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11254         * sysdeps/i386/fpu/e_log10.S: Likewise.
11255         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11256         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11257         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11258         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11259         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11260         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11261         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11262         * sysdeps/i386/i686/strtok.S: Likewise.
11263         * sysdeps/i386/i386-mcount.S: Likewise.
11264         * sysdeps/i386/strtok.S: Likewise.
11265         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11266         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11267         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11268         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11269         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11270         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11271         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11272         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11273         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11274         * sysdeps/x86_64/_mcount.S: Likewise.
11275         * sysdeps/x86_64/strtok.S: Likewise.
11276         * sysdeps/sh/_mcount.S: Likewise.
11277
11278 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11279
11280         * libio/iofopen.c: Include <fcntl.h>.
11281         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11282         (_IO_fopen64, fopen64): Define as aliases.
11283         * libio/iofopen64.c: Include <fcntl.h>.
11284         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11285         Conditionalize body on this.
11286         * sysdeps/wordsize-64/iofopen.c: File removed.
11287         * sysdeps/wordsize-64/iofopen64.c: File removed.
11288
11289 2012-08-01  Marek Polacek  <polacek@redhat.com>
11290
11291         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11292         Use dlfcn directly instead of a variable.
11293         (binfmt-subdir): Do not define.
11294         (dlfcn): Likewise.
11295
11296 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11297
11298         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11299         Remove all definitions.
11300         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11301         <kernel-features.h>.
11302         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11303         (miss_F_GETOWN_EX): Remove all definitions.
11304         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11305         macro definition.
11306         [!__ASSUME_FCNTL64]: Remove conditional code.
11307         [__ASSUME_FCNTL64]: Make code unconditional.
11308         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11309         <kernel-features.h>.
11310         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11311         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11312         (lockf64) [__NR_fcntl64]: Make code unconditional.
11313         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11314
11315         * sysdeps/unix/sysv/linux/kernel-features.h
11316         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11317         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11318         Make code unconditional.
11319         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11320         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11322         [__NR_vfork]: Make code unconditional.
11323         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11324         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11326         [__NR_vfork]: Make code unconditional.
11327         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11328         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11329
11330 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11331
11332         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11333         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11334
11335         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11336         Define mkstemp64 as an alias.
11337         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11338         Define mkstemps64 as an alias.
11339         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11340         Define mkostemp64 as an alias.
11341         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11342         Define mkostemps64 as an alias.
11343         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11344         Conditionalize body on this.
11345         * misc/mkostemp64.c: Likewise.
11346         * misc/mkostemps64.c: Likewise.
11347         * misc/mkstemps64.c: Likewise.
11348         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11349         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11350         * sysdeps/wordsize-64/mkostemp.c: File removed.
11351         * sysdeps/wordsize-64/mkstemp.c: File removed.
11352         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11353         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11354         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11355         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11356
11357         [BZ #14138]
11358         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11359         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11360         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11361         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11362
11363         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11364         compat_symbol macros from <shlib-compat.h> rather than the underlying
11365         default_symbol_version and symbol_version macros, so that DEFAULT
11366         lines in shlib-versions are respected.
11367         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11368
11369 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11370
11371         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11372         Declare with warn_unused_result.
11373         (setgid, setregid, setegid, setresgid): Likewise.
11374         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11375         Likewise.
11376         * WUR-REPORT: Remove set*id functions.
11377
11378 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11379
11380         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11381
11382 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11383
11384         [BZ #10191]
11385         * include/sys/socket.h (__libc_accept, __libc_accept4):
11386         Add attribute_hidden.
11387         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11388
11389         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11390         use of PTR_MANGLE.
11391         * inet/getnetgrent_r.c (setup): Likewise.
11392
11393         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11394
11395 2012-07-31  David S. Miller  <davem@davemloft.net>
11396
11397         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11398
11399 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11400
11401         [BZ #13629]
11402         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11403         value between 1.0 and 2.0 and smaller part has absolute value less
11404         than 1.0.
11405         * math/s_clog10.c (__clog10): Likewise.
11406         * math/s_clog10f.c (__clog10f): Likewise.
11407         * math/s_clog10l.c (__clog10l): Likewise.
11408         * math/s_clogf.c (__clogf): Likewise.
11409         * math/s_clogl.c (__clogl): Likewise.
11410         * math/libm-test.inc (clog_test): Add more tests.
11411         (clog10_test): Likewise.
11412         * sysdeps/i386/fpu/libm-test-ulps: Update.
11413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11414
11415 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11416
11417         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11418         Exit with zero in case no suitable GID is found, and write a
11419         message to standard error.
11420
11421 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11422
11423         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11424         rather than to 1.
11425         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11426         (MAXPATHLEN): Removed.
11427         (NOGROUP, NODEV): New macros.
11428         (setbit, clrbit, isset, isclr): New macros.
11429         (howmany, roundup, powerof2): New macros.
11430         (DEV_BSIZE): New macro.
11431
11432         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11433         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11434
11435         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11436         definition on [!__NO_LONG_DOUBLE_MATH].
11437
11438         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11439         PTR_MANGLE and PTR_DEMANGLE.
11440
11441         * socket/accept4.c (accept4): Rename to __libc_accept4.
11442         Define accept4 as a weak alias.
11443
11444         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11445         on [_DIRENT_HAVE_D_TYPE].
11446         * io/ftw.c (ftw_dir): Likewise.
11447
11448         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11449
11450         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11451
11452         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11453         Use the BSD numbers rather than the arbitrary ones we had.
11454         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11455         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11456         (SIGXCPU, SIGXFSZ): New macros.
11457         (_NSIG): Now 32.
11458
11459         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11460         initializer on [_LIBC_REENTRANT].
11461
11462         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11463         definitions inside [_POSIX_MAPPED_FILES].
11464
11465         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11466
11467         * dirent/opendir.c: Include <fcntl.h>.
11468
11469         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11470         (__libc_getspecific): Likewise.
11471         (__libc_key_create): Likewise.
11472
11473         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11474         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11475         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11476         (tmpfile64): Define as alias.
11477         * sysdeps/wordsize-64/tmpfile.c: File removed.
11478         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11479         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11480         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11481
11482         * stdio-common/vfscanf.c: Include <stdbool.h>.
11483         * nss/makedb.c: Likewise.
11484         * stdio-common/_i18n_number.h: Likewise.
11485         * argp/argp-help.c: Likewise.
11486         * posix/wordexp.c: Likewise.
11487         * sysdeps/posix/spawni.c: Likewise.
11488         * nss/nss_files/files-initgroups.c: Likewise.
11489         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11490         * nss/nss_files/files-initgroups.c: Likewise.
11491         * nss/nss_db/db-netgrp.c: Likewise.
11492         * nss/nss_db/db-initgroups.c: Likewise.
11493         * io/fchmodat.c: Include <sys/stat.h>.
11494
11495         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11496         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11497
11498         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11499         [HAVE_MMAP].
11500
11501         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11502         Add multiple inclusion protection.
11503
11504 2012-07-27  David S. Miller  <davem@davemloft.net>
11505
11506         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11507
11508 2012-07-27  Gary Benson  <gbenson@redhat.com>
11509
11510         [BZ #14298]
11511         * elf/rtld.c: Include <stap-probe.h>.
11512         (dl_main): Added static probes "init_start" and "init_complete".
11513         * elf/dl-load.c: Include <stap-probe.h>.
11514         (lose): Take new parameter "nsid".
11515         Added static probe "map_failed".
11516         (_dl_map_object_from_fd): Pass namespace id to lose.
11517         Added static probe "map_start".
11518         (open_verify): Pass namespace id to lose.
11519         * elf/dl-open.c: Include <stap-probe.h>.
11520         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11521         and "reloc_complete".
11522         * elf/dl-close.c: Include <stap-probe.h>.
11523         (_dl_close_worker): Added static probes "unmap_start" and
11524         "unmap_complete".
11525         * elf/rtld-debugger-interface.txt: New file documenting the above.
11526
11527 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11528
11529         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11530         rather than a string variable.
11531         * sunrpc/rpc_main.c (h_output): Likewise.
11532         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11533
11534 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11535
11536         * inet/check_native.c: New file.
11537
11538 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11539
11540         [BZ #13629]
11541         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11542         if larger part has absolute value 1.0.
11543         * math/s_clog10.c (__clog10): Likewise.
11544         * math/s_clog10f.c (__clog10f): Likewise.
11545         * math/s_clog10l.c (__clog10l): Likewise.
11546         * math/s_clogf.c (__clogf): Likewise.
11547         * math/s_clogl.c (__clogl): Likewise.
11548         * math/libm-test.inc (clog_test): Add more tests.
11549         (clog10_test): Likewise.
11550         * sysdeps/i386/fpu/libm-test-ulps: Update.
11551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11552
11553         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11554         (pltexit): Likewise.
11555         (La_regs): Likewise.
11556         (La_retval): Likewise.
11557         (int_retval): Likewise.
11558         Update #error for removed macros to refer only to definitions in
11559         tst-audit.h.
11560         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11561         macro.
11562         (pltexit): Likewise.
11563         (La_regs): Likewise.
11564         (La_retval): Likewise.
11565         (int_retval): Likewise.
11566         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11567         macro.
11568         (pltexit): Likewise.
11569         (La_regs): Likewise.
11570         (La_retval): Likewise.
11571         (int_retval): Likewise.
11572         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11573         macro.
11574         (pltexit): Likewise.
11575         (La_regs): Likewise.
11576         (La_retval): Likewise.
11577         (int_retval): Likewise.
11578         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11579         macro.
11580         (pltexit): Likewise.
11581         (La_regs): Likewise.
11582         (La_retval): Likewise.
11583         (int_retval): Likewise.
11584         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11585         macro.
11586         (pltexit): Likewise.
11587         (La_regs): Likewise.
11588         (La_retval): Likewise.
11589         (int_retval): Likewise.
11590         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11591         macro.
11592         (pltexit): Likewise.
11593         (La_regs): Likewise.
11594         (La_retval): Likewise.
11595         (int_retval): Likewise.
11596         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11597         macro definitions in tst-audit.h.
11598         * sysdeps/i386/tst-audit.h: New file.
11599         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11600         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11601         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11602         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11603         * sysdeps/sh/tst-audit.h: Likewise.
11604         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11605         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11606         * sysdeps/x86_64/tst-audit.h: Likewise.
11607
11608 2012-07-26  Andreas Jaeger  <aj@suse.de>
11609
11610         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11611         ptrace.
11612
11613         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11614         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11615         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11616         PTRACE_O_MASK.
11617         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11618         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11619         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11620
11621         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11622         value.
11623
11624         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11625         _sigsys.
11626         (si_call_addr, si_syscall, si_arch): Define new macro.
11627         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11628         _sigsys.
11629         (si_call_addr, si_syscall, si_arch): Define new marcro.
11630         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11631         _sigsys.
11632         (si_call_addr, si_syscall, si_arch): Define new macro.
11633         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11634         _sigsys.
11635         (si_call_addr, si_syscall, si_arch): Define new macro.
11636
11637 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11638
11639         [BZ #13717]
11640         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11641         Change to 2.4.21 where previously 2.4.1.
11642         * sysdeps/unix/sysv/linux/configure: Regenerated.
11643         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11644         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11645         Linux kernel version.
11646         (__ASSUME_STD_AUXV): Remove.
11647         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11648         kernel version.
11649         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11650         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11651         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11652         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11653         (__ASSUME_NETLINK_SUPPORT): Likewise.
11654         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11655         (__no_netlink_support): Remove conditional definition.
11656         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11657         Remove.
11658         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11659         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11660         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11661         (if_nameindex_ioctl): Remove.
11662         (if_nameindex_netlink): Do not handle __no_netlink_support.
11663         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11664         code.
11665         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11666         Remove conditional code.
11667         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11668         code.
11669         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11670         unconditional.
11671         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11672         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11673         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11674         Remove.
11675         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11676         [!__ASSUME_STD_AUXV]: Remove conditional code.
11677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11678         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11679         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11681         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11682         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11683         code.
11684         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11686         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11687         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11688         conditional code.
11689         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11691         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11692         code.
11693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11694         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11695         conditional code.
11696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11697         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11698         code unconditional.
11699         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11700         conditional code.
11701         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11702         unconditional.
11703         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11704         conditional code.
11705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11706         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11707         unconditional.
11708         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11709         conditional code.
11710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11711         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11712         code unconditional.
11713         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11714         conditional code.
11715         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11716         unconditional.
11717         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11718         conditional code.
11719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11720         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11721         code unconditional.
11722         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11723         conditional code.
11724         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11725         unconditional.
11726         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11727         conditional code.
11728
11729 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11730
11731         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11732         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11733         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11734         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11735         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11736         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11737         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11738         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11739         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11740         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11741         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11742         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11743         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11744         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11745         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11746         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11747         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11748         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11749         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11750         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11751         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11752         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11753         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11754
11755 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11756
11757         * Versions.def: Add GLIBC_2.17.
11758         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11759         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11760         Introduce __libc_secure_getenv.
11761         * stdlib/Versions (2.17): Add secure_getenv
11762         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11763         * stdlib/secure-getenv.c: Rename __secure_getenv to
11764         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11765         symbol __secure_getenv for GLIBC_2.0.
11766         * stdlib/tst-secure-getenv.c: New.
11767         * stdlib/Makefile (tests): Add testcase.
11768         * manual/startup.texi (Environment Access): Document
11769         secure_getenv.
11770         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11771         __libc_secure_getenv.
11772         * inet/ruserpass.c (ruserpass): Likewise.
11773         * malloc/mtrace.c (mtrace): Likewise.
11774         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11775         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11776         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11777         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11778         HAVE_SECURE_GETENV.
11779         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11780         __secure_getenv to __libc_secure_getenv.
11781         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11783         Likewise.
11784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11785         Likewise.
11786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11787         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11788         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11789         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11793
11794 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11797         (struct La_i86_retval): Likewise.
11798         (struct La_x86_64_regs): Likewise.
11799         (struct La_x86_64_retval): Likewise.
11800         (struct La_x32_regs): Likewise.
11801         (struct La_x32_retval): Likewise.
11802         (struct La_ppc32_regs): Likewise.
11803         (struct La_ppc32_retval): Likewise.
11804         (struct La_ppc64_regs): Likewise.
11805         (struct La_ppc64_retval): Likewise.
11806         (struct La_sh_regs): Likewise.
11807         (struct La_sh_retval): Likewise.
11808         (struct La_s390_32_regs): Likewise.
11809         (struct La_s390_32_retval): Likewise.
11810         (struct La_s390_64_regs): Likewise.
11811         (struct La_s390_64_retval): Likewise.
11812         (struct La_sparc32_regs): Likewise.
11813         (struct La_sparc32_retval): Likewise.
11814         (struct La_sparc64_regs): Likewise.
11815         (struct La_sparc64_retval): Likewise.
11816         (struct audit_ifaces): Remove architecture-specific pltenter and
11817         pltexit members.
11818         * sysdeps/i386/ldsodefs.h: New file.
11819         * sysdeps/powerpc/ldsodefs.h: Likewise.
11820         * sysdeps/s390/ldsodefs.h: Likewise.
11821         * sysdeps/sh/ldsodefs.h: Likewise.
11822         * sysdeps/sparc/ldsodefs.h: Likewise.
11823         * sysdeps/x86_64/ldsodefs.h: Likewise.
11824
11825 2012-07-25  Marek Polacek  <polacek@redhat.com>
11826
11827         [BZ #6808]
11828         * math/libm-test.inc (yn_test): Add another test.
11829         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11830         to ERANGE when the result is +-Inf.
11831         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11832         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11833         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11834         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11835
11836 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11837
11838         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11839         equal to 0.
11840         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11841         clock_t.
11842         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11843
11844 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11845
11846         * configure.in <sysdeps resolving>: Correct printing
11847         Implies_before.
11848         * configure: Regenerate.
11849
11850 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11851
11852         * math/w_ilogb.c: Include <limits.h>.
11853         * math/w_ilogbl.c: Likewise.
11854
11855 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11856
11857         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11858         va_copy.  Document allowing for unavailable va_copy only as
11859         pre-C99 compatibility.
11860         * manual/string.texi (Copying and Concatenation): Use va_copy
11861         instead of __va_copy in concat example.
11862
11863 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11864
11865         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11866         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11867         it if not null.
11868
11869         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11870         with O_NOLINK passed to __file_name_lookup.
11871
11872         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11873         with O_NOLINK passed to __file_name_lookup.
11874
11875         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11876         negative N or less than NGIDS.
11877
11878         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11879         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11880         enough.  Use memcpy instead of strncpy.
11881
11882 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11883
11884         * elf/Makefile (check-data): Remove.
11885         (localplt.data): New vpath directive.
11886         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11887         instead of $(check-data).
11888         * scripts/data/localplt-generic.data: Move to ...
11889         * sysdeps/generic/localplt.data: ... here.
11890         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11891         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11892         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11894         ... here.
11895         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11897         ... here.
11898         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11899         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11900         ... here.
11901         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11902         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11903         ... here.
11904         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11906         ... here.
11907         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11909         ... here.
11910
11911 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11912
11913         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11914         PPC32 and PPC64 files.
11915         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11916         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11917
11918 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11919
11920         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11921         __makecontext_ret to ...
11922         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11923         ... here and call exit if uc_link is NULL.  New file.
11924         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11925         __makecontext_ret.S.
11926         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11927         __makecontext_ret to ...
11928         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11929         ... here and call exit if uc_link is NULL.  New file.
11930         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11931         __makecontext_ret.S.
11932
11933 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11934
11935         * elf/elf.h (R_390_IRELATIVE): New definition.
11936         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11937         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11938         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11939         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11940         (elf_machine_lazy_rel): Likewise.
11941         * sysdeps/s390/dl-irel.h: New file.
11942         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11943         * sysdeps/s390/s390-64/memset.S: New asm code.
11944         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11945         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11946         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11947         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11948         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11949         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11950         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11951         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11952         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11953         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11954         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11955         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11956         * sysdeps/s390/s390-32/memset.S: New asm code.
11957         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11958
11959 2012-07-17  Marek Polacek  <polacek@redhat.com>
11960
11961         [BZ #14349]
11962         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11963         * sysdeps/s390/s390-64/configure.in: Likewise.
11964         * sysdeps/sparc/configure.in: Likewise.
11965         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11966         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11967         * sysdeps/i386/configure.in: Likewise.
11968         * sysdeps/x86_64/configure.in: Likewise.
11969         * sysdeps/sh/configure.in: Likewise.
11970         * sysdeps/s390/s390-32/configure: Regenerated.
11971         * sysdeps/s390/s390-64/configure: Likewise.
11972         * sysdeps/x86_64/configure: Likewise.
11973         * sysdeps/sh/configure: Likewise.
11974         * sysdeps/powerpc/powerpc64/configure: Likewise.
11975         * sysdeps/powerpc/powerpc32/configure: Likewise.
11976         * sysdeps/sparc/configure: Likwise.
11977         * sysdeps/i386/configure: Likewise.
11978
11979         * elf/dl-open.c: Comment fixes.
11980
11981 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11982
11983         * Makefile [CXX] (check-data): Remove.
11984         [CXX] (c++-types.data): New vpath directive.
11985         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11986         vpath.  Do not allow for C++ type data being missing.
11987         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11988         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11989         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11990         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11991         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11992         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11993         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11995         ... here.
11996         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11998         ... here.
11999         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12000         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12001         ... here.
12002         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12003         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12004         ... here.
12005         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12006         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12007         ... here.
12008         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12010         ... here.
12011         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12012         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12013         ... here.
12014         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12016
12017         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12018         definitions to architecture-specific files.
12019         (TLS_IE): Likewise.
12020         (TLS_LD): Likewise.
12021         (TLS_GD): Likewise.
12022         * sysdeps/i386/tls-macros.h: New file.
12023         * sysdeps/powerpc/tls-macros.h: Likewise.
12024         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12025         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12026         * sysdeps/sh/tls-macros.h: Likewise.
12027         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12028         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12029         * sysdeps/x86_64/tls-macros.h: Likewise.
12030
12031 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12032
12033         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12034         zero value for regular exit case.
12035
12036         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12037         (__start_context): Preserve zero value for regular exit case.
12038
12039 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12040             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12041
12042         * manual/setjmp.texi (setcontext): Clarify normal process
12043         termination when uc_link is the null pointer.
12044         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12045         exit call.
12046
12047 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12048
12049         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12050         preprocessor.  Test for each exception mask separately.
12051
12052 2012-07-16  Andreas Jaeger  <aj@suse.de>
12053
12054         * po/ru.po: Update from translation team.
12055
12056 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12057
12058         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12059         equal to 0.
12060         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12061         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12062         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12063         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12064         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12065
12066 2012-07-13  Andreas Jaeger  <aj@suse.de>
12067
12068         * po/fr.po: Update from translation team.
12069
12070 2012-07-12  Marek Polacek  <polacek@redhat.com>
12071
12072         [BZ #14173]
12073         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12074         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12075         loop condition.
12076
12077 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12078
12079         [BZ #13717]
12080         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12081         Change to 2.4.1 where previously 2.4.0.
12082         * sysdeps/unix/sysv/linux/configure: Regenerated.
12083         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12084         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12085         version.
12086         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12087         (__ASSUME_AT_CLKTCK): Remove.
12088         (__ASSUME_AT_PAGESIZE): Likewise.
12089         (__ASSUME_AT_XID): Likewise.
12090         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12091         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12092         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12093         unconditionally.
12094         (HAVE_AUX_PAGESIZE): Likewise.
12095         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12096         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12097         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12098
12099 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12100
12101         [BZ #14307]
12102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12103         the temporary buffer used to invoke __gethostbyname2_r,
12104         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12105         host_data / struct gaih_addrtuple.
12106         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12107         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12108         header file nss/nsswitch.h.
12109         * nss/nsswitch.h (global scope): Add definition of implementation
12110         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12111         resolv/nss_dns/dns-host.c).
12112
12113 2012-07-11  Andreas Jaeger  <aj@suse.de>
12114
12115         * po/fr.po: Update from translation team.
12116
12117         * po/sv.po: Update from translation team
12118         * po/fr.po: Another update from translation team.
12119
12120 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12121
12122         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12123         for subnormals or multiply small sinh result by itself.
12124         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12126
12127 2012-07-11  David S. Miller  <davem@davemloft.net>
12128
12129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12130
12131 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12132
12133         [BZ #14347]
12134         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12135         (INTERNAL_MARK): Shift it here.
12136
12137 2012-07-10  Marek Polacek  <polacek@redhat.com>
12138
12139         [BZ #14151]
12140         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12141         libc_cv_asm_global_directive with .globl.
12142         * configure: Regenerated.
12143         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12144         with .globl.
12145         * sysdeps/i386/configure: Regenerated.
12146         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12147         with .globl.
12148         * sysdeps/x86_64/configure: Regenerated.
12149         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12150         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12151         * elf/tst-unique2mod2.c: Likewise.
12152         * elf/tst-unique2mod1.c: Likewise.
12153         * elf/tst-unique1mod2.c: Likewise.
12154         * elf/tst-unique1mod1.c: Likewise.
12155         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12156         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12157         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12158         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12159         * sysdeps/mach/sysdep.h: Likewise.
12160         * sysdeps/i386/sysdep.h: Likewise.
12161         * sysdeps/i386/i386-mcount.S: Likewise.
12162         * sysdeps/x86_64/_mcount.S: Likewise.
12163         * sysdeps/x86_64/sysdep.h: Likewise.
12164         * sysdeps/sh/_mcount.S: Likewise.
12165         * sysdeps/sh/sysdep.h: Likewise.
12166         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12167         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12168         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12169         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12170         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12171         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12172         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12173         * locale/localeinfo.h: Likewise.
12174         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12175         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12176
12177 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12178
12179         [BZ #14336]
12180         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12181         system".
12182         * manual/message.texi (The Uniforum approach): Likewise.
12183         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12184         (glibc iconv Implementation): Likewise.
12185
12186 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12187
12188         [BZ #14337]
12189         * math/s_clog.c (__clog): Avoid scaling a value down where that
12190         could result in underflow.
12191         * math/s_clog10.c (__clog10): Likewise.
12192         * math/s_clog10f.c (__clog10f): Likewise.
12193         * math/s_clog10l.c (__clog10l): Likewise.
12194         * math/s_clogf.c (__clogf): Likewise.
12195         * math/s_clogl.c (__clogl): Likewise.
12196         * math/libm-test.inc (clog_test): Add more tests.
12197         (clog10_test): Likewise.
12198         * sysdeps/i386/fpu/libm-test-ulps: Update.
12199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12200
12201 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12202
12203         [BZ #14283]
12204         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12205         by 7 not 8 to examine high bit of fractional part.
12206
12207         [BZ #14042]
12208         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12209         for call to __mcount_internal.
12210         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12211         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12212         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12213
12214 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12215
12216         [BZ #14154]
12217         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12218         approximation for values within 0x1p-13f of an odd multiple of
12219         pi/4.
12220         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12221         exception.  Add more tests.
12222         * sysdeps/i386/fpu/libm-test-ulps: Update.
12223
12224         [BZ #6778]
12225         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12226         inputs and return -1 for them.  Do not check for +Inf in case not
12227         reachable for +Inf.
12228         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12229         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12230         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12231         and return -1 for them.  Do not check for +Inf in case not
12232         reachable for +Inf.
12233         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12234         define.
12235         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12236         and return -1 for them.  Do not check for +Inf in case not
12237         reachable for +Inf.
12238         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12239         spurious underflow.
12240         * sysdeps/i386/fpu/libm-test-ulps: Update.
12241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12242
12243 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12244
12245         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12246
12247 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12248
12249         [BZ #14157]
12250         [BZ #14331]
12251         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12252         could result in spurious underflow.  Scale down values above
12253         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12254         * math/s_csqrtf.c (__csqrtf): Likewise.
12255         * math/s_csqrtl.c (__csqrtl): Likewise.
12256         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12257         spurious underflow.
12258         * sysdeps/i386/fpu/libm-test-ulps: Update.
12259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12260
12261 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12262
12263         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12264         xopen-msg.sed.
12265         * catgets/xopen-msg.awk: New file.
12266         * catgets/xopen-msg.sed: Removed.
12267
12268         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12269         po2text.sed.
12270         * intl/po2test.awk: New file.
12271         * intl/po2test.sed: Removed.
12272
12273 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12274
12275         [BZ #14328]
12276         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12277         or multiply small sinh result by itself.
12278         * math/s_ctanf.c (__ctanf): Likewise.
12279         * math/s_ctanh.c (__ctanh): Likewise.
12280         * math/s_ctanhf.c (__ctanhf): Likewise.
12281         * math/s_ctanhl.c (__ctanhl): Likewise.
12282         * math/s_ctanl.c (__ctanl): Likewise.
12283         * math/libm-test.inc (ctan_test_tonearest): New function.
12284         (ctan_test_towardzero): Likewise.
12285         (ctan_test_downward): Likewise.
12286         (ctan_test_upward): Likewise.
12287         (ctanh_test_tonearest): Likewise.
12288         (ctanh_test_towardzero): Likewise.
12289         (ctanh_test_downward): Likewise.
12290         (ctanh_test_upward): Likewise.
12291         (main): Call these new functions.
12292         * sysdeps/i386/fpu/libm-test-ulps: Update.
12293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12294
12295 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12296
12297         * .gitignore: Delete /ports entry.
12298
12299 2012-07-03  Andreas Jaeger  <aj@suse.de>
12300
12301         * po/bg.po: Update from translation team.
12302         * po/cs.po: Likewise.
12303         * po/de.po: Likewise.
12304         * po/hr.po: Likewise.
12305         * po/nl.pl: Likewise.
12306         * po/pl.po: Likewise.
12307         * po/vi.po: Likewise.
12308
12309 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12310
12311         * Makeconfig [!+link] (+link-before-libc): New variable.
12312         [!+link] (+link-after-libc): Likewise.
12313         [!+link] (+link-tests): Likewise.
12314         [!+link] (+link): Define in terms of $(+link-before-libc) and
12315         $(+link-after-libc).
12316         [!+link-static] (+link-static-before-libc): New variable.
12317         [!+link-static] (+link-static-after-libc): Likewise.
12318         [!+link-static] (+link-static-tests): Likewise.
12319         [!+link-static] (+link-static): Define in terms of
12320         $(+link-static-before-libc) and $(+link-static-after-libc).
12321         [build-shared] (link-libc-before-gnulib): New variable.
12322         [build-shared] (link-libc-tests): Likewise.
12323         [build-shared] (link-libc): Define in terms of
12324         $(link-libc-before-gnulib).
12325         [!build-shared] (link-libc-tests): New variable.
12326         (link-libc-static-tests): New variable.
12327         [!gnulib] (gnulib-arch): New variable.
12328         [!gnulib] (gnulib-tests): Likewise.
12329         [!gnulib] (static-gnulib-arch): Likewise.
12330         [!gnulib] (static-gnulib-tests): Likewise.
12331         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12332         Define with "=" instead of ":=".
12333         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12334         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12335         * Rules (binaries-all-notests): New variable.
12336         (binaries-all-tests): Likewise.
12337         (binaries-static-notests): Likewise.
12338         (binaries-static-tests): Likewise.
12339         (binaries-all): Define using $(binaries-all-notests) and
12340         $(binaries-all-tests).
12341         (binaries-static): Define using $(binaries-static-notests) and
12342         $(binaries-static-tests).
12343         (binaries-shared-tests): New variable.
12344         (binaries-shared-notests): Likewise.
12345         (binaries-shared): Remove variable.
12346         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12347         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12348         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12349         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12350         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12351         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12352         * elf/Makefile (sln-modules): New variable.
12353         (extra-objs): Add $(sln-modules:=.o).
12354         (ldconfig-modules): Add static-stubs.
12355         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12356         * elf/static-stubs.c: New file.
12357
12358         [BZ #14283]
12359         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12360         by 7 not 8 to examine high bit of fractional part.  Use volatile
12361         variables when splitting into final array of floats if
12362         __FLT_EVAL_METHOD__ != 0.
12363         * math/libm-test.inc (cos_test): Add another test.
12364         (sin_test): Likewise.
12365         * sysdeps/i386/fpu/libm-test-ulps: Update.
12366
12367         [BZ #14273]
12368         * math/libm-test.inc (cosh_test): Add more tests.
12369
12370         * version.h (RELEASE): Set to "development".
12371         (VERSION): Set to "2.16.90".
12372
12373 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12374
12375         * NEWS: Update copyright. Remove last-updated date.
12376         Mention math library bug fixes and timezone data changes.
12377         * README: Mention GNU/Hurd, x32, and HPPA support status.
12378
12379 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12380
12381         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12382
12383 2012-06-27  Andreas Jaeger  <aj@suse.de>
12384
12385         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12386
12387 2012-06-25  Andreas Jaeger  <aj@suse.de>
12388
12389         * sysdeps/s390/fpu/libm-test-ulps: Update.
12390
12391 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12392             Thomas Schwinge  <thomas@codesourcery.com>
12393
12394         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12395         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12396         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12397         fanotify_mark.
12398
12399 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12400
12401         * sysdeps/mach/start.c: Remove file.
12402         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12403         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12404         * sysdeps/sh/init-first.c: Likewise.
12405
12406         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12407         registers for frame unwinding purposes, add CFI directives.
12408         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12409         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12410         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12411         Likewise.
12412
12413         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12414         __fortify_fail returning.
12415         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12416
12417         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12418         sysdeps/sh/____longjmp_chk.S.
12419         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12420         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12421         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12422         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12423
12424         * sysdeps/sh/abort-instr.h: New file.
12425         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12426         process in case exit returns.
12427
12428         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12429         initialize the GOT register before use.
12430
12431         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12432         calculation of ARGC > 4.
12433
12434         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12435         meaningful names to some local labels.
12436
12437 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12438             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12439
12440         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12441         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12442         (__arch_compare_and_exchange_val_16_acq): Likewise.
12443         (__arch_compare_and_exchange_val_32_acq): Likewise.
12444         (atomic_exchange_and_add): Fix gUSA sequence.
12445         (atomic_add): Likewise.
12446         (atomic_add_negative): Likewise.
12447         (atomic_add_zero): Likewise.
12448         (atomic_bit_test_set): Likewise.
12449
12450 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12451
12452         [BZ #13579]
12453         * include/link.h (struct link_map): Add l_free_initfini.
12454         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12455         l_initfini.
12456         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12457         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12458         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12459         set.
12460
12461 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12462
12463         * configure.in: Use AC_LANG_SOURCE.
12464         * configure: Regenerate.
12465
12466 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12467
12468         * configure.in (libc_cv_localstatedir): New substituted variable.
12469         * configure: Regenerated.
12470         * config.make.in (localstatedir): New variable, substituted from
12471         libc_cv_localstatedir.
12472         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12473         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12474         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12475         * sysdeps/gnu/configure: Regenerated.
12476
12477 2012-06-21  Jeff Law  <law@redhat.com>
12478
12479         [BZ #14277]
12480         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12481         free.  Simplify list management for _LIBC case.
12482
12483 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12484
12485         [BZ #14273]
12486         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12487         Clear sign bit of 64-bit integer value before comparing against
12488         overflow value.
12489
12490         * sysdeps/mach/configure: Regenerated.
12491
12492 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12493
12494         [BZ #14278]
12495         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12496
12497 2012-06-21  Jeff Law  <law@redhat.com>
12498
12499         [BZ #13882]
12500         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12501         uint16_t for elements in the "seen" array to avoid char overflows.
12502         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12503         * elf/dl-open.c (dl_open_worker): Likewise.
12504
12505 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12506
12507         * scripts/list-sources.sh: Scan PORTS for translations.
12508         * po/libc.pot: Regenerated.
12509
12510 2012-06-21  Andreas Jaeger  <aj@suse.de>
12511
12512         [BZ #12194]
12513         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12514         warning.
12515         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12516         * bits/byteswap-16.h (__bswap_16): Likewise.
12517         * bits/byteswap.h (__bswap_constant_16): Likewise.
12518
12519 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12520
12521         [BZ #14117]
12522         * sysdeps/i386/fpu_control.h: Removed.
12523         * sysdeps/x86_64/fpu_control.h: Moved to ...
12524         * sysdeps/x86/fpu_control.h: Here.
12525
12526         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12527         (_FPU_SETCW): Likewise.
12528
12529 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         [BZ #14117]
12532         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12533         * sysdeps/x86/fpu/bits/mathinline.h: This.
12534         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12535
12536         [BZ #14050]
12537         [BZ #14117]
12538         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12539         functions if __x86_64__ is defined.
12540
12541 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12542
12543         * string/endian.h: Add !__ASSEMBLER__ condition for including
12544         conversion interfaces.
12545
12546 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12547
12548         [BZ #14241]
12549         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12550         of ABS(x) in calculating zero to negative powers other than odd
12551         integers.
12552         * math/libm-test.inc (pow_test): Add more tests.
12553
12554 2012-06-15  Andreas Jaeger  <aj@suse.de>
12555
12556         * manual/contrib.texi (Contributors): Update entry of Liubov
12557         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12558         Machado Filho.
12559
12560 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12561
12562         * string/string.h: Add __wur to GNU version of strerror_r.
12563
12564 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12565
12566         [BZ #14229]
12567         * string/Makefile (tests): Add tst-strtok_r.
12568         * string/tst-strtok_r.c: New file.
12569         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12570         RAX_LP/RDX_LP on SAVE_PTR.
12571
12572 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12573
12574         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12575
12576 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * libm_test.inc (csqrt_test): Allow more spurious underflow
12579         exceptions.
12580         (j0_test): Likewise.
12581         (j1_test): Likewise.
12582         (y0_test): Likewise.
12583         (y1_test): Likewise.
12584
12585 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12586
12587         * po/Makefile (libc.pot): Use UTF-8 charset.
12588
12589 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12590
12591         [BZ #14210]
12592         Suppress sign-conversion warning from FD_SET.
12593         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12594         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12595         not unsigned long int.
12596         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12597
12598 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12599
12600         [BZ #14050]
12601         [BZ #14117]
12602         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12603         __extern_always_inline instead of __extern_inline.
12604         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12605         (__signbit): Likewise.
12606         (__signbitl): Support C++ namespace.
12607         (lrintf): New inline function.
12608         (lrint): Likewise.
12609         (llrintf): Likewise.
12610         (llrint): Likewise.
12611         (fmaxf): Likewise.
12612         (fmax): Likewise.
12613         (fminf): Likewise.
12614         (fmin): Likewise.
12615         (rint): Likewise.
12616         (rintf): Likewise.
12617         (ceil): Likewise.
12618         (ceilf): Likewise.
12619         (floor): Likewise.
12620         (floorf): Likewise.
12621         (nearbyint): Likewise.
12622         (nearbyintf): Likewise.
12623
12624 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12625
12626         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12627         non-default versions.
12628
12629 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12630
12631         [BZ #14218]
12632         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12633
12634 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12635
12636         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12637         (FE_UPWARD, FE_DOWNWARD): Don't define.
12638         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12639         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12640
12641         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12642         reading it.
12643         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12644         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12645
12646 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12647
12648         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12649         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12650         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12651         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12652
12653 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12654
12655         [BZ #14117]
12656         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12657         * sysdeps/i386/fpu/Implies: New file.
12658         * sysdeps/x86_64/fpu/Implies: Likewise.
12659         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12660         * sysdeps/x86/fpu/bits/fenv.h: This.
12661
12662         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12663         __SSE_MATH__.
12664
12665 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12666
12667         [BZ #14134]
12668         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12669         character 0xffff that matches the last element of the
12670         conversion table.
12671
12672 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12673
12674         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12675         fmodl commit.
12676
12677 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12678
12679         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12680         values higher than 25.6283.
12681
12682 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12683
12684         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12685         subnormal exponent extraction and add some __builtin_expect.
12686         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12687         Fix for subnormal mantissa calculation.
12688
12689 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12690
12691         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12692         cpu2 is -1 and errno is not ENOSYS.
12693
12694 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12695
12696         [BZ #14117]
12697         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12698         * sysdeps/x86/bits/string.h: This.
12699         * sysdeps/x86_64/bits/string.h: Removed.
12700
12701         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12702         if not compiling for x86-64, but compiling for >= i486.
12703
12704         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12705         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12706
12707         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12708         New macro from Linux kernel 3.4.0.
12709         (FP_XSTATE_MAGIC2): Likewise.
12710         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12711         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12712         (struct _fpx_sw_bytes): New struct.
12713         (struct _xsave_hdr): Likewise.
12714         (struct _ymmh_state): Likewise.
12715         (struct _xstate): Likewise.
12716
12717         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12718         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12719         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12720         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12721         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12722         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12723
12724         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12725         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12726         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12727         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12728         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12729         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12730
12731 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12732
12733         [BZ #13743]
12734         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12735         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12736         (sysdep_headers): Include sys/platform/ppc.h.
12737         * sysdeps/powerpc/test-gettimebase.c: Test for
12738         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12739         * manual/Makefile (appendices): Include platform.texi.
12740         * manual/contrib.texi (Contributors): Update @node pointers.
12741         * manual/maint.texi (Maintenance): Likewise.
12742         (Platform): New node.
12743         * manual/platform.texi: New file.  Document the new features.
12744
12745 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12746             Jakub Jelinek  <jakub@redhat.com>
12747
12748         [BZ #14188]
12749         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12750         where __builtin_expect is unavailable.
12751
12752 2012-06-03  David S. Miller  <davem@davemloft.net>
12753
12754         * stdlib/longlong.h: Updated from GCC.
12755
12756 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12757
12758         [BZ #14042]
12759         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12760         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12761         __mcount_internal.
12762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12763         (GLIBC_2.16): Likewise.
12764
12765 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12766
12767         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12768
12769 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12770
12771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12772         (default-abi): New variable.
12773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12774         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12775         variable.
12776         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12777         Likewise.
12778         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12779         Likewise.
12780         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12781         Likewise.
12782
12783         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12784         definition.  Document in comment.
12785
12786 2012-06-01  David S. Miller  <davem@davemloft.net>
12787
12788         * stdlib/longlong.h: Updated from GCC.
12789
12790 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12791
12792         [BZ #14117]
12793         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12794         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12795         sys/debugreg.h sys/io.h here.
12796         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12797         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12798         sys/io.h.
12799         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12800         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12801         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12802         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12803         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12804         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12805
12806         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12807         Define only if __x86_64__ is defined.
12808
12809 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12810
12811         [BZ #14048]
12812         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12813         Use int64_t for variable i.
12814         * math/libm-test.inc (fmod_test): Add more tests.
12815
12816         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12817         z computation is not scheduled after fetestexcept.
12818         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12819         Use math_force_eval instead of asm to ensure calculation scheduled
12820         before exception test.
12821         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12822         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12823
12824 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12825
12826         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12827         computation is not scheduled after fetestexcept.
12828
12829 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12830
12831         [BZ #14117]
12832         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12833         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12834
12835 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12836
12837         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12838         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12839
12840 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12841
12842         [BZ #14117]
12843         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12844         <bits/wordsize.h>.
12845         (__WCHAR_MIN): Support __WORDSIZE == 64.
12846         (__WCHAR_MAX): Likewise.
12847
12848         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12849         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12850
12851         [BZ #14183]
12852         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12853         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12854
12855         [BZ #14117]
12856         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12857         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12858
12859         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12860         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12861
12862         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12863         Defined to 1 if __x86_64__ isn't defined.
12864         (_STAT_VER_LINUX_OLD): New.
12865         (st_atime): Remove duplicate.
12866         (st_mtime): Likewise.
12867         (st_ctime): Likewise.
12868
12869 2012-05-31  David S. Miller  <davem@davemloft.net>
12870
12871         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12872         entries.
12873
12874 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12875
12876         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12877         gen-libm-test.pl.
12878
12879         [BZ #14132]
12880         * elf/dl-reloc.c: Include <_itoa.h>.
12881         (_dl_reloc_bad_type): Remove use of INTUSE.
12882         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12883         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12884         * stdio-common/psiginfo.c (psiginfo): Likewise.
12885         * stdio-common/psignal.c (psignal): Likewise.
12886         * string/strsignal.c (strsignal): Likewise.
12887         * include/signal.h (_sys_siglist): Declare hidden proto.
12888         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12889         INTVARDEF with libc_hidden_data_def.
12890         * stdio-common/itoa-udigits.c: Likewise.
12891         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12892         (_itoa_lower_digits_internal): Remove declaration.
12893         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12894         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12895         (_sys_sigabbrev_internal): Remove aliases.
12896         (_sys_siglist): Define hidden alias.
12897
12898 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12899
12900         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12901         bits/sysctl.h.
12902
12903 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12904
12905         [BZ #14117]
12906         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12907         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12908
12909         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12910         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12911         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12912         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12913         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12914         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12915
12916         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12917         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12918         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12919
12920         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12921         with __addr.
12922         (insw): Likewise.
12923         (insl): Likewise.
12924         (outsb): Likewise.
12925         (outsw): Likewise.
12926         (outsl): Likewise.
12927
12928         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12929         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12930         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12931
12932         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12933         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12934         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12935         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12936         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12937         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12938
12939         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12940         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12941
12942         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12943         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12944
12945         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12946         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12947         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12948
12949         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12950         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12951         to ...
12952         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12953
12954         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12955         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12956         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12957
12958         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12959         for x86-64.
12960         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12961
12962 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12963
12964         * math/math.h (M_El): Use two more decimal places.
12965         (M_LOG2El): Likewise.
12966         (M_LOG10El): Likewise.
12967         (M_LN2l): Likewise.
12968         (M_LN10l): Likewise.
12969         (M_PIl): Likewise.
12970         (M_PI_2l): Likewise.
12971         (M_PI_4l): Likewise.
12972         (M_1_PIl): Likewise.
12973         (M_2_PIl): Likewise.
12974         (M_2_SQRTPIl): Likewise.
12975         (M_SQRT2l): Likewise.
12976         (M_SQRT1_2l): Likewise.
12977
12978 2012-05-31  David S. Miller  <davem@davemloft.net>
12979
12980         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12981         values between float registers.
12982         * sysdeps/sparc/sparc64/memset.S: Likewise.
12983         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12984
12985 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12986
12987         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12988         -D_FORTIFY_SOURCE=1.
12989         (CPPFLAGS-tst-longjmp_chk.c): Define.
12990         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12991         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12992         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12993         CFLAGS-tst-wchar-h.c.
12994
12995 2012-05-31  Marek Polacek  <polacek@redhat.com>
12996
12997         [BZ #14132]
12998         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12999         __endmntent_internal): Remove declaration.
13000         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13001         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13002         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13003
13004 2012-05-30  David S. Miller  <davem@davemloft.net>
13005
13006         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13007         (___Q_simulate_exceptions): Use real FP ops rather than writing
13008         into the %fsr.
13009         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13010         Likewise.
13011
13012 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13013
13014         [BZ #14117]
13015         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13016         * sysdeps/x86/bits/xtitypes.h: This.
13017
13018         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13019         * sysdeps/x86/bits/wordsize.h: This.
13020
13021         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13022         * sysdeps/x86/bits/huge_vall.h: This.
13023
13024         * sysdeps/i386/bits/select.h: Removed.
13025         * sysdeps/x86_64/bits/select.h: Renamed to ...
13026         * sysdeps/x86/bits/select.h: This.
13027
13028         * sysdeps/i386/bits/setjmp.h: Removed.
13029         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13030         * sysdeps/x86/bits/setjmp.h: This.
13031
13032         * sysdeps/i386/bits/mathdef.h: Removed.
13033         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13034         * sysdeps/x86/bits/mathdef.h: This.
13035
13036 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13037
13038         [BZ #14132]
13039         * include/sys/socket.h (__connect_internal)
13040         (__libc_sa_len_internal): Remove declaration.
13041         (__connect, __libc_sa_len): Declare hidden_proto.
13042         (SA_LEN): Remove use of INTUSE.
13043         * socket/connect.c: Add libc_hidden_def.
13044         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13045         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13046         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13047         alias.
13048         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13049         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13050         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13051         of adding _internal alias.
13052
13053 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13054
13055         [BZ #14117]
13056         * sysdeps/i386/bits/link.h: Removed.
13057         * sysdeps/i386/bits/linkmap.h: Likewise.
13058         * sysdeps/x86_64/bits/link.h: Renamed to ...
13059         * sysdeps/x86/bits/link.h: This.
13060         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13061         * sysdeps/x86/bits/linkmap.h: This.
13062
13063         * sysdeps/i386/bits/endian.h: Removed.
13064         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13065         * sysdeps/x86/bits/endian.h: This.
13066
13067         * sysdeps/i386/bits/byteswap.h: Removed.
13068         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13069         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13070         * sysdeps/x86/bits/byteswap.h: This.
13071         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13072         * sysdeps/x86/bits/byteswap-16.h: This.
13073         * sysdeps/i386/Implies: Add x86.
13074         * sysdeps/x86_64/Implies: Likewise.
13075
13076 2012-05-30  David S. Miller  <davem@davemloft.net>
13077
13078         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13079         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13080         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13081         (FP_TRAPPING_EXCEPTIONS): Define.
13082         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13083         (FP_TRAPPING_EXCEPTIONS): Define.
13084         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13085         subnormals only when inexact has been signalled or underflow
13086         exceptions are enabled.
13087         (_FP_PACK_CANONICAL): Likewise.
13088
13089 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13090
13091         [BZ #14183]
13092         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13093         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13094
13095 2012-05-30  Richard Henderson  <rth@twiddle.net>
13096
13097         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13098         with #ifndef NOT_IN_libc.
13099
13100         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13101         marked to avoid plt entry.
13102
13103 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13104
13105         [BZ #14112]
13106         * Makeconfig (default-abi): New macro.
13107         (abi-includes): Likewise.
13108         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13109         $(abi-$(default-abi)-lib-soname) for soname if defined.
13110         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13111         abi-variants.
13112         * Makefile (installed-stubs): Likewise.
13113         * include/stubs-biarch.h: Removed.
13114         * scripts/lib-names.awk: Only handle one library at a time.
13115         * scripts/soversions.awk: Remove WORDSIZE support.
13116         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13117         entries.
13118         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13119         Removed.
13120         (syscall-list-default-condition): Likewise.
13121         (syscall-list-default-condition): Likewise.
13122         (syscall-list-includes): Likewise.
13123         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13124         syscall-list-* with abi-*.  Handle undefined abi-variants.
13125         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13126         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13127         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13128         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13129         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13130         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13131         Removed.
13132         (syscall-list-32-options): Likewise.
13133         (syscall-list-32-condition): Likewise.
13134         (syscall-list-64-options): Likewise.
13135         (syscall-list-64-condition): Likewise.
13136         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13137         macro.
13138         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13139         Renamed to ...
13140         (abi-*): This.
13141         (abi-64-ld-soname): New macro.
13142         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13143         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13144         Renamed to ...
13145         (abi-*): This.
13146         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13147         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13148
13149 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * sysdeps/unix/sysv/linux/kernel-features.h
13152         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13153         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13154         include <kernel-features.h>.
13155         [!__NR_ftruncate64]: Remove conditional code.
13156         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13157         [__NR_ftruncate64]: Make code unconditional.
13158         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13159         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13160         include <kernel-features.h>.
13161         [!__NR_ftruncate64]: Remove conditional code.
13162         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13163         [__NR_ftruncate64]: Make code unconditional.
13164         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13166         include <kernel-features.h>.
13167         [!__NR_ftruncate64]: Remove conditional code.
13168         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13169         [__NR_ftruncate64]: Make code unconditional.
13170         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13172         include <kernel-features.h>.
13173         [!__NR_ftruncate64]: Remove conditional code.
13174         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13175         [__NR_ftruncate64]: Make code unconditional.
13176         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13177
13178         * configure.in (libc_cv_fpie): Weaken to a compile test using
13179         LIBC_TRY_CC_OPTION.
13180         * configure: Regenerated.
13181
13182 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13183
13184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13185         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13186         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13188         Refreshed.
13189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13190         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13191         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13192         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13193         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13194         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13195         Refreshed.
13196
13197 2012-05-27  David S. Miller  <davem@davemloft.net>
13198
13199         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13200         (___Q_zero): New.
13201         (__Q_simulate_exceptions): Return void.  Change to simulate
13202         exceptions by writing into the %fsr.
13203         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13204         (__Qp_handle_exceptions): Likewise.
13205         (numbers): Delete.
13206         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13207         __Qp_handle_exceptions.
13208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13209         __Qp_handle_exceptions.
13210         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13211         as unused and give dummy FP_RND_NEAREST initializer.
13212         (FP_INHIBIT_RESULTS): Define.
13213         (___Q_simulate_exceptions): Update declaration.
13214         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13215         formatting.
13216         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13217         as unused and give dummy FP_RND_NEAREST initializer.
13218         (__Qp_handle_exceptions): Update declaration.
13219         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13220         formatting.
13221
13222 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13223
13224         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13225         the temporary FPU control word.
13226         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13227         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13228         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13229         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13230         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13231         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13232         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13233         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13234         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13235         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13236         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13237
13238 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13239
13240         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13241         fields.
13242
13243 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13244
13245         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13246         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13247         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13248         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13249         Likewise.
13250         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13251         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13252         Likewise.
13253
13254 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13255
13256         * po/h.po: Update from translation team.
13257
13258 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13259
13260         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13261
13262         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13263         handling of denormals.
13264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13265         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13266         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13267         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13268         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13269         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13270         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13271         Likewise.
13272
13273 2012-05-26  Marek Polacek  <polacek@redhat.com>
13274
13275         [BZ #14152]
13276         * math/libm-test.inc (fma_test): Don't always expect underflow
13277         exception.
13278
13279 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13280
13281         [BZ #12416]
13282         * elf/tst-execstack.c: Include stackinfo.h.
13283         (do_test): Adjust test case to ensure that pthread_getattr_np
13284         behaviour remains the same after marking stack executable.
13285
13286 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * sysdeps/unix/sysv/linux/kernel-features.h
13289         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13290         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13291         kernel-features.h.
13292         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13293         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13294         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13295         kernel-features.h.
13296         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13297         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13298
13299 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13300
13301         * configure.in: Define the default includes to being none.
13302         * configure: Regenerated.
13303
13304 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13305
13306         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13307         * sysdeps/x86_64/setjmp.S: Likewise.
13308         * sysdeps/i386/bsd-setjmp.S: Likewise.
13309         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13310         * sysdeps/i386/setjmp.S: Likewise.
13311         * sysdeps/i386/__longjmp.S: Likewise.
13312         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13313         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13314
13315         * include/stap-probe.h: New file.
13316         * configure.in: Handle --enable-systemtap.
13317         * configure: Regenerated.
13318         * config.h.in (USE_STAP_PROBE): New #undef.
13319         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13320         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13321         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13322
13323 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13324
13325         [BZ #13717]
13326         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13327         to 2.4.0 where earlier.
13328         * sysdeps/unix/sysv/linux/configure: Regenerated.
13329         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13330         <kernel-features.h>.
13331         [__ASSUME_32BITUIDS]: Make code unconditional.
13332         [!__ASSUME_32BITUIDS]: Remove conditional code.
13333         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13334         <kernel-features.h>.
13335         [__ASSUME_32BITUIDS]: Make code unconditional.
13336         [!__ASSUME_32BITUIDS]: Remove conditional code.
13337         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13338         [__ASSUME_32BITUIDS]: Make code unconditional.
13339         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13340         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13341         <kernel-features.h>.
13342         [__ASSUME_32BITUIDS]: Make code unconditional.
13343         [!__ASSUME_32BITUIDS]: Remove conditional code.
13344         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13345         <kernel-features.h>.
13346         [__ASSUME_32BITUIDS]: Make code unconditional.
13347         [!__ASSUME_32BITUIDS]: Remove conditional code.
13348         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13349         <kernel-features.h>.
13350         [__ASSUME_32BITUIDS]: Make code unconditional.
13351         [!__ASSUME_32BITUIDS]: Remove conditional code.
13352         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13353         <kernel-features.h>.
13354         [__ASSUME_32BITUIDS]: Make code unconditional.
13355         [!__ASSUME_32BITUIDS]: Remove conditional code.
13356         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13357         <kernel-features.h>.
13358         [__ASSUME_32BITUIDS]: Make code unconditional.
13359         [!__ASSUME_32BITUIDS]: Remove conditional code.
13360         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13361         <kernel-features.h>.
13362         [__ASSUME_32BITUIDS]: Make code unconditional.
13363         [!__ASSUME_32BITUIDS]: Remove conditional code.
13364         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13365         <kernel-features.h>.
13366         [__ASSUME_32BITUIDS]: Make code unconditional.
13367         [!__ASSUME_32BITUIDS]: Remove conditional code.
13368         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13369         <kernel-features.h>.
13370         [__ASSUME_32BITUIDS]: Make code unconditional.
13371         [!__ASSUME_32BITUIDS]: Remove conditional code.
13372         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13373         <kernel-features.h>.
13374         [__ASSUME_32BITUIDS]: Make code unconditional.
13375         [!__ASSUME_32BITUIDS]: Remove conditional code.
13376         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13377         <kernel-features.h>.
13378         [__ASSUME_32BITUIDS]: Make code unconditional.
13379         [!__ASSUME_32BITUIDS]: Remove conditional code.
13380         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13381         <kernel-features.h>.
13382         [__NR_setresgid] (__setresgid): Do not declare.
13383         [__ASSUME_32BITUIDS]: Make code unconditional.
13384         [!__ASSUME_32BITUIDS]: Remove conditional code.
13385         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13386         <kernel-features.h>.
13387         [__NR_setresuid] (__setresuid): Do not declare.
13388         [__ASSUME_32BITUIDS]: Make code unconditional.
13389         [!__ASSUME_32BITUIDS]: Remove conditional code.
13390         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13391         <kernel-features.h>.
13392         [__ASSUME_32BITUIDS]: Make code unconditional.
13393         [!__ASSUME_32BITUIDS]: Remove conditional code.
13394         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13395         <kernel-features.h>.
13396         [__ASSUME_32BITUIDS]: Make code unconditional.
13397         [!__ASSUME_32BITUIDS]: Remove conditional code.
13398         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13399         <kernel-features.h>.
13400         [__ASSUME_32BITUIDS]: Make code unconditional.
13401         [!__ASSUME_32BITUIDS]: Remove conditional code.
13402         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13403         <kernel-features.h>.
13404         [__ASSUME_32BITUIDS]: Make code unconditional.
13405         [!__ASSUME_32BITUIDS]: Remove conditional code.
13406         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13407         <kernel-features.h>.
13408         [__ASSUME_32BITUIDS]: Make code unconditional.
13409         [!__ASSUME_32BITUIDS]: Remove conditional code.
13410         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13411         <kernel-features.h>.
13412         [__ASSUME_32BITUIDS]: Make code unconditional.
13413         [!__ASSUME_32BITUIDS]: Remove conditional code.
13414         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13415         <kernel-features.h>.
13416         [__ASSUME_32BITUIDS]: Make code unconditional.
13417         [!__ASSUME_32BITUIDS]: Remove conditional code.
13418         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13419         <kernel-features.h>.
13420         [__ASSUME_32BITUIDS]: Make code unconditional.
13421         [!__ASSUME_32BITUIDS]: Remove conditional code.
13422         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13423         <kernel-features.h>.
13424         [__ASSUME_32BITUIDS]: Make code unconditional.
13425         [!__ASSUME_32BITUIDS]: Remove conditional code.
13426         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13427         <kernel-features.h>.
13428         [__ASSUME_32BITUIDS]: Make code unconditional.
13429         [!__ASSUME_32BITUIDS]: Remove conditional code.
13430         * sysdeps/unix/sysv/linux/kernel-features.h
13431         (__ASSUME_SETRESUID_SYSCALL): Remove.
13432         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13433         (__ASSUME_32BITUIDS): Likewise.
13434         (__ASSUME_LDT_WORKS): Likewise.
13435         (__ASSUME_O_DIRECTORY): Likewise.
13436         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13437         architecture but not kernel version.
13438         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13439         (__ASSUME_MMAP2_SYSCALL): Likewise.
13440         (__ASSUME_STAT64_SYSCALL): Likewise.
13441         (__ASSUME_IPC64): Likewise.
13442         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13443         <kernel-features.h>.
13444         [__ASSUME_32BITUIDS]: Make code unconditional.
13445         [!__ASSUME_32BITUIDS]: Remove conditional code.
13446         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13447         <kernel-features.h>.
13448         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13449         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13450         132096]: Remove conditional code.
13451         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13452         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13453         <kernel-features.h>.
13454         [__ASSUME_32BITUIDS]: Make code unconditional.
13455         [!__ASSUME_32BITUIDS]: Remove conditional code.
13456         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13457         <kernel-features.h>.
13458         [__ASSUME_32BITUIDS]: Make code unconditional.
13459         [!__ASSUME_32BITUIDS]: Remove conditional code.
13460         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13461         <kernel-features.h>.
13462         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13463         unconditional.
13464         (__setresgid): Do not declare.
13465         [__ASSUME_32BITUIDS]: Make code unconditional.
13466         [!__ASSUME_32BITUIDS]: Remove conditional code.
13467         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13468         <kernel-features.h>.
13469         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13470         unconditional.
13471         (__setresuid): Do not declare.
13472         [__ASSUME_32BITUIDS]: Make code unconditional.
13473         [!__ASSUME_32BITUIDS]: Remove conditional code.
13474         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13475         <kernel-features.h>.
13476         [__ASSUME_32BITUIDS]: Make code unconditional.
13477         [!__ASSUME_32BITUIDS]: Remove conditional code.
13478         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13479         <kernel-features.h>.
13480         [__ASSUME_32BITUIDS]: Make code unconditional.
13481         [!__ASSUME_32BITUIDS]: Remove conditional code.
13482
13483 2012-05-25  Richard Henderson  <rth@twiddle.net>
13484
13485         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13486         dl_hwcap to ifunc resolver.
13487         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13488         elf_ifunc_invoke.
13489         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13490         dl_hwcap to ifunc resolver.
13491         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13492
13493 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13494
13495         [BZ #14153]
13496         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13497         for |x| <= 2**-26, not 2**-57.
13498         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13499         exception.
13500
13501 2012-05-24  Jeff Law  <law@redhat.com>
13502
13503         * stdio-common/Makefile (tests): Add bug25.
13504         * stdio-common/bug25.c: New test.
13505
13506 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13507
13508         [BZ #13576]
13509         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13510         multiple of MALLOC_ALIGNMENT in size.
13511         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13512
13513 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13514
13515         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13516         Require >= 256.
13517         (FILENAME_MAX): Use macro-int-constant.
13518         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13519         (_IOFBF): Use macro-int-constant.
13520         (_IOLBF): Likewise.
13521         (_IONBF): Likewise.
13522         (SEEK_CUR): Likewise.
13523         (SEEK_END): Likewise.
13524         (SEEK_SET): Likewise.
13525         (TMP_MAX): Likewise.
13526         (EOF): Use macro-int-constant.  Require < 0.
13527         (NULL): Use macro-constant.  Require == 0.
13528         (stdin): Require type to be FILE *.
13529         (stdout): Likewise.
13530         (stderr): Likewise.
13531         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13532         macro-int-constant.
13533         (EXIT_SUCCESS): Likewise.
13534         (NULL): Use macro-constant.  Require == 0.
13535         (RAND_MAX): Use macro-int-constant.
13536         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13537         [C99-based standards] (strtof): Require function.
13538         [C99-based standards] (strtold): Likewise.
13539         [C99-based standards] (strtoll): Likewise.
13540         [C99-based standards] (strtoull): Likewise.
13541         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13542         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13543         [ISO || ISO99 || ISO11] (math.h): Likewise.
13544         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13545         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13546         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13547
13548 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13549
13550         [BZ #14132]
13551         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13552         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13553         * intl/dgettext.c (DCGETTEXT): Likewise.
13554         * intl/gettext.c (DCGETTEXT): Likewise.
13555         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13556         * posix/regex_internal.h (gettext): Likewise.
13557         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13558         Remove declaration.
13559         * include/argz.h (__argz_count_internal)
13560         (__argz_stringify_internal): Remove declaration.
13561         (__argz_count, __argz_stringify): Declare hidden proto.
13562         * intl/dcgettext.c: Remove use of INTDEF.
13563         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13564         * string/argz-stringify.c: Likewise.
13565         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13566         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13567         Declare hidden proto.
13568         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13569         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13570         Declare hidden proto.
13571         * include/stdio.h (__asprintf_internal): Don't declare.
13572         (__asprintf): Don't define as macro.  Declare hidden proto.
13573         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13574         (__fsetlocking): Declare hidden proto.
13575         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13576         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13577         hidden proto.
13578         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13579         (_IO_setlinebuf): Remove use of INTUSE.
13580         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13581         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13582         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13583         Remove declaration.
13584         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13585         (_IO_do_flush): Remove use of INTUSE.
13586         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13587         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13588         (_IO_adjust_column, _IO_least_wmarker)
13589         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13590         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13591         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13592         (_IO_default_doallocate, _IO_wdefault_doallocate)
13593         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13594         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13595         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13596         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13597         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13598         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13599         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13600         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13601         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13602         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13603         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13604         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13605         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13606         proto.
13607         (_IO_flush_all_internal, _IO_adjust_column_internal)
13608         (_IO_default_uflow_internal, _IO_default_finish_internal)
13609         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13610         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13611         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13612         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13613         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13614         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13615         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13616         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13617         (_IO_file_close_internal, _IO_file_close_it_internal)
13618         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13619         (_IO_file_init_internal, _IO_file_attach_internal)
13620         (_IO_file_fopen_internal, _IO_file_read_internal)
13621         (_IO_file_sync_internal, _IO_file_seek_internal)
13622         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13623         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13624         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13625         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13626         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13627         (_IO_list_all_internal, _IO_link_in_internal)
13628         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13629         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13630         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13631         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13632         (_IO_do_write_internal, _IO_padn_internal)
13633         (_IO_getline_info_internal, _IO_getline_internal)
13634         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13635         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13636         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13637         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13638         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13639         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13640         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13641         with libc_hidden_ver, remove use of INTUSE.
13642         * libio/genops.c: Likewise.
13643         * libio/freopen.c: Likewise.
13644         * libio/freopen64.c: Likewise.
13645         * libio/iofclose.c: Likewise.
13646         * libio/iofdopen.c: Likewise.
13647         * libio/iofflush.c: Likewise.
13648         * libio/iofflush_u.c: Likewise.
13649         * libio/iofgets.c: Likewise.
13650         * libio/iofgets_u.c: Likewise.
13651         * libio/iofopen.c: Likewise.
13652         * libio/iofopncook.c: Likewise.
13653         * libio/iofread.c: Likewise.
13654         * libio/iofread_u.c: Likewise.
13655         * libio/ioftell.c: Likewise.
13656         * libio/iofwrite.c: Likewise.
13657         * libio/iogetline.c: Likewise.
13658         * libio/iogets.c: Likewise.
13659         * libio/iogetwline.c: Likewise.
13660         * libio/iopadn.c: Likewise.
13661         * libio/iopopen.c: Likewise.
13662         * libio/ioseekoff.c: Likewise.
13663         * libio/ioseekpos.c: Likewise.
13664         * libio/iosetbuffer.c: Likewise.
13665         * libio/iosetvbuf.c: Likewise.
13666         * libio/ioungetc.c: Likewise.
13667         * libio/ioungetwc.c: Likewise.
13668         * libio/iovdprintf.c: Likewise.
13669         * libio/iovsprintf.c: Likewise.
13670         * libio/iovsscanf.c: Likewise.
13671         * libio/memstream.c: Likewise.
13672         * libio/obprintf.c: Likewise.
13673         * libio/oldfileops.c: Likewise.
13674         * libio/oldiofclose.c: Likewise.
13675         * libio/oldiofdopen.c: Likewise.
13676         * libio/oldiofopen.c: Likewise.
13677         * libio/oldiopopen.c: Likewise.
13678         * libio/oldstdfiles.c: Likewise.
13679         * libio/putc.c: Likewise.
13680         * libio/setbuf.c: Likewise.
13681         * libio/setlinebuf.c: Likewise.
13682         * libio/stdfiles.c: Likewise.
13683         * libio/strops.c: Likewise.
13684         * libio/vasprintf.c: Likewise.
13685         * libio/vscanf.c: Likewise.
13686         * libio/vsnprintf.c: Likewise.
13687         * libio/vswprintf.c: Likewise.
13688         * libio/wfiledoalloc.c: Likewise.
13689         * libio/wfileops.c: Likewise.
13690         * libio/wgenops.c: Likewise.
13691         * libio/wmemstream.c: Likewise.
13692         * libio/wstrops.c: Likewise.
13693         * libio/__fpurge.c: Likewise.
13694         * libio/__fsetlocking.c: Likewise.
13695         * assert/assert.c: Likewise.
13696         * debug/fgets_chk.c: Likewise.
13697         * debug/fgets_u_chk.c: Likewise.
13698         * debug/fread_chk.c: Likewise.
13699         * debug/fread_u_chk.c: Likewise.
13700         * debug/gets_chk.c: Likewise.
13701         * debug/obprintf_chk.c: Likewise.
13702         * debug/vasprintf_chk.c: Likewise.
13703         * debug/vdprintf_chk.c: Likewise.
13704         * debug/vsnprintf_chk.c: Likewise.
13705         * debug/vsprintf_chk.c: Likewise.
13706         * malloc/mtrace.c: Likewise.
13707         * misc/error.c: Likewise.
13708         * misc/syslog.c: Likewise.
13709         * stdio-common/asprintf.c: Likewise.
13710         * stdio-common/fxprintf.c: Likewise.
13711         * stdio-common/getw.c: Likewise.
13712         * stdio-common/isoc99_fscanf.c: Likewise.
13713         * stdio-common/isoc99_scanf.c: Likewise.
13714         * stdio-common/isoc99_vfscanf.c: Likewise.
13715         * stdio-common/isoc99_vscanf.c: Likewise.
13716         * stdio-common/isoc99_vsscanf.c: Likewise.
13717         * stdio-common/printf-prs.c: Likewise.
13718         * stdio-common/printf_fp.c: Likewise.
13719         * stdio-common/printf_fphex.c: Likewise.
13720         * stdio-common/printf_size.c: Likewise.
13721         * stdio-common/putw.c: Likewise.
13722         * stdio-common/scanf.c: Likewise.
13723         * stdio-common/sprintf.c: Likewise.
13724         * stdio-common/tmpfile.c: Likewise.
13725         * stdio-common/vfprintf.c: Likewise.
13726         * stdio-common/vfscanf.c: Likewise.
13727         * stdlib/strfmon_l.c: Likewise.
13728         * sunrpc/openchild.c: Likewise.
13729         * sunrpc/xdr_stdio.c: Likewise.
13730         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13731         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13732
13733 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13734
13735         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13736
13737         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13738         in the third column, to generate for the shared library an IFUNC
13739         that uses _dl_vdso_vsym.
13740         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13741         * Makeconfig (object-suffixes-noshared): New variable.
13742
13743         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13744         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13745         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13746         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13747
13748         [BZ #14132]
13749         * include/sys/time.h (__gettimeofday): Remove macro.
13750         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13751         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13752         Remove INTDEF.
13753         (__gettimeofday): Add libc_hidden_def.
13754         (gettimeofday): Add libc_hidden_weak.
13755         * sysdeps/mach/gettimeofday.c: Likewise.
13756         * sysdeps/posix/gettimeofday.c: Likewise.
13757         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13758         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13759         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13760         (__gettimeofday_internal): Remove strong_alias.
13761         (__gettimeofday): Add libc_hidden_def.
13762         (gettimeofday): Add libc_hidden_weak.
13763         * sysdeps/unix/syscalls.list (gettimeofday):
13764         Remove __gettimeofday_internal alias.
13765
13766 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13767             H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         [BZ #12495]
13770         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13771         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13772         (largebin_index_32_big): New.
13773         (largebin_index): Use it for 16-byte alignment.
13774         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13775         correction with front_misalign.
13776
13777 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13778
13779         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13780         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13781         Likewise.
13782         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13783         Likewise.
13784         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13785         Likewise.
13786         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13787         Likewise.
13788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13789         Likewise.
13790         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13791         Likewise.
13792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13793         Likewise.
13794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13795         Likewise.
13796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13797         Likewise.
13798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13799         Likewise.
13800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13801         Likewise.
13802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13803         Likewise.
13804
13805         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13806         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13807
13808 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13809
13810         [BZ #10846]
13811         [BZ #14036]
13812         * math/libm-test.inc (exp_test): Add test from bug 14036.
13813         (pow_test): Add test from bug 10846.
13814
13815         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13816         and other flags.
13817         (special_function): Do not include flags in test name.
13818         (parse_args): Likewise.
13819         * sysdeps/i386/fpu/libm-test-ulps: Update.
13820         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13821         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13822         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13824
13825         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13826         exceptions.
13827         * math/libm-test.inc ("Philosophy"): Update comment about
13828         exception testing.
13829         (UNDERFLOW_EXCEPTION): New macro.
13830         (UNDERFLOW_EXCEPTION_OK): Likewise.
13831         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13832         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13833         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13834         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13835         (INVALID_EXCEPTION_OK): Update value.
13836         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13837         (OVERFLOW_EXCEPTION_OK): Likewise.
13838         (IGNORE_ZERO_INF_SIGN): Likewise.
13839         (test_exceptions): Handle underflow exceptions.
13840         (acos_test): Update for underflow exception expectations.
13841         (cexp_test): Likewise.
13842         (clog_test): Likewise.
13843         (clog10_test): Likewise.
13844         (csqrt_test): Likewise.
13845         (ctan_test): Likewise.
13846         (ctanh_test): Likewise.
13847         (exp_test): Likewise.
13848         (exp10_test): Likewise.
13849         (exp2_test): Likewise.
13850         (expm1_test): Likewise.
13851         (fma_test): Likewise.
13852         (j0_test): Likewise.
13853         (jn_test): Likewise.
13854         (nexttoward_test): Likewise.
13855         (pow_test): Likewise.
13856         (scalbn_test): Likewise.
13857         (scalbln_test): Likewise.
13858         (tan_test): Likewise.
13859         (y1_test): Likewise.
13860         * sysdeps/i386/fpu/libm-test-ulps: Update.
13861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13862
13863 2012-05-23  David S. Miller  <davem@davemloft.net>
13864
13865         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13866         (__libc_sigaction): Remove unused local variables.
13867
13868 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13869
13870         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13871
13872 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13873
13874         mktime: avoid signed integer overflow
13875         * time/mktime.c (__mktime_internal): Do not mishandle the case
13876         where diff == INT_MIN.
13877
13878         mktime: simplify computation of average
13879         * time/mktime.c (ranged_convert): Use new time_t_avg function
13880         instead of rolling our own (probably-slower) code.
13881
13882         mktime: do not assume signed right shift propagates sign bit
13883         * time/mktime.c (isdst_differ): New static function.
13884         (__mktime_internal): No need to normalize tm_isdst now.
13885         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13886         tm_isdst values.
13887
13888         mktime: merge another wrapv change from gnulib
13889         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13890         from some compilers.
13891
13892         mktime: remove incorrect attempt at unusual arithmetics
13893         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13894         The code didn't really work on such machines anyway.
13895         (TYPE_MINIMUM): Assume two's complement.
13896         (twos_complement_arithmetic): Verify that long_int and time_t
13897         are two's complement (or unsigned, in the latter case).
13898
13899         mktime: check signed shifts on long_int and time_t, too
13900         * time/mktime.c (SHR): Check that shifts work as desired
13901         on the types long_int and time_t too, as SHR is used on
13902         such types.
13903
13904         mktime: do not assume 'long' is wide enough
13905         * time/mktime.c (verify): Move decl up.
13906         (long_int): New type.
13907         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13908         to remove assumption in the code that 'long' is wide enough to
13909         store year values.  This assumption is not true on x32 and on
13910         some non-glibc platforms.
13911
13912         mktime: merge wrapv change from gnulib
13913         * time/mktime.c (WRAPV): New macro.
13914         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13915         (guess_time_tm, __mktime_internal): Do not assume that signed
13916         integer overflow wraps around; modern compilers generate code
13917         where this assumption is no longer valid.
13918
13919 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13920
13921         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13922         Replace "jmp L(pseudo_end)" with "ret".
13923         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13924         Likewise.
13925
13926 2012-05-23  Andreas Jaeger  <aj@suse.de>
13927
13928         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13929         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13930
13931 2012-05-23  Andreas Jaeger  <aj@suse.de>
13932             Maximilian Attems  <max@stro.at>
13933
13934         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13935         New macros.
13936
13937 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13938
13939         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13940         code so that pseudo_end is just ret and the stack pointer is
13941         correct also for static library in error case.
13942
13943 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13946         move to syscalls.list.
13947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13951
13952         * manual/install.texi (Running make install): Do not mention Linux
13953         kernel version for which pt_chown is not needed.
13954         (Linux): Do not mention problems with nscd with 2.0 kernels.
13955         * INSTALL: Regenerated.
13956
13957 2012-05-23  Andreas Jaeger  <aj@suse.de>
13958
13959         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13960         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13961         macro.
13962         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13963         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13964         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13965         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13966         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13967         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13968         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13969         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13970         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13971         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13972         * sysdeps/unix/sysv/linux/bits/in.h
13973         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13974
13975 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13976
13977         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13978         (PREPARE_VERSION): Just use assert instead, it will be elided
13979         under [NDEBUG] anyway.
13980
13981 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13982
13983         * sysdeps/unix/sysv/linux/Makefile: Include
13984         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13985         (sysdep_routines): Remove sysctl.
13986         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13987         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13988         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13989         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13990         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13991
13992 2012-05-22  Andreas Jaeger  <aj@suse.de>
13993
13994         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13995         that pseudo_end is just ret and the stack pointer is correct also
13996         for static library in error case.
13997
13998 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13999
14000         [BZ #14122]
14001         * nss/nsswitch.c (defconfig_entries): New variable.
14002         (__nss_database_lookup): Don't leak defconfig entries.
14003         (nss_parse_service_list): Don't leak on error paths.
14004         (free_database_entries): New function.
14005         (free_defconfig): New function.
14006         (free_mem): Move common code to free_database_entries.
14007
14008 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14009
14010         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14011         Add arch_prctl.
14012         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14013
14014         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14015         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14016         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14017         New macro.
14018         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14019         (INTERNAL_SYSCALL_TYPES): Likewise.
14020         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14021         (LOAD_REGS_TYPES_[1-6]): Likewise.
14022         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14023         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14024
14025 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14026
14027         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14028         copysignl for GLIBC_2_0.
14029         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14030         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14031         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14032         logbl for GLIBC_2_0.
14033         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14034         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14035
14036 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14037
14038         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14039         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14040
14041         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14042         Use "neg %eax".
14043
14044         * time/mktime.c: Update copyright years.
14045
14046 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14047
14048         mktime: merge comment-quoting-style change from gnulib
14049         * time/mktime.c: Quote 'like this' in comments.
14050         The GNU coding standards suggest that we no longer quote `like this',
14051         as "`" and "'" are typically rendered asymmetrically nowadays.
14052         The typical gnulib style is to quote 'like this' when quoting
14053         code, and "like this" when quoting English.
14054
14055         * time/mktime.c (compile-command): Add "-I.".
14056
14057         mktime: merge mktime-internal.h change from gnulib
14058         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14059
14060         mktime: merge time_r change from gnulib
14061         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14062
14063         mktime: merge DEBUG change from gnulib
14064         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14065         case system <time.h> has a #define.
14066
14067         mktime: merge <sys/types.h> change from gnulib
14068         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14069         since <time.t> is now guaranteed to define time_t.
14070
14071         mktime: merge HAVE_CONFIG_H change from gnulib
14072         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14073
14074 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14075
14076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14077         Use "neg %eax".
14078
14079         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14080         __rlim_t cast.
14081         (struct rusage): Use anonymous union to pad each field to
14082         __syscall_slong_t.
14083
14084 2012-05-21  David S. Miller  <davem@davemloft.net>
14085
14086         * Makefules (o-iterator): Remove .s cases.
14087         (compile-command.s): Delete.
14088         (COMPILE.s): Delete.
14089         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14090
14091 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14092
14093         * configure.in (libc_cv_predef_stack_protector): Only consider
14094         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14095         * configure: Regenerated.
14096
14097 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14098
14099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14100         New macro.  Use R*LP on int and pointer.
14101         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14102         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14103         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14104         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14105
14106         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14107         [__WORDSIZE_TIME64_COMPAT32] instead of
14108         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14109         (struct utmp): Likewise.
14110         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14111         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14112         Renamed to ...
14113         (__WORDSIZE_TIME64_COMPAT32): This.
14114         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14115         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14116         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14117         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14118         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14119         (__WORDSIZE_TIME64_COMPAT32): New macro.
14120
14121 2012-05-21  Andreas Jaeger  <aj@suse.de>
14122
14123         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14124         only if [SHARED]. Add prototype for __wcschr_ia32.
14125
14126 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14127
14128         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14129         of %rbp unmolested in the jmp_buf while mangling the low bits.
14130         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14131         unmolested high bits of %rbp while demangling the low bits.
14132         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14133
14134 2012-05-21  Andreas Jaeger  <aj@suse.de>
14135
14136         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14137         * sunrpc/svc_simple.c: Use it for registerrpc.
14138         * sunrpc/xcrypt.c: Use it for passwd2des.
14139
14140         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14141
14142 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14143
14144         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14145         Don't define if [__SYSCALL_WORDSIZE != 32].
14146         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14147         New macro.
14148
14149 2012-05-21  Bruno Haible  <bruno@clisp.org>
14150             Andreas Jaeger  <aj@suse.de>
14151
14152         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14153         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14154         inptr and inend for must_buffer_ch.
14155         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14156         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14157         * stdio-common/Makefile (tests): Remove bug15.
14158         (bug15-ENV): Remove macro.
14159         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14160         anymore.
14161
14162 2012-05-19  Andreas Jaeger  <aj@suse.de>
14163             Roland McGrath  <roland@hack.frob.com>
14164
14165         * manual/contrib.texi: Completely rewritten. It contains now an
14166         alphabetical list of contributors and their contributions.
14167
14168 2012-05-21  Richard Henderson  <rth@twiddle.net>
14169
14170         * misc/getauxval.c (__getauxval): Use unsigned long int.
14171         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14172         (getauxval): Use unsigned long int.
14173
14174 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14175
14176         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14177
14178 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14179
14180         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14181         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14182         __alignof__ (long double).
14183
14184 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14185
14186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14187
14188 2012-05-20  Richard Henderson  <rth@twiddle.net>
14189
14190         * misc/getauxval.c: New file.
14191         * misc/sys/auxv.h: New file.
14192         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14193         (routines): Add getauxval.
14194         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14195         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14196         * elf/dl-sysdep.c (_dl_auxv): Remove.
14197         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14198         * elf/dl-support.c (_dl_auxv): New variable.
14199         (_dl_aux_init): Initialize it.
14200         * manual/startup.texi (Auxiliary Vector): New node.
14201         * sysdeps/generic/bits/hwcap.h: New file.
14202         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14203         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14204         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14205         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14206         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14207         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14209         Update.
14210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14211         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14212         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14213         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14215         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14216         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14218
14219 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14220
14221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14222
14223 2012-05-19  David S. Miller  <davem@davemloft.net>
14224
14225         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14226
14227 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14228
14229         [BZ #14123]
14230         * math/s_ccosh.c: Include <float.h>
14231         (__ccosh): Avoid internal overflow calculating sinh and cosh
14232         values before multiplying by sin and cos values.
14233         * math/s_ccoshf.c: Likewise.
14234         * math/s_ccoshl.c: Likewise.
14235         * math/s_csin.c: Likewise.
14236         * math/s_csinf.c: Likewise.
14237         * math/s_csinl.c: Likewise.
14238         * math/s_csinh.c: Likewise.
14239         * math/s_csinhf.c: Likewise.
14240         * math/s_csinhl.c: Likewise.
14241         * math/libm-test.inc (ccos_test): Add more tests.
14242         (ccosh_test): Likewise.
14243         (csin_test): Likewise.
14244         (csinh_test): Likewise.
14245         * sysdeps/i386/fpu/libm-test-ulps: Update.
14246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14247
14248 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14249
14250         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14251         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14252
14253         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14254
14255 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14258         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14259         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14260         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14261         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14262         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14263         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14264         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14265         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14266         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14267         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14268         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14269         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14270         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14271         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14272         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14273         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14274         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14275         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14276         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14277         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14278         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14279         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14280         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14281         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14282         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14283         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14284         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14285         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14286         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14287         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14288
14289 2012-05-18  Andreas Jaeger  <aj@suse.de>
14290
14291         * csu/.gitignore: Delete.
14292
14293 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14294
14295         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14296         (timex): Use __syscall_slong_t.
14297
14298 2012-05-18  Andreas Jaeger  <aj@suse.de>
14299             Carlos O'Donell  <carlos_odonell@mentor.com>
14300
14301         * manual/install.texi (Configuring and compiling): Update
14302         description about files modified in the source directory.
14303         * INSTALL: Regenerated.
14304
14305 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14306
14307         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14308         value.  Use "or" to set return value to -1.
14309         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14310         negate return value.
14311
14312 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14313
14314         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14315         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14316         failure if the compiler has Graphite support disabled.
14317         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14318         Likewise.
14319         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14320         CFLAGS-memmove.c): Likewise.
14321         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14322         Likewise.
14323
14324 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14325
14326         * sysdeps/x86_64/x32/_itoa.h: New file.
14327
14328         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14329         getdents system call only if kernel and user dirents have the
14330         same d_ino and d_off.
14331
14332         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14333         LLONG_MAX != LONG_MAX.
14334         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14335         (_fitoa_word): Likewise.
14336
14337         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14338         years.
14339         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14340         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14341         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14342
14343         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14344         include <bits/wordsize.h>.  Check __x86_64__ instead of
14345         __WORDSIZE.
14346         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14347         if __x86_64__ is defined.  Use anonymous union on fpstate.
14348
14349         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14350         anonymous union.
14351
14352 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14353
14354         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14355         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14356         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14357         Refer to _rtld_local_ro instead of _rtld_global_ro.
14358         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14359         Likewise.
14360         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14361         Likewise.
14362         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14363         Likewise.
14364         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14365         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14366         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14367
14368         * sysdeps/powerpc/powerpc32/dl-machine.c
14369         (__elf_machine_runtime_setup) [PROF]: Don't reference
14370         _dl_prof_resolve.
14371
14372 2012-05-18  Andreas Jaeger  <aj@suse.de>
14373
14374         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14375         function only available for GCCs before 3.4 since GCC 3.4
14376         introduced a builtin.
14377         (lrint): Likewise.
14378         (llrintf): Likewise.
14379         (llrint): Likewise.
14380         (fmaxf): Likewise.
14381         (fmax): Likewise.
14382         (fminf): Likewise.
14383         (fmin): Likewise.
14384         (rint): Likewise.
14385         (rintf): Likewise.
14386         (nearbyint): Likewise.
14387         (nearbyintf): Likewise.
14388         (ceil): Likewise.
14389         (ceilf): Likewise.
14390         (floor): Likewise.
14391         (floorf): Likewise.
14392
14393 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14394
14395         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14396         on both fields and cast pointer to __syscall_ulong_t.
14397
14398         * bits/types.h (__fsword_t): New type.
14399         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14400         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14401         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14402         (__FSWORD_T_TYPE): Likewise.
14403         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14404         (__FSWORD_T_TYPE): Likewise.
14405         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14406         (__FSWORD_T_TYPE): Likewise.
14407         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14408         (__FSWORD_T_TYPE): Likewise.
14409         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14410         __SWORD_TYPE with __fsword_t.
14411         (statfs64): Likewise.
14412
14413 2012-05-17  David S. Miller  <davem@davemloft.net>
14414
14415         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14416
14417 2012-05-17  Andreas Jaeger  <aj@suse.de>
14418
14419         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14420         warning.
14421
14422 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14423
14424         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14425
14426 2012-05-17  Andreas Jaeger  <aj@suse.de>
14427
14428         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14429         when it is used.
14430
14431 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14432
14433         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14434
14435 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14436
14437         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14438         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14439
14440 2012-05-17  Andreas Jaeger  <aj@suse.de>
14441             Carlos O'Donell  <carlos_odonell@mentor.com>
14442
14443         [BZ #14059]
14444         * sysdeps/x86_64/multiarch/init-arch.h
14445         (bit_YMM_Usable): Rename to...
14446         (bit_AVX_Usable): ... this.
14447         (bit_FMA4_Usable): New macro.
14448         (bit_XMM_state): New macro.
14449         (bit_YMM_state): New macro.
14450         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14451         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14452         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14453         (CPUID_OSXSAVE): New macro.
14454         (CPUID_AVX): New macro.
14455         (CPUID_FMA4): New macro.
14456         (index_YMM_Usable): Rename to...
14457         (index_AVX_Usable): ... this.
14458         (HAS_AVX): Use HAS_ARCH_FEATURE.
14459         (HAS_FMA4): Likewise.
14460         (HAS_YMM_USABLE): Remove.
14461         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14462         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14463         are present.
14464         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14465         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14466         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14467         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14468         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14469
14470 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14471
14472         * math/libm-test.c: Support platforms without multiple rounding modes.
14473         * math/bug-nextafter.c: Support platforms without FP exceptions.
14474         * math/bug-nexttoward.c: Likewise.
14475         * math/test-fenv.c: Likewise.
14476         * math/test-misc.c: Likewise.
14477         * stdlib/bug-getcontext.c: Likewise.
14478
14479 2012-05-17  Andreas Jaeger  <aj@suse.de>
14480
14481         * manual/examples/search.c (critter_cmp): Change signature to
14482         avoid warnings.
14483         * manual/string.texi (Collation Functions): Likewise.
14484
14485 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14486
14487         * bits/types.h: Fold copyright years.
14488         * bits/typesizes.h: Likewise.
14489         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14490         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14491         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14492         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14493         * time/time.h: Likewise.
14494
14495 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14496
14497         [BZ #208]
14498         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14499         in instead of returning them.  Return void.
14500         (__libc_mallinfo): Accumulate over all arenas.
14501         (__malloc_stats): Adjust for change in int_mallinfo interface.
14502
14503 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14504
14505         [BZ #10375]
14506         * configure.in (NM): Add AC_CHECK_TOOL for it.
14507         (libc_extra_cflags): New substituted variable.
14508         Check for -fstack-protector being used implicitly.
14509         * configure: Regenerated.
14510         * config.make.in (config-extra-cflags): New variable,
14511         gets @libc_extra_cflags@.
14512         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14513
14514         [BZ #10375]
14515         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14516         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14517         * configure: Regenerated.
14518         * config.make.in (CPPUNDEFS): New substituted variable.
14519         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14520         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14521         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14522
14523 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14524
14525         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14526         (mq_attr): Use __syscall_slong_t.
14527
14528 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14529
14530         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14531         Check __x86_64__ instead of __WORDSIZE.
14532         (_STAT_VER_LINUX): Likewise.
14533         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14534         __syscall_ulong_t and __syscall_slong_t.
14535         (stat64): Likewise.
14536
14537 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14538
14539         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14540
14541 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14542
14543         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14544
14545 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14546
14547         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14548         __syscall_ulong_t.
14549
14550         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14551         include <bits/wordsize.h>.  Check __x86_64__ instead of
14552         __WORDSIZE.
14553         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14554         defined.
14555         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14556
14557         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14558         include <bits/wordsize.h>.  Check __x86_64__ instead of
14559         __WORDSIZE.
14560         (user_regs_struct): Use "__extension__ unsigned long long"
14561         instead of "unsigned long" if __x86_64__ is defined.
14562         (user): Likewise.  Pad after pointer field if __ILP32__ is
14563         defined.
14564
14565 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14566
14567         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14568         versions 5 to 9.
14569         * configure: Regenerated.
14570         * manual/install.texi (texinfo): Increase version requirement to
14571         4.5 or later.
14572         * INSTALL: Regenerated.
14573
14574         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14575
14576 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14577
14578         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14579
14580         * sysdeps/x86_64/x32/ffs.c: New file.
14581
14582         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14583         __syscall_ulong_t.
14584         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14585         defined.  Use __syscall_ulong_t.
14586         (shminfo): Use __syscall_ulong_t.
14587         (shm_info): Likewise.
14588
14589         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14590         __syscall_ulong_t.
14591
14592         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14593         <bits/wordsize.h>.
14594         (msgqnum_t): Use __syscall_ulong_t.
14595         (msglen_t): Likewise.
14596         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14597         __syscall_ulong_t.
14598
14599         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14600         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14601
14602         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14603
14604         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14605         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14606
14607         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14608         __syscall_slong_t.
14609
14610         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14611         include <bits/wordsize.h>.  Check __x86_64__ instead of
14612         __WORDSIZE.
14613
14614         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14615         "unsigned long long int" if __x86_64__ is defined.
14616         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14617
14618         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14619         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14620         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14621
14622         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14623         <stdint.h>.
14624         (GET_PC): Cast to uintptr_t first.
14625         (GET_FRAME): Likewise.
14626         (GET_STACK): Likewise.
14627
14628         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14629         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14630         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14631         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14632         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14633         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14634         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14635         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14636         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14637         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14638         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14639         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14640         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14641         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14642         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14643         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14644         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14645         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14646         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14647         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14648         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14649         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14650         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14651         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14652         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14653         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14654         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14655         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14656         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14657
14658 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14659
14660         * Makerules (+depfiles): Also collect depfiles from .oS in
14661         $(extra-objs).
14662         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14663         .oS, $(libnldbl-routines)).
14664
14665         * Makerules (native-compile-mkdep-flags): Define.
14666         * sunrpc/Makefile (extra-objs): Add $(addprefix
14667         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14668         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14669         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14670         calling $(make-target-directory).
14671
14672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14673
14674         * bits/types.h (__snseconds_t): Removed.
14675         * time/time.h (struct timespec): Replace __snseconds_t with
14676         __syscall_slong_t.
14677         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14678         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14679         Likewise.
14680         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14681         (__SNSECONDS_T_TYPE): Likewise.
14682         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14683         (__SNSECONDS_T_TYPE): Likewise.
14684         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14685         (__SNSECONDS_T_TYPE): Likewise.
14686
14687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14688
14689         * sysdeps/mach/hurd/bits/typesizes.h
14690         (__SYSCALL_SLONG_TYPE): New macro.
14691         (__SYSCALL_ULONG_TYPE): Likewise.
14692
14693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14694
14695         * bits/types.h (__syscall_slong_t): New type.
14696         (__syscall_ulong_t): Likewise.
14697
14698         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14699         (__SYSCALL_ULONG_TYPE): Likewise.
14700         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14701         (__SYSCALL_SLONG_TYPE): Likewise.
14702         (__SYSCALL_ULONG_TYPE): Likewise.
14703         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14704         (__SYSCALL_SLONG_TYPE): Likewise.
14705         (__SYSCALL_ULONG_TYPE): Likewise.
14706         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14707         (__SYSCALL_SLONG_TYPE): Likewise.
14708         (__SYSCALL_ULONG_TYPE): Likewise.
14709
14710 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14711
14712         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14713         Add sigaltstack-offsets.sym.
14714         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14715         <sigaltstack-offsets.h>.
14716         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14717         longjmp_msg pointer.
14718         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14719         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14720         signal stack.
14721         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14722
14723 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14724
14725         * elf/stackguard-macros.h: Remove file.
14726         * sysdeps/generic/stackguard-macros.h: New file.
14727         * sysdeps/i386/stackguard-macros.h: Likewise.
14728         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14729         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14730         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14731         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14732         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14733         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14734         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14735         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14736         <elf/stackguard-macros.h>.
14737
14738         [BZ #14109]
14739         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14740         __aligned__ in attribute.
14741         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14742         (gregset_t): Likewise.
14743
14744 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14745
14746         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14747         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14748         * sysdeps/x86_64/x32/Implies-after: New file.
14749
14750 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14751
14752         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14753         and access return value for _dl_profile_fixup.  Use R10_LP to
14754         load frame size.
14755
14756 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14757
14758         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14759
14760 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14761
14762         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14763         * sysdeps/x86_64/x32/sysdep.h: New file.
14764
14765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14766
14767         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14768         * sysdeps/x86_64/setjmp.S: Likewise.
14769
14770 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14771
14772         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14773         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14774         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14775         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14776         remove unused global constant.
14777
14778 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14779
14780         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14781         include of <not-cancel.h>.
14782
14783 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14784
14785         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14786
14787 2012-05-15  Jeff Law  <law@redhat.com>
14788             Andreas Jaeger  <aj@suse.de>
14789
14790         [BZ #13594]
14791         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14792         out from...
14793         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14794         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14795         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14796         code changing __hst_map_handle.map.
14797
14798 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14799
14800         * configure.in (sysnames): Look for Implies-before and Implies-after
14801         files.
14802         * configure: Regenerated.
14803
14804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14805
14806         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14807         8-byte data alignment with LP_SIZE alignment.
14808
14809 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14810
14811         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14812         into R10_LP.
14813
14814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14815
14816         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14817
14818 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14819
14820         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14821         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14822         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14823         Likewise.
14824         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14825
14826 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14827
14828         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14829         (stackinfo_sub_sp): Likewise.
14830
14831 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14832
14833         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14834         RAX_LP.
14835
14836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14837
14838         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14839         into R*_LP.
14840
14841 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14842
14843         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14844         sizes into R*_LP.
14845
14846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14847
14848         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14849
14850 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14851
14852         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14853         into R11_LP and load __x86_64_shared_cache_size_half into
14854         R8_LP.
14855
14856 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14857
14858         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14859         R8_LP.
14860
14861 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14862
14863         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14864         logb for POWER7.
14865         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14866         logbf for POWER7.
14867         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14868         logbl for POWER7.
14869         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14870         powerpc32/power7/fpu/s_logb.c via #include.
14871         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14872         powerpc32/power7/fpu/s_logbf.c via #include.
14873         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14874         powerpc32/power7/fpu/s_logbl.c via #include.
14875
14876 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14877
14878         * README.libm: Remove file.
14879
14880 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14881
14882         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14883         count for x32.  Use R*_LP and omit operand-size suffix.
14884
14885 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14886
14887         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14888         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14889         * sysdeps/x86_64/x32/shlib-versions: New file.
14890
14891 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14892
14893         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14894         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14895         Use _dl_fatal_printf instead.
14896
14897 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14898
14899         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14900         set if not set by the user.  Do not allow for being unset.
14901         * sysdeps/unix/sysv/linux/configure: Regenerated.
14902
14903 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14904
14905         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14906         the `q' suffix from lea and replace .quad with ASM_ADDR.
14907
14908 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14909
14910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14911         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14912         instead of $17.
14913         (PTR_DEMANGLE): Likewise.
14914
14915 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14916
14917         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14918         (LP_OP): Likewise.
14919         (ASM_ADDR): Likewise.
14920         (RAX_LP): Likewise.
14921         (RBP_LP): Likewise.
14922         (RBX_LP): Likewise.
14923         (RCX_LP): Likewise.
14924         (RDI_LP): Likewise.
14925         (RSI_LP): Likewise.
14926         (RSP_LP): Likewise.
14927         (R8_LP): Likewise.
14928         (R9_LP): Likewise.
14929         (R10_LP): Likewise.
14930         (R10_LP): Likewise.
14931         (R11_LP): Likewise.
14932         (R12_LP): Likewise.
14933         (R13_LP): Likewise.
14934         (R14_LP): Likewise.
14935         (R15_LP): Likewise.
14936
14937 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14938
14939         * sysdeps/x86_64/x32/dl-machine.h: New file.
14940
14941 2012-05-14  Andreas Jaeger  <aj@suse.de>
14942
14943         * manual/Makefile (subdir): Remove export of subdir.
14944         (all): Remove target.
14945         (.PHONY): Remove all from list.
14946         (mkinstalldirs): Remove.
14947         (.PHONY): Remove installdirs from list.
14948         ($(inst_infodir)/libc.info): Use make-target-directory.
14949         (installdirs): Remove.
14950         (subdir_%): Remove.
14951         (glibc-targets): Remove.
14952         (lib): Remove.
14953         (stubs): Remove.
14954         ($(objpfx)stubs ../po/manual.pot): Remove.
14955         ($(objpfx)stamp%): Remove.
14956         (make-target-directory): Remove.
14957         (subdir_install): Remove.
14958         (routines): Remove.
14959         (aux): Remove.
14960         (sources): Remove.
14961         (objects): Remove.
14962         (headers): Remove.
14963
14964         [BZ #13750]
14965         * manual/.gitignore: Remove, it's not needed anymore.
14966         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14967         all files in it.
14968         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14969         directory.
14970         (texis): Renamed to $(objpfx)texis.
14971         (texis-path): New, contains path to generated files.
14972         (chapters.%): Use texis-path for complete path, add extra argument
14973         libc-texinfo.sh.
14974         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14975         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14976         (summary,texi, stamp-summary): Use complete path of
14977         files. Generate files in build dir.
14978         (dir-add.texi): Build in build dir.
14979         (libm-err.texi,stamp-libm-err): Likewise.
14980         (version.texi, stamp-version): Likewise.
14981         (.%c.texi): Likewise.
14982         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14983         (mostlyclean): Remove target.
14984         (realclean): Remove target.
14985         (generated): Add new variable with contents from mostlyclean and
14986         realclean, remove entries duplicated in common-mostlyclean, add
14987         stamp-libm-err and stamp-version.
14988         (generated-dirs): Add libc directory.
14989         ($(inst_infodir)/libc.info): Install files from build dir.
14990
14991         * manual/install.texi (Configuring and compiling): Adjust since
14992         the info files are not part of the tar ball anymore.
14993
14994 2012-05-14  Andreas Jaeger  <aj@suse.de>
14995
14996         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14997         variable.
14998
14999 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15000
15001         [BZ #13717]
15002         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15003         to 2.2.0 where earlier.
15004         * sysdeps/unix/sysv/linux/configure: Regenerated.
15005         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15006         Remove conditional code.
15007         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15008         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15009         Remove conditional code.
15010         [!__NR_lchown]: Likewise.
15011         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15012         [__NR_lchown]: Likewise.
15013         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15014         comment referencing __ASSUME_LCHOWN_SYSCALL.
15015         * sysdeps/unix/sysv/linux/i386/sigaction.c
15016         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15017         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15018         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15019         Remove conditional code.
15020         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15021         (__protocol_available): Remove #if 0 code.
15022         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15023         conditional code.
15024         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15025         * sysdeps/unix/sysv/linux/kernel-features.h
15026         (__ASSUME_GETCWD_SYSCALL): Don't define.
15027         (__ASSUME_REALTIME_SIGNALS): Likewise.
15028         (__ASSUME_PREAD_SYSCALL): Likewise.
15029         (__ASSUME_PWRITE_SYSCALL): Likewise.
15030         (__ASSUME_POLL_SYSCALL): Likewise.
15031         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15032         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15033         non-SPARC.
15034         (__ASSUME_SIOCGIFNAME): Don't define.
15035         (__ASSUME_MSG_NOSIGNAL): Likewise.
15036         (__ASSUME_SENDFILE): Define unconditionally.
15037         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15038         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15039         conditional code.
15040         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15041         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15042         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15043         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15044         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15045         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15046         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15048         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15049         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15051         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15052         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15054         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15055         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15057         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15058         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15060         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15061         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15063         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15064         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15066         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15067         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15069         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15070         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15071         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15072         Remove conditional code.
15073         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15074         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15075         Remove conditional code.
15076         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15077         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15078         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15079         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15080         Remove conditional code.
15081         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15082         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15083         Remove conditional code.
15084         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15085         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15086         Remove conditional code.
15087         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15088         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15089         Remove conditional code.
15090         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15091         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15092         Remove conditional code.
15093         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15094         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15095         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15096         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15097         * sysdeps/unix/sysv/linux/sigaction.c
15098         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15099         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15100         * sysdeps/unix/sysv/linux/sigpending.c
15101         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15102         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15103         * sysdeps/unix/sysv/linux/sigprocmask.c
15104         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15105         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15106         * sysdeps/unix/sysv/linux/sigsuspend.c
15107         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15108         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15109         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15110         (__libc_missing_rt_sigs): Remove.
15111         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15112         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15113         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15114         Remove conditional code.
15115         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15116         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15117         return 1.
15118         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15119         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15120         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15121         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15122
15123 2012-05-14  Andreas Jaeger  <aj@suse.de>
15124
15125         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15126         it's not used in glibc.
15127         (__coshm1): Likewise.
15128         (__acosh1p): Likewise.
15129         (__sgn): Likewise.
15130
15131         * manual/string.texi (Copying and Concatenation): Add missing
15132         variable in concat example.
15133         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15134
15135 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15136
15137         [BZ #14103]
15138         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15139         __builtin_clzl with __builtin_clzll.
15140
15141 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15142
15143         [BZ #14104]
15144         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15145         libc_freeres_ptr.
15146
15147 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15148
15149         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15150         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15151         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15152         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15153
15154 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15155
15156         * NEWS: Update ia64 info.
15157
15158 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15159
15160         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15161         used as bcopy.
15162
15163 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15164
15165         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15166         * sysdeps/unix/syscalls.list (dup3): Likewise.
15167         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15168         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15169
15170 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15171
15172         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15173         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15174
15175 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15176
15177         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15178         thread pointer.
15179         (TLS_IE): Use mov/add instead of movq/addq to load thread
15180         pointer.
15181         (TLS_GD_PREFIX): New.
15182         (TLS_GD): Use it.
15183
15184 2012-05-11  David S. Miller  <davem@davemloft.net>
15185
15186         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15187         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15188         (_FPU_SETCW): Likewise.
15189
15190 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15191
15192         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15193         is 32-byte aligned.
15194
15195 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15196
15197         [BZ #11837]
15198         * iconvdata/gb18030.c: Update tables.
15199         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15200         characters specially.
15201         (BODY for TO_LOOP): Add encoding of missing ranges.
15202
15203 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15204
15205         [BZ #13673]
15206         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15207         * sysdeps/mach/hurd/dup3.c: Likewise.
15208         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15209         * sysdeps/powerpc/memmove.c:: Likewise.
15210
15211 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15212
15213         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15214         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15215
15216 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15217
15218         * elf/elf.h (R_X86_64_RELATIVE64): New.
15219         (R_X86_64_NUM): Updated.
15220         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15221         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15222         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15223         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15224         tst-quad1pie tst-quad2pie
15225         (modules-names): Add tst-quadmod1 tst-quadmod2.
15226         ($(objpfx)tst-quad1): New dependency.
15227         ($(objpfx)tst-quad2): Likewise.
15228         ($(objpfx)tst-quad1pie): Likewise.
15229         ($(objpfx)tst-quad2pie): Likewise.
15230         * sysdeps/x86_64/tst-quad1.c: New file.
15231         * sysdeps/x86_64/tst-quad1pie.c: New file.
15232         * sysdeps/x86_64/tst-quad2.c: Likewise.
15233         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15234         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15235         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15236         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15237         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15238
15239 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15240
15241         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15242         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15243         * streams/stropts.h (t_scalar_t): Define type.
15244
15245         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15246         (_PATH_PRESERVE): Set to "/var/lib".
15247         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15248
15249         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15250         instead of int.
15251
15252         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15253         if __dir_mkfile succeeded.
15254
15255         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15256         checking for _hurd_dtablesize.  Unlock it right after having
15257         finished _hurd_dtable allocation.
15258
15259 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15260
15261         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15262         * sysdeps/mach/hurd/configure: Regenerated.
15263         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15264         special-casing to...
15265         * sysdeps/gnu/configure.in: ... this new file.
15266         * sysdeps/unix/sysv/linux/configure: Regenerated.
15267         * sysdeps/gnu/configure: New generated file.
15268
15269         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15270         for Linux: use nsec instead of usec, as well as:
15271         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15272         members of type struct timespec.
15273         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15274         New macros.
15275         (struct stat64): Likewise.
15276         (_STATBUF_ST_NSEC): New macro.
15277         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15278
15279         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15280         __strtoul_internal rather than strtoul.
15281
15282 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15283
15284         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15285         and reject them.
15286
15287 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15288
15289         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15290         which preserves existing values.
15291         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15292
15293 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15294
15295         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15296         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15297         greater than FD_SETSIZE.
15298
15299 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15300
15301         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15302         allocated, call __vm_protect to finish enabling the existing space, and
15303         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15304         allocate the remainder.
15305
15306 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15307
15308         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15309         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15310
15311 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15312
15313         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15314         sysdeps/mach/hurd/readlink.c.
15315
15316         * posix/tst-sysconf.c (posix_options): Only use
15317         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15318         _POSIX_SYNCHRONIZED_IO when they are defined
15319         * sysdeps/mach/hurd/bits/posix_opt.h:
15320         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15321         (_XOPEN_REALTIME): Undefine macro.
15322         (_XOPEN_REALTIME_THREADS): Undefine macro.
15323         (_XOPEN_SHM): Undefine macro.
15324         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15325         macro to -1.
15326         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15327         macro to -1.
15328         (_POSIX_ASYNC_IO): Undefine macro.
15329         (_POSIX_PRIORITIZED_IO): Undefine macro.
15330         (_POSIX_SPIN_LOCKS): Define macro to -1.
15331
15332         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15333         SA_NODEFER, SA_RESETHAND.
15334         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15335         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15336         F_DUPFD_CLOEXEC.
15337
15338 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15339
15340         * elf/Makefile (pldd-modules): Define unconditionally.
15341
15342 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15343
15344         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15345
15346 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15347
15348         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15349         Return ENOENT when name is empty.
15350         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15351
15352 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15353
15354         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15355
15356         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15357
15358 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15359
15360         Fix mlock in all cases except non-readable pages.
15361         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15362         instead of VM_PROT_ALL as parameter to __vm_wire function.
15363
15364         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15365         (__mkdir): When path is `/', just fail with EEXIST.
15366         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15367
15368 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15369
15370         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15371         <sys/uio.h> (for writev).
15372         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15373         and <sys/param.h> (for MIN).
15374
15375 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15376
15377         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15378         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15379         if interrupted.
15380
15381 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15382
15383         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15384         Depend on against $(link-rpcuserlibs).
15385
15386 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15387
15388         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15389         (__libc_stack_end): Do not use attribute_relro.
15390         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15391         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15392         to libthread-provided value.
15393         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15394         attribute_relro.
15395
15396 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15397
15398         [BZ #3748]
15399         * bits/libc-lock.h (__libc_once_get): New macro.
15400         * sysdeps/mach/bits/libc-lock.h: Likewise.
15401         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15402         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15403         instead of using implementation details.
15404
15405         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15406         * libio/freopen.c: Likewise.
15407         * libio/freopen64.c: Likewise.
15408         * misc/syslog.c: Likewise.
15409         * nscd/connections.c: Likewise.
15410         * nscd/netgroupcache.c: Likewise.
15411         * sysdeps/posix/getcwd.c: Likewise.
15412
15413 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15414
15415         * math/w_ilogbf.c: Add #include <limits.h>.
15416
15417 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15418
15419         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15420         path instead of returning without unlocking.
15421
15422         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15423         immediate-write ioctls.
15424         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15425
15426 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15427
15428         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15429         __builtin_frame_address instead of making assumptions about the
15430         location of the return address relative to DATA.  Force early load of
15431         the return address.
15432         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15433         __builtin_frame_address.
15434
15435         dup3 for GNU Hurd.
15436         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15437         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15438         implement dup3 and do some further code clean-ups.
15439         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15440         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15441
15442 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15443
15444         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15445
15446         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15447         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15448         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15449         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15450         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15451         d->port.lock.
15452
15453         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15454         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15455         when handler == SIG_ERR, not when handler != SIG_ERR.
15456
15457 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15458
15459         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15460         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15461         definitions.
15462
15463         accept4 for GNU Hurd.
15464         * include/sys/socket.h (__libc_accept4): New prototype.
15465         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15466         to implement __libc_accept4.
15467         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15468         __libc_accept4.
15469         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15470
15471         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15472         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15473         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15474         signal-defines.sym.
15475
15476 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15477
15478         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15479
15480 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15481
15482         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15483         assertion on O_CLOEXEC flag.
15484         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15485         * hurd/intern-fd.c: Likewise.
15486         * hurd/port2fd.c: Likewise.
15487
15488 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15489
15490         [BZ #3906]
15491         * bits/in.h (IPV6_PKTINFO): Define new macro.
15492         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15493
15494 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15495
15496         [BZ #13954]
15497         [BZ #13955]
15498         [BZ #13956]
15499         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15500         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15501         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15502         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15503         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15504         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15505         * math/libm-test.inc (logb_test) : Additional logb tests.
15506
15507 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15508             Andreas Jaeger  <aj@suse.de>
15509
15510         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15511         * configure: Regenerated.
15512         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15513         * config.make.in (link-obsolete-rpc): New substituted variable.
15514         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15515         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15516         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15517         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15518         so that libc.a contains the symbols.
15519         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15520         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15521         * sunrpc/auth_none.c: Likewise.
15522         * sunrpc/auth_unix.c: Likewise.
15523         * sunrpc/authdes_prot.c: Likewise.
15524         * sunrpc/authuxprot.c: Likewise.
15525         * sunrpc/clnt_gen.c: Likewise.
15526         * sunrpc/clnt_perr.c: Likewise.
15527         * sunrpc/clnt_raw.c: Likewise.
15528         * sunrpc/clnt_simp.c: Likewise.
15529         * sunrpc/clnt_tcp.c: Likewise.
15530         * sunrpc/clnt_udp.c: Likewise.
15531         * sunrpc/clnt_unix.c: Likewise.
15532         * sunrpc/des_crypt.c: Likewise.
15533         * sunrpc/des_soft.c: Likewise.
15534         * sunrpc/get_myaddr.c: Likewise.
15535         * sunrpc/key_call.c: Likewise.
15536         * sunrpc/key_prot.c: Likewise.
15537         * sunrpc/netname.c: Likewise.
15538         * sunrpc/pm_getmaps.c: Likewise.
15539         * sunrpc/pm_getport.c: Likewise.
15540         * sunrpc/pmap_clnt.c: Likewise.
15541         * sunrpc/pmap_prot.c: Likewise.
15542         * sunrpc/pmap_prot2.c: Likewise.
15543         * sunrpc/pmap_rmt.c: Likewise.
15544         * sunrpc/publickey.c: Likewise.
15545         * sunrpc/rpc_cmsg.c: Likewise.
15546         * sunrpc/rpc_common.c: Likewise.
15547         * sunrpc/rpc_dtable.c: Likewise.
15548         * sunrpc/rpc_prot.c: Likewise.
15549         * sunrpc/rpc_thread.c: Likewise.
15550         * sunrpc/rtime.c: Likewise.
15551         * sunrpc/svc.c: Likewise.
15552         * sunrpc/svc_auth.c: Likewise.
15553         * sunrpc/svc_raw.c: Likewise.
15554         * sunrpc/svc_run.c: Likewise.
15555         * sunrpc/svc_tcp.c: Likewise.
15556         * sunrpc/svc_udp.c: Likewise.
15557         * sunrpc/svc_unix.c: Likewise.
15558         * sunrpc/svcauth_des.c: Likewise.
15559         * sunrpc/xcrypt.c: Likewise.
15560         * sunrpc/xdr.c: Likewise.
15561         * sunrpc/xdr_array.c: Likewise.
15562         * sunrpc/xdr_float.c: Likewise.
15563         * sunrpc/xdr_intXX_t.c: Likewise.
15564         * sunrpc/xdr_mem.c: Likewise.
15565         * sunrpc/xdr_rec.c: Likewise.
15566         * sunrpc/xdr_ref.c: Likewise.
15567         * sunrpc/xdr_sizeof.c: Likewise.
15568         * sunrpc/xdr_stdio.c: Likewise.
15569
15570 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15571
15572         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15573         change.  Update copyright years.
15574
15575 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15576
15577         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15578
15579 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15580             Joseph Myers  <joseph@codesourcery.com>
15581             Paul Pluzhnikov  <ppluzhnikov@google.com>
15582
15583         [BZ #14012]
15584         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15585         requiring rpcgen.
15586         [cross-compiling] (extra-libs): Likewise.
15587         [cross-compiling] (extra-libs-others): Likewise.
15588         [cross-compiling] (librpcsvc-routines): Likewise.
15589         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15590         [cross-compiling] (omit-deps): Likewise.
15591         (sunrpc-CPPFLAGS): New variable.
15592         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15593         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15594         (cross-rpcgen-objs): New variable.
15595         (extra-objs): Append $(cross-rpcgen-objs).
15596         ($(cross-rpcgen-objs)): New rule.
15597         ($(objpfx)cross-rpcgen): Likewise.
15598         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15599         comment.
15600         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15601         ($(objpfx)x%.stmp): Likewise.
15602         * sunrpc/proto.h [IS_IN_build] (_): Define.
15603         [IS_IN_build] (_libc_intl_domainname): Likewise.
15604
15605 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15606
15607         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15608         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15609         and R_X86_64_TPOFF64.
15610
15611 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15612
15613         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15614         sysdeps/unix/sysv/syscalls.list.
15615         (stime): Likewise.
15616         (utime): Likewise.
15617         * sysdeps/unix/sysv/syscalls.list: Remove file.
15618
15619 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15620
15621         [BZ #3440]
15622         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15623         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15624         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15625         (__LC_IDENTIFICATION): Make these macros useful in #if
15626         expressions, as required by C99.
15627
15628 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15629
15630         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15631         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15632         after this.
15633
15634 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15635
15636         * stdlib/longlong.h: Updated from GCC.
15637
15638 2012-05-09  Andreas Jaeger  <aj@suse.de>
15639
15640         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15641         default is first entry.
15642         (run_mode): Set type.
15643         (main): Remove informal message about syslog.
15644         (options): Fix typo.
15645
15646         [BZ #14053]
15647         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15648         to asm.
15649         (lrint): Likewise.
15650         (llrintf): Likewise.
15651         (llrint): Likewise.
15652         (rint): Likewise.
15653         (rintf): Likewise.
15654         (nearbyint): Likewise.
15655         (nearbyintf): Likewise.
15656
15657 2012-05-09  Andreas Jaeger  <aj@suse.de>
15658             Pedro Alves  <palves@redhat.com>
15659
15660         * nscd/nscd.c (run_mode): Use enum.
15661         (main): Cleanup coding style issue.
15662
15663 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15664             Andreas Jaeger  <aj@suse.de>
15665
15666         * nscd/nscd.c (go_background): Replaced with...
15667         (run_mode): ... this.
15668         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15669         (options): Add -F --foreground.
15670         (main): Implement it.
15671         (parse_opt): Parse it.
15672
15673 2012-05-09  Andreas Jaeger  <aj@suse.de>
15674
15675         [BZ #14083]
15676         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15677         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15678         -Wconversion warning.
15679         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15680         Likewise.
15681
15682 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15683
15684         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15685         == 0.
15686         (LC_ALL): Use macro-int-constant.
15687         (LC_COLLATE): Likewise.
15688         (LC_CTYPE): Likewise.
15689         (LC_MESSAGES): Likewise.
15690         (LC_MONETARY): Likewise.
15691         (LC_NUMERIC): Likewise.
15692         (LC_TIME): Likewise.
15693         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15694         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15695         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15696         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15697         Specify type.
15698         [C99-based standards] (float_t): Expect type.
15699         [C99-based standards] (double_t): Expect type.
15700         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15701         type.
15702         [C99-based standards] (HUGE_VALL): Likewise.
15703         [C99-based standards] (INFINITY): Likewise.
15704         [C99-based standards] (NAN): Likewise.
15705         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15706         [C99-based standards] (FP_NAN): Likewise.
15707         [C99-based standards] (FP_NORMAL): Likewise.
15708         [C99-based standards] (FP_SUBNORMAL): Likewise.
15709         [C99-based standards] (FP_ZERO): Likewise.
15710         [C99-based standards] (FP_FAST_FMA): Use
15711         optional-macro-int-constant.  Specify type.  Require == 1.
15712         [C99-based standards] (FP_FAST_FMAF): Likewise.
15713         [C99-based standards] (FP_FAST_FMAL): Likewise.
15714         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15715         [C99-based standards] (FP_ILOGBNAN): Likewise.
15716         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15717         Specify type.
15718         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15719         [C99-based standards] (math_errhandling): Specify type.
15720         [ISO99 || ISO11] (signgam): Do not allow.
15721         [non-C99-based standards] (copysignf): Do not allow.
15722         [non-C99-based standards] (exp2f): Likewise.
15723         [non-C99-based standards] (log2f): Likewise.
15724         [non-C99-based standards] (modff): Allow.
15725         [non-C99-based standards] (erff): Do not allow.
15726         [non-C99-based standards] (erfcf): Likewise.
15727         [non-C99-based standards] (gammaf): Likewise.
15728         [non-C99-based standards] (hypotf): Likewise.
15729         [non-C99-based standards] (j0f): Likewise.
15730         [non-C99-based standards] (j1f): Likewise.
15731         [non-C99-based standards] (jnf): Likewise.
15732         [non-C99-based standards] (lgammaf): Likewise.
15733         [non-C99-based standards] (tgammaf): Likewise.
15734         [non-C99-based standards] (y0f): Likewise.
15735         [non-C99-based standards] (y1f): Likewise.
15736         [non-C99-based standards] (ynf): Likewise.
15737         [non-C99-based standards] (isnanf): Likewise.
15738         [non-C99-based standards] (acoshf): Likewise.
15739         [non-C99-based standards] (asinhf): Likewise.
15740         [non-C99-based standards] (atanhf): Likewise.
15741         [non-C99-based standards] (cbrtf): Likewise.
15742         [non-C99-based standards] (expm1f): Likewise.
15743         [non-C99-based standards] (ilogbf): Likewise.
15744         [non-C99-based standards] (log1pf): Likewise.
15745         [non-C99-based standards] (logbf): Likewise.
15746         [non-C99-based standards] (nextafterf): Likewise.
15747         [non-C99-based standards] (remainderf): Likewise.
15748         [non-C99-based standards] (rintf): Likewise.
15749         [non-C99-based standards] (scalbf): Likewise.
15750         [non-C99-based standards] (copysignl): Likewise.
15751         [non-C99-based standards] (exp2l): Likewise.
15752         [non-C99-based standards] (log2l): Likewise.
15753         [non-C99-based standards] (modfl): Allow.
15754         [non-C99-based standards] (erfl): Do not allow.
15755         [non-C99-based standards] (erfcl): Likewise.
15756         [non-C99-based standards] (gammal): Likewise.
15757         [non-C99-based standards] (hypotl): Likewise.
15758         [non-C99-based standards] (j0l): Likewise.
15759         [non-C99-based standards] (j1l): Likewise.
15760         [non-C99-based standards] (jnl): Likewise.
15761         [non-C99-based standards] (lgammal): Likewise.
15762         [non-C99-based standards] (tgammal): Likewise.
15763         [non-C99-based standards] (y0l): Likewise.
15764         [non-C99-based standards] (y1l): Likewise.
15765         [non-C99-based standards] (ynl): Likewise.
15766         [non-C99-based standards] (isnanl): Likewise.
15767         [non-C99-based standards] (acoshl): Likewise.
15768         [non-C99-based standards] (asinhl): Likewise.
15769         [non-C99-based standards] (atanhl): Likewise.
15770         [non-C99-based standards] (cbrtl): Likewise.
15771         [non-C99-based standards] (expm1l): Likewise.
15772         [non-C99-based standards] (ilogbl): Likewise.
15773         [non-C99-based standards] (log1pl): Likewise.
15774         [non-C99-based standards] (logbl): Likewise.
15775         [non-C99-based standards] (nextafterl): Likewise.
15776         [non-C99-based standards] (remainderl): Likewise.
15777         [non-C99-based standards] (rintl): Likewise.
15778         [non-C99-based standards] (scalbl): Likewise.
15779         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15780         [non-C99-based standards] (FP_*): Do not allow.
15781         [C99-based standards] (FP_*): Change to
15782         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15783         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15784         allow.
15785         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15786         (SIG_ERR): Likewise.
15787         [X/Open-based standards] (SIG_HOLD): Likewise.
15788         (SIG_IGN): Likewise.
15789         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15790         positive value.
15791         (SIGFPE): Likewise.
15792         (SIGILL): Likewise.
15793         (SIGINT): Likewise.
15794         (SIGSEGV): Likewise.
15795         (SIGTER): Likewise.
15796         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15797         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15798         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15799         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15800         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15801         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15802         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15803         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15804         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15805         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15806         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15807         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15808         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15809         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15810         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15811         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15812         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15813         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15814         [X/Open-based standards] (SIGTRAP): Likewise.
15815         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15816         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15817         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15818         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15819         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15820         allow.
15821
15822 2012-05-08  Ian Wienand  <ianw@vmware.com>
15823
15824         [BZ #14080]
15825         * time/tzset.c (__tzset_parse_tz): Update default rules for
15826         daylight time changes in the Energy Policy Act of 2005.
15827
15828 2012-05-09  Andreas Jaeger  <aj@suse.de>
15829
15830         [BZ #13983]
15831         * elf/ldconfig.c (parse_conf): Change string to make clear that
15832         ldconfig only issued a warning if ld.so.conf does not exist.
15833
15834 2012-05-08  David S. Miller  <davem@davemloft.net>
15835
15836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15837         movxtod instead of popping the value on the stack.
15838
15839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15840
15841 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15842
15843         * config.h.in: Add HAVE_ARM_PCS_VFP.
15844
15845 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15846
15847         [BZ #13979]
15848         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15849         checking but the checks are disabled for any reason.
15850
15851 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15852
15853         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15854         and ELF64_R_TYPE with ELFW(R_TYPE).
15855
15856 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15857
15858         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15859         (ulimit): Likewise.
15860
15861         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15862         (settimeofday): Likewise.
15863
15864 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15865
15866         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15867         a struct th_u2 inside the union, and move tu_block/tu_code into
15868         a new th_u3 union of tu_block/tu_code inside of that.  Move
15869         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15870         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15871         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15872         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15873         (th_stuff): Change to th_u1.tu_stuff.
15874         (th_data): Define.
15875         (th_msg): Change to th_u1.th_u2.tu_data.
15876
15877 2012-05-07  David S. Miller  <davem@davemloft.net>
15878
15879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15880
15881         [BZ #14074]
15882         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15883         (SETUP_PIC_REG): Use it.
15884         (SETUP_PIC_REG_LEAF): Use it.
15885
15886 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15887
15888         [BZ #13885]
15889         [BZ #13923]
15890         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15891         USE_AS_EXPM1L.
15892         (EXPL_FINITE): Likewise.
15893         (FLDLOG): Likewise.
15894         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15895         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15896         e_expl.S.
15897         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15898         USE_AS_EXPM1L.
15899         (EXPL_FINITE): Likewise.
15900         (FLDLOG): Likewise.
15901         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15902         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15903         e_expl.S.
15904         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15905         test of -max_value argument for long double.
15906         * sysdeps/i386/fpu/libm-test-ulps: Update.
15907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15908
15909 2012-05-06  David S. Miller  <davem@davemloft.net>
15910
15911         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15912         quad soft-float symbols whose references which are compiler
15913         generated.
15914         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15915
15916 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15917
15918         [BZ #13884]
15919         [BZ #13914]
15920         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15921         USE_AS_EXP10L.
15922         (EXPL_FINITE): Likewise.
15923         (FLDLOG): Likewise.
15924         (c0): Likewise.
15925         (c1): Likewise.
15926         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15927         Adjust comments for base varying.
15928         (__expl_finite): Change alias to EXPL_FINITE.
15929         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15930         e_expl.S.
15931         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15932         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15933         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15934         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15935         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15936         USE_AS_EXP10L.
15937         (EXPL_FINITE): Likewise.
15938         (FLDLOG): Likewise.
15939         (c0): Likewise.
15940         (c1): Likewise.
15941         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15942         Adjust comments for base varying.
15943         (__expl_finite): Change alias to EXPL_FINITE.
15944         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15945         tests for bugs.
15946         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15947
15948         [BZ #14064]
15949         * math/libm-test.inc (check_float_internal): Correct ulp
15950         calculation for subnormal expected results.
15951
15952 2012-05-06  Andreas Jaeger  <aj@suse.de>
15953
15954         * Makeconfig (+math-flags): New, set to -frounding-math.
15955         (+cflags): Add +math-flags so that all of glibc gets compiled with
15956         it.
15957
15958         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15959
15960 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15961
15962         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15963         Disable one test.
15964
15965         [BZ #13787]
15966         [BZ #13922]
15967         [BZ #14036]
15968         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15969         (__ieee754_expl): Allow for and saturate large arguments.
15970         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15971         (u_threshold): Likewise.
15972         (__exp): Call __ieee754_exp before checking for overflow and
15973         underflow.
15974         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15975         (u_threshold): Likewise.
15976         (__expf): Call __ieee754_expf before checking for overflow and
15977         underflow.
15978         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15979         (u_threshold): Likewise.
15980         (__expl): Call __ieee754_expl before checking for overflow and
15981         underflow.
15982         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15983         (__ieee754_expl): Allow for and saturate large arguments.
15984         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15985         missing overflow exception on overflow.
15986         (expm1_test): Do not allow missing overflow exception on overflow.
15987
15988         * sysdeps/i386/fpu/e_expl.c: Move to ...
15989         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15990         rather than using inline asm.
15991         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15992         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15993         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15994
15995         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15996         (nice): Likewise.
15997         (poll): Likewise.
15998         (signal): Likewise.
15999         (time): Likewise.
16000         (times): Likewise.
16001
16002 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16003
16004         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16005         sysdeps/unix/common/syscalls.list.
16006         (fchmod): Likewise.
16007         (fchown): Likewise.
16008         (ftruncate): Likewise.
16009         (getrusage): Likewise.
16010         (gettimeofday): Likewise.
16011         (setpgid): Likewise.
16012         (setregid): Likewise.
16013         (setreuid): Likewise.
16014         (sigaction): Likewise.
16015         (truncate): Likewise.
16016         (vhangup): Likewise.
16017         * sysdeps/unix/common/syscalls.list: Remove file.
16018         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16019         * sysdeps/unix/sysv/linux/Implies: Likewise.
16020
16021 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16022
16023         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16024         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16025         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16026         Moved to ...
16027         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16028         Here.
16029         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16030         to ...
16031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16032         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16033         to ...
16034         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16035         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16036         to ...
16037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16038         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16039         to ...
16040         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16041         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16042         to ...
16043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16044         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16045         to ...
16046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16047         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16048         to ...
16049         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16050         Here.
16051         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16052         to ...
16053         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16054         Here.
16055         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16056         to ...
16057         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16058         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16059         Moved to ...
16060         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16061         Here.
16062         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16063         to ...
16064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16065
16066 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16067
16068         * sysdeps/unix/common/bits/dirent.h: Remove file.
16069         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16070
16071         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16072         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16073         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16074         * sysdeps/unix/bsd/isatty.c: Likewise.
16075         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16076         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16077         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16078
16079 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16080
16081         [BZ #13563]
16082         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16083         long double comparison inaccuracies.
16084         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16085         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16086
16087 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16088
16089         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16090         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16091
16092 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16093
16094         [BZ #14049]
16095         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16096         nonzero digits before rounding a hex value.
16097         * stdlib/tst-strtod.c (tests): Add another test.
16098
16099 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16100
16101         * sysdeps/s390/fpu/libm-test-ulps: Update.
16102
16103 2012-05-03  Andreas Jaeger  <aj@suse.de>
16104
16105         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16106         does not get optimized out.
16107         (malloc_opt_barrier): New.
16108
16109 2012-05-03  Andreas Jaeger  <aj@suse.de>
16110             Roland McGrath  <roland@hack.frob.com>
16111
16112         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16113         intermediate file deletion.
16114         (generated): Add .symlist files.
16115
16116 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16117
16118         [BZ #13775]
16119         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16120         Redirect under this condition.
16121         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16122         [__USE_GNU] (__dprintf_chk): Not under this condition.
16123         [__USE_GNU] (__vdprintf_chk): Likewise.
16124         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16125         under this condition.
16126         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16127         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16128         [__USE_XOPEN2K8] (vdprintf): Likewise.
16129         [__USE_GNU] (__dprintf_chk): Not under this condition.
16130         [__USE_GNU] (__vdprintf_chk): Likewise.
16131         [__USE_GNU] (dprintf): Likewise.
16132         [__USE_GNU] (vdprintf): Likewise.
16133
16134 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16135
16136         * elf/Makefile (common-generated): Set this instead of generated for
16137         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16138         $(all-built-dso)-derived lists.
16139
16140 2012-05-03  Andreas Jaeger  <aj@suse.de>
16141
16142         * sysdeps/i386/fpu/libm-test-ulps: Update.
16143
16144         * FAQ: Removed.
16145         * FAQ.in: Likewise.
16146         * scripts/gen-FAQ.pl: Likewise.
16147         * manual/install.texi (Installation): Point to online location of
16148         FAQ.
16149         * Makefile (files-for-dist): Remove FAQ.
16150         (FAQ): Remove.
16151
16152 2012-05-02  Allan McRae  <allan@archlinux.org>
16153
16154         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16155         (LDFLAGS-reldepmod5.so): Likewise.
16156         (LDFLAGS-reldep6mod1.so): Likewise.
16157         (LDFLAGS-reldep6mod4.so): Likewise.
16158         (LDFLAGS-reldep8mod3.so): Likewise.
16159         (LDFLAGS-unload4mod1.so): Likewise.
16160         (LDFLAGS-unload4mod2.so): Likewise.
16161         (LDFLAGS-tst-initorder): Likewise.
16162         (LDFLAGS-tst-initordera2.so): Likewise.
16163         (LDFLAGS-tst-initordera3.so): Likewise.
16164         (LDFLAGS-tst-initordera4.so): Likewise.
16165         (LDFLAGS-tst-initorderb2.so): Likewise.
16166         (LDFLAGS-noload): Likewise.
16167         (LDFLAGS-next): Likewise.
16168         (LDFLAGS-order2mod1.so): Likewise.
16169         (LDFLAGS-order2mod2.so): Likewise.
16170         (LDFLAGS-tst-initorder2): Likewise.
16171         (LDFLAGS-tst-initorder2a.so): Likewise.
16172         (LDFLAGS-tst-initorder2b.so): Likewise.
16173         (LDFLAGS-tst-initorder2c.so): Likewise.
16174         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16175
16176 2012-05-02  David S. Miller  <davem@davemloft.net>
16177
16178         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16179
16180 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16181
16182         [BZ #14055]
16183         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16184
16185 2012-05-02  Andreas Jaeger  <aj@suse.de>
16186
16187         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16188         since we manipulate rounding mode.
16189         (CPPFLAGS-test-idouble.c): Likewise.
16190         (CPPFLAGS-test-ifloat.c): Likewise.
16191         (CFLAGS-test-ldouble.c): Likewise.
16192         (CFLAGS-test-double.c): Likewise.
16193         (CFLAGS-test-float.c): Likewise.
16194         (CFLAGS-test-misc.c): Likewise.
16195         (CFLAGS-test-test-fenv.c): Likewise.
16196
16197 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16198
16199         [BZ #2550]
16200         [BZ #2570]
16201         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16202         comparisons to determine direction to adjust input.
16203
16204 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16205
16206         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16207         output to the target.
16208
16209         * scripts/localplt.awk: New file.
16210         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16211         (check-localplt-CFLAGS): Variable removed.
16212         ($(all-built-dso:=.jmprel)): New static pattern rule.
16213         (generated): Add those targets.
16214         (localplt-built-dso): New variable.
16215         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16216
16217         * elf/check-localplt.c: File removed.
16218
16219         * scripts/check-execstack.awk: New file.
16220         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16221         (check-execstack-CFLAGS): Variable removed.
16222         ($(objpfx)check-execstack.h): Target removed.
16223         ($(objpfx)execstack-default): New target.
16224         (generated): Add that instead of check-execstack.h.
16225         ($(all-built-dso:=.phdr)): New static pattern rule.
16226         (generated): Add those targets.
16227         * elf/check-execstack.c: File removed.
16228
16229         * scripts/check-textrel.awk: New file.
16230         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16231         (check-textrel-CFLAGS): Variable removed.
16232         (all-built-dso): Use := to define.o
16233         ($(all-built-dso:=.dyn)): New static pattern rule.
16234         (generated): Add those targets.
16235         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16236         * config.make.in (READELF): New substituted variable.
16237         * elf/check-textrel.c: File removed.
16238
16239 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16240
16241         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16242         allow.
16243         * conform/data/ctype.h-data [C99-based standards] (isblank):
16244         Expect function.
16245         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16246         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16247         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16248         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16249         Specify type.  Require positive value.
16250         (EILSEQ): Likewise.
16251         (ERANGE): Likewise.
16252         [ISO || POSIX] (EILSEQ): Do not expect.
16253         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16254         Specify type.  Require positive value.
16255         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16256         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16257         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16258         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16259         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16260         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16261         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16262         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16263         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16264         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16265         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16266         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16267         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16268         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16269         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16270         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16271         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16272         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16273         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16274         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16275         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16276         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16277         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16278         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16279         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16280         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16281         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16282         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16283         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16284         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16285         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16286         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16287         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16288         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16289         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16290         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16291         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16292         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16293         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16294         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16295         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16296         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16297         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16298         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16299         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16300         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16301         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16302         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16303         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16304         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16305         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16306         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16307         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16308         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16309         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16310         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16311         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16312         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16313         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16314         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16315         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16316         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16317         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16318         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16319         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16320         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16321         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16322         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16323         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16324         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16325         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16326         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16327         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16328         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16329         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16330         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16331         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16332         Require >= 2.
16333         (FLT_ROUNDS): Expect as macro, not constant.
16334         (FLT_MANT_DIG): Use macro-int-constant.
16335         (DBL_MANT_DIG): Likewise.
16336         (LDBL_MANT_DIG): Likewise.
16337         (FLT_DIG): Likewise.
16338         (DBL_DIG): Likewise.
16339         (LDBL_DIG): Likewise.
16340         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16341         (DBL_MIN_EXP): Likewise.
16342         (LDBL_MIN_EXP): Likewise.
16343         (FLT_MAX_EXP): Use macro-int-constant.
16344         (DBL_MAX_EXP): Likewise.
16345         (LDBL_MAX_EXP): Likewise.
16346         (FLT_MAX_10_EXP): Likewise.
16347         (DBL_MAX_10_EXP): Likewise.
16348         (LDBL_MAX_10_EXP): Likewise.
16349         (FLT_MAX): Use macro-constant.
16350         (DBL_MAX): Likewise.
16351         (LDBL_MAX): Likewise.
16352         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16353         (DBL_EPSILON): Likewise.
16354         (LDBL_EPSILON): Likewise.
16355         (FLT_MIN): Likewise.
16356         (DBL_MIN): Likewise.
16357         (LDBL_MIN): Likewise.
16358         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16359         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16360         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16361         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16362         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16363         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16364         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16365         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16366         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16367         [ISO11] (FLT_TRUE_MIN): Likewise.
16368         [ISO11] (LDBL_TRUE_MIN): Likewise.
16369         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16370         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16371         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16372         (SCHAR_MAX): Likewise.
16373         (UCHAR_MAX): Likewise.
16374         (CHAR_MIN): Likewise.
16375         (CHAR_MAX): Likewise.
16376         (MB_LEN_MAX): Use macro-int-constant.
16377         (SHRT_MIN): Use macro-int-constant.  Specify type.
16378         (SHRT_MAX): Likewise.
16379         (USHRT_MAX): Likewise.
16380         (INT_MAX): Likewise.
16381         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16382         bound negative.
16383         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16384         bound with "U".
16385         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16386         bound with "L".
16387         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16388         bound negative.  Suffix upper bound with "L".
16389         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16390         bound with "UL".
16391         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16392         Specify type.
16393         [C99-based standards] (LLONG_MAX): Likewise.
16394         [C99-based standards] (ULLONG_MAX): Likewise.
16395         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16396         == 0.
16397         [ISO11] (max_align_t): Require type.
16398         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16399
16400         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16401         from $CFLAGS, without defining away __attribute__ calls.
16402         (checknamespace): Use $CFLAGS_namespace.
16403
16404         * conform/conformtest.pl (@keywords): Only include C99 keywords
16405         for standards based on C99 or C11.
16406
16407         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16408         Disable tests.
16409         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16410         UNIX98]: Likewise.
16411
16412         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16413         usability of symbols in #if.
16414
16415         * conform/conformtest.pl: If macro or constant types start
16416         "promoted:", expect the symbol to be of the following type
16417         promoted by the integer promotions.
16418
16419         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16420         in one place.  Also handle "macro-constant".
16421
16422         * conform/conformtest.pl: Only accept expected macro values with
16423         "==".  Parse all "macro" lines in one place.
16424         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16425
16426         * conform/conformtest.pl: Handle braced types on "constant" lines
16427         instead of handling "typed-constant".
16428         * conform/data/signal.h-data: Use "constant" instead of
16429         "typed-constant".
16430
16431         * conform/conformtest.pl: Handle "optional-" at start of lines in
16432         one place rather than duplicating several cases.  Handle each
16433         format of "macro" line with initial "optional-".
16434
16435         * conform/conformtest.pl: Only accept expected constant or
16436         optional-constant values with "==".  Parse all "constant" lines in
16437         one place.  Parse all "optional-constant" lines in one place.
16438         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16439         * conform/data/fmtmsg.h-data: Likewise.
16440         * conform/data/netinet/in.h-data: Likewise.
16441         * conform/data/tar.h-data: Likewise.
16442         * conform/data/limits.h-data: Use "==" form on "constant" and
16443         "optional-constant" lines.
16444
16445         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16446         Use -std=c99 for XOPEN2K.
16447         (@knownproblems): Remove.
16448         (newtoken): Don't check %isknown.
16449
16450         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16451         Do not expect macro.
16452         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16453         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16454         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16455         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16456         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16457         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16458         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16459         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16460         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16461         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16462         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16463         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16464         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16465         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16466         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16467         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16468         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16469         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16470         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16471         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16472         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16473         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16474         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16475         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16476         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16477         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16478         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16479         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16480         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16481         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16482         [XPG3] (acosh): Likewise.
16483         [XPG3] (asinh): Likewise.
16484         [XPG3] (atanh): Likewise.
16485         [XPG3] (cbrt): Likewise.
16486         [XPG3] (expm1): Likewise.
16487         [XPG3] (ilogb): Likewise.
16488         [XPG3] (log1p): Likewise.
16489         [XPG3] (logb): Likewise.
16490         [XPG3] (nextafter): Likewise.
16491         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16492         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16493         [XPG3] (remainder): Likewise.
16494         [XPG3] (rint): Likewise.
16495         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16496         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16497         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16498         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16499         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16500         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16501         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16502         [UNIX98 || XOPEN2K] (scalb): Expect.
16503         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16504         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16505         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16506         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16507         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16508         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16509         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16510         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16511         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16512         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16513         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16514         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16515         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16516         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16517         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16518         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16519         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16520         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16521         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16522         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16523         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16524         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16525         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16526         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16527         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16528         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16529         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16530         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16531         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16532         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16533         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16534         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16535         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16536         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16537         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16538         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16539         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16540         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16541         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16542         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16543         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16544         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16545         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16546         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16547         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16548         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16549         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16550         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16551         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16552         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16553         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16554         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16555         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16556         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16557         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16558         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16559         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16560         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16561         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16562         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16563         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16564         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16565         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16566         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16567         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16568         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16569         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16570         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16571         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16572         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16573         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16574         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16575         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16576         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16577         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16578         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16579         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16580         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16581         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16582         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16583         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16584         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16585         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16586         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16587         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16588         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16589         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16590         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16591         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16592         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16593         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16594         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16595         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16596         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16597         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16598         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16599         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16600         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16601         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16602         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16603         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16604         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16605         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16606         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16607         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16608         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16609         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16610         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16611         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16612         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16613         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16614         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16615         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16616         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16617         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16618         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16619         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16620         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16621         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16622         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16623         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16624         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16625         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16626         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16627         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16628         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16629         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16630         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16631         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16632         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16633         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16634         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16635         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16636         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16637         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16638         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16639         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16640
16641         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16642         _XOPEN_SOURCE_EXTENDED for XPG4.
16643
16644         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16645
16646         * Makeconfig (localtime): Remove variable.
16647         (inst_localtime-file): Likewise.
16648
16649 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16650
16651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16652         Update.
16653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16654         Update.
16655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16656         Update.
16657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16658         Update.
16659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16660         Update.
16661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16662         Update.
16663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16664         Update.
16665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16666         Update.
16667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16668         Update.
16669
16670 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16671
16672         [BZ #2550]
16673         [BZ #2570]
16674         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16675         comparisons to determine direction to adjust input.
16676         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16677         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16678         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16679         Likewise.
16680         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16681         Likewise.
16682         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16683         Likewise.
16684         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16685         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16686         Likewise.
16687         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16688         Likewise.
16689         * math/libm-test.inc (nexttoward_test): Add more tests.
16690
16691 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16692
16693         [BZ #14040]
16694         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16695         in version GLIBC_2.1, not GLIBC_2.0.
16696         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16697         Likewise.
16698
16699 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16700
16701         [BZ #13942]
16702         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16703         (1 - x) * (1 + x).
16704         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16705         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16706         * math/libm-test.inc (acos_test): Add more tests.
16707         (asin_test): Likewise.
16708         * sysdeps/i386/fpu/libm-test-ulps: Update.
16709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16710
16711         [BZ #14034]
16712         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16713         of square root.
16714         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16715         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16716         * math/libm-test.inc (acos_test_tonearest): New function.
16717         (acos_test_towardzero): Likewise.
16718         (acos_test_downward): Likewise.
16719         (acos_test_upward): Likewise.
16720         (asin_test_tonearest): Likewise.
16721         (asin_test_towardzero): Likewise.
16722         (asin_test_downward): Likewise.
16723         (asin_test_upward): Likewise.
16724         (main): Call the new functions.
16725         * sysdeps/i386/fpu/libm-test-ulps: Update.
16726         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16727
16728         [BZ #13884]
16729         [BZ #13924]
16730         * math/e_exp10.c: Include <float.h>.
16731         (__ieee754_exp10): Handle underflow here rather than multiplying
16732         large negative argument by M_LN10.
16733         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16734         of __ieee754_expf.
16735         * math/e_exp10l.c: Include <float.h>.
16736         (__ieee754_exp10l): Handle underflow here rather than multiplying
16737         large negative argument by M_LN10l.
16738         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16739         spurious overflow exception on underflow.
16740
16741 2012-04-29  Marek Polacek  <polacek@redhat.com>
16742
16743         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16744         (__fortify_function): New macro.
16745         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16746         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16747         __extern_always_inline.
16748         * libio/bits/stdio2.h: Likewise.
16749         * libio/bits/stdio.h: Likewise.
16750         * string/string.h: Likewise.
16751         * string/bits/string3.h: Likewise.
16752         * include/stdio.h: Likewise.
16753         * stdlib/bits/stdlib.h: Likewise.
16754         * stdlib/stdlib.h: Likewise.
16755         * rt/bits/mqueue2.h: Likewise.
16756         * rt/mqueue.h: Likewise.
16757         * posix/bits/unistd.h: Likewise.
16758         * posix/unistd.h: Likewise.
16759         * io/bits/poll2.h: Likewise.
16760         * io/bits/fcntl2.h: Likewise.
16761         * io/fcntl.h: Likewise.
16762         * io/sys/poll.h: Likewise.
16763         * misc/bits/syslog.h: Likewise.
16764         * misc/bits/syslog-ldbl.h: Likewise.
16765         * misc/sys/syslog.h: Likewise.
16766         * socket/bits/socket2.h: Likewise.
16767         * socket/sys/socket.h: Likewise.
16768         * debug/tst-chk1.c: Likewise.
16769         * wcsmbs/bits/wchar2.h: Likewise.
16770         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16771         * wcsmbs/wchar.h: Likewise.
16772
16773 2012-04-29  Andreas Jaeger  <aj@suse.de>
16774
16775         * Makerules (tests): Remove enable-check-abi protection.
16776         (check-abi-warn): Remove.
16777         (check-abi-%): Remove check-abi-warn usage.
16778
16779         * configure.in: Remove check-abi configure option.
16780         * configure: Regenerated.
16781         * config.make.in (enable-check-abi): Remove.
16782
16783 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16784
16785         [BZ #14033]
16786         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16787         double functions to double *_finite functions.
16788
16789         [BZ #13941]
16790         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16791         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16792         LDBL_MIN_EXP.
16793         * stdio-common/Makefile (tests): Add tst-sprintf3.
16794         * stdio-common/tst-sprintf3.c: New file.
16795
16796         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16797         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16798
16799 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16800
16801         * conform/conformtest.pl: Remove duplicate typed-constant
16802         handling.
16803
16804 2012-04-28  David S. Miller  <davem@davemloft.net>
16805
16806         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16807         (check-abi-%): Remove AWK script prerequisite and explicit
16808         abilist directory.
16809         (check-abi): Rewrite to just diff the symlist with the abilist.
16810         (config-tls, config-abi-config): Delete, no longer used.
16811         (update-abi-%): Remove AWK script and explicit abilist directory.
16812         (update-abi): Rewrite to simply compare and conditionally copy the
16813         symlist and the sysdep abilist file.  Remove update-abi-config
16814         checks.
16815         * abilist/ld.abilist: Remove.
16816         * abilist/libBrokenLocale.abilist: Remove.
16817         * abilist/libanl.abilist: Remove.
16818         * abilist/libcrypt.abilist: Remove.
16819         * abilist/libdl.abilist: Remove.
16820         * abilist/librt.abilist: Remove.
16821         * abilist/libthread_db.abilist: Remove.
16822         * abilist/libutil.abilist: Remove.
16823         * scripts/extract-abilist.awk: Remove.
16824         * scripts/merge-abilist.awk: Remove.
16825         * sysdeps/generic/libcidn.abilist: New file.
16826         * sysdeps/generic/libnss_compat.abilist: New file.
16827         * sysdeps/generic/libnss_db.abilist: New file.
16828         * sysdeps/generic/libnss_dns.abilist: New file.
16829         * sysdeps/generic/libnss_files.abilist: New file.
16830         * sysdeps/generic/libnss_hesiod.abilist: New file.
16831         * sysdeps/generic/libnss_nis.abilist: New file.
16832         * sysdeps/generic/libnss_nisplus.abilist: New file.
16833         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16834         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16835         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16836         file.
16837         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16838         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16839         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16840         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16841         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16842         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16843         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16844         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16845         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16846         file.
16847         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16848         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16849         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16850         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16851         file.
16852         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16853         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16854         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16855         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16856         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16857         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16858         file.
16859         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16860         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16861         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16862         file.
16863         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16864         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16865         New file.
16866         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16867         New file.
16868         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16869         New file.
16870         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16871         New file.
16872         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16873         New file.
16874         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16875         New file.
16876         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16877         New file.
16878         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16879         New file.
16880         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16881         New file.
16882         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16883         New file.
16884         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16885         New file.
16886         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16887         New file.
16888         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16889         New file.
16890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16891         file.
16892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16893         New file.
16894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16895         New file.
16896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16897         file.
16898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16899         New file.
16900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16901         New file.
16902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16903         file.
16904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16905         New file.
16906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16907         New file.
16908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16909         New file.
16910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16911         New file.
16912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16913         New file.
16914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16915         New file.
16916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16917         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16918         file.
16919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16920         New file.
16921         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16922         file.
16923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16924         file.
16925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16926         file.
16927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16928         file.
16929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16930         file.
16931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16932         New file.
16933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16934         file.
16935         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16936         file.
16937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16938         New file.
16939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16940         file.
16941         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16942         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16943         file.
16944         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16945         New file.
16946         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16947         file.
16948         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16949         file.
16950         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16951         file.
16952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16953         file.
16954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16955         file.
16956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16957         New file.
16958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16959         file.
16960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16961         file.
16962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16963         New file.
16964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16965         file.
16966         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16967         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16968         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16969         file.
16970         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16971         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16972         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16973         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16974         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16975         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16976         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16977         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16978         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16979         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16980         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16981         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16982         file.
16983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16984         New file.
16985         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16986         file.
16987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16988         file.
16989         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16990         file.
16991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16992         file.
16993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16994         file.
16995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16996         New file.
16997         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16998         New file.
16999         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17000         file.
17001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17002         New file.
17003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17004         file.
17005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17006         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17007         file.
17008         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17009         New file.
17010         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17011         file.
17012         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17013         file.
17014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17015         file.
17016         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17017         file.
17018         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17019         file.
17020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17021         New file.
17022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17023         New file.
17024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17025         file.
17026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17027         New file.
17028         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17029         file.
17030
17031 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17032
17033         * conform/conformtest.pl: Fix typo in handling typed-constant from
17034         allow-header.
17035
17036 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17037
17038         * README: Cut down references to pre-2.6 Linux kernels and
17039         Linuxthreads.  Update lists of configurations in libc and ports
17040         and sort alphabetically.  Say "or newer" with Linux kernel version
17041         requirements.
17042
17043         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17044
17045 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17046
17047         [BZ #887]
17048         * math/libm-test.inc (logb_test_downward): New test to expose
17049         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17050         rounding mode.
17051
17052 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17053
17054         [BZ #14027]
17055         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17056         to be done.
17057         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17058         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17059
17060 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17061
17062         * sysdeps/unix/i386/brk.S: Remove file.
17063         * sysdeps/unix/i386/dl-brk.S: Likewise.
17064         * sysdeps/unix/i386/pipe.S: Likewise.
17065         * sysdeps/unix/i386/sigreturn.S: Likewise.
17066         * sysdeps/unix/i386/syscall.S: Likewise.
17067         * sysdeps/unix/i386/vfork.S: Likewise.
17068         * sysdeps/unix/i386/wait.S: Likewise.
17069
17070         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17071         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17072
17073         * configure.in (arm*-none*): Do not allow without
17074         --enable-hacker-mode.
17075         (netbsd*): Remove case setting base_os.
17076         (386bsd*): Likewise.
17077         (freebsd*): Likewise.
17078         (bsdi*): Likewise.
17079         (osf*): Likewise.
17080         (sunos*): Likewise.
17081         (ultrix*): Likewise.
17082         (newsos*): Likewise.
17083         (dynix*): Likewise.
17084         (*bsd*): Likewise.
17085         (sysv*): Likewise.
17086         (isc*): Likewise.
17087         (esix*): Likewise.
17088         (sco*): Likewise.
17089         (minix*): Likewise.
17090         (irix4*): Likewise.
17091         (irix6*): Likewise.
17092         (solaris[2-9]*): Likewise.
17093         (none): Likewise.
17094         * configure: Regenerated.
17095
17096 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17097
17098         [BZ #11521]
17099         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17100         overflow or cancellation in calculating denominator.
17101         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17102         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17103         down expression to avoid unexpected rounding in newer GCCs.
17104         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17105
17106 2012-04-26  David S. Miller  <davem@davemloft.net>
17107
17108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17109         long-double compat symbols.
17110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17123
17124 2012-04-25  David S. Miller  <davem@davemloft.net>
17125
17126         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17127         HWCAP_* values only after the memory barriers have been defined.
17128         (atomic_full_barrier): Define.
17129         (atomic_read_barrier): Define.
17130         (atomic_write_barrier): Define.
17131
17132 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17133
17134         * shlib-versions: Add libgcc_s version information.
17135         * sysdeps/generic/libgcc_s.h: Remove.
17136         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17137         libgcc_s.h.
17138         * sysdeps/gnu/unwind-resume.c: Likewise.
17139         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17140
17141 2012-04-25  David S. Miller  <davem@davemloft.net>
17142
17143         * sysdeps/unix/sparc/brk.S: Delete.
17144         * sysdeps/unix/sparc/dl-brk.S: Delete.
17145         * sysdeps/unix/sparc/pipe.S: Delete.
17146         * sysdeps/unix/sparc/sysdep.S: Delete.
17147         * sysdeps/unix/sparc/sysdep.h: Delete.
17148         * sysdeps/unix/sparc/vfork.S: Delete.
17149         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17150         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17151         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17152         ret_ERRVAL, r0, r1, MOVE): Define.
17153         (JUMPTARGET): Remove.
17154         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17155         sysdeps/unix/sparc/sysdep.h
17156         (ENTRY, END): Remove.
17157         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17158
17159 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17160
17161         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17162         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17163         -DIS_IN_build.
17164
17165         * timezone/README: Update upstream location and email address for
17166         tzcode and tzdata.
17167         * timezone/zdump.c: Update from tzcode 2012b.
17168         * timezone/zic.c: Likewise.
17169
17170         * configure.in (libc_cv_as_needed): Remove test.
17171         * configure: Regenerated.
17172         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17173         conditional definition.
17174         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17175         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17176         * config.make.in (have-as-needed): Remove variable.
17177
17178 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17179             Paul Pluzhnikov  <ppluzhnikov@google.com>
17180
17181         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17182         strings correctly.
17183
17184 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17185
17186         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17187         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17188         * sysdeps/sh/strlen.S: Likewise.
17189
17190 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17191
17192         * sysdeps/unix/fork.S: Remove file.
17193         * sysdeps/unix/i386/fork.S: Likewise.
17194         * sysdeps/unix/sparc/fork.S: Likewise.
17195
17196         * sysdeps/unix/system.c: Remove file.
17197         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17198
17199         * sysdeps/unix/getegid.S: Remove file.
17200         * sysdeps/unix/geteuid.S: Likewise.
17201
17202 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17203
17204         * scripts/check-localplt.awk: New file.
17205         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17206         of diff.
17207         * scripts/data/localplt-generic.data: Add a comment.
17208
17209         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17210         NODE when __dir_mkfile failed.
17211         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17212         Reported by Ludovic Courtès <ludo@gnu.org>.
17213
17214 2012-04-24  Andreas Jaeger  <aj@suse.de>
17215
17216         * Makerules (common-clean): Also remove gen-as-const-headers
17217         files.
17218
17219 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17220
17221         * Makerules (native-compile): Do not change working directory for
17222         build.  Use $(OUTPUT_OPTION) in command.
17223         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17224
17225 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17226
17227         [BZ #13886]
17228         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17229         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17230         * math/libm-test.inc (floor_test): Add more tests.
17231         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17232
17233 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17234
17235         * sysdeps/unix/getdents.c: Remove file.
17236         * sysdeps/unix/sysv/getdents.c: Likewise.
17237         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17238
17239         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17240         sysdeps/unix/mman/syscalls.list.
17241         (mmap): Likewise.
17242         (mprotect): Likewise.
17243         (msync): Likewise.
17244         (munmap): Likewise.
17245         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17246         * sysdeps/unix/mman/syscalls.list: Remove.
17247         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17248
17249         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17250         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17251         * configure: Regenerated.
17252         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17253         $(libgcc_s_suffix).
17254         * config.make.in (libgcc_s_suffix): Remove variable.
17255
17256 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17257
17258         * sysdeps/unix/sysv/gethostname.c: Move to ...
17259         * sysdeps/posix/gethostname.c: ... here.
17260
17261         * sysdeps/unix/execve.S: Remove file.
17262
17263         * sysdeps/unix/_exit.S: Remove file.
17264
17265 2012-04-23  Andreas Jaeger  <aj@suse.de>
17266
17267         [BZ #13739]
17268         * manual/Makefile: Remove make dist support, there's no
17269         need for a stand-alone documentation tar ball.
17270         (TEXI2DVI): Define always, it's not in Makeconfig.
17271         (dist): Removed.
17272         (tar-it): Removed.
17273         (edition): Removed.
17274         (glibc-doc-$(edition).tar): Removed
17275         (%.Z): Removed.
17276         (%.gz): Removed.
17277         (%.uu): Removed.
17278         (ETAGS): Remove, it's in Makeconfig.
17279         (move-if-change): Remove, it's in Makeconfig.
17280
17281 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17282
17283         [BZ #13970]
17284         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17285         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17286         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17287         (strtod_l, strtof_l, strtold_l): Remove __wur.
17288         It is not necessarily an error to ignore strtol's return value.
17289         One can reliably look at the stored endptr to decide whether
17290         the number had valid syntax.
17291
17292 2012-04-21  Andreas Jaeger  <aj@suse.de>
17293
17294         [BZ #13739]
17295         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17296
17297 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17298
17299         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17300         * sysdeps/unix/sysv/Versions: Remove file.
17301
17302 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17303
17304         [BZ #13927]
17305         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17306
17307 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17308
17309         [BZ #7064]
17310         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17311         version from __vm86.
17312
17313 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17314
17315         * sysdeps/unix/common/lxstat.c: Remove file.
17316         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17317
17318         * sysdeps/unix/sysv/Makefile: Remove file.
17319
17320         * sysdeps/unix/sysv/direct.h: Remove file.
17321
17322         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17323         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17324         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17325         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17326         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17327         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17328         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17329
17330         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17331
17332         * sysdeps/unix/xmknod.c: Remove file.
17333         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17334
17335         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17336
17337         * sysdeps/unix/sysv/i386/time.S: Remove file.
17338
17339         * sysdeps/unix/fxstat.c: Remove file.
17340         * sysdeps/unix/xstat.c: Likewise.
17341         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17342
17343         * sysdeps/unix/sysv/sigaction.c: Remove file.
17344
17345         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17346         (sysdep_headers): Remove variable.
17347         [termio.h not in sysdep_headers] (generated): Likewise.
17348         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17349         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17350         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17351         * sysdeps/unix/sysv/tcflow.c: Likewise.
17352         * sysdeps/unix/sysv/tcflush.c: Likewise.
17353         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17354         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17355         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17356         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17357         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17358
17359         * sysdeps/unix/siglist.c: Remove file.
17360
17361         * sysdeps/unix/getppid.S: Remove file.
17362
17363         * sysdeps/unix/mkdir.c: Remove file.
17364         * sysdeps/unix/rmdir.c: Likewise.
17365
17366 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17367
17368         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17369         ERR_MAX value.
17370         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17371         errlist-compat value.
17372
17373 2012-04-18  David S. Miller  <davem@davemloft.net>
17374
17375         * sysdeps/generic/memcopy.h (reg_char): Delete.
17376         * debug/strcat_chk.c: Use char, not reg_char.
17377         * debug/strcpy_chk.c: Likewise.
17378         * debug/strncat_chk.c: Likewise.
17379         * debug/strncpy_chk.c: Likewise.
17380         * string/memchr.c: Likewise.
17381         * string/memrchr.c: Likewise.
17382         * string/rawmemchr.c: Likewise.
17383         * string/strcat.c: Likewise.
17384         * string/strchr.c: Likewise.
17385         * string/strchrnul.c: Likewise.
17386         * string/strcmp.c: Likewise.
17387         * string/strcpy.c: Likewise.
17388         * string/strncat.c: Likewise.
17389         * string/strncmp.c: Likewise.
17390         * string/strncpy.c: Likewise.
17391
17392 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17393
17394         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17395         __builtin_memcopy is called when src and dest ranges are known to not
17396         overlap.
17397
17398 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17399
17400         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17401         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17402         fwd_align_merge macro call.
17403         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17404         bwd_align_merge macro call.
17405         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17406
17407 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17408
17409         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17410         bwd_align_merge macros.
17411         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17412         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17413         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17414
17415 2012-04-18  David S. Miller  <davem@davemloft.net>
17416
17417         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17418
17419 2012-04-18  Andreas Jaeger  <aj@suse.de>
17420
17421         [BZ# 6794]
17422         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17423         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17424         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17425
17426         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17427         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17428         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17429
17430         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17431         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17432         Adjust for changed ldbl-128 files.
17433
17434         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17435         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17436         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17437
17438 2012-04-17  David S. Miller  <davem@davemloft.net>
17439
17440         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17441
17442 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17443
17444         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17445         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17446         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17447         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17448         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17449         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17450
17451 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17452
17453         [BZ #6794]
17454         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17455         * math/libm-test.inc: Add ilogb errno and exception tests.
17456         * math/w_ilogb.c: New file: ilogb wrapper.
17457         * math/w_ilogbf.c: New file: ilogbf wrapper.
17458         * math/w_ilogbl.c: New file: ilogbl wrapper.
17459         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17460         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17461         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17462         exception being thrown with 0.0 as argument.
17463         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17464         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17465         exception being thrown with 0.0 as argument.
17466         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17467         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17468         exception being thrown with 0.0 as argument.
17469         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17470         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17471         exception being thrown with 0.0 as argument.
17472         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17473         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17474         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17475         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17476         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17477         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17478         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17479         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17480         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17481
17482 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17483
17484         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17485         with altivec.
17486
17487 2012-04-16  Marek Polacek  <polacek@redhat.com>
17488
17489         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17490
17491 2012-04-16  Marek Polacek  <polacek@redhat.com>
17492
17493         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17494         operands of fdivp instruction.
17495
17496 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17497
17498         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17499         * elf/tst-auditmod3b.c: Likewise.
17500         * elf/tst-auditmod4b.c: Likewise.
17501         * elf/tst-auditmod5b.c: Likewise.
17502         * elf/tst-auditmod6b.c: Likewise.
17503         * elf/tst-auditmod6c.c: Likewise.
17504         * elf/tst-auditmod7b.c: Likewise.
17505         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17506         * sysdeps/x86_64/preconfigure.in: Likewise.
17507         * sysdeps/x86_64/preconfigure: Regenerated.
17508
17509 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17510
17511         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17512         __ILP32__.
17513
17514 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17515
17516         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17517         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17518
17519 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17520
17521         [BZ #13973]
17522         * locale/iso-639.def: Fix gl language name. Spotted by
17523         Yaron Shahrabani.
17524
17525 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17526
17527         [BZ #2074]
17528         * libio/libio.h (__io_write_fn): Update comment.
17529
17530 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17531
17532         [BZ #2074]
17533         * stdio.texi (Hook Functions): The user provided writer function
17534         is not allowed to return -1.
17535
17536 2012-04-11  David S. Miller  <davem@davemloft.net>
17537
17538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17539
17540 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17541
17542         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17543         Add a leading slash to rtkaio.
17544
17545 2012-04-11  Jim Meyering  <meyering@redhat.com>
17546
17547         [BZ #11959]
17548         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17549         It is not necessarily an error to ignore fwrite's return
17550         value.  One can reliably use ferror to test for errors after
17551         the fact.
17552
17553 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17554
17555         * bits/types.h (__snseconds_t): New type.
17556         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17557
17558         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17559         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17560         (__SNSECONDS_T_TYPE): Likewise.
17561         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17562         (__SNSECONDS_T_TYPE): Likewise.
17563         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17564         (__SNSECONDS_T_TYPE): Likewise.
17565
17566 2012-04-10  Andreas Jaeger  <aj@suse.de>
17567
17568         [BZ #2636]
17569         * manual/time.texi (Processor Time): Return type of times is
17570         elapsed real time since an arbitrary point in the past.
17571         (CPU Time): Move CLK_TCK from here...
17572         (Processor Time): ...to here.  Correct description.
17573         * manual/conf.texi (Constants for Sysconf): Correct description of
17574         _SC_CLK_TCK.
17575
17576 2012-04-10  David S. Miller  <davem@davemloft.net>
17577
17578         [BZ #13967]
17579         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17580         where the is a gap between DT_REL(A) and DT_JMPREL.
17581
17582 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17583
17584         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17585         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17586         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17587
17588 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17589
17590         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17591         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17592         (dl_main): Handle --inhibit-cache.
17593         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17594         _dl_inhibit_cache.
17595         * elf/dl-load.c (_dl_map_object): Use it.
17596         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17597
17598 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17599
17600         [BZ #13872]
17601         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17602         (__ieee754_powl): Saturate large exponents rather than testing for
17603         overflow of y*log2(x).
17604         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17605         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17606         exceptions.
17607
17608         [BZ #11521]
17609         * math/s_ctan.c: Include <float.h>.
17610         (__ctan): Avoid internal overflow or cancellation in calculating
17611         denominator.
17612         * math/s_ctanf.c: Likewise.
17613         * math/s_ctanl.c: Likewise.
17614         * math/s_ctanh.c: Likewise.
17615         * math/s_ctanhf.c: Likewise.
17616         * math/s_ctanhl.c: Likewise.
17617         * math/libm-test.inc (ctan_test): Add more tests.
17618         (ctanh_test): Likewise.
17619         * sysdeps/i386/fpu/libm-test-ulps: Update.
17620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17621
17622 2012-04-09  Andreas Jaeger  <aj@suse.de>
17623
17624         [BZ #6894]
17625         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17626         is an optional BSD extension.
17627
17628         [BZ #10254]
17629         * manual/stdio.texi (Opening Streams): Document additional fopen
17630         parameters.
17631
17632 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17633
17634         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17635         %eax without telling the compiler.
17636
17637 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17638
17639         [BZ # 13963]
17640         * manual/install.texi: Use sourceware.org.
17641
17642 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17643
17644         [BZ #13873]
17645         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17646         (__ieee754_pow): Generate overflow and underflow using huge*huge
17647         and tiny*tiny rather than just returning constant infinity or zero
17648         for large exponents.
17649         * math/libm-test.inc (pow_test): Require overflow exceptions for
17650         applicable cases of large exponents.
17651
17652         [BZ #706]
17653         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17654         (__ieee754_pow): Use iterative multiplication algorithm only for
17655         integer exponents with absolute value below 1024.  Check for odd
17656         integer exponents when using algorithm for real exponents.
17657         * math/libm-test.inc (pow_test): Add more tests.
17658         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17659
17660 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17661
17662         [BZ #13705]
17663         * math/libm-test.inc (exp_test): Do not allow overflow exception
17664         on underflow test.
17665
17666 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17667
17668         [BZ #13705]
17669         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17670         instead of __kernel_standard_f.
17671
17672 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17673
17674         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17675         * sysdeps/x86_64/memset_chk.S: Likewise.
17676
17677 2012-04-08  Andreas Jaeger  <aj@suse.de>
17678
17679         [BZ #10153]
17680         * manual/startup.texi (Environment Access): Describe return value
17681         for putenv and setenv.
17682
17683         [BZ #6895]
17684         * manual/filesys.texi (Directory Entries): Add description for
17685         DT_LNK.
17686
17687         [BZ #6890]
17688         * manual/filesys.texi (Directory Entries): Clarify that it's file
17689         system not operating system in the description of DT_UNKNOWN.
17690
17691         [BZ #6578]
17692         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17693
17694 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17695
17696         [BZ #6649]
17697         * manual/llio.texi (Opening and Closing Files): Add cross
17698         reference to explain mode argument.
17699
17700 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17701
17702         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17703         * sysdeps/x86_64/memset_chk.S: Likewise.
17704
17705 2012-04-07  David S. Miller  <davem@davemloft.net>
17706
17707         * elf/elf.h (R_SPARC_WDISP10): Define.
17708         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17709         R_SPARC_SIZE32.
17710         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17711         R_SPARC_SIZE64 and R_SPARC_H34.
17712
17713 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17714
17715         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17716         conditions and remove no longer applicable assertion.
17717
17718 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17719
17720         * bits/byteswap.h: Include <features.h>.
17721         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17722         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17723
17724 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17725
17726         * bits/byteswap.h (__bswap_16): Removed.
17727         Include <bits/byteswap-16.h> to get __bswap_16.
17728         * sysdeps/i386/bits/byteswap.h: Likewise.
17729         * sysdeps/s390/bits/byteswap.h: Likewise.
17730         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17731         * bits/byteswap-16.h: New file.
17732         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17733         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17734         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17735         * string/Makefile (headers): Add bits/byteswap-16.h.
17736
17737 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17738
17739         [BZ #13895]
17740         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17741         extra indirection.
17742         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17743         * nss/tst-nss-static.c: New.
17744
17745 2012-04-06  Robert Millan  <rmh@gnu.org>
17746
17747         [BZ #6486]
17748         * manual/llio.texi (File Position Primitive): lseek
17749         refers to WHENCE when it really means OFFSET.
17750
17751 2012-04-06  Andreas Jaeger  <aj@suse.de>
17752
17753         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17754         strncmp declarations.
17755
17756         * abilist/libc.abilist: Add __poll and __ppoll.
17757
17758 2012-04-05  David S. Miller  <davem@davemloft.net>
17759
17760         * scripts/check-local-headers.sh: Accept a host triplet in the
17761         path matched by the exclude regexp.
17762
17763         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17764         definition.
17765         * sysdeps/powerpc/powerpc32/dl-machine.h
17766         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17767         * sysdeps/s390/s390-32/dl-machine.h
17768         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17769         * sysdeps/sparc/sparc32/dl-machine.h
17770         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17771         * sysdeps/sparc/sparc64/dl-machine.h
17772         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17773
17774         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17775         lazy binding.
17776         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17777         undefined symbol errors.
17778
17779         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17780         DT_NEEDED entries.
17781
17782 2012-04-05  Michael Matz  <matz@suse.de>
17783
17784         [BZ #13592]
17785         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17786
17787 2012-04-05  Andreas Jaeger  <aj@suse.de>
17788
17789         [BZ #13908]
17790         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17791         comment.
17792
17793 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17794
17795         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17796         which ROUND is no valid rounding mode.
17797
17798 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17799
17800         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17801         read again.
17802         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17803
17804 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17805
17806         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17807         an exception using FPU order intentionally.
17808
17809 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17810
17811         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17812         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17813         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17814         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17815
17816 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17817
17818         [BZ #12340]
17819         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17820         EINVAL when BUFLEN is too smal.
17821
17822 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17823
17824         [BZ #13553]
17825         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17826         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17827
17828 2012-04-03  Andreas Jaeger  <aj@suse.de>
17829
17830         [BZ #13938]
17831         * manual/setjmp.texi (System V contexts): Fix sentence.
17832
17833         [BZ #13926]
17834         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17835         New macro for this case.
17836         [!__GNUC__] (__bswap_64): New inline function for this case.
17837         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17838         * bits/byteswap.h: Likewise.
17839         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17840         ull, guard with __GLIBC_HAVE_LONG_LONG.
17841
17842         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17843         __GLIBC_HAVE_LONG_LONG.
17844
17845         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17846         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17847
17848 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17849
17850         [BZ #13691]
17851         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17852         inptr and inend, rather than using last_ch.
17853
17854 2012-04-02  David S. Miller  <davem@davemloft.net>
17855
17856         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17857         * stdio-common/printf-parse.h (read_int): Change return type to
17858         'int', return -1 on INT_MAX overflow.
17859         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17860         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17861         overflows INT_MAX.  Check for overflow of in-format-string precision
17862         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17863         SIZE_MAX not INT_MAX for integer overflow test.
17864         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17865         skip the construct in the format string but do not record anything.
17866         * stdio-common/bug22.c: Adjust to test both width/prevision
17867         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17868         explicitly for proper errno values.
17869
17870 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17871
17872         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17873         CHAR_MAX.
17874         * string/test-strcmp.c [! WIDE]: Likewise.
17875         * time/tst-mktime2.c: Likewise for INT_MAX.
17876         * string/test-string.h: #include <sys/param.h> for MIN.
17877
17878         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17879         * sysdeps/i386/init-first.c (init): Likewise.
17880         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17881         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17882         * sysdeps/sh/init-first.c (init): Likewise.
17883
17884 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17885
17886         * po/ru.po: Update from translation team.
17887         * po/vi.po: Likewise.
17888
17889 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17890
17891         * resolv/nss_dns/dns-host.c: Merge copyright years.
17892
17893 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17894
17895         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17896         Optimize memcpy with prefetch if
17897         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17898         src, dst pointers have unequal 16 byte alignments.
17899
17900 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17901
17902         [BZ #13928]
17903         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17904         from a CNAME entry and return the minimum ttl for the query.
17905         (gaih_getanswer_slice): Likewise.
17906
17907 2012-03-30  Jeff Law  <law@redhat.com>
17908
17909         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17910         due to long keys.
17911         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17912         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17913
17914         * resolv/nss_dns/dns-host.c: Update copyright year.
17915
17916 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17917
17918         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17919         requests to save a system call.  Fix check that all bytes are sent.
17920
17921         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17922         comments for sendmmsg.
17923
17924 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17925
17926         [BZ #13691]
17927         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17928         with only 1 character between 0x0041 and 0x01b0.
17929         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17930         * wcsmbs/tst-mbsnrtowcs.c: New file.
17931
17932 2012-03-29  David S. Miller  <davem@davemloft.net>
17933
17934         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17935         small copies by hand.
17936
17937 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17938
17939         [BZ #13761]
17940         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17941         _nss_compat_initgroups_dyn): Fall back to malloc/free
17942         for large group memberships.
17943
17944 2012-03-28  David S. Miller  <davem@davemloft.net>
17945
17946         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17947         that branches into memcpy.
17948         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17949         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17950         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17951         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17952         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17953         bits.
17954         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17955         implementation too.
17956         * sysdeps/sparc/mempcpy.S: New file.
17957
17958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17959         the IFUNC routine in the libc case.
17960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17961
17962         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17963         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17964         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17965         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17966         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17967         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17968         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17969         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17970
17971         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17972         loop to 256 bytes instead of 64 bytes and fix test signedness.
17973
17974         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17975         * sysdeps/sparc/sparc32/Makefile: rather than here...
17976         * sysdeps/sparc/sparc64/Makefile: and here.
17977
17978 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17979
17980         * malloc/mallocbug.c: Avoid warnings about unused variables.
17981
17982 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17983
17984         [BZ #13760]
17985         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17986         in the right place. Discard and retry query if response is
17987         larger than input buffer size.
17988
17989 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17990
17991         [BZ #369]
17992         [BZ #2678]
17993         [BZ #3866]
17994         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17995         x for large integer exponent.
17996         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17997         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17998         sign of result as needed afterwards.
17999         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18000         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18001         result for underflowing pow the same as for overflow.
18002         (__kernel_standard_l): Handle powl overflow and underflow here
18003         rather than calling __kernel_standard.
18004         * math/libm-test.inc (pow_test): Add more tests.
18005
18006         [BZ #3868]
18007         [BZ #13879]
18008         [BZ #13910]
18009         [BZ #13911]
18010         [BZ #13912]
18011         [BZ #13913]
18012         [BZ #13915]
18013         [BZ #13916]
18014         [BZ #13917]
18015         [BZ #13918]
18016         [BZ #13919]
18017         [BZ #13920]
18018         [BZ #13921]
18019         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18020         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18021         (__kernel_standard_l): New function.
18022         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18023         __kernel_standard.
18024         * math/w_acosl.c (__acosl): Likewise.
18025         * math/w_asinl.c (__asinl): Likewise.
18026         * math/w_atan2l.c (__atan2l): Likewise.
18027         * math/w_atanhl.c (__atanhl): Likewise.
18028         * math/w_coshl.c (__coshl): Likewise.
18029         * math/w_exp10l.c (__exp10l): Likewise.
18030         * math/w_exp2l.c (__exp2l): Likewise.
18031         * math/w_fmodl.c (__fmodl): Likewise.
18032         * math/w_hypotl.c (__hypotl): Likewise.
18033         * math/w_j0l.c (__j0l, __y0l): Likewise.
18034         * math/w_j1l.c (__j1l, __y1l): Likewise.
18035         * math/w_jnl.c (__jnl, __ynl): Likewise.
18036         * math/w_lgammal.c (__lgammal): Likewise.
18037         * math/w_log10l.c (__log10l): Likewise.
18038         * math/w_log2l.c (__log2l): Likewise.
18039         * math/w_logl.c (__logl): Likewise.
18040         * math/w_powl.c (__powl): Likewise.
18041         * math/w_remainderl.c (__remainderl): Likewise.
18042         * math/w_scalbl.c (sysv_scalbl): Likewise.
18043         * math/w_sinhl.c (__sinhl): Likewise.
18044         * math/w_sqrtl.c (__sqrtl): Likewise.
18045         * math/w_tgammal.c (__tgammal): Likewise.
18046         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18047         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18048         * math/libm-test.inc (acos_test): Add more tests.
18049         (acosh_test): Likewise.
18050         (asin_test): Likewise.
18051         (atanh_test): Likewise.
18052         (exp_test): Likewise.
18053         (exp10_test): Likewise.
18054         (exp2_test): Likewise.
18055         (expm1_test): Likewise.
18056         (lgamma_test): Likewise.
18057         (log_test): Likewise.
18058         (log10_test): Likewise.
18059         (log1p_test): Likewise.
18060         (log2_test): Likewise.
18061         (pow_test): Do not allow some spurious overflow exceptions.
18062         (sqrt_test): Add more tests.
18063         (tgamma_test): Likewise.
18064         (y0_test): Likewise.
18065         (y1_test): Likewise.
18066         (yn_test): Likewise.
18067
18068 2012-03-27  Anton Blanchard  <anton@samba.org>
18069
18070         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18071         MAP_HUGETLB.
18072         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18073         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18074         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18075
18076 2012-03-27  David S. Miller  <davem@davemloft.net>
18077
18078         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18079
18080         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18081         have-as-vis3 check.
18082
18083 2012-03-27  Andreas Jaeger  <aj@suse.de>
18084
18085         * sysdeps/x86_64/elf/configure.in: Moved to ...
18086         * sysdeps/x86_64/configure.in: ... here.
18087         * sysdeps/x86_64/elf/start.S: Moved to ...
18088         * sysdeps/x86_64/start.S: ... here.
18089         * sysdeps/x86_64/elf/configure: Delete.
18090
18091         * sysdeps/x86_64/configure.in: Merge contents from
18092         sysdeps/i386/configure.in (without i686 check).
18093
18094         * sysdeps/i386/elf/Versions: Merge into ...
18095         * sysdeps/i386/Versions: ... this.
18096         * sysdeps/i386/elf/Versions: Delete file.
18097         * sysdeps/i386/elf/start.S: Moved to ...
18098         * sysdeps/i386/start.S: ...here.
18099         * sysdeps/i386/elf/configure.in: Merge into...
18100         * sysdeps/i386/configure.in: ...here.
18101         * sysdeps/i386/elf/configure.in: Delete file.
18102         * sysdeps/i386/elf/configure: Delete file.
18103
18104         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18105         * debug/backtracesyms.c: ... here.
18106         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18107         * debug/backtracesymsfd.c: ... here.
18108         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18109         * sysdeps/generic/ifunc-sel.h: ... here.
18110
18111         * sysdeps/unix/i386/start.c: Delete file.
18112         * sysdeps/unix/sparc/start.c: Delete file.
18113         * sysdeps/unix/start.c: Delete file.
18114
18115         * sysdeps/sh/elf/configure.in: Moved to ...
18116         * sysdeps/sh/configure.in: ... here.
18117         * sysdeps/sh/elf/start.S: Moved to ...
18118         * sysdeps/sh/start.S: ... here.
18119         * sysdeps/sh/elf/configure: Delete file.
18120
18121         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18122         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18123         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18124         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18125         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18126         * sysdeps/powerpc/powerpc64/start.S: here.
18127         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18128         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18129         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18130         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18131         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18132
18133         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18134         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18135         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18136         * sysdeps/powerpc/powerpc32/start.S: ... here.
18137         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18138         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18139         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18140
18141         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18142         * sysdeps/powerpc/ifunc-sel.h: ... here.
18143         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18144         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18145
18146         * sysdeps/sparc/elf/configure.in: Moved to ...
18147         * sysdeps/sparc/configure.in: ... here.
18148         * sysdeps/sparc/elf/configure: Delete file.
18149         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18150         * sysdeps/sparc/sparc32/start.S: ... here.
18151         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18152         * sysdeps/sparc/sparc64/start.S: ... here.
18153         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18154         * sysdeps/sparc/sparc32/Makefile: ... this.
18155         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18156         * sysdeps/sparc/sparc64/Makefile: ... this.
18157
18158         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18159         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18160         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18161         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18162         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18163         * sysdeps/s390/s390-32/setjmp.S: ... here.
18164         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18165         * sysdeps/s390/s390-32/configure.in: ... here.
18166         * sysdeps/s390/s390-32/elf/configure: Delete file.
18167         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18168         * sysdeps/s390/s390-32/start.S: ... here.
18169
18170         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18171         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18172         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18173         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18174         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18175         * sysdeps/s390/s390-64/setjmp.S: ... here.
18176         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18177         * sysdeps/s390/s390-64/configure.in: ... here
18178         * sysdeps/s390/s390-64/elf/configure: Delete file.
18179         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18180         * sysdeps/s390/s390-64/start.S: ... here.
18181         * sysdeps/s390/s390-64/elf/configure: Delete.
18182
18183         * configure.in: Remove support for elf directories in sysdeps.
18184
18185         * configure: Regenerated.
18186         * sysdeps/i386/configure: Regenerated.
18187         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18188         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18189         * sysdeps/s390/s390-32/configure: Regenerated.
18190         * sysdeps/s390/s390-64/configure: Regenerated.
18191         * sysdeps/sh/configure: Regenerated.
18192         * sysdeps/sparc/configure: Regenerated.
18193         * sysdeps/x86_64/configure: Regenerated.
18194
18195 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18196
18197         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18198
18199         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18200         denormal result into account.
18201
18202 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18203
18204         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18205         Reported by Allan McRae <allan@archlinux.org>.
18206
18207 2012-03-23  Jeff Law  <law@redhat.com>
18208
18209         * nss/getnssent.c (__nss_getent): Fix typo.
18210
18211 2012-03-23  David S. Miller  <davem@davemloft.net>
18212
18213         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18214
18215 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18216
18217         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18218         to pad to uint64_t for each field.
18219         (dl_tls_index): Replace unsigned long with uint64_t.
18220
18221 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18222         Paul Pluzhnikov  <ppluzhnikov@google.com>
18223
18224         [BZ #6528]
18225         * grp/Makefile (otherlibs): Don't set it.
18226         * inet/Makefile (otherlibs): Likewise.
18227         * login/Makefile (otherlibs): Likewise.
18228         * nscd/Makefile (otherlibs): Likewise.
18229         * posix/Makefile (otherlibs): Likewise.
18230         * pwd/Makefile (otherlibs): Likewise.
18231         * rt/Makefile (otherlibs): Likewise.
18232         * sunrpc/Makefile (otherlibs): Likewise.
18233         * nss/Makefile (otherlibs): Likewise.
18234         Add libnss_files to routines and static-only-routines.
18235         ($(objpfx)getent): Remove rule.
18236         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18237         static-only-routines.
18238
18239 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18240
18241         [BZ #13892]
18242         * math/s_cexp.c: Include <float.h>.
18243         (__cexp): Handle exp result overflowing not necessarily
18244         overflowing both real and imaginary parts of result.
18245         * math/s_cexpf.c: Likewise.
18246         * math/s_cexpl.c: Likewise.
18247         * math/libm-test.inc (cexp_test): Add more tests.
18248         * sysdeps/i386/fpu/libm-test-ulps: Update.
18249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18250
18251 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18252
18253         * include/link.h (ELFW): New macro.
18254         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18255         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18256
18257 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18258
18259         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18260         with uint64_t.
18261
18262 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18263
18264         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18265         declaration.
18266         (struct La_x32_retval): Likewise.
18267
18268 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18269
18270         * sysdeps/x86_64/preconfigure.in: New file.
18271         * sysdeps/x86_64/preconfigure: New generated file.
18272
18273 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18274
18275         [BZ #13824]
18276         * math/e_exp2l.c: Include <float.h>.
18277         (__ieee754_exp2l): Handle overflow and underflow cases
18278         separately.  Only pass fractional part of argument to
18279         __ieee754_expl.
18280         * math/libm-test.inc (exp2_test): Add more tests.
18281
18282         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18283         negating x to take absolute value.
18284         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18285         Likewise.
18286         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18287         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18288         Likewise.
18289         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18290         computing low part if x was negated.
18291         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18292
18293 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18294
18295         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18296         la_x32_gnu_pltexit.
18297         (pltexit): Cast int_retval to ptrdiff_t.
18298         * elf/tst-auditmod3b.c: Likewise.
18299         * elf/tst-auditmod4b.c: Likewise.
18300         * elf/tst-auditmod5b.c: Likewise.
18301         * elf/tst-auditmod6b.c: Likewise.
18302         * elf/tst-auditmod6c.c: Likewise.
18303         * elf/tst-auditmod7b.c: Likewise.
18304
18305         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18306         and x32_gnu_pltexit.
18307
18308         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18309         __ELF_NATIVE_CLASS.
18310         (La_x32_regs): New macro.
18311         (La_x32_retval): Likewise.
18312         (la_x32_gnu_pltenter): New function prototype.
18313         (la_x32_gnu_pltexit): Likewise.
18314
18315 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18316
18317         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18318         exponent.
18319
18320         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18321
18322         * configure.in (libc_cv_cc_nofma): Check for option to disable
18323         generation of FMA instructions.
18324         * configure: Regenerate.
18325         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18326         * sysdeps/ieee754/dbl-64/Makefile: New file.
18327         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18328         Remove brandred-fma4.
18329         (CFLAGS-brandred-fma4.c): Remove.
18330         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18331         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18332         define.
18333         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18334         define.
18335
18336 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18337
18338         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18339         LLONG_MAX != LONG_MAX.
18340         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18341         (_fitoa_word): Likewise.
18342         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18343         LLONG_MAX != LONG_MAX.
18344         * stdio-common/_itowa.h: Include <_itoa.h>.
18345         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18346         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18347         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18348         only if not defined.
18349         (_ITOA_WORD_TYPE): Likewise.
18350         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18351         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18352
18353 2012-03-21  David S. Miller  <davem@davemloft.net>
18354
18355         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18356
18357 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18360         of x86_64 when setting libc_cv_slibdir, libdir and
18361         libc_cv_localedir.
18362         * sysdeps/unix/sysv/linux/configure: Regenerated.
18363
18364 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18365
18366         * manual/lang.texi (Old Varargs): Remove section.
18367         (How Variadic): Update menu.
18368         (va_start): Do not mention varargs.h.
18369
18370 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18371             Joseph Myers  <joseph@codesourcery.com>
18372
18373         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18374         link test.
18375         * configure: Regenerated.
18376
18377 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18378
18379         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18380         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18381         conformtest.pl
18382
18383 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18384
18385         * NOTES: Remove.
18386         * Makefile (files-for-dist): Remove NOTES.
18387         (NOTES): Remove rule.
18388         * README: Don't refer to NOTES.
18389         * manual/creature.texi: Don't include macros.texi.
18390         * manual/intro.texi (creature.texi): Remove comment referring to
18391         NOTES.
18392
18393         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18394         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18395         * configure: Regenerated.
18396         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18397         LIBC_TRY_CC_OPTION.
18398         (libc_cv_as_i686): Likewise.
18399         (libc_cv_cc_avx): Likewise.
18400         (libc_cv_cc_sse2avx): Likewise.
18401         (libc_cv_cc_fma4): Likewise.
18402         (libc_cv_cc_novzeroupper): Likewise.
18403         * sysdeps/i386/configure: Regenerated.
18404
18405         [BZ #13883]
18406         * sysdeps/i386/fpu/s_cexp.S: Remove.
18407         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18408         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18409         * math/libm-test.inc (cexp_test): Add more tests.
18410         * sysdeps/i386/fpu/libm-test-ulps: Update.
18411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18412
18413 2012-03-21  Allan McRae  <allan@archlinux.org>
18414
18415         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18416
18417 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18418
18419         [BZ #13871]
18420         * math/w_exp2.c: Do not include <float.h>.
18421         (o_threshold, u_threshold): Remove.
18422         (__exp2): Calculate result before checking finiteness and calling
18423         __kernel_standard.
18424         * math/w_exp2f.c: Likewise.
18425         * math/w_exp2l.c: Likewise.
18426         * math/libm-test.inc (exp2_test): Require overflow exception for
18427         1e6 input.
18428
18429         [BZ #3866]
18430         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18431         range of signed 64-bit integers before using fistpll.  Remove
18432         checks for whether integers fit in mantissa bits.
18433         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18434         the range of signed 32-bit integers before using fistpl.  Remove
18435         checks for whether integers fit in mantissa bits.
18436         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18437         (__ieee754_powl): Test for y outside the range of signed 64-bit
18438         integers before using fistpll.  Reduce 64-bit values to 63-bit
18439         ones as needed.
18440         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18441         divide-by-zero is raised for zero to large negative powers.
18442         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18443         (__ieee754_powl): Test for y outside the range of signed 64-bit
18444         integers before using fistpll.  Reduce 64-bit values to 63-bit
18445         ones as needed.
18446         * math/libm-test.inc (pow_test): Add more tests.
18447
18448 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18449
18450         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18451         <stdio-common/_itoa.h>.
18452         * debug/segfault.c: Likewise.
18453         * elf/dl-cache.c: Likewise.
18454         * elf/dl-minimal.c: Likewise.
18455         * elf/dl-misc.c: Likewise.
18456         * elf/dl-sysdep.c: Likewise.
18457         * elf/dl-version.c: Likewise.
18458         * elf/rtld.c: Likewise.
18459         * hurd/hurdsock.c: Likewise.
18460         * hurd/lookup-retry.c: Likewise.
18461         * malloc/malloc.c: Likewise.
18462         * malloc/mtrace.c: Likewise.
18463         * nscd/nscd_getgr_r.c: Likewise.
18464         * nscd/nscd_getpw_r.c: Likewise.
18465         * nscd/nscd_getserv_r.c: Likewise.
18466         * posix/getopt_init.c: Likewise.
18467         * posix/wordexp.c: Likewise.
18468         * stdio-common/_itoa.c: Likewise.
18469         * stdio-common/printf_fphex.c: Likewise.
18470         * stdio-common/vfprintf.c: Likewise.
18471         * string/_strerror.c: Likewise.
18472         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18473         * sysdeps/i386/i686/hp-timing.h: Likewise.
18474         * sysdeps/mach/_strerror.c: Likewise.
18475         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18476         * sysdeps/mach/hurd/sethostid.c: Likewise.
18477         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18478         * sysdeps/mach/xpg-strerror.c: Likewise.
18479         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18480         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18481         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18482         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18483         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18484         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18485         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18486         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18487         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18488         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18489         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18490         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18491         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18492         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18493         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18494         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18495         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18496         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18497         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18498         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18499         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18500
18501         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18502
18503         * stdio-common/_itoa.h: Moved to ...
18504         * sysdeps/generic/_itoa.h: Here.
18505
18506         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18507
18508         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18509         instead of "_itoa.h" and "_itowa.h".
18510         * stdio-common/vfprintf.: Likewise.
18511
18512 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18513
18514         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18515         <bits/wordsize.h>.
18516         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18517         (__signbit): Likwise.
18518         (llrintf): Likwise.
18519         (llrint): Likwise.
18520
18521 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18522
18523         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18524         __WORDSIZE != 64.
18525
18526 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18527
18528         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18529         OVERFLOW_EXCEPTION_OK.
18530         * math/libm-test.inc ("Philosophy"): Update comment about
18531         exception testing.
18532         (OVERFLOW_EXCEPTION): Define.
18533         (OVERFLOW_EXCEPTION_OK): Likewise.
18534         (INVALID_EXCEPTION_OK): Renumber.
18535         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18536         (IGNORE_ZERO_INF_SIGN): Likewise.
18537         (test_exceptions): Handle FE_OVERFLOW.
18538         (exp10_test): Expect overflow exceptions.
18539         (exp2_test): Likewise.
18540         (expm1_test): Likewise.
18541         (nextafter_test): Likewise.
18542         (pow_test): Likewise.
18543         (scalbn_test): Likewise.
18544         (scalbln_test): Likewise.
18545
18546 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18547
18548         * sysdeps/x86_64/bits/atomic.h
18549         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18550         64bit integer.
18551         (atomic_exchange_acq): Likewise.
18552         (__arch_exchange_and_add_body): Likewise.
18553         (__arch_add_body): Likewise.
18554         (atomic_add_negative): Likewise.
18555         (atomic_add_zero): Likewise.
18556
18557 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18558
18559         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18560         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18561
18562 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18563
18564         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18565         Check __x86_64__ instead of __WORDSIZE.
18566
18567 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18568
18569         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18570
18571 2012-03-19  David S. Miller  <davem@davemloft.net>
18572
18573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18574
18575         * sysdeps/sparc/fpu/fenv_private.h: New file.
18576         * sysdeps/sparc/fpu/math_private.h: Use it.
18577         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18578         Remove.
18579         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18580         (libc_feholdexcept_setroundl): Remove.
18581         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18582         Remove.
18583         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18584         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18585
18586 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18587
18588         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18589         int64_t instead of long int.
18590         (INSERT_WORDS64): Likwise.
18591
18592 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18593
18594         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18595         _Unwind_GetCFA return to _Unwind_Ptr first.
18596
18597 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18598
18599         [BZ #13629]
18600         * math/s_clog.c: Include <float.h>.
18601         (__clog): Scale large or subnormal inputs.
18602         * math/s_clogf.c: Likewise.
18603         * math/s_clogl.c: Likewise.
18604         * math/s_clog10.c: Include <float.h>.
18605         (M_LOG10_2): Define.
18606         (__clog10): Scale large or subnormal inputs.
18607         * math/s_clog10f.c: Likewise.
18608         * math/s_clog10l.c: Likewise.
18609         * math/libm-test.inc (clog_test): Add more tests.
18610         (clog10_test): Likewise.
18611         * sysdeps/i386/fpu/libm-test-ulps: Update.
18612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18613
18614         [BZ #11451]
18615         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18616         x and y.
18617         * math/libm-test.inc (atan2_test): Add another test.
18618
18619         * Makerules (common-objdir-compile): Remove.
18620         * sysdeps/unix/Makefile (config-generated): Do not add
18621         $(unix-generated) to variable.
18622         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18623         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18624         Remove rule.
18625         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18626         Likewise.
18627         [generic bits/local_lim.h] (before-compile): Do not append to
18628         variable.
18629         [generic bits/local_lim.h] (common-generated): Likewise.
18630         [generic sys/param.h] (before-compile): Do not append to variable.
18631         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18632         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18633         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18634         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18635         include.
18636         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18637         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18638         [generic sys/param.h] ($(addprefix
18639         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18640         [generic sys/param.h] (common-generated): Do not append to
18641         variable.
18642         [generic sys/param.h] (sysdep_headers): Likewise.
18643         [generic bits/errno.h] (before-compile): Do not append to
18644         variable.
18645         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18646         rule.
18647         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18648         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18649         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18650         [generic bits/errno.h] (common-generated): Do not append to
18651         variable.
18652         [generic bits/ioctls.h] (before-compile): Do not append to
18653         variable.
18654         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18655         rule.
18656         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18657         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18658         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18659         rule.
18660         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18661         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18662         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18663         [generic bits/ioctls.h] (common-generated): Do not append to
18664         variable.
18665         [generic sys/syscall.h] (syscall.h): Remove variable.
18666         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18667         rule.
18668         [generic sys/syscall.h] (before-compile): Do not append to
18669         variable.
18670         [generic sys/syscall.h] (common-generated): Likewise.
18671         * sysdeps/unix/errnos-tmpl.c: Remove file.
18672         * sysdeps/unix/errnos.awk: Likewise.
18673         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18674         * sysdeps/unix/ioctls.awk: Likewise.
18675         * sysdeps/unix/mk-local_lim.c: Likewise.
18676         * sysdeps/unix/snarf-ioctls: Likewise.
18677
18678 2012-03-19  Richard Henderson  <rth@twiddle.net>
18679
18680         * sysdeps/i386/fpu/fenv_private.h: New file.
18681         * sysdeps/i386/fpu/math_private.h: Use it.
18682         (math_opt_barrier, math_force_eval): Remove.
18683         (libc_feholdexcept_setround_53bit): Remove.
18684         (libc_feupdateenv_53bit): Remove.
18685         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18686         (math_opt_barrier, math_force_eval): Remove.
18687         (libc_feholdexcept): Remove.
18688         (libc_feholdexcept_setround): Remove.
18689         (libc_fetestexcept, libc_fesetenv): Remove.
18690         (libc_feupdateenv_test): Remove.
18691         (libc_feupdateenv, libc_feholdsetround): Remove.
18692         (libc_feresetround): Remove.
18693
18694         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18695         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18696
18697         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18698         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18699         (libc_feupdateenv_testl): New.
18700         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18701         (libc_feupdateenv_testf): New.
18702         (libc_feupdateenv): Use libc_feupdateenv_test.
18703         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18704         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18705
18706         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18707         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18708         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18709         (libc_feresetround_noex): New.
18710         (libc_feresetround_noexf): New.
18711         (libc_feresetround_noexl): New.
18712         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18713         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18714         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18715         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18716         SET_RESTORE_ROUND.
18717         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18718         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18719         (__cos): Likewise.
18720         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18721         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18722         SET_RESTORE_ROUND_NOEX.
18723         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18724         SET_RESTORE_ROUND_NOEXF.
18725         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18726         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18727         (libc_feholdsetroundf): New.
18728         (libc_feresetround, libc_feresetroundf): New.
18729
18730         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18731         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18732         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18733
18734         * sysdeps/generic/math_private.h: Include <fenv.h>.
18735         (default_libc_feholdexcept): New.
18736         (default_libc_feholdexcept_setround): New.
18737         (default_libc_fesetenv, default_libc_feupdateenv): New.
18738         (libc_feholdexcept): Only define if undefined.
18739         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18740         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18741         (libc_feholdexcept_setroundl): Likewise.
18742         (libc_feholdexcept_setround_53bit): Likewise.
18743         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18744         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18745         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18746         (libc_feupdateenv_53bit): Likewise.
18747         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18748         (libc_feholdexcept): Convert from macro to inline function.
18749         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18750         (libc_fesetenv, libc_feupdateenv): Likewise.
18751
18752         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18753         not previously defined.
18754         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18755         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18756         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18757         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18758         * sysdeps/ieee754/flt-32/math_private.h: New file.
18759         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18760         math_private.h below SET_FLOAT_WORD.
18761         (__isnan, __isinf_ns, __finite): Remove.
18762         (__isnanf, __isinf_nsf, __finitef): Remove.
18763
18764 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18765
18766         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18767
18768 2012-03-17  David S. Miller  <davem@davemloft.net>
18769
18770         [BZ #6471]
18771         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18772         for 2.16.
18773
18774 2012-03-16  David S. Miller  <davem@davemloft.net>
18775
18776         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18777         warnings.
18778
18779         [BZ #6471]
18780         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18781         properly.
18782         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18783         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18784         sysdep_routines when subdir is sysvipc.
18785         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18786         __getshmlba helper.
18787
18788         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18789
18790 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18791
18792         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18793         [__LP64__].
18794
18795 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18796
18797         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18798         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18799         (__lround): Renamed to ...
18800         (__llround): This.  Replace long int with long long int.
18801         Define lround functions as aliases of llround functions.
18802         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18803
18804 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18805
18806         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18807         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18808         adresses to uintptr_t.  Replace "long int" and "unsigned long
18809         int" with "greg_t" on va_arg.
18810
18811 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18812
18813         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18814         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18815
18816         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18817         Move e_machine check before EI_CLASS check.  Handle x32
18818         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18819         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18820         SKIP_EM_IA_64 and include
18821         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18822
18823         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18824         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18825         (add_system_dir): New macro.
18826
18827         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18828         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18829
18830 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18831
18832         [BZ #2551]
18833         [BZ #2552]
18834         [BZ #2553]
18835         [BZ #2554]
18836         [BZ #2562]
18837         [BZ #2563]
18838         [BZ #2565]
18839         [BZ #2566]
18840         [BZ #2576]
18841         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18842         (y0): Likewise.
18843         * math/w_j0f.c (j0f): Likewise.
18844         (y0f): Likewise.
18845         * math/w_j0l.c (__j0l): Likewise.
18846         (__y0l): Likewise.
18847         * math/w_j1.c (j1): Likewise.
18848         (y1): Likewise.
18849         * math/w_j1f.c (j1f): Likewise.
18850         (y1f): Likewise.
18851         * math/w_j1l.c (__j1l): Likewise.
18852         (__y1l): Likewise.
18853         * math/w_jn.c (jn): Likewise.
18854         (yn): Likewise.
18855         * math/w_jnf.c (jnf): Likewise.
18856         (ynf): Likewise.
18857         * math/w_jnl.c (__jnl): Likewise.
18858         (__ynl): Likewise.
18859         * math/libm-test.inc (j0_test): Add more tests.
18860         (j1_test): Likewise.
18861         (jn_test): Likewise.  Add trailing semicolon to existing test.
18862         (y0_test): Likewise.
18863         (y1_test): Likewise.
18864         * sysdeps/i386/fpu/libm-test-ulps: Update.
18865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18866
18867         [BZ #13851]
18868         [BZ #13854]
18869         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18870         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18871         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18872         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18873         (__tanl): Set errno for infinite argument.
18874         * sysdeps/i386/fpu/mptan.c: Remove.
18875         * sysdeps/i386/fpu/s_tan.S: Likewise.
18876         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18877         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18878         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18879         * math/libm-test.inc (tan_test): Add more tests and enable more
18880         tests for double and long double.
18881         * sysdeps/i386/fpu/libm-test-ulps: Update.
18882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18883
18884 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18885
18886         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18887         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18888
18889 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18890
18891         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18892         * configure.in: Use it for both main tree and add-ons.
18893         * configure: Regenerated.
18894
18895 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18896
18897         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18898
18899 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18900
18901         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18902         in comment.
18903
18904         [BZ #13851]
18905         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18906         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18907         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18908         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18909         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18910         infinite argument.
18911         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18912         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18913         != 0 for prec == 2.
18914         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18915         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18916         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18917         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18918         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18919         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18920         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18921         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18922         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18923         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18924         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18925         * math/libm-test.inc (cos_test): Add more tests and enable more
18926         tests for long double.
18927         (sin_test): Likewise.
18928         (sincos_test): Likewise.
18929         * sysdeps/i386/fpu/libm-test-ulps: Update.
18930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18931
18932 2012-03-16  David S. Miller  <davem@davemloft.net>
18933
18934         * sysdeps/sparc/fpu/math_private.h: New file.
18935
18936 2012-03-15  David S. Miller  <davem@davemloft.net>
18937
18938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18939         file.
18940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18942         file.
18943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18945         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18946         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18947         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18948         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18949         sysdep routines.
18950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18951
18952         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18953         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18954
18955         * sysdeps/sparc/sparc-ifunc.h: New file.
18956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18957         sparc-ifunc.h
18958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18960         Likewise.
18961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18962         Likewise.
18963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18967         Likewise.
18968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18973         Likewise.
18974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18975         Likewise.
18976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18980         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18981         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18982         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18983         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18984         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18985         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18987         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18988         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18989         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18990         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18991         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18992         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18993         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18994         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18995         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18996         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18997         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18998         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18999         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19000
19001 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19002
19003         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19004         scaling.
19005         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19006
19007 2012-03-15  Andreas Jaeger  <aj@suse.de>
19008
19009         [BZ #13852]
19010         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19011         ieee754/flt-32 implementation for sin, cos and sincos.
19012         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19013         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19014         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19015         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19016         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19017         ieee754/flt-32 implementation for tan.
19018
19019         * math/libm-test.inc (cos_test): Enable some large input tests for
19020         float as well
19021         (sin_test): Likewise.
19022         (sincos_test): Likewise.
19023         (tan_test): Add tests for large input.
19024
19025         * sysdeps/i386/fpu/libm-test-ulps: Update.
19026
19027 2012-03-15  Andreas Jaeger  <aj@suse.de>
19028
19029         [BZ #13658]
19030         * math/libm-test.inc (cos_test): Add more test cases.
19031         (sin_test): Likewise.
19032         (sincos_test): Likewise.
19033
19034 2012-03-15  Andreas Jaeger  <aj@suse.de>
19035
19036         [BZ #13837]
19037         * math/libm-test.inc (cos_test): Add a test case for large input
19038         value.
19039         (sin_test): Likewise.
19040         (sincos_test): Likewise.
19041
19042 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19043         Joseph Myers  <joseph@codesourcery.com>
19044
19045         [BZ #13658]
19046         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19047         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19048         * sysdeps/i386/fpu/branred.c: Likewise.
19049         * sysdeps/i386/fpu/dosincos.c: Likewise.
19050         * sysdeps/i386/fpu/mpa.c: Likewise.
19051         * sysdeps/i386/fpu/s_cos.S: Likewise.
19052         * sysdeps/i386/fpu/s_sin.S: Likewise.
19053         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19054         * sysdeps/i386/fpu/sincos32.c: Likewise.
19055
19056         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19057         Define.
19058         (libc_feupdateenv_53bit): Define.
19059         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19060         Define.
19061         (libc_feupdateenv_53bit): Define.
19062
19063         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19064         53 bit (without extend i386 double precision).
19065
19066         * math/libm-test.inc (sincos_test): Add tests for large input.
19067         (sin): Likewise.
19068         (cos): Likewise.
19069
19070         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19071
19072 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19073
19074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19075
19076 2012-03-15  David S. Miller  <davem@davemloft.net>
19077
19078         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19079         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19080         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19081         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19082         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19083         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19084         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19086         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19087         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19094         file.
19095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19097         file.
19098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19100         file.
19101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19103         file.
19104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19105         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19106         fmin/fmax sysdep routines.
19107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19108
19109 2012-03-14  David S. Miller  <davem@davemloft.net>
19110
19111         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19112         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19113         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19114         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19115         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19116         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19117         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19118         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19119         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19120         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19121         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19122         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19123         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19124         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19125         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19126         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19127         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19128         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19129         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19130         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19131         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19132         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19133         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19134         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19135         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19136         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19137         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19138         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19139         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19140         routines.
19141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19142         file.
19143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19145         file.
19146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19148         file.
19149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19151         file.
19152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19154         file.
19155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19157         file.
19158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19159         file.
19160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19161         file.
19162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19163         file.
19164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19165         New file.
19166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19167         file.
19168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19169         file.
19170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19172         file.
19173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19175         file.
19176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19178         file.
19179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19181         VIS3 routines.
19182
19183         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19184         New file.
19185
19186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19187
19188         * sysdeps/sparc/configure.in: New file.
19189         * sysdeps/sparc/configure: Generate.
19190         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19191         * configure: Regenerate.
19192         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19193         * config.make.in (have-as-vis3): New.
19194         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19195         available use -Av9d instead of -Av9a.
19196         * sysdeps/sparc/sparc64/Makefile: Likewise.
19197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19199         New file.
19200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19201         file.
19202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19203         New file.
19204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19205         file.
19206         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19207         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19208         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19209         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19210         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19211
19212         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19213         fzeros/fnegs to load 0x80000000 into a float register instead of
19214         using the stack.
19215         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19216
19217 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19218
19219         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19220         bits/syscall.h.
19221         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19222         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19223         ($(inst_includedir)/bits/syscall.h): Remove rule.
19224         ($(objpfx)bits/syscall.d): Include instead of
19225         $(objpfx)syscall-list.d.
19226         (generated): Change syscall-list.h and syscall-list.d to
19227         bits/syscall.h and bits/syscall.d.
19228
19229 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19230
19231         [BZ #13846]
19232         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19233
19234 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19235
19236         [BZ #13841]
19237         * math/s_csqrt.c: Include <float.h>.
19238         (__csqrt): Scale large or subnormal inputs.
19239         * math/s_csqrtf.c: Likewise.
19240         * math/s_csqrtl.c: Likewise.
19241         * math/libm-test.inc (csqrt_test): Add more tests.
19242         * sysdeps/i386/fpu/libm-test-ulps: Update.
19243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19244
19245         [BZ #13840]
19246         * math/libm-test.inc (hypot_test): Add more tests.
19247
19248 2012-03-13  David S. Miller  <davem@davemloft.net>
19249
19250         [BZ #13840]
19251         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19252         double-precision for the calculation instead of scaling.
19253
19254 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19255
19256         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19257         manipulate bits before adding and subtracting TWO52[sx].
19258         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19259         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19260         Likewise.
19261         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19262
19263 2012-03-13  David S. Miller  <davem@davemloft.net>
19264
19265         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19266         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19267         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19268         rtld-global-offsets.h
19269         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19270
19271         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19272         large parameters.
19273
19274         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19275
19276         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19277         'err' in the ifdef scope in which it is actually used.
19278
19279         * nss/nss_db/db-init.c: Include string.h
19280
19281 2012-03-12  David S. Miller  <davem@davemloft.net>
19282
19283         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19284         masking out of the most significant byte of random value used.
19285         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19286         Fix coding style in previous change.
19287
19288         * sysdeps/unix/sysv/linux/kernel-features.h
19289         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19290         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19291         expression.
19292         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19293         later.
19294
19295 2012-03-11  David S. Miller  <davem@davemloft.net>
19296
19297         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19298         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19299         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19300         for 'resultvar' otherwise things get truncated on 64-bit.
19301
19302         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19303         Fix masking out of the most significant byte of random value used.
19304
19305         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19306
19307 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19308
19309         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19310
19311 2012-03-09  David S. Miller  <davem@davemloft.net>
19312
19313         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19314         variables with appropriate CPP guards.
19315         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19316         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19317         on resulting framesize and the management of the outregs buffer for pltexit.
19318         Preserve floating point return values across _dl_call_pltexit call.
19319         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19320         framesize and the management of the outregs buffer for pltexit.
19321         Preserve floating point return values across _dl_call_pltexit
19322         call.
19323         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19324         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19325         (print_exit): Fix format string for return register value.
19326
19327 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19328
19329         * sunrpc/Makefile (others): Add rpcgen.
19330         ($(objpfx)rpcgen): Remove special build rule and dependency on
19331         libc.
19332         * sunrpc/rpcgen.c: New file.
19333
19334 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         [BZ #13673]
19337         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19338         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19339         * sysdeps/i386/crti.S: Likewise.
19340         * sysdeps/i386/crtn.S: Likewise.
19341         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19342         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19343         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19344         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19345         * sysdeps/sh/crti.S: Likewise.
19346         * sysdeps/sh/crtn.S: Likewise.
19347         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19348
19349         [BZ #13673]
19350         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19351         with URL.
19352         * locale/programs/locfile-kw.gperf: Likewise.
19353         * locale/programs/charmap-kw.h: Regenerated.
19354         * locale/programs/locfile-kw.h: Likewise.
19355
19356         [BZ #13673]
19357         * intl/plural.y: Replace FSF snail mail address with URL.
19358         * intl/plural.c: Regenerated.
19359
19360 2012-03-09  Richard Henderson  <rth@twiddle.net>
19361
19362         * include/math_private.h: Remove file.
19363         * math/math_private.h: Move file ...
19364         * sysdeps/generic/math_private.h: ... here.
19365
19366         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19367         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19368         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19369
19370         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19371         and <math_private.h>.
19372         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19373         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19374         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19375         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19376         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19377         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19378         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19379         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19380         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19381         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19382         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19383         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19384         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19385         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19386         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19387         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19388         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19389         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19390         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19391         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19392         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19393         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19394         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19395         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19396         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19397         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19398         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19399         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19400         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19401         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19402         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19403         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19404         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19405         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19406         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19407         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19408         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19409         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19410         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19411         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19412         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19413         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19414         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19415         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19416         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19417         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19418         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19419         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19420         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19421         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19422         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19423         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19424         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19425         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19426         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19427         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19428         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19429         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19430         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19431         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19432         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19433         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19434         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19435         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19436         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19437         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19438         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19439         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19440         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19441         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19442         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19443         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19444         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19445         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19446         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19447         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19448         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19449         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19450         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19451         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19452         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19453         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19454         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19455         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19456         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19457         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19458         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19459         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19460         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19461         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19462         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19463         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19464         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19465         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19466         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19467         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19468         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19469         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19470         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19471         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19472         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19473         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19474         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19475         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19476         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19477         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19478         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19479         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19480         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19481         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19482         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19483         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19484         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19485         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19486         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19487         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19488         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19489         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19490         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19491         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19492         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19493         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19494         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19495         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19496         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19497         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19498         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19499         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19500         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19501         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19502         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19503         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19504         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19505         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19506         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19507         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19508         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19509         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19510         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19511         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19512         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19513         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19514         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19515         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19516         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19517         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19518         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19519         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19520         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19521         * sysdeps/ieee754/k_standard.c: Likewise.
19522         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19523         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19524         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19525         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19526         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19527         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19528         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19529         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19530         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19531         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19533         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19534         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19535         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19536         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19537         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19538         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19539         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19540         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19541         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19542         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19543         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19544         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19545         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19546         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19547         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19548         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19549         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19550         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19551         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19552         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19553         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19554         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19555         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19556         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19557         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19558         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19559         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19560         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19561         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19562         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19563         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19564         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19565         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19566         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19567         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19568         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19569         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19570         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19571         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19572         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19573         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19574         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19575         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19576         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19577         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19578         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19579         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19580         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19581         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19582         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19583         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19584         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19585         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19586         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19587         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19588         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19589         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19590         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19591         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19592         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19594         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19595         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19596         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19597         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19598         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19599         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19600         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19601         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19602         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19603         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19604         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19605         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19606         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19607         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19608         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19609         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19610         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19611         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19612         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19613         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19614         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19615         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19616         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19617         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19618         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19619         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19620         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19621         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19622         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19623         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19624         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19625         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19626         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19627         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19628         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19629         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19630         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19631         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19632         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19633         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19634         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19635         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19636         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19637         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19638         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19639         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19640         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19641         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19642         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19643         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19644         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19645         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19646         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19647         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19648         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19649         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19650         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19651         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19652         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19653         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19654         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19655         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19656         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19657         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19658         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19659         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19660         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19661         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19662         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19663         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19664         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19665         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19666         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19667         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19668         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19669         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19670         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19671         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19672         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19673         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19674         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19675         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19676         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19677         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19678         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19679         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19680         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19681         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19682         * sysdeps/ieee754/s_lib_version.c: Likewise.
19683         * sysdeps/ieee754/s_matherr.c: Likewise.
19684         * sysdeps/ieee754/s_signgam.c: Likewise.
19685         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19686         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19687         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19688         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19689         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19690         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19691         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19692         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19693         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19694         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19695         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19696         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19697         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19698         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19699         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19700         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19701         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19702         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19703         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19704         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19705         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19706
19707 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19708
19709         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19710         * sunrpc/rpc_main.c: Likewise.
19711         * sunrpc/rpc_svcout.c: Likewise.
19712
19713 2012-03-09  David S. Miller  <davem@davemloft.net>
19714
19715         * include/math_private.h: New file.
19716
19717 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19718
19719         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19720         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19721         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19722         from <bits/socket_type.h>.
19723         (enum __socket_type): Don't define here.
19724         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19725         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19726         bits/socket_type.h.
19727
19728         [BZ #13566]
19729         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19730         checking __USE_GNU.
19731
19732         * Makerules ($(inst_includedir)/%.h): New rule.
19733         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19734         (install-others): Remove variable setting.
19735         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19736
19737 2012-03-08  Richard Henderson  <rth@twiddle.net>
19738
19739         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19740         from macro to inline function; merge with the
19741         !__LIBC_INTERNAL_MATH_INLINES version.
19742         (__ieee754_sqrtf): Likewise.
19743
19744         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19745         to inline function.
19746         (__rintf, __floor, __floorf): Likewise.
19747
19748         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19749         macro to inline function.
19750         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19751
19752         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19753         not <math/math_private.h>.
19754
19755 2012-03-08  David S. Miller  <davem@davemloft.net>
19756
19757         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19758         copyright year.
19759         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19760
19761 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19762
19763         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19764         normalization.
19765         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19766         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19767
19768 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19769
19770         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19771         be defined individually, they must be defined as a block.  Define
19772         S for printing a string instead of hidint the different by using a
19773         macro for adding the 'l'.
19774         * stdio-common/tst-fphex-wide.c: Adjust.
19775
19776 2012-03-07  Marek Polacek  <polacek@redhat.com>
19777
19778         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19779
19780 2012-03-08  Marek Polacek  <polacek@redhat.com>
19781
19782         [BZ #13806]
19783         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19784         * stdio-common/tst-fphex.c: Define a few macros to make the
19785         test reusable.  Use them.
19786         * stdio-common/tst-fphex-wide.c: New file.
19787
19788 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19789
19790         [BZ #6911]
19791         * manual/macros.texi (gnusystems): New macro.
19792         (nongnusystems): Likewise.
19793         (gnulinuxhurdsystems): Likewise.
19794         (gnuhurdsystems): Likewise..
19795         (gnulinuxsystems): Likewise.
19796         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19797         variants of the GNU system, not "GNU system".
19798         * manual/conf.texi: Likewise.
19799         * manual/errno.texi: Likewise.  Update example of errno macro
19800         expansion.
19801         * manual/filesys.texi: Likewise.
19802         (getumask): Document as specific to GNU/Hurd.
19803         * manual/install.texi: Likewise.  Reword some references to
19804         GNU/Linux.
19805         * manual/intro.texi: Likewise.
19806         * manual/io.texi: Likewise.
19807         (File Name Portability): Detail which constraints are inapplicable
19808         to all GNU systems and which are only inapplicable to GNU/Hurd.
19809         * manual/job.texi: Likewise.
19810         * manual/llio.texi: Likewise.
19811         (O_NOCTTY): Document as present on GNU/Linux.
19812         * manual/maint.texi: Likewise.
19813         * manual/memory.texi: Likewise.
19814         * manual/pattern.texi: Likewise.
19815         * manual/pipe.texi: Likewise.
19816         * manual/process.texi: Likewise.
19817         * manual/resource.texi: Likewise.
19818         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19819         child on GNU/Hurd.
19820         * manual/setjmp.texi: Likewise.
19821         * manual/signal.texi: Likewise.
19822         * manual/startup.texi: Likewise.
19823         * manual/stdio.texi: Likewise.
19824         * manual/terminal.texi: Likewise.
19825         (ONLCR): Document as POSIX.
19826         (OXTABS): Document availability on GNU/Linux as XTABS.
19827         (ONOEOT): Document availability separately from other bits.
19828         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19829         * manual/time.texi: Likewise.
19830         * manual/users.texi: Likewise.
19831         * INSTALL: Regenerated.
19832         * sysdeps/gnu/errlist.c: Regenerated.
19833
19834         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19835         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19836         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19837         puts.
19838         * configure: Regenerated.
19839
19840 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19841
19842         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19843         default includes instead of AC_HEADER_CHECK.
19844         * sysdeps/i386/configure: Regenerated.
19845
19846         [BZ #10716]
19847         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19848         * math/s_cacoshf.c (__cacoshf): Likewise.
19849         * math/s_cacoshl.c (__cacoshl): Likewise.
19850         * math/s_casinh.c (__casinh): Set signs of result from argument.
19851         * math/s_casinhf.c (__casinhf): Likewise.
19852         * math/s_casinhl.c (__casinhl): Likewise.
19853         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19854         (casinh_test): Add more tests.
19855         * sysdeps/i386/fpu/libm-test-ulps: Update.
19856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19857
19858 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19859
19860         * po/zh_TW.po: Update from translation team.
19861
19862         * login/Makefile (distribute): Remove variable.
19863         * catgets/Makefile: Likewise.
19864         * mach/Makefile: Likewise.
19865         * malloc/Makefile: Likewise.
19866         * misc/Makefile: Likewise.
19867         * iconv/Makefile: Likewise.
19868         * nscd/Makefile: Likewise.
19869         * hurd/Makefile: Likewise.
19870         * manual/Makefile: Likewise.
19871         * locale/Makefile: Likewise.
19872         * intl/Makefile: Likewise.
19873         * conform/Makefile: Likewise.
19874         * nss/Makefile: Likewise.
19875         * time/Makefile: Likewise.
19876         * soft-fp/Makefile: Likewise.
19877         * dirent/Makefile: Likewise.
19878         * gmon/Makefile: Likewise.
19879         * po/Makefile: Likewise.
19880         * rt/Makefile: Likewise.
19881         * socket/Makefile: Likewise.
19882         * math/Makefile: Likewise.
19883         * signal/Makefile: Likewise.
19884         * debug/Makefile: Likewise.
19885         * elf/Makefile: Likewise.
19886         * timezone/Makefile: Likewise.
19887         * stdlib/Makefile: Likewise.
19888         * iconvdata/Makefile: Likewise.
19889         * sunrpc/Makefile: Likewise.
19890         * io/Makefile: Likewise.
19891         * argp/Makefile: Likewise.
19892         * inet/Makefile: Likewise.
19893         * hesiod/Makefile: Likewise.
19894         * grp/Makefile: Likewise.
19895         * csu/Makefile: Likewise.
19896         * wctype/Makefile: Likewise.
19897         * crypt/Makefile: Likewise.
19898         * libio/Makefile: Likewise.
19899         * string/Makefile: Likewise.
19900         * nis/Makefile: Likewise.
19901         * resolv/Makefile: Likewise.
19902         * stdio-common/Makefile: Likewise.
19903         * wcsmbs/Makefile: Likewise.
19904         * dlfcn/Makefile: Likewise.
19905         * posix/Makefile: Likewise.
19906
19907         [BZ #6959]
19908         * timezone/Makefile: Don't install timezone files, just the programs
19909         and scripts.
19910
19911 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19912
19913         * nss/databases.def: Add missing gshadow entry.
19914
19915         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19916
19917 2012-03-06  Marek Polacek  <polacek@redhat.com>
19918
19919         [BZ #13726]
19920         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19921         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19922         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19923         * stdio-common/tst-long-dbl-fphex.c: New file.
19924
19925 2012-03-06  David S. Miller  <davem@davemloft.net>
19926
19927         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19928         (set_obp_int): New function.
19929         (get_obp_int): New function.
19930         (__get_clockfreq_via_dev_openprom): Likewise.
19931         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19932         Avoid unused variable warnings on 'val' and use builtin_expect.
19933         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19934         __builtin_expect.
19935         (INLINE_CLONE_SYSCALL): Likewise.
19936
19937 2012-03-05  David S. Miller  <davem@davemloft.net>
19938
19939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19940
19941 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19942
19943         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19944
19945         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19946         only for |x| >= 40.
19947         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19948
19949 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19950
19951         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19952         Replace gettimeofday with __vdso_gettimeofday.
19953
19954         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19955         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19956         __vdso_clock_gettime and __vdso_getcpu.
19957
19958         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19959         time with __vdso_time.
19960
19961 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19962
19963         * manual/lang.texi (size_t): Note types to which size_t may be
19964         equivalent with the GNU C Library, but do not describe when
19965         differences between them are significant.
19966
19967 2012-03-05  Andreas Jaeger  <aj@suse.de>
19968
19969         * sysdeps/i386/fpu/libm-test-ulps: Update.
19970
19971 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19972
19973         [BZ #3976]
19974         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19975         (__ieee754_pow): Save and restore rounding mode and use
19976         round-to-nearest for main computations.
19977         * math/libm-test.inc (pow_test_tonearest): New function.
19978         (pow_test_towardzero): Likewise.
19979         (pow_test_downward): Likewise.
19980         (pow_test_upward): Likewise.
19981         (main): Call the new functions.
19982         * sysdeps/i386/fpu/libm-test-ulps: Update.
19983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19984
19985         [BZ #3976]
19986         * math/libm-test.inc (cosh_test_tonearest): New function.
19987         (cosh_test_towardzero): Likewise.
19988         (cosh_test_downward): Likewise.
19989         (cosh_test_upward): Likewise.
19990         (sinh_test_tonearest): Likewise.
19991         (sinh_test_towardzero): Likewise.
19992         (sinh_test_downward): Likewise.
19993         (sinh_test_upward): Likewise.
19994         (main): Call the new functions.
19995         * sysdeps/i386/fpu/libm-test-ulps: Update.
19996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19997
19998 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19999
20000         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20001         default stack guard is set in last bytes.
20002         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20003
20004 2012-03-05  Kees Cook  <keescook@chromium.org>
20005
20006         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20007
20008         [BZ #13656]
20009         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20010         possibly allocate from heap instead of stack.
20011         * stdio-common/bug-vfprintf-nargs.c: New file.
20012         * stdio-common/Makefile (tests): Add nargs overflow test.
20013
20014 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20015
20016         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20017
20018 2012-03-03  Marek Polacek  <polacek@redhat.com>
20019
20020         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20021         * math/math_private.h: Likewise.
20022         * stdlib/tst-strtod.c: Likewise.
20023         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20024         * sysdeps/x86_64/bits/atomic.h: Likewise.
20025
20026 2012-03-02  David S. Miller  <davem@davemloft.net>
20027
20028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20029         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20032         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20033         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20034         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20035         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20036
20037 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20038
20039         [BZ #13792]
20040         * manual/examples/README: New file, says the example source files
20041         can be used under GPL>=2.
20042         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20043         line containing just "*/".
20044         * manual/examples/add.c: Add copyright header (GPL>=2).
20045         * manual/examples/argp-ex1.c: Likewise.
20046         * manual/examples/argp-ex2.c: Likewise.
20047         * manual/examples/argp-ex3.c: Likewise.
20048         * manual/examples/argp-ex4.c: Likewise.
20049         * manual/examples/atexit.c: Likewise.
20050         * manual/examples/db.c: Likewise.
20051         * manual/examples/dir.c: Likewise.
20052         * manual/examples/dir2.c: Likewise.
20053         * manual/examples/execinfo.c: Likewise.
20054         * manual/examples/filecli.c: Likewise.
20055         * manual/examples/filesrv.c: Likewise.
20056         * manual/examples/fmtmsgexpl.c: Likewise.
20057         * manual/examples/genpass.c: Likewise.
20058         * manual/examples/inetcli.c: Likewise.
20059         * manual/examples/inetsrv.c: Likewise.
20060         * manual/examples/isockad.c: Likewise.
20061         * manual/examples/longopt.c: Likewise.
20062         * manual/examples/memopen.c: Likewise.
20063         * manual/examples/memstrm.c: Likewise.
20064         * manual/examples/mkfsock.c: Likewise.
20065         * manual/examples/mkisock.c: Likewise.
20066         * manual/examples/mygetpass.c: Likewise.
20067         * manual/examples/pipe.c: Likewise.
20068         * manual/examples/popen.c: Likewise.
20069         * manual/examples/rprintf.c: Likewise.
20070         * manual/examples/search.c: Likewise.
20071         * manual/examples/select.c: Likewise.
20072         * manual/examples/setjmp.c: Likewise.
20073         * manual/examples/sigh1.c: Likewise.
20074         * manual/examples/sigusr.c: Likewise.
20075         * manual/examples/stpcpy.c: Likewise.
20076         * manual/examples/strdupa.c: Likewise.
20077         * manual/examples/strftim.c: Likewise.
20078         * manual/examples/strncat.c: Likewise.
20079         * manual/examples/subopt.c: Likewise.
20080         * manual/examples/swapcontext.c: Likewise.
20081         * manual/examples/termios.c: Likewise.
20082         * manual/examples/testopt.c: Likewise.
20083         * manual/examples/testpass.c: Likewise.
20084         * manual/examples/timeval_subtract.c: Likewise.
20085
20086         [BZ #13792]
20087         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20088         function to ...
20089         * manual/timeval_subtract.c.texi: ... here, new file.
20090
20091 2012-03-02  David S. Miller  <davem@davemloft.net>
20092
20093         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20094
20095 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20096
20097         [BZ #3976]
20098         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20099         (__sin): Save and restore rounding mode and use round-to-nearest
20100         for all computations.
20101         (__cos): Save and restore rounding mode and use round-to-nearest
20102         for all computations.
20103         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20104         <fenv.h>.
20105         (tan): Save and restore rounding mode and use round-to-nearest for
20106         all computations.
20107         * math/libm-test.inc (cos_test_tonearest): New function.
20108         (cos_test_towardzero): Likewise.
20109         (cos_test_downward): Likewise.
20110         (cos_test_upward): Likewise.
20111         (sin_test_tonearest): Likewise.
20112         (sin_test_towardzero): Likewise.
20113         (sin_test_downward): Likewise.
20114         (sin_test_upward): Likewise.
20115         (tan_test_tonearest): Likewise.
20116         (tan_test_towardzero): Likewise.
20117         (tan_test_downward): Likewise.
20118         (tan_test_upward): Likewise.
20119         (main): Call the new functions.
20120         * sysdeps/i386/fpu/libm-test-ulps: Update.
20121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20122
20123         [BZ #10135]
20124         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20125         small n, then large n, before computing and testing k+n.
20126         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20127         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20128         Likewise.
20129         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20130         Likewise.
20131         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20132         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20133         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20134         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20135         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20136         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20137         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20138         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20139         * math/libm-test.inc (scalbn_test): Add more tests.
20140         (scalbln_test): Likewise.
20141
20142         * manual/filesys.texi (mode_t): Describe constraints on size and
20143         signedness, not exact equivalence to a particular type.
20144         (ino_t): Likewise.
20145         (ino64_t): Likewise.
20146         (dev_t): Likewise.
20147         (nlink_t): Likewise.
20148         (blkcnt_t): Likewise.
20149         (blkcnt64_t): Likewise.
20150         * manual/llio.texi (off_t): Likewise.
20151
20152         [BZ #3976]
20153         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20154         (__ieee754_exp): Save and restore rounding mode and use
20155         round-to-nearest for all computations.
20156         * math/libm-test.inc (exp_test_tonearest): New function.
20157         (exp_test_towardzero): Likewise.
20158         (exp_test_downward): Likewise.
20159         (exp_test_upward): Likewise.
20160         (main): Call the new functions.
20161         * sysdeps/i386/fpu/libm-test-ulps: Update.
20162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20163
20164 2012-03-01  Chris Demetriou  <cgd@google.com>
20165
20166         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20167         have predictable order.
20168
20169 2012-03-01  David S. Miller  <davem@davemloft.net>
20170
20171         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20172
20173         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20174         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20175         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20176         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20177
20178         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20179         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20180         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20182         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20183         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20184         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20185         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20186         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20187
20188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20189
20190         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20191         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20192         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20193
20194         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20195         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20196         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20197         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20198         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20199         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20200         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20201         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20202         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20203         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20204         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20205         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20206         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20207         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20208         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20209         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20210         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20211         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20212         * sysdeps/sparc/elf/configure: Regenerated.
20213
20214 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20215
20216         * configure.in (AS, LD): Require binutils 2.20 or later.
20217         * configure: Regenerated.
20218         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20219         as required minimum version.
20220         * INSTALL: Regenerated.
20221
20222         [BZ #2541]
20223         [BZ #4108]
20224         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20225         before squaring exponent.
20226         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20227         bottom long double and 27 bits of top long double before squaring
20228         exponent.
20229         * math/libm-test.inc (erfc_test): Add more tests.
20230         * sysdeps/i386/fpu/libm-test-ulps: Update.
20231         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20233
20234 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20235
20236         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20237         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20238         containing bit-fields.
20239         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20240         * soft-fp/single.h (_FP_UNION_S): Likewise.
20241         * soft-fp/double.h (_FP_UNION_D): Likewise.
20242
20243 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20244
20245         [BZ #13786]
20246         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20247         not include ../strcmp.S.
20248         [USE_AS_STRNCASECMP_L]: Likewise.
20249         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20250         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20251         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20252         (__strncasecmp_l_ia32): Define as alias to
20253         __strncasecmp_l_nonascii.
20254
20255         [BZ #5794]
20256         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20257         * sysdeps/i386/fpu/libm-test-ulps: Update.
20258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20259
20260         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20262
20263 2012-02-29  Jeff Law  <law@redhat.com>
20264
20265         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20266         out of bounds read.
20267
20268 2012-02-29  Marek Polacek  <polacek@redhat.com>
20269
20270         [BZ #13706]
20271         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20272         * elf/Makefile: Add rules to run tst-unused-dep.out.
20273
20274 2012-02-28  David S. Miller  <davem@davemloft.net>
20275
20276         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20277         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20278         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20279         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20280         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20281         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20282
20283 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20284
20285         * math/libm-test.inc (llround_test): Move one test from
20286         lround_test.  Use TEST_f_L in moved test.
20287         (lround_test): Move misplaced test to llround_test.  Add testcase
20288         from bug 2561.
20289
20290 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20291
20292         * sysdeps/x86_64/fpu/e_expf.S: New file.
20293         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20294
20295 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20296
20297         [BZ #13637]
20298         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20299         of remain_len that may cause incomplete multi-byte character and
20300         false match.
20301         * posix/bug-regex33.c: New file.
20302         * posix/Makefile (tests): Add bug-regex33.
20303
20304 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20305
20306         * manual/macros.texi: New file.
20307         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20308         * manual/libc.texinfo: Include macros.texi.
20309         * manual/creatute.texi: Likewise.
20310         * manual/install.texi: Likewise.
20311         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20312         @glibcadj{} in references to the GNU C Library.
20313         * manual/charset.texi: Likewise.
20314         * manual/conf.texi: Likewise.
20315         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20316         when not using those macros.
20317         * manual/creature.texi: Likewise.
20318         * manual/crypt.texi: Likewise.
20319         * manual/errno.texi: Likewise.
20320         * manual/filesys.texi: Likewise.
20321         * manual/header.texi: Likewise.
20322         * manual/install.texi: Likewise.
20323         * manual/intro.texi: Likewise.
20324         * manual/io.texi: Likewise.
20325         * manual/job.texi: Likewise.
20326         * manual/lang.texi: Likewise.
20327         * manual/libc.texiinfo: Likewise.
20328         * manual/llio.texi: Likewise.
20329         * manual/locale.texi: Likewise.
20330         * manual/maint.texi: Likewise.
20331         * manual/math.texi: Likewise.
20332         * manual/memory.texi: Likewise.
20333         * manual/message.texi: Likewise.
20334         * manual/nss.texi: Likewise.
20335         * manual/pattern.texi: Likewise.
20336         * manual/process.texi: Likewise.
20337         * manual/resource.texi: Likewise.
20338         * manual/search.texi: Likewise.
20339         * manual/setjmp.texi: Likewise.
20340         * manual/signal.texi: Likewise.
20341         * manual/socket.texi: Likewise.
20342         * manual/startup.texi: Likewise.
20343         * manual/stdio.texi: Likewise.
20344         * manual/string.texi: Likewise.
20345         * manual/sysinfo.texi: Likewise.
20346         * manual/syslog.texi: Likewise.
20347         * manual/terminal.texi: Likewise.
20348         * manual/time.texi: Likewise.
20349         * manual/users.texi: Likewise.
20350         * INSTALL: Regenerated.
20351         * NOTES: Regenerated.
20352         * sysdeps/gnu/errlist.c: Regenerated.
20353
20354 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20355
20356         * include/dirent.h: Include <dirstream.h> before
20357         <dirent/dirent.h>.
20358
20359 2012-02-28  David S. Miller  <davem@davemloft.net>
20360
20361         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20362         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20363         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20364         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20365
20366 2012-02-27  David S. Miller  <davem@davemloft.net>
20367
20368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20370         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20371         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20372
20373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20374         frame pointer instead of stack pointer relative arg slot.
20375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20376         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20377         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20378
20379 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20380
20381         [BZ #3992]
20382         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20383
20384 2012-02-27  David S. Miller  <davem@davemloft.net>
20385
20386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20390         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20391         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20392         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20393         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20394
20395 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20396
20397         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20398         later.  Allow versions 5-9.
20399         * configure: Regenerated.
20400         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20401         required minimum version and 4.6 as recommended version.  Do not
20402         mention bugs in GCC 2.7 and 2.8.
20403         * INSTALL: Regenerated.
20404
20405 2012-02-27  David S. Miller  <davem@davemloft.net>
20406
20407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20408         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20409         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20411         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20412         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20413         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20414         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20415
20416         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20417         manipulate bits before adding and subtracting TWO112[sx].
20418         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20419
20420 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20421
20422         [BZ #13775]
20423         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20424         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20425         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20426         being in POSIX, because they are in 1003.1-2008.
20427
20428         * rt/tst-aio.c: Include <fcntl.h>.
20429         * rt/tst-aio7.c: Likewise.
20430         * rt/tst-aio64.c: Likewise.
20431
20432         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20433
20434 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20435
20436         * manual/install.texi (--with-headers): Describe headers as
20437         interface headers, not private headers.
20438         (Specific advice for GNU/Linux systems): Describe use of headers
20439         from "make headers_install", not private headers from older
20440         kernels.
20441         * INSTALL: Regenerated.
20442         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20443         Change to 2.6.19.
20444         * sysdeps/unix/sysv/linux/configure: Regenerated.
20445
20446         * manual/llio.texi (fclean): Remove documentation.
20447
20448         * manual/Makefile (libc-texi-generated): New variable.  Include
20449         version.texi.
20450         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20451         $(libc-texi-generated), not duplicated list of files.
20452         (version.texi, stamp-version): New rules.
20453         (realclean): Remove $(libc-texi-generated), not individual files
20454         from that list.  Do not remove dir-add.texinfo.
20455         * manual/libc.texinfo: Comment out uses of edition numbers and
20456         references to printed manual.  Remove last-updated dates.
20457         (EDITION): Comment out.
20458         (ISBN): Likewise.
20459         (VERSION, UPDATED): Remove.
20460         (version.texi): Include.
20461
20462 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20463
20464         * sysdeps/posix/spawni.c: Include <signal.h>.
20465         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20466         * sysdeps/pthread/aio_fsync.c: Likewise.
20467
20468 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20469
20470         * conform/Makefile (tests): Run only when not cross-compiling and
20471         when fast-check is not defined.
20472
20473         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20474         * conform/data/limits.h-data: Fixes for POSIX2008.
20475         * conform/run-conformtest.sh: Run all tests.
20476         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20477         headers.
20478         * include/bits/dlfcn.h: Likewise.
20479         * include/langinfo.h: Likewise.
20480         * include/monetary.h: Likewise.
20481         * include/sys/poll.h: Likewise.
20482
20483         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20484         for __USE_GNU.
20485         * posix/spawn.h: Define __need_sigset_t.
20486         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20487         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20488         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20489         to get sigevent_t only.
20490         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20491         only for __USE_GNU.
20492         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20493         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20494         process_vm_writev only for __USE_GNU.
20495         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20496
20497         * conform/Makefile: For now ignore errors from run-conformtest.
20498         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20499         POSIX to avoid namespace pollution.  Don't prepend headers.
20500         * conform/data/aio.h-data: Fixes for POSIX testing.
20501         * conform/data/fcntl.h-data: Likewise.
20502         * conform/data/glob.h-data: Likewise.
20503         * conform/data/grp.h-data: Likewise.
20504         * conform/data/pthread.h-data: Likewise.
20505         * conform/data/pwd.h-data: Likewise.
20506         * conform/data/signal.h-data: Likewise.
20507         * conform/data/spawn.h-data: Likewise.
20508         * conform/data/stdio.h-data: Likewise.
20509         * conform/data/stdlib.h-data: Likewise.
20510         * conform/data/stropts.h-data: Likewise.
20511         * conform/data/sys/mman.h-data: Likewise.
20512         * conform/data/sys/stat.h-data: Likewise.
20513         * conform/data/sys/types.h-data: Likewise.
20514         * conform/data/sys/wait.h-data: Likewise.
20515         * conform/data/time.h-data: Likewise.
20516         * conform/data/unistd.h-data: Likewise.
20517         * conform/data/utime.h-data: Likewise.
20518
20519         * io/sys/stat.h: fchmod was always in POSIX.
20520         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20521         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20522         * rt/aio.h: Define __need_timespec before including <time.h>.
20523         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20524         struct.  Add forward declaration of pthread_attr_t and use it in
20525         sigevent.
20526         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20527         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20528         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20529         always remove CLK_TCK definition.
20530
20531 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20532
20533         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20534
20535 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20536
20537         * conform/run-conformtest.sh: New file.
20538         * conform/Makefile: Run run-conformtest for tests.
20539         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20540         support.
20541
20542         * conform/data/uchar.h-data: New file.
20543         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20544         * conform/data/arpa/inet.h-data: Likewise.
20545         * conform/data/assert.h-data: Likewise.
20546         * conform/data/complex.h-data: Likewise.
20547         * conform/data/cpio.h-data: Likewise.
20548         * conform/data/ctype.h-data: Likewise.
20549         * conform/data/dirent.h-data: Likewise.
20550         * conform/data/dlfcn.h-data: Likewise.
20551         * conform/data/errno.h-data: Likewise.
20552         * conform/data/fcntl.h-data: Likewise.
20553         * conform/data/float.h-data: Likewise.
20554         * conform/data/fmtmsg.h-data: Likewise.
20555         * conform/data/fnmatch.h-data: Likewise.
20556         * conform/data/ftw.h-data: Likewise.
20557         * conform/data/glob.h-data: Likewise.
20558         * conform/data/grp.h-data: Likewise.
20559         * conform/data/iconv.h-data: Likewise.
20560         * conform/data/inttypes.h-data: Likewise.
20561         * conform/data/langinfo.h-data: Likewise.
20562         * conform/data/libgen.h-data: Likewise.
20563         * conform/data/limits.h-data: Likewise.
20564         * conform/data/locale.h-data: Likewise.
20565         * conform/data/math.h-data: Likewise.
20566         * conform/data/monetary.h-data: Likewise.
20567         * conform/data/mqueue.h-data: Likewise.
20568         * conform/data/ndbm.h-data: Likewise.
20569         * conform/data/net/if.h-data: Likewise.
20570         * conform/data/netdb.h-data: Likewise.
20571         * conform/data/netinet/in.h-data: Likewise.
20572         * conform/data/nl_types.h-data: Likewise.
20573         * conform/data/poll.h-data: Likewise.
20574         * conform/data/pthread.h-data: Likewise.
20575         * conform/data/pwd.h-data: Likewise.
20576         * conform/data/regex.h-data: Likewise.
20577         * conform/data/sched.h-data: Likewise.
20578         * conform/data/search.h-data: Likewise.
20579         * conform/data/semaphore.h-data: Likewise.
20580         * conform/data/setjmp.h-data: Likewise.
20581         * conform/data/signal.h-data: Likewise.
20582         * conform/data/spawn.h-data: Likewise.
20583         * conform/data/stdarg.h-data: Likewise.
20584         * conform/data/stdio.h-data: Likewise.
20585         * conform/data/stdlib.h-data: Likewise.
20586         * conform/data/string.h-data: Likewise.
20587         * conform/data/strings.h-data: Likewise.
20588         * conform/data/stropts.h-data: Likewise.
20589         * conform/data/sys/ipc.h-data: Likewise.
20590         * conform/data/sys/mman.h-data: Likewise.
20591         * conform/data/sys/msg.h-data: Likewise.
20592         * conform/data/sys/resource.h-data: Likewise.
20593         * conform/data/sys/select.h-data: Likewise.
20594         * conform/data/sys/sem.h-data: Likewise.
20595         * conform/data/sys/shm.h-data: Likewise.
20596         * conform/data/sys/socket.h-data: Likewise.
20597         * conform/data/sys/stat.h-data: Likewise.
20598         * conform/data/sys/statvfs.h-data: Likewise.
20599         * conform/data/sys/time.h-data: Likewise.
20600         * conform/data/sys/timeb.h-data: Likewise.
20601         * conform/data/sys/times.h-data: Likewise.
20602         * conform/data/sys/types.h-data: Likewise.
20603         * conform/data/sys/uio.h-data: Likewise.
20604         * conform/data/sys/un.h-data: Likewise.
20605         * conform/data/sys/utsname.h-data: Likewise.
20606         * conform/data/sys/wait.h-data: Likewise.
20607         * conform/data/syslog.h-data: Likewise.
20608         * conform/data/tar.h-data: Likewise.
20609         * conform/data/termios.h-data: Likewise.
20610         * conform/data/utime.h-data: Likewise.
20611         * conform/data/utmpx.h-data: Likewise.
20612         * conform/data/varargs.h-data: Likewise.
20613         * conform/data/wchar.h-data: Likewise.
20614         * conform/data/wctype.h-data: Likewise.
20615         * conform/data/wordexp.h-data: Likewise.
20616
20617         * include/stropts.h: New file.
20618         * include/uchar.h: New file.
20619         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20620         * include/assert.h: Likewise.
20621         * include/ctype.h: Likewise.
20622         * include/dirent.h: Likewise.
20623         * include/dlfcn.h: Likewise.
20624         * include/fcntl.h: Likewise.
20625         * include/fnmatch.h: Likewise.
20626         * include/glob.h: Likewise.
20627         * include/grp.h: Likewise.
20628         * include/libio.h: Likewise.
20629         * include/locale.h: Likewise.
20630         * include/math.h: Likewise.
20631         * include/net/if.h: Likewise.
20632         * include/netdb.h: Likewise.
20633         * include/netinet/in.h: Likewise.
20634         * include/pthread.h: Likewise.
20635         * include/pwd.h: Likewise.
20636         * include/regex.h: Likewise.
20637         * include/sched.h: Likewise.
20638         * include/search.h: Likewise.
20639         * include/setjmp.h: Likewise.
20640         * include/signal.h: Likewise.
20641         * include/stdio.h: Likewise.
20642         * include/stdlib.h: Likewise.
20643         * include/string.h: Likewise.
20644         * include/sys/cdefs.h: Likewise.
20645         * include/sys/mman.h: Likewise.
20646         * include/sys/msg.h: Likewise.
20647         * include/sys/resource.h: Likewise.
20648         * include/sys/select.h: Likewise.
20649         * include/sys/socket.h: Likewise.
20650         * include/sys/stat.h: Likewise.
20651         * include/sys/statvfs.h: Likewise.
20652         * include/sys/time.h: Likewise.
20653         * include/sys/times.h: Likewise.
20654         * include/sys/uio.h: Likewise.
20655         * include/sys/utsname.h: Likewise.
20656         * include/sys/wait.h: Likewise.
20657         * include/termios.h: Likewise.
20658         * include/time.h: Likewise.
20659         * include/ulimit.h: Likewise.
20660         * include/unistd.h: Likewise.
20661         * include/utime.h: Likewise.
20662         * include/wchar.h: Likewise.
20663         * include/wctype.h: Likewise.
20664         * include/wordexp.h: Likewise.
20665
20666         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20667
20668         * time/time.h: TIME_UTC must be a macro.
20669         Make timespec_get available for ISO C11 only as well.
20670
20671 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20672
20673         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20674         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20675
20676 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20677
20678         * configure.in: Use -o not -a in test for unsupported multi-arch.
20679
20680 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20681
20682         * manual/texinfo.tex: Update to version 2012-01-19.16.
20683
20684 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20685
20686         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20687
20688 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20689
20690         [BZ #13738]
20691         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20692         * manual/fdl-1.3.texi: New file.
20693         * manual/fdl-1.1.texi: File removed.
20694
20695         [BZ #13738]
20696         * manual/libc.texinfo (FDL_VERSION): New @set.
20697         Use it for mention of FDL in cover text.
20698         (Documentation License): Use it in @include file name.
20699
20700 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20701             Roland McGrath  <roland@hack.frob.com>
20702
20703         [BZ #5461]
20704         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20705         not LONG_LONG_MAX and LONG_LONG_MIN.
20706         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20707         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20708         name.
20709         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20710
20711 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20712
20713         [BZ #2547]
20714         [BZ #11365]
20715         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20716         manipulate bits before adding and subtracting TWO23[sx].
20717         * math/libm-test.inc (nearbyint_test): Add more tests.
20718
20719 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20720
20721         [BZ #2548]
20722         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20723         bits before adding and subtracting TWO23[sx].
20724         * math/libm-test.inc (rint_test): Add more tests.
20725         (rint_test_tonearest): Likewise.
20726         (rint_test_towardzero): Likewise.
20727         (rint_test_downward): Likewise.
20728         (rint_test_upward: Likewise.
20729
20730 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20731
20732         [BZ #10110]
20733         * include/stdc-predef.h: New file.  Extracted from features.h.
20734         * include/features.h: Include stdc-predef.h.
20735         * Makefile (headers): Add stdc-predef.h.
20736         * CONFORMANCE (Compiler limitations): Update.
20737
20738 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20739
20740         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20741
20742 2012-02-21  David S. Miller  <davem@davemloft.net>
20743
20744         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20745         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20746
20747 2012-02-20  David S. Miller  <davem@davemloft.net>
20748
20749         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20750         using a normal save/restore sequence, rather than allocating a
20751         dummy stack frame just to store a frame pointer and restore.
20752         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20753
20754 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20755
20756         * manual/install.texi: Fix stray word in line-wrapped comment.
20757
20758 2012-02-20  David S. Miller  <davem@davemloft.net>
20759
20760         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20761         both binutils and gcc support GOTDATA.
20762
20763         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20764         "rd %pc" in the PIC register setup sequences.
20765
20766         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20767         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20768         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20769         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20770         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20771         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20772         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20773         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20775         (SYSCALL_ERROR_HANDLER): Likewise.
20776         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20777         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20778         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20779         (SYSCALL_ERROR_HANDLER): Likewise.
20780
20781         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20782         (HAVE_GCC_GOTDATA): New.
20783         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20784         relocation support in both binutils and gcc.
20785         * sysdeps/sparc/elf/configure: Regenerate.
20786
20787         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20788         * sysdeps/sparc/sparc32/elf/configure: Delete.
20789         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20790         * sysdeps/sparc/sparc64/elf/configure: Delete.
20791         * sysdeps/sparc/elf/configure.in: New file.
20792         * sysdeps/sparc/elf/configure: Generate.
20793
20794         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20795         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20796         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20797         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20798         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20799
20800 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20801
20802         * manual/install.texi: Do not mention specific glibc version
20803         numbers.
20804         * manual/libc.texinfo (VERSION, UPDATED): Update.
20805         (@copying): Use @copyright{} and range of years.
20806
20807 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20808
20809         [BZ #13695]
20810         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20811         [crti.S not in sysdirs] (generated): Do not append.
20812         [crti.S not in sysdirs] (omit-deps): Likewise.
20813         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20814         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20815         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20816         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20817         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20818         Likewise.
20819         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20820         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20821         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20822         * csu/defs.awk: Remove file.
20823         * sysdeps/generic/initfini.c: Likewise.
20824         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20825         variable.
20826         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20827         Likewise.
20828
20829 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20830
20831         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20832         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20833         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20834         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20835         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20836         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20837         <bits/epoll.h>.
20838         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20839         (__EPOLL_PACKED): Define to empty if not defined by
20840         <bits/epoll.h>.
20841         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20842         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20843         bits/epoll.h.
20844
20845 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20846
20847         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20848         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20849         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20850         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20851         <bits/timerfd.h>.
20852         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20853         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20854         bits/timerfd.h.
20855
20856 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20857
20858         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20859         in C locale.
20860         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20861         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20862         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20864
20865 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20866
20867         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20868         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20869
20870 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20871
20872         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20873         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20874         defined.
20875         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20876         Likewise.
20877         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20878         entry for 2.16.
20879
20880 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20881
20882         * math/w_acos.c: Use non-signaling floating-point comparisons.
20883         * math/w_acosf.c: Likewise.
20884         * math/w_acosh.c: Likewise.
20885         * math/w_acoshf.c: Likewise.
20886         * math/w_acoshl.c: Likewise.
20887         * math/w_acosl.c: Likewise.
20888         * math/w_asin.c: Likewise.
20889         * math/w_asinf.c: Likewise.
20890         * math/w_asinl.c: Likewise.
20891         * math/w_atanh.c: Likewise.
20892         * math/w_atanhf.c: Likewise.
20893         * math/w_atanhl.c: Likewise.
20894         * math/w_exp2.c: Likewise.
20895         * math/w_exp2f.c: Likewise.
20896         * math/w_exp2l.c: Likewise.
20897         * math/w_j0.c: Likewise.
20898         * math/w_j0f.c: Likewise.
20899         * math/w_j0l.c: Likewise.
20900         * math/w_j1.c: Likewise.
20901         * math/w_j1f.c: Likewise.
20902         * math/w_j1l.c: Likewise.
20903         * math/w_jn.c: Likewise.
20904         * math/w_jnf.c: Likewise.
20905         * math/w_log.c: Likewise.
20906         * math/w_log10.c: Likewise.
20907         * math/w_log10f.c: Likewise.
20908         * math/w_log10l.c: Likewise.
20909         * math/w_log2.c: Likewise.
20910         * math/w_log2f.c: Likewise.
20911         * math/w_log2l.c: Likewise.
20912         * math/w_logf.c: Likewise.
20913         * math/w_logl.c: Likewise.
20914         * math/w_sqrt.c: Likewise.
20915         * math/w_sqrtf.c: Likewise.
20916         * math/w_sqrtl.c: Likewise.
20917         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20918         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20919         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20920         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20921         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20922
20923 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20924
20925         [BZ #9739]
20926         * manual/string.texi (strnlen): Use correct parameter name in
20927         equivalent expression.
20928
20929 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20930
20931         [BZ #11174]
20932         * manual/users.texi (seteuid): Consistently use neweuid for
20933         argument name.
20934
20935 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20936
20937         [BZ #13704]
20938         * manual/nss.texi (Services in the NSS configuration): Correct
20939         list of services in example configuration file.
20940
20941 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20942
20943         [BZ #11322]
20944         * manual/arith.texi: Remove statements about negative zero
20945         behaving identically to zero.
20946
20947 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20948
20949         [BZ #5993]
20950         * manual/install.texi: Do not document upgrading from libc5.
20951
20952 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20953
20954         [BZ #4596]
20955         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20956
20957 2012-02-18  David S. Miller  <davem@davemloft.net>
20958
20959         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20960         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20961         %o7 across the call.
20962         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20963         instead.
20964         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20965         SETUP_PIC_REG_LEAF.
20966         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20967         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20968         * sysdeps/sparc/crtn.S: Likewise.
20969
20970 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20971
20972         * aout/Makefile: Remove.
20973
20974 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20975
20976         [BZ #13058]
20977         * manual/examples/argp-ex1.c (main): Format definition in GNU
20978         style.
20979         * manual/examples/argp-ex2.c (main): Likewise.
20980         * manual/examples/argp-ex3.c (main): Likewise.
20981         * manual/examples/argp-ex4.c (main): Likewise.
20982         * manual/examples/longopt.c (main): Use new-style prototype
20983         definition.
20984         * manual/examples/strncat.c (main): Specify return type and use
20985         (void) for arguments.
20986         * manual/examples/subopt.c (main): Use char **argv argument.
20987
20988 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20989
20990         [BZ #5077]
20991         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20992         rounding modes.
20993
20994 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20995
20996         [BZ #6907]
20997         * manual/string.texi (strchr): Change when strchrnul is
20998         recommended.
20999
21000 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21001
21002         [BZ #174]
21003         * manual/locale.texi (setlocale): Document LOCPATH.
21004
21005 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21006
21007         [BZ #10210]
21008         * manual/process.texi (execle): Move @dots{} before last argument.
21009
21010 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21011
21012         [BZ #12047]
21013         * manual/charset.texi (Generic Charset Conversion): Fix typo
21014         (LC_TYPE -> LC_CTYPE).
21015
21016 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21017
21018         [BZ #5805]
21019         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21020         (scalbnf): Likewise.
21021         (scalbnl): Likewise.
21022         (scalbln): Likewise.
21023         (scalblnf): Likewise.
21024         (scalblnl): Likewise.
21025         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21026         (vwarnx): Likewise.
21027         (verr): Likewise.
21028         (verrx): Likewise.
21029         * manual/filesys.texi (telldir): Use braces around return type.
21030         * manual/llio.texi (mmap): Add space after comma.
21031         (mmap64): Likewise.
21032         * manual/math.texi (jn): Use @var{} on parameter names.
21033         (jnf): Likewise.
21034         (jnl): Likewise.
21035         (yn): Likewise.
21036         (ynf): Likewise.
21037         (ynl): Likewise.
21038         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21039         line.
21040         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21041         "...".
21042         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21043         (sched_get_priority_max): Likewise.
21044         * manual/signal.texi (sigvec): Add space after comma.
21045         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21046         names.
21047         (if_indextoname): Likewise.
21048         (if_freenameindex): Likewise.
21049         (sendto): Use ',' instead of '.' in prototype.
21050         * manual/startup.texi (syscall): Use @dots{} instead of literal
21051         "...".
21052         * manual/stdio.texi (__fpending): Separate initial words of
21053         paragraph from @deftypefun line.
21054         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21055         "...".
21056         (vsyslog): Use @var{} on parameter names.
21057         * manual/terminal.texi (stty): Use @var{} on parameter names.
21058         * manual/users.texi (getutmp): Use @var{} on parameter names.
21059         (getutmpx): Likewise.
21060
21061 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21062
21063         [BZ #6884]
21064         * manual/stdio.texi (fopen): Fix typos in description of
21065         ",ccs=STRING".
21066
21067 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21068
21069         [BZ #4026]
21070         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21071         get clock_id definition.
21072
21073 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21074
21075         [BZ #4822]
21076         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21077         (madvise): Cast every argument to void on its own.
21078
21079 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21080
21081         [BZ #9902]
21082         * manual/startup.texi (Exit Status): Fix typo.
21083
21084 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21085
21086         [BZ #10140]
21087         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21088         * manual/examples/argp-ex2.c: Likewise.
21089         * manual/examples/argp-ex3.c: Likewise.
21090
21091 2012-02-16  Richard Henderson  <rth@redhat.com>
21092
21093         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21094         * sysdeps/s390/s390-32/initfini.c: Remove.
21095         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21096         * sysdeps/s390/s390-64/initfini.c: Remove.
21097
21098 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21099
21100         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21101         compiler output for sysdeps/generic/initfini.c.
21102         * sysdeps/sh/elf/initfini.c: Remove file.
21103
21104 2012-02-16  David S. Miller  <davem@davemloft.net>
21105
21106         [BZ #11494]
21107         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21108
21109         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21110         * sysdeps/sparc/crti.S: New file.
21111         * sysdeps/sparc/crtn.S: New file.
21112         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21113         * sysdeps/sparc/sparc64/Makefile: Likewise.
21114
21115 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21116
21117         [BZ #3335]
21118         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21119
21120 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21121
21122         [BZ #4822]
21123         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21124
21125         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21126         (write, read, close): Likewise.
21127         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21128
21129 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21130
21131         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21132         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21133         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21134         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21135         <bits/signalfd.h>.
21136         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21137         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21138         bits/signalfd.h.
21139
21140 2012-02-14  Marek Polacek  <polacek@redhat.com>
21141
21142         * sysdeps/x86_64/crti.S: New file.
21143         * sysdeps/x86_64/crtn.S: New file.
21144         * sysdeps/x86_64/elf/initfini.c: Remove file.
21145
21146 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21147
21148         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21149         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21150         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21151         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21152         <bits/inotify.h>.
21153         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21154         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21155         bits/inotify.h.
21156
21157 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21158
21159         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21160         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21161         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21162         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21163         <bits/eventfd.h>.
21164         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21165         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21166         bits/eventfd.h.
21167
21168 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21169
21170         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21171         __feraiseexcept instead of feraiseexcept.
21172
21173         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21174         nanosleep invocations.
21175         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21176         strings, and add error checking for a nanosleep invocations.
21177
21178 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21179
21180         Replace FSF snail mail address with URLs, as per GNU coding standards.
21181         Most of the snail mail addresses were wrong anyway, and omitting
21182         them makes the source code easier to maintain.  Almost all of the
21183         changes are to license notices and to locale LC_IDENTIFICATION
21184         addresses, except for this one:
21185         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21186         not its snail mail address.
21187
21188 2012-02-09  Richard Henderson  <rth@twiddle.net>
21189
21190         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21191         of kernel-features.h.
21192
21193         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21194
21195 2012-02-08  Marek Polacek  <polacek@redhat.com>
21196
21197         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21198         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21199         * sysdeps/gnu/_G_config.h: Likewise.
21200         * sysdeps/generic/_G_config.h: Likewise.
21201
21202 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21203
21204         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21205         tests.
21206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21207
21208         * sysdeps/powerpc/powerpc32/crti.S: New file.
21209         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21210         * sysdeps/powerpc/powerpc64/crti.S: New file.
21211         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21212
21213         * Makeconfig (have-initfini): Don't set.
21214         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21215         * configure.in (nopic_initfini): Don't substitute.
21216         * config.h.in (HAVE_INITFINI): Don't #undef.
21217         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21218         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21219
21220 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21221
21222         Support crti.S and crtn.S provided directly by architectures.
21223         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21224         [crti.S in sysdirs] (omit-deps): Likewise.
21225         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21226         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21227         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21228         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21229         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21230         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21231         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21232         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21233         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21234         compiler output for sysdeps/generic/initfini.c.
21235         * sysdeps/i386/elf/Makefile: Remove file.
21236         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21237
21238 2012-02-07  Marek Polacek  <polacek@redhat.com>
21239
21240         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21241         * sysdeps/gnu/_G_config.h: Likewise.
21242         * sysdeps/mach/hurd/_G_config.h: Likewise.
21243
21244 2012-02-07  Marek Polacek  <polacek@redhat.com>
21245
21246         * math/Makefile (tests): Add tst-CMPLX2.
21247         * math/tst-CMPLX2.c: New file.
21248
21249 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21250
21251         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21252
21253         * math/libm-test.inc (jn_test): Add missing L suffix.
21254
21255 2012-02-06  Marek Polacek  <polacek@redhat.com>
21256
21257         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21258         * sysdeps/i386/fpu/e_powf.S: Likewise.
21259         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21260         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21261         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21262         * sysdeps/i386/fpu/e_pow.S: Likewise.
21263         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21264         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21265         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21266         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21267         * sysdeps/i386/fpu/e_log2.S: Likewise.
21268         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21269         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21270         * sysdeps/i386/fpu/e_powl.S: Likewise.
21271         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21272         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21273         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21274         * sysdeps/i386/fpu/e_logl.S: Likewise.
21275         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21276         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21277         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21278         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21279         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21280         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21281         * sysdeps/i386/fpu/e_log.S: Likewise.
21282         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21283         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21284         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21285         * sysdeps/i386/fpu/e_logf.S: Likewise.
21286         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21287         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21288         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21289         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21290         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21291         * sysdeps/i386/fpu/e_log10.S: Likewise.
21292         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21293         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21294         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21295         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21296         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21297         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21298         * sysdeps/i386/asm-syntax.h: Likewise.
21299         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21300         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21301         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21302         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21303         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21304         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21305         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21306         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21307         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21308         * sysdeps/powerpc/sysdep.h: Likewise.
21309         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21310         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21311
21312 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21313
21314         [BZ #411]
21315         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21316
21317 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21318
21319         * sysdeps/i386/sysdep.h: Include <features.h>.
21320         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21321         version.
21322
21323 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21324
21325         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21326         Define.
21327         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21328         LOAD_PIC_REG_STR.
21329
21330 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21331
21332         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21333         (SETUP_PIC_REG): Use GET_PC_THUNK.
21334         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21335         macro.
21336
21337 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21338
21339         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21340         for non-PIC compilation.
21341         (SETUP_PIC_REG): Add .p2align directive.
21342         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21343         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21344         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21345         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21346         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21347         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21348         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21349         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21350         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21351         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21352         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21353         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21354         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21355         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21356         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21357         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21358         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21359         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21360         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21361         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21362         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21363         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21364         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21365         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21366         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21367         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21368         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21369         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21370         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21371         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21372         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21373         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21374         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21375         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21376         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21377         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21378         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21379         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21380         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21381         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21382         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21383
21384 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21385
21386         * math/tst-CMPLX.c: Include <stdio.h>.
21387
21388 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21389
21390         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21391         float.
21392         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21393         * sysdeps/sparc/bits/mathdef.h: Likewise.
21394
21395 2012-01-31  Marek Polacek  <polacek@redhat.com>
21396
21397         * libio/libio.h: Don't define _PARAMS.
21398         * locale/programs/config.h: Don't define PARAMS.
21399         * stdlib/strtol_l.c: Likewise.
21400         (__strtol_l): Remove PARAMS from the prototype.
21401
21402 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21403
21404         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21405         names.  Just use the correct names.  Remove unnecessary wrapper
21406         functions.
21407         * malloc/arena.c: Likewise.
21408         * malloc/hooks.c: Likewise.
21409
21410         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21411         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21412         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21413
21414 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21415
21416         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21417         into tail calls.
21418         (update_get_addr): New function.
21419         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21420         GET_ADDR_MODULE parameter.
21421
21422 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21423
21424         * crypt/cert.c: Remove __STDC__ conditionals.
21425         * crypt/crypt-entry.c: Likewise.
21426         * crypt/crypt_util.c: Likewise.
21427         * libio/filedoalloc.c: Likewise.
21428         * libio/fileops.c: Likewise.
21429         * libio/genops.c: Likewise.
21430         * libio/iofclose.c: Likewise.
21431         * libio/iofdopen.c: Likewise.
21432         * libio/iofopen.c: Likewise.
21433         * libio/iofopen64.c: Likewise.
21434         * libio/iogetdelim.c: Likewise.
21435         * libio/iopopen.c: Likewise.
21436         * libio/obprintf.c: Likewise.
21437         * libio/oldfileops.c: Likewise.
21438         * libio/oldiofclose.c: Likewise.
21439         * libio/oldiofdopen.c: Likewise.
21440         * libio/oldiofopen.c: Likewise.
21441         * libio/oldiopopen.c: Likewise.
21442         * libio/wfiledoalloc.c: Likewise.
21443         * libio/wgenops.c: Likewise.
21444         * locale/programs/xmalloc.c: Likewise.
21445         * misc/syslog.c: Likewise.
21446         * stdio-common/xbug.c: Likewise.
21447         * string/memchr.c: Likewise.
21448         * string/memcmp.c: Likewise.
21449         * string/memrchr.c: Likewise.
21450         * string/rawmemchr.c: Likewise.
21451         * sysdeps/posix/getcwd.c: Likewise.
21452         * time/strftime_l.c: Likewise.
21453
21454 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21455
21456         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21457         * config.make.in (config-cflags-sse2avx): Define.
21458         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21459         Fix typo.
21460
21461 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21462
21463         * scripts/config.guess: Update from upstream config git repository.
21464         * scripts/config.sub: Likewise.
21465
21466 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21467
21468         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21469         (EM_NUM): Update.
21470         (R_TILEPRO_*, R_TILEGX_*): New macros.
21471
21472         * scripts/firstversions.awk: Fix bug in version range handling.
21473
21474         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21475
21476         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21477
21478         * include/sys/epoll.h: New file.
21479         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21480         libc_hidden_def.
21481
21482 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21483
21484         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21485         Avoid unnecessary __WORDSIZE == 64 test.
21486         (fmaxf): Use VEX format if possible.
21487         (fmax): Likewise.
21488         (fminf): Likewise.
21489         (fmin): Likewise.
21490
21491         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21492         * math/math_private.h: Remove libc_fegetround* and
21493         libc_fesetround*.
21494         * sysdeps/i386/configure.in: Check for -msse2avx.
21495         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21496         also if SSE2AVX is defined.
21497         Remove libc_fegetround* and libc_fesetround*.
21498         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21499         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21500         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21501         of HAS_YMM_USABLE.
21502         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21503         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21504         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21505         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21506         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21507
21508         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21509
21510 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21511
21512         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21513         size is not set.
21514         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21515
21516 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21517
21518         [BZ #13618]
21519         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21520         relocation.
21521         * Makeconfig (libm): Define.
21522         * elf/Makefile: Add rules to build and run tst-relsort1.
21523         * elf/tst-relsort1.c: New file.
21524         * elf/tst-relsort1mod1.c: New file.
21525         * elf/tst-relsort1mod2.c: New file.
21526
21527 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21528
21529         * math/s_ldexp.c: Remove __STDC__ conditionals.
21530         * math/s_ldexpf.c: Likewise.
21531         * math/s_ldexpl.c: Likewise.
21532         * math/s_nextafter.c: Likewise.
21533         * math/s_nexttowardf.c: Likewise.
21534         * math/s_significand.c: Likewise.
21535         * math/s_significandf.c: Likewise.
21536         * math/s_significandl.c: Likewise.
21537         * math/w_jnl.c: Likewise.
21538         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21539         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21540         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21541         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21542         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21543         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21544         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21545         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21546         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21547         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21548         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21549         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21550         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21551         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21552         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21553         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21554         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21555         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21556         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21557         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21558         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21559         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21560         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21561         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21562         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21563         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21564         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21565         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21566         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21567         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21568         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21569         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21570         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21571         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21572         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21573         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21574         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21575         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21576         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21577         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21578         * sysdeps/ieee754/k_standard.c: Likewise.
21579         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21580         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21581         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21582         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21583         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21584         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21585         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21586         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21587         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21588         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21589         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21590         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21591         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21592         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21593         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21594         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21595         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21596         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21597         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21598         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21599         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21600         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21601         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21602         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21603         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21604         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21605         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21606         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21607         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21608         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21609         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21610         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21611         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21612         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21613         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21614         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21615         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21616         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21617         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21618         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21619         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21620         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21621         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21622         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21623         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21624         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21625         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21626         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21627         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21628         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21629         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21630         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21631         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21632         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21633         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21634         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21635         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21636         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21637         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21638         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21639         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21640         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21641         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21642         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21643         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21644         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21645         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21646         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21647         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21648         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21649         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21650         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21651         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21652         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21653         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21654         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21655         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21656         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21657         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21658         * sysdeps/ieee754/s_matherr.c: Likewise.
21659         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21660         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21661         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21662         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21663
21664 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21665
21666         * crypt/md5.h: Remove __STDC__ conditionals.
21667         * libio/libioP.h: Likewise.
21668         * locale/programs/config.h: Likewise.
21669         * sysdeps/generic/sysdep.h: Likewise.
21670         * sysdeps/i386/asm-syntax.h: Likewise.
21671         * sysdeps/s390/asm-syntax.h: Likewise.
21672         * sysdeps/unix/sysdep.h: Likewise.
21673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21675
21676 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21677
21678         * libio/libio.h: Remove __STDC__ conditionals.
21679         * malloc/obstack.h: Likewise.
21680         * math/complex.h: Likewise.
21681         * math/math.h: Likewise.
21682         * sysdeps/generic/_G_config.h: Likewise.
21683         * sysdeps/gnu/_G_config.h: Likewise.
21684         * sysdeps/mach/hurd/_G_config.h: Likewise.
21685         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21686         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21687         * sysdeps/sparc/bits/mathdef.h: Likewise.
21688
21689 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21690
21691         [BZ #13583]
21692         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21693         Clean up HAS_* macros.
21694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21695         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21696         possible.
21697         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21698         HAS_AVX.
21699         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21700         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21701         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21702         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21703         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21704
21705 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21706
21707         * elf/tst-unique3.cc (gets): Remove declaration.
21708         * elf/tst-unique3lib.cc (gets): Likewise.
21709         * elf/tst-unique3lib2.cc (gets): Likewise.
21710         * elf/tst-unique4.cc (gets): Likewise.
21711
21712 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21713
21714         * include/stdio.h: Add C++ protection.  Add gets declarations and
21715         definitions.
21716         * debug/tst-chk1.c: Don't declare gets here.
21717         * stdio-common/tst-gets.c: Likewise.
21718
21719 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21720
21721         * posix/glob: Remove directory.
21722
21723 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21724
21725         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21726
21727 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21728
21729         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21730         of the non-standard EPFNOSUPPORT.
21731
21732 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21733
21734         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21735         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21736         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21737
21738 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21739
21740         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21741
21742 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21743
21744         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21745         transient errors.
21746         * nscd/grpcache.c (cache_addgr): Likewise.
21747         * nscd/hstcache.c (cache_addhst): Likewise.
21748         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21749         * nscd/pwdcache.c (cache_addpw): Likewise.
21750         * nscd/servicescache.c (cache_addserv): Likewise.
21751
21752 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21753
21754         * malloc/malloc.c: Various cleanups.
21755         * malloc/hooks.c: Likewise.
21756
21757         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21758         * stdlib/bug-fmtmsg1.c: New file.
21759
21760         * stdlib/fmtmsg.c (init): Add missing unlock.
21761         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21762
21763 2012-01-12  Marek Polacek  <polacek@redhat.com>
21764
21765         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21766         and _GNU_SOURCE.
21767
21768 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21769
21770         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21771         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21772         macro to ensure uniqueness of label name.
21773         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21774         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21775
21776 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21777
21778         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21779
21780         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21781         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21782         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21783         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21784
21785 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21786
21787         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21788
21789         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21790         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21791         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21792
21793         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21794
21795         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21796         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21797         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21798         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21799
21800         * math/bits/math-finite.h: Add ldexp support.
21801
21802 2012-01-10  Marek Polacek  <polacek@redhat.com>
21803
21804         * locale/programs/localedef.h (show_archive_content): Add noreturn
21805         attribute.
21806
21807 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21808
21809         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21810
21811 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21812
21813         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21814
21815         * io/Makefile (headers): Add bits/poll2.h.
21816
21817 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21818
21819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21820         typo #include statement.
21821
21822 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21823
21824         * include/sys/cdefs.h: Define __attribute_alloc_size.
21825         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21826         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21827         * elf/pldd.c: Likewise.
21828         * iconv/iconv_charmap.c: Likewise.
21829         * iconv/iconvconfig.c: Likewise.
21830         * iconv/strtab.c: Likewise.
21831         * locale/programs/locale.c: Likewise.
21832         * locale/programs/localedef.h: Likewise.
21833         * locale/programs/simple-hash.c: Likewise.
21834         * nscd/nscd.h: Likewise.
21835         * nss/makedb.c: Likewise.
21836         * sysdeps/generic/ldconfig.h: Likewise.
21837         * locale/programs/localedef.c: Remove xmalloc prototype.
21838         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21839
21840 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21841
21842         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21843         appropriate.
21844
21845 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21846
21847         * math/Makefile (tests): Add tst-CMPLX.
21848         * math/tst-CMPLX.c: New file.
21849
21850         * math/complex.h (CMPLXL): Fix typo.
21851
21852         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21853         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21854         GLIBC_2.16.
21855         * debug/tst-chk1.c: Add poll and ppoll tests.
21856         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21857         * include/sys/poll.h: Add hidden proto for ppoll.
21858         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21859         * sysdeps/mach/hurd/ppoll.c: Likewise.
21860         * io/ppoll.c: Likewise.
21861         * debug/poll_chk.c: New file.
21862         * debug/ppoll_chk.c: New file.
21863         * include/bits/poll2.h: New file.
21864         * io/bits/poll2.h: New file.
21865
21866         [BZ #1350]
21867         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21868
21869         * configure.in: static is always set to yes.  Remove.
21870         * config.make.in: Don't set build-static.
21871         * Makeconfig: Remove use of build-static.
21872         * dlfcn/Makefile: Likewise.
21873         * elf/Makefile: Likewise.
21874         * math/Makefile: Likewise.
21875         * misc/Makefile: Likewise.
21876         * nptl/Makefile: Likewise.
21877         * sysdeps/mach/hurd/Makefile: Likewise.
21878
21879         * configure.in: PWD_P is not used anymore.
21880         * config.make.in: Remove PWD_P entry.
21881
21882         * configure.in: Remove last remnants of RANLIB.
21883         No need to check for signed size_t anymore.
21884         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21885         and IA-64.
21886         Remove __builtin_expect test because we require at least gcc 3.4.
21887         * aclocal.m4: Likewise.
21888
21889         * wcsmbs/mbrtoc16.c: Implement using towc function.
21890         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21891         * wcsmbs/wcsmbsload.c: Likewise.
21892         * iconv/gconv_simple.c: Likewise.
21893         * iconv/gconv_int.h: Likewise.
21894         * iconv/gconv_builtin.h: Likewise.
21895         * iconv/iconv_prog.c: Remove CHAR16 handling.
21896
21897         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21898
21899         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21900
21901         * configure.in: Remove --with-elf and --enable-bounded options.
21902         Dont set base_machine for ia64.  More non-ELF conditions removed.
21903         Remove testing and setting of leading underscore information.
21904         * config.make.in (build-bounded): Set to no.
21905         * config.h.in: Remove NO_UNDERSCORES entry.
21906         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21907         them.
21908         * csu/start.c: Remove !NO_UNDERSCORE code.
21909         * locale/localeinfo.h: Likewise.
21910         * sysdeps/generic/machine-gmon.h: Likewise.
21911         * sysdeps/generic/sysdep.h: Likewise.
21912         * sysdeps/i386/sysdep.h: Likewise.
21913         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21914         * sysdeps/mach/sysdep.h: Likewise.
21915         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21916         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21917         * sysdeps/sh/sysdep.h: Likewise.
21918         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21919         * sysdeps/unix/i386/sysdep.S: Likewise.
21920         * sysdeps/unix/sparc/start.c: Likewise.
21921         * sysdeps/unix/sparc/sysdep.S: Likewise.
21922         * sysdeps/unix/sparc/sysdep.h: Likewise.
21923         * sysdeps/unix/start.c: Likewise.
21924         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21925         * sysdeps/x86_64/sysdep.h: Likewise.
21926
21927 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21928
21929         [BZ #13553]
21930         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21931         for non-gcc.
21932         * argp/argp-fmtstream.h: Use const instead __const.
21933         * argp/argp.h: Likewise.
21934         * assert/assert.h: Likewise.
21935         * bits/fenv.h: Likewise.
21936         * bits/sched.h: Likewise.
21937         * bits/sigset.h: Likewise.
21938         * bits/sigthread.h: Likewise.
21939         * catgets/nl_types.h: Likewise.
21940         * conform/data/pthread.h-data: Likewise.
21941         * crypt/crypt-private.h: Likewise.
21942         * crypt/crypt.h: Likewise.
21943         * crypt/crypt_util.c: Likewise.
21944         * ctype/ctype.h: Likewise.
21945         * debug/execinfo.h: Likewise.
21946         * debug/mbsnrtowcs_chk.c: Likewise.
21947         * debug/mbsrtowcs_chk.c: Likewise.
21948         * debug/wcsnrtombs_chk.c: Likewise.
21949         * debug/wcsrtombs_chk.c: Likewise.
21950         * debug/wcstombs_chk.c: Likewise.
21951         * dirent/dirent.h: Likewise.
21952         * dlfcn/dlfcn.h: Likewise.
21953         * elf/neededtest4.c: Likewise.
21954         * grp/grp.h: Likewise.
21955         * gshadow/gshadow.h: Likewise.
21956         * iconv/gconv.h: Likewise.
21957         * iconv/gconv_int.h: Likewise.
21958         * iconv/gconv_simple.c: Likewise.
21959         * iconv/iconv.h: Likewise.
21960         * iconv/loop.c: Likewise.
21961         * iconv/skeleton.c: Likewise.
21962         * include/aio.h: Likewise.
21963         * include/aliases.h: Likewise.
21964         * include/argz.h: Likewise.
21965         * include/arpa/inet.h: Likewise.
21966         * include/assert.h: Likewise.
21967         * include/dirent.h: Likewise.
21968         * include/dlfcn.h: Likewise.
21969         * include/execinfo.h: Likewise.
21970         * include/fcntl.h: Likewise.
21971         * include/fenv.h: Likewise.
21972         * include/glob.h: Likewise.
21973         * include/grp.h: Likewise.
21974         * include/libintl.h: Likewise.
21975         * include/mntent.h: Likewise.
21976         * include/netdb.h: Likewise.
21977         * include/pwd.h: Likewise.
21978         * include/rpc/netdb.h: Likewise.
21979         * include/sched.h: Likewise.
21980         * include/search.h: Likewise.
21981         * include/shadow.h: Likewise.
21982         * include/signal.h: Likewise.
21983         * include/stdio.h: Likewise.
21984         * include/stdlib.h: Likewise.
21985         * include/string.h: Likewise.
21986         * include/sys/socket.h: Likewise.
21987         * include/sys/stat.h: Likewise.
21988         * include/sys/statfs.h: Likewise.
21989         * include/sys/statvfs.h: Likewise.
21990         * include/sys/syslog.h: Likewise.
21991         * include/sys/time.h: Likewise.
21992         * include/sys/uio.h: Likewise.
21993         * include/time.h: Likewise.
21994         * include/unistd.h: Likewise.
21995         * include/utmp.h: Likewise.
21996         * include/wchar.h: Likewise.
21997         * include/wctype.h: Likewise.
21998         * inet/aliases.h: Likewise.
21999         * inet/arpa/inet.h: Likewise.
22000         * inet/netinet/ether.h: Likewise.
22001         * inet/netinet/in.h: Likewise.
22002         * intl/libintl.h: Likewise.
22003         * io/bits/fcntl2.h: Likewise.
22004         * io/fcntl.h: Likewise.
22005         * io/ftw.h: Likewise.
22006         * io/sys/poll.h: Likewise.
22007         * io/sys/stat.h: Likewise.
22008         * io/sys/statfs.h: Likewise.
22009         * io/sys/statvfs.h: Likewise.
22010         * io/utime.h: Likewise.
22011         * libio/bits/stdio.h: Likewise.
22012         * libio/bits/stdio2.h: Likewise.
22013         * libio/libio.h: Likewise.
22014         * libio/libioP.h: Likewise.
22015         * libio/stdio.h: Likewise.
22016         * locale/lc-ctype.c: Likewise.
22017         * locale/locale.h: Likewise.
22018         * login/utmp.h: Likewise.
22019         * malloc/arena.c: Likewise.
22020         * malloc/malloc.c: Likewise.
22021         * malloc/malloc.h: Likewise.
22022         * malloc/mcheck.c: Likewise.
22023         * malloc/mtrace.c: Likewise.
22024         * math/bits/mathcalls.h: Likewise.
22025         * math/fenv.h: Likewise.
22026         * math/math_private.h: Likewise.
22027         * misc/bits/error.h: Likewise.
22028         * misc/bits/syslog.h: Likewise.
22029         * misc/err.h: Likewise.
22030         * misc/error.h: Likewise.
22031         * misc/fstab.h: Likewise.
22032         * misc/mntent.h: Likewise.
22033         * misc/regexp.h: Likewise.
22034         * misc/search.h: Likewise.
22035         * misc/sgtty.h: Likewise.
22036         * misc/sys/mman.h: Likewise.
22037         * misc/sys/syslog.h: Likewise.
22038         * misc/sys/uio.h: Likewise.
22039         * misc/sys/xattr.h: Likewise.
22040         * misc/ttyent.h: Likewise.
22041         * nis/rpcsvc/ypclnt.h: Likewise.
22042         * nss/nss.h: Likewise.
22043         * posix/bits/unistd.h: Likewise.
22044         * posix/fnmatch.h: Likewise.
22045         * posix/glob.h: Likewise.
22046         * posix/sched.h: Likewise.
22047         * posix/spawn.h: Likewise.
22048         * posix/sys/wait.h: Likewise.
22049         * posix/unistd.h: Likewise.
22050         * posix/wordexp.h: Likewise.
22051         * pwd/pwd.h: Likewise.
22052         * resolv/netdb.h: Likewise.
22053         * resource/sys/resource.h: Likewise.
22054         * rt/aio.h: Likewise.
22055         * rt/bits/mqueue2.h: Likewise.
22056         * rt/mqueue.h: Likewise.
22057         * shadow/shadow.h: Likewise.
22058         * signal/signal.h: Likewise.
22059         * socket/send.c: Likewise.
22060         * socket/sendto.c: Likewise.
22061         * socket/sys/socket.h: Likewise.
22062         * stdio-common/printf.h: Likewise.
22063         * stdlib/bits/stdlib.h: Likewise.
22064         * stdlib/fmtmsg.h: Likewise.
22065         * stdlib/monetary.h: Likewise.
22066         * stdlib/stdlib.h: Likewise.
22067         * stdlib/ucontext.h: Likewise.
22068         * streams/stropts.h: Likewise.
22069         * string/argz.h: Likewise.
22070         * string/bits/string2.h: Likewise.
22071         * string/string.h: Likewise.
22072         * string/strings.h: Likewise.
22073         * sunrpc/rpc/auth.h: Likewise.
22074         * sunrpc/rpc/auth_des.h: Likewise.
22075         * sunrpc/rpc/clnt.h: Likewise.
22076         * sunrpc/rpc/netdb.h: Likewise.
22077         * sunrpc/rpc/pmap_clnt.h: Likewise.
22078         * sunrpc/rpc/xdr.h: Likewise.
22079         * sysdeps/generic/inttypes.h: Likewise.
22080         * sysdeps/generic/net/if.h: Likewise.
22081         * sysdeps/generic/sys/swap.h: Likewise.
22082         * sysdeps/gnu/net/if.h: Likewise.
22083         * sysdeps/gnu/utmpx.h: Likewise.
22084         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22085         * sysdeps/i386/i486/bits/string.h: Likewise.
22086         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22087         * sysdeps/s390/bits/string.h: Likewise.
22088         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22089         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22090         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22091         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22092         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22093         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22094         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22095         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22096         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22097         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22098         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22099         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22100         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22101         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22102         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22103         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22104         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22105         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22106         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22107         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22108         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22109         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22110         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22111         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22112         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22113         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22114         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22115         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22116         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22117         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22118         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22119         * sysvipc/sys/ipc.h: Likewise.
22120         * sysvipc/sys/msg.h: Likewise.
22121         * sysvipc/sys/sem.h: Likewise.
22122         * sysvipc/sys/shm.h: Likewise.
22123         * termios/termios.h: Likewise.
22124         * time/sys/time.h: Likewise.
22125         * time/time.h: Likewise.
22126         * wcsmbs/bits/wchar2.h: Likewise.
22127         * wcsmbs/uchar.h: Likewise.
22128         * wcsmbs/wchar.h: Likewise.
22129         * wctype/wctype.h: Likewise.
22130
22131         [BZ #13551]
22132         * Makeconfig: Remove all but ELF support including AIX support.
22133         * Makerules: Likewise.
22134         * config.h.in: Likewise.
22135         * config.make.in: Likewise.
22136         * configure: Likewise.
22137         * configure.in: Likewise.
22138         * csu/Makefile: Likewise.
22139         * csu/version.c: Likewise.
22140         * debug/Makefile: Likewise.
22141         * dlfcn/Makefile: Likewise.
22142         * elf/Makefile: Likewise.
22143         * extra-lib.mk: Likewise.
22144         * iconv/Makefile: Likewise.
22145         * include/libc-symbols.h: Likewise.
22146         * include/shlib-compat.h: Likewise.
22147         * resolv/Makefile: Likewise.
22148         * resolv/res_libc.c: Likewise.
22149         * rt/Makefile: Likewise.
22150         * sysdeps/i386/asm-syntax.h: Likewise.
22151         * sysdeps/i386/sysdep.h: Likewise.
22152         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22153         * sysdeps/mach/sysdep.h: Likewise.
22154         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22155         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22156         * sysdeps/s390/asm-syntax.h: Likewise.
22157         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22158         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22159         * sysdeps/sh/sysdep.h: Likewise.
22160         * sysdeps/unix/sparc/sysdep.h: Likewise.
22161         * sysdeps/wordsize-32/divdi3.c: Likewise.
22162         * sysdeps/x86_64/sysdep.h: Likewise.
22163
22164         * argp/Versions: Remove _argp_unlock_xxx.
22165
22166         [BZ #13559]
22167         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22168         * abilist/libBrokenLocale.abilist: Likewise.
22169         * abilist/libanl.abilist: Likewise.
22170         * abilist/libc.abilist: Likewise.
22171         * abilist/libcrypt.abilist: Likewise.
22172         * abilist/libdl.abilist: Likewise.
22173         * abilist/libm.abilist: Likewise.
22174         * abilist/libnsl.abilist: Likewise.
22175         * abilist/libpthread.abilist: Likewise.
22176         * abilist/libresolv.abilist: Likewise.
22177         * abilist/librt.abilist: Likewise.
22178         * abilist/libthread_db.abilist: Likewise.
22179         * abilist/libutil.abilist: Likewise.
22180         * abilist/libnss_db.abilist: New file.
22181
22182         * scripts/abilist.awk: Add support for indirect functions.
22183
22184         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22185
22186         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22187
22188         * shlib-versions: Remove entries for ports architectures.
22189
22190         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22191         files in ports.
22192         * elf/stackguard-macros.h: Remove support for IA-64.
22193         * elf/tst-auditmod1.c: Likewise.
22194         * sysdeps/generic/ldsodefs.h: Likewise.
22195
22196         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22197         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22198         configure files.
22199
22200         [BZ #13552]
22201         * configure.in: Remove --enable-omitfp support.
22202         * FAQ.in: Adjust.
22203         * config.make.in: Likewise.
22204         * Makeconfig: Likewise.
22205         * manual/install.texi: Likewise.
22206
22207         In case anyone cares, the IA-64 architecture could move to ports.
22208         * sysdeps/ia64/*: Removed.
22209         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22210         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22211
22212         [BZ #13555]
22213         * configure.in: Remove entries for unsupported architectures.
22214
22215         [BZ #13533]
22216         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22217         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22218         routines.
22219         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22220         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22221         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22222         fall back to using wcrtomb.
22223         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22224         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22225         renaming.
22226         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22227         * wcsmbs/tst-c16c32-1.c: New file.
22228
22229         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22230         local variable.
22231
22232         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22233
22234         * elf/tst-unique3.cc: Add explicit declaration of gets.
22235         * elf/tst-unique3lib.cc: Likewise.
22236         * elf/tst-unique3lib2.cc: Likewise.
22237         * elf/tst-unique4.cc: Likewise.
22238
22239         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22240
22241 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22242
22243         [BZ #13566]
22244         * assert/assert.h (static_assert): Don't define for C++.
22245         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22246         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22247
22248 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22249
22250         * iconv/loop.c (single loop): Fix assertion in storing of
22251         remaining bytes.
22252
22253         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22254
22255 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22256
22257         * posix/getconf.c: Update copyright year.
22258         * nss/getent.c: Likewise.
22259         * nss/makedb.c: Likewise.
22260         * iconv/iconvconfig.c: Likewise.
22261         * iconv/iconv_prog.c: Likewise.
22262         * elf/ldconfig.c: Likewise.
22263         * elf/pldd.c: Likewise.
22264         * elf/sotruss.ksh: Likewise.
22265         * catgets/gencat.c: Likewise.
22266         * csu/version.c: Likewise.
22267         * elf/ldd.bash.in: Likewise.
22268         * elf/sprof.c (print_version): Likewise.
22269         * locale/programs/locale.c: Likewise.
22270         * locale/programs/localedef.c: Likewise.
22271         * login/programs/pt_chown.c: Likewise.
22272         * nscd/nscd.c (print_version): Likewise.
22273         * debug/xtrace.sh: Likewise.
22274         * malloc/memusage.sh: Likewise.
22275         * malloc/mtrace.pl: Likewise.
22276         * debug/catchsegv.sh: Likewise.
22277
22278 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22279
22280         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22281         pure attribute.
22282
22283 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22284
22285         [BZ #13533]
22286         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22287         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22288         transformations.
22289         * iconv/gconv_int.h: Likewise.
22290         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22291         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22292         from libc for GLIBC_2.16.
22293         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22294         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22295         * wcsmbs/uchar.h: Really define mbstate_t.
22296         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22297         * wcsmbs/c16rtomb.c: New file.
22298         * wcsmbs/mbrtoc16.c: New file.
22299         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22300         for C/POSIX locale.
22301         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22302         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22303
22304         * wcsmbs/wchar.h: Add missing __restrict.
22305
22306 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22307
22308         [BZ #13532]
22309         * time/Makefile (routines): Add timespec_get.
22310         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22311         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22312         timespec for ISO C11.
22313         * time/timespec_get.c: New file.
22314         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22315         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22316
22317         [BZ #13531]
22318         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22319         * stdlib/stdlib.h: Declare aligned_alloc.
22320         * Versions.def: Add GLIBC_2.16 for libc.
22321         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22322
22323         [BZ 13527]
22324         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22325         ISO C11.
22326
22327         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22328         code.
22329
22330         [BZ #13528]
22331         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22332
22333         [BZ #13529]
22334         * assert/assert.h (static_assert): Define.
22335
22336         * version.h: Update for 2.16 development version.
22337
22338         [BZ #13526]
22339         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22340         _ISOC11_SOURCE.
22341
22342         * version.h (RELEASE): Bump for 2.15 release.
22343         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22344
22345         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22346         Patch by Marek Polacek <mpolacek@redhat.com>.
22347
22348         * bits/byteswap.h: Protect long long constants with __extension__.
22349         * sysdeps/i386/bits/byteswap.h: Likewise.
22350         * sysdeps/ia64/bits/byteswap.h: Likewise.
22351         * sysdeps/s390/bits/byteswap.h: Likewise.
22352         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22353
22354 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22355
22356         [BZ #13540]
22357         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22358         destination buffer.
22359         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22360
22361 2011-12-23  Marek Polacek  <polacek@redhat.com>
22362
22363         * elf/dl-addr.c (determine_info): Add inline keyword.
22364         * elf/tst-auditmod4b.c (check_avx): Likewise.
22365         * elf/tst-auditmod6b.c (check_avx): Likewise.
22366         * elf/tst-auditmod6c.c (check_avx): Likewise.
22367         * elf/tst-auditmod7b.c (check_avx): Likewise.
22368
22369 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22370
22371         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22372         !__SSE_MATH__.
22373
22374 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22375
22376         [BZ #13540]
22377         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22378         processing for last bytes.
22379
22380 2011-08-06  Bruno Haible  <bruno@clisp.org>
22381
22382         [BZ #13061]
22383         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22384         U+0385, not to U+1FEE.
22385
22386         [BZ #13062]
22387         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22388         entry for U+00A5 U+0301.
22389
22390 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22391
22392         [BZ #13166]
22393         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22394         buffer for the output is too small.
22395
22396         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22397         optimization.
22398
22399         [BZ #13185]
22400         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22401         SSE flags if possible.
22402
22403 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22404
22405         [BZ #13540]
22406         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22407         processing for last bytes.
22408
22409 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22410
22411         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22412         (syscall-list-default-options, syscall-list-default-condition)
22413         (syscall-list-includes): Define.
22414         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22415         list of ABIs and options and #if conditions for each ABI.  Do not
22416         handle common syscalls between ABIs specially.
22417         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22418         Remove.
22419         (syscall-list-variants, syscall-list-32bit-options)
22420         (syscall-list-32bit-condition, syscall-list-64bit-options)
22421         (syscall-list-64bit-condition): Define.
22422         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22423         (syscall-list-variants, syscall-list-32bit-options)
22424         (syscall-list-32bit-condition, syscall-list-64bit-options)
22425         (syscall-list-64bit-condition): Define.
22426         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22427         Remove.
22428         (syscall-list-variants, syscall-list-32bit-options)
22429         (syscall-list-32bit-condition, syscall-list-64bit-options)
22430         (syscall-list-64bit-condition): Define.
22431         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22432         Remove.
22433         (syscall-list-variants, syscall-list-32bit-options)
22434         (syscall-list-32bit-condition, syscall-list-64bit-options)
22435         (syscall-list-64bit-condition): Define.
22436
22437 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22438
22439         * locale/iso-639.def: Add brx entry.
22440
22441         [BZ #13328]
22442         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22443         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22444
22445         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22446         __feraiseexcept_renamed.
22447
22448 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22449
22450         [BZ #13538]
22451         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22452         EPOLLET with unsigned values.
22453         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22454         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22455
22456         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22457         to large cancellation.
22458         * math/s_cacoshf.c: Likewise.
22459         * math/s_cacoshl.c: Likewise.
22460
22461 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22462
22463         [BZ #13305]
22464         [BZ #12786]
22465         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22466         * math/s_cacoshf.c: Likewise.
22467         * math/s_cacoshl.c: Likewise.
22468
22469 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22470
22471         [BZ #13439]
22472         * iconv/gconv.h: Define __GCONV_SWAP.
22473         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22474         * iconvdata/utf-16.c: Likewise.
22475         * iconvdata/utf-32.c: Likewise.
22476
22477 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22478
22479         [BZ #13524]
22480         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22481         numerator after shifting it by one limb.
22482
22483 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22484
22485         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22486         under [__USE_EXTERN_INLINES].
22487
22488 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22489
22490         [BZ #13446]
22491         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22492
22493 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22494
22495         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22496         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22497         optimized code.
22498         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22499         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22500         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22501         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22502         for strncasecmp/strncasecmp_l compilation.
22503         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22504         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22505
22506 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22507
22508         [BZ #13484]
22509         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22510         of __asm__.
22511
22512 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22513
22514         [BZ #13506]
22515         * time/tzfile.c (__tzfile_read): Check values from file header.
22516
22517 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22518
22519         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22520         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22521         * powerpc/powerpc32/dl-start.S: Likewise.
22522         * powerpc/powerpc32/elf/start.S: Likewise.
22523         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22524         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22525         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22526         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22527         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22528         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22529         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22530         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22531         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22532         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22533         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22534         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22535         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22536         * powerpc/powerpc32/memset.S: Likewise.
22537         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22538         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22539         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22540         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22541         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22542         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22543         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22544         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22545         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22546         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22547         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22548         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22549         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22550
22551 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22552
22553         * math/libm-test.inc: Added more nearbyint tests.
22554         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22555         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22556         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22557         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22558
22559 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22560
22561         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22562         FD_CLOEXEC.
22563
22564 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22565
22566         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22567         Add wcscpy-ssse3 wcscpy-c.
22568         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22569         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22570         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22571         * sysdeps/x86_64/wcschr.S: New file.
22572         * sysdeps/x86_64/wcsrchr.S: New file.
22573         * string/test-strcmp.c: Remove checking of wcscmp function for
22574         wrong alignments.
22575         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22576         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22577         wcsrchr-sse2 wcsrchr-c.
22578         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22579         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22580         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22581         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22582         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22583         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22584         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22585         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22586         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22587         * wcsmbc/wcschr.c (WCSCHR): New macro.
22588
22589 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22590
22591         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22592         * wcsmbs/test-wcsrchr.c: New file.
22593         * string/test-strrchr.c: Add wcsrchr support.
22594         (WIDE): New macro.
22595         * wcsmbs/test-wcscpy.c: New file.
22596         * string/test-strcpy.c: Add wcscpy support.
22597         (WIDE): New macro.
22598
22599 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22600
22601         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22602         the inner loop.
22603
22604 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22605
22606         [BZ #13472]
22607         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22608
22609 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22610
22611         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22612         Minor optimizations.
22613
22614         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22615         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22616         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22617
22618 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22619
22620         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22621         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22622         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22623         for gcc to avoid warnings.
22624         * inet/Makefile (tests): Add tst-checks.
22625         * inet/tst-checks.c: New file.
22626
22627         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22628         warning.
22629
22630         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22631         __wmemcmp_sse2.
22632
22633         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22634         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22635
22636         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22637
22638 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22639
22640         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22641         problem.
22642
22643         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22644
22645 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22646
22647         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22648         conditional on GCC version.
22649         (__arch_compare_and_exchange_val_8_acq)
22650         (__arch_compare_and_exchange_val_16_acq)
22651         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22652         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22653         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22654
22655 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22656
22657         * sysdeps/sh/backtrace.c: New file.
22658
22659 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22660
22661         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22662         parenthesis.
22663
22664 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22665
22666         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22667         falling back to utime.
22668
22669 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22670
22671         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22672         expectations for float.
22673
22674 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22675
22676         * locale/weight.h (findidx): Add parameter len.
22677         * locale/weightwc.h (findidx): Likewise.
22678         * posix/fnmatch_loop.c (FCT): Adjust caller.
22679         * posix/regcomp.c (build_equiv_class): Likewise.
22680         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22681         * posix/regexec.c (check_node_accept_bytes): Likewise.
22682         * string/strcoll_l.c (STRCOLL): Likewise.
22683         * string/strxfrm_l.c (STRXFRM): Likewise.
22684
22685 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22686
22687         * Makefile.in: Remove CVSOPT handling.
22688         * configure.in: Remove use of AC_REVISION.
22689         * iconvdata/Makefile (distribute): No need to filter out CVS.
22690         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22691         handling.
22692
22693 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22694
22695         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22696         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22697         [USE_AS_STRNCASECMP_L]: Likewise.
22698         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22699         NO_TLS_DIRECT_SEG_REFS.
22700         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22701         Fix argument offsets for non-PIC.
22702         [USE_AS_STRNCASECMP_L]: Likewise.
22703         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22704         NO_TLS_DIRECT_SEG_REFS.
22705
22706 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22707
22708         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22709         O_CLOEXEC.
22710         * locale/loadlocale.c (_nl_load_locale): Likewise.
22711
22712 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22713
22714         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22715         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22716         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22717         (SYSCALL_GETTIME): Set errno on error.
22718
22719         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22720         count references to noai6ai_cached.
22721
22722 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22723
22724         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22725
22726         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22727         FD_CLOEXEC for /proc/self/maps.
22728
22729         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22730         FD_CLOEXEC for /proc/meminfo.
22731
22732         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22733         gai.conf.
22734
22735         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22736         FD_CLOEXEC for given file.
22737
22738         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22739
22740         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22741         FD_CLOEXEC for /etc/hosts.
22742         (_gethtent): Likewise.
22743
22744         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22745
22746         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22747         cancellation and set FD_CLOEXEC for /etc/netgroup.
22748
22749         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22750         reading /etc/publickey.
22751
22752         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22753         allow cancellation when reading /etc/group.
22754
22755         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22756         cancellation.
22757         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22758
22759         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22760         when using data file.
22761
22762         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22763
22764         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22765         (write_nis_obj): Use "c" and "e" in fopen.
22766
22767         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22768
22769         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22770
22771         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22772
22773         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22774
22775         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22776         locale.alias.
22777
22778         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22779
22780         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22781
22782         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22783
22784         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22785         file parsing and set FD_CLOEXEC.
22786
22787 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22788
22789         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22790
22791 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22792
22793         * malloc/arena.c (arena_get2): Don't call reused_arena when
22794         _int_new_arena failed.
22795
22796 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22797
22798         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22799         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22800         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22801         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22802         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22803         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22804         to compile strcasecmp and strncasecmp.
22805         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22806         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22807
22808         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22809
22810 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22811
22812         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22813         locale-defines.sym to gen-as-const-headers.
22814         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22815         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22817         to compile strcasecmp and strncasecmp.
22818         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22819         strcasecmp_l and strncasecmp_l.
22820         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22821         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22822         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22823         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22824         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22825         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22826         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22827         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22828         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22829         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22830         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22831
22832 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22833
22834         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22835         result of SYSDEP_GETTIME_CPU to retval.
22836         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22837         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22838
22839         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22840         variable.
22841
22842         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22843         mantissa words.
22844         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22845
22846         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22847         from unused variable.
22848
22849         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22850         DWARF definitions.
22851         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22852         for assembling.
22853
22854         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22855         over namespaces.
22856
22857         * sunrpc/rpc_prot.c (rejected): Fix case value.
22858
22859         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22860         unsigned long long int to avoid warnings in shift.
22861
22862         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22863         of use of trans.
22864         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22865         variable tmp.
22866
22867         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22868         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22869         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22870
22871         * nis/nis_table.c (nis_list): Use variable of correct type for
22872         result of __follow_path call.
22873
22874 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22875
22876         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22877         of math functions ceil, trunc, floor, round, and sqrt, when
22878         avaliable on the platform.
22879         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22880         name clash.
22881         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22882         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22883         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22884
22885 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22886
22887         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22888         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22889
22890 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22891
22892         * include/unistd.h: Fix __readlink return type.
22893         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22894
22895 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22896
22897         * stdlib/ucontext.h: Undo last change for makecontext.
22898
22899 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22900
22901         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22902
22903         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22904         * setjmp/setjmp.h: Mark functions as non-leaf.
22905         * setjmp/bits/setjmp2.h: Likewise.
22906         * stdlib/ucontext.h: Likewise.
22907
22908 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22909
22910         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22911         (reused_arena): Don't check arena limit.
22912         (arena_get2): Atomically check arena limit.
22913
22914 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22915
22916         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22917         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22918
22919         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22920         instructions.
22921
22922 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22923
22924         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22925         handler when locking.
22926
22927         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22928         Fix size of allocated buffer.
22929
22930 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22931
22932         [BZ #10103]
22933         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22934         declarations for long double functions.
22935         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22936
22937         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22938
22939 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22940
22941         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22942         installed.
22943
22944         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22945         is disabled.
22946
22947 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22948
22949         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22950
22951 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22952
22953         * include/alloca.h (stackinfo_alloca_round): Define.
22954         (extend_alloca): Use it.
22955         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22956         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22957         here.
22958
22959         * scripts/check-local-headers.sh: Ignore libaudit.h.
22960
22961         * nscd/Makefile (extra-objs): Make recursively expanded.
22962
22963 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22964
22965         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22966         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22967
22968         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22969         * posix/tst-rfc3484-2.c: Likewise.
22970         * posix/tst-rfc3484-3.c: Likewise.
22971
22972         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22973         process_vm_writev.
22974         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22975         process_vm_writev.
22976         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22977         process_vm_writev from libc using GLIBC_2.15 version.
22978
22979         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22980
22981 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22982
22983         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22984         stack usage.
22985
22986 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22987
22988         [BZ #13367]
22989         * nss/getent.c (initgroups_keys): Show error message in case no group
22990         names are given.
22991
22992         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22993         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22994         __bump_nl_timestamp.
22995         * nscd/connections (nscd_init): When host database is served open
22996         netlink socket and request notification about configuration changes.
22997         (main_loop_poll): Track netlink file descriptor and bump timestamp
22998         in case data becomes available.
22999         (main_loop_epoll): Likewise.
23000         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23001         (database_pers_head): Add extra_data fileds.
23002         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23003         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23004         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23005         Adjust caller.
23006         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23007         in6ai data, call __free_in6ai.
23008         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23009         Add -DHAVE_NETLINK.
23010         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23011         interface information.  Reuse previous data if netlink timestamp
23012         is not changed.
23013         (__bump_nl_timestamp): New function.
23014         (__free_in6ai): New function.
23015
23016 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23017
23018         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23019         close_not_cancel_no_status here.
23020         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23021
23022 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23023
23024         [BZ #13276]
23025         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23026         return value.
23027
23028         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23029         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23030         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23031
23032 2011-07-03  Andreas Jaeger  <aj@suse.de>
23033
23034         [BZ #10709]
23035         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23036         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23037         * math/libm-test.inc (sin_test): Add test case.
23038
23039 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23040
23041         [BZ #13337]
23042         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23043         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23044
23045         * elf/chroot_canon.c (chroot_canon): Cleanups.
23046
23047         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23048
23049         [BZ #13335]
23050         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23051         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23052
23053         * string/test-strchr.c: Make usable for strchrnul testing.
23054         * string/test-strchrnul.c: New file.
23055         * string/Makefile (strop-tests): Add strchrnul.
23056
23057         * po/it.po: Update from translation team.
23058         * po/es.po: Likewise.
23059
23060 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23061
23062         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23063         the three constants needed as parameters.  Drop the others.
23064         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23065         __m128i_strloadu_tolower.
23066         Create and initialize variable zero and use it in all the places
23067         where _mm_setzero_si128 was used.
23068
23069         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23070         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23071         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23072         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23073         anymore.
23074         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23075         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23076         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23077         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23078         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23079         __mpranred, __mptan.
23080         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23081         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23082         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23083         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23084         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23085         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23086         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23087         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23088         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23089
23090 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23091
23092         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23093         redefine if SHARED.
23094         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23095
23096         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23097         wide char related routines to wcsmbs subdir.
23098
23099 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23100
23101         [BZ #13344]
23102         * misc/sys/cdefs.h (__THROWNL): Define.
23103         * posix/unistd.h: Use __THREADNL instead of __THREAD
23104         for memory synchronization functions.
23105
23106 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23107
23108         [BZ #13349]
23109         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23110         doesn't exist.
23111         * manual/stdio.texi (Obstack Streams): Node removed.
23112
23113 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23114
23115         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23116         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23117         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23118
23119         * math/math_private.h (math_force_eval): Allow non-addressable
23120         arguments.
23121         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23122
23123 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23124
23125         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23126         file is not needed.
23127
23128         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23129         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23130         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23131         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23132         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23133         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23134         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23135         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23136         Add AVX variants.
23137         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23138         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23139         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23140         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23141         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23142         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23143         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23144         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23145         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23146         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23147         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23148         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23149         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23150         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23151         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23152         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23153         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23154         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23155         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23156
23157         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23158         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23159
23160         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23161         place.  Use VEX encoding when compiling for AVX.
23162
23163 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23164
23165         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23166         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23167
23168         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23169
23170 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23171
23172         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23173         useless if() expression.
23174         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23175         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23176         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23177         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23178         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23179         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23180         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23181         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23182         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23183         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23184         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23185         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23186         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23187         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23188         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23189         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23190         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23191         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23192         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23193
23194         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23195
23196 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23197
23198         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23199         condition.
23200         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23201
23202 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23203
23204         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23205         .text section.  Avoid duplicate constants.
23206         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23207         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23208         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23209         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23210         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23211         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23212         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23213         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23214         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23215         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23216         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23217         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23218         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23219         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23220         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23221         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23222         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23223         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23224         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23225         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23226         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23227         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23228         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23229         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23230         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23231         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23232         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23233         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23234         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23235         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23236         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23237         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23238         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23239         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23240         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23241         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23242         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23243         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23244         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23245         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23246         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23247         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23248         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23249         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23250         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23251
23252 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23253
23254         * sysdeps/x86_64/dla.h: Move to ...
23255         * sysdeps/x86_64/fpu/dla.h: ...here.
23256         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23257         situations.  Use __builtin_fma only for gcc 4.6 and up.
23258
23259         * config.make.in: Add have-mfma4 entry.
23260         * configure.in: Substitute libc_cv_cc_fma4.
23261         * math/Makefile (dbl-only-routines): Add sincostab.
23262         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23263         Use __sincostab not sincos.
23264         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23265         name is a macro.
23266         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23267         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23268         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23269         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23270         using __copysign.
23271         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23272         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23273         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23274         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23275         and __inv.
23276         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23277         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23278         __copysign.
23279         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23280         define aliases when function name is a macro.
23281         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23282         sysdeps/ieee754/dbl-64/sincos.tbl.
23283         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23284         fma4-enabled routines.
23285         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23286         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23287         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23288         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23289         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23290         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23291         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23292         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23293         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23294         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23295         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23296         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23297         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23298         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23299         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23300         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23301         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23302         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23303         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23304         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23305         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23306         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23307         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23308         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23309         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23310         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23311         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23312         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23313         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23314         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23315
23316         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23317         rename.
23318         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23319         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23320         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23321         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23322         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23323         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23324         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23325         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23326
23327 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23328
23329         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23330
23331 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23332
23333         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23334
23335         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23336         prediction.
23337         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23338
23339         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23340         Remove unused variable magic_bits.
23341         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23342
23343         * string/strnlen.c: Define and use STRNLEN macro.
23344         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23345         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23346         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23347         * wcsmbs/wcslen.c: Define and use WCSLEN.
23348         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23349         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23350         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23351         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23352         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23353         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23354         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23355
23356 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23357
23358         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23359         strnlen-sse2-no-bsf.
23360         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23361         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23362         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23363         Add strnlen support.
23364         (USE_AS_STRNLEN): New macro.
23365         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23366         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23367         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23368         * sysdeps/x86_64/wcslen.S: New file.
23369
23370 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23371
23372         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23373         XMM-moves are used for copying on small sizes.
23374
23375 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23376
23377         * wcsmbs/Makefile (strop-tests): Add wcschr.
23378         * wcsmbs/test-wcschr.c: New file.
23379         * string/test-strchr.c: Update.
23380         Add wcschr support.
23381         (WIDE): New macro.
23382
23383 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23384
23385         * wcsmbs/Makefile (strop-tests): Add wcslen.
23386         * wcsmbs/test-wcslen.c: New file.
23387         * string/test-strlen.c: Update.
23388         Add wcslen support.
23389         (WIDE): New macro.
23390
23391 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23392
23393         * po/it.po: Update from translation team.
23394
23395 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23396
23397         * sysdeps/x86_64/wcscmp.S: Update.
23398         Fix wrong comparison semantics.
23399         wcscmp shall use signed comparison not unsigned.
23400         Don't use substraction to avoid overflow bug.
23401         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23402         * wcsmbc/wcscmp.c: Likewise.
23403         * string/test-strcmp.c: Likewise.
23404         Add new tests to check cases with negative values.
23405
23406 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23407
23408         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23409         * sysdeps/x86_64/dla.h: ...here.  New file.
23410         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23411         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23412         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23413         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23414         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23415         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23416         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23417         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23418         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23419
23420 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23421
23422         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23423         __ynl_finite aliases.
23424
23425 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23426
23427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23428
23429         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23430         define DLA_FMA.
23431         [DLA_FMA] (EMULV): Use DLA_FMA.
23432         [DLA_FMA] (MUL12): Use EMULV.
23433         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23434         that are not needed.
23435         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23436         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23437         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23438         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23439         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23440         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23441         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23442
23443 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23444
23445         * math/s_nan.c: Undef __nan.
23446         * math/s_nanf.c: Undef __nanf.
23447         * math/s_nanl.c: Undef __nanl.
23448         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23449         "math_private.h".
23450
23451 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23452
23453         * math/s_catan.c: Add branch predictions.
23454         * math/s_catanf.c: Likewise.
23455         * math/s_catanh.c: Likewise.
23456         * math/s_catanhf.c: Likewise.
23457         * math/s_catanhl.c: Likewise.
23458         * math/s_catanl.c: Likewise.
23459         * math/s_cexp.c: Likewise.
23460         * math/s_cexpf.c: Likewise.
23461         * math/s_cexpl.c: Likewise.
23462         * math/s_clog.c: Likewise.
23463         * math/s_clog10.c: Likewise.
23464         * math/s_clog10f.c: Likewise.
23465         * math/s_clog10l.c: Likewise.
23466         * math/s_clogf.c: Likewise.
23467         * math/s_clogl.c: Likewise.
23468         * math/s_csqrt.c: Likewise.
23469         * math/s_csqrtf.c: Likewise.
23470         * math/s_csqrtl.c: Likewise.
23471         * math/s_ctanf.c: Likewise.
23472         * math/s_ctanh.c: Likewise.
23473         * math/s_ctanhf.c: Likewise.
23474         * math/s_ctanhl.c: Likewise.
23475         * math/s_ctanl.c: Likewise.
23476
23477         * math/math_private.h: Define __nan, __nanf, __nanl.
23478         * math/s_cacosh.c: Include <math_private.h>.
23479         * math/s_cacoshl.c: Likewise.
23480         * math/s_casinh.c: Likewise.
23481         * math/s_casinhf.c: Likewise.
23482         * math/s_casinhl.c: Likewise.
23483         * math/s_ccos.c: Rely entire on ccosh.
23484         * math/s_ccosf.c: Rely entire on ccoshf.
23485         * math/s_ccosl.c: Rely entirely on ccoshl.
23486         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23487         Remove tests for FE_INVALID.
23488         * math/s_ccoshf.c: Likewise.
23489         * math/s_ccoshl.c: Likewise.
23490         * math/s_csin.c: Likewise.
23491         * math/s_csinf.c: Likewise.
23492         * math/s_csinh.c Likewise.
23493         * math/s_csinhf.c: Likewise.
23494         * math/s_csinhl.c: Likewise.
23495         * math/s_csinl.c: Likewise.
23496         * math/s_ctan.c: Likewise.
23497         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23498         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23499         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23500
23501 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23502
23503         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23504         compilation problems.
23505
23506         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23507         __builtin_expect.
23508
23509 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23510
23511         * sysdeps/i386/configure.in: Test for -mfma4 option.
23512         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23513         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23514         COMMON_CPUID_INDEX_80000001.
23515         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23516         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23517         use it if FMA3 is not supported.
23518         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23519
23520         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23521         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23522
23523 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23524
23525         [BZ #12892]
23526         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23527         it would create a cycle with a link time dependency.
23528
23529 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23530
23531         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23532         instruction.
23533         * string/Makefile (strop-tests): Add rawmemchr.
23534         * string/test-rawmemchr.c: New file.
23535
23536         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23537         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23538         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23539         when compiling str{,n}casecmp and when AVX is available.  Hook up
23540         new optimized code in initializers.
23541
23542 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23543
23544         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23545         __feraiseexcept instead of feraiseexcept.
23546
23547 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23548
23549         * math/math_private.h: Define defaults for libc_fetestexcept and
23550         libc_feupdateenv.
23551         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23552         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23553         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23554         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23555         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23556         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23557         libc_fetestexcept and libc_feupdateenv.
23558
23559         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23560         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23561         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23562         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23563         libc_feholdexcept_setround.
23564
23565         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23566         Add s_nearbyint-c and s_nearbyintf-c.
23567         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23568         nearbyintf inlines.
23569         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23570         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23571         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23572         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23573
23574         * math/math_private.h: Define defaults for libc_fegetround,
23575         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23576         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23577         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23578         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23579         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23580         standard functions.
23581         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23582         Remove comments and hacks for old compiler versions.
23583         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23584         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23585         libc_feholdexceptl.
23586
23587 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23588
23589         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23590         (__feraiseexcept_renamed): Add __NTH.
23591         (feraiseexcept): Add __NTH.  Rename local variables to fix
23592         namespace violations.
23593
23594 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23595
23596         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23597
23598         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23599
23600         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23601         recently added interfaces.
23602         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23603
23604         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23605         about macro parameter expansion.
23606
23607         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23608         __NO_MATH_INLINES is defined.  Cleanups.
23609
23610         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23611         and __floorf is target has SSE4.1.
23612         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23613         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23614         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23615         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23616
23617         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23618         name.
23619         (floorf): Likewise.
23620
23621         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23622
23623 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23624
23625         * misc/sys/cdefs.h: Fix last change.
23626
23627         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23628         database lookup.
23629
23630 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23631
23632         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23633
23634         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23635         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23636         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23637         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23638         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23639         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23640         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23641         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23642         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23643         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23644         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23645         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23646         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23647         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23648         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23649         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23650         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23651         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23652         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23653         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23654         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23655         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23656
23657         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23658         ceil, ceilf, floor, floorf.
23659
23660         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23661         Perform IRELATIVE relocations last.
23662
23663         * elf/do-rel.h: Add another parameter nrelative, replacing the
23664         local variable with the same name.  Change name of the function
23665         to end in Rel or Rela (uppercase).
23666         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23667         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23668         elf_dynamic_do_##reloc function.
23669
23670 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23671
23672         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23673         is sufficient, at least on modern CPUs.
23674
23675         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23676
23677         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23678         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23679
23680         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23681         __expl_finite.
23682         * math/bits/math-finite.h: Add entries for exp.
23683         * math/e_expl.c: Add __*_finite alias.
23684         * sysdeps/i386/fpu/e_exp.S: Likewise.
23685         * sysdeps/i386/fpu/e_expf.S: Likewise.
23686         * sysdeps/i386/fpu/e_expl.c: Likewise.
23687         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23688         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23689         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23690         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23691         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23692         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23693         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23694
23695         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23696         is sufficient, at least on modern CPUs.
23697
23698         * ctype/ctype-info.c (__ctype_init): Define.
23699         * include/ctype.h (__ctype_init): Declare.
23700         (__ctype_b_loc): The variable is always initialized.
23701         (__ctype_toupper_loc): Likewise.
23702         (__ctype_tolower_loc): Likewise.
23703         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23704         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23705
23706 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23707
23708         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23709
23710         * configure.in: Also look in $cxxmachine/include for C++ system
23711         headers.
23712
23713 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23714
23715         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23716         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23717         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23718         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23719         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23720         (USE_AS_WMEMCMP): New macro.
23721         Fixing indents.
23722         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23723         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23724         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23725         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23726         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23727         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23728         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23729         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23730         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23731         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23732         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23733         (USE_AS_WMEMCMP): New macro.
23734         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23735         * sysdeps/string/test-memcmp.c: Update.
23736         Fix simple_wmemcmp.
23737         Add new tests.
23738         * wcsmbs/wmemcmp.c: Update.
23739         (WMEMCMP): New macro.
23740         Fix overflow bug.
23741
23742 2011-10-12  Andreas Jaeger  <aj@suse.de>
23743
23744         [BZ #13268]
23745         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23746
23747 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23748
23749         * libio/iofwide.c (do_length): Avoid warning.
23750
23751         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23752
23753 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23754
23755         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23756
23757         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23758         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23759         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23760         * sysdeps/i386/i686/fpu/e_log.S: New file.
23761         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23762         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23763
23764         * ctype/ctype.h: Add support for inlined isXXX functions when
23765         compiling C++ code.
23766
23767 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23768
23769         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23770
23771         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23772
23773 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23774
23775         [BZ #13291]
23776         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23777
23778 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23779
23780         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23781         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23782         feraiseexcept.
23783
23784         * sysdeps/x86_64/memrchr.S: Check for zero size.
23785
23786         * string/stratcliff.c: Add memrchr tests.
23787
23788 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23789
23790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23791         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23792         rawmemchr-sse2 rawmemchr-sse2-bsf.
23793         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23794         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23795         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23796         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23797         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23798         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23799         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23800         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23801         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23802         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23803         * string/memrchr.c (MEMRCHR): New macro.
23804
23805 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23806
23807         Add integration with gcc's -ffinite-math-only and optimize wrapper
23808         functions in libm.
23809         * Versions.def: Define GLIBC_2.15 version for libm.
23810         * math/Makefile (headers): Add bits/math-finite.h.
23811         * math/bits/math-finite.h: New file.
23812         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23813         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23814         * math/e_acoshl.c: Add __*_finite alias.
23815         * math/e_acosl.c: Likewise.
23816         * math/e_asinl.c: Likewise.
23817         * math/e_atan2l.c: Likewise.
23818         * math/e_atanhl.c: Likewise.
23819         * math/e_coshl.c: Likewise.
23820         * math/e_exp10.c: Likewise.
23821         * math/e_exp10f.c: Likewise.
23822         * math/e_exp10l.c: Likewise.
23823         * math/e_exp2l.c: Likewise.
23824         * math/e_fmodl.c: Likewise.
23825         * math/e_gammal_r.c: Likewise.
23826         * math/e_hypotl.c: Likewise.
23827         * math/e_j0l.c: Likewise.
23828         * math/e_j1l.c: Likewise.
23829         * math/e_jnl.c: Likewise.
23830         * math/e_lgammal_r.c: Likewise.
23831         * math/e_log10l.c: Likewise.
23832         * math/e_log2l.c: Likewise.
23833         * math/e_logl.c: Likewise.
23834         * math/e_powl.c: Likewise.
23835         * math/e_sinhl.c: Likewise.
23836         * math/e_sqrtl.c: Likewise.
23837         * math/e_scalb.c: Completely rewritten and optimized.
23838         * math/e_scalbf.c: Likewise.
23839         * math/e_scalbl.c: Likewise.
23840         * math/w_acos.c: Likewise.
23841         * math/w_acosf.c: Likewise.
23842         * math/w_acosl.c: Likewise.
23843         * math/w_acosh.c: Likewise.
23844         * math/w_acoshf.c: Likewise.
23845         * math/w_acoshl.c: Likewise.
23846         * math/w_asin.c: Likewise.
23847         * math/w_asinf.c: Likewise.
23848         * math/w_asinl.c: Likewise.
23849         * math/w_atan2.c: Likewise.
23850         * math/w_atan2f.c: Likewise.
23851         * math/w_atan2l.c: Likewise.
23852         * math/w_atanh.c: Likewise.
23853         * math/w_atanhf.c: Likewise.
23854         * math/w_atanhl.c: Likewise.
23855         * math/w_exp10.c: Likewise.
23856         * math/w_exp10f.c: Likewise.
23857         * math/w_exp10l.c: Likewise.
23858         * math/w_fmod.c: Likewise.
23859         * math/w_fmodf.c: Likewise.
23860         * math/w_fmodl.c: Likewise.
23861         * math/w_j0.c: Likewise.
23862         * math/w_j0f.c: Likewise.
23863         * math/w_j0l.c: Likewise.
23864         * math/w_j1.c: Likewise.
23865         * math/w_j1f.c: Likewise.
23866         * math/w_j1l.c: Likewise.
23867         * math/w_jn.c: Likewise.
23868         * math/w_jnf.c: Likewise.
23869         * math/w_log.c: Likewise.
23870         * math/w_logf.c: Likewise.
23871         * math/w_logl.c: Likewise.
23872         * math/w_log10.c: Likewise.
23873         * math/w_log10f.c: Likewise.
23874         * math/w_log10l.c: Likewise.
23875         * math/w_log2.c: Likewise.
23876         * math/w_log2f.c: Likewise.
23877         * math/w_log2l.c: Likewise.
23878         * math/w_pow.c: Likewise.
23879         * math/w_powf.c: Likewise.
23880         * math/w_powl.c: Likewise.
23881         * math/w_remainder.c: Likewise.
23882         * math/w_remainderf.c: Likewise.
23883         * math/w_remainderl.c: Likewise.
23884         * math/w_scalb.c: Likewise.
23885         * math/w_scalbf.c: Likewise.
23886         * math/w_scalbl.c: Likewise.
23887         * math/w_sqrt.c: Likewise.
23888         * math/w_sqrtf.c: Likewise.
23889         * math/w_sqrtl.c: Likewise.
23890         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23891         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23892         used.
23893         * math/math_private.h: Declare __kernel_standard_f.
23894         * math/w_cosh.c: Remove cruft and optimize a bit.
23895         * math/w_coshf.c: Likewise.
23896         * math/w_coshl.c: Likewise.
23897         * math/w_exp2.c: Likewise.
23898         * math/w_exp2f.c: Likewise.
23899         * math/w_exp2l.c: Likewise.
23900         * math/w_hypot.c: Likewise.
23901         * math/w_hypotf.c: Likewise.
23902         * math/w_hypotl.c: Likewise.
23903         * math/w_lgamma.c: Likewise.
23904         * math/w_lgamma_r.c: Likewise.
23905         * math/w_lgammaf.c: Likewise.
23906         * math/w_lgammaf_r.c: Likewise.
23907         * math/w_lgammal.c: Likewise.
23908         * math/w_lgammal_r.c: Likewise.
23909         * math/w_sinh.c: Likewise.
23910         * math/w_sinhf.c: Likewise.
23911         * math/w_sinhl.c: Likewise.
23912         * math/w_tgamma.c: Likewise.
23913         * math/w_tgammaf.c: Likewise.
23914         * math/w_tgammal.c: Likewise.
23915         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23916         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23917         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23918         Minor optimizations.  Pretty printing.  Remove cruft.
23919         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23920         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23921         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23922         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23923         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23924         * sysdeps/i386/fpu/e_asin.S: Likewise.
23925         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23926         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23927         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23928         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23929         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23930         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23931         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23932         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23933         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23934         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23935         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23936         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23937         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23938         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23939         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23940         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23941         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23942         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23943         * sysdeps/i386/fpu/e_log.S: Likewise.
23944         * sysdeps/i386/fpu/e_log10.S: Likewise.
23945         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23946         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23947         * sysdeps/i386/fpu/e_log2.S: Likewise.
23948         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23949         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23950         * sysdeps/i386/fpu/e_logf.S: Likewise.
23951         * sysdeps/i386/fpu/e_logl.S: Likewise.
23952         * sysdeps/i386/fpu/e_pow.S: Likewise.
23953         * sysdeps/i386/fpu/e_powf.S: Likewise.
23954         * sysdeps/i386/fpu/e_powl.S: Likewise.
23955         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23956         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23957         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23958         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23959         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23960         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23961         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23962         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23963         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23964         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23965         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23966         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23967         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23968         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23969         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23970         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23971         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23972         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23973         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23974         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23975         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23976         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23977         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23978         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23979         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23980         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23981         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23982         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23983         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23984         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23985         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23986         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23987         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23988         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23989         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23990         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23991         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23992         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23993         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23994         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23995         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23996         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23997         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23998         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23999         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24000         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24001         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24002         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24003         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24004         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24005         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24006         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24007         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24008         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24009         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24010         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24011         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24012         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24013         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24014         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24015         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24016         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24017         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24018         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24019         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24020         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24021         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24022         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24023         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24024         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24025         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24026         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24027         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24028         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24029         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24030         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24031         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24032         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24033         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24034         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24035         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24036         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24037         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24038         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24039         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24040         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24041         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24042         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24043         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24044         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24045         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24046         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24047         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24048         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24049         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24050         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24051         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24052         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24053         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24054         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24055         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24056         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24057         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24058         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24059         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24060         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24061         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24062         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24063         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24064         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24065         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24066         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24067         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24068         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24069         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24070         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24071         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24072         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24073         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24074         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24075         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24076         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24077         (__isnanf): Likewise.
24078         (__isinf_ns): Likewise.
24079         (__isinf_nsf): Likewise.
24080         (__finite): Likewise.
24081         (__finitef): Likewise.
24082         (__ieee754_sqrt): Define as macro.
24083         (__ieee754_sqrtf): Define as macro.
24084         (__ieee754_sqrtl): Define as macro.
24085         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24086         inlined copy.
24087         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24088         __FINITE_MATH_ONLY__ consistent.
24089         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24090
24091 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24092
24093         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24094         of rawmemchr.
24095
24096         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24097
24098 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24099
24100         * po/ja.po: Update from translation team.
24101
24102 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24103
24104         * locale/programs/locarchive.c (prepare_address_space): New function.
24105         (create_archive, enlarge_archive, open_archive): Use it.
24106
24107         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24108         inside [SHARED], where it is used.
24109
24110         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24111
24112         * nss/getent.c (netgroup_keys): Remove unused variable.
24113         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24114
24115 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24116
24117         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24118         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24119         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24120         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24121         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24122         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24123         * math/Makefile (libm-calls): Add s_isinf_ns.
24124         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24125         * math/multc3.c: Likewise.
24126         * math/s_casin.c: Likewise.
24127         * math/s_casinf.c: Likewise.
24128         * math/s_casinl.c: Likewise.
24129         * math/s_ccos.c: Likewise.
24130         * math/s_ccosf.c: Likewise.
24131         * math/s_ccosl.c: Likewise.
24132         * math/s_ctan.c: Likewise.
24133         * math/s_ctanf.c: Likewise.
24134         * math/s_ctanh.c: Likewise.
24135         * math/s_ctanhf.c: Likewise.
24136         * math/s_ctanhl.c: Likewise.
24137         * math/s_ctanl.c: Likewise.
24138         * math/w_fmod.c: Likewise.
24139         * math/w_fmodf.c: Likewise.
24140         * math/w_fmodl.c: Likewise.
24141         * math/w_remainder.c: Likewise.
24142         * math/w_remainderf.c: Likewise.
24143         * math/w_remainderl.c: Likewise.
24144         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24145         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24146         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24147         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24148         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24149         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24150         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24151         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24152
24153         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24154         of the number.
24155         * stdio-common/printf_fphex.c: Likewise.
24156         * stdio-common/printf_size.c: Likewise.
24157
24158         * math/e_exp10.c: Include math_private.h using <...> not "...".
24159         * math/e_exp10f.c: Likewise.
24160         * math/e_exp10l.c: Likewise.
24161         * math/e_exp2l.c: Likewise.
24162         * math/e_j0l.c: Likewise.
24163         * math/e_j1l.c: Likewise.
24164         * math/e_jnl.c: Likewise.
24165         * math/e_lgammal_r.c: Likewise.
24166         * math/e_rem_pio2l.c: Likewise.
24167         * math/e_scalb.c: Likewise.
24168         * math/e_scalbf.c: Likewise.
24169         * math/e_scalbl.c: Likewise.
24170         * math/k_cosl.c: Likewise.
24171         * math/k_sinl.c: Likewise.
24172         * math/k_tanl.c: Likewise.
24173         * math/s_cacoshf.c: Likewise.
24174         * math/s_catan.c: Likewise.
24175         * math/s_catanf.c: Likewise.
24176         * math/s_catanh.c: Likewise.
24177         * math/s_catanhf.c: Likewise.
24178         * math/s_catanhl.c: Likewise.
24179         * math/s_catanl.c: Likewise.
24180         * math/s_ccosh.c: Likewise.
24181         * math/s_ccoshf.c: Likewise.
24182         * math/s_ccoshl.c: Likewise.
24183         * math/s_cexp.c: Likewise.
24184         * math/s_cexpf.c: Likewise.
24185         * math/s_cexpl.c: Likewise.
24186         * math/s_clog.c: Likewise.
24187         * math/s_clog10.c: Likewise.
24188         * math/s_clog10f.c: Likewise.
24189         * math/s_clog10l.c: Likewise.
24190         * math/s_clogf.c: Likewise.
24191         * math/s_clogl.c: Likewise.
24192         * math/s_csin.c: Likewise.
24193         * math/s_csinf.c: Likewise.
24194         * math/s_csinh.c: Likewise.
24195         * math/s_csinhf.c: Likewise.
24196         * math/s_csinhl.c: Likewise.
24197         * math/s_csinl.c: Likewise.
24198         * math/s_csqrt.c: Likewise.
24199         * math/s_csqrtf.c: Likewise.
24200         * math/s_csqrtl.c: Likewise.
24201         * math/s_ctan.c: Likewise.
24202         * math/s_ctanf.c: Likewise.
24203         * math/s_ctanh.c: Likewise.
24204         * math/s_ctanhf.c: Likewise.
24205         * math/s_ctanhl.c: Likewise.
24206         * math/s_ctanl.c: Likewise.
24207         * math/s_ldexp.c: Likewise.
24208         * math/s_ldexpf.c: Likewise.
24209         * math/s_ldexpl.c: Likewise.
24210         * math/s_significand.c: Likewise.
24211         * math/s_significandf.c: Likewise.
24212         * math/s_significandl.c: Likewise.
24213         * math/w_acos.c: Likewise.
24214         * math/w_acosf.c: Likewise.
24215         * math/w_acosh.c: Likewise.
24216         * math/w_acoshf.c: Likewise.
24217         * math/w_acoshl.c: Likewise.
24218         * math/w_acosl.c: Likewise.
24219         * math/w_asin.c: Likewise.
24220         * math/w_asinf.c: Likewise.
24221         * math/w_asinl.c: Likewise.
24222         * math/w_atan2.c: Likewise.
24223         * math/w_atan2f.c: Likewise.
24224         * math/w_atan2l.c: Likewise.
24225         * math/w_atanh.c: Likewise.
24226         * math/w_atanhf.c: Likewise.
24227         * math/w_atanhl.c: Likewise.
24228         * math/w_cosh.c: Likewise.
24229         * math/w_coshf.c: Likewise.
24230         * math/w_coshl.c: Likewise.
24231         * math/w_dremf.c: Likewise.
24232         * math/w_exp10.c: Likewise.
24233         * math/w_exp10f.c: Likewise.
24234         * math/w_exp10l.c: Likewise.
24235         * math/w_exp2.c: Likewise.
24236         * math/w_exp2f.c: Likewise.
24237         * math/w_fmod.c: Likewise.
24238         * math/w_fmodf.c: Likewise.
24239         * math/w_fmodl.c: Likewise.
24240         * math/w_hypot.c: Likewise.
24241         * math/w_hypotf.c: Likewise.
24242         * math/w_hypotl.c: Likewise.
24243         * math/w_j0.c: Likewise.
24244         * math/w_j0f.c: Likewise.
24245         * math/w_j0l.c: Likewise.
24246         * math/w_j1.c: Likewise.
24247         * math/w_j1f.c: Likewise.
24248         * math/w_j1l.c: Likewise.
24249         * math/w_jn.c: Likewise.
24250         * math/w_jnf.c: Likewise.
24251         * math/w_jnl.c: Likewise.
24252         * math/w_lgamma.c: Likewise.
24253         * math/w_lgamma_r.c: Likewise.
24254         * math/w_lgammaf.c: Likewise.
24255         * math/w_lgammaf_r.c: Likewise.
24256         * math/w_lgammal.c: Likewise.
24257         * math/w_lgammal_r.c: Likewise.
24258         * math/w_log.c: Likewise.
24259         * math/w_log10.c: Likewise.
24260         * math/w_log10f.c: Likewise.
24261         * math/w_log10l.c: Likewise.
24262         * math/w_log2.c: Likewise.
24263         * math/w_log2f.c: Likewise.
24264         * math/w_log2l.c: Likewise.
24265         * math/w_logf.c: Likewise.
24266         * math/w_logl.c: Likewise.
24267         * math/w_pow.c: Likewise.
24268         * math/w_powf.c: Likewise.
24269         * math/w_powl.c: Likewise.
24270         * math/w_remainder.c: Likewise.
24271         * math/w_remainderf.c: Likewise.
24272         * math/w_remainderl.c: Likewise.
24273         * math/w_scalb.c: Likewise.
24274         * math/w_scalbf.c: Likewise.
24275         * math/w_scalbl.c: Likewise.
24276         * math/w_sinh.c: Likewise.
24277         * math/w_sinhf.c: Likewise.
24278         * math/w_sinhl.c: Likewise.
24279         * math/w_sqrt.c: Likewise.
24280         * math/w_sqrtf.c: Likewise.
24281         * math/w_sqrtl.c: Likewise.
24282         * math/w_tgamma.c: Likewise.
24283         * math/w_tgammaf.c: Likewise.
24284         * math/w_tgammal.c: Likewise.
24285
24286         * po/ja.po: Update from translation team.
24287
24288 2011-09-29  Andreas Jaeger  <aj@suse.de>
24289
24290         [BZ #13179]
24291         * sunrpc/netname.c (netname2host): Fix logic.
24292
24293         [BZ #6779]
24294         [BZ #6783]
24295         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24296         correctly.
24297         * math/w_remainder.c (__remainder): Likewise.
24298         * math/w_remainderf.c (__remainderf): Likewise.
24299         * math/libm-test.inc (remainder_test): Add test cases.
24300
24301 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24302
24303         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24304         sdiv_qrnnd.
24305
24306 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24307
24308         * string/test-memcmp.c: Avoid unncessary #defines.
24309         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24310
24311 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24312
24313         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24314         Use new sse2 version for core i3 - i7 as it's faster
24315         than sse42 version.
24316         (bit_Prefer_PMINUB_for_stringop): New.
24317         * sysdeps/x86_64/rawmemchr.S: Update.
24318         Replace with faster SSE2 version.
24319         * sysdeps/x86_64/memrchr.S: New file.
24320         * sysdeps/x86_64/memchr.S: Update.
24321         Replace with faster SSE2 version.
24322
24323 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24324
24325         * elf/dl-load.c (lose): Add cast to avoid warning.
24326
24327 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24328
24329         * po/ca.po: Update from translation team.
24330
24331         * inet/getnetgrent_r.c: Hook up nscd.
24332         * nscd/Makefile (routines): Add nscd_netgroup.
24333         (nscd-modules): Add netgroupcache.
24334         (CFLAGS-netgroupcache.c): Define.
24335         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24336         (cache_search): Add const to second parameter.
24337         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24338         INNETGR.
24339         (dbs): Add netgrdb entry.
24340         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24341         (verify_persistent_db): Handle netgrdb.
24342         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24343         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24344         GETFDNETGR.
24345         (netgroup_response_header): Define.
24346         (innetgroup_response_header): Define.
24347         (datahead): Add netgroup_response_header and innetgroup_response_header
24348         elements.
24349         * nscd/nscd.conf: Add entries for netgroup cache.
24350         * nscd/nscd.h (dbtype): Add netgrdb.
24351         (_PATH_NSCD_NETGROUP_DB): Define.
24352         (netgroup_iov_disabled): Declare.
24353         (xmalloc, xcalloc, xrealloc): Move declarations here.
24354         (cache_search): Adjust prototype.
24355         Add netgroup-related prototypes.
24356         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24357         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24358         (__nscd_innetgr): Declare.
24359         * nscd/selinux.c (perms): Use access_vector_t as element type and
24360         add netgroup-related initializers.
24361         * nscd/netgroupcache.c: New file.
24362         * nscd/nscd_netgroup.c: New file.
24363         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24364         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24365         For four parameters use innetgr.
24366         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24367         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24368         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24369         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24370
24371         * nscd/connections.c (register_traced_file): Don't register file
24372         for disabled databases.
24373
24374 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24375
24376         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24377
24378         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24379         from tree and freeing node.
24380
24381 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24382
24383         * nss/nsswitch.c (__nss_database_lookup): Handle
24384         nss_parse_service_list out of memory case.
24385
24386 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24387
24388         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24389         out of memory case.
24390
24391 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24392
24393         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24394         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24395         pass it down.
24396         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24397         elf_machine_rela, elf_machine_lazy_rel.
24398         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24399         (ELF_DYNAMIC_DO_REL): Likewise.
24400         (ELF_DYNAMIC_DO_RELA): Likewise.
24401         (ELF_DYNAMIC_RELOCATE): Likewise.
24402         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24403         to ELF_DYNAMIC_DO_REL.
24404         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24405         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24406         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24407         elf_machine_rela.
24408         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24409         skip_ifunc, don't call ifunc function if non-zero.
24410         (elf_machine_rela): Likewise.
24411         (elf_machine_lazy_rel): Likewise.
24412         (elf_machine_lazy_rela): Likewise.
24413         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24414         (elf_machine_lazy_rel): Likewise.
24415         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24416         Likewise.
24417         (elf_machine_lazy_rel): Likewise.
24418         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24419         Likewise.
24420         (elf_machine_lazy_rel): Likewise.
24421         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24422         (elf_machine_lazy_rel): Likewise.
24423         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24424         (elf_machine_lazy_rel): Likewise.
24425         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24426         (elf_machine_lazy_rel): Likewise.
24427         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24428         (elf_machine_lazy_rel): Likewise.
24429         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24430         (elf_machine_lazy_rel): Likewise.
24431         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24432         (elf_machine_lazy_rel): Likewise.
24433
24434 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24435
24436         * nss/nss_files/files-init.c (_nss_files_init): Use static
24437         initialization for all the *_traced_file variables.
24438
24439 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24440
24441         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24442
24443 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24444
24445         [BZ #13226]
24446         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24447
24448 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24449
24450         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24451         Reread the line before reparsing it.
24452
24453 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24454
24455         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24456
24457 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24458             Maxim Kuvyrkov  <maxim@codesourcery.com>
24459             Joseph Myers  <joseph@codesourcery.com>
24460
24461         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24462         if needed for __stack_chk_guard.
24463
24464 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24465
24466         * sysdeps/posix/spawni.c (script_execute): Always define it.
24467         It will be optimized away if unused.
24468         (maybe_script_execute): New function.
24469         (__spawni): Call it.
24470
24471         * Makerules: Don't include tls.make.
24472         (config-tls): Always set to thread.
24473         * tls.make.c: File removed.
24474
24475 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24476
24477         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24478         * config.make.in (CPPFLAGS-config): New substituted variable.
24479
24480 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24481
24482         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24483
24484         [BZ #13192]
24485         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24486         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24487
24488 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24489
24490         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24491         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24492         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24493         (CALL_FAIL): Likewise.
24494         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24495         (CALL_FAIL): Macro removed.
24496         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24497
24498 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24499
24500         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24501         for __FINITE_MATH_ONLY__ == 1.
24502
24503 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24504
24505         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24506         __ieee754_sqrt instead of sqrt.
24507         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24508         __ieee754_sqrtf instead of sqrtf.
24509         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24510         __floorf instead of floorf.
24511         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24512         __floorf, __truncf instead of floorf, truncf.
24513
24514 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24515
24516         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24517
24518         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24519         __extern_always_inline.
24520         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24521         32-bit.
24522
24523 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24524
24525         * elf/rtld.c (dl_main): Also relocate in dependency order when
24526         doing symbol dependency testing.
24527
24528 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24529
24530         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24531         Always define `refsym'.
24532
24533 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24534
24535         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24536         (__FD_ELT): Renamed from __FDELT.
24537         * misc/bits/select2.h (__FD_ELT): Likewise.
24538         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24539         __FD_MASK instead of __FDELT, __FDMASK.
24540         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24541         Likewise.
24542         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24543         Likewise.
24544
24545         * elf/Makefile (gen-ldd): Fix pattern.
24546
24547         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24548         (init_tls): Likewise.
24549
24550 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24551
24552         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24553
24554 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24555
24556         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24557         `struct cmsghdr *' instead of `void *'.
24558         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24559         Likewise.
24560
24561 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24562
24563         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24564         if non-absolute.
24565         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24566         ldd_rewrite_script.
24567
24568 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24569
24570         * configure.in: Remove --with-tls option.
24571         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24572         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24573         out in case it is missing.
24574         * sysdeps/ia64/elf/configure.in: Likewise.
24575         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24576         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24577         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24578         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24579         * sysdeps/sh/elf/configure.in: Likewise.
24580         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24581         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24582         * sysdeps/x86_64/elf/configure.in: Likewise.
24583         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24584         * sysdeps/mach/hurd/tls.h: Likewise.
24585
24586         [BZ #13067]
24587         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24588
24589         [BZ #13090]
24590         * configure.in: Fix use of AC_INIT.
24591
24592         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24593
24594 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24595
24596         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24597         __set_errno.
24598         * malloc/hooks.c: Likewise.
24599
24600         [BZ #11929]
24601         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24602         variables statically.
24603         (narenas): Initialize.
24604         (list_lock): Initialize.
24605         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24606         initializtion of main_arena and list_lock.  Small cleanups.
24607         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24608         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24609         Add initializers to main_arena and mp_.
24610         (malloc_state): Remove pagesize member.  Change all users to use
24611         GLRO(dl_pagesize).
24612
24613         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24614         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24615         is always initialized.
24616
24617         * malloc/malloc.c: Removed unused configurations and dead code.
24618         * malloc/arena.c: Likewise.
24619         * malloc/hooks.c: Likewise.
24620         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24621
24622         * include/tls.h: Removed.  USE___THREAD must always be defined.
24623         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24624         * elf/dl-libc.c: Likewise.
24625         * elf/dl-tsd.c: Likewise.
24626         * include/errno.h: Likewise.
24627         * include/netdb.h: Likewise.
24628         * include/resolv.h: Likewise.
24629         * inet/herrno-loc.c: Likewise.
24630         * inet/herrno.c: Likewise.
24631         * malloc/arena.c: Likewise.
24632         * malloc/hooks.c: Likewise.
24633         * malloc/malloc.c: Likewise.
24634         * resolv/res-state.c: Likewise.
24635         * resolv/res_libc.c: Likewise.
24636         * sysdeps/i386/dl-machine.h: Likewise.
24637         * sysdeps/ia64/dl-machine.h: Likewise.
24638         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24639         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24640         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24641         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24642         * sysdeps/sh/dl-machine.h: Likewise.
24643         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24644         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24645         * sysdeps/unix/i386/sysdep.S: Likewise.
24646         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24647         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24648         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24649         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24650         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24651         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24652         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24653         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24654         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24655         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24656         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24657         * sysdeps/x86_64/dl-machine.h: Likewise.
24658         * tls.make.c: Likewise.
24659
24660         * configure.in: Remove --with-__thread option.  Make tests for
24661         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24662         tls_model attribute fail if no support is available.  Remove
24663         USE_IN_LIBIO.
24664         * Makeconfig: Adjust for dropped configure option.  All features are
24665         now mandatory.
24666         * Makerules: Likewise.
24667         * Versions.def: Likewise.
24668         * argp/argp-fmtstream.c: Likewise.
24669         * argp/argp-fmtstream.h: Likewise.
24670         * argp/argp-help.c: Likewise.
24671         * assert/assert.c: Likewise.
24672         * config.h.in: Likewise.
24673         * config.make.in: Likewise.
24674         * configure: Likewise.
24675         * configure.in: Likewise.
24676         * csu/Versions: Likewise.
24677         * csu/init.c: Likewise.
24678         * elf/tst-audit2.c: Likewise.
24679         * elf/tst-tls10.c: Likewise.
24680         * elf/tst-tls10.h: Likewise.
24681         * elf/tst-tls11.c: Likewise.
24682         * elf/tst-tls12.c: Likewise.
24683         * elf/tst-tls14.c: Likewise.
24684         * elf/tst-tlsmod11.c: Likewise.
24685         * elf/tst-tlsmod12.c: Likewise.
24686         * elf/tst-tlsmod13.c: Likewise.
24687         * elf/tst-tlsmod13a.c: Likewise.
24688         * elf/tst-tlsmod14a.c: Likewise.
24689         * elf/tst-tlsmod15b.c: Likewise.
24690         * elf/tst-tlsmod16a.c: Likewise.
24691         * elf/tst-tlsmod16b.c: Likewise.
24692         * elf/tst-tlsmod7.c: Likewise.
24693         * elf/tst-tlsmod8.c: Likewise.
24694         * elf/tst-tlsmod9.c: Likewise.
24695         * gmon/gmon.c: Likewise.
24696         * grp/fgetgrent_r.c: Likewise.
24697         * grp/putgrent.c: Likewise.
24698         * hurd/fopenport.c: Likewise.
24699         * include/libc-symbols.h: Likewise.
24700         * include/tls.h: Likewise.
24701         * intl/gettextP.h: Likewise.
24702         * intl/loadinfo.h: Likewise.
24703         * locale/global-locale.c: Likewise.
24704         * locale/localeinfo.h: Likewise.
24705         * mach/devstream.c: Likewise.
24706         * malloc/arena.c: Likewise.
24707         * malloc/set-freeres.c: Likewise.
24708         * misc/err.c: Likewise.
24709         * misc/getttyent.c: Likewise.
24710         * misc/mntent_r.c: Likewise.
24711         * posix/getopt.c: Likewise.
24712         * posix/wordexp.c: Likewise.
24713         * pwd/fgetpwent_r.c: Likewise.
24714         * resolv/Versions: Likewise.
24715         * resolv/res_hconf.c: Likewise.
24716         * shadow/fgetspent_r.c: Likewise.
24717         * shadow/putspent.c: Likewise.
24718         * stdio-common/printf_fphex.c: Likewise.
24719         * stdio-common/tmpfile.c: Likewise.
24720         * stdlib/abort.c: Likewise.
24721         * stdlib/fmtmsg.c: Likewise.
24722         * sunrpc/auth_unix.c: Likewise.
24723         * sunrpc/clnt_perr.c: Likewise.
24724         * sunrpc/clnt_tcp.c: Likewise.
24725         * sunrpc/clnt_udp.c: Likewise.
24726         * sunrpc/clnt_unix.c: Likewise.
24727         * sunrpc/openchild.c: Likewise.
24728         * sunrpc/svc_simple.c: Likewise.
24729         * sunrpc/svc_tcp.c: Likewise.
24730         * sunrpc/svc_udp.c: Likewise.
24731         * sunrpc/svc_unix.c: Likewise.
24732         * sunrpc/xdr.c: Likewise.
24733         * sunrpc/xdr_array.c: Likewise.
24734         * sunrpc/xdr_rec.c: Likewise.
24735         * sunrpc/xdr_ref.c: Likewise.
24736         * sunrpc/xdr_stdio.c: Likewise.
24737
24738 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24739
24740         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24741
24742 2011-07-03  Andreas Jaeger  <aj@suse.de>
24743
24744         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24745         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24746         regenerate with gen-libm-tests.pl.
24747
24748 2010-05-12  Petr Baudis  <pasky@suse.cz>
24749
24750         [BZ #11589]
24751         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24752         around j0() zero points by switching to j1().
24753         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24754         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24755         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24756         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24757
24758 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24759
24760         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24761         instead of 0.
24762         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24763         instead of 0.
24764         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24765         Patch in part by Pavel Roskin <proski@gnu.org>.
24766
24767         [BZ #13138]
24768         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24769         realloc.
24770         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24771         Free memory block if necessary.
24772
24773         [BZ #12847]
24774         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24775         be NULL.  Don't lock in this case.
24776
24777 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24778
24779         * elf/elf.h (ELFOSABI_GNU): New macro.
24780         (ELFOSABI_LINUX): Define to that.
24781
24782 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24783
24784         * string/strncat.c (strncat): Undef the symbol in case it has been
24785         defined in bits/string.h.
24786
24787 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24788
24789         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24790
24791         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24792         link map.
24793
24794 2011-08-17  Andreas Jaeger  <aj@suse.de>
24795
24796         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24797
24798 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24799             Ian Lance Taylor  <iant@google.com>
24800
24801         * math/libm-test.inc (lround_test): New testcase.
24802         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24803
24804 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24805
24806         * Makefile: Remove support for automatic cvs check-ins.
24807         * Makerules: Likewise.
24808         * config.make.in: Likewise.
24809         * configure.in: Likewise.
24810         * intl/Makefile: Likewise.
24811         * locale/Makefile: Likewise.
24812         * po/Makefile: Likewise.
24813         * posix/Makefile: Likewise.
24814         * sysdeps/gnu/Makefile: Likewise.
24815         * sysdeps/mach/hurd/Makefile: Likewise.
24816         * sysdeps/sparc/sparc32/Makefile: Likewise.
24817
24818         [BZ #13118]
24819         * posix/Makefile (bug-regex32-ENV): Define.
24820         Patch by John Stanley <jpsinthemix@verizon.net>.
24821
24822         * misc/Makefile (headers): Add bits/select2.h.
24823         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24824         * misc/bits/select2.h: New file.
24825         * include/bits/select2.h: New file.
24826         * debug/Makefile (routines): Add fdelt_chk.
24827         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24828         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24829         FD_ISSET.
24830         * debug/fdelt_chk.c: New file.
24831
24832         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24833         * wcsmbs/test-wmemcmp.c: Likewise.
24834         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24835         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24836
24837 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24838
24839         * string/Makefile (strop-tests): Add memcmp.
24840         * string/test-wmemcmp.c: New file.
24841         * string/test-memcmp.c: Add wmemcmp support.
24842
24843 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24844
24845         [BZ #13153]
24846         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24847         2011-07-19 change.
24848
24849         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24850         garbage value in a __mach_port_mod_refs call in the cases of the
24851         task-self and thread-self ports.
24852
24853 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24854
24855         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24856
24857 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24858
24859         * elf/dl-load.c (lose): Check for non-null L.
24860
24861 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24862
24863         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24864
24865         * elf/dl-libc.c (dlerror_run): Pass back error code from
24866         dl_catch_error.
24867
24868         [BZ #13123]
24869         * elf/dl-load.c (lose): Free l_origin if it is valid.
24870
24871         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24872         names.
24873         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24874         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24875         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24876         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24877         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24878         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24879
24880 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24881
24882         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24883         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24884         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24885         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24886         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24887         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24888         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24889         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24890         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24891         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24892
24893 2011-08-15  Alan Modra  <amodra@gmail.com>
24894
24895         [BZ #13092]
24896         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24897         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24898         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24899         ppc_mcount to static-only-routines.
24900         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24901         __mcount_internal.
24902         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24903         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24904
24905 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24906
24907         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24908         for finite and infinity parameters.
24909
24910 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24911
24912         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24913         and add nop instructions for throughput optimization.
24914         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24915
24916 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24917
24918         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24919         aligned copy for power7 with vector-scalar instructions.
24920         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24921
24922 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24923
24924         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24925         AVX check.
24926
24927 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24928
24929         [BZ #13144]
24930         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24931         last change.
24932
24933 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24934
24935         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24936         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24937         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24938         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24939         clock_gettime.
24940
24941 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24942
24943         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24944         Forgot to demangle the pointer.
24945
24946         * sysdeps/i386/sysdep.h: Define atom_text_section.
24947         * sysdeps/x86_64/sysdep.h: Likewise.
24948         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24949         section with atom_text_section.
24950         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24951         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24952         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24953         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24954         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24955
24956         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24957         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24958         already be defined.  Change to take two parameters and don't assign
24959         result to variable.  Adjust all users.
24960         Define INTERNAL_GETTIME if not already defined.
24961         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24962         call.
24963         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24964         HAVE_CLOCK_GETTIME_VSYSCALL.
24965         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24966
24967         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24968         gettimeofday vsyscall, just use time.
24969
24970 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24971
24972         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24973         <errno.h>.
24974
24975 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24976
24977         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24978         syscall on x86-64.
24979         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24980         syscall.
24981         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24982         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24983         syscall if possible.
24984
24985 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24986
24987         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24988         e_ident.  Don't pass to find_mapsXX.
24989         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24990
24991 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24992
24993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24994         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24995         * sysdeps/x86_64/multiarch/strchr.S: Update.
24996         Check bit_slow_BSF bit.
24997         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24998         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24999         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25000
25001 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25002
25003         [BZ #13134]
25004         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25005         before glibc 2.15.
25006         (tryshell): Define.
25007         (__spawni): Change last parameter to be flag.  Test
25008         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25009         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25010         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25011         * posix/spawni.c: Likewise.
25012         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25013         * posix/spawnp.c: Likewise.  Change normal version to use
25014         SPAWN_XFLAGS_USE_PATH.
25015         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25016         SPAWN_XFLAGS_TRY_SHELL.
25017
25018         [BZ #13150]
25019         * posix/glob.h: Remove gcc 1.x support.
25020
25021         [BZ #13068]
25022         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25023
25024 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25025
25026         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25027         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25028         strrchr-sse2-bsf
25029         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25030         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25031         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25032         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25033         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25034         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25035
25036 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25037
25038         * sysdeps/x86_64/wcscmp.S: New file.
25039
25040         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25041         wcscmp-c wcscmp-sse2
25042         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25043         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25044         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25045         * wcsmbs/wcscmp.c: Allow renaming.
25046
25047 2011-09-05  David S. Miller  <davem@davemloft.net>
25048
25049         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25050         stack slot, rather than the struct return pointer slot.
25051         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25052         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25054         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25055
25056 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25057
25058         * po/ja.po: Update from translation team.
25059
25060         [BZ #13144]
25061         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25062         kernel in 64-bit binaries.
25063
25064 2011-09-01  David S. Miller  <davem@davemloft.net>
25065
25066         * elf/elf.h (HWCAP_SPARC_*): Move to..
25067         * sysdeps/sparc/sysdep.h: this new file and add new values.
25068         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25069         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25070         _DL_HWCAP_COUNT to 24.
25071         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25072         entries.
25073         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25074         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25075         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25076         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25077         instead of magic constants.
25078         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25079
25080 2011-08-31  David S. Miller  <davem@davemloft.net>
25081
25082         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25083         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25084         Reimplement to do errno handling inline.
25085         (SYSCALL_ERROR_HANDLER): New macro.
25086         (__SYSCALL_STRING): Do not do errno handling in asm.
25087         (__CLONE_SYSCALL_STRING): Delete.
25088         (__INTERNAL_SYSCALL_STRING): Delete.
25089         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25090         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25091         (PSEUDO): Reimplement to do errno handling inline.
25092         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25093         (SYSCALL_ERROR_HANDLER): New macro.
25094         (__SYSCALL_STRING): Do not do errno handling in asm.
25095         (__CLONE_SYSCALL_STRING): Delete.
25096         (__INTERNAL_SYSCALL_STRING): Delete.
25097         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25098         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25099         i386.
25100         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25101         (inline_syscall*): Add 'err' argument.
25102         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25103         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25104         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25105         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25106
25107         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25108         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25109
25110 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25111
25112         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25113
25114 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25115
25116         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25117         directive.
25118
25119 2011-08-24  David S. Miller  <davem@davemloft.net>
25120
25121         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25122
25123 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25124
25125         * elf/Makefile: Add rules to build and run unload8 test.
25126         * elf/unload8.c: New file.
25127         * elf/unload8mod1.c: New file.
25128         * elf/unload8mod1x.c: New file.
25129         * elf/unload8mod2.c: New file.
25130         * elf/unload8mod3.c: New file.
25131
25132         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25133         it wasn't used.
25134
25135 2011-08-23  David S. Miller  <davem@davemloft.net>
25136
25137         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25138         subtract stack bias.
25139         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25140         %sp not %fp in calculations.
25141         (_JMPBUF_UNWINDS_ADJ): Likewise.
25142
25143         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25144         (aio_suspend): Call it to force an exception region around the
25145         AIO_MISC_WAIT() invocation.
25146
25147 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25148
25149         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25150         backslash.
25151
25152 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25153
25154         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25155         protection macro.
25156         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25157         and <dl-machine.h>.
25158         (Elf64_FuncDesc): Remove.
25159
25160 2011-08-22  David S. Miller  <davem@davemloft.net>
25161
25162         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25163         sigaltstack check, add missing cfi directives.
25164         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25165         missing cfi directives, and sigaltstack handling.
25166
25167 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25168
25169         [BZ #11724]
25170         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25171         object is seen twice.
25172         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25173
25174         * elf/Makefile (distribute): Add tst-initorder2.c.
25175         (tests): Add tst-initorder2.
25176         (modules-names): Add tst-initorder2a tst-initorder2b
25177         tst-initorder2c tst-initorder2d.  Add rules to build them.
25178         ($(objpfx)tst-initorder2.out): New rule.
25179         * elf/tst-initorder2.c: New file.
25180         * elf/tst-initorder2.exp: New file.
25181
25182 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25183
25184         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25185
25186         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25187         dependencies back to end of function.
25188
25189         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25190         $(elfobjdir)/ld.so.
25191
25192 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25193
25194         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25195         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25196         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25197         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25198         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25199         of __vdso_gettimeofday.
25200         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25201         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25202         attribute_hidden.
25203         (_libc_vdso_platform_setup): Remove initialization of
25204         __vdso_gettimeofday and __vdso_time.
25205
25206 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25207
25208         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25209         and fgetc_unlocked.
25210         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25211         getc_unlocked.
25212
25213         * elf/dl-open.c (add_to_global): Report additions to the global scope
25214         for LD_DEBUG=scopes.
25215         (dl_open_worker): Also print scope of newly loaded dependencies.
25216         (_dl_show_scope): Indicate if there is no scope.
25217
25218         [BZ #13114]
25219         * stdio-common/Makefile (tests): Add bug24.
25220         * stdio-common/bug24.c: New file.
25221
25222 2011-08-19  Andreas Jaeger  <aj@suse.de>
25223
25224         [BZ #13114]
25225         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25226         non-existant file when using close-on-exec mode.
25227
25228 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25229
25230         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25231         the very first instruction.
25232
25233         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25234         the CFI state in the end.
25235         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25236         inclusion of dl-trampoline.h.
25237         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25238
25239 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25240
25241         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25242         expectations for long double.
25243
25244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25245         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25246
25247 2011-08-14  David S. Miller  <davem@davemloft.net>
25248
25249         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25250         artificual limit depends upon the system page size.
25251
25252 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25253
25254         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25255         * resolv/Makefile: Define CFLAGS-libresolv.
25256
25257 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25258
25259         * nss/makedb.c (compute_tables): Make variables used in nested
25260         function static.
25261
25262 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25263
25264         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25265         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25266         if buffer was too small.
25267
25268         * elf/pldd.c (main): Attach to all threads in the process.
25269         Rewrite /proc handling to use *at functions.
25270
25271 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25272
25273         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25274         specifies first scope to show.
25275         (dl_open_worker): Update callers.  Move printing scope of new
25276         object to before the relocation.
25277         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25278         * sysdeps/generic/ldsodefs.h: Update declaration.
25279
25280         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25281         string for the scope number.
25282
25283 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25284
25285         * nscd/servicescache.c (cache_addserv): Make sure written is always
25286         initialized.
25287
25288 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25289
25290         * sysdeps/i386/i486/bits/atomic.h
25291         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25292         statement expression, so as to suppress "set but not used" warning.
25293         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25294
25295         * string/strncat.c (STRNCAT): Use prototype definition.
25296
25297         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25298         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25299         -Iprograms here.
25300         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25301         (localedef-modules): Add localedef.
25302         (locale-modules): Add locale.
25303
25304         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25305         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25306         to avoid a warning.
25307
25308 2011-08-14  David S. Miller  <davem@davemloft.net>
25309
25310         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25311         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25312
25313 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25314
25315         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25316         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25317         * elf/rtld.c (dl_main): Set l_name of vDSO.
25318         Call _dl_show_scope when DL_DEBUG_SCOPES.
25319         (process_dl_debug): Recognize scopes flag and also set it for all.
25320         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25321         Declare _dl_show_scope.
25322
25323         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25324         (do_dlopen): Pass caller_dlopen to dl_open.
25325         (__libc_dlopen_mode): Initialize caller_dlopen.
25326
25327         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25328         of libc.  Make tolower call locale-independent.  Optimize a bit by
25329         using isdigit instead of isalnum.
25330         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25331
25332 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25333
25334         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25335         was a dependency or dynamically loaded.
25336
25337 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25338
25339         * intl/l10nflist.c: Allow architecture-specific pop function.
25340         * sysdeps/x86_64/l10nflist.c: New file.
25341
25342         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25343         classification.
25344
25345 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25346
25347         * include/dirent.h: Add libc_hidden_proto for scandirat and
25348         scandirat64.  Don't declare __scandirat64.
25349         * dirent/scandirat.c: Add libc_hidden_def.
25350         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25351         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25352
25353 2011-08-10  David S. Miller  <davem@davemloft.net>
25354
25355         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25356         enum.
25357         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25358         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25359         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25360
25361 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25362
25363         * Versions.def [libc]: Add GLIBC_2.15.
25364         * dirent/Makefile (routines): Add scandirat and scandirat64.
25365         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25366         GLIBC_2.15.
25367         * dirent/dirent.h: Declare scandirat and scandirat64.
25368         * dirent/scandirat.c: New file.
25369         * dirent/scandirat64.c: New file.
25370         * sysdeps/wordsize-64/scandirat.c: New file.
25371         * sysdeps/wordsize-64/scandirat64.c: New file.
25372         * dirent/opendir.c: Define opendirat.
25373         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25374         using scandirat.
25375         * dirent/scandir64.c: Adjust for scandir.c change.
25376         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25377         __scandirat64, and __scandir_cancel_handler.
25378         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25379         additional parameter and use openat instead of open (outside of ld.so).
25380         Add new __opendir as wrapper around __opendirat.
25381         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25382         here without requiring old scandirat implementation.
25383
25384 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25385
25386         * dirent/scandir.c (cancel_handler): Renamed to
25387         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25388         defined.  Adjust users.
25389         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25390         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25391
25392 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25393
25394         * string/test-string.h (IMPL): Use __STRING to expand name and then
25395         stringify it.
25396
25397         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25398         of cleanups.
25399
25400 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25401
25402         * string/Makefile: Update.
25403         (strop-tests): Append strncat.
25404         * string/test-wcscmp.c: New file.
25405         New comprehensive test for wcscmp.
25406         * string/test-strcmp.c: Update.
25407         (WIDE): New define.
25408
25409 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25410
25411         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25412         line.
25413
25414 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25415
25416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25417         encoding to ACE if AI_IDN.
25418
25419 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25420
25421         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25422         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25423
25424 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25425
25426         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25427         Fix overflow bug in strncat.
25428         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25429
25430         * string/test-strncat.c: Update.
25431         Add new tests for checking overflow bugs.
25432
25433 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25434
25435         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25436         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25437         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25438         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25439         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25440         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25441         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25442         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25443         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25444
25445         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25446         (USE_AS_STRCAT): Define.
25447         Add strcat and strncat support.
25448         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25449
25450 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25451
25452         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25453         __n bigger than INT_MAX+1.
25454         (__strncmp_g): Likewise.
25455
25456 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25457
25458         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25459         * libio/stido.h: Likewise.
25460
25461         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25462         (AF_NFC): Define.
25463         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25464         (AF_NFC): Define.
25465
25466         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25467         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25468         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25469         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25470         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25471
25472         [BZ #13021]
25473         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25474         installed.
25475
25476         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25477         typo.
25478         (_dl_x86_64_save_sse): Likewise.
25479
25480 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25481
25482         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25483         OSXSAVE.
25484         (_dl_x86_64_save_sse): Likewise.
25485
25486         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25487
25488         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25489
25490 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25491
25492         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25493         change.
25494         (_dl_x86_64_save_sse): Use correct AVX check.
25495
25496 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25497
25498         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25499         bug in strncpy/strncat.
25500         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25501
25502 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25503
25504         * string/tester.c (test_strcat): Add tests for different alignments
25505         of source and destination.
25506         (test_strncat): Likewise.
25507
25508 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25509
25510         [BZ #12852]
25511         * posix/glob.c (glob): Check passed in values before using them in
25512         expressions to avoid some overflows.
25513         (glob_in_dir): Likewise.
25514
25515         [BZ #13007]
25516         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25517         check for AVX enablement so that we don't crash with old kernels and
25518         new hardware.
25519         * elf/tst-audit4.c: Add same checks here.
25520         * elf/tst-audit6.c: Likewise.
25521
25522         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25523
25524 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25525
25526         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25527
25528 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25529
25530         * po/cs.po: Update from translation team.
25531         * po/bg.po: Likewise.
25532
25533 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25534
25535         * misc/sys/cdefs.h: Add support for const attribute.
25536         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25537         to gnu_dev_{major,minor,makedev} functions.
25538
25539 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25540
25541         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25542
25543 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25544
25545         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25546         strlen results.
25547
25548 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25549
25550         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25551         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25552         register in order to avoid conflicts with the soft frame pointer
25553         being held in r11 when necessary.
25554         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25555         (INTERNAL_VSYSCALL_NCS): Likewise.
25556
25557 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25558
25559         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25560         * elf/dl-fini.c (_dl_fini): Adjust caller.
25561         * elf/dl-close.c (_dl_close_worker): Likewise.
25562         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25563
25564 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25565
25566         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25567         "aux_cache->nlibs < 0".
25568
25569         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25570         in the reload-count case.
25571
25572 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25573
25574         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25575         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25576         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25577         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25578         * sysdeps/x86_64/multiarch/strcat.S: New file.
25579         * sysdeps/x86_64/multiarch/strncat.S: New file.
25580         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25581         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25582         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25583         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25584         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25585         (USE_AS_STRCAT): Define.
25586         Add strcat and strncat support.
25587         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25588         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25589         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25590         * string/strncat.c: Update.
25591         (USE_AS_STRNCAT): Define.
25592         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25593         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25594         and i7.
25595         * sysdeps/x86_64/multiarch/init-arch.h
25596         (bit_Prefer_PMINUB_for_stringop): New.
25597         (index_Prefer_PMINUB_for_stringop): Likewise.
25598         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25599         bit_Prefer_PMINUB_for_stringop.
25600
25601 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25602
25603         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25604         buffer64.
25605         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25606         of casting of buffer.
25607         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25608         buffer32 and buffer64.
25609         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25610         writes instead of casting of buffer.
25611         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25612         buffer32.
25613         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25614         casting of buffer.
25615
25616 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25617
25618         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25619
25620 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25621
25622         * nscd/nscd.c (termination_handler): Don't do anything for a database
25623         if it has not yet been initialized.
25624
25625 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25626
25627         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25628
25629 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25630
25631         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25632
25633 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25634
25635         * po/nl.po: Update from translation team.
25636         * po/sv.po: Likewise.
25637
25638 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25639
25640         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25641         now disallowed by GCC.
25642
25643         * configure.in (use-default-link): Default to yes if a test -shared
25644         link meets our qualifications.
25645         * configure: Regenerated.
25646
25647         * config.make.in (output-format): New variable.
25648         * configure.in: Check for ld --print-output-format support.
25649         * configure: Regenerated.
25650         * Makerules ($(common-objpfx)format.lds)
25651         [$(output-format) != unknown]: Just use $(output-format),
25652         instead of the linker-script munging.
25653
25654 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25655
25656         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25657         of $(common-objpfx)shlib.lds.
25658         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25659
25660         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25661         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25662
25663         * configure.in (-z relro check): Adjust test code to add a large
25664         writable data section after it.
25665         * configure: Regenerated.
25666
25667 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25668
25669         * configure.in (-z relro check): Fix test code to make the variable
25670         truly const.
25671         * configure: Regenerated.
25672
25673 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25674
25675         * nscd/nscd.h (struct traced_file): Define.
25676         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25677         elements.  Add traced_files.
25678         (inotify_fd): Declare.
25679         (register_traced_file): Declare.
25680         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25681         (inotify_fd): Export.
25682         (resolv_conf_descr): Remove.
25683         (nscd_init): Move inotify descriptor creation to main.
25684         Don't register files for notification here.
25685         (register_traced_file): New function.
25686         (invalidate_cache): Don't use reset_res to determine whether to call
25687         res_init, go through the list of registered files.
25688         (main_loop_poll): The inotify descriptors are now stored in the
25689         structures for the traced files.
25690         (main_loop_epoll): Likewise
25691         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25692         to __nss_disable_nscd.
25693         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25694         for a database anymore.  Check the records for all the registered
25695         files instead.
25696         * nss/Makefile (libnss_files-routines): Add files-init.
25697         (libnss_db-routines): Add db-init.
25698         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25699         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25700         * nss/nss_db/db-init.c: New file.
25701         * nss/nss_files/files-init.c: New file.
25702         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25703         __nss_lookup_function.
25704         (__nss_lookup_function): Call nss_load_library.
25705         (nss_load_all_libraries): New function.
25706         (__nss_disable_nscd): Take parameter with callback function for files
25707         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25708         used for the cached services.
25709         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25710         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25711         options for features to all the files in nscd.
25712
25713         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25714
25715 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25716
25717         * csu/elf-init.c (__libc_csu_init): Comment typo.
25718
25719 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25720
25721         * po/pl.po: Update from translation team.
25722         * po/ja.po: Likewise.
25723         * po/ru.po: Likewise.
25724         * po/ko.po: Likewise.
25725         * po/fr.po: Likewise.
25726
25727 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25728
25729         * configure.in (.ctors/.dtors header and trailer check):
25730         Use an empirical test on a built program.
25731         * configure: Regenerated.
25732
25733         * configure.in (-z relro check): Use an empirical test on a built DSO.
25734         Detect, but do not require, on ia64.
25735         * configure: Regenerated.
25736
25737         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25738         Update tests that use readelf to use $READELF instead.
25739         * configure: Regenerated.
25740
25741 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25742
25743         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25744         if the result is not used.
25745
25746 2011-07-05  Andreas Jaeger  <aj@suse.de>
25747
25748         [BZ#9696]
25749         * stdlib/tst-strtod.c: Add testcase.
25750
25751 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25752
25753         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25754         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25755         The latter has a higher limit.  Take additional parameter to pass to
25756         the new function.
25757         (__pathconf): Pass file to __statfs_link_max.
25758         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25759         __statfs_link_max.
25760         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25761         __statfs_link_max.
25762
25763         [BZ #12868]
25764         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25765         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25766         Handle Lustre.
25767         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25768         (__statfs_filesize_max): Likewise.
25769         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25770
25771 2011-07-05  Andreas Jaeger  <aj@suse.de>
25772
25773         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25774
25775 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25776
25777         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25778         `status' variable.
25779         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25780         Likewise.
25781
25782 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25783
25784         * Makefile (strop-tests): Add strncat.
25785         * string/test-strncat.c: New file.
25786
25787 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25788
25789         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25790
25791 2011-06-21  Andreas Jaeger  <aj@suse.de>
25792
25793         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25794         Copy rule from iconvdata/Makefile.
25795
25796 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25797
25798         [BZ #12922]
25799         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25800         but no long options are defined, just return 'W'.
25801
25802 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25803
25804         [BZ #9696]
25805         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25806
25807 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25808
25809         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25810         netgroups to read.
25811         (innetgr): Likewise.
25812
25813 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25814
25815         * config.make.in (install_root): Default to $(DESTDIR).
25816
25817 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25818
25819         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25820
25821 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25822
25823         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25824
25825         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25826         containing directory rather than embedding absolute directory names.
25827
25828         * scripts/check-local-headers.sh: Rewritten using awk.
25829         Match by word, not by line.  Print error messages for matches.
25830         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25831
25832         * Makerules [shlib-lds-flags empty]:
25833         ($(common-objpfx)libc_pic.opts): New target.
25834         ($(common-objpfx)libc_pic.os.clean): New target.
25835         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25836
25837         * config.make.in (OBJCOPY): New variable.
25838         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25839         * configure: Regenerated.
25840
25841         * config.make.in (use-default-link): New variable.
25842         * configure.in (use_default_link): Grok --with-default-link to set it.
25843         * configure: Regenerated.
25844         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25845         (shlib-lds, shlib-lds-flags): Define to empty.
25846
25847         * Makerules (shlib-lds): New variable.
25848         (shlib-lds-flags): New variable.
25849         (build-shlib, build-moduile, build-module-asneeded): Use it.
25850         ($(common-objpfx)libc.so): Use $(shlib-lds).
25851         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25852         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25853
25854         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25855         DT_FLAGS/DT_FLAGS_1 with zero flags.
25856
25857         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25858         linker script munging.
25859
25860 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25861
25862         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25863         as 128-bit value.
25864         * crypt/sha512.c (sha512_process_block): Perform total addition using
25865         128-bit if possible.
25866         (__sha512_finish_ctx): Likewise.
25867         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25868         as 64-bit value.
25869         * crypt/sha256.c (SWAP64): Define.
25870         (sha256_process_block): Perform total addition using 64-bit if
25871         possible.
25872         (__sha256_finish_ctx): Likewise.
25873
25874 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25875
25876         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25877         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25878         * nscd/hstcache.c (cache_addhst): Likewise.
25879         * nscd/grpcache.c (cache_addgr): Likewise.
25880         * nscd/aicache.c (addhstaiX): Likewise
25881         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25882
25883 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25884
25885         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25886         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25887         * nscd/hstcache.c (cache_addhst): Likewise.
25888         * nscd/grpcache.c (cache_addgr): Likewise.
25889         * nscd/aicache.c (addhstaiX): Likewise
25890
25891 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25892
25893         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25894         domain only when needed.
25895
25896 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25897
25898         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25899         is always restored.
25900
25901 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25902
25903         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25904         are re-adding the entry.
25905         * nscd/servicescache.c (cache_addserv): Likewise.
25906
25907 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25908
25909         * sysdeps/generic/dl-irel.h: fix protection against multiple
25910         inclusions.
25911         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25912
25913 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25914
25915         [BZ #12935]
25916         * malloc/memusage.sh: Fix quoting in message.
25917         * debug/xtrace.sh: Likewise.
25918
25919         * configure.in: Remove support for --experimental-malloc option, make
25920         it the default.
25921         * config.make.in: Likewise.
25922         * malloc/Makefile: Likewise.
25923
25924 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25925
25926         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25927         two-byte characters.
25928
25929 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25930
25931         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25932         AC_CACHE_CHECK invocation.
25933         * configure: Regenerated.
25934
25935         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25936
25937 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25938
25939         [BZ #12350]
25940         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25941         bit from old_res_options.
25942
25943         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25944
25945         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25946         value type for setfct.
25947
25948 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25949
25950         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25951         __gettimeofday instead of gettimeofday.
25952
25953 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25954
25955         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25956
25957 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25958
25959         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25960
25961         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25962         info.
25963
25964 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25965
25966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25967         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25968         strcpy-sse2-unaligned strncpy-sse2-unaligned
25969         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25970         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25971         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25972         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25973         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25974         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25975         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25976         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25977         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25978         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25979         (STRCPY): Support SSE2 and SSSE3 versions.
25980
25981 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25982
25983         [BZ #12874]
25984         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25985         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25986         kernels which artificially limit size of requests.
25987
25988 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25989
25990         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25991         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25992         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25993         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25994         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25995         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25996         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25997         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25998         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25999         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26000         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26001         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26002         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26003         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26004         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26005         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26006         Enable unaligned load optimization for Intel Core i3, i5 and i7
26007         processors.
26008         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26009         Define.
26010         (index_Fast_Unaligned_Load): Define.
26011         (HAS_FAST_UNALIGNED_LOAD): Define.
26012
26013 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26014
26015         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26016
26017 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26018
26019         [BZ #12907]
26020         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26021         until it is clear that the information is realy needed.
26022         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26023
26024 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26025
26026         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26027
26028 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26029
26030         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26031         /sys/devices/system/cpu/online if it is usable.
26032
26033         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26034         reading the information from the /proc filesystem to once a second.
26035
26036 2011-06-21  Andreas Jaeger  <aj@suse.de>
26037
26038         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26039         NULL after inclusion of kernel headers.
26040
26041 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26042
26043         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26044         calls to internal_setent.
26045
26046         [BZ #12885]
26047         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26048         addresses using gethostbyname4_r ignore IPv4 addresses.
26049
26050         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26051         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26052
26053         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26054
26055 2011-06-20  David S. Miller  <davem@davemloft.net>
26056
26057         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26058         inclusions.
26059         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26060
26061         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26062         (elf_irel): Use it.
26063         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26064         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26065         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26066         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26067         * sysdeps/x86_64/dl-irel.h: Likewise.
26068
26069         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26070         * elf/dl-sym.c: Likewise.
26071
26072 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26073
26074         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26075         need to dereference resplen2.
26076
26077 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26078
26079         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26080
26081 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26082
26083         * Makeconfig: Define vardbdir and inst_vardbdir.
26084         * nss/Makefile: Add rules to install db-Makefile.
26085
26086         * nss/nss_db/db-XXX.c: Cleanup.
26087
26088         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26089         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26090         GLIBC_PRIVATE.
26091         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26092         * nss/makedb.c: Implement -g option to specify that value strings
26093         are generated and should not be added to table iterated over for
26094         get*ent calls.
26095         * nss/nss_db/db-initgroups.c: New file.
26096
26097         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26098         interface.
26099
26100         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26101         (internal_getgrouplist): Adjust to name change.
26102         Update use_initgroups_entry if this is not the first call.
26103         * nss/databases.def: Add initgroups entry.
26104
26105         * nss/makedb.c (compute_tables): Check result of multiple hash table
26106         sizes to minimize maximum chain length.
26107
26108 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26109
26110         * Versions.def: Add entry for libnss_db.
26111         * shlib-versions: Likewise.
26112         * nss/Makefile: Add rules to build libnss_db.
26113         * nss/Versions: Add libnss_db information.  Organize libnss_files
26114         entries better.
26115         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26116         makedb progra.  Some minor improvements to generate smaller files.
26117         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26118         here from...
26119         * nss/makedb.c: ...here.
26120         Improve database format to be smaller and require less memory at
26121         runtime.
26122         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26123         db anymore.
26124         * nss/nss_db/db-netgrp.c: Likewise.
26125         * nss/nss_db/db-open.c: Likewise.
26126         * nss/nss_files/flies-XXX.x: Adjust comments.
26127         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26128         * nss/nss_files/files-grp.c: Likewise.
26129         * nss/nss_files/files-hosts.c: Likewise.
26130         * nss/nss_files/files-network.c: Likewise.
26131         * nss/nss_files/files-proto.c: Likewise.
26132         * nss/nss_files/files-pwd.c: Likewise.
26133         * nss/nss_files/files-rpc.c: Likewise.
26134         * nss/nss_files/files-service.c: Likewise.
26135         * nss/nss_files/files-sgrp.c: Likewise.
26136         * nss/nss_files/files-spwd.c: Likewise.
26137         * nss/nss_db/db-alias.c: Removed.
26138         * nss/nss_db/dummy-db.h: Removed.
26139
26140 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26141
26142         * nss/makedb.c: Rewritten to not use database library.
26143         * nss/Makefile: Update to build new makedb program.
26144
26145 2011-06-14  Andreas Jaeger  <aj@suse.de>
26146
26147         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26148         memset declaration.
26149
26150 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26151
26152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26153         tmpbuf.
26154
26155 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26156
26157         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26158         * elf/Makefile ($(objpfx)ld.so): Likewise.
26159
26160         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26161         Don't list ld.so twice in dependencies.
26162
26163         * posix/bug-regex31.c: Include <stdlib.h>.
26164
26165         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26166
26167         * nis/nss_compat/compat-spwd.c
26168         (getspent_next_nss_netgr): Remove unused variable.
26169         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26170
26171         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26172         nonmembers" output to use the right array.
26173
26174         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26175
26176         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26177
26178         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26179         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26180         * catgets/gencat.c (read_input_file): Likewise.
26181         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26182
26183         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26184         variable definition inside #if's controlling its use.
26185
26186         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26187
26188         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26189
26190         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26191
26192         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26193         unreachable code.
26194
26195         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26196
26197         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26198         * configure: Regenerated.
26199
26200         * Makerules: Revert last change.
26201         * elf/Makefile: Likewise.
26202
26203 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26204
26205         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26206         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26207         (reloc-link): Likewise.
26208
26209 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26210
26211         * elf/Makefile: Add rules to build pldd.
26212         * elf/pldd.c: New file.
26213         * elf/pldd-xx.c: New file.
26214
26215 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26216
26217         * version.h: Update for 2.15 development version.
26218
26219 2011-06-07  David S. Miller  <davem@davemloft.net>
26220
26221         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26222         ifuncs.
26223         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26224         elf_machine_lazy_rel): Likewise.
26225         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26226         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26227         elf_machine_lazy_rel): Likewise.
26228         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26229         dl_hwcap via passed in argument.
26230         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26231         Likewise.
26232
26233 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26234
26235         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26236
26237 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26238
26239         [BZ #12849]
26240         * manual/fdl-1.1.texi: New file, verbatim from:
26241         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26242         * manual/lgpl-2.1.texi: New file, verbatim from:
26243         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26244         * manual/Makefile (licenses): New variable, list those new file names.
26245         (texis): Use it.
26246         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26247
26248         * manual/fdl.texi: File removed.
26249         * manual/lesser.texi: File removed.
26250         * manual/libc.texinfo (Copying, Documentation License):
26251         Use new @include file names, put @appendix directive before @include.
26252
26253 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26254
26255         [BZ #12841]
26256         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26257         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26258         (mq_open): Add __NTH.
26259
26260 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26261
26262         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26263         Assume Intel Core i3/i5/i7 processor if AVX is available.
26264
26265 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26266
26267         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26268         typo.
26269
26270 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26271
26272         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26273         memory.  Use alloca_account.  Fix memory leak when retrying.
26274
26275 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26276
26277         * version.h (RELEASE): Bump for 2.14 release.
26278         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26279
26280         * config.make.in (RANLIB): Remove entry.
26281
26282 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26283
26284         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26285         (libc.pot): Work around missing support for .ksh extension in xgettext.
26286
26287         [BZ #12684]
26288         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26289         if both request failed.
26290         (send_dg): In case of server errors clear resplen or *resplen2.
26291
26292         [BZ #12454]
26293         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26294         when there are multiple maps.
26295         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26296         (_dl_fini): Remove test here.
26297
26298         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26299
26300 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26301
26302         [BZ #12350]
26303         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26304         bit from old_res_options.
26305         (gaih_inet): Likewise.
26306
26307         [BZ #11099]
26308         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26309         as signed.
26310
26311         * resolv/res_init.c (res_setoptions): Make the code more compact.
26312
26313         [BZ #11558]
26314         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26315         set RES_USEVC.
26316
26317         [BZ #11634]
26318         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26319
26320         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26321
26322         [BZ #11781]
26323         * malloc/malloc.h: Declare malloc hook variables as volatile.
26324
26325         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26326         in last patch.
26327
26328         [BZ #11799]
26329         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26330         raise in the comment.
26331         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26332         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26333         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26334
26335 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26336
26337         [BZ #12811]
26338         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26339         grow the buffers more if it already has to be sufficient.
26340         (build_wcs_upper_buffer): Likewise.
26341         * posix/regexec.c (check_matching): Likewise.
26342         (clean_state_log_if_needed): Likewise.
26343         (extend_buffers): Don't enlarge buffers beyond size of the input
26344         buffer.
26345         Patches mostly by Emil Wojak <emil@wojak.eu>.
26346         * posix/bug-regex32.c: New file.
26347         * posix/Makefile (tests): Add bug-regex32.
26348
26349         * locale/findlocale.c (_nl_find_locale): Return right away if
26350         _nl_explode_name failed.
26351         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26352
26353         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26354
26355         * debug/xtrace.sh: Unify messages.
26356         * malloc/memusage.sh: Likewise.
26357
26358         [BZ #12813]
26359         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26360         time symbol from vDSO.  Substitute with vsyscall if not available.
26361         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26362         __vdso_time.
26363
26364         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26365         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26366         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26367         Add sendmmsg and internal_sendmmsg.
26368         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26369         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26370         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26371
26372         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26373         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26374         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26375
26376 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26377
26378         [BZ #12813]
26379         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26380         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26381         available.
26382         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26383         __vdso_getcpu.
26384
26385         [BZ #12814]
26386         * iconvdata/Makefile (tests): Add bug-iconv9.
26387         * iconvdata/bug-iconv9.c: New file.
26388
26389 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26390
26391         [BZ #12814]
26392         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26393
26394 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26395
26396         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26397         (struct user_regs_struct): Change intcs field back to cs.
26398
26399 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26400
26401         * po/ja.po: Update from translation team.
26402
26403 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26404
26405         [BZ #12795]
26406         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26407         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26408
26409 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26410
26411         * stdlib/longlong.h: Update from GCC.
26412
26413 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26414
26415         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26416         parameter name.
26417         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26418         Add parameter name.
26419         (__sysconf): Pass it down.
26420
26421 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26422
26423         [BZ #12671]
26424         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26425         some situations.
26426         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26427         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26428         add in in __libc_use_alloca calls.  Adjust callers.
26429         (glob): Use malloc in some situations.
26430
26431         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26432         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26433         pltexit.
26434
26435 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26436
26437         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26438         and CLOCK_BOOTTIME_ALARM.
26439
26440         [BZ #12782]
26441         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26442         is returned.
26443
26444         * string/_strerror.c (__strerror_r): Print negative errors as signed
26445         numbers.
26446
26447         [BZ #12777]
26448         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26449         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26450         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26451
26452         * configure.in: Fix typo in redirection and correct removal of test
26453         files in two cases.
26454
26455         [BZ #12788]
26456         * locale/setlocale.c (new_composite_name): Fix test to check for
26457         identical name of all categories.
26458
26459         [BZ #12792]
26460         * libio/filedoalloc.c (local_isatty): New function.
26461         (_IO_file_doallocate): Use local_isatty.
26462         * stdio-common/perror.c (perror): In case a new stream is used
26463         forward the stream error.
26464         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26465         error flag.
26466
26467 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26468
26469         [BZ #11869]
26470         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26471         alloca.
26472         * include/alloca.h (extend_alloca_account): Define.
26473
26474         [BZ #11857]
26475         * posix/regex.h: Fix comments with documentation of user-accessible
26476         fields after compilation and describe correct free'ing of pattern
26477         after re_compile_pattern.
26478         Patch by Reuben Thomas <rrt@sc3d.org>.
26479
26480 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26481
26482         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26483         and -mno-altivec to prevent the compiler from using Altivec and/or
26484         VSX instructions when the corresponding registers are not available.
26485
26486 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26487
26488         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26489
26490 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26491
26492         * libio/freopen.c (freopen): Use __dup2, not dup2.
26493         * libio/freopen64.c (freopen64): Likewise.
26494
26495 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26496
26497         [BZ #12775]
26498         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26499         * math/Makefile (tests): Add test-powl.
26500         (CFLAGS-test-powl.c): Define.
26501         * math/test-powl.c: New file.
26502
26503 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26504
26505         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26506
26507 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26508
26509         [BZ #11837]
26510         * iconvdata/gb18030.c: Update to GB18020-2005.
26511
26512 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26513
26514         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26515         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26516         Patch by Aharon Robbins <arnold@skeeve.com>.
26517
26518         [BZ #11892]
26519         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26520         on the stack.
26521
26522         [BZ #11895]
26523         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26524         through underflows.
26525
26526         [BZ #12766]
26527         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26528         point to strings before performing equality test for error_one_per_line
26529         mode.
26530
26531         [BZ #11697]
26532         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26533
26534         [BZ #11820]
26535         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26536         (struct user_fpregs_struct): Avoid __uint*_t types.
26537
26538         [BZ #6420]
26539         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26540         symbol info.  Use it instead of calling _dl_addr locally.
26541         (lock_and_info): New function.
26542         (tr_freehook): Call lock_and_info and pass symbol info as additional
26543         parameter to tr_where.
26544         (tr_mallochook): Likewise.
26545         (tr_reallochook): Likewise.
26546         (tr_memalignhook): Likewise.
26547
26548         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26549         used and couldn't be at all thread-safe.
26550
26551 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26552
26553         * libio/freopen.c (freopen): Don't close old file descriptor
26554         before the new one is opened.  Instead dup the new file descriptor
26555         to the old one after the new stream is created.
26556         * libio/freopen64.c (freopen64): Likewise.
26557         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26558         * libio/fileops.c (_IO_new_file_close_it): Handle new
26559         _IO_FLAGS2_NOCLOSE flag.
26560         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26561         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26562         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26563         _IO_FLAGS2_NOCLOSE flag.
26564         * include/unistd.h: Add hidden_proto for dup3.
26565         Define __have_dup3.
26566         * io/dup3.c: Define hidden symbol.
26567         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26568
26569         [BZ #7101]
26570         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26571         when an incomplete long option is used.
26572         * posix/tst-getopt_long1.c: New file.
26573         * posix/Makefile (tests): Add tst-getopt_long1.
26574
26575         [BZ #10138]
26576         * scripts/config.guess: Update from autoconf-2.68.
26577         * scripts/config.sub: Likewise.
26578
26579         [BZ #10157]
26580         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26581         tests into ...
26582         (has_cpuclock): ...this.  New function.
26583         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26584         macro here based on has_cpuclock code.
26585
26586         [BZ #10149]
26587         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26588         First byte (not low byte) is now always NUL.
26589         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26590
26591         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26592         Use non-cancelable interfaces.
26593
26594         [BZ #9809]
26595         * locale/iso-639.def: Add entry for Sorani.
26596
26597         [BZ #11901]
26598         * include/stdlib.h: Move include protection to the right place.
26599         Define abort_msg_s.  Declare __abort_msg with it.
26600         * stdlib/abort.c (__abort_msg): Adjust type.
26601         * assert/assert.c (__assert_fail_base): New function.  Majority
26602         of code from __assert_fail.  Allocate memory for __abort_msg with
26603         mmap.
26604         (__assert_fail): Now call __assert_fail_base.
26605         * assert/assert-perr.c: Remove bulk of implementation.  Use
26606         __assert_fail_base.
26607         * include/assert.hL Declare __assert_fail_base.
26608         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26609         mmap.
26610         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26611
26612 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26613
26614         [BZ #11952]
26615         [BZ #12453]
26616         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26617         until all modules are registered in the DTV.
26618         * elf/Makefile: Add rules to build and run tst-tls19.
26619         * elf/tst-tls19.c: New file.
26620         * elf/tst-tls19mod1.c: New file.
26621         * elf/tst-tls19mod2.c: New file.
26622         * elf/tst-tls19mod3.c: New file.
26623         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26624
26625         [BZ #12083]
26626         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26627         correctly.
26628
26629         [BZ #12601]
26630         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26631         two-byte sequence errors.
26632         * iconvdata/Makefile (tests): Add bug-iconv8.
26633         * iconvdata/bug-iconv8.c: New file.
26634
26635         [BZ #12626]
26636         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26637         buf2 definition.
26638
26639         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26640
26641         [BZ #12432]
26642         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26643         (dummy_getcfa): New function.
26644         (init): Get _Unwind_GetCFA address, use dummy if not found.
26645         (backtrace_helper): In recursion check, also check whether CFA changes.
26646         (__backtrace): Completely initialize arg.
26647
26648         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26649         storing incomplete byte sequence in state object.  Avoid testing for
26650         guaranteed too small input if we know there is enough data available.
26651
26652 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26653
26654         * Makeconfig (+link-pie): Indent.
26655         * Rules (binaries-pie): Define if $(have-fpie) and
26656         $(build-shared).
26657         (binaries-shared): Also filter out $(binaries-pie).
26658         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26659         * nscd/Makefile (others-pie): Add nscd.
26660         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26661         ($(objpfx)nscd): Remove command override.
26662         * login/Makefile (others-pie): Add pt_chown.
26663         ($(objpfx)pt_chown): Remove command override.
26664         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26665         remove command overrides.
26666
26667 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26668
26669         * libio/tst_putwc.c: Fix error messages.
26670
26671         [BZ #12724]
26672         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26673         currently writing and seek to current position when not.
26674         * libio/Makefile (tests): Add bug-fclose1.
26675         * libio/bug-fclose1.c: New file.
26676
26677 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26678
26679         [BZ #12511]
26680         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26681         don't set DF_1_NODELETE here.
26682         (do_lookup_x): When entering new entry test for copy relocation
26683         and if necessary set DF_1_NODELETE flag.
26684         * elf/tst-unique4.cc: New file.
26685         * elf/tst-unique4.h: New file.
26686         * elf/tst-unique4lib.cc: New file.
26687         * elf/Makefile: Add rules to build and run tst-unique4.
26688         Patch by Piotr Bury <pbury@goahead.com>.
26689
26690 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26691
26692         [BZ #12052]
26693         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26694
26695         [BZ #12625]
26696         * misc/mntent_r.c (addmntent): Flush the stream after the output
26697
26698         [BZ #12393]
26699         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26700         (is_trusted_path_normalize): Skip initial colon.  Append slash
26701         to empty buffer.  Duplicate is_trusted_path code but allow
26702         constructed patch to be prefix.
26703         (is_dst): Allow $ORIGIN followed by /.
26704         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26705         Correct testing of result of is_trusted_path_normalize
26706         (decompose_rpath): Fix warning.
26707
26708 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26709
26710         [BZ #11257]
26711         * grp/initgroups.c (internal_getgrouplist): When we found the service
26712         list through the initgroups entry in nsswitch.conf do not always
26713         continue on a successful lookup.  Don't always use the
26714         __nss_group_database value if it is set.
26715         * nss/nsswitch.conf (initgroups): Change action for successful db
26716         lookup to continue for compatibility.
26717
26718 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26719
26720         [BZ #11532]
26721         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26722         and CP774 modules.
26723         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26724         and CP774 modules.
26725         * iconvdata/tst-tables.sh: Likewise.
26726         * iconvdata/cp770.c: New file.
26727         * iconvdata/cp771.c: New file.
26728         * iconvdata/cp772.c: New file.
26729         * iconvdata/cp773.c: New file.
26730         * iconvdata/cp774.c: New file.
26731         * iconvdata/testdata/CP770: New file.
26732         * iconvdata/testdata/CP770..UTF8: New file.
26733         * iconvdata/testdata/CP771: New file.
26734         * iconvdata/testdata/CP771..UTF8: New file.
26735         * iconvdata/testdata/CP772: New file.
26736         * iconvdata/testdata/CP772..UTF8: New file.
26737         * iconvdata/testdata/CP773: New file.
26738         * iconvdata/testdata/CP773..UTF8: New file.
26739         * iconvdata/testdata/CP774: New file.
26740         * iconvdata/testdata/CP774..UTF8: New file.
26741
26742         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26743         END CHARMAP line.
26744         * iconvdata/gen-8bit-gap.sh: Likewise.
26745         * iconvdata/gen-8bit.sh: Likewise.
26746
26747         * locale/iso-639.def: Add ary entry.
26748
26749         [BZ #11258]
26750         * locale/C-translit.h.in: Add U20A1 transliteration.
26751
26752         [BZ #12178]
26753         * locale/iso-639.def: Add wae entry.
26754         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26755
26756         [BZ #12545]
26757         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26758         for n.
26759
26760         [BZ #12711]
26761         * locale/C-translit.h.in: Add entry for U20B9.
26762         Patch by pravin.d.s@gmail.com.
26763
26764 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26765
26766         [BZ #12713]
26767         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26768         ENAMETOOLONG use generic getcwd.
26769         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26770         in rtld.  Use *stat64.
26771         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26772         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26773         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26774         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26775         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26776         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26777         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26778         __fstatat64 macros.
26779         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26780         * dirent/rewinddir.c: Add libc_hidden_def.
26781         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26782         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26783
26784         * include/dirent.h (__alloc_dir): Add flags parameter.
26785         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26786         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26787         __alloc_dir.
26788         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26789         from fdopendir if O_CLOEXEC is already set.
26790
26791 2011-03-15  Alan Modra  <amodra@gmail.com>
26792
26793         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26794         l_tls_firstbyte_offset non-zero.  Save padding offset in
26795         l_tls_firstbyte_offset for later use.
26796         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26797         freeing static tls block.
26798
26799 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26800
26801         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26802         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26803         being defined by the kernel headers.
26804
26805 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26806
26807         [BZ #12734]
26808         * resolv/resolv.h: Define RES_NOTLDQUERY.
26809         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26810         no-tld-query and set RES_NOTLDQUERY.
26811         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26812         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26813         modern BIND to search name as TLD unless forbidden.
26814
26815 2011-05-07  Petr Baudis  <pasky@suse.cz>
26816             Ulrich Drepper  <drepper@gmail.com>
26817
26818         [BZ #12393]
26819         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26820         (is_trusted_path): ...to here.
26821         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26822         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26823         using is_trusted_path_normalize() in setuid scripts.
26824
26825 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26826
26827         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26828         __BEGIN/__END_DECLS.
26829
26830 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26831
26832         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26833         NSS_STATUS_NOTFOUND if no record was found.
26834
26835 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26836
26837         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26838         (headers-not-in-tirpc): Remove rpc/netdb.h
26839         * resolv/netdb.h: Revert last change.
26840
26841 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26842
26843         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26844         circular dependency between libgcc.a and libc.a.
26845
26846 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26847
26848         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26849         * nis/Makefile: Don't install rpcsvc/*.
26850         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26851         instead of <rpc/types.h>.
26852         (MAXHOSTNAMELEN): Define.
26853
26854 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26855
26856         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26857
26858 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26859
26860         [BZ #12714]
26861         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26862         gethostbyname4_r when IPv6 results are possible.
26863
26864 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26865
26866         [BZ #12723]
26867         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26868         _PC_PIPE_BUF handling.
26869
26870 2011-04-30  Bruno Haible  <bruno@clisp.org>
26871
26872         [BZ #12717]
26873         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26874         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26875         to 'int'.
26876         * inet/getnameinfo.c (getnameinfo): Likewise.
26877
26878 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26879
26880         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26881         to groups setting in database lookup.
26882         * nss/nsswitch.conf: Add initgroups entry.
26883
26884 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26885
26886         [BZ #12685]
26887         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26888         mode string.
26889         Patch by Eric Blake <eblake@redhat.com>.
26890
26891 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26892
26893         * sunrpc/Makefile (need-export-routines): Add svc_run.
26894         (routines): Remove svc_run.
26895         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26896         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26897         * sunrpc/svc_run.c (svc_run): Likewise.
26898         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26899
26900 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26901
26902         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26903         problem in reallocation in last patch.
26904
26905 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26906
26907         * sunrpc/Makefile: Move inclusion of Rules.
26908
26909 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26910
26911         * nss/nss_files/files-initgroups.c: New file.
26912         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26913         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26914         _nss_files_initgroups_dyn.
26915
26916 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26917
26918         * elf/elf.h (R_ARM_IRELATIVE): Define.
26919
26920 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26921
26922         * po/ru.po: Update from translation team.
26923
26924 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26925
26926         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26927         dependencies.
26928
26929 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26930
26931         [BZ #12653]
26932         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26933         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26934         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26935         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26936         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26937
26938 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26939
26940         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26941         differing bytes.
26942         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26943         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26944         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26945
26946 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26947
26948         [BZ #12420]
26949         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26950         storing it.
26951         * stdlib/bug-getcontext.c: New file.
26952         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26953
26954 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26955
26956         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26957         instructions into .machine "z9-109".
26958         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26959         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26960
26961 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26962
26963         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26964         between environment variables and auxiliary vector.
26965
26966 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26967
26968         * Makefile: Add rules to build linkobj/libc.so.
26969         * include/libc-symbols.h: Define libc_hidden_nolink.
26970         * include/rpc/auth.h: Mark functions which are to be hidden.
26971         * include/rpc/auth_des.h: Likewise.
26972         * include/rpc/auth_unix.h: Likewise.
26973         * include/rpc/clnt.h: Likewise.
26974         * include/rpc/des_crypt.h: Likewise.
26975         * include/rpc/key_prot.h: Likewise.
26976         * include/rpc/pmap_clnt.h: Likewise.
26977         * include/rpc/pmap_prot.h: Likewise.
26978         * include/rpc/pmap_rmt.h: Likewise.
26979         * include/rpc/rpc_msg.h: Likewise.
26980         * include/rpc/svc.h: Likewise.
26981         * include/rpc/svc_auth.h: Likewise.
26982         * include/rpc/xdr.h: Likewise.
26983         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26984         * nss/Makefile: Likewise.
26985         * sunrpc/Makefile: Don't install headers.  Build library with normal
26986         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26987         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26988         for the compat linking library.  Remove use of INTDEF/INTUSE.
26989         * sunrpc/auth_none.c: Likewise.
26990         * sunrpc/auth_unix.c: Likewise.
26991         * sunrpc/authdes_prot.c: Likewise.
26992         * sunrpc/authuxprot.c: Likewise.
26993         * sunrpc/clnt_gen.c: Likewise.
26994         * sunrpc/clnt_perr.c: Likewise.
26995         * sunrpc/clnt_raw.c: Likewise.
26996         * sunrpc/clnt_simp.c: Likewise.
26997         * sunrpc/clnt_tcp.c: Likewise.
26998         * sunrpc/clnt_udp.c: Likewise.
26999         * sunrpc/clnt_unix.c: Likewise.
27000         * sunrpc/des_crypt.c: Likewise.
27001         * sunrpc/des_soft.c: Likewise.
27002         * sunrpc/get_myaddr.c: Likewise.
27003         * sunrpc/key_call.c: Likewise.
27004         * sunrpc/key_prot.c: Likewise.
27005         * sunrpc/netname.c: Likewise.
27006         * sunrpc/pm_getmaps.c: Likewise.
27007         * sunrpc/pm_getport.c: Likewise.
27008         * sunrpc/pmap_clnt.c: Likewise.
27009         * sunrpc/pmap_prot.c: Likewise.
27010         * sunrpc/pmap_prot2.c: Likewise.
27011         * sunrpc/pmap_rmt.c: Likewise.
27012         * sunrpc/publickey.c: Likewise.
27013         * sunrpc/rpc_cmsg.c: Likewise.
27014         * sunrpc/rpc_common.c: Likewise.
27015         * sunrpc/rpc_dtable.c: Likewise.
27016         * sunrpc/rpc_prot.c: Likewise.
27017         * sunrpc/rpc_thread.c: Likewise.
27018         * sunrpc/rtime.c: Likewise.
27019         * sunrpc/svc.c: Likewise.
27020         * sunrpc/svc_auth.c: Likewise.
27021         * sunrpc/svc_authux.c: Likewise.
27022         * sunrpc/svc_raw.c: Likewise.
27023         * sunrpc/svc_run.c: Likewise.
27024         * sunrpc/svc_simple.c: Likewise.
27025         * sunrpc/svc_tcp.c: Likewise.
27026         * sunrpc/svc_udp.c: Likewise.
27027         * sunrpc/svc_unix.c: Likewise.
27028         * sunrpc/svcauth_des.c: Likewise.
27029         * sunrpc/xcrypt.c: Likewise.
27030         * sunrpc/xdr.c: Likewise.
27031         * sunrpc/xdr_array.c: Likewise.
27032         * sunrpc/xdr_float.c: Likewise.
27033         * sunrpc/xdr_intXX_t.c: Likewise.
27034         * sunrpc/xdr_mem.c: Likewise.
27035         * sunrpc/xdr_rec.c: Likewise.
27036         * sunrpc/xdr_ref.c: Likewise.
27037         * sunrpc/xdr_sizeof.c: Likewise.
27038         * sunrpc/xdr_stdio.c: Likewise.
27039
27040 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27041
27042         [BZ #12650]
27043         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27044         * sysdeps/ia64/dl-tls.h: Likewise.
27045         * sysdeps/powerpc/dl-tls.h: Likewise.
27046         * sysdeps/s390/dl-tls.h: Likewise.
27047         * sysdeps/sh/dl-tls.h: Likewise.
27048         * sysdeps/sparc/dl-tls.h: Likewise.
27049         * sysdeps/x86_64/dl-tls.h: Likewise.
27050         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27051
27052 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27053
27054         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27055         rpath element also skip the following colon.
27056         (expand_dynamic_string_token): Add is_path parameter and pass
27057         down to DL_DST_REQUIRED and _dl_dst_substitute.
27058         (decompose_rpath): Call expand_dynamic_string_token with
27059         non-zero is_path.  Ignore empty rpaths.
27060         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27061         with zero is_path.
27062
27063 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27064
27065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27066         Make cancelable.
27067
27068 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27069
27070         [BZ #12655]
27071         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27072         Patch by Filipe David Manana <fdmanana@apache.org>.
27073
27074 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27075
27076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27077         Maintain aligned stack.
27078         (CHECK_RSP): Remove unused macro.
27079
27080 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27081
27082         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27083         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27084
27085 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27086
27087         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27088
27089         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27090
27091 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27092
27093         [BZ #12518]
27094         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27095         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27096         * sysdeps/x86_64/memmove.c: New file.
27097         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27098         (memcpy): Renamed to ...
27099         (__new_memcpy): This.
27100         (memcpy): Provide GLIBC_2_14 memcpy.
27101         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27102         (memcpy): Provide GLIBC_2_2_5 memcpy.
27103
27104 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27105
27106         [BZ #12631]
27107         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27108
27109 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27110
27111         * misc/syncfs.c: New file.
27112         * misc/Makefile (routines): Add syncfs.
27113         * posix/unistd.h: Declare syncfs.
27114         * sysdeps/unix/syscalls.list: Add syncfs.
27115
27116 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27117
27118         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27119         open_by_handle_at.
27120         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27121         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27122         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27123         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27124         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27125         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27126         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27127
27128 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27129
27130         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27131         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27132         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27133         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27134         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27135         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27136         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27137
27138         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27139         sync_file_range.c with -fexceptions.
27140         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27141         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27142         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27143         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27144         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27145         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27146         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27147         sync_file_range as cancellation point
27148         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27149         now a wrapper around __call_sync_file_range with cancellation handling.
27150         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27151         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27152         function name to __call_sync_file_range.
27153         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27154         Add call_sync_file_range.
27155
27156 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27157
27158         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27159         bits/timex.h.
27160
27161 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27162
27163         * iconv/iconv.h: Fix typo in comment.
27164         * io/fcntl.h: Likewise.
27165         * libio/stdio.h: Likewise.
27166         * posix/spawn.h: Likewise.
27167         * posix/unistd.h: Likewise.
27168         * stdlib/stdlib.h: Likewise.
27169         * time/time.h: Likewise.
27170         * wcsmbs/wchar.h: Likewise.
27171
27172         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27173         open_by_handle): Add.
27174         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27175         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27176         Augment a few comments.
27177         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27178         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27179         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27180         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27181         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27182         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27183         open_by_handle.
27184
27185         * io/fcntl.h (AT_EMPTY_PATH): Define.
27186
27187 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27188
27189         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27190         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27191         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27192         to...
27193         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27194         * Versions.def: Add GLIBC_2.14.
27195         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27196         Export.
27197
27198 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27199
27200         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27201         round counter.
27202         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27203
27204 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27205
27206         [BZ #12597]
27207         * string/test-strncmp.c (do_page_test): New function.
27208         (check2): Likewise.
27209         (test_main): Call check2.
27210         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27211
27212 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27213
27214         [BZ #12587]
27215         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27216         Handle cache information in CPU leaf 4.
27217         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27218
27219 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27220
27221         [BZ #12583]
27222         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27223         character representation.
27224         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27225
27226 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27227
27228         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27229         END(__isnan) to END(__isnanf) to match function entry point/label
27230         EALIGN(__isnanf,...).
27231
27232 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27233
27234         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27235
27236 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27237
27238         [BZ #12510]
27239         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27240         copy from the symbol referenced in the relocation to initialize the
27241         used variable.
27242         Patch by Piotr Bury <pbury@goahead.com>.
27243         * elf/Makefile: Add rules to build and tst-unique3.
27244         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27245         * elf/tst-unique3.cc: New file.
27246         * elf/tst-unique3.h: New file.
27247         * elf/tst-unique3lib.cc: New file.
27248         * elf/tst-unique3lib2.cc: New file.
27249
27250         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27251
27252 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27253
27254         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27255         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27256         to _start.
27257
27258 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27259
27260         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27261         to-be-loaded object along a path to loader is ld.so.
27262
27263 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27264             Ulrich Drepper  <drepper@gmail.com>
27265
27266         * sysdeps/x86_64/memset.S: After aligning destination, code
27267         branches to different locations depending on the value of
27268         misalignment, when multiarch is enabled. Fix this.
27269
27270 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27271
27272         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27273         Set _x86_64_preferred_memory_instruction for AMD processsors.
27274         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27275         Set bit_Prefer_SSE_for_memop for AMD processors.
27276
27277 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27278
27279         * libio/fmemopen.c (fmemopen): Optimize a bit.
27280
27281 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27282
27283         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27284
27285 2011-03-03  Roland McGrath  <roland@redhat.com>
27286
27287         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27288
27289 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27290
27291         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27292         __bzero_ultra1 instead of __memset_ultra1.
27293
27294 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27295             Ulrich Drepper  <drepper@gmail.com>
27296
27297         [BZ #12509]
27298         * include/link.h (struct link_map): Add l_orig_initfini.
27299         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27300         returning unsuccessfully.
27301         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27302         close of a file loaded at startup, restore the original l_initfini
27303         list.
27304         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27305         list, store the pointer.
27306         * elf/Makefile ($(objpfx)noload-mem): New rule.
27307         (noload-ENV): Define.
27308         (tests): Add $(objpfx)noload-mem.
27309         * elf/noload.c: Include <memcheck.h>.
27310         (main): Call mtrace.  Close all opened handles.
27311
27312 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27313
27314         [BZ #12454]
27315         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27316         dependencies are missing.
27317
27318 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27319
27320         Fix __if_freereq crash: Unlike the generic version which uses free,
27321         Hurd needs munmap.
27322         * sysdeps/mach/hurd/ifreq.h: New file.
27323
27324 2011-01-27  Petr Baudis  <pasky@suse.cz>
27325             Ulrich Drepper  <drepper@gmail.com>
27326
27327         [BZ 12445]#
27328         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27329         to extend_alloca().
27330         * stdio-common/bug23.c: New file.
27331         * stdio-common/Makefile (tests): Add bug23.
27332
27333 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27334             Ulrich Drepper  <drepper@gmail.com>
27335
27336         [BZ #12489]
27337         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27338         before performing relro protection.  At old place add assertion
27339         to make sure nothing changed.
27340
27341 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27342             Glauber de Oliveira Costa  <glommer@gmail.com>
27343
27344         * elf/elf.h: Add new ARM TLS relocs.
27345
27346 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27347
27348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27349         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27350         cast from r3.
27351         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27352         'tests' variable.
27353         * sysdeps/wordsize-64/tst-writev.c: New file.
27354
27355 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27356
27357         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27358         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27359         insns in _dl_start to prevent a TOC reference before relocs are
27360         resolved.
27361
27362 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27363
27364         [BZ #12469]
27365         * Makeconfig: Remove RANLIB definition.
27366         * Makerules: Don't use RANLIB.
27367         * aclocal.m4: Remove ranlib test.
27368         * configure.in: No need to check for ranlib.
27369         * elf/rtld-Rules: Don't use RANLIB.
27370
27371 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27372
27373         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27374         protection macro.
27375         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27376         inclusion protection macro.
27377
27378         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27379         SIGRTMIN and SIGRTMAX and print information in that case only when
27380         SIGRTMIN is defined.
27381
27382 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27383
27384         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27385         arginfo fn returning -1.
27386
27387         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27388         and thousands string is zero terminated.
27389
27390 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27391
27392         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27393         sysdeps/unix/sysv/linux/bits/socket.h.
27394
27395 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27396
27397         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27398         (__CPU_COUNT): Remove old macros.
27399         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27400         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27401         (__CPU_ALLOC, __CPU_FREE): Add macros.
27402         (__sched_cpualloc, __sched_cpufree): Add declarations.
27403
27404 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27405
27406         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27407         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27408         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27409         (readdhstai): Return value of addhstaiX call.
27410         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27411         (addgrbyX): Return value returned by cache_addgr.
27412         (readdgrbyname): Return value returned by addgrbyX.
27413         (readdgrbygid): Likewise.
27414         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27415         (addpwbyX): Return value returned by cache_addpw.
27416         (readdpwbyname): Return value returned by addhstbyX.
27417         (readdpwbyuid): Likewise.
27418         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27419         (addservbyX): Return value returned by cache_addserv.
27420         (readdservbyname): Return value returned by addservbyX:
27421         (readdservbyport): Likewise.
27422         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27423         (addhstbyX): Return value returned by cache_addhst.
27424         (readdhstbyname): Return value returned by addhstbyX.
27425         (readdhstbyaddr): Likewise.
27426         (readdhstbynamev6): Likewise.
27427         (readdhstbyaddrv6): Likewise.
27428         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27429         (readdinitgroups): Return value returned by addinitgroupsX.
27430         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27431         (prune_cache): Keep track of timeout value of re-added entries.
27432         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27433         * nscd/nscd.h: Adjust prototypes of readd* functions.
27434
27435 2011-02-04  Roland McGrath  <roland@redhat.com>
27436
27437         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27438         (nis_stats): Likewise.
27439         * nis/nis_modify.c (nis_modify): Likewise.
27440         * nis/nis_remove.c (nis_remove): Likewise.
27441         * nis/nis_add.c (nis_add): Likewise.
27442
27443         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27444
27445         * posix/fnmatch_loop.c: Add some consts.
27446
27447         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27448
27449 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27450
27451         [BZ #12460]
27452         * config.make.in (config-cflags-novzeroupper): Define.
27453         * configure.in: Substitute libc_cv_cc_novzeroupper.
27454         * elf/Makefile (AVX-CFLAGS): Define.
27455         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27456         (CFLAGS-tst-auditmod4a.c): Likewise.
27457         (CFLAGS-tst-auditmod4b.c): Likewise.
27458         (CFLAGS-tst-auditmod6b.c): Likewise.
27459         (CFLAGS-tst-auditmod6c.c): Likewise.
27460         (CFLAGS-tst-auditmod7b.c): Likewise.
27461         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27462
27463 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27464
27465         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27466         function to the callback.
27467         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27468
27469 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27470
27471         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27472         of errno.
27473
27474 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27475
27476         [BZ #11724]
27477         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27478         of constructors.
27479         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27480         of destructors.
27481         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27482
27483         [BZ #11724]
27484         * elf/Makefile: Add rules to build and run new test.
27485         * elf/tst-initorder.c: New file.
27486         * elf/tst-initorder.exp: New file.
27487         * elf/tst-initordera1.c: New file.
27488         * elf/tst-initordera2.c: New file.
27489         * elf/tst-initordera3.c: New file.
27490         * elf/tst-initordera4.c: New file.
27491         * elf/tst-initorderb1.c: New file.
27492         * elf/tst-initorderb2.c: New file.
27493         * elf/tst-order-a1.c: New file.
27494         * elf/tst-order-a2.c: New file.
27495         * elf/tst-order-a3.c: New file.
27496         * elf/tst-order-a4.c: New file.
27497         * elf/tst-order-b1.c: New file.
27498         * elf/tst-order-b2.c: New file.
27499         * elf/tst-order-main.c: New file.
27500         New test case by George Gensure <werkt0@gmail.com>.
27501
27502 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27503
27504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27505         decoding ACE if AI_CANONIDN.
27506
27507 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27508
27509         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27510
27511 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27512
27513         * version.h (RELEASE): Bump for 2.13 release.
27514         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27515
27516         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27517
27518         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27519         MADV_NOHUGEPAGE.
27520         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27521         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27522         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27523         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27524         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27525         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27526
27527         * posix/getconf.c: Update copyright year.
27528         * catgets/gencat.c: Likewise.
27529         * csu/version.c: Likewise.
27530         * debug/catchsegv.sh: Likewise.
27531         * debug/xtrace.sh: Likewise.
27532         * elf/ldconfig.c: Likewise.
27533         * elf/ldd.bash.in: Likewise.
27534         * elf/sprof.c (print_version): Likewise.
27535         * iconv/iconv_prog.c: Likewise.
27536         * iconv/iconvconfig.c: Likewise.
27537         * locale/programs/locale.c: Likewise.
27538         * locale/programs/localedef.c: Likewise.
27539         * malloc/memusage.sh: Likewise.
27540         * malloc/mtrace.pl: Likewise.
27541         * nscd/nscd.c (print_version): Likewise.
27542         * nss/getent.c: Likewise.
27543
27544         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27545         PF_CAIF, and PF_ALG.
27546         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27547
27548 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27549
27550         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27551         (modules-names): Use them.
27552         (ifunc-test-modules, ifunc-pie-tests): Define.
27553         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27554         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27555         (test-extras): Likewise.
27556         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27557         $(compile-command.c).
27558         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27559         (all-built-dso): Define.
27560         (check-textrel.out, check-execstack.out): Depend on it.
27561
27562         * configure.in: Don't override --enable-multi-arch.
27563
27564 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27565
27566         [BZ #6812]
27567         * nscd/hstcache.c (tryagain): Define.
27568         (cache_addhst): Return tryagain not notfound for temporary errors.
27569         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27570         failed.
27571
27572 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27573
27574         [BZ #10563]
27575         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27576         to make the syscall.
27577         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27578
27579         [BZ #12378]
27580         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27581         and fall back to matching as normal character if the string ends before
27582         the matching ']' is found.  This is what POSIX requires.
27583         * posix/testfnm.c: Adjust test result.
27584         * posix/globtest.sh: Adjust test result.  Add new test.
27585         * posix/tst-fnmatch.input: Likewise.
27586         * posix/tst-fnmatch2.c: Add new test.
27587
27588 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27589
27590         * elf/Makefile (check-execstack): Revert last change.  Depend on
27591         check-execstack.h.
27592         (check-execstack.h): New target.
27593         (generated): Add check-execstack.h.
27594         * elf/check-execstack.c: Include "check-execstack.h".
27595         (main): Revert last change.
27596         (handle_file): Return zero if GNU_STACK is absent and
27597         DEFAULT_STACK_PERMS doesn't include PF_X.
27598
27599 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27600
27601         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27602         in child fails because the descriptor is already closed.
27603         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27604         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27605         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27606
27607         [BZ #12397]
27608         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27609         syscall.
27610
27611         [BZ #10484]
27612         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27613         temporary buffer used to handle multi lookups locally.
27614         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27615
27616 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27617
27618         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27619         loader is ld.so.
27620
27621 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27622
27623         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27624         alignment for SSE2.
27625
27626 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27627
27628         [BZ #12394]
27629         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27630         characters.  When rounding increased number of integer digits recompute
27631         number of groups.
27632         * stdio-common/tst-grouping.c: New file.
27633         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27634
27635 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27636
27637         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27638         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27639
27640         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27641         void.
27642         * bits/select.h: Likewise.
27643
27644 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27645
27646         * po/ja.po: Update from translation team.
27647
27648 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27649
27650         [BZ #11155]
27651         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27652         implementation just like for lxstat, fxstatat, et al.
27653
27654 2010-12-27  Jim Meyering  <meyering@redhat.com>
27655
27656         [BZ #12348]
27657         * posix/regexec.c (build_trtable): Return failure indication upon
27658         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27659
27660 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27661
27662         [BZ #12201]
27663         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27664         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27665         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27666         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27667
27668         [BZ #12207]
27669         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27670
27671         [BZ #12204]
27672         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27673         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27674
27675 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27676
27677         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27678         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27679         script has SORT_BY_INIT_PRIORITY.
27680         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27681         NO_CTORS_DTORS_SECTIONS is defined.
27682         * elf/soinit.c: Likewise.
27683         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27684         NO_CTORS_DTORS_SECTIONS is defined.
27685         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27686         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27687         * sysdeps/sh/init-first.c: Likewise.
27688         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27689
27690 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27691
27692         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27693         always use the slow path.
27694
27695 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27696
27697         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27698         similar rule which adds the sysdep directories to the header search in
27699         order to pick up the correct platform stackinfo.h.
27700         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27701         perform test if it is, otherwise return successfully without testing.
27702         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27703         DEFAULT_STACK_PERMS define in stackinfo.h.
27704         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27705         defined in stackinfo.h.
27706         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27707         DEFAULT_STACK_PERMS defined in stackinfo.h.
27708         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27709         * sysdeps/ia64/stackinfo.h: Likewise.
27710         * sysdeps/s390/stackinfo.h: Likewise.
27711         * sysdeps/sh/stackinfo.h: Likewise.
27712         * sysdeps/sparc/stackinfo.h: Likewise.
27713         * sysdeps/x86_64/stackinfo.h: Likewise.
27714         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27715         PF_X for powerpc64.  Retain PF_X for powerpc32.
27716
27717 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27718
27719         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27720         accurately.
27721         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27722         GETDENTS_64BIT_ALIGNED.
27723
27724 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27725
27726         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27727
27728 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27729
27730         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27731         _GNU_SOURCE.
27732
27733         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27734         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27735         Remove __restrict.
27736         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27737         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27738
27739 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27740
27741         [BZ #11655]
27742         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27743         are initialized.
27744
27745 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27746
27747         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27748
27749 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27750
27751         * po/it.po: Update from translation team.
27752
27753 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27754
27755         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27756         unused codes.
27757
27758 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27759
27760         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27761
27762 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27763
27764         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27765         specially.
27766         (gaih_getanswer_slice): Likewise.
27767
27768 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27769
27770         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27771
27772 2010-05-31  Petr Baudis  <pasky@suse.cz>
27773
27774         [BZ #11149]
27775         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27776         silently even in the chroot mode.
27777
27778 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27779
27780         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27781         last patch a bit.  Pretty printing
27782
27783 2010-05-31  Petr Baudis <pasky@suse.cz>
27784
27785         [BZ #10085]
27786         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27787         initialization of skip_initgroups_dyn.
27788
27789 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27790
27791         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27792         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27793
27794 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27795
27796         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27797
27798 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27799
27800         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27801         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27802         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27803         ($(objpfx)tst-fnmatch-mem): New rule.
27804         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27805         * posix/tst-fnmatch.c (main): Call mtrace.
27806
27807 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27808
27809         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27810         Support Intel processor model 6 and model 0x2c.
27811
27812 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27813
27814         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27815           signed comparison.
27816
27817 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27818
27819         [BZ #12205]
27820         * string/test-strncasecmp.c (check_result): New function.
27821         (do_one_test): Use it.
27822         (check1): New function.
27823         (test_main): Use it.
27824         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27825         Support strcasecmp and strncasecmp.
27826
27827 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27828
27829         [BZ #12194]
27830         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27831         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27832
27833 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27834
27835         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27836         IFUNC support.
27837         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27838         memset-x86-64.
27839         * sysdeps/x86_64/multiarch/bzero.S: New file.
27840         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27841         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27842         * sysdeps/x86_64/multiarch/memset.S: New file.
27843         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27844         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27845         Set bit_Prefer_SSE_for_memop for Intel processors.
27846         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27847         Define.
27848         (index_Prefer_SSE_for_memop): Define.
27849         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27850
27851 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27852
27853         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27854         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27855
27856 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27857
27858         [BZ #12191]
27859         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27860         (__x86_64_raw_data_cache_size_half): Likewise.
27861         (__x86_64_raw_shared_cache_size): Likewise.
27862         (__x86_64_raw_shared_cache_size_half): Likewise.
27863
27864         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27865         (__x86_64_raw_data_cache_size_half): Likewise.
27866         (__x86_64_raw_shared_cache_size): Likewise.
27867         (__x86_64_raw_shared_cache_size_half): Likewise.
27868         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27869         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27870         and __x86_64_raw_shared_cache_size_half.  Round
27871         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27872         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27873         to multiple of 256 bytes.
27874
27875 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27876
27877         [BZ #12167]
27878         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27879         of inacessible symlinks.  Verify result of symlink before returning it.
27880         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27881         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27882
27883 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27884
27885         * math/math.h (isinf): Fix typo in comment.
27886
27887 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27888
27889         * po/da.po: Update from translation team.
27890
27891 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27892
27893         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27894         is added to the list.
27895
27896 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27897             Ulrich Drepper  <drepper@gmail.com>
27898
27899         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27900         the global list here.  Move code to...
27901         (_dl_add_to_namespace_list): ...here.  New function.
27902         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27903         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27904         * elf/dl-load.c (lose): Don't remove the element from the list.
27905         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27906         (_dl_map_object): Likewise.
27907
27908 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27909
27910         [BZ #12159]
27911         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27912         into all bytes of SSE register.
27913         Patch by Richard Li <richardpku@gmail.com>.
27914
27915 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27916
27917         [BZ #12140]
27918         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27919         perturbing.
27920
27921 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27922
27923         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27924         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27925         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27926         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27928         submachine.
27929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27930
27931 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27932
27933         * include/dlfcn.h (__RTLD_SECURE): Define.
27934         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27935         mode & __RTLD_SECURE instead.
27936         (open_path): Rename preloaded parameter to secure.
27937         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27938         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27939         * elf/dl-deps.c (openaux): Likewise.
27940         * elf/rtld.c (struct map_args): Remove is_preloaded.
27941         (map_doit): Don't use it.
27942         (dl_main): Likewise.
27943         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27944         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27945
27946 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27947
27948         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27949         (sysd-rules-targets): Remove duplicates.
27950         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27951         rtld-%.$o dependency.
27952
27953 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27954
27955         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27956         _dl_map_object do it.
27957
27958 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27959
27960         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27961         fast fma builtins, define the macros in the C99 standard.
27962         (FP_FAST_FMAF): Likewise.
27963         (FP_FAST_FMAL): Likewise.
27964         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27965
27966         * bits/mathdef.h: Update copyright year.
27967         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27968
27969 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27970
27971         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27972         builtins, define the macros in the C99 standard.
27973         (FP_FAST_FMAF): Likewise.
27974         (FP_FAST_FMAL): Likewise.
27975         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27976         multiply/add.
27977         (FP_FAST_FMAF): Likewise.
27978
27979 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27980
27981         [BZ #3268]
27982         * math/libm-test.inc (fma_test): Some new testcases.
27983         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27984         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27985         y and infinite z.  Do multiplication by C already in long double.
27986         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27987         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27988         y and infinite z.  Do bitwise or of inexact bit into u.d.
27989         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27990         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27991         * sysdeps/i386/fpu/s_fma.S: Removed.
27992         * sysdeps/i386/fpu/s_fmal.S: Removed.
27993
27994 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27995
27996         [BZ #3268]
27997         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27998         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27999         computation is not scheduled after fetestexcept.  Fix value
28000         of minimum denormal long double.
28001
28002 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28003
28004         [BZ #3268]
28005         * math/libm-test.inc (fma_test): Add some more tests.
28006         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28007         correctly.
28008
28009 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28010
28011         * scripts/data/localplt-s390-linux-gnu.data: New file.
28012         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28013
28014 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28015
28016         [BZ #3268]
28017         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28018         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28019         instead of dbl-64.
28020         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28021         inlines.
28022         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28023         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28024         if one of x and y is very large and the other is subnormal.
28025         * sysdeps/s390/fpu/s_fmaf.c: New file.
28026         * sysdeps/s390/fpu/s_fma.c: New file.
28027         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28028         * sysdeps/powerpc/fpu/s_fma.S: New file.
28029         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28030         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28031         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28032
28033 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28034
28035         [BZ #3268]
28036         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28037         fma tests.
28038         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28039         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28040         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28041         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28042         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28043         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28044         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28045
28046 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28047
28048         [BZ #12078]
28049         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28050         * posix/bug-regex31.input: Add test case.
28051
28052 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28053
28054         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28055         * posix/bug-regex31.input: New file.
28056
28057         [BZ #12078]
28058         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28059         (parse_sub_exp): Fix last change, use postorder.
28060
28061         * posix/bug-regex31.c: New file.
28062         * posix/Makefile: Add rules to build and run bug-regex31.
28063
28064         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28065
28066         [BZ #12078]
28067         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28068
28069         [BZ #12108]
28070         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28071         to have entries in sys_siglist.
28072
28073         [BZ #12093]
28074         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28075         be NULL.
28076
28077 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28078
28079         [BZ #3268]
28080         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28081         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28082         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28083         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28084         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28085         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28086         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28087         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28088         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28089         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28090         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28091         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28092         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28093         * math/ftestexcept.c (fetestexcept): Likewise.
28094         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28095         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28096         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28097         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28098         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28099         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28100         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28101
28102 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28103
28104         [BZ #12107]
28105         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28106         newline.
28107
28108 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28109
28110         * string/bug-strstr1.c: New file.
28111         * string/Makefile: Add rules to build and run bug-strstr1.
28112
28113 2010-10-05  Eric Blake  <eblake@redhat.com>
28114
28115         [BZ #12092]
28116         * string/str-two-way.h (two_way_long_needle): Always clear memory
28117         when skipping input due to the shift table.
28118
28119 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28120
28121         [BZ #12005]
28122         * malloc/mcheck.c: Handle large requests.
28123
28124         [BZ #12077]
28125         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28126         for strncmp and strncasecmp.
28127         * string/stratcliff.c: Add tests for strcmp and strncmp.
28128         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28129
28130 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28131
28132         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28133         __set_fpscr.
28134
28135 2010-09-30  Andreas Jaeger  <aj@suse.de>
28136
28137         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28138         (CGROUP_SUPER_MAGIC): Define.
28139         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28140         Handle btrfs and cgroup file systems.
28141         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28142         Likewise.
28143
28144 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28145
28146         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28147         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28148
28149 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28150
28151         [BZ #12067]
28152         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28153         trying to locate the ELF header.
28154
28155 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28156
28157         [BZ #11611]
28158         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28159         Mask out sign-bit copies when constructing f_fsid.
28160
28161 2010-09-24  Petr Baudis <pasky@suse.cz>
28162
28163         * debug/stack_chk_fail_local.c: Add missing licence exception.
28164         * debug/warning-nop.c: Likewise.
28165
28166 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28167
28168         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28169         implementing getdents64 using getdents syscall, set d_type if
28170         __ASSUME_GETDENTS32_D_TYPE.
28171
28172 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28173
28174         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28175         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28176
28177 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28178
28179         [BZ #12037]
28180         * posix/unistd.h: Undo change of feature selection for ftruncate from
28181         2010-01-11.
28182
28183 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28184
28185         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28186         detection.
28187
28188 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28189
28190         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28191         fanotify_mark.
28192         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28193
28194 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28195
28196         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28197         variables after CHECK_SP call.
28198         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28199
28200 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28201             Ulrich Drepper  <drepper@redhat.com>
28202
28203         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28204         re-relocationg ld.so.
28205         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28206         _dl_init_paths call.
28207         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28208         here anymore.
28209
28210 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28211
28212         * resolv/res_init.c (__res_vinit): Count the default server we added.
28213
28214 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28215             Ulrich Drepper  <drepper@redhat.com>
28216
28217         [BZ #11968]
28218         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28219         (____longjmp_chk): Use %ebx for saving value across system call.
28220         Add unwind info.
28221
28222 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28223
28224         * manual/Makefile: Don't mix pattern rules with normal rules.
28225
28226 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28227
28228         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28229         operation.
28230         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28231         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28232         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28233         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28234         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28235         Likewise.
28236
28237 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28238
28239         [BZ #11979]
28240         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28241         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28242
28243 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28244
28245         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28246         * sysdeps/x86_64/addmul_1.S: Likewise.
28247         * sysdeps/x86_64/lshift.S: Likewise.
28248         * sysdeps/x86_64/mul_1.S: Likewise.
28249         * sysdeps/x86_64/rshift.S: Likewise.
28250         * sysdeps/x86_64/sub_n.S: Likewise.
28251         * sysdeps/x86_64/submul_1.S: Likewise.
28252
28253 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28254
28255         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28256         Define __sched_param instead of SCHED_* and sched_param when
28257         <bits/sched.h> is included with __need_schedparam defined.
28258         * bits/sched.h [__need_schedparam]
28259         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28260         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28261         (__defined_schedparam): Define to 1.
28262         (__sched_param): New structure, identical to sched_param.
28263         (__need_schedparam): Undefine.
28264
28265 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28266
28267         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28268         (epoll_create1): Declare.
28269
28270         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28271
28272 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28273
28274         [BZ #7066]
28275         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28276         shifting retval into place.
28277
28278 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28279
28280         * nis/rpcsvc/nis.h: Update copyright notice.
28281         * nis/rpcsvc/nis.x: Likewise.
28282         * nis/rpcsvc/nis_callback.h: Likewise.
28283         * nis/rpcsvc/nis_callback.x: Likewise.
28284         * nis/rpcsvc/nis_object.x: Likewise.
28285         * nis/rpcsvc/nis_tags.h: Likewise.
28286         * nis/rpcsvc/yp.h: Likewise.
28287         * nis/rpcsvc/yp.x: Likewise.
28288         * nis/rpcsvc/ypupd.h: Likewise.
28289         * nis/yp_xdr.c: Likewise.
28290         * nis/ypupdate_xdr.c: Likewise.
28291
28292         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28293         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28294         (pmap_getport): Use __libc_rpc_getport.
28295         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28296         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28297         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28298
28299 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28300
28301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28302         fanotify_mark.
28303
28304 2010-08-27  Roland McGrath  <roland@redhat.com>
28305
28306         * sysdeps/i386/i686/multiarch/Makefile
28307         (CFLAGS-varshift.c): New variable.
28308
28309 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28310
28311         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28312         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28313
28314         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28315
28316         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28317
28318 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28319
28320         * sysdeps/x86_64/strlen.S: Unroll the loop.
28321         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28322         strlen-sse2 strlen-sse2-bsf.
28323         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28324         __strlen_no_bsf if bit_Slow_BSF is set.
28325         (__strlen_sse42): Removed.
28326         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28327         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28328
28329 2010-08-25  Roland McGrath  <roland@redhat.com>
28330
28331         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28332         * sysdeps/x86_64/multiarch/varshift.c: New file.
28333         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28334         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28335         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28336         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28337
28338 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28339
28340         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28341         strlen-sse2 strlen-sse2-bsf.
28342         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28343         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28344         (__strlen_sse2): Removed.
28345         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28346         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28347         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28348         bit_Slow_BSF for Atom.
28349         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28350         (index_Slow_BSF): Define.
28351         (HAS_SLOW_BSF): Define.
28352
28353 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28354
28355         [BZ #10851]
28356         * resolv/res_init.c (__res_vinit): When no server address at all
28357         is given default to loopback.
28358
28359 2010-08-24  Roland McGrath  <roland@redhat.com>
28360
28361         * configure.in: Remove config-name.h generation.
28362         * configure: Regenerated.
28363         * config-name.in: File removed.
28364         * scripts/config-uname.sh: New file.
28365         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28366         ($(objdir)config-name.h): New target.
28367
28368         * sunrpc/rpc_parse.h: Avoid nested comment.
28369
28370 2010-08-24  Richard Henderson  <rth@redhat.com>
28371             Ulrich Drepper  <drepper@redhat.com>
28372             H.J. Lu  <hongjiu.lu@intel.com>
28373
28374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28375         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28376         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28377         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28378         _mm_alignr_epi8 with _mm_loadu_si128.
28379         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28380         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28381         (__m128i_shift_right): Removed.
28382         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28383         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28384         * sysdeps/x86_64/multiarch/varshift.h: New file.
28385         * sysdeps/x86_64/multiarch/varshift.S: New file.
28386
28387 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28388
28389         * configure.in: Move assembler checks to before sysdep dir checking.
28390
28391 2010-08-20  Petr Baudis  <pasky@suse.cz>
28392
28393         * LICENSES: Sync the sunrpc license.
28394
28395 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28396
28397         * sunrpc/auth_des.c: Update copyright notice once again.
28398         * sunrpc/auth_none.c: Likewise.
28399         * sunrpc/auth_unix.c: Likewise.
28400         * sunrpc/authdes_prot.c: Likewise.
28401         * sunrpc/authuxprot.c: Likewise.
28402         * sunrpc/bindrsvprt.c: Likewise.
28403         * sunrpc/clnt_gen.c: Likewise.
28404         * sunrpc/clnt_perr.c: Likewise.
28405         * sunrpc/clnt_raw.c: Likewise.
28406         * sunrpc/clnt_simp.c: Likewise.
28407         * sunrpc/clnt_tcp.c: Likewise.
28408         * sunrpc/clnt_udp.c: Likewise.
28409         * sunrpc/clnt_unix.c: Likewise.
28410         * sunrpc/des_crypt.c: Likewise.
28411         * sunrpc/des_soft.c: Likewise.
28412         * sunrpc/get_myaddr.c: Likewise.
28413         * sunrpc/getrpcport.c: Likewise.
28414         * sunrpc/key_call.c: Likewise.
28415         * sunrpc/key_prot.c: Likewise.
28416         * sunrpc/openchild.c: Likewise.
28417         * sunrpc/pm_getmaps.c: Likewise.
28418         * sunrpc/pm_getport.c: Likewise.
28419         * sunrpc/pmap_clnt.c: Likewise.
28420         * sunrpc/pmap_prot.c: Likewise.
28421         * sunrpc/pmap_prot2.c: Likewise.
28422         * sunrpc/pmap_rmt.c: Likewise.
28423         * sunrpc/rpc/auth.h: Likewise.
28424         * sunrpc/rpc/auth_unix.h: Likewise.
28425         * sunrpc/rpc/clnt.h: Likewise.
28426         * sunrpc/rpc/des_crypt.h: Likewise.
28427         * sunrpc/rpc/key_prot.h: Likewise.
28428         * sunrpc/rpc/netdb.h: Likewise.
28429         * sunrpc/rpc/pmap_clnt.h: Likewise.
28430         * sunrpc/rpc/pmap_prot.h: Likewise.
28431         * sunrpc/rpc/pmap_rmt.h: Likewise.
28432         * sunrpc/rpc/rpc.h: Likewise.
28433         * sunrpc/rpc/rpc_des.h: Likewise.
28434         * sunrpc/rpc/rpc_msg.h: Likewise.
28435         * sunrpc/rpc/svc.h: Likewise.
28436         * sunrpc/rpc/svc_auth.h: Likewise.
28437         * sunrpc/rpc/types.h: Likewise.
28438         * sunrpc/rpc/xdr.h: Likewise.
28439         * sunrpc/rpc_clntout.c: Likewise.
28440         * sunrpc/rpc_cmsg.c: Likewise.
28441         * sunrpc/rpc_common.c: Likewise.
28442         * sunrpc/rpc_cout.c: Likewise.
28443         * sunrpc/rpc_dtable.c: Likewise.
28444         * sunrpc/rpc_hout.c: Likewise.
28445         * sunrpc/rpc_main.c: Likewise.
28446         * sunrpc/rpc_parse.c: Likewise.
28447         * sunrpc/rpc_parse.h: Likewise.
28448         * sunrpc/rpc_prot.c: Likewise.
28449         * sunrpc/rpc_sample.c: Likewise.
28450         * sunrpc/rpc_scan.c: Likewise.
28451         * sunrpc/rpc_scan.h: Likewise.
28452         * sunrpc/rpc_svcout.c: Likewise.
28453         * sunrpc/rpc_tblout.c: Likewise.
28454         * sunrpc/rpc_util.c: Likewise.
28455         * sunrpc/rpc_util.h: Likewise.
28456         * sunrpc/rpcinfo.c: Likewise.
28457         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28458         * sunrpc/rpcsvc/key_prot.x: Likewise.
28459         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28460         * sunrpc/rpcsvc/mount.x: Likewise.
28461         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28462         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28463         * sunrpc/rpcsvc/rex.x: Likewise.
28464         * sunrpc/rpcsvc/rstat.x: Likewise.
28465         * sunrpc/rpcsvc/rusers.x: Likewise.
28466         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28467         * sunrpc/rpcsvc/spray.x: Likewise.
28468         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28469         * sunrpc/rtime.c: Likewise.
28470         * sunrpc/svc.c: Likewise.
28471         * sunrpc/svc_auth.c: Likewise.
28472         * sunrpc/svc_authux.c: Likewise.
28473         * sunrpc/svc_raw.c: Likewise.
28474         * sunrpc/svc_run.c: Likewise.
28475         * sunrpc/svc_simple.c: Likewise.
28476         * sunrpc/svc_tcp.c: Likewise.
28477         * sunrpc/svc_udp.c: Likewise.
28478         * sunrpc/svc_unix.c: Likewise.
28479         * sunrpc/svcauth_des.c: Likewise.
28480         * sunrpc/xcrypt.c: Likewise.
28481         * sunrpc/xdr.c: Likewise.
28482         * sunrpc/xdr_array.c: Likewise.
28483         * sunrpc/xdr_float.c: Likewise.
28484         * sunrpc/xdr_mem.c: Likewise.
28485         * sunrpc/xdr_rec.c: Likewise.
28486         * sunrpc/xdr_ref.c: Likewise.
28487         * sunrpc/xdr_sizeof.c: Likewise.
28488         * sunrpc/xdr_stdio.c: Likewise.
28489
28490         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28491         handling.
28492
28493 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28494
28495         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28496
28497 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28498
28499         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28500         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28501         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28502         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28503         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28504         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28505         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28506         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28507         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28508         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28509         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28510         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28511         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28512         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28513
28514 2010-07-26  Anton Blanchard  <anton@samba.org>
28515
28516         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28517         * malloc/arena.c (heap_trim): Likewise.
28518
28519 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28520
28521         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28522         here.  Not...
28523         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28524         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28525
28526 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28527
28528         * sysdeps/i386/elf/Makefile: New file.
28529
28530 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28531
28532         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28533         from fanotify_init.
28534         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28535         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28536
28537 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28538
28539         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28540         of strncasecmp_l.
28541         * sysdeps/multiarch/strcmp.S: Likewise.
28542
28543 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28544
28545         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28546         strncase_l-nonascii.
28547         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28548         Add strncase_l-ssse3.
28549         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28550         * sysdeps/x86_64/strcmp.S: Likewise.
28551         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28552         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28553         * sysdeps/x86_64/strncase.S: New file.
28554         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28555         * sysdeps/x86_64/strncase_l.S: New file.
28556         * string/Makefile (strop-tests): Add strncasecmp.
28557         * string/test-strncasecmp.c: New file.
28558
28559         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28560         warning.
28561
28562         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28563         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28564
28565 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28566
28567         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28568
28569 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28570
28571         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28572         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28573         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28574
28575 2010-05-01  Alan Modra  <amodra@gmail.com>
28576
28577         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28578         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28579         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28580         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28581         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28582         tidying.  Don't tail-call __sigjmp_save for static lib.
28583         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28584         save location.
28585         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28586         (CALL_MCOUNT): Add eh info, and nop after bl.
28587         (TAIL_CALL_SYSCALL_ERROR): New macro.
28588         (PSEUDO_RET): Use it.
28589         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28590         Correct save location of integer regs and cr.
28591         (_dl_profile_resolve): Correct cr save location.  Delete nops
28592         after bl when SHARED.  Reduce cfi size a little by better
28593         placement of cfi directives.
28594         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28595         make a stack frame.  Instead use parm save area as a temp.
28596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28597         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28599         Don't make a stack frame for parent, use parm save area.
28600         Increase child stack frame to 112 bytes.  Don't save unused reg,
28601         and adjust reg usage.  Set up cfi on error recovery and
28602         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28604         (__makecontext): Add dummy nop after jump to exit.
28605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28606         Use correct parm save area and cr save, reduce stack frame.
28607         Correct cfi for possible PSEUDO_RET frame setup.
28608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28609         Branch to local label emitted by PSEUDO_RET rather than
28610         __syscall_error.
28611
28612 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28613
28614         [BZ #11904]
28615         * locale/programs/locale.c (print_assignment): New function.
28616         (show_locale_vars): Use it.
28617
28618 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28619
28620         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28621         field.
28622         (struct statfs64): Likewise.
28623         (_STATFS_F_FLAGS): Define.
28624         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28625         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28626         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28627         (ST_VALID): Define locally.
28628         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28629         __statvfs_getflags, use the provided value.
28630         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28631         __ASSUME_STATFS_F_FLAGS.
28632
28633         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28634
28635         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28636         Add sys/fanotify.h.
28637         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28638         fanotify_mask for GLIBC_2.13.
28639         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28640         fanotify_init and fanotify_mark.
28641         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28642         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28643
28644         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28645         Add prlimit.
28646         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28647         prlimit64 for GLIBC_2.13.
28648         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28649         prlimit64.
28650         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28651         syscall.
28652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28653         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28654         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28655         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28656         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28657         add prlimit alias.
28658         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28659
28660         [BZ #11903]
28661         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28662         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28663
28664         * nss/Makefile: Add rules to build and run tst-nss-test1.
28665         * shlib-versions: Add entry for libnss_test1.
28666         * nss/nss_test1.c: New file.
28667         * nss/tst-nss-test1.c: New file.
28668
28669         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28670         (__nss_configure_lookup): Set appropriate entry in
28671         __nss_configure_lookup to true.
28672         * nss/nsswitch.h: Define enum with indeces of databases in
28673         databases and __nss_database_custom arrays.  Declare
28674         __nss_database_custom.
28675         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28676         to avoid using nscd when custom rules are installed.
28677         * nss/getXXbyYY_r.c: Likewise.
28678         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28679
28680         * nss/nss_files/files-parse.c: Whitespace fixes.
28681
28682 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28683
28684         [BZ #11883]
28685         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28686         * posix/fnmatch_loop.c: Likewise.
28687
28688 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28689
28690         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28691         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28692         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28693         * Versions.def [GLIBC_2.13]: Add.
28694
28695 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28696
28697         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28698         Also fail if tpwd after pwuid call is NULL.
28699
28700 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28701
28702         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28703         when converting to ms.
28704
28705 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28706
28707         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28708         EOPNOTSUPP errors with ENOTTY.
28709         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28710         EOPNOTSUPP errors with ENOTTY.
28711
28712 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28713
28714         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28715         Add strcasecmp_l-ssse3.
28716         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28717         strcasecmp.
28718         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28719         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28720         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28721
28722 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28723
28724         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28725
28726         * string/Makefile (strop-tests): Add strcasecmp.
28727         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28728         strcasecmp_l-nonascii.
28729         (gen-as-const-headers): Add locale-defines.sym.
28730         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28731         * sysdeps/x86_64/strcasecmp.S: New file.
28732         * sysdeps/x86_64/strcasecmp_l.S: New file.
28733         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28734         * sysdeps/x86_64/locale-defines.sym: New file.
28735         * string/test-strcasecmp.c: New file.
28736
28737         * string/test-strcasestr.c: Test both ends of the range of characters.
28738         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28739
28740 2010-07-29  Roland McGrath  <roland@redhat.com>
28741
28742         [BZ #11856]
28743         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28744
28745 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28746
28747         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28748         for ld.so.
28749
28750 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28751
28752         * manual/memory.texi (Malloc Tunable Parameters): Document
28753         M_PERTURB.
28754
28755 2010-07-26  Roland McGrath  <roland@redhat.com>
28756
28757         [BZ #11840]
28758         * configure.in (-fgnu89-inline check): Set and substitute
28759         gnu89_inline, not libc_cv_gnu89_inline.
28760         * configure: Regenerated.
28761         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28762
28763 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28764
28765         * string/test-strnlen.c: New file.
28766         * string/Makefile (strop-tests): Add strnlen.
28767         * string/tester.c (test_strnlen): Add a few more test cases.
28768         * string/tst-strlen.c: Better error reporting.
28769
28770         * sysdeps/x86_64/strnlen.S: New file.
28771
28772 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28773
28774         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28775         lower-latency instructions.
28776
28777 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28778
28779         * string/test-strcasestr.c: New file.
28780         * string/test-strstr.c: New file.
28781         * string/Makefile (strop-tests): Add strstr and strcasestr.
28782         * string/str-two-way.h: Don't undefine MAX.
28783         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28784
28785 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28786
28787         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28788         strcasestr-nonascii.
28789         (CFLAGS-strcasestr-nonascii.c): Define.
28790         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28791         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28792         Remove unused attribute.
28793
28794 2010-07-20  Roland McGrath  <roland@redhat.com>
28795
28796         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28797         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28798         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28799         like LD_HWCAP_MASK can disable hwcaps.
28800
28801 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28802
28803         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28804
28805 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28806
28807         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28808         call in strcasestr.
28809         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28810         __strcasestr_sse42_nonascii.
28811         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28812         strcasestr-nonascii.c.
28813         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28814
28815 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28816
28817         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28818         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28819         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28820         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28821
28822 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28823
28824         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28825         fcntl.
28826
28827 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28828
28829         [BZ #11577]
28830         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28831         dl_signal_cerror.
28832
28833 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28834
28835         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28836         _PC_PIPE_BUF using F_GETPIPE_SZ.
28837
28838 2010-07-05  Roland McGrath  <roland@redhat.com>
28839
28840         * manual/arith.texi (Rounding Functions): Fix rint description
28841         implicit in round description.
28842
28843 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28844
28845         * elf/Makefile: Fix linking for a few tests to make recent linker
28846         happy.
28847
28848 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28849
28850         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28851         $(common-objpfx)libc_nonshared.a.
28852
28853 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28854
28855         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28856         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28857         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28858         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28859         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28860         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28861         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28862         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28877         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28878         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28879         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28880         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28881         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28882         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28883         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28884         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28885         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28886         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28887         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28888         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28903
28904 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28905
28906         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28907         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28908         * string/memmove.c (memmove): Renamed to ...
28909         (MEMMOVE): ...this.  Default to memmove.
28910         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28911         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28912         (END_CHK): Define.
28913         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28914         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28915         mempcpy-ssse3-back memmove-ssse3-back.
28916         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28917         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28918         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28919         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28920         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28921         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28922         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28923         * sysdeps/x86_64/multiarch/memmove.c: New file.
28924         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28925         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28926         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28927         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28928         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28929         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28930         Define.
28931         (index_Fast_Copy_Backward): Define.
28932         (HAS_ARCH_FEATURE): Define.
28933         (HAS_FAST_REP_STRING): Define.
28934         (HAS_FAST_COPY_BACKWARD): Define.
28935
28936 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28937
28938         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28939         Restore proper fallback handling.
28940
28941 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28942
28943         [BZ #11701]
28944         * posix/group_member.c (__group_member): Correct checking loop.
28945
28946         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28947         OOM in getpwuid_r correctly.  Return error number when the caller
28948         should return, otherwise -1.
28949         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28950         call returning > 0 value.
28951         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28952
28953 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28954
28955         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28956         libc_nonshared.a from targets in modules-names.
28957
28958 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28959
28960         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28961         requires it.
28962
28963 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28964
28965         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28966         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28967         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28968         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28969
28970 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28971
28972         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28973
28974 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28975
28976         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28977         and F_GETPIPE_SZ.
28978         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28979         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28980         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28981         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28982         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28983         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28984
28985 2010-06-14  Roland McGrath  <roland@redhat.com>
28986
28987         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28988
28989 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28990
28991         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28992         __REDIRECT followed by __THROW.
28993         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28994         * posix/getopt.h (getopt): Likewise.
28995
28996 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28997
28998         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28999         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29000         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29001         in AT_FLAGS.
29002         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29003         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29004
29005 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29006
29007         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29008
29009 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29010
29011         [BZ #11640]
29012         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29013         Properly check family and model.
29014
29015 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29016
29017         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29018
29019 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29020
29021         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29022
29023 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29024
29025         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29026         symbol reference.
29027
29028 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29029
29030         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29031         symbol reference.
29032
29033 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29034
29035         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29036         and internal_recvmmsg.
29037         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29038         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29039         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29040         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29041
29042         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29043         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29044         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29045
29046 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29047
29048         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29049
29050 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29051
29052         POWER7 optimizations.
29053         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29054         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29055
29056 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29057
29058         * version.h: Update for 2.13 development version.
29059
29060 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29061
29062         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29063         exceptions.  Return 0.
29064
29065 2010-05-07  Roland McGrath  <roland@redhat.com>
29066
29067         * elf/ldconfig.c (main): Add a const.
29068
29069 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29070
29071         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29072         (args_options): Add no-idn option.
29073         (ahosts_keys_int): Add idn_flags to ai_flags.
29074         (parse_option): Handle 'i' option to clear idn_flags.
29075
29076         * malloc/malloc.c (_int_free): Possible race in the most recently
29077         added check.  Only act on the data if no current modification
29078         happened.
29079
29080 See ChangeLog.17 for earlier changes.