Fix whitespace in RUN_TEST_LOOP_2_f.
[jlayton/glibc.git] / ChangeLog
1 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
4
5         * math/libm-test.inc (struct test_fF_f1_data): Change type of
6         extra_test to int.
7         (struct test_f_i_data): Change type of max_ulp to int.
8
9         * math/libm-test.inc (test_ffI_f1_data): New type.
10         (RUN_TEST_LOOP_ffI_f1): New macro.
11         (remquo_test_data): New variable.
12         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
13
14         * setjmp/tst-setjmp-fp.c: New file.
15         * setjmp/Makefile (tests): Add tst-setjmp-fp.
16         (link-libm): New variable.
17         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18
19         * math/libm-test.inc (struct test_f_i_data): New type.
20         (RUN_TEST_LOOP_f_i): New macro.
21         (RUN_TEST_LOOP_f_i_tg): Likewise.
22         (fpclassify_test_data): New variable.
23         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
24         (ilogb_test_data): New variable.
25         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
26
27         * math/libm-test.inc (scalbln_test): Correct function name in END
28         call.
29
30         * math/libm-test.inc (struct test_f_f1_data): Add comment.
31         (RUN_TEST_LOOP_fI_f1): New macro.
32         (frexp_test_data): New variable.
33         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
34
35         * math/libm-test.inc (struct test_fF_f1_data): New type.
36         (RUN_TEST_LOOP_fF_f1): New macro.
37         (modf_test_data): New variable.
38         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
39
40         * math/libm-test.inc (struct test_f_f1_data): New type.
41         (RUN_TEST_LOOP_f_f1): New macro.
42         (gamma_test_data): New variable.
43         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
44         (lgamma_test_data): New variable.
45         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
46
47 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48
49         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
50         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
51         (main): Comment "tls" pseudo-hwcap.
52
53 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54
55         * math/libm-test.inc (struct test_fl_f_data): New type.
56         (RUN_TEST_LOOP_fl_f): New variable.
57         (scalbln_test_data): New variable.
58         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
59
60         * math/libm-test.inc (struct test_fi_f_data): New type.
61         (RUN_TEST_LOOP_fi_f): New macro.
62         (ldexp_test_data): New variable.
63         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
64         (scalbn_test_data): New variable.
65         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
66
67         * math/libm-test.inc (struct test_c_f_data): New type.
68         (RUN_TEST_LOOP_c_f): New macro.
69         (cabs_test_data): New variable.
70         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
71         (carg_test_data): New variable.
72         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
73         (cimag_test_data): New variable.
74         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
75         (creal_test_data): New variable.
76         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
77
78         * math/libm-test.inc (struct test_if_f_data): New type.
79         (RUN_TEST_LOOP_if_f): New macro.
80         (jn_test_data): New variable.
81         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
82         (yn_test_data): New variable.
83         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
84
85         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
86
87 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
88
89         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
90         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
91
92 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
93
94         * benchtests/Makefile (CPPFLAGS-nonlib): Add
95         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
96         (bench-deps): Add bench-timing.h.
97         * benchtests-bench-skeleton.c: Include bench-timing.h.
98         (main): Use TIMING_* macros instead of clock_gettime.
99         * benchtests/bench-timing.h: New file.
100
101         [BZ #14582]
102         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
103         Renamed from _LIB_VERSION.
104         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
105
106 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
107
108         * math/libm-test.inc (struct test_fff_f_data): New type.
109         (RUN_TEST_LOOP_fff_f): New macro.
110         (fma_test_data): New variable.
111         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
112         (fma_towardzero_test_data): New variable.
113         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
114         (fma_downward_test_data): New variable.
115         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
116         (fma_upward_test_data): New variable.
117         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
118
119         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
120         (struct test_c_c_data): New type.
121         (RUN_TEST_LOOP_c_c): New macro.
122         (cacos_test_data): New variable.
123         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
124         (cacosh_test_data): New variable.
125         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
126         (casin_test_data): New variable.
127         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
128         (casinh_test_data): New variable.
129         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
130         (catan_test_data): New variable.
131         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
132         (catanh_test_data): New variable.
133         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
134         (ccos_test_data): New variable.
135         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
136         (ccosh_test_data): New variable.
137         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
138         (cexp_test_data): New variable.
139         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
140         (clog_test_data): New variable.
141         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
142         (clog10_test_data): New variable.
143         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
144         (conj_test_data): New variable.
145         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
146         (cproj_test_data): New variable.
147         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
148         (csin_test_data): New variable.
149         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
150         (csinh_test_data): New variable.
151         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
152         (csqrt_test_data): New variable.
153         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
154         (ctan_test_data): New variable.
155         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
156         (ctan_tonearest_test_data): New variable.
157         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
158         (ctan_towardzero_test_data): New variable.
159         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
160         (ctan_downward_test_data): New variable.
161         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
162         (ctan_upward_test_data): New variable.
163         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
164         (ctanh_test_data): New variable.
165         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
166         (ctanh_tonearest_test_data): New variable.
167         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
168         (ctanh_towardzero_test_data): New variable.
169         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
170         (ctanh_downward_test_data): New variable.
171         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
172         (ctanh_upward_test_data): New variable.
173         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
174         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
175         of BUILD_COMPLEX.
176
177         * math/libm-test.inc (struct test_ff_f_data): New type.
178         (struct test_ff_f_data_nexttoward): Likewise.
179         (RUN_TEST_LOOP_2_f): New macro.
180         (RUN_TEST_LOOP_ff_f): Likewise.
181         (atan2_test_data): New variable.
182         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
183         (copysign_test_data): New variable.
184         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
185         (fdim_test_data): New variable.
186         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
187         (fmax_test_data): New variable.
188         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
189         (fmin_test_data): New variable.
190         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
191         (fmod_test_data): New variable.
192         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
193         (hypot_test_data): New variable.
194         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
195         (nextafter_test_data): New variable.
196         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
197         (nexttoward_test_data): New variable.
198         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
199         (pow_test_data): New variable.
200         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
201         (pow_tonearest_test_data): New variable.
202         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
203         (pow_towardzero_test_data): New variable.
204         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
205         (pow_downward_test_data): New variable.
206         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
207         (pow_upward_test_data): New variable.
208         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
209         (remainder_test_data): New variable.
210         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
211         (scalb_test_data): New variable.
212         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
213         * sysdeps/i386/fpu/libm-test-ulps: Update.
214
215 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
216
217         * math/libm-test.inc (fma_test): Use max_value instead of local
218         variable fltmax.
219         (nextafter_test): Likewise.
220
221         * math/libm-test.inc (acos_towardzero_test_data): New variable.
222         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
223         (acos_downward_test_data): New variable.
224         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
225         (acos_upward_test_data): New variable.
226         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
227         (acosh_test_data): New variable.
228         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
229         (asin_test_data): New variable.
230         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
231         (asin_tonearest_test_data): New variable.
232         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
233         (asin_towardzero_test_data): New variable.
234         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
235         (asin_downward_test_data): New variable.
236         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
237         (asin_upward_test_data): New variable.
238         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
239         (asinh_test_data): New variable.
240         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
241         (atan_test_data): New variable.
242         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
243         (atanh_test_data): New variable.
244         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
245         (cbrt_test_data): New variable.
246         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
247         (ceil_test_data): New variable.
248         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
249         (cos_test_data): New variable.
250         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
251         (cos_tonearest_test_data): New variable.
252         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
253         (cos_towardzero_test_data): New variable.
254         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
255         (cos_downward_test_data): New variable.
256         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
257         (cos_upward_test_data): New variable.
258         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
259         (cosh_test_data): New variable.
260         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
261         (cosh_tonearest_test_data): New variable.
262         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
263         (cosh_towardzero_test_data): New variable.
264         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
265         (cosh_downward_test_data): New variable.
266         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
267         (cosh_upward_test_data): New variable.
268         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
269         (erf_test_data): New variable.
270         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
271         (erfc_test_data): New variable.
272         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
273         (exp_test_data): New variable.
274         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
275         (exp_tonearest_test_data): New variable.
276         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
277         (exp_towardzero_test_data): New variable.
278         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
279         (exp_downward_test_data): New variable.
280         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
281         (exp_upward_test_data): New variable.
282         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
283         (exp10_test_data): New variable.
284         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
285         (exp2_test_data): New variable.
286         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
287         (expm1_test_data): New variable.
288         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
289         (fabs_test_data): New variable.
290         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
291         (floor_test_data): New variable.
292         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
293         (j0_test_data): New variable.
294         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
295         (j1_test_data): New variable.
296         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
297         (log_test_data): New variable.
298         (log_test): Run tests with RUN_TEST_LOOP_f_f.
299         (log10_test_data): New variable.
300         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
301         (log1p_test_data): New variable.
302         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
303         (log2_test_data): New variable.
304         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
305         (logb_test_data): New variable.
306         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
307         (logb_downward_test_data): New variable.
308         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
309         (nearbyint_test_data): New variable.
310         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
311         (rint_test_data): New variable.
312         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
313         (rint_tonearest_test_data): New variable.
314         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
315         (rint_towardzero_test_data): New variable.
316         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
317         (rint_downward_test_data): New variable.
318         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
319         (rint_upward_test_data): New variable.
320         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
321         (round_test_data): New variable.
322         (round_test): Run tests with RUN_TEST_LOOP_f_f.
323         (sin_test_data): New variable.
324         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
325         (sin_tonearest_test_data): New variable.
326         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
327         (sin_towardzero_test_data): New variable.
328         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
329         (sin_downward_test_data): New variable.
330         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
331         (sin_upward_test_data): New variable.
332         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
333         (sinh_test_data): New variable.
334         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
335         (sinh_tonearest_test_data): New variable.
336         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
337         (sinh_towardzero_test_data): New variable.
338         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
339         (sinh_downward_test_data): New variable.
340         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
341         (sinh_upward_test_data): New variable.
342         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
343         (sqrt_test_data): New variable.
344         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
345         (tan_test_data): New variable.
346         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
347         (tan_tonearest_test_data): New variable.
348         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
349         (tan_towardzero_test_data): New variable.
350         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
351         (tan_downward_test_data): New variable.
352         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
353         (tan_upward_test_data): New variable.
354         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
355         (tanh_test_data): New variable.
356         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
357         (tgamma_test_data): New variable.
358         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
359         (trunc_test_data): New variable.
360         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
361         (y0_test_data): New variable.
362         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
363         (y1_test_data): New variable.
364         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
365         (significand_test_data): New variable.
366         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
367
368 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
369
370         [BZ #12387]
371         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
372
373 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
374
375         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
376
377 2013-05-10  Andreas Jaeger  <aj@suse.de>
378
379         [BZ #15448]
380         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
381         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
382
383 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
384
385         * math/gen-libm-test.pl (adjust_arg): New function.
386         (special_functions): Handle generating output in both functions
387         and arrays.
388         (parse_args): Likewise.
389         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
390         $in_func argument to parse_args.
391         * math/libm-test.inc (struct test_f_f_data): New type.
392         (IF_ROUND_INIT_): New macro.
393         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
394         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
395         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
396         (IF_ROUND_INIT_FE_UPWARD): Likewise.
397         (ROUND_RESTORE_): Likewise.
398         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
399         (ROUND_RESTORE_FE_TONEAREST): Likewise.
400         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
401         (ROUND_RESTORE_FE_UPWARD): Likewise.
402         (RUN_TEST_LOOP_f_f): New macro.
403         (acos_test_data): New variable.
404         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
405         (acos_tonearest_test_data): New variable.
406         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
407
408 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
409
410         * benchtests/bench-skeleton.c (startup): Fix coding style.
411
412 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
413
414         [BZ #6809]
415         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
416         negative infinity argument.
417         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
418         negative infinity argument.
419         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
420         negative infinity argument.
421         * math/libm-test.inc (tgamma_test): Expect errno to be set for
422         domain errors.
423
424 2013-05-10  Florian Weimer  <fweimer@redhat.com>
425
426         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
427         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
428         * iconv/iconv_prog.c (main): Likewise.
429         * locale/programs/charmap-dir.c (charmap_readdir)
430         (fopen_uncompressed): Likewise.
431         * locale/programs/locfile.c (siblings_uncached)
432         (write_locale_data): Use lstat64 instead of lstat.
433         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
434         stat.
435
436 2013-05-10  Andreas Jaeger  <aj@suse.de>
437
438         [BZ #15395]
439         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
440         localization.
441         Include <locale.h>.
442
443 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
444
445         * elf/dl-close.c (_dl_close_worker): Add comments.
446
447 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
448
449         [BZ #15359]
450         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
451         high part of pi/2.
452         (__ieee754_rem_pio2l): Update comments.
453
454         [BZ #15429]
455         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
456         high part of pi/2.
457         (__ieee754_rem_pio2l): Update comments.
458
459         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
460         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
461
462         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
463         M_PI_4l.
464
465         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
466         (M_PI_34_LOG10El): Likewise.
467         (M_PI2_LOG10El): Likewise.
468         (M_PI4_LOG10El): Likewise.
469         (M_PI_LOG10El): Likewise.
470
471 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
472
473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
474
475 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
476
477         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
478         (MINUS_ZERO_INIT): Likewise.
479         (PLUS_INFTY_INIT): Likewise.
480         (MINUS_INFTY_INIT): Likewise.
481         (QNAN_VALUE_INIT): Likewise.
482         (MAX_VALUE_INIT): Likewise.
483         (MIN_VALUE_INIT): Likewise.
484         (MIN_SUBNORM_VALUE_INIT): Likewise.
485         (plus_zero): Initialize with PLUS_ZERO_INIT.
486         (minus_zero): Initialize with MINUS_ZERO_INIT.
487         (plus_infty): Initialize with PLUS_INFTY_INIT.
488         (minus_infty): Initialize with MINUS_INFTY_INIT.
489         (qnan_value): Initialize with QNAN_VALUE_INIT.
490         (max_value): Initialize with MAX_VALUE_INIT.
491         (min_value): Initialize with MIN_VALUE_INIT.
492         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
493
494         * math/libm-test.inc (RUN_TEST_if_f): New macro.
495         (jn_test): Use TEST_if_f instead of TEST_ff_f.
496         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
497         (yn_test): Use TEST_if_f instead of TEST_ff_f.
498
499         * math/libm-test.inc (RUN_TEST_f_f): New macro.
500         (RUN_TEST_2_f): Likewise.
501         (RUN_TEST_ff_f): Likewise.
502         (RUN_TEST_fi_f): Likewise.
503         (RUN_TEST_fl_f): Likewise.
504         (RUN_TEST_fff_f): Likewise.
505         (RUN_TEST_c_f): Likewise.
506         (RUN_TEST_f_f1): Likewise.
507         (RUN_TEST_fF_f1): Likewise.
508         (RUN_TEST_fI_f1): Likewise.
509         (RUN_TEST_ffI_f1): Likewise.
510         (RUN_TEST_c_c): Likewise.
511         (RUN_TEST_cc_c): Likewise.
512         (RUN_TEST_f_i): Likewise.
513         (RUN_TEST_f_i_tg): Likewise.
514         (RUN_TEST_ff_i_tg): Likewise.
515         (RUN_TEST_f_b): Likewise.
516         (RUN_TEST_f_b_tg): Likewise.
517         (RUN_TEST_f_l): Likewise.
518         (RUN_TEST_f_L): Likewise.
519         (RUN_TEST_sincos): Likewise.
520         * math/gen-libm-test.pl (new_test): Take new argument to indicate
521         whether to show exceptions.  Do not include ");\n" in return
522         value.
523         (special_functions): Output call to RUN_TEST_sincos instead of
524         check_float calls.  Update calls to new_test.
525         (parse_args): Output call to single RUN_TEST_* macro instead of
526         check_* calls and other assignments.  Update calls to new_test.
527
528         [BZ #2546]
529         [BZ #2560]
530         [BZ #5159]
531         [BZ #15426]
532         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
533         input to result for tgamma overflow.
534         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
535         (gamma_coeff): New variable.
536         (NCOEFF): New macro.
537         (gamma_positive): New function.
538         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
539         underflow here.  Use gamma_positive instead of exp (lgamma) for
540         other arguments.
541         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
542         (gamma_coeff): New variable.
543         (NCOEFF): New macro.
544         (gammaf_positive): New function.
545         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
546         underflow here.  Use gamma_positive instead of exp (lgamma) for
547         other arguments.
548         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
549         (gamma_coeff): New variable.
550         (NCOEFF): New macro.
551         (gammal_positive): New function.
552         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
553         underflow here.  Use gamma_positive instead of exp (lgamma) for
554         other arguments.
555         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
556         (gamma_coeff): New variable.
557         (NCOEFF): New macro.
558         (gammal_positive): New function.
559         (__ieee754_gammal_r): Handle positive infinity, overflow and
560         underflow here.  Handle NaN the same as positive infinity.  Remove
561         check x < 0xffffffff for negative integers.  Use gamma_positive
562         instead of exp (lgamma) for other arguments.
563         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
564         (gamma_coeff): New variable.
565         (NCOEFF): New macro.
566         (gammal_positive): New function.
567         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
568         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
569         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
570         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
571         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
572         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
573         * sysdeps/generic/math_private.h (__gamma_productf): New
574         prototype.
575         (__gamma_product): Likewise.
576         (__gamma_productl): Likewise.
577         * math/Makefile (libm-calls): Add gamma_product.
578         * math/libm-test.inc (tgamma_test): Add more tests.
579         * sysdeps/i386/fpu/libm-test-ulps: Update.
580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
581
582 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
583
584         * benchtests/bench-skeleton.c (main): Preheat CPU.
585
586 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
587
588         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
589
590 2013-05-07  Roland McGrath  <roland@hack.frob.com>
591
592         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
593         and _dl_skip_args_internal.
594
595 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
596
597         * manual/message.texi (Message Translation): Talk about users.
598         Message to key mapping impacts design.
599
600 2013-05-06  Roland McGrath  <roland@hack.frob.com>
601
602         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
603
604         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
605
606         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
607         * sysdeps/wordsize-64/glob64.c: ... here.
608
609         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
610         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
611         New macros.
612
613         * debug/getlogin_r_chk.c: Moved to ...
614         * login/getlogin_r_chk.c: ... here.
615         * debug/Makefile (routines): Move getlogin_r_chk to ...
616         * login/Makefile (routines): ... here.
617         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
618         * login/Versions (libc: GLIBC_2.4): ... here.
619
620         * io/poll.c (__poll): Renamed from poll.
621         Add libc_hidden_def.
622         (poll): Define as weak alias.
623
624         * debug/ptsname_r_chk.c: Moved to ...
625         * login/ptsname_r_chk.c: ... here.
626         * debug/Makefile (routines): Move ptsname_r_chk to ...
627         * login/Makefile (routines): ... here.
628         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
629         * login/Versions (libc: GLIBC_2.4): ... here.
630
631         * posix/getlogin.c: Moved to ...
632         * login/getlogin.c: ... here.
633         * posix/getlogin_r.c: Moved to ...
634         * login/getlogin_r.c: ... here.
635         * posix/getlogin_r.c: Moved to ...
636         * login/getlogin_r.c: ... here.
637         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
638         * login/Makefile (routines): ... here.
639         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
640         * login/Versions (libc: GLIBC_2.0): ... here.
641
642         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
643         (setrlimit): Define as weak alias.
644
645         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
646         Call __ names for open, ftruncate, and close.
647         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
648         (truncate): Define as weak alias.
649
650 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
651
652         * math/gen-libm-test.pl (parse_args): Initialize x before each
653         test of frexp, modf and remquo.
654
655         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
656         test signgam value.
657
658 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
659
660         [BZ #15418]
661         [BZ #15419]
662         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
663         internal tests.
664         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
665
666 2013-05-06  Roland McGrath  <roland@hack.frob.com>
667
668         * elf/dl-writev.h: New file.
669         * elf/dl-misc.c: Include it.
670         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
671         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
672
673 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
674
675         * math/libm-test.inc (noXFails): Remove variable.
676         (noXPasses): Likewise.
677         (BUILD_COMPLEX_INT): Remove macro.
678         (print_screen): Remove xfail argument.
679         (print_screen_max_error): Likewise.
680         (update_stats): Likewise.
681         (print_max_error): Likewise.  Update calls to other affected
682         functions.
683         (print_complex_max_error): Likewise.
684         (test_single_exception): Update calls to print_screen.
685         (test_single_errno): Likewise.
686         (check_float_internal): Remove xfail argument.  Update calls to
687         other affected functions.
688         (check_float): Likewise.
689         (check_complex): Likewise.
690         (check_int): Likewise.
691         (check_long): Likewise.
692         (check_bool): Likewise.
693         (check_longlong): Likewise.
694         (main): Don't print noXFails and noXPasses.
695         * math/gen-libm-test.pl (top level): Don't mention expected
696         failure handling in comment.
697         (new_test): Don't handle expected failures.
698         (parse_args): Don't mention expected failure handling in comment.
699         (generate_testfile): Don't handle expected failures.
700         (parse_ulps): Likewise.
701         (print_ulps_file): Likewise.
702         (get_failure): Remove function.
703         (output_test): Don't handle expected failures.
704         * make/README.libm-test: Don't mention expected failure handling.
705
706         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
707         (minus_zero): Likewise.
708         (plus_infty): Likewise.
709         (minus_infty): Likewise.
710         (qnan_value): Likewise.
711         (max_value): Likewise.
712         (min_value): Likewise.
713         (min_subnorm_value): Likewise.
714         (initialize): Do not initialize those variables dynamically.
715
716 2013-05-03  Roland McGrath  <roland@hack.frob.com>
717
718         * io/open.c (__open_2): Moved to ...
719         * io/open_2.c: ... this new file.
720         * io/open64.c (__open64_2): Moved to ...
721         * io/open64_2.c: ... this new file.
722         * io/openat.c (__openat_2): Moved to ...
723         * io/openat_2.c: ... this new file.
724         * io/openat64.c (__openat64_2): Moved to ...
725         * io/openat64_2.c: ... this new file.
726         * io/Makefile (routines): Add them.
727         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
728         * sysdeps/unix/sysv/linux/open_2.c: File removed.
729         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
730         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
731         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
732         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
733         (__openat64): Add hidden_ver.
734         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
735         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
736
737         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
738         Separately conditionalize setting of GLRO(dl_sysinfo) so
739         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
740         as well, but the actual setting is only under [NEED_DL_SYSINFO].
741
742 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
743
744         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
745         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
746         definition.
747         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
748         * sysdeps/unix/sysv/linux/powerpc/init-first.c
749         (_libc_vdso_platform_setup): Add __vdso_time initialization.
750         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
751         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
752
753 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
754
755         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
756         test signgam value.
757
758         * math/libm-test.inc (hypot_test): Do not use
759         IGNORE_ZERO_INF_SIGN.
760
761 2013-05-03  Andreas Jaeger  <aj@suse.de>
762
763         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
764         Linux 3.9.
765         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
766         (PF_MAX): Adjust for VSOCK change.
767
768 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
769
770         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
771
772 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
773
774         [BZ #15264]
775         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
776         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
777         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
778
779 2013-05-02  David S. Miller  <davem@davemloft.net>
780
781         * sysdeps/sparc/fpu/libm-test-ulps: Update.
782
783 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
784
785         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
786
787 2013-05-01  Roland McGrath  <roland@hack.frob.com>
788
789         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
790
791 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
792
793         [BZ #14952]
794         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
795         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
796         Use __attribute__ ((__gnu_inline__)).
797         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
798         Don't use __attribute__ ((__gnu_inline__)).
799
800 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
801
802         [BZ #15423]
803         * math/s_catan.c (__catan): Handle small real or imaginary part of
804         input specially to avoid spurious underflow.
805         * math/s_catanf.c (__catanf): Likewise.
806         * math/s_catanh.c (__catanh): Likewise.
807         * math/s_catanhf.c (__catanhf): Likewise.
808         * math/s_catanhl.c (__catanhl): Likewise.
809         * math/s_catanl.c (__catanl): Likewise.
810         * math/libm-test.inc (catan_test): Add more tests.
811         (catanh_test): Likewise.
812         * sysdeps/i386/fpu/libm-test-ulps: Update.
813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
814
815 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
816
817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
818
819 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
820
821         [BZ #15416]
822         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
823         accurately for denominator in atan2.
824         * math/s_catanf.c (__catanf): Likewise.
825         * math/s_catanh.c (__catanh): Likewise.
826         * math/s_catanhf.c (__catanhf): Likewise.
827         * math/s_catanhl.c (__catanhl): Likewise.
828         * math/s_catanl.c (__catanl): Likewise.
829         * math/libm-test.inc (catan_test): Add more tests.
830         (catanh_test): Likewise.
831         * sysdeps/i386/fpu/libm-test-ulps: Update.
832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
833
834 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
835
836         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
837
838         * benchtests/Makefile (bench): Remove slow benchmarks.
839         * benchtests/atan-inputs: Add slow benchmark inputs.
840         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
841         (BENCH_FUNC): Accept variant offset.
842         (VARIANT): Define.
843         * benchtests/bench-skeleton.c (main): Run benchmark for each
844         variant.
845         * benchtests/cos-inputs: Add slow benchmark inputs.
846         * benchtests/exp-inputs: Likewise.
847         * benchtests/pow-inputs: Likewise.
848         * benchtests/sin-inputs: Likewise.
849         * benchtests/slowatan-inputs: Remove.
850         * benchtests/slowatan.c: Remove.
851         * benchtests/slowcos-inputs: Remove.
852         * benchtests/slowcos.c: Remove.
853         * benchtests/slowexp-inputs: Remove.
854         * benchtests/slowexp.c: Remove.
855         * benchtests/slowpow-inputs: Remove.
856         * benchtests/slowpow.c: Remove.
857         * benchtests/slowsin-inputs: Remove.
858         * benchtests/slowsin.c: Remove.
859         * benchtests/slowtan-inputs: Remove.
860         * benchtests/slowtan.c: Remove.
861         * benchtests/tan-inputs: Add slow benchmark inputs.
862         * scripts/bench.pl: Parse comments and directives.
863
864         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
865         in CPPFLAGS.
866         ($(objpfx)bench-%.c): Remove *-ITER.
867         * benchtests/bench-modf.c: Remove definition of ITER.
868         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
869         (main): Loop for DURATION seconds instead of fixed number of
870         iterations.
871         * scripts/bench.pl: Don't expect iterations in parameters.
872
873 2013-04-29  Roland McGrath  <roland@hack.frob.com>
874
875         * io/fchdir.c (__fchdir): Renamed from fchdir.
876         (fchdir): Define as weak alias.
877
878 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
879
880         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
881         (ERRNO_EDOM): Likewise.
882         (ERRNO_ERANGE): Likewise.
883         (noErrnoTests): New variable.
884         (init_max_error): Set errno to 0.
885         (test_single_errno): New function.
886         (test_errno): Likewise.
887         (check_float_internal): Call test_errno.  Set errno to 0.
888         (check_complex): Refer to errno tests in comment.
889         (check_int): Call test_errno.  Set errno to 0.
890         (check_long): Likewise.
891         (check_bool): Likewise.
892         (check_longlong): Likewise.
893         (cos_test): Use ERRNO_* flags for errno tests instead of
894         check_int.
895         (expm1_test): Likewise.
896         (fmod_test): Likewise.
897         (ilogb_test): Likewise.
898         (lgamma_test): Likewise.
899         (pow_test): Likewise.
900         (remainder_test): Likewise.
901         (sin_test): Likewise.
902         (tan_test): Likewise.
903         (yn_test): Likewise.
904         (initialize): Set errno to 0.
905         (main): Print number of errno tests.
906         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
907
908 2013-04-29  Andreas Jaeger  <aj@suse.de>
909
910         [BZ #15084]
911         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
912         and RES_USEVC.
913
914         [BZ #15085]
915         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
916         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
917         unimplemented.
918
919         [BZ #15380]
920         * stdlib/random.c (__initstate): Return NULL if
921         __initstate fails.
922
923         [BZ #15086]
924         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
925         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
926         RES_SNGLKUPREOP.
927
928 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
929
930         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
931
932 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
933
934         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
935         of individual tests.
936         (casin_test): Likewise.
937         (casinh_test): Likewise.
938
939 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
940
941         [BZ #15409]
942         * math/s_catan.c (__catan): Handle arguments with large real or
943         imaginary part separately without squaring.
944         * math/s_catanf.c (__catanf): Likewise.
945         * math/s_catanh.c (__catanh): Likewise.
946         * math/s_catanhf.c (__catanhf): Likewise.
947         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
948         and redefine.
949         (__catanhl): Handle arguments with large real or imaginary part
950         separately without squaring.
951         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
952         and redefine.
953         (__catanl): Handle arguments with large real or imaginary part
954         separately without squaring.
955         * math/libm-test.inc (catan_test): Add more tests.
956         (catanh_test): Likewise.
957         * sysdeps/i386/fpu/libm-test-ulps: Update.
958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
959
960 2013-04-27  Andreas Jaeger  <aj@suse.de>
961
962         [BZ #15007]
963         * stdlib/stdlib.h: Update guards for qecvt.
964         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
965         <stdlib.h>.
966
967 2013-04-27  Allan McRae  <allan@archlinux.org>
968
969         * sysdeps/i386/fpu/libm-test-ulps: Update.
970
971 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
972
973         [BZ #15406]
974         * math/s_catan.c: Include <float.h>.
975         (__catan): Ensure underflow exception occurs for underflowed
976         result.
977         * math/s_catanf.c: Include <float.h>.
978         (__catanf): Ensure underflow exception occurs for underflowed
979         result.
980         * math/s_catanh.c: Include <float.h>.
981         (__catanh): Ensure underflow exception occurs for underflowed
982         result.
983         * math/s_catanhf.c: Include <float.h>.
984         (__catanhf): Ensure underflow exception occurs for underflowed
985         result.
986         * math/s_catanhl.c: Include <float.h>.
987         (__catanhl): Ensure underflow exception occurs for underflowed
988         result.
989         * math/s_catanl.c: Include <float.h>.
990         (__catanl): Ensure underflow exception occurs for underflowed
991         result.
992         * math/libm-test.inc (catan_test): Add more tests.
993         (catanh_test): Likewise.
994
995         [BZ #15405]
996         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
997         underflowed result.
998         * math/s_ccoshf.c (__ccoshf): Likewise.
999         * math/s_ccoshl.c (__ccoshl): Likewise.
1000         * math/s_csin.c (__csin): Likewise.
1001         * math/s_csinf.c (__csinf): Likewise.
1002         * math/s_csinh.c (__csinh): Likewise.
1003         * math/s_csinhf.c (__csinhf): Likewise.
1004         * math/s_csinhl.c (__csinhl): Likewise.
1005         * math/s_csinl.c (__csinl): Likewise.
1006         * math/libm-test.inc (ccos_test): Add more tests.
1007         (ccosh_test): Likewise.
1008         (csin_test): Likewise.
1009         (csinh_test): Likewise.
1010
1011 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1012
1013         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1014         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1015         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1016         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1017         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1018         powerpc/power5+/fpu folders.
1019         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1020
1021
1022 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1023
1024         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1025
1026 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1027
1028         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1029         additions to variable.
1030         [$(config-machine) = x86_64] (modules-names): Likewise.
1031         ($(objpfx)tst-audit3): Remove dependency.
1032         ($(objpfx)tst-audit3.out): Likewise.
1033         ($(objpfx)tst-audit4): Likewise.
1034         ($(objpfx)tst-audit4.out): Likewise.
1035         ($(objpfx)tst-audit5): Likewise.
1036         ($(objpfx)tst-audit5.out): Likewise.
1037         ($(objpfx)tst-audit6): Likewise.
1038         ($(objpfx)tst-audit6.out): Likewise.
1039         ($(objpfx)tst-audit7): Likewise.
1040         ($(objpfx)tst-audit7.out): Likewise.
1041         (tst-audit3-ENV): Remove variable.
1042         (tst-audit4-ENV): Likewise.
1043         (tst-audit5-ENV): Likewise.
1044         (tst-audit6-ENV): Likewise.
1045         (tst-audit7-ENV): Likewise.
1046         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1047         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1048         addition to variable.
1049         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1050         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1051         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1052         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1053         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1054         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1055         tst-audit3, tst-audit4 and tst-audit5.
1056         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1057         tst-audit6 and tst-audit7.
1058         [$(subdir) = elf] (modules-names): Add audit modules for those
1059         tests.
1060         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1061         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1062         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1063         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1064         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1065         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1066         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1067         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1068         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1069         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1070         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1071         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1072         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1073         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1074         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1075         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1076         Likewise.
1077         [$(subdir) = elf && $(config-cflags-avx) = yes]
1078         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1079         [$(subdir) = elf && $(config-cflags-avx) = yes]
1080         (CFLAGS-tst-auditmod4a.c): Likewise.
1081         [$(subdir) = elf && $(config-cflags-avx) = yes]
1082         (CFLAGS-tst-auditmod4b.c): Likewise.
1083         [$(subdir) = elf && $(config-cflags-avx) = yes]
1084         (CFLAGS-tst-auditmod6b.c): Likewise.
1085         [$(subdir) = elf && $(config-cflags-avx) = yes]
1086         (CFLAGS-tst-auditmod6c.c): Likewise.
1087         [$(subdir) = elf && $(config-cflags-avx) = yes]
1088         (CFLAGS-tst-auditmod7b.c): Likewise.
1089         * elf/tst-audit3.c: Move to ...
1090         * sysdeps/x86_64/tst-audit3.c: ... here.
1091         * elf/tst-audit4.c: Move to ...
1092         * sysdeps/x86_64/tst-audit4.c: ... here.
1093         * elf/tst-audit5.c: Move to ...
1094         * sysdeps/x86_64/tst-audit5.c: ... here.
1095         * elf/tst-audit6.c: Move to ...
1096         * sysdeps/x86_64/tst-audit6.c: ... here.
1097         * elf/tst-audit7.c: Move to ...
1098         * sysdeps/x86_64/tst-audit7.c: ... here.
1099         * elf/tst-auditmod3a.c: Move to ...
1100         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1101         * elf/tst-auditmod3b.c: Move to ...
1102         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1103         * elf/tst-auditmod4a.c: Move to ...
1104         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1105         * elf/tst-auditmod4b.c: Move to ...
1106         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1107         * elf/tst-auditmod5a.c: Move to ...
1108         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1109         * elf/tst-auditmod5b.c: Move to ...
1110         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1111         * elf/tst-auditmod6a.c: Move to ...
1112         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1113         * elf/tst-auditmod6b.c: Move to ...
1114         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1115         * elf/tst-auditmod6c.c: Move to ...
1116         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1117         * elf/tst-auditmod7a.c: Move to ...
1118         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1119         * elf/tst-auditmod7b.c: Move to ...
1120         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1121
1122 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1123
1124         [BZ #15366]
1125         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1126         define unconditionally.
1127         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1128         define unconditionally.
1129         (INT8_C, INT16_C, etc.): Likewise.
1130
1131 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1132
1133         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1134         __ehdr_start with hidden visibility.
1135
1136         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1137
1138 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1139
1140         * math/libm-test.inc (cos_test): Use accurate hex constants.
1141         (sincost_test): Likewise.
1142
1143 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1144
1145         * math/libm-test.inc (catan_test): Add more tests.
1146         (catanh_test): Likewise.
1147
1148         * math/s_catanf.c (__catanf): Use suffixed floating-point
1149         constants.
1150         * math/s_catanhf.c (__catanhf): Likewise.
1151         * math/s_catanhl.c (__catanhl): Likewise.
1152         * math/s_catanl.c (__catanl): Likewise.
1153
1154         [BZ #15394]
1155         * math/s_catan.c (__catan): Calculate imaginary part of result
1156         with log1p not log unless computing log of number close to 0.
1157         * math/s_catanf.c (__catanf): Likewise.
1158         * math/s_catanl.c (__catanl): Likewise.
1159         * math/s_catanh.c (__catanh): Calculate real part of result with
1160         log1p not log unless computing log of number close to 0.
1161         * math/s_catanhf.c (__catanhf): Likewise.
1162         * math/s_catanhl.c (__catanhl): Likewise.
1163         * math/libm-test.inc (catan_test): Add more tests.
1164         (catanh_test): Likewise.
1165         * sysdeps/i386/fpu/libm-test-ulps: Update.
1166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1167
1168 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1169
1170         * benchtests/Makefile: Mention files in which fast and slow
1171         paths of math functions are implemented.
1172
1173 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1174
1175         * sysdeps/posix/timespec_get.c: New file.
1176
1177 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1178
1179         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1180         POWER.
1181         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1182         for POWER.
1183         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1184         powerpc/power5/fpu folders.
1185         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1186         * benchtests/Makefile: Add modf testcase.
1187         * benchtests/bench-modf.c: New file: Benchmark test for mo
1188
1189 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1190
1191         [BZ #14888]
1192         * time/Makefile (tests): Add tst-strptime-whitespace.
1193         * time/strptime_l.c (get_number): Use ISSPACE.
1194         (__strptime_internal): Likewise.
1195         * time/tst-strptime-whitespace.c: New test case.
1196
1197 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1198
1199         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1200         member.
1201         (_nss_files_init): Set it here.
1202
1203 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1204
1205         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1206         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1207         unsigned.
1208
1209 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1210
1211         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1212
1213 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1214
1215         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1216         size just once.
1217
1218 2013-04-21  David S. Miller  <davem@davemloft.net>
1219
1220         * po/ru.po: Update Russion translation from translation project.
1221
1222 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1223
1224         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1225         and setfsgid.
1226
1227 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1228
1229         * configure.in: Remove i386 configure warning. Remove i386 case.
1230         * configure: Regenerate.
1231         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1232         Add example to error message.
1233         * sysdeps/i386/configure: Regenerate.
1234
1235 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1236
1237         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1238         slowtan.
1239         * benchtests/cos-inputs: New file.
1240         * benchtests/slowcos-inputs: New file.
1241         * benchtests/slowcos.c: New file.
1242         * benchtests/slowtan-inputs: New file.
1243         * benchtests/slowtan.c: New file.
1244         * benchtests/tan-inputs: New file.
1245
1246 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1247
1248         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1249         considered kosher.
1250
1251 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1252
1253         * benchtests/Makefile: Include cppflags-iterator.mk to add
1254         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1255
1256         * Makefile.in (bench-clean): New target.
1257         * benchtests/Makefile (bench-clean): Likewise.
1258
1259 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1260
1261         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1262
1263 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1264
1265         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1266
1267 2013-04-15  Andreas Schwab  <schwab@suse.de>
1268
1269         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1270         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1271         * nscd/pwdcache.c (cache_addpw): Likewise.
1272         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1273         more than recsize.
1274
1275 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1276
1277         * benchtests/Makefile (bench): Write all output to
1278         bench-out.tmp together.
1279
1280 2013-04-15  Andreas Schwab  <schwab@suse.de>
1281
1282         * nscd/nscd.c (main): Don't fork again after closing files.
1283
1284 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1285
1286         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1287
1288         * benchtests/Rules (bench-deps): Collect dependencies into a
1289         single variable.  Add Makefile to dependencies.
1290         ($(objpfx)bench-%.c): Depend on bench-deps.
1291
1292 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1293             Xavier Roche  <roche+kml2@exalead.com>
1294
1295         [BZ #15361]
1296         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1297         just that it's a file descriptor.
1298         * manual/llio.texi (Synchronizing AIO Operations): Update description
1299         for EBADF error from aio_fsync.
1300
1301 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1302
1303         * Rules (bench): Move target definition...
1304         * benchtests/Makefile: ... here.
1305
1306 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1307
1308         * math/libm-test.inc (cos_test): Fix PI/2 test.
1309         (sincos_test): Likewise.
1310         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1311         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1312
1313 2013-04-11  Andreas Schwab  <schwab@suse.de>
1314
1315         [BZ #13988]
1316         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1317         accept exponent character only when digits were seen.
1318         * stdio-common/Makefile (tests): Add bug26.
1319         * stdio-common/bug26.c: New file.
1320
1321         [BZ #14293]
1322         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1323         non-freeable.
1324
1325 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1326
1327         * Makeconfig (rtld-prefix): Define built linker prefix.
1328         * Rules (run-bench): Use it.
1329         * math/Makefile (run-regen-ulps): Likewise.
1330
1331         * Rules (bench): Remove eval.
1332
1333 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1334             Roland McGrath  <roland@hack.frob.com>
1335             Ondrej Bilka  <neleai@seznam.cz>
1336
1337         [BZ #15346]
1338         * time/getdate.c: Include ctype.h and alloca.h.
1339         (__getdate_r): Trim leading and trailing spaces of input.
1340         * time/tst-getdate.c (tests): Add tests with leading and
1341         trailing spaces.
1342
1343 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1344
1345         [BZ #14280]
1346         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1347         when computing value.
1348
1349 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1350
1351         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1352         Use testrun.sh to run libm tests.
1353
1354         [BZ #15309]
1355         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1356
1357 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1358
1359         [BZ #15264]
1360         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1361
1362 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1363
1364         * Makefile.in (regen-ulps): New target.
1365         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1366         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1367         [ifneq (no,$(PERL)] (regen-ulps): New target.
1368         [ifeq (no,$(PERL)] (regen-ulps): New target.
1369         * math/libm-test.inc (ulps_file_name): Define.
1370         (output_dir): New variable.
1371         (options): Add "output-dir" option.
1372         (parse_opt): Handle 'o' case.
1373         (main): If output_dir is non-NULL use it as a prefix
1374         otherwise use "".
1375         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1376
1377 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1378
1379         [BZ #10060, #10062]
1380         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1381         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1382         fail configure if __sync_val_compare_and_swap is not inlined.
1383         * sysdeps/i386/configure: Regenerate.
1384         * configure.in: Build for i686 when configured for i386.
1385         * configure: Regenerate.
1386         * README: Remove i386 reference.
1387
1388 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1389
1390         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1391         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1392
1393 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1394
1395         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1396         (lmsnanval): New variables.
1397         (F): Add conversion tests.
1398         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1399         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1400
1401         * stdio-common/tstdiomisc.c (F): Properly collect individual
1402         tests' results.
1403
1404         [BZ #14686, #15336]
1405         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1406         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1407         Instead, use input NaN values or generate a qNaN by arithmetic
1408         operation.  Also fix bugs to comply with the standard.
1409         * math/libm-test.inc (remainder_test): Add more tests.
1410
1411         [BZ #15335, #15342]
1412         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1413         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1414         input NaN values or generate a qNaN by arithmetic operation.
1415
1416         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1417         unreachable code.
1418
1419         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1420         definitions.
1421
1422 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1423
1424         [BZ #14478]
1425         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1426         underflowed result.
1427         * math/s_cexpf.c (__cexpf): Likewise.
1428         * math/s_cexpl.c (__cexpl): Likewise.
1429         * math/libm-test.inc (cexp_test): Add more tests.
1430
1431 2013-04-03  Andreas Schwab  <schwab@suse.de>
1432
1433         [BZ #15330]
1434         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1435         order arrays from heap if bigger than alloca cutoff.
1436
1437 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1438
1439         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1440         (SNAN_TESTS_double): Refer to GCC PR56831.
1441         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1442         GCC PR56828.
1443
1444 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1445
1446         * Rules (bench): Move bench.out after the run is complete.
1447
1448         * Rules (bench): Echo currently running benchmark.
1449
1450         * benchtests/Makefile (bench): Add atan and slowatan.
1451         * benchtests/atan-inputs: New file.
1452         * benchtests/slowatan-inputs: New file.
1453         * benchtests/slowatan.c: New file.
1454
1455         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1456         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1457         its value.
1458
1459         [BZ #15305]
1460         * sysdeps/unix/sysv/linux/kernel-features.h
1461         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1462         __ASSUME_XFS_RESTRICTED_CHOWN.
1463         * sysdeps/unix/sysv/linux/pathconf.c
1464         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1465         Save and restore errno.
1466
1467 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1468
1469         [BZ #15327]
1470         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1471         arguments using __kernel_casinh.
1472         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1473         arguments using __kernel_casinhf.
1474         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1475         arguments using __kernel_casinhl.
1476         * math/libm-test.inc (cacosh_test): Add more tests.
1477         * sysdeps/i386/fpu/libm-test-ulps: Update.
1478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1479
1480 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1481
1482         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1483         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1484
1485         * bench/Makefile (bench): Add sin and slowsin.
1486         * benchtests/sin-inputs: New file.
1487         * benchtests/slowsin-inputs: New file.
1488         * benchtests/slowsin.c: New file.
1489
1490         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1491         (bench): Add slowexp and slowpow.
1492         (exp-ITER): Increase iterations.
1493         (pow-ITER): Likewise.
1494         * benchtests/exp-inputs: Change input.
1495         * benchtests/pow-inputs: Likewise.
1496         * benchtests/slowexp-inputs: New file.
1497         * benchtests/slowexp.c: New file.
1498         * benchtests/slowpow-inputs: New file.
1499         * benchtests/slowpow.c: New file.
1500
1501 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1502
1503         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1504         instructions.
1505         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1506         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1507         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1508         * benchtests/Makefile: Add rint benchtest.
1509         * benchtests/rint-inputs: Input for rint benchtest.
1510
1511 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1512
1513         * Versions.def (libm): Add GLIBC_2.18.
1514         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1515         hidden libm prototypes.
1516         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1517         * math/Makefile (libm-calls): Add s_issignaling.
1518         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1519         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1520         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1521         declaration.
1522         * math/math.h [__USE_GNU] (issignaling): New macro.
1523         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1524         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1525         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1526         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1527         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1528         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1529         * manual/arith.texi (issignaling): New section.
1530         * manual/libm-err-tab.pl (@all_functions): Update comment.
1531         * math/gen-libm-test.pl (parse_args): Apply special handling for
1532         issignaling.
1533         * math/libm-test.inc (print_float, issignaling_test): New
1534         functions.
1535         (check_float_internal): Add issignaling checks.
1536         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1537         default definition.
1538         * sysdeps/powerpc/math-tests.h: New file.
1539         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1540         tests.
1541         * math/test-snan.c (TEST_FUNC): Likewise.
1542
1543 2013-03-30  David S. Miller  <davem@davemloft.net>
1544
1545         * po/de.po: Update from translation team.
1546
1547 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1548
1549         [BZ #10357]
1550         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1551         imaginary part less than 1.0 and real part less than 0.5
1552         specially.
1553         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1554         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1555         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1556         (cacos_test): Add more tests.
1557         (casin_test): Likewise.
1558         (casinh_test): Likewise.
1559         * sysdeps/i386/fpu/libm-test-ulps: Update.
1560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1561
1562 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1563
1564         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1565         ONE with its value.
1566
1567         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1568         (__pow_mp): Replace ONE and MONE with their values.
1569         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1570         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1571         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1572         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1573         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1574         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1575
1576         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1577
1578         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1579         (__pow_mp): Replace ZERO and MZERO with their values.
1580         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1581         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1582         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1583         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1584         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1585         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1586         (__sqr): Likewise.
1587
1588         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1589
1590         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1591
1592 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1593
1594         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1595         Declare with __attribute__ ((weak)).
1596         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1597         Call __call_tls_dtors only if it's not NULL.
1598
1599 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1600
1601         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1602         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1603         magic __ehdr_start linker symbol if it's defined.
1604         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1605         them up here if it was already done.
1606
1607         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1608         (_dl_aux_init): Use const in cast when setting it.
1609         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1610         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1611         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1612
1613         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1614         Declare them here.
1615         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1616         * csu/libc-tls.c: Nor here.
1617         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1618
1619         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1620         (__libc_message): Never call vsyslog.
1621
1622 2013-03-28  Alan Modra  <amodra@gmail.com>
1623
1624         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1625         Define as empty.
1626         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1627         Likewise.
1628
1629 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1630
1631         [BZ #15214]
1632         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1633         underflow.
1634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1635
1636 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1637
1638         [BZ #15304]
1639         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1640         Don't add gid passed as argument.
1641
1642         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1643
1644 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1645
1646         [BZ #15307]
1647         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1648         imaginary part between 1.0 and 1.5 and real part less than 0.5
1649         specially.
1650         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1651         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1652         * math/libm-test.inc (cacos_test): Add more tests.
1653         (casin_test): Likewise.
1654         (casinh_test): Likewise.
1655         * sysdeps/i386/fpu/libm-test-ulps: Update.
1656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1657
1658 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1659
1660         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1661         constants.
1662         (norm): Likewise.
1663         (denorm): Likewise.
1664         (__dbl_mp): Likewise.
1665         (add_magnitudes): Likewise.
1666         (sub_magnitudes): Likewise.
1667         (__add): Likewise.
1668         (__sub): Likewise.
1669         (__mul): Likewise.
1670         (__sqr): Likewise.
1671         (__inv): Likewise.
1672         (__dvd): Likewise.
1673
1674         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1675         commented code.
1676         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1677         (__dubcos): Likewise.
1678         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1679         (__ieee754_acos): Likewise.
1680         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1681         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1682         (__exp1): Likewise.
1683         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1684         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1685         (log1): Likewise.
1686         (my_log2): Likewise.
1687         (checkint): Likewise.
1688         * sysdeps/ieee754/dbl-64/e_remainder.c
1689         (__ieee754_remainder): Likewise.
1690         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1691         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1692         (bsloww): Likewise.
1693         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1694
1695         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1696         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1697         MANTISSA_STORE_T to store computations on mantissa.  Use
1698         macros for rounding and division.
1699         (denorm): Likewise.
1700         (__dbl_mp): Likewise.
1701         (add_magnitudes): Likewise.
1702         (sub_magnitudes): Likewise.
1703         (__mul): Likewise.
1704         (__sqr): Likewise.
1705         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1706         powers of two in terms of TWOPOW macro.
1707         (mp_no): Make type of mantissa as MANTISSA_T.
1708         [!RADIXI]: Define RADIXI.
1709         [!TWO52]: Define TWO52.
1710         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1711
1712 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1713
1714         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1715         llroundl symbol when building for PPC32.
1716
1717 2013-03-24  Mark H Weaver  <mhw@netris.org>
1718
1719         * manual/arith.texi (Normalization Functions): Fix prototypes for
1720         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1721
1722 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1723
1724         [BZ #13889]
1725         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1726         high value to check if expl overflow.
1727         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1728         to check for underflow and overflow.
1729         * math/libm-test.inc: Add exp test.
1730
1731 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1732
1733         [BZ #11120]
1734         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1735         with NOT_IN_libc.
1736
1737 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1738
1739         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1740         symbol.
1741
1742 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1743
1744         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1745         wrap blocks consisting of several statements.
1746
1747         * sysdeps/generic/math-tests.h: New file.
1748         * sysdeps/i386/fpu/math-tests.h: Likewise.
1749         * math/test-snan.c: Include it.
1750         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1751
1752 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1753
1754         [BZ #15285]
1755         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1756         (__ieee754_j0l): Do not improve calculations using cos of twice
1757         input for inputs above LDBL_MAX / 2.0L.
1758         (__ieee754_y0l): Likewise.
1759         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1760         (__ieee754_j1l): Do not improve calculations using cos of twice
1761         input for inputs above LDBL_MAX / 2.0L.
1762         (__ieee754_y1l): Likewise.
1763         * math/libm-test.inc (j0_test): Add another test.
1764         (j1_test): Likewise.
1765         (y0_test): Likewise.
1766         (y1_test): Likewise.
1767         * sysdeps/i386/fpu/libm-test-ulps: Update.
1768
1769 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1770
1771         * Rules ($(objpfx)bench-%.c): Include code from a C source
1772         file.
1773
1774 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1775
1776         [BZ #15287]
1777         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1778         imaginary part 1.0 and real part less than 0.5 specially.
1779         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1780         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1781         * math/libm-test.inc (cacos_test): Add more tests.
1782         (casin_test): Likewise.
1783         (casinh_test): Likewise.
1784         * sysdeps/i386/fpu/libm-test-ulps: Update.
1785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1786
1787 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1788
1789         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1790         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1791
1792 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1793
1794         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1795         * config.make.in (config-cflags-sse4): Remove variable.
1796         (config-cflags-avx): Likewise.
1797         (config-cflags-sse2avx): Likewise.
1798         (config-cflags-novzeroupper): Likewise.
1799         (config-asflags-i686): Likewise.
1800         (have-mfma4): Likewise.
1801         (have-as-vis3): Likewise.
1802         (MIG): Likewise.
1803         * configure.in (MIG): Do not AC_SUBST.
1804         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1805         (libc_cv_cc_sse4): Do not AC_SUBST.
1806         (libc_cv_cc_avx): Likewise.
1807         (libc_cv_cc_sse2avx): Likewise.
1808         (libc_cv_cc_novzeroupper): Likewise.
1809         (libc_cv_cc_fma4): Likewise.
1810         (libc_cv_as_i686): Likewise.
1811         (libc_cv_sparc_as_vis3): Likewise.
1812         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1813         LIBC_CONFIG_VAR.
1814         (config-asflags-i686): Likewise.
1815         (config-cflags-avx): Likewise.
1816         (config-cflags-sse2avx): Likewise.
1817         (have-mfma4): Likewise.
1818         (config-cflags-novzeroupper): Likewise.
1819         * sysdeps/mach/configure.in (MIG): Likewise.
1820         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1821         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1822         LIBC_CONFIG_VAR.
1823         (config-cflags-avx): Likewise.
1824         (config-cflags-sse2avx): Likewise.
1825         (have-mfma4): Likewise.
1826         (config-cflags-novzeroupper): Likewise.
1827         * configure: Regenerated.
1828         * sysdeps/i386/configure: Likewise.
1829         * sysdeps/mach/configure: Likewise.
1830         * sysdeps/sparc/configure: Likewise.
1831         * sysdeps/x86_64/configure: Likewise.
1832
1833 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1834
1835         [BZ #14812]
1836         * locale/programs/localedef.c (options): Put N_ translation marker
1837         on argument names, not just descriptions.
1838
1839 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1840
1841         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1842
1843 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1844
1845         [BZ #14176]
1846         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1847
1848 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1849
1850         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1851         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1852         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1853         [!BEFORE_ABORT] (before_abort): New function.
1854         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1855         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1856         (writev_for_fatal): New function.
1857         (WRITEV_FOR_FATAL): New macro; call that.
1858         (backtrace_and_maps): New function.
1859         (BEFORE_ABORT): New macro; call that.
1860         (struct str_list): Type removed.
1861         (__libc_message, __libc_fatal): Functions removed.
1862         Include <sysdeps/posix/libc_fatal.c> instead.
1863
1864 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1865
1866         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1867         constants.
1868         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1869         double constants.
1870
1871 2013-03-19  Andreas Schwab  <schwab@suse.de>
1872
1873         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1874         * sysdeps/gnu/configure: Regenerate.
1875
1876         * configure.in: Substitute libc_cv_rtlddir.
1877         * configure: Regenerate.
1878         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1879         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1880         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1881         * elf/Makefile (install-others, CFLAGS-interp.c)
1882         (ldso_install, common-ldd-rewrite): Likewise.
1883         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1884         $(inst_slibdir)/$(rtld-installed-name).
1885         * scripts/rellns-sh: Add -p option.
1886         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1887         for source.
1888
1889 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1890
1891         * manual/nptl.texi: Renamed to ...
1892         * manual/threads.texi: ... this.
1893         * manual/Makefile (chapters): Update.
1894
1895 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1896
1897         [BZ #14812]
1898         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1899         on argument names, not just descriptions.
1900         * malloc/memusagestat.c (options): Likewise.
1901         * nss/getent.c (options): Likewise.
1902
1903 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1904
1905         [BZ #14812]
1906         * iconv/iconv_prog.c (options): Put N_ translation marker
1907         on argument names, not just descriptions.
1908         * iconv/iconvconfig.c (options): Likewise.
1909
1910 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1911
1912         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1913         implementation which is faster on all x86_64 architectures.
1914         Tested on AMD, Intel Nehalem, SNB, IVB.
1915         * sysdeps/x86_64/strnlen.S: Likewise.
1916
1917         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1918         Remove all multiarch strlen and strnlen versions.
1919         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1920         Remove strlen and strnlen related parts.
1921
1922         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1923         Inline strlen part.
1924         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1925
1926         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1927         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1928         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1929         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1930         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1931         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1932
1933 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1934
1935         * manual/memory.texi (Malloc Tunable Parameters):
1936         Sort parameters alphabetically. Add comments for missing entries.
1937
1938 2013-03-17  David S. Miller  <davem@davemloft.net>
1939
1940         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1941
1942 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1943
1944         [BZ #15283]
1945         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1946         for arguments at most half maximum finite value.
1947         * math/libm-test.inc (j0_test): Add more tests.
1948         (j1_test): Likewise.
1949         (y0_test): Likewise.
1950         (y1_test): Likewise.
1951         * sysdeps/i386/fpu/libm-test-ulps: Update.
1952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1953
1954         [BZ #14155]
1955         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1956         1 / x and functions P and Q for arguments above 0x1p256L.
1957         (__ieee754_y0l): Likewise.
1958         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1959         (__ieee754_y1l): Likewise.
1960         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1961         (j1_test): Likewise.
1962         (y0_test): Likewise.
1963         (y1_test): Likewise.
1964
1965 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1966
1967         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1968         variable.
1969
1970 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1971
1972         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1973         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1974         zero since it's initialized to EXEC_PAGESIZE.
1975
1976         * sysdeps/unix/sysv/linux/ldsodefs.h
1977         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1978         * sysdeps/generic/ldsodefs.h: ... here.
1979
1980 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1981
1982         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1983
1984         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1985         math/test-snan.c.
1986         * math/test-snan.c: Renamed from
1987         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1988         * math/Makefile (tests): Add test-snan.
1989         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1990         test-powerpc-snan.
1991
1992         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1993         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1994         functions.
1995         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1996         __builtin_nan family of functions.
1997         * math/libm-test.inc (initialize): Initialize qnan_value with
1998         __builtin_nan family of functions.
1999         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2000         Remove variables.
2001         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2002         Remove functions.
2003         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2004         storage class.  Initialize qNaN_var and sNaN_var with
2005         __builtin_nan and __builtin_nans families of functions,
2006         respectively.
2007
2008         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2009         (sqrt_test): Remove duplicate test with qNaN input.
2010         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2011         (round_test, signbit_test, significand_test): Note missing +/-Inf
2012         as well as qNaN tests.
2013
2014         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2015         qNaN_var.  Fix a few strings, too.
2016         * math/libm-test.inc (nan_value): Rename to qnan_value.
2017         * math/gen-libm-test.pl (%beautify): Adjust to that.
2018         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2019         * math/test-misc.c (main): Likewise.
2020         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2021         to __qnan_bytes, and __qnan_union, respectively.
2022         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2023         Likewise.
2024         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2025         and lqnanval, respectively.
2026         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2027         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2028         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2029         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2030
2031         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2032         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2033         doubles.
2034
2035         * math/test-misc.c (main): Fix copy'n'pastos.
2036         * misc/tst-efgcvt.c (special): Likewise.
2037
2038         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2039         Remove declarations.
2040
2041 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2042
2043         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2044         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2045         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2046         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2047
2048 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2049
2050         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2051         macro to return vdso values correctly in IFUNC implementations.
2052         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2053         Optimization by using IFUNC.
2054
2055 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2056             Richard Henderson  <rth@redhat.com>
2057             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2058
2059         * Makefile.in (bench): New target.
2060         * NEWS: Mention the benchmark framework.
2061         * Rules (bench): Likewise.
2062         (binaries-bench): Generate binaries for functions to
2063         benchmark.
2064         * benchtests/Makefile: New makefile for benchmark tests.
2065         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2066         programs.
2067         * benchtests/exp-inputs: New input file for EXP function.
2068         * benchtests/pow-inputs: New input file for POW function.
2069         * scripts/bench.pl: New script to generate source files for
2070         benchmark programs.
2071
2072 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2073
2074         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2075         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2076         computations on mantissa.  Use macros for rounding and
2077         division.
2078         (denorm): Likewise.
2079         (__dbl_mp): Likewise.
2080         (add_magnitudes): Likewise.
2081         (sub_magnitudes): Likewise.
2082         (__mul): Likewise.
2083         (__sqr): Likewise.
2084         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2085         powers of two in terms of TWOPOW macro.
2086         (mp_no): Make type of mantissa as MANTISSA_T.
2087         [!RADIXI]: Define RADIXI.
2088         [!TWO52]: Define TWO52.
2089         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2090
2091         * manual/nptl.texi (cindex): Modify threads to pthreads.
2092
2093 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * sysdeps/x86_64/preconfigure: Regenerated.
2096
2097 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2098
2099         [BZ #14155]
2100         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2101         0x1p28 and above.
2102         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2103         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2104         0x1p28 and above.
2105         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2106         * math/libm-test.inc (j0_test): Do not allow one spurious
2107         underflow exception.
2108         (y1_test): Likewise.
2109
2110 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2111
2112         * manual/Makefile (chapters): Add nptl.
2113         * manual/debug.texi (Debugging Support): Add link to Threads
2114         chapter.
2115         * manual/nptl.texi: New file.
2116
2117         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2118
2119 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2120
2121         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2122         for non-NULL pointer before the memory validity test. Pointed
2123         out by Holger Brunck <holger.brunck@keymile.com>.
2124
2125 2013-03-13  Andreas Schwab  <schwab@suse.de>
2126
2127         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2128         instead of .os.
2129
2130 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2131
2132         * timezone/zic.c: Update from tzcode 2013b.
2133
2134 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2135
2136         * manual/install.texi (Configuring and compiling):
2137         Mention i686 and i586.
2138         * INSTALL: Regenerate.
2139
2140 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2141
2142         * sysdeps/init_array/elf-init.c: New file.
2143         * csu/elf-init.c
2144         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2145         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2146
2147         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2148         __gmon_start__ as global, but as static with a .preinit_array pointer.
2149         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2150         * sysdeps/init_array/crti.S: New file, empty except for comments.
2151         * sysdeps/init_array/crtn.S: Likewise.
2152
2153 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2154
2155         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2156         definining bcopy.
2157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2158         Remove Prefer_SSE_for_memop.
2159         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2160         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2161         HAS_PREFER_SSE_FOR_MEMOP.
2162         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2163         memset-x86-64.
2164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2165         Remove bzero, memset ifunc support.
2166         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2167         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2168         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2169         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2170
2171 2013-03-11  Andreas Schwab  <schwab@suse.de>
2172
2173         [BZ #15234]
2174         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2175         by SHLIB_COMPAT.
2176         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2177         (GLIBC_2.16): Remove pthread_atfork.
2178
2179 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2180
2181         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2182         (ptestcases.h): Likewise.
2183
2184 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2185
2186         * Makeconfig ($(common-objpfx)config.status): Depend on
2187         sysdeps/*/preconfigure{,.in} too.
2188
2189 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2190
2191         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2192         (__free_hook): Use void * instead of __malloc_ptr_t.
2193         (__malloc_hook): Likewise.
2194         (__realloc_hook): Likewise.
2195         (__memalign_hook): Likewise.
2196         (__after_morecore_hook): Likewise.
2197         * malloc/arena.c (save_malloc_hook): Likewise.
2198         (save_free_hook): Likewise.
2199         * malloc/hooks.c (malloc_hook_ini): Likewise.
2200         (realloc_hook_ini): Likewise.
2201         (memalign_hook_ini): Likewise.
2202         * malloc/malloc.c (malloc_hook_ini): Likewise.
2203         (realloc_hook_ini): Likewise.
2204         (memalign_hook_ini): Likewise.
2205         (__free_hook): Likewise.
2206         (__malloc_hook): Likewise.
2207         (__realloc_hook): Likewise.
2208         (__memalign_hook): Likewise.
2209         (__libc_malloc): Likewise.
2210         (__libc_free): Likewise.
2211         (__libc_realloc): Likewise.
2212         (__libc_memalign): Likewise.
2213         (__libc_valloc): Likewise.
2214         (__libc_pvalloc): Likewise.
2215         (__libc_calloc): Likewise.
2216         (__posix_memalign): Likewise.
2217         * malloc/morecore.c (__sbrk): Likewise.
2218         (__default_morecore): Likewise.
2219
2220         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2221
2222         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2223         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2224         __malloc_ptrdiff_t.
2225
2226         * malloc/malloc.h (__malloc_size_t): Remove macro.
2227         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2228         __malloc_size_t.
2229         (old_memalign_hook): Likewise.
2230         (old_realloc_hook): Likewise.
2231         (struct hdr): Likewise.
2232         (flood): Likewise.
2233         (mallochook): Likewise.
2234         (memalignhook): Likewise.
2235         (reallochook): Likewise.
2236         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2237         (tr_old_realloc_hook): Likewise.
2238         (tr_old_memalign_hook): Likewise.
2239         (tr_mallochook): Likewise.
2240         (tr_reallochook): Likewise.
2241         (tr_memalignhook): Likewise.
2242
2243 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2244
2245         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2246         default_ldbl_pack and using as default implementation.
2247         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2248         implementation.
2249         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2250         redundant definition.
2251         (ldbl_insert_mantissa): Likewise.
2252         (ldbl_canonicalize): Likewise.
2253         (ldbl_nearbyint): Likewise.
2254         (ldbl_pack): Rename to ldbl_pack_ppc.
2255         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2256         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2257         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2258
2259 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2260
2261         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2262         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2263         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2264         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2265         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2266         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2267         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2268         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2269
2270 2013-03-07  Andreas Jaeger  <aj@suse.de>
2271
2272         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2273         bits/mman-linux.h.
2274
2275 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2276
2277         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2278         Include mpa.h and declare __MPEXP.
2279         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2280         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2281         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2282         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2283         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2284         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2285         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2286
2287         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2288         (__slowpow): Use long double EXPL and LOGL functions to
2289         compute POW.
2290         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2291         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2292         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2293         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2294         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2295         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2296
2297         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2298         intermediate variable to calculate exponent.
2299         (__sqr): Likewise.
2300         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2301         Likewise.
2302         (__sqr): Likewise.
2303
2304         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2305         [!NO__SQR]: Define __sqr.
2306         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2307         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2308         sysdeps/ieee754/dbl-64/mpa.c.
2309         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2310
2311         [BZ #12723]
2312         * posix/Makefile (tests): Add tst-pathconf.
2313         * posix/tst-pathconf.c: New test case.
2314         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2315         _PC_PIPE_BUF.
2316         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2317
2318 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2319
2320         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2321
2322 2013-03-06  Andreas Jaeger  <aj@suse.de>
2323
2324         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2325         definition via __MAP_ANONYMOUS.
2326
2327         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2328         it's not part of Linux headers.
2329
2330         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2331         (MAP_HUGE_MASK): Define.
2332
2333         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2334         Define.
2335         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2336         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2337         Define.
2338         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2339         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2340         Define.
2341         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2342         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2343         Define.
2344         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2345
2346         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2347         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2348         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2349         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2350         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2351         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2352
2353         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2354         Handle f2fs.
2355
2356         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2357         Handle f2fs and efivarfs.
2358
2359         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2360         f2fs.
2361
2362         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2363         (EFIVARFS_MAGIC): Add.
2364         (F2FS_LINK_MAX): Add.
2365
2366 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2367
2368         * stdio-common/vfprintf.c: Replace __builtin_expect with
2369         __glibc_unlikely.
2370
2371 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2372
2373         [BZ #13550]
2374         * sysdeps/generic/bp-sym.h: Remove file.
2375         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2376         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2377         <bp-sym.h> and <bp-asm.h>.
2378         (__longjmp): Don't use BP_SYM.
2379         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2380         and <bp-asm.h>.
2381         (memcpy): Don't use BP_SYM.
2382         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2383         <bp-sym.h> and <bp-asm.h>.
2384         (memcpy): Don't use BP_SYM.
2385         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2386         <bp-asm.h>.
2387         (memcpy): Don't use BP_SYM.
2388         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2389         <bp-asm.h>.
2390         (memset): Don't use BP_SYM.
2391         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2392         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2393         (__bzero): Don't use BP_SYM.
2394         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2395         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2396         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2397         <bp-sym.h> and <bp-asm.h>.
2398         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2399         pointers.
2400         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2401         <bp-sym.h> and <bp-asm.h>.
2402         (memcpy): Don't use BP_SYM.
2403         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2404         <bp-sym.h> and <bp-asm.h>.
2405         (memset): Don't use BP_SYM.
2406         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2407         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2408         (__bzero): Don't use BP_SYM.
2409         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2410         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2411         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2412         <bp-sym.h> and <bp-asm.h>.
2413         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2414         pointers.
2415         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2416         <bp-sym.h> and <bp-asm.h>.
2417         (memcpy): Don't use BP_SYM.
2418         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2419         <bp-sym.h> and <bp-asm.h>.
2420         (memset): Don't use BP_SYM.
2421         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2422         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2423         (__bzero): Don't use BP_SYM.
2424         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2425         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2426         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2427         <bp-sym.h> and <bp-asm.h>.
2428         (__memchr): Don't use BP_SYM.
2429         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2430         <bp-sym.h> and <bp-asm.h>.
2431         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2432         pointers.
2433         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2434         <bp-sym.h> and <bp-asm.h>.
2435         (memcpy): Don't use BP_SYM.
2436         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2437         <bp-sym.h> and <bp-asm.h>.
2438         (__mempcpy): Don't use BP_SYM.
2439         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2440         <bp-sym.h> and <bp-asm.h>.
2441         (__memrchr): Don't use BP_SYM.
2442         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2443         <bp-sym.h> and <bp-asm.h>.
2444         (memset): Don't use BP_SYM.
2445         (__bzero): Likewise.
2446         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2447         <bp-sym.h> and <bp-asm.h>.
2448         (__rawmemchr): Don't use BP_SYM.
2449         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2450         <bp-sym.h> and <bp-asm.h>.
2451         (__STRCMP): Don't use BP_SYM.
2452         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2453         <bp-sym.h> and <bp-asm.h>.
2454         (strchr): Don't use BP_SYM.
2455         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2456         <bp-sym.h> and <bp-asm.h>.
2457         (__strchrnul): Don't use BP_SYM.
2458         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2459         <bp-sym.h> and <bp-asm.h>.
2460         (strlen): Don't use BP_SYM.
2461         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2462         <bp-sym.h> and <bp-asm.h>.
2463         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2464         pointers.
2465         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2466         <bp-sym.h> and <bp-asm.h>.
2467         (__strnlen): Don't use BP_SYM.
2468         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2469         <bp-sym.h> and <bp-asm.h>.
2470         (__GI__setjmp): Don't use BP_SYM.
2471         (_setjmp): Likewise.
2472         (__sigsetjmp): Likewise.
2473         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2474         (L(start_addresses)): Don't use BP_SYM.
2475         (_start): Likewise.
2476         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2477         <bp-asm.h>.
2478         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2479         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2480         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2481         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2482         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2483         <bp-asm.h>.
2484         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2485         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2486         about bounded pointers.
2487         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2488         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2489         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2490         <bp-asm.h>.
2491         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2492         about bounded pointers.  Remove GKM FIXME comments.
2493         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2494         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2495         <bp-asm.h>.
2496         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2497         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2498         Remove GKM FIXME comments.
2499         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2500         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2501         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2502         <bp-asm.h>.
2503         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2504         about bounded pointers.  Remove GKM FIXME comment.
2505         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2506         and <bp-asm.h>.
2507         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2508         pointers.
2509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2510         <bp-sym.h> and <bp-asm.h>.
2511         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2513         <bp-sym.h> and <bp-asm.h>.
2514         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2515         comment.
2516
2517 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2518
2519         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2520         call free(NULL).
2521
2522 2013-03-05  David S. Miller  <davem@davemloft.net>
2523
2524         * po/es.po: Update from translation team.
2525
2526 2013-03-05  Andreas Jaeger  <aj@suse.de>
2527
2528         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2529         <bits/mman-linux.h>.
2530         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2531         is fine.
2532         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2533         <bits/mman-linux.h> to end of file.
2534         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2535         is fine.
2536         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2537         <bits/mman-linux.h> to end of file.
2538         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2539         is fine.
2540         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2541         <bits/mman-linux.h> to end of file.
2542
2543         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2544         (MCL_CURRENT, MCL_FUTURE): Define here.
2545
2546 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2547
2548         [BZ #15232]
2549         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2550         attribute_hidden.
2551         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2552
2553 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2554
2555         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2556         fourth parameter needed for rt_sigprocmask syscall.
2557         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2558         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2559         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2560         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2561         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2562         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2563
2564 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2565
2566         [BZ #13550]
2567         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2568         comment about bounded pointers.
2569         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2570         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2571
2572 2013-03-04  Andreas Jaeger  <aj@suse.de>
2573
2574         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2575         common definitions.
2576
2577         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2578         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2579         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2580         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2581         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2582         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2583
2584 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2585
2586         [BZ #15055]
2587         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2588         __ieee754_sqrl instead of __sqrl.
2589
2590 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2591
2592         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2593         * sysdeps/powerpc/fpu_control.h: ... here.
2594         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2595         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2596         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2597         * sysdeps/powerpc/bits/mathinline.h: ... here.
2598
2599 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2600
2601         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2602         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2603         to just [NEED_DL_SYSINFO_DSO].
2604         * elf/dl-support.c: Likewise.
2605         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2606         * elf/rtld.c (dl_main): Likewise.
2607         * elf/setup-vdso.h (setup_vdso): Likewise.
2608         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2609         * sysdeps/unix/sysv/linux/dl-sysdep.c
2610         (_dl_discover_osversion): Likewise.
2611
2612 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2613
2614         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2615         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2616
2617 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2618
2619         * NEWS: Mention libm performance improvements and non-x86 PI
2620         futex support.
2621
2622         * csu/libc-start.c (__pthread_initialize_minimal): Change
2623         function arguments.
2624         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2625
2626 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2627
2628         [BZ #13550]
2629         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2630         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2631         <bp-sym.h> and <bp-asm.h>.
2632         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2633         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2634         and <bp-asm.h>.
2635         (memcpy): Don't use BP_SYM.
2636         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2637         <bp-asm.h>.
2638         (__mpn_add_n): Don't use BP_SYM.
2639         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2640         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2641         and <bp-asm.h>.
2642         (__mpn_addmul_1): Don't use BP_SYM.
2643         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2644         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2645         <bp-sym.h>.
2646         (_setjmp): Don't use BP_SYM.
2647         (__novmx_setjmp): Likewise.
2648         (__GI__setjmp): Likewise.
2649         (__vmx_setjmp): Likewise.
2650         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2651         <bp-sym.h>.
2652         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2653         (__bzero): Don't use BP_SYM.
2654         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2655         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2656         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2657         <bp-sym.h> and <bp-asm.h>.
2658         (memcpy): Don't use BP_SYM.
2659         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2660         <bp-sym.h> and <bp-asm.h>.
2661         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2662         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2663         <bp-sym.h> and <bp-asm.h>.
2664         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2665         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2666         <bp-asm.h>.
2667         (__mpn_lshift): Don't use BP_SYM.
2668         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2669         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2670         <bp-asm.h>.
2671         (memset): Don't use BP_SYM.
2672         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2673         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2674         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2675         <bp-asm.h>.
2676         (__mpn_mul_1): Don't use BP_SYM.
2677         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2678         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2679         <bp-sym.h> and <bp-asm.h>.
2680         (memcmp): Don't use BP_SYM.
2681         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2682         <bp-sym.h> and <bp-asm.h>.
2683         (memcpy): Don't use BP_SYM.
2684         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2685         <bp-sym.h> and <bp-asm.h>.
2686         (memset): Don't use BP_SYM.
2687         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2688         <bp-sym.h> and <bp-asm.h>.
2689         (strncmp): Don't use BP_SYM.
2690         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2691         <bp-sym.h> and <bp-asm.h>.
2692         (memcpy): Don't use BP_SYM.
2693         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2694         <bp-sym.h> and <bp-asm.h>.
2695         (memset): Don't use BP_SYM.
2696         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2697         <bp-sym.h> and <bp-asm.h>.
2698         (__memchr): Don't use BP_SYM.
2699         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2700         <bp-sym.h> and <bp-asm.h>.
2701         (memcmp): Don't use BP_SYM.
2702         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2703         <bp-sym.h> and <bp-asm.h>.
2704         (memcpy): Don't use BP_SYM.
2705         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2706         <bp-sym.h> and <bp-asm.h>.
2707         (__mempcpy): Don't use BP_SYM.
2708         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2709         <bp-sym.h> and <bp-asm.h>.
2710         (__memrchr): Don't use BP_SYM.
2711         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2712         <bp-sym.h> and <bp-asm.h>.
2713         (memset): Don't use BP_SYM.
2714         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2715         <bp-sym.h> and <bp-asm.h>.
2716         (__rawmemchr): Don't use BP_SYM.
2717         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2718         <bp-sym.h> and <bp-asm.h>.
2719         (__STRCMP): Don't use BP_SYM.
2720         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2721         <bp-sym.h> and <bp-asm.h>.
2722         (strchr): Don't use BP_SYM.
2723         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2724         <bp-sym.h> and <bp-asm.h>.
2725         (__strchrnul): Don't use BP_SYM.
2726         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2727         <bp-sym.h> and <bp-asm.h>.
2728         (strlen): Don't use BP_SYM.
2729         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2730         <bp-sym.h> and <bp-asm.h>.
2731         (strncmp): Don't use BP_SYM.
2732         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2733         <bp-sym.h> and <bp-asm.h>.
2734         (__strnlen): Don't use BP_SYM.
2735         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2736         <bp-asm.h>.
2737         (__mpn_rshift): Don't use BP_SYM.
2738         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2739         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2740         <bp-sym.h> and <bp-asm.h>.
2741         (__sigsetjmp): Don't use BP_SYM.
2742         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2743         (L(start_addresses)): Don't use BP_SYM.
2744         (_start): Likewise.
2745         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2746         <bp-asm.h>.
2747         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2748         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2749         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2750         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2751         <bp-asm.h>.
2752         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2753         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2754         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2755         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2756         <bp-asm.h>.
2757         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2758         comments.
2759         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2760         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2761         <bp-asm.h>.
2762         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2763         FIXME comments.
2764         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2765         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2766         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2767         <bp-asm.h>.
2768         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2769         comment.
2770         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2771         and <bp-asm.h>.
2772         (strncmp): Don't use BP_SYM,
2773         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2774         <bp-asm.h>.
2775         (__mpn_sub_n): Don't use BP_SYM.
2776         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2777         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2778         and <bp-asm.h>.
2779         (__mpn_submul_1): Don't use BP_SYM.
2780         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2782         <bp-sym.h> and <bp-asm.h>.
2783         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2785         <bp-sym.h> and <bp-asm.h>.
2786         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2787         comment.
2788
2789 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2790
2791         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2792         Use ZK to minimize writes to Z.
2793         (sub_magnitudes): Simplify code a bit.
2794         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2795         Use ZK to minimize writes to Z.
2796         (sub_magnitudes): Simplify code a bit.
2797
2798 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2799
2800         * csu/gmon-start.c: Add special exception to license text.
2801
2802 2013-02-27  Richard Henderson  <rth@redhat.com>
2803
2804         * scripts/config.guess: Update from config.git.
2805         * scripts/config.sub: Likewise.
2806
2807 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2808
2809         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2810
2811         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2812
2813         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2814
2815         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2816
2817         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2818
2819 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2820
2821         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2822         [$(build-shared = yes].
2823
2824 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2825
2826         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2827         (__mul): Reduce iterations for calculating mantissa.
2828
2829         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2830         MPTWO.
2831         (__mpranred): Likewise.
2832
2833         [BZ #15160]
2834         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2835         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2836
2837 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2838
2839         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2840         Define __attribute__.
2841
2842 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2843
2844         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2845         unused.
2846         * posix/regex_internal.h (__attribute): Remove.
2847         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2848         (re_string_context_at): Likewise.
2849         (bitset_not): Use __attribute__ and mark function as possibly
2850         unused.
2851         (bitset_merge): Likewise.
2852         (bitset_mask): Likewise.
2853         (re_string_char_size_at): Likewise.
2854         (re_string_wchar_at): Likewise.
2855         (re_string_elem_size_at): Likewise.
2856
2857 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2858
2859         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2860         code.
2861         (cc32): Likewise.
2862
2863         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2864         (__acr): Likewise.
2865         (__cpy): Likewise.
2866         (norm): Likewise.
2867         (denorm): Likewise.
2868         (__dbl_mp): Likewise.
2869         (add_magnitudes): Likewise.
2870         (sub_magnitudes): Likewise.
2871         (__mul): Likewise.
2872         (__inv): Likewise.
2873
2874         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2875         style.
2876
2877         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2878         style.
2879
2880         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2881         code.
2882
2883         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2884         up changes with default code.
2885         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2886         Likewise.
2887
2888 2013-02-24  Allan McRae  <allan@archlinux.org>
2889
2890         * manual/socket.texi (The Internet Namespace): Order menu items
2891         to match that in the file.
2892
2893         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2894         node listing of the info page menu.
2895
2896 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2897
2898         [BZ #13550]
2899         * sysdeps/i386/bp-asm.h: Remove file.
2900         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2901         (PARMS): Do not use macros from bp-asm.h.
2902         (S1): Likewise.
2903         (S2): Likewise.
2904         (SIZE): Likewise.
2905         (__mpn_add_n): Do not use BP_SYM
2906         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2907         "bp-asm.h".
2908         (PARMS): Do not use macros from bp-asm.h.
2909         (S1): Likewise.
2910         (SIZE): Likewise.
2911         (__mpn_addmul_1): Do not use BP_SYM
2912         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2913         "bp-asm.h".
2914         (PARMS): Do not use macros from bp-asm.h.
2915         (SIGMSK): Likewise.
2916         (_setjmp): Likewise.  Do not use BP_SYM.
2917         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2918         "bp-asm.h".
2919         (PARMS): Do not use macros from bp-asm.h.
2920         (SIGMSK): Likewise.
2921         (setjmp): Likewise.  Do not use BP_SYM.
2922         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2923         "bp-asm.h".
2924         (PARMS): Do not use macros from bp-asm.h.
2925         (__frexp): Do not use BP_SYM.
2926         (frexp): Likewise.
2927         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2928         "bp-asm.h".
2929         (PARMS): Do not use macros from bp-asm.h.
2930         (__frexpf): Do not use BP_SYM.
2931         (frexpf): Likewise.
2932         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2933         "bp-asm.h".
2934         (PARMS): Do not use macros from bp-asm.h.
2935         (__frexpl): Do not use BP_SYM.
2936         (frexpl): Likewise.
2937         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2938         "bp-asm.h".
2939         (PARMS): Do not use macros from bp-asm.h.
2940         (__remquo): Do not use BP_SYM.
2941         (remquo): Likewise.
2942         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2943         "bp-asm.h".
2944         (PARMS): Do not use macros from bp-asm.h.
2945         (__remquof): Do not use BP_SYM.
2946         (remquof): Likewise.
2947         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2948         "bp-asm.h".
2949         (PARMS): Do not use macros from bp-asm.h.
2950         (__remquol): Do not use BP_SYM.
2951         (remquol): Likewise.
2952         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2953         "bp-asm.h".
2954         (PARMS): Do not use macros from bp-asm.h.
2955         (DEST): Likewise.
2956         (SRC): Likewise.
2957         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2958         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2959         "bp-asm.h".
2960         (PARMS): Do not use macros from bp-asm.h.
2961         (strlen): Do not use BP_SYM.
2962         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2963         "bp-asm.h".
2964         (PARMS): Do not use macros from bp-asm.h.
2965         (S1): Likewise.
2966         (S2): Likewise.
2967         (SIZE): Likewise.
2968         (__mpn_add_n): Do not use BP_SYM.
2969         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2970         "bp-asm.h".
2971         (PARMS): Do not use macros from bp-asm.h.
2972         (S1): Likewise.
2973         (SIZE): Likewise.
2974         (__mpn_addmul_1): Do not use BP_SYM.
2975         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2976         weak_alias.
2977         (bzero): Likewise.
2978         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2979         "bp-asm.h".
2980         (PARMS): Do not use macros from bp-asm.h.
2981         (S): Likewise.
2982         (SIZE): Likewise.
2983         (__mpn_lshift): Do not use BP_SYM.
2984         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2985         "bp-asm.h".
2986         (PARMS): Do not use macros from bp-asm.h.
2987         (DEST): Likewise.
2988         (SRC): Likewise.
2989         (LEN): Likewise.
2990         (memcpy): Likewise.  Do not use BP_SYM.
2991         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2992         libc_hidden_def and weak_alias.
2993         (mempcpy): Do not use BP_SYM in weak_alias.
2994         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2995         "bp-asm.h".
2996         (PARMS): Do not use macros from bp-asm.h.
2997         (DEST): Likewise.
2998         (LEN): Likewise.
2999         [!BZERO_P] (CHR): Likewise.
3000         (memset): Likewise.  Do not use BP_SYM.
3001         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3002         "bp-asm.h".
3003         (PARMS): Do not use macros from bp-asm.h.
3004         (S1): Likewise.
3005         (SIZE): Likewise.
3006         (__mpn_mul_1): Do not use BP_SYM.
3007         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3008         "bp-asm.h".
3009         (PARMS): Do not use macros from bp-asm.h.
3010         (S): Likewise.
3011         (SIZE): Likewise.
3012         (__mpn_rshift): Do not use BP_SYM.
3013         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3014         "bp-asm.h".
3015         (PARMS): Do not use macros from bp-asm.h.
3016         (STR): Likewise.
3017         (CHR): Likewise.
3018         (strchr): Likewise.  Do not use BP_SYM.
3019         (index): Do not use BP_SYM in weak_alias.
3020         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3021         "bp-asm.h".
3022         (PARMS): Do not use macros from bp-asm.h.
3023         (DEST): Likewise.
3024         (SRC): Likewise.
3025         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3026         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3027         "bp-asm.h".
3028         (PARMS): Do not use macros from bp-asm.h.
3029         (strlen): Do not use BP_SYM.
3030         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3031         "bp-asm.h".
3032         (PARMS): Do not use macros from bp-asm.h.
3033         (S1): Likewise.
3034         (S2): Likewise.
3035         (SIZE): Likewise.
3036         (__mpn_sub_n): Do not use BP_SYM.
3037         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3038         "bp-asm.h".
3039         (PARMS): Do not use macros from bp-asm.h.
3040         (S1): Likewise.
3041         (SIZE): Likewise.
3042         (__mpn_submul_1): Do not use BP_SYM.
3043         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3044         "bp-asm.h".
3045         (PARMS): Do not use macros from bp-asm.h.
3046         (S1): Likewise.
3047         (S2): Likewise.
3048         (SIZE): Likewise.
3049         (__mpn_add_n): Do not use BP_SYM.
3050         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3051         weak_alias.
3052         (bzero): Likewise.
3053         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3054         "bp-asm.h".
3055         (PARMS): Do not use macros from bp-asm.h.
3056         (BLK2): Likewise.
3057         (LEN): Likewise.
3058         (memcmp): Do not use BP_SYM.
3059         (bcmp): Do not use BP_SYM in weak_alias.
3060         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3061         "bp-asm.h".
3062         (PARMS): Do not use macros from bp-asm.h.
3063         (DEST): Likewise.
3064         (SRC): Likewise.
3065         (LEN): Likewise.
3066         (memcpy): Likewise.  Do not use BP_SYM.
3067         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3068         "bp-asm.h".
3069         (PARMS): Do not use macros from bp-asm.h.
3070         (DEST): Likewise.
3071         (SRC): Likewise.
3072         (LEN): Likewise.
3073         (memmove): Likewise.  Do not use BP_SYM.
3074         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3075         "bp-asm.h".
3076         (PARMS): Do not use macros from bp-asm.h.
3077         (DEST): Likewise.
3078         (SRC): Likewise.
3079         (LEN): Likewise.
3080         (__mempcpy): Likewise.  Do not use BP_SYM.
3081         (mempcpy): Do not use BP_SYM in weak_alias.
3082         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3083         "bp-asm.h".
3084         (PARMS): Do not use macros from bp-asm.h.
3085         (DEST): Likewise.
3086         (LEN): Likewise.
3087         [!BZERO_P] (CHR): Likewise.
3088         (memset): Likewise.  Do not use BP_SYM.
3089         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3090         "bp-asm.h".
3091         (PARMS): Do not use macros from bp-asm.h.
3092         (STR2): Likewise.
3093         (strcmp): Do not use BP_SYM.
3094         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3095         "bp-asm.h".
3096         (PARMS): Do not use macros from bp-asm.h.
3097         (STR): Likewise.
3098         (DELIM): Likewise.
3099         [USE_AS_STRTOK_R] (SAVE): Likewise.
3100         (FUNCTION): Likewise.  Do not use BP_SYM.
3101         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3102         aliases.
3103         (strtok_r): Likewise.
3104         (__GI___strtok_r): Likewise.
3105         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3106         (PARMS): Do not use macros from bp-asm.h.
3107         (S): Likewise.
3108         (SIZE): Likewise.
3109         (__mpn_lshift): Do not use BP_SYM.
3110         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3111         (PARMS): Do not use macros from bp-asm.h.
3112         (STR): Likewise.
3113         (CHR): Likewise.
3114         (__memchr): Do not use BP_SYM.
3115         (memchr): Do not use BP_SYM in weak_alias.
3116         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3117         (PARMS): Do not use macros from bp-asm.h.
3118         (BLK2): Likewise.
3119         (LEN): Likewise.
3120         (memcmp): Do not use BP_SYM.
3121         (bcmp): Do not use BP_SYM in weak_alias.
3122         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3123         (PARMS): Do not use macros from bp-asm.h.
3124         (S1): Likewise.
3125         (SIZE): Likewise.
3126         (__mpn_mul_1): Do not use BP_SYM.
3127         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3128         "bp-asm.h".
3129         (PARMS): Do not use macros from bp-asm.h.
3130         (STR): Likewise.
3131         (CHR): Likewise.
3132         (__rawmemchr): Do not use BP_SYM.
3133         (rawmemchr): Do not use BP_SYM in weak_alias.
3134         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3135         (PARMS): Do not use macros from bp-asm.h.
3136         (S): Likewise.
3137         (SIZE): Likewise.
3138         (__mpn_rshift): Do not use BP_SYM.
3139         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3140         (PARMS): Do not use macros from bp-asm.h.
3141         (SIGMSK): Likewise.
3142         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3143         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3144         (_start): Do not use BP_SYM.
3145         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3146         (PARMS): Do not use macros from bp-asm.h.
3147         (DEST): Likewise.
3148         (SRC): Likewise.
3149         (__stpcpy): Likewise.  Do not use BP_SYM.
3150         (stpcpy): Do not use BP_SYM in weak_alias.
3151         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3152         "bp-asm.h".
3153         (PARMS): Do not use macros from bp-asm.h.
3154         (DEST): Likewise.
3155         (SRC): Likewise.
3156         (LEN): Likewise.
3157         (__stpncpy): Likewise.  Do not use BP_SYM.
3158         (stpncpy): Do not use BP_SYM in weak_alias.
3159         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3160         (PARMS): Do not use macros from bp-asm.h.
3161         (STR): Likewise.
3162         (CHR): Likewise.
3163         (strchr): Likewise.  Do not use BP_SYM.
3164         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3165         "bp-asm.h".
3166         (PARMS): Do not use macros from bp-asm.h.
3167         (STR): Likewise.
3168         (CHR): Likewise.
3169         (__strchrnul): Likewise.  Do not use BP_SYM.
3170         (strchrnul): Do not use BP_SYM in weak_alias.
3171         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3172         "bp-asm.h".
3173         (PARMS): Do not use macros from bp-asm.h.
3174         (STOP): Likewise.
3175         (strcspn): Do not use BP_SYM.
3176         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3177         "bp-asm.h".
3178         (PARMS): Do not use macros from bp-asm.h.
3179         (STR): Likewise.
3180         (STOP): Likewise.
3181         (strpbrk): Likewise.  Do not use BP_SYM.
3182         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3183         "bp-asm.h".
3184         (PARMS): Do not use macros from bp-asm.h.
3185         (STR): Likewise.
3186         (CHR): Likewise.
3187         (strrchr): Likewise.  Do not use BP_SYM.
3188         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3189         (PARMS): Do not use macros from bp-asm.h.
3190         (SKIP): Likewise.
3191         (strspn): Do not use BP_SYM.
3192         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3193         (PARMS): Do not use macros from bp-asm.h.
3194         (STR): Likewise.
3195         (DELIM): Likewise.
3196         (SAVE): Likewise.
3197         (FUNCTION): Likewise.  Do not use BP_SYM.
3198         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3199         aliases.
3200         (strtok_r): Likewise.
3201         (__GI___strtok_r): Likewise.
3202         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3203         (PARMS): Do not use macros from bp-asm.h.
3204         (S1): Likewise.
3205         (S2): Likewise.
3206         (SIZE): Likewise.
3207         (__mpn_sub_n): Do not use BP_SYM.
3208         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3209         "bp-asm.h".
3210         (PARMS): Do not use macros from bp-asm.h.
3211         (S1): Likewise.
3212         (SIZE): Likewise.
3213         (__mpn_submul_1): Do not use BP_SYM.
3214         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3215         <bp-sym.h>.
3216         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3217         and <bp-asm.h>.
3218         (PARMS): Do not use macros from bp-asm.h.
3219         (FLAGS): Likewise.
3220         (PTID): Likewise.
3221         (TLS): Likewise.
3222         (CTID): Likewise.
3223         (__clone): Do not use BP_SYM.
3224         (clone): Do not use BP_SYM in weak_alias.
3225         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3226         and <bp-asm.h>.
3227         (PARMS): Do not use macros from bp-asm.h.
3228         (LEN): Likewise.
3229         (__mmap64): Do not use BP_SYM.
3230         (mmap64): Do not use BP_SYM in weak_alias.
3231         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3232         <bp-sym.h> and <bp-asm.h>.
3233         (PARMS): Do not use macros from bp-asm.h.
3234         (__posix_fadvise64_l64): Do not use BP_SYM.
3235         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3236         (PARMS): Do not use macros from bp-asm.h.
3237         (NSOPS): Likewise.
3238         (semtimedop): Do not use BP_SYM.
3239         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3240         and <bp-asm.h>.
3241
3242 2013-02-21  Allan McRae  <allan@archlinux.org>
3243
3244         * manual/message.texi (Charset conversion in gettext):
3245         Move @end statement to beginning of line.
3246
3247 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3248
3249         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3250         static.
3251         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3252         Likewise.
3253
3254         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3255         (denorm): Likewise.
3256         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3257         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3258
3259 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3260
3261         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3262         tail-call to the resolved function if pltexit isn't needed.
3263
3264 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3265
3266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3267         or Y being zero as being unlikely.
3268         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3269         Likewise.
3270
3271 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3272
3273         * manual/nss.texi (System Databases and Name Service Switch):
3274         Remove frobnicate @pxref.
3275
3276 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3277
3278         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3279         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3280
3281 2013-02-20  Petr Machata  <pmachata@redhat.com>
3282
3283         * elf/elf.h (R_ARM_TARGET1): New macro.
3284         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3285         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3286         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3287         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3288         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3289         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3290         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3291         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3292         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3293         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3294         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3295         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3296         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3297         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3298         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3299         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3300         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3301         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3302         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3303         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3304         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3305         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3306         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3307         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3308         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3309         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3310         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3311         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3312         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3313         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3314         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3315         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3316         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3317         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3318         (R_ARM_THM_GOT_BREL12): Likewise.
3319         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3320         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3321         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3322         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3323         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3324         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3325         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3326         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3327         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3328
3329 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3330
3331         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3332         __attribute_used__ to __attribute__ ((unused)).
3333
3334 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3335
3336         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3337         powerpc mpa.c.
3338         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3339         comment formatting.
3340         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3341
3342 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3343
3344         [BZ #13550]
3345         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3346         Remove macro.
3347         (ENTER): Remove both macro definitions.
3348         (LEAVE): Likewise.
3349         (CHECK_BOUNDS_LOW): Likewise.
3350         (CHECK_BOUNDS_HIGH): Likewise.
3351         (CHECK_BOUNDS_BOTH): Likewise.
3352         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3353         (RETURN_BOUNDED_POINTER): Likewise.
3354         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3355         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3356         (POP_ERRNO_LOCATION_RETURN): Likewise.
3357         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3358         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3359         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3360         macros.
3361         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3362         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3363         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3364         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3365         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3366         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3367         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3368         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3369         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3370         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3371         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3372         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3373         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3374         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3375         removed macros.
3376         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3377         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3378         macros.
3379         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3380         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3381         * sysdeps/i386/i586/memset.S (memset): Likewise.
3382         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3383         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3384         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3385         macros.
3386         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3387         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3388         Change uses of L(2) to L(out).
3389         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3390         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3391         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3392         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3393         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3394         removed macros.
3395         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3396         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3397         macros.
3398         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3399         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3400         (RETURN): Do not use macro LEAVE.
3401         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3402         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3403         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3404         * sysdeps/i386/i686/memset.S (memset): Likewise.
3405         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3406         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3407         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3408         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3409         Likewise.
3410         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3411         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3412         L(1_2) and L(1_3) into L(1).
3413         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3414         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3415         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3416         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3417         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3418         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3419         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3420         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3421         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3422         macros.
3423         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3424         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3425         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3426         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3427         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3428         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3429         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3430         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3431         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3432         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3433         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3434         * sysdeps/i386/strspn.S (strspn): Likewise.
3435         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3436         conditional code.
3437         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3438         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3439         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3440         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3441         L(1_3) into L(1_1).
3442         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3443         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3444         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3445         macros.
3446         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3447
3448 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3449
3450         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3451         macro.
3452
3453 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3454
3455         * math/atest-exp.c (exp_mpn): Remove ROUND.
3456         * math/atest-exp2.c (exp_mpn): Likewise.
3457         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3458
3459         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3460         * stdlib/tst-tls-atexit-lib.c: Likewise.
3461         * stdlib/tst-tls-atexit.c: Likewise.
3462
3463 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3464
3465         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3466         and __attribute_alloc_size__.
3467
3468 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3469
3470         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3471         __attribute_alloc_size__.
3472         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3473         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3474
3475 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3476
3477         * include/programs/xmalloc.h: New file.
3478         * catgets/gencat.c: Include it.
3479         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3480         * elf/pldd.c: Likewise.
3481         * iconv/iconv_charmap.c: Likewise.
3482         * iconv/iconvconfig.c: Likewise.
3483         * iconv/strtab.c: Likewise.
3484         * locale/programs/locale.c: Likewise.
3485         * locale/programs/localedef.h: Likewise.
3486         * locale/programs/simple-hash.c: Likewise.
3487         * nscd/nscd.h: Likewise.
3488         * nss/makedb.c: Likewise.
3489         * sysdeps/generic/ldconfig.h: Likewise.
3490
3491 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3492
3493         * Versions.def: Add GLIBC_2.18.
3494         * include/link.h (struct link_map): New member l_tls_dtor_count.
3495         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3496         (__call_tls_dtors): Likewise.
3497         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3498         __cxa_thread_atexit_impl.
3499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3500         Likewise.
3501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3502         Likewise.
3503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3504         Likewise.
3505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3506         Likewise.
3507         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3508         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3509         Likewise.
3510         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3511         Likewise.
3512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3514         Likewise.
3515         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3516         (tests): Add test case tst-tls-atexit.
3517         (modules-names): Add shared library for tst-tls-atexit.
3518         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3519         (GLIBC_PRIVATE): Add __call_tls_dtors.
3520         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3521         for libstdc++.
3522         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3523         * stdlib/tst-tls-atexit.c: New test case.
3524         * stdlib/tst-tls-atexit-lib.c: New test case.
3525
3526         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3527
3528         * elf/Versions (ld): Add _dl_find_dso_for_object.
3529         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3530         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3531         (dl_open_worker): Use _dl_find_dso_for_object.
3532         * elf/dl-sym.c (do_sym): Likewise.
3533         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3534
3535 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3536
3537         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3538         Syntactic changes only.
3539         (_dl_runtime_profile): Do a tail-call to the resolved function.
3540
3541 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3542
3543         [BZ #13550]
3544         * sysdeps/x86_64/bp-asm.h: Remove file.
3545         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3546         <bp-sym.h> and <bp-asm.h>.
3547         (__clone): Do not use BP_SYM.
3548         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3549         <bp-sym.h> and <bp-asm.h>.
3550         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3551         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3552         "bp-asm.h".
3553         (_setjmp): Do not use BP_SYM.
3554         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3555         "bp-asm.h".
3556         (setjmp): Do not use BP_SYM.
3557         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3558         libc_hidden_def.
3559         (mempcpy): Do not use BP_SYM in weak_alias.
3560         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3561         "bp-asm.h".
3562         (strchr): Do not use BP_SYM.
3563         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3564         "bp-asm.h".
3565         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3566         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3567         (_start): Do not use BP_SYM.
3568         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3569         "bp-asm.h".
3570         (strcat): Do not use BP_SYM.
3571         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3572         "bp-asm.h".
3573         (STRCMP): Do not use BP_SYM.
3574         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3575         "bp-asm.h".
3576         (STRCPY): Do not use BP_SYM.
3577         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3578         "bp-asm.h".
3579         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3580         "bp-asm.h".
3581         (FUNCTION): Do not use BP_SYM.
3582         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3583         weak_alias.
3584         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3585
3586 2013-02-17  Andreas Jaeger  <aj@suse.de>
3587
3588         * time/Versions: Sort entries.
3589         * string/Versions: Likewise.
3590         * resolv/Versions: Likewise.
3591         * posix/Versions: Likewise.
3592         * iconv/Versions: Likewise.
3593         * elf/Versions: Likewise.
3594         * wcsmbs/Versions: Likewise.
3595
3596 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3597
3598         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3599         loop termination condition.
3600
3601         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3602         variable to calculate EZ.
3603         (__sqr): Likewise.
3604
3605         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3606         the lower precision input.
3607
3608 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3609
3610         [BZ #13550]
3611         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3612         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3613         (run-via-rtld-prefix): Do not handle %-bp tests.
3614         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3615         (all-object-suffixes): Remove .ob.
3616         (bppfx): Remove variable.
3617         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3618         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3619         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3620         [$(build-bounded) = yes] (libtype.ob): Likewise.
3621         * Makerules (elide-routines.ob): Remove variable.
3622         (do-tests-clean): Do not handle *-bp.out.
3623         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3624         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3625         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3626         (tests): Do not include $(tests-bp.out).
3627         (xtests): Do not include $(xtests-bp.out).
3628         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3629         [$(build-bounded) = yes] ($(addprefix
3630         $(objpfx),$(binaries-bounded))): Remove rule.
3631         ($(objpfx)%-bp.out): Remove rule.
3632         * config.make.in (build-bounded): Remove variable.
3633         * crypt/Makefile [$(build-bounded) = yes]
3634         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3635         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3636         append to variable.
3637         [$(build-bounded) = yes] (install-lib): Likewise.
3638         [$(build-bounded) = yes] (generated): Likewise.
3639         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3640         Remove rule.
3641         * intl/Makefile [$(build-bounded) = yes]
3642         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3643         * math/Makefile [$(build-bounded) = yes]
3644         ($(tests:%=$(objpfx)%-bp): Likewise.
3645         * misc/Makefile [$(build-bounded) = yes]
3646         ($(objpfx)tst-tsearch-bp): Likewise.
3647         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3648         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3649         Remove dependency.
3650         * string/Makefile (o-objects.ob): Remove variable.
3651         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3652         (CFLAGS-.ob): Remove variable.
3653         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3654         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3655         both definitions of variable.
3656         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3657         (ASFLAGS-.ob): Remove variable.
3658
3659 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3660
3661         [BZ #13550]
3662         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3663         Remove __BOUNDED_POINTERS__ from condition.
3664         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3665         * string/bits/string2.h [!__NO_STRING_INLINES &&
3666         !__BOUNDED_POINTERS__]: Likewise.
3667         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3668         Likewise.
3669         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3670         Remove conditional code.
3671         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3672         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3673         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3674         condition.
3675
3676         [BZ #13550]
3677         * csu/libc-start.c: Do not include <bp-sym.h>.
3678         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3679         * elf/dl-open.c: Do not include <bp-sym.h>.
3680         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3681         * math/fegetenv.c: Do not include <bp-sym.h>.
3682         (fegetenv): Do not use BP_SYM in versioned symbols.
3683         * nptl/sysdeps/pthread/bits/libc-lockP.h
3684         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3685         <bp-sym.h>.
3686         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3687         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3688         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3689         (__pthread_mutex_destroy): Likewise.
3690         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3691         (__pthread_mutex_lock): Likewise.
3692         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3693         (__pthread_mutex_trylock): Likewise.
3694         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3695         (__pthread_mutex_unlock): Likewise.
3696         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3697         (__pthread_mutexattr_init): Likewise.
3698         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3699         (__pthread_mutexattr_destroy): Likewise.
3700         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3701         (__pthread_mutexattr_settype): Likewise.
3702         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3703         (__pthread_rwlock_init): Likewise.
3704         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3705         (__pthread_rwlock_destroy): Likewise.
3706         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3707         (__pthread_rwlock_rdlock): Likewise.
3708         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3709         (__pthread_rwlock_tryrdlock): Likewise.
3710         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3711         (__pthread_rwlock_wrlock): Likewise.
3712         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3713         (__pthread_rwlock_trywrlock): Likewise.
3714         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3715         (__pthread_rwlock_unlock): Likewise.
3716         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3717         (__pthread_key_create): Likewise.
3718         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3719         (__pthread_setspecific): Likewise.
3720         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3721         (__pthread_getspecific): Likewise.
3722         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3723         Likewise.
3724         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3725         (_pthread_cleanup_push_defer): Likewise.
3726         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3727         (_pthread_cleanup_pop_restore): Likewise.
3728         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3729         (pthread_setcancelstate): Likewise.
3730         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3731         <bp-sym.h>.
3732         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3733         (memchr): Do not use BP_SYM in weak_alias.
3734         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3735         (fegetenv): Do not use BP_SYM in versioned symbols.
3736         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3737         (fesetenv): Do not use BP_SYM in versioned symbols.
3738         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3739         (feupdateenv): Do not use BP_SYM in versioned symbols.
3740         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3741         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3742         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3743         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3744         (open64): Do not use BP_SYM in weak_alias.
3745         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3746         (fegetenv): Do not use BP_SYM in versioned symbols.
3747         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3748         (fesetenv): Do not use BP_SYM in versioned symbols.
3749         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3750         (feupdateenv): Do not use BP_SYM in versioned symbols.
3751         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3752         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3753         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3754         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3755         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3756         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3757         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3758         <bp-sym.h>.
3759         (__libc_start_main): Do not use BP_SYM.
3760
3761 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3762
3763         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3764         redundant return line.
3765         (norm): Likewise.
3766         (denorm): Likewise.
3767         (dbl_mp): Likewise.
3768         (sub_magnitudes): Likewise.
3769         (__add): Likewise.
3770         (__sub): Likewise.
3771         (__mul): Likewise.
3772         (__inv): Likewise.
3773         (__dvd): Likewise.
3774         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3775         (norm): Likewise.
3776         (denorm): Likewise.
3777         (dbl_mp): Likewise.
3778         (sub_magnitudes): Likewise.
3779         (__add): Likewise.
3780         (__sub): Likewise.
3781         (__mul): Likewise.
3782         (__inv): Likewise.
3783         (__dvd): Likewise.
3784
3785         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3786         instead of __mul.
3787         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3788         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3789         (cc32): Likewise.
3790
3791         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3792         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3793         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3794         of __mul for squares.
3795         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3796         function
3797         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3798         Likewise.
3799         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3800         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3801
3802 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3803
3804         [BZ #13550]
3805         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3806         code.
3807         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3808         prototype or function definition.  Rename ubp_* variables and
3809         parameters.  Remove argv definitions conditional on
3810         [__BOUNDED_POINTERS__].
3811         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3812         * elf/dl-runtime.c (_dl_fixup): Likewise.
3813         * include/set-hooks.h (RUN_HOOK): Likewise.
3814         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3815         definition.
3816         * string/strcpy.c (strcpy): Do not use __unbounded.
3817         * sysdeps/generic/frame.h (struct layout): Likewise.
3818         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3819         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3820         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3821         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3822         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3823         (__backtrace): Likewise.
3824         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3825         use __ptrvalue.
3826         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3827         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3828         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3829         Likewise.
3830         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3831         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3832         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3833         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3834         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3835         Do not use __unbounded.
3836         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3837         Rename __unboundedrlimits parameter to rlimits in prototype.
3838         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3839         Do not use __unbounded.
3840         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3841         not use __ptrvalue.
3842         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3843         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3844         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3845         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3846         __ptrvalue or __unbounded.
3847         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3848         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3849         use __unbounded.
3850         (__new_msgctl): Do not use __ptrvalue.
3851         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3852         __unbounded.
3853         (__libc_msgrcv): Do not use __ptrvalue.
3854         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3855         startup_info): Do not use __unbounded.
3856         (__libc_start_main): Likewise.  Rename ubp_* variables and
3857         parameters.  Remove argv definitions conditional on
3858         [__BOUNDED_POINTERS__].
3859         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3860         __ptrvalue.
3861         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3862         use __unbounded.
3863         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3864         or __ptrvalue.
3865         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3866         use __unbounded.
3867         (__new_shmctl): Do not use __ptrvalue.
3868         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3869         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3870         Likewise.
3871         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3872         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3873         (__libc_sigaction): Likewise.
3874         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3875         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3876         Likewise.
3877         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3878
3879 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3880
3881         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3882
3883         * string/mempcpy.c: Implement by calling memcpy.
3884
3885 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3886
3887         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3888
3889         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3890         evaluation.
3891
3892         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3893         values in the mantissa.
3894
3895         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3896         minimize writes to Z.
3897         (sub_magnitudes): Simplify code a bit.
3898
3899 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3900
3901         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3902         from the message.  The linker prefixes all warnings with that already.
3903
3904 2013-02-12  Andreas Schwab  <schwab@suse.de>
3905
3906         [BZ #15078]
3907         * posix/regexec.c (extend_buffers): Add parameter min_len.
3908         (check_matching): Pass minimum needed length.
3909         (clean_state_log_if_needed): Likewise.
3910         (get_subexp): Likewise.
3911         * posix/Makefile (tests): Add bug-regex34.
3912         (bug-regex34-ENV): Define.
3913         * posix/bug-regex34.c: New file.
3914
3915         [BZ #11561]
3916         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3917         elements compare against the byte sequence of it, not its name.
3918         * posix/Makefile (tests): Add bug-regex35.
3919         (bug-regex35-ENV): Define.
3920         * posix/bug-regex35.c: New file.
3921
3922 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3923
3924         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3925         comment.
3926         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3927         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3928         (CHECK_EOL): Add undef.
3929
3930 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3931
3932         * bits/stdlib-bsearch.h: New file.
3933         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3934         * stdlib/stdlib.h: Likewise.
3935
3936 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3937
3938         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3939         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3940         declaration.
3941         * manual/search.texi (Array Search Function): Add missing const in
3942         lfind prototype.
3943         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3944         declaration to use rlim_t.
3945         (Basic Scheduling Functions): Remove erroneous const from
3946         sched_getparam prototype.  Remove erroneous * from
3947         sched_get_priority_max and sched_get_priority_min prototypes.
3948         (Resource Usage): Fix summary @comment on vtimes to refer to
3949         sys/vtimes.h rather than vtimes.h.
3950         Add missing *s in vtimes prototype.
3951         (Limits on Resources): Fix ulimit prototype to return long int.
3952         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3953         prototypes to use long int rather than double.
3954         (BSD Random): Fix initstate and setstate to use char *, not void *.
3955         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3956         prototype to make second argument 'struct aiocb64 *const[]'.
3957         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3958         (Status of AIO Operations): Remove erroneous const in aio_return and
3959         aio_return64 prototypes.
3960         (Synchronizing I/O): Fix sync prototype to return void.
3961         * manual/startup.texi (Suboptions): Remove an erroneous const in
3962         getsubopt prototype.
3963         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3964         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3965         use size_t rather than int.
3966         (Scanning All Users): Likewise for getpwent_r.
3967         (Setting Groups): Add missing const to setgroups prototype.
3968         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3969         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3970         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3971         'const void *' rather than 'const char *'.
3972         (Host Address Functions): Likewise for inet_ntop.
3973         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3974         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3975         ssize_t for return value.
3976         (Sending Data): Likewise for send, sendto, sendmsg.
3977         (Socket Option Functions): Add a missing const in setsockopt prototype.
3978         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3979         use wchar_t for the argument.
3980         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3981         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3982         take no arguments.
3983         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3984         double/float/long double for second argument.
3985         Fix return types of significand, significandf, significandl.
3986         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3987         argument in fchmod prototype.
3988         (File Owner): Use uid_t and gid_t in fchown prototype.
3989         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3990         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3991         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3992         use 'const struct dirent **' as argument types to CMP function pointer
3993         argument.
3994         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3995         (File Times): Fix summary magic @comment for struct utimbuf and utime
3996         to refer to utime.h, not time.h.
3997         * manual/string.texi (Argz Functions): Add missing const in
3998         argz_extract and argz_next prototypes.
3999         (Finding Tokens in a String): Likewise for basename.
4000         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4001         (Copying and Concatenation): Fix typo in wmemmove prototype.
4002         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4003         (Signal Stack): Remove erroneous const in sigstack prototype.
4004         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4005         prototype.
4006         (Simple Calendar Time): Likewise for stime.
4007         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4008         prototype.
4009         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4010         say sys/sysctl.h instead.
4011         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4012         and vsyslog prototypes.
4013
4014 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4015
4016         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4017         Remove.
4018
4019 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4020
4021         * misc/sys/mman.h: Fix typo in mremap comment.
4022
4023 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4024
4025         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4026         the '\0' terminator.
4027
4028 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4029
4030         [BZ #13550]
4031         * debug/segfault.c: Don't include <bp-checks.h>.
4032         * sysdeps/generic/bp-checks.h: Remove file.
4033         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4034         (__GETDENTS): Don't use CHECK_N.
4035         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4036         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4037         (__getgroups): Don't use CHECK_N.
4038         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4039         (setgroups): Don't use CHECK_N.
4040         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4041         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4042         (__libc_msgrcv): Don't use CHECK_N.
4043         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4044         (__libc_msgsnd): Don't use CHECK_N.
4045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4046         <bp-checks.h>.
4047         (__libc_pread): Don't use CHECK_N.
4048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4049         include <bp-checks.h>.
4050         (__libc_pread64): Don't use CHECK_N.
4051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4052         include <bp-checks.h>.
4053         (__libc_pwrite): Don't use CHECK_N.
4054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4055         include <bp-checks.h>.
4056         (__libc_pwrite64): Don't use CHECK_N.
4057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4058         <bp-checks.h>.
4059         (__libc_pread): Don't use CHECK_N.
4060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4061         include <bp-checks.h>.
4062         (__libc_pread64): Don't use CHECK_N.
4063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4064         include <bp-checks.h>.
4065         (__libc_pwrite): Don't use CHECK_N.
4066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4067         include <bp-checks.h>.
4068         (__libc_pwrite64): Don't use CHECK_N.
4069         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4070         (do_pread): Don't use CHECK_N.
4071         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4072         (do_pread64): Don't use CHECK_N.
4073         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4074         (do_pwrite): Don't use CHECK_N.
4075         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4076         (do_pwrite64): Don't use CHECK_N.
4077         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4078         (__libc_readv): Don't use CHECK_N.
4079         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4080         (semop): Don't use CHECK_N.
4081         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4082         <bp-checks.h>.
4083         (semtimedop): Don't use CHECK_N.
4084         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4085         (__libc_pread): Don't use CHECK_N.
4086         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4087         <bp-checks.h>.
4088         (__libc_pread64): Don't use CHECK_N.
4089         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4090         <bp-checks.h>.
4091         (__libc_pwrite): Don't use CHECK_N.
4092         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4093         <bp-checks.h>.
4094         (__libc_pwrite64): Don't use CHECK_N.
4095         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4096         <bp-checks.h>.
4097         (__libc_msgrcv): Don't use CHECK_N.
4098         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4099         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4100         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4101         (__libc_writev): Don't use CHECK_N.
4102
4103 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4104
4105         * string/strcpy.c: Removed unused variable.
4106
4107         * Makeconfig (+sysdep-includes): Define with := rather than =.
4108         Use an existing include/ subdir of each sysdeps dir before it.
4109
4110 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4111
4112         * nscd/connection.c (register_traced_file): Comment function.
4113         [HAVE_INOTIFY] (union __inev): Define.
4114         [HAVE_INOTIFY] (inotify_check_files): New function.
4115         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4116         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4117         clear_db_cache.
4118         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4119
4120 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4121
4122         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4123         loaded if not already and that a failure is permanent.
4124
4125 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4126
4127         [BZ #15006]
4128         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4129         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4130
4131 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4132
4133         [BZ #13550]
4134         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4135         (CHECK_1_NULL_OK): Likewise.
4136         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4137         (__fxstat): Do not use CHECK_1.
4138         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4139         <bp-checks.h>.
4140         (___fxstat64): Do not use CHECK_1.
4141         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4142         <bp-checks.h>.
4143         (__fxstatat): Do not use CHECK_1.
4144         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4145         <bp-checks.h>.
4146         (__fxstatat64): Do not use CHECK_1.
4147         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4148         <bp-checks.h>.
4149         (__fxstat): Do not use CHECK_1.
4150         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4151         <bp-checks.h>.
4152         (__fxstatat): Do not use CHECK_1.
4153         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4154         <bp-checks.h>.
4155         (__getresgid): Do not use CHECK_1.
4156         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4157         <bp-checks.h>.
4158         (__getresuid): Do not use CHECK_1.
4159         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4160         <bp-checks.h>.
4161         (__lxstat): Do not use CHECK_1.
4162         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4163         <bp-checks.h>.
4164         (__old_msgctl): Do not use CHECK_1.
4165         (__new_msgctl): Likewise.
4166         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4167         <bp-checks.h>.
4168         (__new_setrlimit): Do not use CHECK_1.
4169         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4170         <bp-checks.h>.
4171         (__old_shmctl): Do not use CHECK_1.
4172         (__new_shmctl): Likewise.
4173         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4174         <bp-checks.h>.
4175         (__xstat): Do not use CHECK_1.
4176         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4177         (__lxstat): Do not use CHECK_1.
4178         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4179         <bp-checks.h>.
4180         (___lxstat64): Do not use CHECK_1.
4181         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4182         (__old_msgctl): Do not use CHECK_1.
4183         (__new_msgctl): Likewise.
4184         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4185         <bp-checks.h>.
4186         (__gettimeofday): Do not use CHECK_1.
4187         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4188         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4189         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4190         <bp-checks.h>.
4191         (__gettimeofday): Do not use CHECK_1.
4192         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4193         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4194         (__new_shmctl): Do not use CHECK_1.
4195         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4196         <bp-checks.h>.
4197         (do_sigtimedwait): Do not use CHECK_1.
4198         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4199         <bp-checks.h>.
4200         (do_sigwaitinfo): Do not use CHECK_1.
4201         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4202         <bp-checks.h>.
4203         (msgctl): Do not use CHECK_1.
4204         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4205         <bp-checks.h>.
4206         (shmctl): Do not use CHECK_1.
4207         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4208         (ustat): Do not use CHECK_1.
4209         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4210         <bp-checks.h>.
4211         (__fxstat): Do not use CHECK_1.
4212         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4213         <bp-checks.h>.
4214         (__fxstatat): Do not use CHECK_1.
4215         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4216         <bp-checks.h>.
4217         (__lxstat): Do not use CHECK_1.
4218         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4219         <bp-checks.h>.
4220         (__xstat): Do not use CHECK_1.
4221         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4222         (__xstat): Do not use CHECK_1.
4223         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4224         (___xstat64): Do not use CHECK_1.
4225
4226         [BZ #13550]
4227         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4228         definitions.
4229         (CHECK_BOUNDS_HIGH): Likewise.
4230         * string/strcpy.c: Do not include <bp-checks.h>.
4231         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4232
4233 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4234
4235         * nscd/nscd-client.h (__nscd_drop_map_ref):
4236         Add __attribute__ ((unused)).
4237         * nis/nss-nisplus.h (niserr2nss): Likewise.
4238
4239         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4240         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4241
4242         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4243         Remove inline keyword.
4244         * include/rounding-mode.h (round_away): Likewise.
4245         * libio/wfileops.c (adjust_wide_data): Likewise.
4246         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4247         (__m128i_strloadu_tolower): Likewise.
4248         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4249         (__m128i_strloadu_tolower): Likewise.
4250         * time/mktime.c (ydhms_diff): Likewise.
4251         * locale/elem-hash.h (elem_hash): Likewise.
4252         * locale/setlocale.c (setdata): Likewise.
4253         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4254         (re_string_wchar_at): Likewise.
4255         (bitset_not, bitset_merge, bitset_mask): Likewise.
4256         [!(__GNUC__ > 3)] (inline): Remove macro.
4257         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4258         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4259         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4260         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4261         * string/memcmp.c (memcmp_bytes): Likewise.
4262         * locale/programs/locarchive.c (compute_hashval): Likewise.
4263         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4264         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4265         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4266         * nss/getent.c (print_rpc, print_protocols): Likewise.
4267         (print_passwd, print_group, print_aliases): Likewise.
4268         * nis/nss-nisplus.h (niserr2nss): Likewise.
4269         * nscd/connections.c (restart_p): Likewise.
4270         Change return type to bool.
4271
4272 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4273
4274         * Makeconfig (all-Depend-files): Add existing
4275         $(sorted-subdirs:=/Depend) files.
4276         (all-subdirs): Remove nss.
4277         * sysdeps/unix/inet/Subdirs: Add it here instead.
4278         * hesiod/Depend: New file.
4279
4280         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4281         instead of calling alloca.
4282
4283         * io/lseek.c (__lseek): Rename to __libc_lseek.
4284         Define __lseek as an alias.
4285
4286         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4287
4288 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4289
4290         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4291         else clause and remove check for non-standard endianness.
4292
4293 2013-02-04  David S. Miller  <davem@davemloft.net>
4294
4295         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4296
4297 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4298
4299         [BZ #13550]
4300         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4301         (__ubp_memchr): Remove prototype.
4302         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4303         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4304         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4305         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4306         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4307         Remove alias.
4308         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4309         (__ubp_memchr): Likewise.
4310         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4311         (__ubp_memchr): Likewise.
4312         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4313         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4314         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4315         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4316         CHECK_STRING.
4317         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4318         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4319         (__getcwd): Do not use CHECK_STRING.
4320         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4321         <bp-checks.h>.
4322         (__real_chown): Do not use CHECK_STRING.
4323         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4324         <bp-checks.h>.
4325         (fchownat): Do not use CHECK_STRING.
4326         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4327         CHECK_STRING.
4328         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4329         <bp-checks.h>.
4330         (__lchown): Do not use CHECK_STRING.
4331         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4332         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4333         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4334         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4336         include <bp-checks.h>.
4337         (truncate64): Do not use CHECK_STRING.
4338         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4339         <bp-checks.h>.
4340         (__real_chown): Do not use CHECK_STRING.
4341         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4342         <bp-checks.h>.
4343         (__lchown): Do not use CHECK_STRING.
4344         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4345         <bp-checks.h>.
4346         (__chown): Do not use CHECK_STRING.
4347         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4348         <bp-checks.h>.
4349         (truncate64): Do not use CHECK_STRING.
4350         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4351         Likewise.
4352         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4353         (__xmknod): Do not use CHECK_STRING.
4354         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4355         <bp-checks.h>.
4356         (__xmknodat): Do not use CHECK_STRING.
4357         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4358         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4359
4360 2013-02-04  Andreas Schwab  <schwab@suse.de>
4361
4362         [BZ #14142]
4363         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4364         * include/netdb.h: Likewise for h_errno.
4365         * elf/tst-stackguard1.c: Include <tls.h>.
4366
4367 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4368
4369         * elf/link.h (struct link_map): Extend the l_addr comment.
4370         * include/link.h (struct link_map): Likewise.
4371
4372 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4373
4374         [BZ #13550]
4375         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4376         (BOUNDED_1): Remove macro.
4377         * debug/backtrace.c: Don't include <bp-checks.h>.
4378         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4379         (__backtrace): Likewise.
4380         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4381         <bp-checks.h>.
4382         (__backtrace): Don't use BOUNDED_1.
4383         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4384         <bp-checks.h>.
4385         (__backtrace): Don't use BOUNDED_1.
4386         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4387         (__backtrace): Don't use BOUNDED_1.
4388         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4389         (shmat): Don't use BOUNDED_N.
4390
4391 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4392
4393         [BZ #13550]
4394         * sysdeps/generic/bp-start.h: Remove file.
4395         * csu/libc-start.c: Don't include <bp-start.h>.
4396         (LIBC_START_MAIN): Set up __environ directly instead of using
4397         INIT_ARGV_and_ENVIRON.
4398         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4399         <bp-start.h>.
4400
4401         [BZ #13550]
4402         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4403         definitions.
4404         (CHECK_FCNTL): Likewise.
4405         (CHECK_N_PAGES): Likewise.
4406
4407         [BZ #13550]
4408         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4409         definitions.
4410         (CHECK_SIGSET_NULL_OK): Likewise.
4411         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4412         <bp-checks.h>.
4413         (sigpending): Don't use CHECK_SIGSET.
4414         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4415         <bp-checks.h>.
4416         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4417         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4418         <bp-checks.h>.
4419         (do_sigsuspend): Don't use CHECK_SIGSET.
4420         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4421         use CHECK_SIGSET.
4422         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4423         (do_sigwait): Don't use CHECK_SIGSET.
4424         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4425         use CHECK_SIGSET.
4426         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4427         include <bp-checks.h>.
4428         (sigpending): Don't use CHECK_SIGSET.
4429         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4430         include <bp-checks.h>.
4431         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4432         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4433         <bp-checks.h>.
4434         (sigpending): Don't use CHECK_SIGSET.
4435         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4436         <bp-checks.h>.
4437         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4438
4439         [BZ #13550]
4440         * sysdeps/generic/bp-semctl.h: Remove file.
4441         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4442         <bp-checks.h> and <bp-semctl.h>.
4443         (__old_semctl): Don't use CHECK_SEMCTL.
4444         (__new_semctl): Likewise.
4445         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4446         and <bp-semctl.h>.
4447         (__old_semctl): Don't use CHECK_SEMCTL.
4448         (__new_semctl): Likewise.
4449         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4450         <bp-checks.h> and <bp-semctl.h>.
4451         (__old_semctl): Don't use CHECK_SEMCTL.
4452         (__new_semctl): Likewise.
4453         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4454         <bp-checks.h> and <bp-semctl.h>.
4455         (semctl): Don't use CHECK_SEMCTL.
4456
4457         [BZ #13550]
4458         * Makerules (elide-bp-thunks): Remove variable.
4459         (elide-routines.oS): Don't use $(elide-bp-thunks).
4460         (elide-routines.os): Likewise.
4461         (elide-routines.o): Likewise.
4462         (elide-routines.op): Likewise.
4463         (elide-routines.og): Likewise.
4464         (objects): Don't use $(bp-thunks).
4465         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4466         include.
4467         (common-generated): Do not add s-proto-bp.d.
4468         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4469         (int): Likewise.
4470         (typ): Likewise.
4471         Do not generate makefile rules for bounded-pointer thunks.
4472         * sysdeps/generic/bp-thunks.h: Remove file.
4473         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4474         * sysdeps/unix/s-proto-bp.S: Likewise.
4475
4476         [BZ #15062]
4477         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4478         parts of result separately when argument is not close to line from
4479         -i to i and one part of argument is small.
4480         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4481         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4482         * math/libm-test.inc (cacos_test): Add more tests.
4483         (casin_test): Likewise.
4484         (casinh_test): Likewise.
4485         * sysdeps/i386/fpu/libm-test-ulps: Update.
4486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4487
4488 2013-01-31  David S. Miller  <davem@davemloft.net>
4489
4490         * po/de.po: Update from translation team.
4491
4492 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4493
4494         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4495
4496 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4497
4498         * configure.in (_AC_PROG_CC_C89): New definition.
4499         * configure: Regenerate.
4500
4501         * configure.in (AC_PROG_CPP): New definition.
4502         * configure: Regenerate.
4503
4504 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4505
4506         * debug/tst-backtrace.h: New file.
4507         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4508         (ret): Remove variable.
4509         (x): Likewise.
4510         (FAIL): Remove macro.
4511         (NO_INLINE): Likewise.
4512         (fn1): Use match function instead of strstr.
4513         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4514         (ret): Remove variable.
4515         (x): Likewise.
4516         (FAIL): Remove macro.
4517         (NO_INLINE): Likewise.
4518         (fn): Use match function instead of strstr.
4519         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4520         (ret): Remove variable.
4521         (x): Likewise.
4522         (FAIL): Remove macro.
4523         (NO_INLINE): Likewise.
4524         (handle_signal): Use match function instead of strstr.
4525         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4526         (ret): Remove variable.
4527         (x): Likewise.
4528         (FAIL): Remove macro.
4529         (NO_INLINE): Likewise.
4530         (handle_signal): Use match function instead of strstr.
4531
4532 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4533
4534         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4535
4536 2013-01-23  David S. Miller  <davem@davemloft.net>
4537
4538         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4539         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4540         argument of CAS if possible.
4541         * sysdeps/sparc/sparc64/bits/atomic.h
4542         (__arch_compare_and_exchange_val_32_acq): Likewise.
4543         (__arch_compare_and_exchange_val_64_acq): Likewise.
4544
4545 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4546
4547         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4548         * sysdeps/posix/ulimit.c: ... this.
4549         Include <limits.h>.
4550         * sysdeps/unix/bsd/ulimit.c: Remove file.
4551
4552 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4553
4554         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4555         (LDFLAGS-tst-array5): Likewise.
4556
4557 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4558
4559         [BZ #15036]
4560         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4561         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4562         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4563         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4564
4565 2013-01-21  David S. Miller  <davem@davemloft.net>
4566
4567         * sysdeps/sparc/backtrace.c: New file.
4568         * sysdeps/sparc/sparc32/backtrace.h: New file.
4569         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4570         * sysdeps/sparc/sparc64/backtrace.h: New file.
4571         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4572         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4573         -funwind-tables.
4574
4575 2013-01-21  Andreas Schwab  <schwab@suse.de>
4576
4577         [BZ #15020]
4578         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4579         closed its stdout.
4580
4581 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4582
4583         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4584         "mpa2.h".
4585         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4586
4587 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4588             Mark Mitchell  <mark@codesourcery.com>
4589             Tom de Vries  <tom@codesourcery.com>
4590             Paul Pluzhnikov  <ppluzhnikov@google.com>
4591
4592         * debug/tst-backtrace2.c: New file.
4593         * debug/tst-backtrace3.c: Likewise.
4594         * debug/tst-backtrace4.c: Likewise.
4595         * debug/tst-backtrace5.c: Likewise.
4596         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4597         (CFLAGS-tst-backtrace3.c): Likewise.
4598         (CFLAGS-tst-backtrace4.c): Likewise.
4599         (CFLAGS-tst-backtrace5.c): Likewise.
4600         (LDFLAGS-tst-backtrace2): Likewise.
4601         (LDFLAGS-tst-backtrace3): Likewise.
4602         (LDFLAGS-tst-backtrace4): Likewise.
4603         (LDFLAGS-tst-backtrace5): Likewise.
4604         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4605         tst-backtrace4 and tst-backtrace5.
4606
4607 2013-01-18  Anton Blanchard  <anton@samba.org>
4608             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4609
4610         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4611         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4612         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4613         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4615         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4616         "+r" and remove output regs list as redundant.  Add explicit inline
4617         asm to specify register of return val to work around compiler codegen
4618         bug.  Remove (int) cast on return value.  Add return type parameter to
4619         use in macro so that this macro does not truncate return value for
4620         64-bit values.
4621         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4622         pass to INTERNAL_VSYSCALL_NCS.
4623         (INLINE_VSYSCALL): Add 'long int' as return type to
4624         INTERNAL_VSYSCALL_NCS macro invocation.
4625         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4626         INTERNAL_VSYSCALL_NCS macro invocation.
4627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4628
4629 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4630
4631         [BZ #14496]
4632         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4633         Fix application of SIMD FP exception mask.
4634
4635         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4636         mp_no from a power of two.
4637         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4638         __mpexp_twomm1.  Use __pow_mp.
4639
4640         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4641         multiplication.
4642
4643 2013-01-17  David S. Miller  <davem@davemloft.net>
4644
4645         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4646
4647 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4648
4649         [BZ #15023]
4650         * include/complex.h: Condition contents on [!_COMPLEX_H].
4651         (__kernel_casinhf): New prototype.
4652         (__kernel_casinh): Likewise.
4653         (__kernel_casinhl): Likewise.
4654         * math/Makefile (libm_calls): Add k_casinh.
4655         * math/k_casinh.c: New file.
4656         * math/k_casinhf.c: Likewise.
4657         * math/k_casinhl.c: Likewise.
4658         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4659         finite nonzero arguments.
4660         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4661         finite nonzero arguments.
4662         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4663         finite nonzero arguments.
4664         * math/s_casinh.c: Do not include <float.h>.
4665         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4666         * math/s_casinhf.c: Do not include <float.h>.
4667         (__casinhf): Move code for finite nonzero arguments to
4668         k_casinhf.c.
4669         * math/s_casinhl.c: Do not include <float.h>.
4670         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4671         redefine.
4672         (__casinhl): Move code for finite nonzero arguments to
4673         k_casinhl.c.
4674         * math/libm-test.inc (cacos_test): Add more tests.
4675         * sysdeps/i386/fpu/libm-test-ulps: Update.
4676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4677
4678 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4679
4680         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4681         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4682         [!HAVE_MREMAP]: Remove [defined linux] case.
4683         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4684
4685 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4686
4687         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4688
4689 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4690
4691         * elf/elf.h (R_386_SIZE32): New relocation.
4692         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4693         R_386_SIZE32.
4694         (elf_machine_rela): Likewise.
4695         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4696         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4697
4698 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4699
4700         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4701         (FP_FAST_FMA): Do not define.
4702         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4703         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4704         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4705         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4706         !_SOFT_FLOAT]: Likewise.
4707         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4708         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4709         value.
4710         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4711         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4712         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4713         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4714         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4715         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4716         file.
4717
4718 2013-01-16  Andreas Schwab  <schwab@suse.de>
4719
4720         [BZ #14327]
4721         * include/stdlib.h (__mktemp): Add declaration.
4722         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4723         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4724
4725 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4726
4727         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4728         definitions.
4729         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4730         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4731         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4732         definitions here.
4733         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4734         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4735         definitions.
4736         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4737         and ONE.
4738         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4739         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4740         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4741         definitions.
4742         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4743         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4744         definitions.
4745         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4746
4747         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4748
4749 2013-01-15  David S. Miller  <davem@davemloft.net>
4750
4751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4752         trunc{,f} to libm-sysdep_routes.
4753         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4755         file.
4756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4758         file.
4759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4760         file.
4761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4763         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4764         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4765         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4766         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4767         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4768         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4769
4770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4771         nearbyint{,f} to libm-sysdep_routes.
4772         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4774         New file.
4775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4776         file.
4777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4778         New file.
4779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4780         file.
4781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4783         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4784         file.
4785         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4786         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4787         file.
4788         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4789         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4790         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4791
4792         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4793         libc_feholdexcept and libc_fesetenv.
4794
4795 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4796
4797         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4798
4799 2013-01-14  David S. Miller  <davem@davemloft.net>
4800
4801         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4802         (SPARC_ASM_VIS2_IFUNC): Likewise.
4803         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4805         use of 'siam' instruction.
4806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4807         Likewise.
4808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4809         Likewise.
4810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4811         Likewise.
4812         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4813         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4814         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4815         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4817         file.
4818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4819         file.
4820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4821         file.
4822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4823         file.
4824         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4825         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4826         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4827         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4829         new VIS2 routines.
4830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4833         Likewise.
4834         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4835         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4836         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4837         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4839         routines to libm-sysdep_routines.
4840         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4841
4842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4843         fdim/fdimf to libm-sysdep_routines.
4844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4845         file.
4846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4848         file.
4849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4852         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4853         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4854         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4855         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4856
4857 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4858
4859         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4860         to optimize copies.
4861
4862         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4863         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4864         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4865
4866         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4867         local variable MPTWO.
4868         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4869         Likewise.
4870
4871 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4872
4873         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4874         GLOB_NOESCAPE.
4875
4876 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4877
4878         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4879
4880 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4881
4882         * manual/pattern.texi (glob_t): Document gl_flags.
4883         (glob64_t): Likewise.
4884
4885 2013-01-11  David S. Miller  <davem@davemloft.net>
4886
4887         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4888         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4889         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4890         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4891         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4892         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4893         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4894         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4895         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4896         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4897         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4898         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4899         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4900
4901         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4902         sparc V9 rather than using V8 code.
4903         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4904         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4905
4906         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4907         Move to...
4908         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4909         Here.
4910
4911 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4912
4913         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4914         not in the main loop.
4915         * configure: Regenerated.
4916
4917 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4918
4919         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4920         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4921         to just #else.
4922         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4923         [!__GLIBC_HAVE_LONG_LONG] case.
4924         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4925         condition to just #else.
4926         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4927         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4928         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4929         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4930         unconditional.
4931         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4932         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4933         #elif condition to just #else.
4934         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4935         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4936         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4937         #elif condition to just #else.
4938
4939 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4940
4941         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4942         (EF_MIPS_ARCH_64): Fix value.
4943         (EF_MIPS_ARCH_32R2): New.
4944         (EF_MIPS_ARCH_64R2): New.
4945
4946 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         * Makeconfig (+link-pie-before-libc): New.
4949         (+link-pie-after-libc): Likewise.
4950         (+link-pie-tests): Likewise.
4951         (+link-pie): Rewritten.
4952         (link-before-libc): Remove $(config-LDFLAGS).
4953         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4954         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4955         (config-LDFLAGS): Renamed to ...
4956         (rtld-LDFLAGS): This.
4957         (rtld-tests-LDFLAGS): New macro.
4958         (link-libc-rpath-link): Likewise.
4959         (link-libc-tests-rpath-link): Likewise.
4960         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4961         (link-libc): Prepand $(link-libc-rpath-link).
4962         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4963         (test-program-prefix): New macro.
4964         (test-via-rtld-prefix): Likewise.
4965         (test-program-cmd): Likewise.
4966         (host-test-program-cmd): Likewise.
4967         * Makefile ($(common-objpfx)testrun.sh): Replace
4968         $(run-program-prefix) with $(test-program-prefix).
4969         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4970         $(rtld-LDFLAGS).
4971         ($(common-objpfx)shlib.lds): Likewise.
4972         (build-module-helper): Likewise.
4973         ($(common-objpfx)format.lds): Likewise.
4974         * Rules (binaries-pie-tests): New.
4975         (binaries-pie-notests): Likewise.
4976         (binaries-pie): Rewritten.
4977         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4978         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4979         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4980         (make-test-out): Replace $(host-built-program-cmd) with
4981         $(host-test-program-cmd).
4982         * config.make.in (build-hardcoded-path-in-tests): New variable.
4983         * configure.in (--enable-hardcoded-path-in-tests): New configure
4984         option.
4985         (hardcoded_path_in_tests): New AC_SUBST.
4986         * configure: Regenerated.
4987         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4988         $(built-program-cmd) with $(test-program-cmd).
4989         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4990         (test_program_cmd): This.
4991         * elf/Makefile ($(objpfx)order.out): Run test with
4992         $(test-program-prefix).
4993         ($(objpfx)order2.out): Likewise.
4994         ($(objpfx)tst-initorder.out): Likewise.
4995         ($(objpfx)tst-initorder2.out): Likewise.
4996         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4997         $(test-program-cmd).
4998         ($(objpfx)tst-array1-static.out): Likewise.
4999         ($(objpfx)tst-array2.out): Likewise.
5000         ($(objpfx)tst-array3.out): Likewise.
5001         ($(objpfx)tst-array4.out): Likewise.
5002         ($(objpfx)tst-array5.out): Likewise.
5003         ($(objpfx)tst-array5-static.out): Likewise.
5004         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5005         $(test-program-cmd).
5006         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5007         $(run-program-prefix) with $(test-program-prefix).
5008         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5009         (test_program_prefix): This.
5010         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5011         $(run-program-prefix) with $(test-program-prefix).
5012         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5013         (test_program_prefix): This.
5014         * iconvdata/tst-tables.sh: Likewise.
5015         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5016         $(run-program-prefix) with $(test-program-prefix).
5017         ($(objpfx)tst-translit.out): Likewise.
5018         ($(objpfx)tst-gettext2.out): Likewise.
5019         ($(objpfx)tst-gettext4.out): Likewise.
5020         ($(objpfx)tst-gettext6.out): Likewise.
5021         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5022         (test_program_prefix): This.
5023         * intl/tst-gettext2.sh: Likewise.
5024         * intl/tst-gettext4.sh  Likewise.
5025         * intl/tst-gettext6.sh: Likewise.
5026         * intl/tst-translit.sh: Likewise.
5027         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5028         with $(test-program-cmd).
5029         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5030         $(run-program-prefix) with $(test-program-prefix).
5031         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5032         (test_program_prefix): This.
5033         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5034         $(run-program-prefix) with $(test-program-prefix).
5035         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5036         (test_program_prefix): This.
5037         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5038         * posix/Makefile ($(objpfx)globtest.out): Replace
5039         $(run-via-rtld-prefix) and $(test-wrapper) with
5040         $(test-program-prefix) and $(test-via-rtld-prefix).
5041         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5042         $(test-program-prefix).
5043         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5044         $(host-test-program-cmd).
5045         (tst-spawn-ARGS): Likewise.
5046         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5047         $(test-program-prefix).
5048         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5049         (test_via_rtld_prefix): This.
5050         (test_wrapper): Renamed to ...
5051         (test_program_prefix): This.
5052         (run_program_prefix): Replaced by test_program_prefix.
5053         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5054         (test_program_prefix): This.
5055         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5056         with $(host-test-program-cmd).
5057         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5058         $(run-program-prefix) with $(test-program-prefix).
5059         ($(objpfx)tst-printf.out): Likewise.
5060         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5061         $(test-program-cmd).
5062         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5063         (test_program_prefix): This.
5064         * stdio-common/tst-unbputc.sh: Likewise.
5065         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5066         $(run-program-prefix) with $(test-program-prefix).
5067         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5068         (test_program_prefix): This.
5069         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5070         $(built-program-cmd) with $(test-program-cmd).
5071
5072 2013-01-11  Andreas Jaeger  <aj@suse.de>
5073
5074         [BZ #15003]
5075         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5076         value. Sync with Linux 3.7.
5077
5078 2013-01-10  David S. Miller  <davem@davemloft.net>
5079
5080         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5081         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5082         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5083
5084 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5085
5086         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5087         never set.
5088         * configure: Regenerated.
5089
5090 2013-01-10  David S. Miller  <davem@davemloft.net>
5091
5092         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5093         sparc V9 rather than using V8 code.
5094         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5095         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5096
5097 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5098
5099         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5100         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5101         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5102         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5103         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5104         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5105         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5106         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5107         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5108         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5109         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5110         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5111         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5112         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5113         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5114         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5115         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5116         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5117         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5118         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5119         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5120         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5121         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5122         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5123         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5124         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5125         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5126
5127 2013-01-10  David S. Miller  <davem@davemloft.net>
5128
5129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5130
5131 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5132
5133         * posix/Makefile (tests-static): New variable.
5134         (tests): Add $(tests-static).
5135         (tst-exec-static-ARGS): New variable.
5136         (tst-spawn-static-ARGS): Likewise.
5137         * posix/tst-exec-static.c: New file.
5138         * posix/tst-spawn-static.c: Likewise.
5139         * posix/tst-exec.c: Support run directly.
5140         * posix/tst-spawn.c: Likewise.
5141
5142 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5145         long.
5146         * math/bits/mathcalls.h (llrint): Likewise.
5147         (llround): Likewise.
5148         * stdlib/stdlib.h (struct drand48_data): Likewise.
5149         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5150         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5151         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5152         Likewise.
5153         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5154         Likewise.
5155         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5156         (elf_greg_t): Likewise.
5157         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5158         (__jmp_buf): Likewise.
5159         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5160         definitions.
5161         (llrint): Likewise, for all definitions.
5162         (llrintl): Likewise.
5163
5164         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5165         Remove [__GNUC__] condition.
5166         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5167         condition to just [__USE_ISOC99].
5168         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5169
5170 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5171
5172         [BZ #14200]
5173         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5174         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5175         defined.
5176         (_POSIX_V6_ILP32_OFF32): Likewise.
5177         (_XBS5_ILP32_OFF32): Likewise.
5178         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5179         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5180
5181 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5182
5183         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5184
5185         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5186         doubles __mpexp_twomm1.  Adjust usage.
5187         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5188         Remove.
5189
5190 2013-01-10  Andreas Schwab  <schwab@suse.de>
5191
5192         [BZ #14964]
5193         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5194         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5195
5196 2013-01-09  David S. Miller  <davem@davemloft.net>
5197
5198         [BZ #15003]
5199         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5200         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5201         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5202         TCP_FASTOPEN): Define.
5203         (tcp_repair_opt): New structure.
5204         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5205         enum values.
5206         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5207         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5208         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5209         (tcp_cookie_transactions): New structure.
5210
5211 2013-01-09  Anton Blanchard  <anton@samba.org>
5212
5213         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5214         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5215         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5216         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5217
5218 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5219
5220         * include/features.h (__USE_ANSI): Remove.
5221
5222 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5223
5224         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5225
5226         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5227
5228 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5229
5230         * sysdeps/s390/fpu/libm-test-ulps: Update.
5231
5232         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5233
5234         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5235         (__acr): Likewise.
5236         (__cpy): Likewise.
5237         (norm): Likewise.
5238         (denorm): Likewise.
5239         (__mp_dbl): Likewise.
5240         (__dbl_mp): Likewise.
5241         (add_magnitudes): Likewise.
5242         (sub_magnitudes): Likewise.
5243         (__add): Likewise.
5244         (__sub): Likewise.
5245         (__mul): Likewise.
5246         (__inv): Likewise.
5247         (__dvd): Likewise.
5248         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5249         (__acr): Likewise.
5250         (__cpy): Likewise.
5251         (norm): Likewise.
5252         (denorm): Likewise.
5253         (__mp_dbl): Likewise.
5254         (__dbl_mp): Likewise.
5255         (add_magnitudes): Likewise.
5256         (sub_magnitudes): Likewise.
5257         (__add): Likewise.
5258         (__sub): Likewise.
5259         (__mul): Likewise.
5260         (__inv): Likewise.
5261         (__dvd): Likewise.
5262         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5263         (__acr): Likewise.
5264         (__cpy): Likewise.
5265         (norm): Likewise.
5266         (denorm): Likewise.
5267         (__mp_dbl): Likewise.
5268         (__dbl_mp): Likewise.
5269         (add_magnitudes): Likewise.
5270         (sub_magnitudes): Likewise.
5271         (__add): Likewise.
5272         (__sub): Likewise.
5273         (__mul): Likewise.
5274         (__inv): Likewise.
5275         (__dvd): Likewise.
5276
5277 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5278
5279         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5280         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5281         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5282         2 && __USE_EXTERN_INLINES]: Likewise.
5283
5284 2013-01-08  Andreas Jaeger  <aj@suse.de>
5285
5286         [BZ# 14985]
5287         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5288         Remove.
5289         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5290         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5291
5292 2013-01-07  Anton Blanchard  <anton@samba.org>
5293
5294         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5295         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5296         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5297         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5298         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5299         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5300         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5301         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5302         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5303         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5304         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5305         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5306         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5307         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5308         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5309         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5310         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5311         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5312         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5313         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5314         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5315         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5316         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5317         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5318         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5319         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5320         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5321         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5322         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5323         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5324         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5325         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5326         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5327         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5328         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5329         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5330         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5331         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5332         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5333         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5334         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5335         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5336         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5337
5338 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5341         (__MALLOC_PMT): Likewise.
5342         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5343         [__GNUC__], only on [_LIBC].
5344         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5345         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5346         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5347         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5348         forward declaration.
5349         (realloc_hook_ini): Likewise.
5350         (memalign_hook_ini): Likewise.
5351         (__libc_memalign): Do not use __MALLOC_PMT in variable
5352         declaration.
5353         (__libc_valloc): Likewise.
5354         (__libc_pvalloc): Likewise.
5355         (__libc_calloc): Likewise.
5356         (__posix_memalign): Likewise.
5357
5358         [BZ #14996]
5359         * math/s_casinh.c: Include <float.h>.
5360         (__casinh): Do not do computation with squaring and square root
5361         for large arguments.
5362         * math/s_casinhf.c: Include <float.h>.
5363         (__casinhf): Do not do computation with squaring and square root
5364         for large arguments.
5365         * math/s_casinhl.c: Include <float.h>.
5366         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5367         (__casinhl): Do not do computation with squaring and square root
5368         for large arguments.
5369         * math/libm-test.inc (casin_test): Add more tests.
5370         (casinh_test): Likewise.
5371         * sysdeps/i386/fpu/libm-test-ulps: Update.
5372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5373
5374 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5375
5376         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5377         (__x86_64_raw_data_cache_size): Likewise.
5378         (__x86_64_data_cache_size_half): Likewise.
5379         (__x86_64_raw_data_cache_size_half): Likewise.
5380         (__x86_64_shared_cache_size): Likewise.
5381         (__x86_64_raw_shared_cache_size): Likewise.
5382         (__x86_64_shared_cache_size_half): Likewise.
5383         (__x86_64_raw_shared_cache_size_half): Likewise.
5384         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5385         to ...
5386         (__x86_data_cache_size): This.
5387         (__x86_64_raw_data_cache_size): Renamed to ...
5388         (__x86_raw_data_cache_size): This.
5389         (__x86_64_data_cache_size_half): Renamed to ...
5390         (__x86_data_cache_size_half): This.
5391         (__x86_64_raw_data_cache_size_half): Renamed to ...
5392         (__x86_raw_data_cache_size_half): This.
5393         (__x86_64_shared_cache_size): Renamed to ...
5394         (__x86_shared_cache_size): This.
5395         (__x86_64_raw_shared_cache_size): Renamed to ...
5396         (__x86_raw_shared_cache_size): This.
5397         (__x86_64_shared_cache_size_half): Renamed to ...
5398         (__x86_shared_cache_size_half): This.
5399         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5400         (__x86_raw_shared_cache_size_half): This.
5401         * sysdeps/x86_64/memcpy.S: Updated.
5402         * sysdeps/x86_64/memset.S: Likewise.
5403         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5404         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5405         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5406
5407 2013-01-04  David S. Miller  <davem@davemloft.net>
5408
5409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5410
5411 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5412
5413         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5414         1 to avoid redefinition warning.
5415         (__USE_GNU): Don't define.
5416         (init_signaling_nan): Protoize.
5417
5418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5419
5420 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5421
5422         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5423         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5424         (__cpymn): Likewise.
5425         (norm): Remove commented code.
5426         (denorm): Likewise.
5427         (__mp_dbl): Likewise.
5428         (__inv): Likewise.
5429         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5430         (__cpymn): Likewise.
5431         (norm): Remove commented code.
5432         (denorm): Likewise.
5433         (__mp_dbl): Likewise.
5434         (__inv): Likewise.
5435
5436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5437         mp_no value for 1.0 and 2.0.
5438         (norm): Use RADIXI instead of radixi.d.
5439         (denorm): Likewise.
5440         (__mul): Use 0.0 instead of zero.d.
5441         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5442         mp_no value for 1.0 and 2.0.
5443         (norm): Use RADIXI instead of radixi.d.
5444         (denorm): Likewise.
5445         (__mul): Use 0.0 instead of zero.d.
5446
5447 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5448
5449         [BZ #14994]
5450         * math/s_casinh.c (__casinh): Reduce finite argument to first
5451         quadrant then set signs of results at the end.
5452         * math/s_casinhf.c (__casinhf): Likewise.
5453         * math/s_casinhl.c (__casinhl): Likewise.
5454         * math/libm-test.inc (casin_test): Add more tests.
5455         (casinh_test): Likewise.
5456         * sysdeps/i386/fpu/libm-test-ulps: Update.
5457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5458
5459 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5460
5461         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5462
5463         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5464
5465         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5466         declarations.
5467         (denorm): Likewise.
5468         (__mp_dbl): Likewise.
5469         (__inv): Likewise.
5470
5471         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5472         and adjust the header comment.
5473
5474         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5475         variable name from declaration.
5476
5477 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5478
5479         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5480         Initialize COMMON_CPUID_INDEX_7 element.
5481         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5482         (CPUID_RTM): Likewise.
5483         (HAS_RTM): Likewise.
5484         (COMMON_CPUID_INDEX_7): New enum.
5485
5486 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5487
5488         [BZ #14981]
5489         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5490         size is zero, record memory as freed.
5491
5492 2013-01-03  Andreas Jaeger  <aj@suse.de>
5493
5494         * po/ia.po: Add new Interlingua translation.
5495
5496 2012-01-03  Allan McRae  <allan@archlinux.org>
5497
5498         * locale/programs/localedef.c: Fix description of '--posix' flag.
5499
5500 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5501
5502         * NEWS: Update dates in second copyright notice.
5503         * README: Update copyright dates in example.
5504         * manual/libc.texinfo: Update copyright dates.
5505         * scripts/test-installation.pl: Update copyright date in --version
5506         output.
5507
5508         * hurd/ctty-input.c: Fix copyright notice formatting.
5509         * hurd/ctty-output.c: Likewise.
5510         * hurd/dtable.c: Likewise.
5511         * hurd/hurd-raise.c: Likewise.
5512         * hurd/hurdprio.c: Likewise.
5513         * hurd/msgportdemux.c: Likewise.
5514         * misc/sys/file.h: Likewise.
5515         * misc/sys/ioctl.h: Likewise.
5516         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5517         * sysdeps/mach/hurd/chdir.c: Likewise.
5518         * sysdeps/mach/hurd/fchdir.c: Likewise.
5519         * sysdeps/mach/hurd/rename.c: Likewise.
5520         * sysdeps/mach/hurd/rmdir.c: Likewise.
5521         * sysdeps/mach/hurd/seekdir.c: Likewise.
5522         * sysdeps/mach/hurd/setsid.c: Likewise.
5523         * sysdeps/posix/wait3.c: Likewise.
5524
5525         * All files with FSF copyright notices: Update copyright dates
5526         using scripts/update-copyrights.
5527         * intl/plural.c: Regenerated.
5528         * locale/programs/charmap-kw.h: Likewise.
5529         * locale/programs/locfile-kw.h: Likewise.
5530
5531 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5532
5533         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5534         four values.
5535
5536         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5537         calculation loop and add branch prediction.
5538
5539         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5540         check access beyond bounds of m1np.
5541
5542         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5543         MPTWO.
5544         (__inv): Remove local variable MPTWO to use the global
5545         constant.
5546         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5547         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5548         variable MPTWO.
5549         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5550         MP3HALFS static const.
5551
5552 2013-01-01  David S. Miller  <davem@davemloft.net>
5553
5554         * po/ca.po: Update from translation team.
5555
5556 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5557
5558         * scripts/update-copyrights: New file.
5559         * Makeconfig: Reformat copyright notice.
5560         * ctype/ctype.h: Likewise.
5561         * debug/swprintf_chk.c: Likewise.
5562         * elf/dl-cache.c: Likewise.
5563         * elf/dl-debug.c: Likewise.
5564         * elf/dl-object.c: Likewise.
5565         * grp/initgroups.c: Likewise.
5566         * hurd/Makefile: Likewise.
5567         * hurd/hurd/signal.h: Likewise.
5568         * hurd/hurdfault.c: Likewise.
5569         * hurd/hurdioctl.c: Likewise.
5570         * hurd/hurdlookup.c: Likewise.
5571         * hurd/intr-msg.c: Likewise.
5572         * iconv/gconv_open.c: Likewise.
5573         * libio/swprintf.c: Likewise.
5574         * locale/lc-ctype.c: Likewise.
5575         * locale/nl_langinfo.c: Likewise.
5576         * mach/Machrules: Likewise.
5577         * mach/Makefile: Likewise.
5578         * malloc/obstack.h: Likewise.
5579         * manual/Makefile: Likewise.
5580         * manual/tsort.awk: Likewise.
5581         * misc/bits/stab.def: Likewise.
5582         * nis/nis_print_group_entry.c: Likewise.
5583         * nis/nis_table.c: Likewise.
5584         * nis/nss_compat/compat-pwd.c: Likewise.
5585         * nis/nss_compat/compat-spwd.c: Likewise.
5586         * po/Makefile: Likewise.
5587         * posix/fnmatch.c: Likewise.
5588         * posix/regex.h: Likewise.
5589         * resolv/Makefile: Likewise.
5590         * resolv/nss_dns/dns-network.c: Likewise.
5591         * resolv/res_hconf.c: Likewise.
5592         * scripts/gen-sorted.awk: Likewise.
5593         * soft-fp/soft-fp.h: Likewise.
5594         * stdio-common/printf.h: Likewise.
5595         * stdlib/monetary.h: Likewise.
5596         * stdlib/random.c: Likewise.
5597         * stdlib/random_r.c: Likewise.
5598         * sysdeps/generic/Makefile: Likewise.
5599         * sysdeps/gnu/Makefile: Likewise.
5600         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5601         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5602         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5603         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5604         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5605         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5606         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5607         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5608         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5609         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5610         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5611         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5612         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5613         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5614         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5615         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5616         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5617         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5618         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5619         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5620         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5621         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5622         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5623         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5624         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5626         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5627         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5628         * sysdeps/mach/hurd/errnos.awk: Likewise.
5629         * sysdeps/mach/hurd/fork.c: Likewise.
5630         * sysdeps/mach/hurd/getcwd.c: Likewise.
5631         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5632         * sysdeps/mach/hurd/mmap.c: Likewise.
5633         * sysdeps/mach/hurd/utimes.c: Likewise.
5634         * sysdeps/mach/hurd/xmknod.c: Likewise.
5635         * sysdeps/posix/profil.c: Likewise.
5636         * sysdeps/posix/readdir_r.c: Likewise.
5637         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5638         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5639         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5640         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5641         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5642         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5643         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5644         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5645         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5646         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5647         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5648         * sysdeps/pthread/lio_listio.c: Likewise.
5649         * sysdeps/sparc/dl-procinfo.h: Likewise.
5650         * sysdeps/unix/i386/sysdep.S: Likewise.
5651         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5652         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5653         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5654         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5656         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5657         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5658         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5659         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5660         * sysdeps/wordsize-32/divdi3.c: Likewise.
5661         * time/sys/time.h: Likewise.
5662         * wcsmbs/Makefile: Likewise.
5663
5664 2013-01-01  David S. Miller  <davem@davemloft.net>
5665
5666         * po/fr.po: Update from translation team.
5667
5668         * catgets/gencat.c: Update copyright year.
5669         * csu/version.c: Likewise.
5670         * debug/catchsegv.sh: Likewise.
5671         * debug/pcprofiledump.c: Likewise.
5672         * debug/xtrace.sh: Likewise.
5673         * elf/ldconfig.c: Likewise.
5674         * elf/ldd.bash.in: Likewise.
5675         * elf/pldd.c: Likewise.
5676         * elf/sotruss.ksh: Likewise.
5677         * elf/sprof.c: Likewise.
5678         * iconv/iconv_prog.c: Likewise.
5679         * iconv/iconvconfig.c: Likewise.
5680         * locale/programs/locale.c: Likewise.
5681         * locale/programs/localedef.c: Likewise.
5682         * login/programs/pt_chown.c: Likewise.
5683         * malloc/memusage.sh: Likewise.
5684         * malloc/memusagestat.c: Likewise.
5685         * malloc/mtrace.pl: Likewise.
5686         * nscd/nscd.c: Likewise.
5687         * nss/getent.c: Likewise.
5688         * nss/makedb.c: Likewise.
5689         * posix/getconf.c: Likewise.
5690
5691 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5692
5693         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5694         numbers.
5695
5696 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5697
5698         * math/bits/mathcalls.h (modf): Use __nonnull.
5699
5700 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5701
5702         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5703         (split): Use macro CN instead of the bare value.
5704         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5705         could be used.
5706         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5707         instead of the bare value.
5708         (power1): Likewise.
5709
5710 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5711
5712         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5713         __ATAN_TWOM.
5714         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5715
5716         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5717         their values.
5718         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5719         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5720         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5721         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5722
5723 2012-12-28  Andreas Jaeger  <aj@suse.de>
5724
5725         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5726         values are from Linux 3.7.
5727
5728         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5729         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5730
5731 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5732
5733         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5734         TRUE case.
5735
5736         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5737         (norm): Likewise.
5738         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5739         variables with preprocessor constants.
5740         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5741         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5742         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5743
5744 2012-12-27  Bruno Haible  <bruno@clisp.org>
5745
5746         [BZ #14317]
5747         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5748         only if needed.
5749
5750 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5751
5752         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5753         and use variable directly.
5754         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5755
5756         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5757         MPONE.
5758         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5759         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5760         variable MPONE.
5761         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5762         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5763         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5764         include directive.  Remove local variable MPONE.
5765         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5766         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5767         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5768
5769 2012-12-25  David S. Miller  <davem@davemloft.net>
5770
5771         * version.h (RELEASE): Set to "development".
5772         (VERSION): Set to "2.17.90".
5773         * NEWS: Add 2.18 section.
5774
5775 2012-12-21  David S. Miller  <davem@davemloft.net>
5776
5777         * po/hr.po: Update from translation team.
5778
5779 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5780
5781         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5782
5783 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5784
5785         * NEWS:  Mention new memcpy for MIPS.
5786
5787 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5788
5789         * manual/contrib.texi (Contributors): Spelling correction.
5790
5791 2012-12-15  David S. Miller  <davem@davemloft.net>
5792
5793         * po/ru.po: Update from translation team.
5794
5795 2012-12-13  David S. Miller  <davem@davemloft.net>
5796
5797         * NEWS: Mention IFUNC testsuite enhancements.
5798
5799         * po/pl.po: Update from translation team.
5800         * po/bg.po: Likewise.
5801
5802         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5803         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5804
5805 2012-12-11  David S. Miller  <davem@davemloft.net>
5806
5807         * po/sv.po: Update from translation team.
5808
5809         * po/vi.po: Update from translation team.
5810
5811         * po/cs.po: Update from translation team.
5812
5813         * po/de.po: Update from translation team.
5814         * po/eo.po: Likewise.
5815         * po/nl.po: Likewise.
5816
5817 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5818
5819         [BZ #14246]
5820         * manual/argp.texi (Argp Helper Functions): Move node to follow
5821         Argp Parsing State.
5822
5823         [BZ #14872]
5824         * manual/conf.texi (Limits on File System Capacity): Mention if
5825         terminating null is included in the max size.
5826
5827 2012-12-10  Andreas Jaeger  <aj@suse.de>
5828
5829         * po/cs.po: Update from translation team.
5830
5831 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5832
5833         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5834         void pointer and cast to uintptr_t.
5835         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5836         path.
5837         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5838         * sysdeps/s390/s390-64/memset.S: Likewise.
5839
5840 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5841
5842         [BZ #14833]
5843         * menual/message.texi (Message Translation): Fix typos.
5844         (Helper programs for gettext): Likewise.
5845
5846 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5847
5848         [BZ #14898]
5849         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5850         Change to -1.
5851
5852 2012-12-07  David S. Miller  <davem@davemloft.net>
5853
5854         * po/libc.pot: Update.
5855
5856 2012-12-07  Richard Henderson  <rth@redhat.com>
5857
5858         [BZ #10114]
5859         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5860         normal/normal case to before the switch.
5861         (_FP_DIV): Likewise.
5862
5863 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5864             Mike Frysinger  <vapier@gentoo.org>
5865
5866         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5867         check for __NR_fadvise64_64.
5868
5869 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5870
5871         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5872         0, not just to plain "0" as a statement.
5873         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5874         with cw.
5875
5876 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5877
5878         * NEWS: Use sourceware.org in Bugzilla URL.
5879
5880 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5881
5882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5883         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5884
5885         * stdio-common/tst-put-error.c (do_test): Add newline to the
5886         padded test to ensure flush.
5887
5888 2012-12-05  Jeff Law  <law@redhat.com>
5889
5890         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5891
5892 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5893
5894         * README: Don't refer to ports add-on as distributed separately.
5895         Mention AArch64 in list of systems supported in the ports add-on.
5896
5897         * LICENSES: Add more non-FSF copyright and license notices.
5898
5899         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5900         ((unused)).
5901
5902         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5903
5904         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5905         10000 as width of padded output.
5906
5907 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5908
5909         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5910
5911         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5912         variable LX with __attribute__ ((unused)).
5913         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5914         Likewise.
5915         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5916         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5917         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5918         with __attribute__ ((unused)).
5919
5920 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5921
5922         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5923
5924 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5925
5926         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5927         (CFLAGS-nldbl-acos.c): New variable.
5928         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5929         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5930         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5931         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5932         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5933         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5934         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5935         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5936         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5937         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5938         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5939         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5940         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5941         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5942         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5943         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5944         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5945         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5946         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5947         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5948         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5949         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5950         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5951         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5952         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5953         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5954         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5955         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5956         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5957         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5958         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5959         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5960         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5961         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5962         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5963         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5964         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5965         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5966         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5967         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5968         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5969         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5970         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5971         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5972         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5973         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5974         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5975         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5976         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5977         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5978         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5979         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5980         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5981         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5982         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5983         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5984         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5985         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5986         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5987         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5988         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5989         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5990         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5991         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5992         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5993         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5994         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5995         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5996         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5997         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5998         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5999         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6000         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6001         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6002         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6003         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6004         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6005         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6006         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6007         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6008         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6009         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6010         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6011         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6012         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6013         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6014         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6015         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6016         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6017         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6018         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6019         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6020         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6021         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6022         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6023         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6024         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6025
6026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6027         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6028
6029         [BZ #14914]
6030         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6031         whole low double instead of just low 47 bits when splitting values
6032         into two parts.
6033
6034 2012-12-03  Allan McRae  <allan@archlinux.org>
6035
6036         * manual/stdio.texi (Predefined Printf Handlers): Remove
6037         @hsep and @vsep usage.
6038
6039 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6040
6041         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6042         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6043
6044 2012-12-03  Jeff Law  <law@redhat.com>
6045
6046         * time/sys/time.h (settimeofday): Do not mark TV argument
6047         as __nonnull.
6048
6049 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6050
6051         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6052         when currently writing and seek to current position when not.
6053         * libio/Makefile (tests): Remove bug-fclose1.
6054         * libio/bug-fclose1.c: Delete.
6055
6056 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6057
6058         * manual/arith.texi (feenableexcept): Fix typo.
6059         (fedisableexcept): Likewise.
6060
6061 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6062
6063         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6064         second, differently-typed declaration, rather than a cast.
6065
6066 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6067
6068         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6069         * include/rpc/svc.h: ... here.
6070
6071 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6072
6073         [BZ #13013]
6074         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6075         depending n and resplen2 to catch cases where answer
6076         equals answerp2.
6077
6078 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6079
6080         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6081         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6082
6083 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6084
6085         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6086
6087 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6088
6089         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6090
6091 2012-11-28  Jeff Law  <law@redhat.com>
6092
6093         [BZ #13761]
6094         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6095         dataset_temporary.  Track alloca usage into alloca_used.
6096         If dataset is large allocate and release it via malloc/free.
6097
6098 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6099
6100         [BZ #14197]
6101         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6102
6103 2012-11-28  David S. Miller  <davem@davemloft.net>
6104
6105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6106
6107 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6108
6109         [BZ #14803]
6110         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6111         of pi/2 rounded to nearest to 64 bits.
6112         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6113         nearest to 64 bits.
6114         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6115         bits.
6116
6117 2012-11-28  Jeff Law <law@redhat.com>
6118             Martin Osvald <mosvald@redhat.com>
6119
6120         [BZ #14889]
6121         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6122         * sunrpc/svc.c: Include time.h.
6123         (__svc_accept_failed): New function.
6124         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6125         any reason other than EINTR, call __svc_accept_failed.
6126         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6127         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6128
6129 2012-11-28  Andreas Schwab  <schwab@suse.de>
6130
6131         * scripts/abilist.awk: Also handle indirect functions in .opd
6132         section.
6133
6134 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6135
6136         [BZ #13881]
6137         * sysdeps/x86/fpu/powl_helper.c: New file.
6138         * sysdeps/x86/fpu/Makefile: Likewise.
6139         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6140         (p3): New object.
6141         (__ieee754_powl): Use __powl_helper for finite arguments except
6142         integer exponents below 8.
6143         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6144         (p3): New object.
6145         (__ieee754_powl): Use __powl_helper for finite arguments except
6146         integer exponents below 8.
6147         * math/libm-test.inc (pow_test): Add more tests and enable some
6148         previously disabled tests.
6149         * sysdeps/i386/fpu/libm-test-ulps: Update.
6150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6151
6152 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6153             Carlos O'Donell  <carlos_odonell@mentor.com>
6154
6155         * nss/makedb.c (is_prime): Assert that input is odd and greater
6156         than 4.  Note that fact in a comment too.
6157         (next_prime): Add 4 to input.
6158
6159 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6160
6161         [BZ #11741]
6162         * libio/Makefile (tests): Add test case tst-fwrite-error.
6163         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6164         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6165         * libio/tst-fwrite-error.c: New test case.
6166
6167 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6170         before casting to void *.
6171         * include/libc-internal.h (__pointer_type): New macro.
6172         (__integer_if_pointer_type_sub): Likewise.
6173         (__integer_if_pointer_type): Likewise.
6174         (cast_to_integer): Likewise.
6175         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6176         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6177         before casting to atomic64_t.
6178         (atomic_exchange_acq): Likewise.
6179         (__arch_exchange_and_add_body): Likewise.
6180         (__arch_add_body): Likewise.
6181         (atomic_add_negative): Likewise.
6182         (atomic_add_zero): Likewise.
6183
6184 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6185
6186         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6187         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6188         (add_fdes): Likewise.
6189         (linear_search_fdes): Likewise.
6190         (binary_search_unencoded_fdes): Likewise.
6191
6192 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6193
6194         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6195
6196 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6197
6198         * configure.in: Autodetect C++ header directories.
6199         * configure: Regenerated.
6200
6201 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6202
6203         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6204
6205 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6206
6207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6208
6209 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6210
6211         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6212         LDBL_MANT_DIG == 106]: Disable some tests.
6213         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6214         Likewise.
6215         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6216         Likewise.
6217
6218         [BZ #14871]
6219         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6220         input for small inputs.  Return +/- pi/2 for large inputs.
6221         * math/libm-test.inc (atan_test): Add more tests.
6222
6223         * sysdeps/generic/unwind-dw2-fde-glibc.c
6224         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6225         __attribute__ ((unused)).
6226
6227         [BZ #14645]
6228         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6229         x * y if x and y are nonzero and z is zero.
6230
6231         [BZ #14811]
6232         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6233         nonzero exponents with absolute value below 0x1p-117 to +/-
6234         0x1p-117.
6235
6236         [BZ #14869]
6237         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6238         up arguments below 2**-450, not just those below 2**-500.
6239         * math/libm-test.inc (hypot_test): Add another test.
6240
6241         [BZ #14868]
6242         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6243         Return a+b for ratio over 2**120, not 2**60.
6244         * math/libm-test.inc (hypot_test): Add another test.
6245
6246         * math/libm-test.inc (clog_test): Use
6247         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6248         (clog10_test): Likewise.
6249
6250         [BZ #6778]
6251         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6252
6253 2012-11-22  Andreas Schwab  <schwab@suse.de>
6254
6255         * sysdeps/i386/fpu/libm-test-ulps: Update.
6256
6257 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6258
6259         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6260         printf output with newline.
6261
6262 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6263
6264         [BZ #14865]
6265         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6266         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6267         -z nodlopen, -z initfirst and -z execstack support.
6268         * configure: Regenerated.
6269
6270         * elf/elf.h (DF_1_NODIRECT): New macro.
6271         (DF_1_IGNMULDEF): Likewise.
6272         (DF_1_NOKSYMS): Likewise.
6273         (DF_1_NOHDR): Likewise.
6274         (DF_1_EDITED): Likewise.
6275         (DF_1_NORELOC): Likewise.
6276         (DF_1_SYMINTPOSE): Likewise.
6277         (DF_1_GLOBAUDIT): Likewise.
6278         (DF_1_SINGLETON): Likewise.
6279         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6280         DT_1_SUPPORTED_MASK bits.
6281         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6282
6283 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6284
6285         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6286
6287 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6288
6289         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6290         macro.
6291
6292         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6293         (sendmmsg): Move declarations...
6294         * socket/sys/socket.h: ... here.
6295         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6296         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6297         include it from...
6298         * socket/recvmmsg.c: ... this new file.
6299         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6300         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6301         definition of __sendmmsg hidden.
6302         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6303         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6304         Move ENOSYS stub into and include it from...
6305         * socket/sendmmsg.c: ... this new file.
6306         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6307         (sysdep_routines): Move recvmmsg and sendmmsg...
6308         * socket/Makefile (routines): ... here.
6309         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6310         (GLIBC_PRIVATE): Add __sendmmsg.
6311         * include/sys/socket.h (__sendmmsg): Add declarations.
6312         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6313         sendmmsg.
6314
6315 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6316
6317         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6318         variable I1 with __attribute__ ((unused)).
6319         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6320
6321 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6322
6323         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6324         DUMMY variables with __attribute__ ((unused)).
6325
6326         * bits/byteswap.h: Include <bits/types.h>.
6327         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6328
6329 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6330
6331         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6332         string_t.  Do not manually set errno.
6333         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6334         length with __strnlen.  Make sure to both set errno and return it on
6335         failure.
6336
6337 2012-11-19  David S. Miller  <davem@davemloft.net>
6338
6339         With help from Joseph Myers.
6340         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6341         very large arguments properly.
6342         * math/libm-test.inc (atan_test): New tests.
6343         (atan2_test): New tests.
6344         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6345         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6346
6347 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6348
6349         [BZ #14856]
6350         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6351         Define to 3.
6352
6353         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6354         [POSIX] (EADDRNOTAVAIL): Likewise.
6355         [POSIX] (EAFNOSUPPORT): Likewise.
6356         [POSIX] (EALREADY): Likewise.
6357         [POSIX] (ECONNABORTED): Likewise.
6358         [POSIX] (ECONNREFUSED): Likewise.
6359         [POSIX] (ECONNRESET): Likewise.
6360         [POSIX] (EDESTADDRREQ): Likewise.
6361         [POSIX] (EDQUOT): Likewise.
6362         [POSIX] (EHOSTUNREACH): Likewise.
6363         [POSIX] (EIDRM): Likewise.
6364         [POSIX] (EISCONN): Likewise.
6365         [POSIX] (ELOOP): Likewise.
6366         [POSIX] (EMULTIHOP): Likewise.
6367         [POSIX] (ENETDOWN): Likewise.
6368         [POSIX] (ENETUNREACH): Likewise.
6369         [POSIX] (ENOBUFS): Likewise.
6370         [POSIX] (ENODATA): Likewise.
6371         [POSIX] (ENOLINK): Likewise.
6372         [POSIX] (ENOMSG): Likewise.
6373         [POSIX] (ENOPROTOOPT): Likewise.
6374         [POSIX] (ENOSR): Likewise.
6375         [POSIX] (ENOSTR): Likewise.
6376         [POSIX] (ENOTCONN): Likewise.
6377         [POSIX] (ENOTSOCK): Likewise.
6378         [POSIX] (EOPNOTSUPP): Likewise.
6379         [POSIX] (EOVERFLOW): Likewise.
6380         [POSIX] (EPROTO): Likewise.
6381         [POSIX] (EPROTONOSUPPORT): Likewise.
6382         [POSIX] (EPROTOTYPE): Likewise.
6383         [POSIX] (ESTALE): Likewise.
6384         [POSIX] (ETIME): Likewise.
6385         [POSIX] (ETXTBSY): Likewise.
6386         [POSIX] (EWOULDBLOCK): Likewise.
6387         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6388         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6389         [POSIX] (SEEK_CUR): Likewise.
6390         [POSIX] (SEEK_END): Likewise.
6391         [POSIX || UNIX98] (mode_t): Do not require.
6392         [POSIX] (off_t): Likewise.
6393         [POSIX] (pid_t): Likewise.
6394         [POSIX] (sys/stat.h): Do not allow header.
6395         [POSIX] (unistd.h): Likewise.
6396         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6397         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6398         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6399         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6400         require.
6401         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6402         sigevent): Specify elements.
6403         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6404         entry.
6405         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6406         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6407
6408         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6409         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6410         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6411         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6412         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6413         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6414         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6415         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6416         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6417         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6418         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6419         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6420         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6421         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6422         Likewise.
6423         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6424         Likewise.
6425         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6426         Likewise.
6427         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6428         Likewise.
6429         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6430         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6431         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6432         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6433         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6434         Specify lower bound on value.
6435         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6436         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6437         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6438         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6439         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6440         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6441         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6442         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6443         value.
6444         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6445         as optional.
6446         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6462         entry.
6463         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6464         optional.
6465         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6471         Likewise.
6472         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6477         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6478         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6479         as optional.
6480         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6482         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6484         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6485         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6486         specify as optional.
6487         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6488         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6489         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6490         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6491         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6492         [XPG3] (NL_LANGMAX): Likewise.
6493         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6494         [POSIX || XPG3] (NL_NMAX): Likewise.
6495         [POSIX || XPG3] (NL_SETMAX): Likewise.
6496         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6497         [XPG3] (NZERO): Likewise.
6498         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6499         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6500         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6501         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6502         (REG_ERANGE): Expect.
6503         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6504         optional-constant.
6505         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6506         Use (void) in prototype.
6507         [POSIX] (*_t): Allow.
6508         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6509         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6510         (WRDE_BADVAL): Expect.
6511
6512         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6513         expect.
6514         [XPG3 || XPG4] (O_RSYNC): Likewise.
6515         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6516         Likewise.
6517         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6518         [XPG3 || XPG4] (sigqueue): Likewise.
6519         [XPG3 || XPG4] (sigtimedwait): Likewise.
6520         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6521         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6522         [XPG3 || XPG4] (vsnprintf): Likewise.
6523         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6524         Likewise.
6525         [XPG3 || XPG4] (blksize_t): Likewise.
6526         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6527         Likewise.
6528         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6529         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6530         [XPG3 || XPG4] (struct itimerspec): Likewise.
6531         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6532         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6533         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6534         [XPG3 || XPG4] (clockid_t): Likewise.
6535         [XPG3 || XPG4] (timer_t): Likewise.
6536         [XPG3 || XPG4] (clock_getres): Likewise.
6537         [XPG3 || XPG4] (clock_gettime): Likewise.
6538         [XPG3 || XPG4] (clock_settime): Likewise.
6539         [XPG3 || XPG4] (nanosleep): Likewise.
6540         [XPG3 || XPG4] (timer_create): Likewise.
6541         [XPG3 || XPG4] (timer_delete): Likewise.
6542         [XPG3 || XPG4] (timer_gettime): Likewise.
6543         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6544         [XPG3 || XPG4] (timer_settime): Likewise.
6545         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6546         [XPG3 || XPG4] (getlogin_r): Likewise.
6547         [XPG3 || XPG4] (pread): Likewise.
6548         [XPG3 || XPG4] (pthread_atfork): Likewise.
6549         [XPG3 || XPG4] (pwrite): Likewise.
6550
6551         [BZ #14835]
6552         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6553         <bits/siginfo.h>.
6554
6555 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6556
6557         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6558         finalizing MALLSTREAM.
6559
6560         * sysdeps/mach/hurd/syncfs.c: New file.
6561
6562 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6563
6564         [BZ #14719]
6565         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6566         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6567         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6568         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6569         (_nss_dns_gethostbyname4_r): Likewise.
6570         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6571         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6572
6573 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6574
6575         [BZ #13763]
6576         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6577
6578 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6579
6580         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6581         * elf/cache.c (print_entry): Print ",AArch64" for
6582         FLAG_AARCH64_LIB64
6583
6584         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6585         * elf/cache.c (print_entry): Print ",hard-float" for
6586         FLAG_ARM_LIBHF.
6587
6588 2012-11-18  David S. Miller  <davem@davemloft.net>
6589
6590         With help from Joseph Myers.
6591         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6592         cutoff to 2**-13.
6593         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6594         cutoff to 2**-25.
6595         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6596         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6597         small.
6598         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6599         * math/libm-test.inc (y0_test): New tests.
6600         (y1_test): New tests.
6601         * sysdeps/i386/fpu/libm-test-ulps: Update.
6602         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6604
6605 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6606
6607         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6608         64-bit targets.
6609         * configure: Regenerated.
6610
6611 2012-11-17  David S. Miller  <davem@davemloft.net>
6612
6613         [BZ #14811]
6614         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6615         nonzero exponents with absolute value below 0x1p-128 to +/-
6616         0x1p-128.
6617
6618 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6619
6620         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6621
6622         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6623
6624         * posix/getconf-speclist.c: New file.
6625         * posix/posix-envs.def: Likewise.
6626         * posix/confstr.c (START_ENV_GROUP): New macro.
6627         (END_ENV_GROUP): Likewise.
6628         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6629         (KNOWN_PRESENT_ENV_STRING): Likewise.
6630         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6631         (UNKNOWN_ENVIRONMENT): Likewise.
6632         (confstr): Include posix-envs.def instead of handling
6633         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6634         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6635         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6636         (END_ENV_GROUP): Likewise.
6637         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6638         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6639         (UNKNOWN_ENVIRONMENT): Likewise.
6640         (__sysconf): Include posix-envs.def instead of handling associated
6641         cases directly here.
6642         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6643         preprocessing getconf-speclist.c rather than running getconf or
6644         generating empty file.
6645
6646 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6647
6648         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6649
6650 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6651
6652         [BZ #14672]
6653         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6654
6655 2012-11-16  David S. Miller  <davem@davemloft.net>
6656
6657         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6658         smaller than LDBL_EPSILON/2.0L, just return xm1.
6659
6660 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6661
6662         * elf/tst-array1.c (init): Set constructor priority to 1000.
6663         (fini): Set destructor priority to 1000.
6664         * elf/tst-array2dep.c: Likewise.
6665
6666 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6667
6668         [BZ #11741]
6669         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6670         (_IO_new_file_xsputn): Also return EOF if none of the input
6671         data was written when overflow failed.
6672         * libio/iopadn.c (_IO_padn): Likewise.
6673         * libio/iowpadn.c (_IO_wpadn): Likewise.
6674         * stdio-common/tst-put-error.c: Add copyright notice.
6675         (do_test): Add case for printing padded string.
6676         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6677         _IO_padn returned error.
6678         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6679         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6680         return EOF.
6681
6682 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6683
6684         * libio/libioP.h: Add comment note that the references to C++
6685         bits are now obsolete.
6686
6687 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6688
6689         * math/libm-test.inc (check_complex): Use asprintf.
6690
6691 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6692
6693         * debug/pcprofiledump.c (print_version): Update copyright year.
6694         * malloc/memusagestat.c (print_version): Likewise.
6695
6696 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6697
6698         [BZ #14831]
6699         * elf/Makefile (tests): Add tst-audit8.
6700         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6701         ($(objpfx)tst-audit8.out): New target.
6702         (tst-audit8-ENV): New variable.
6703         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6704         audit if l_reloc_result is NULL.
6705         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6706         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6707         * elf/tst-audit8.c: New file.
6708
6709 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6710
6711         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6712         * misc/Makefile (CFLAGS-select.c): Define.
6713         * posix/Makefile (CFLAGS-pause.c): Define.
6714
6715 2012-11-13  David S. Miller  <davem@davemloft.net>
6716
6717         * crypt/Makefile: Move test targets after toplevel Rules
6718         inclusion.  Grab any necessary sysdep routines when linking.
6719         * crypt/md5.c (md5_process_block): Remove define, we will always
6720         name it __md5_process_block.
6721         (md5_finish_ctx): Update md5_process_block call.
6722         (md5_stream): Likewise.
6723         (md5_process_bytes): Likewise.
6724         (md5_process_block): Rename to __md5_process_block and move to ...
6725         * crypt/md5-block.c: ... here.
6726         * crypt/sha256.c (sha256_process_block): Move to ...
6727         * crypt/sha256-block.c: ... here.
6728         * crypt/sha512.c (sha512_process_block): Move to ...
6729         * crypt/sha512-block.c: ... here.
6730         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6731         path.
6732         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6733         * sysdeps/sparc/sparc64/multiarch/Makefile
6734         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6735         crypt subdir.
6736         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6737         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6738         multiarch changes.
6739         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6740         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6741         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6742         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6743         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6744         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6745         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6746         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6747         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6748         file.
6749         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6750         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6751         file.
6752         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6753
6754 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6755
6756         * timezone/tzselect.ksh: Update from tzcode git revision
6757         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6758         * timezone/zdump.c: Likewise.
6759         * timezone/zic.c: Likewise.
6760         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6761         in TZVERSION setting, not $(PKGVERSION).
6762         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6763         REPORT_BUGS_TO settings.
6764
6765         [BZ #14838]
6766         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6767         macro.
6768
6769 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6770
6771         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6772         detection to immediately after _FP_ROUND().
6773         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6774         bits are 0.
6775
6776 2012-11-11  David S. Miller  <davem@davemloft.net>
6777
6778         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6779         inttypes.h
6780         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6781         __close rather than their public counterparts.
6782
6783 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6784
6785         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6786         file.
6787         [UNIX98] (sem_timedwait): Do not expect.
6788         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6789         [XPG4 || UNIX98] (sockatmark): Do not expect.
6790         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6791         (clock_getcpuclockid): Do not expect.
6792         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6793         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6794         Do not expect.
6795         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6796         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6797         [UNIX98] (vwscanf): Likewise.
6798         [UNIX98] (vswscanf): Likewise.
6799
6800 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6801
6802         * timezone/version.h: Remove file.
6803         * timezone/README: Do not refer to version.h.
6804         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6805         $(objpfx)version.h.
6806         ($(objpfx)zdump.o): Likewise.
6807         ($(objpfx)version.h): New target.
6808
6809         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6810         2012i.
6811         * timezone/README: Don't mention modification to tzselect.ksh.
6812         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6813         work on unmodified tzselect.ksh.  Substitute version numbers in
6814         tzselect.ksh.
6815
6816         * Makefile (format-me): Remove.
6817         (INSTALL): Adjust indentation.  Use commands directly instead of
6818         using $(format-me).
6819
6820         * aclocal.m4 (ACX_PKGVERSION): New macro.
6821         (ACX_BUGURL): Likewise.
6822         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6823         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6824         (REPORT_BUGS_TO): Likewise.
6825         * configure: Regenerated.
6826         * config.h.in (PKGVERSION): New macro.
6827         (REPORT_BUGS_TO): Likewise.
6828         * config.make.in (PKGVERSION): New variable.
6829         (PKGVERSION_TEXI): Likewise.
6830         (REPORT_BUGS_TO): Likewise.
6831         (REPORT_BUGS_TEXI): Likewise.
6832         * Makefile (format-me): Use -I$(common-objpfx)manual.
6833         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6834         ($(common-objpfx)manual/%): New target.
6835         (manual/%): Remove target.
6836         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6837         (print_version): Use PKGVERSION.
6838         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6839         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6840         and REPORT_BUGS_TO.
6841         ($(objpfx)xtrace): Likewise.
6842         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6843         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6844         (print_version): Use PKGVERSION.
6845         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6846         (do_version): Use PKGVERSION.
6847         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6848         REPORT_BUGS_TO.
6849         (common-ldd-rewrite): Likewise.
6850         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6851         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6852         (print_version): Use PKGVERSION.
6853         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6854         * elf/pldd.c (argp_program_bug_address): Remove variable.
6855         (more_help): New function.
6856         (argp): Use more_help.
6857         (print_version): Use PKGVERSION.
6858         * elf/sln.c (main): Use PKGVERSION.
6859         (usage): Use REPORT_BUGS_TO.
6860         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6861         (top level): Use PKGVERSION.
6862         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6863         (print_version): Use PKGVERSION.
6864         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6865         (print_version): Use PKGVERSION.
6866         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6867         (print_version): Use PKGVERSION.
6868         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6869         (print_version): Use PKGVERSION.
6870         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6871         (print_version): Use PKGVERSION.
6872         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6873         (print_version): Use PKGVERSION.
6874         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6875         and BUGURL.
6876         ($(objpfx)memusage): Likewise.
6877         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6878         (do_version): Use PKGVERSION.
6879         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6880         (print_version): Use PKGVERSION.
6881         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6882         ($PKGVERSION): New variable.
6883         ($REPORT_BUGS_TO): Likewise.
6884         (usage): Use $REPORT_BUGS_TO.
6885         (top level): Use $PKGVERSION.
6886         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6887         ($(objpfx)pkgvers.texi): New rule.
6888         ($(objpfx)stamp-pkgvers): Likewise.
6889         * manual/install.texi: Include pkgvers.texi.
6890         (--with-pkgversion): Document new configure option.
6891         (--with-bugurl): Likewise.
6892         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6893         than necessarily for this particular distribution.  Use
6894         REPORT_BUGS_TO for where to report bugs.
6895         * INSTALL: Regenerated.
6896         * manual/libc.texinfo: Include pkgvers.texi.
6897         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6898         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6899         (print_version): Use PKGVERSION.
6900         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6901         (print_version): Use PKGVERSION.
6902         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6903         (print_version): Use PKGVERSION.
6904         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6905         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6906         macro.
6907         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6908         (print_version): Use PKGVERSION.
6909         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6910         (print_version): Use PKGVERSION.
6911         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6912         and PKGVERSION.
6913
6914         * timezone/checktab.awk: Update from tzcode 2012i.
6915         * timezone/ialloc.c: Likewise.
6916         * timezone/private.h: Likewise.
6917         * timezone/scheck.c: Likewise.
6918         * timezone/tzfile.h: Likewise.
6919         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6920         (TZVERSION): Hardcode tzcode version number.
6921         * timezone/zdump.c: Update from tzcode 2012i.
6922         * timezone/zic.c: Likewise.
6923         * timezone/version.h: New file.
6924         * timezone/README: Describe version.h.  Update upstream location.
6925
6926         [BZ #14824]
6927         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6928         (mktemp): Enable declaration.
6929         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6930         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6931         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6932         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6933         Likewise.
6934         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6935         Likewise.
6936         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6937         Likewise.
6938         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6939         Likewise.
6940         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6941         Likewise.
6942         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6943         Likewise.
6944
6945         [BZ #14821]
6946         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6947         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6948         for copies of such integer values.
6949         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6950         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6951
6952 2012-11-09  Andreas Jaeger  <aj@suse.de>
6953
6954         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6955         definitions and declarations that are provided by
6956         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6957
6958 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6959
6960         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6961         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6962         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6963         definition.
6964
6965 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6966
6967         * elf/elf.h: Update comment before AArch64 relocations.
6968
6969 2012-11-07  David S. Miller  <davem@davemloft.net>
6970
6971         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6972         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6973         (__start_context): Declare.
6974         (__makecontext_ret): Delete.
6975         (__makecontext): Hook up __start_context instead of
6976         __makecontext_ret.
6977         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6978         (sysdep_routines): Add __start_context when in stdlib.
6979
6980 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6981
6982         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6983         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6984         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6985         hardcoded "nm".
6986         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6987         (READELF): New variable.  Use it instead of hardcoded "readelf".
6988
6989 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6990
6991         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6992         * sysdeps/x86/Makefile: Here.
6993         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6994         * sysdeps/x86/tst-xmmymm.sh: This.
6995
6996 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6997
6998         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6999         expectations.
7000         [UNIX98] (pthread_barrier_t): Do not expect.
7001         [UNIX98] (pthread_barrierattr_t): Likewise.
7002         [UNIX98] (pthread_spinlock_t): Likewise.
7003         [UNIX98] (pthread_barrier_destroy): Likewise.
7004         [UNIX98] (pthread_barrier_init): Likewise.
7005         [UNIX98] (pthread_barrier_wait): Likewise.
7006         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7007         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7008         [UNIX98] (pthread_barrierattr_init): Likewise.
7009         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7010         [UNIX98] (pthread_getcpuclockid): Likewise.
7011         [UNIX98] (pthread_mutex_timedlock): Likewise.
7012         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7013         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7014         [UNIX98] (pthread_sigmask): Likewise.
7015         [UNIX98] (pthread_spin_destroy): Likewise.
7016         [UNIX98] (pthread_spin_init): Likewise.
7017         [UNIX98] (pthread_spin_lock): Likewise.
7018         [UNIX98] (pthread_spin_trylock): Likewise.
7019         [UNIX98] (pthread_spin_unlock): Likewise.
7020         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7021         Do not expect.
7022         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7023         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7024         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7025         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7026         [XPG3 || XPG4] (pthread_key_t): Likewise.
7027         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7028         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7029         [XPG3 || XPG4] (pthread_once_t): Likewise.
7030         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7031         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7032         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7033         [XPG3 || XPG4] (pthread_t): Likewise.
7034
7035         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7036         not expect.
7037         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7038
7039         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7040         Change function return type to int.
7041
7042         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7043         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7044         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7045         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7046         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7047         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7048         [!POSIX] (posix_madvise): Likewise.
7049         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7050         && !UNIX98].
7051         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7052         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7053         (mode_t): Likewise.
7054         (posix_mem_offset): Likewise.
7055         (posix_typed_mem_get_info): Likewise.
7056         (posix_typed_mem_open): Likewise.
7057
7058         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7059         Change condition to [XOPEN2K8].
7060
7061         * conform/conformtest.pl: Preprocess allow-header data with -x c
7062         instead of from stdin.
7063         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7064         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7065         [C99-based standards] (cerfc): Likewise.
7066         [C99-based standards] (cexp2): Likewise.
7067         [C99-based standards] (cexpm1): Likewise.
7068         [C99-based standards] (clog10): Likewise.
7069         [C99-based standards] (clog1p): Likewise.
7070         [C99-based standards] (clog2): Likewise.
7071         [C99-based standards] (clgamma): Likewise.
7072         [C99-based standards] (ctgamma): Likewise.
7073         [C99-based standards] (cerff): Likewise.
7074         [C99-based standards] (cerfcf): Likewise.
7075         [C99-based standards] (cexp2f): Likewise.
7076         [C99-based standards] (cexpm1f): Likewise.
7077         [C99-based standards] (clog10f): Likewise.
7078         [C99-based standards] (clog1pf): Likewise.
7079         [C99-based standards] (clog2f): Likewise.
7080         [C99-based standards] (clgammaf): Likewise.
7081         [C99-based standards] (ctgammaf): Likewise.
7082         [C99-based standards] (cerfl): Likewise.
7083         [C99-based standards] (cerfcl): Likewise.
7084         [C99-based standards] (cexp2l): Likewise.
7085         [C99-based standards] (cexpm1l): Likewise.
7086         [C99-based standards] (clog10l): Likewise.
7087         [C99-based standards] (clog1pl): Likewise.
7088         [C99-based standards] (clog2l): Likewise.
7089         [C99-based standards] (clgammal): Likewise.
7090         [C99-based standards] (ctgammal): Likewise.
7091         * conform/data/inttypes.h-data [C99-based standards]: Include
7092         stdint.h-data.  Remove all expectations for stdint.h contents.
7093         [C99-based standards] (PRI*): Do not allow.
7094         [C99-based standards] (SCN*): Likewise.
7095         [C99-based standards] (*_t): Likewise.
7096         [C99-based-standards] (PRId8): Expect macro.
7097         [C99-based-standards] (PRIi8): Likewise.
7098         [C99-based-standards] (PRIo8): Likewise.
7099         [C99-based-standards] (PRIu8): Likewise.
7100         [C99-based-standards] (PRIx8): Likewise.
7101         [C99-based-standards] (PRIX8): Likewise.
7102         [C99-based-standards] (SCNd8): Likewise.
7103         [C99-based-standards] (SCNi8): Likewise.
7104         [C99-based-standards] (SCNo8): Likewise.
7105         [C99-based-standards] (SCNu8): Likewise.
7106         [C99-based-standards] (SCNx8): Likewise.
7107         [C99-based-standards] (PRIdLEAST8): Likewise.
7108         [C99-based-standards] (PRIiLEAST8): Likewise.
7109         [C99-based-standards] (PRIoLEAST8): Likewise.
7110         [C99-based-standards] (PRIuLEAST8): Likewise.
7111         [C99-based-standards] (PRIxLEAST8): Likewise.
7112         [C99-based-standards] (PRIXLEAST8): Likewise.
7113         [C99-based-standards] (SCNdLEAST8): Likewise.
7114         [C99-based-standards] (SCNiLEAST8): Likewise.
7115         [C99-based-standards] (SCNoLEAST8): Likewise.
7116         [C99-based-standards] (SCNuLEAST8): Likewise.
7117         [C99-based-standards] (SCNxLEAST8): Likewise.
7118         [C99-based-standards] (PRIdFAST8): Likewise.
7119         [C99-based-standards] (PRIiFAST8): Likewise.
7120         [C99-based-standards] (PRIoFAST8): Likewise.
7121         [C99-based-standards] (PRIuFAST8): Likewise.
7122         [C99-based-standards] (PRIxFAST8): Likewise.
7123         [C99-based-standards] (PRIXFAST8): Likewise.
7124         [C99-based-standards] (SCNdFAST8): Likewise.
7125         [C99-based-standards] (SCNiFAST8): Likewise.
7126         [C99-based-standards] (SCNoFAST8): Likewise.
7127         [C99-based-standards] (SCNuFAST8): Likewise.
7128         [C99-based-standards] (SCNxFAST8): Likewise.
7129         [C99-based-standards] (PRId16): Likewise.
7130         [C99-based-standards] (PRIi16): Likewise.
7131         [C99-based-standards] (PRIo16): Likewise.
7132         [C99-based-standards] (PRIu16): Likewise.
7133         [C99-based-standards] (PRIx16): Likewise.
7134         [C99-based-standards] (PRIX16): Likewise.
7135         [C99-based-standards] (SCNd16): Likewise.
7136         [C99-based-standards] (SCNi16): Likewise.
7137         [C99-based-standards] (SCNo16): Likewise.
7138         [C99-based-standards] (SCNu16): Likewise.
7139         [C99-based-standards] (SCNx16): Likewise.
7140         [C99-based-standards] (PRIdLEAST16): Likewise.
7141         [C99-based-standards] (PRIiLEAST16): Likewise.
7142         [C99-based-standards] (PRIoLEAST16): Likewise.
7143         [C99-based-standards] (PRIuLEAST16): Likewise.
7144         [C99-based-standards] (PRIxLEAST16): Likewise.
7145         [C99-based-standards] (PRIXLEAST16): Likewise.
7146         [C99-based-standards] (SCNdLEAST16): Likewise.
7147         [C99-based-standards] (SCNiLEAST16): Likewise.
7148         [C99-based-standards] (SCNoLEAST16): Likewise.
7149         [C99-based-standards] (SCNuLEAST16): Likewise.
7150         [C99-based-standards] (SCNxLEAST16): Likewise.
7151         [C99-based-standards] (PRIdFAST16): Likewise.
7152         [C99-based-standards] (PRIiFAST16): Likewise.
7153         [C99-based-standards] (PRIoFAST16): Likewise.
7154         [C99-based-standards] (PRIuFAST16): Likewise.
7155         [C99-based-standards] (PRIxFAST16): Likewise.
7156         [C99-based-standards] (PRIXFAST16): Likewise.
7157         [C99-based-standards] (SCNdFAST16): Likewise.
7158         [C99-based-standards] (SCNiFAST16): Likewise.
7159         [C99-based-standards] (SCNoFAST16): Likewise.
7160         [C99-based-standards] (SCNuFAST16): Likewise.
7161         [C99-based-standards] (SCNxFAST16): Likewise.
7162         [C99-based-standards] (PRId32): Likewise.
7163         [C99-based-standards] (PRIi32): Likewise.
7164         [C99-based-standards] (PRIo32): Likewise.
7165         [C99-based-standards] (PRIu32): Likewise.
7166         [C99-based-standards] (PRIx32): Likewise.
7167         [C99-based-standards] (PRIX32): Likewise.
7168         [C99-based-standards] (SCNd32): Likewise.
7169         [C99-based-standards] (SCNi32): Likewise.
7170         [C99-based-standards] (SCNo32): Likewise.
7171         [C99-based-standards] (SCNu32): Likewise.
7172         [C99-based-standards] (SCNx32): Likewise.
7173         [C99-based-standards] (PRIdLEAST32): Likewise.
7174         [C99-based-standards] (PRIiLEAST32): Likewise.
7175         [C99-based-standards] (PRIoLEAST32): Likewise.
7176         [C99-based-standards] (PRIuLEAST32): Likewise.
7177         [C99-based-standards] (PRIxLEAST32): Likewise.
7178         [C99-based-standards] (PRIXLEAST32): Likewise.
7179         [C99-based-standards] (SCNdLEAST32): Likewise.
7180         [C99-based-standards] (SCNiLEAST32): Likewise.
7181         [C99-based-standards] (SCNoLEAST32): Likewise.
7182         [C99-based-standards] (SCNuLEAST32): Likewise.
7183         [C99-based-standards] (SCNxLEAST32): Likewise.
7184         [C99-based-standards] (PRIdFAST32): Likewise.
7185         [C99-based-standards] (PRIiFAST32): Likewise.
7186         [C99-based-standards] (PRIoFAST32): Likewise.
7187         [C99-based-standards] (PRIuFAST32): Likewise.
7188         [C99-based-standards] (PRIxFAST32): Likewise.
7189         [C99-based-standards] (PRIXFAST32): Likewise.
7190         [C99-based-standards] (SCNdFAST32): Likewise.
7191         [C99-based-standards] (SCNiFAST32): Likewise.
7192         [C99-based-standards] (SCNoFAST32): Likewise.
7193         [C99-based-standards] (SCNuFAST32): Likewise.
7194         [C99-based-standards] (SCNxFAST32): Likewise.
7195         [C99-based-standards] (PRId64): Likewise.
7196         [C99-based-standards] (PRIi64): Likewise.
7197         [C99-based-standards] (PRIo64): Likewise.
7198         [C99-based-standards] (PRIu64): Likewise.
7199         [C99-based-standards] (PRIx64): Likewise.
7200         [C99-based-standards] (PRIX64): Likewise.
7201         [C99-based-standards] (SCNd64): Likewise.
7202         [C99-based-standards] (SCNi64): Likewise.
7203         [C99-based-standards] (SCNo64): Likewise.
7204         [C99-based-standards] (SCNu64): Likewise.
7205         [C99-based-standards] (SCNx64): Likewise.
7206         [C99-based-standards] (PRIdLEAST64): Likewise.
7207         [C99-based-standards] (PRIiLEAST64): Likewise.
7208         [C99-based-standards] (PRIoLEAST64): Likewise.
7209         [C99-based-standards] (PRIuLEAST64): Likewise.
7210         [C99-based-standards] (PRIxLEAST64): Likewise.
7211         [C99-based-standards] (PRIXLEAST64): Likewise.
7212         [C99-based-standards] (SCNdLEAST64): Likewise.
7213         [C99-based-standards] (SCNiLEAST64): Likewise.
7214         [C99-based-standards] (SCNoLEAST64): Likewise.
7215         [C99-based-standards] (SCNuLEAST64): Likewise.
7216         [C99-based-standards] (SCNxLEAST64): Likewise.
7217         [C99-based-standards] (PRIdFAST64): Likewise.
7218         [C99-based-standards] (PRIiFAST64): Likewise.
7219         [C99-based-standards] (PRIoFAST64): Likewise.
7220         [C99-based-standards] (PRIuFAST64): Likewise.
7221         [C99-based-standards] (PRIxFAST64): Likewise.
7222         [C99-based-standards] (PRIXFAST64): Likewise.
7223         [C99-based-standards] (SCNdFAST64): Likewise.
7224         [C99-based-standards] (SCNiFAST64): Likewise.
7225         [C99-based-standards] (SCNoFAST64): Likewise.
7226         [C99-based-standards] (SCNuFAST64): Likewise.
7227         [C99-based-standards] (SCNxFAST64): Likewise.
7228         [C99-based-standards] (PRIdMAX): Likewise.
7229         [C99-based-standards] (PRIiMAX): Likewise.
7230         [C99-based-standards] (PRIoMAX): Likewise.
7231         [C99-based-standards] (PRIuMAX): Likewise.
7232         [C99-based-standards] (PRIxMAX): Likewise.
7233         [C99-based-standards] (PRIXMAX): Likewise.
7234         [C99-based-standards] (SCNdMAX): Likewise.
7235         [C99-based-standards] (SCNiMAX): Likewise.
7236         [C99-based-standards] (SCNoMAX): Likewise.
7237         [C99-based-standards] (SCNuMAX): Likewise.
7238         [C99-based-standards] (SCNxMAX): Likewise.
7239         [C99-based-standards] (PRIdPTR): Likewise.
7240         [C99-based-standards] (PRIiPTR): Likewise.
7241         [C99-based-standards] (PRIoPTR): Likewise.
7242         [C99-based-standards] (PRIuPTR): Likewise.
7243         [C99-based-standards] (PRIxPTR): Likewise.
7244         [C99-based-standards] (PRIXPTR): Likewise.
7245         [C99-based-standards] (SCNdPTR): Likewise.
7246         [C99-based-standards] (SCNiPTR): Likewise.
7247         [C99-based-standards] (SCNoPTR): Likewise.
7248         [C99-based-standards] (SCNuPTR): Likewise.
7249         [C99-based-standards] (SCNxPTR): Likewise.
7250         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7251         allow.
7252         * conform/data/stdint.h-data: Update comments to clarify
7253         requirements.
7254         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7255         type.
7256         [C99-based standards] (INT8_MAX): Likewise.
7257         [C99-based standards] (INT16_MIN): Likewise.
7258         [C99-based standards] (INT16_MAX): Likewise.
7259         [C99-based standards] (INT32_MIN): Likewise.
7260         [C99-based standards] (INT32_MAX): Likewise.
7261         [C99-based standards] (INT64_MIN): Likewise.
7262         [C99-based standards] (INT64_MAX): Likewise.
7263         [C99-based standards] (UINT8_MAX): Likewise.
7264         [C99-based standards] (UINT16_MAX): Likewise.
7265         [C99-based standards] (UINT32_MAX): Likewise.
7266         [C99-based standards] (UINT64_MAX): Likewise.
7267         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7268         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7269         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7270         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7271         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7272         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7273         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7274         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7275         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7276         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7277         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7278         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7279         [C99-based standards] (INT_FAST8_MIN): Likewise.
7280         [C99-based standards] (INT_FAST8_MAX): Likewise.
7281         [C99-based standards] (INT_FAST16_MIN): Likewise.
7282         [C99-based standards] (INT_FAST16_MAX): Likewise.
7283         [C99-based standards] (INT_FAST32_MIN): Likewise.
7284         [C99-based standards] (INT_FAST32_MAX): Likewise.
7285         [C99-based standards] (INT_FAST64_MIN): Likewise.
7286         [C99-based standards] (INT_FAST64_MAX): Likewise.
7287         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7288         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7289         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7290         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7291         [C99-based standards] (INTPTR_MIN): Likewise.
7292         [C99-based standards] (INTPTR_MAX): Likewise.
7293         [C99-based standards] (UINTPTR_MAX): Likewise.
7294         [C99-based standards] (INTMAX_MIN): Likewise.
7295         [C99-based standards] (INTMAX_MAX): Likewise.
7296         [C99-based standards] (UINTMAX_MAX): Likewise.
7297         [C99-based standards] (PTRDIFF_MIN): Likewise.
7298         [C99-based standards] (PTRDIFF_MAX): Likewise.
7299         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7300         [C99-based standards] (SIZE_MAX): Likewise.
7301         [C99-based standards] (WCHAR_MAX): Likewise.
7302         [C99-based standards] (WINT_MAX): Likewise.
7303         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7304         constraint on value.
7305         [C99-based standards] (WCHAR_MIN): Likewise.
7306         [C99-based standards] (WINT_MIN): Likewise.
7307         [C99-based standards] (*_t): Allow.
7308         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7309         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7310         Include math.h-data and complex.h-data.  Remove all expectations
7311         of math.h and complex.h contents.
7312         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7313         at end of line.
7314         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7315         (struct tm): Expect tag.
7316         [C99-based-standards] (wcstof): Expect function.
7317         [C99-based-standards] (wcstold): Likewise.
7318         [C99-based-standards] (wcstoll): Likewise.
7319         [C99-based-standards] (wcstoull): Likewise.
7320         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7321         macro-int-constant.  Specify type.
7322         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7323         constraint on value.
7324         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7325         Specify type.
7326         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7327         Specify value.
7328         [ISO C standards]: Do not allow headers.
7329         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7330         wcs[abcdefghijklmnopqrstuvwxyz]*.
7331         [ISO C standards] (*_t): Do not allow.
7332         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7333         Expect function.
7334         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7335         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7336         Specify type.
7337         [ISO C standards]: Do not allow headers.
7338         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7339         is[abcdefghijklmnopqrstuvwxyz]*.
7340         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7341         to[abcdefghijklmnopqrstuvwxyz]*.
7342         [ISO C standards] (*_t): Do not allow.
7343         * conform/data/stdalign.h-data: New file.
7344         * conform/data/stdbool.h-data: Likewise.
7345         * conform/data/stdnoreturn.h-data: Likewise.
7346
7347 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7348
7349         [BZ #14815]
7350         * manual/filesys.texi (Directory Entries): Typo fix.
7351         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7352
7353 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7354
7355         * elf/elf.h (EM_AARCH64): New macro.
7356         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7357         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7358         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7359         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7360         (R_AARCH64_TLSDESC): Likewise.
7361         (NT_ARM_TLS): Likewise.
7362         (NT_ARM_HW_BREAK): Likewise.
7363         (NT_ARM_HW_WATCH): Likewise.
7364
7365 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7366
7367         [BZ #14811]
7368         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7369         (__ieee754_powl): Saturate nonzero exponents with absolute value
7370         below 0x1p-79 to +/- 0x1p-79.
7371         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7372         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7373         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7374         nonzero exponents with absolute value below 0x1p-32 to +/-
7375         0x1p-32.
7376         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7377         (__ieee754_powl): Saturate nonzero exponents with absolute value
7378         below 0x1p-79 to +/- 0x1p-79.
7379         * math/libm-test.inc (pow_test): Add more tests.
7380
7381 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7382
7383         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7384         _dl_s390_cap_flags with kernel. Increase string length.
7385         (_dl_s390_platforms): Add z196 and zEC12.
7386
7387 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7388
7389         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7390         Change XOPEN21K to XOPEN2K.
7391
7392 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7393
7394         * string/memmove.c: Use memcpy when possible.
7395
7396 2012-11-06  Andreas Jaeger  <aj@suse.de>
7397
7398         * po/eo.po: Update from translation team.
7399
7400 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7401
7402         [BZ #14793]
7403         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7404         exponent and small x and y exponents, scale x or y up.  Increase
7405         by 2 the exponent used in scaling up.
7406         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7407         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7408         * math/libm-test.inc (fma_test): Add more tests.
7409         (fma_test_towardzero): Likewise.
7410         (fma_test_downward): Likewise.
7411         (fma_test_upward): Likewise.
7412
7413 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7414
7415         [BZ #14805]
7416         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7417         fenv_t *.
7418
7419         [BZ #14801]
7420         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7421         namespace for names of struct fields.
7422         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7423         fenv_t fields.
7424         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7425         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7426
7427 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7428
7429         [BZ #3665]
7430         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7431
7432 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7433
7434         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7435         PTR_DEMANGLE.
7436
7437         [BZ #5246]
7438         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7439         PTR_DEMANGLE.
7440
7441 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7442
7443         [BZ #14797]
7444         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7445         definitely overflow as x * y not x * y + z.
7446         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7447         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7448         * math/libm-test.inc (fma_test): Add more tests.
7449         (fma_test_towardzero): Likewise.
7450         (fma_test_downward): Likewise.
7451         (fma_test_upward): Likewise.
7452
7453 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7454
7455         [BZ #157]
7456
7457         * include/stub-tag.h: Remove file.
7458         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7459         '#include' of it.
7460         * manual/maint.texi (Porting): Don't reference it.
7461         * Makerules ($(objpfx)stubs): Likewise.
7462         * dirent/closedir.c: Don't include <stub-tag.h>.
7463         * dirent/dirfd.c: Likewise.
7464         * dirent/fdopendir.c: Likewise.
7465         * dirent/getdents.c: Likewise.
7466         * dirent/getdents64.c: Likewise.
7467         * dirent/opendir.c: Likewise.
7468         * dirent/readdir.c: Likewise.
7469         * dirent/readdir64.c: Likewise.
7470         * dirent/readdir64_r.c: Likewise.
7471         * dirent/readdir_r.c: Likewise.
7472         * dirent/rewinddir.c: Likewise.
7473         * dirent/seekdir.c: Likewise.
7474         * dirent/telldir.c: Likewise.
7475         * gmon/profil.c: Likewise.
7476         * grp/setgroups.c: Likewise.
7477         * inet/if_index.c: Likewise.
7478         * io/access.c: Likewise.
7479         * io/chdir.c: Likewise.
7480         * io/chmod.c: Likewise.
7481         * io/chown.c: Likewise.
7482         * io/close.c: Likewise.
7483         * io/dup.c: Likewise.
7484         * io/dup2.c: Likewise.
7485         * io/dup3.c: Likewise.
7486         * io/euidaccess.c: Likewise.
7487         * io/faccessat.c: Likewise.
7488         * io/fchdir.c: Likewise.
7489         * io/fchmod.c: Likewise.
7490         * io/fchmodat.c: Likewise.
7491         * io/fchown.c: Likewise.
7492         * io/fchownat.c: Likewise.
7493         * io/fcntl.c: Likewise.
7494         * io/flock.c: Likewise.
7495         * io/fstatfs.c: Likewise.
7496         * io/fstatfs64.c: Likewise.
7497         * io/fstatvfs.c: Likewise.
7498         * io/fstatvfs64.c: Likewise.
7499         * io/futimens.c: Likewise.
7500         * io/fxstat.c: Likewise.
7501         * io/fxstat64.c: Likewise.
7502         * io/fxstatat.c: Likewise.
7503         * io/fxstatat64.c: Likewise.
7504         * io/getcwd.c: Likewise.
7505         * io/isatty.c: Likewise.
7506         * io/lchmod.c: Likewise.
7507         * io/lchown.c: Likewise.
7508         * io/link.c: Likewise.
7509         * io/linkat.c: Likewise.
7510         * io/lseek.c: Likewise.
7511         * io/lseek64.c: Likewise.
7512         * io/lxstat64.c: Likewise.
7513         * io/mkdir.c: Likewise.
7514         * io/mkdirat.c: Likewise.
7515         * io/mkfifo.c: Likewise.
7516         * io/mkfifoat.c: Likewise.
7517         * io/open.c: Likewise.
7518         * io/open64.c: Likewise.
7519         * io/openat.c: Likewise.
7520         * io/openat64.c: Likewise.
7521         * io/pipe.c: Likewise.
7522         * io/pipe2.c: Likewise.
7523         * io/poll.c: Likewise.
7524         * io/posix_fadvise.c: Likewise.
7525         * io/posix_fadvise64.c: Likewise.
7526         * io/posix_fallocate.c: Likewise.
7527         * io/posix_fallocate64.c: Likewise.
7528         * io/read.c: Likewise.
7529         * io/readlink.c: Likewise.
7530         * io/readlinkat.c: Likewise.
7531         * io/rmdir.c: Likewise.
7532         * io/sendfile.c: Likewise.
7533         * io/sendfile64.c: Likewise.
7534         * io/statfs.c: Likewise.
7535         * io/statfs64.c: Likewise.
7536         * io/statvfs.c: Likewise.
7537         * io/statvfs64.c: Likewise.
7538         * io/symlink.c: Likewise.
7539         * io/symlinkat.c: Likewise.
7540         * io/ttyname.c: Likewise.
7541         * io/ttyname_r.c: Likewise.
7542         * io/umask.c: Likewise.
7543         * io/unlink.c: Likewise.
7544         * io/unlinkat.c: Likewise.
7545         * io/utime.c: Likewise.
7546         * io/utimensat.c: Likewise.
7547         * io/write.c: Likewise.
7548         * io/xmknod.c: Likewise.
7549         * io/xmknodat.c: Likewise.
7550         * io/xstat.c: Likewise.
7551         * io/xstat64.c: Likewise.
7552         * login/getpt.c: Likewise.
7553         * login/grantpt.c: Likewise.
7554         * login/unlockpt.c: Likewise.
7555         * math/e_acoshl.c: Likewise.
7556         * math/e_acosl.c: Likewise.
7557         * math/e_asinl.c: Likewise.
7558         * math/e_atan2l.c: Likewise.
7559         * math/e_atanhl.c: Likewise.
7560         * math/e_coshl.c: Likewise.
7561         * math/e_expl.c: Likewise.
7562         * math/e_fmodl.c: Likewise.
7563         * math/e_gammal_r.c: Likewise.
7564         * math/e_hypotl.c: Likewise.
7565         * math/e_j0l.c: Likewise.
7566         * math/e_j1l.c: Likewise.
7567         * math/e_jnl.c: Likewise.
7568         * math/e_lgammal_r.c: Likewise.
7569         * math/e_log10l.c: Likewise.
7570         * math/e_log2l.c: Likewise.
7571         * math/e_logl.c: Likewise.
7572         * math/e_powl.c: Likewise.
7573         * math/e_rem_pio2l.c: Likewise.
7574         * math/e_sinhl.c: Likewise.
7575         * math/e_sqrtl.c: Likewise.
7576         * math/fclrexcpt.c: Likewise.
7577         * math/fedisblxcpt.c: Likewise.
7578         * math/feenablxcpt.c: Likewise.
7579         * math/fegetenv.c: Likewise.
7580         * math/fegetexcept.c: Likewise.
7581         * math/fegetround.c: Likewise.
7582         * math/feholdexcpt.c: Likewise.
7583         * math/fesetenv.c: Likewise.
7584         * math/fesetround.c: Likewise.
7585         * math/feupdateenv.c: Likewise.
7586         * math/fgetexcptflg.c: Likewise.
7587         * math/fraiseexcpt.c: Likewise.
7588         * math/fsetexcptflg.c: Likewise.
7589         * math/ftestexcept.c: Likewise.
7590         * math/k_cosl.c: Likewise.
7591         * math/k_rem_pio2l.c: Likewise.
7592         * math/k_sinl.c: Likewise.
7593         * math/k_tanl.c: Likewise.
7594         * math/s_asinhl.c: Likewise.
7595         * math/s_atanl.c: Likewise.
7596         * math/s_cbrtl.c: Likewise.
7597         * math/s_erfl.c: Likewise.
7598         * math/s_expm1l.c: Likewise.
7599         * math/s_log1pl.c: Likewise.
7600         * math/s_tanhl.c: Likewise.
7601         * misc/acct.c: Likewise.
7602         * misc/brk.c: Likewise.
7603         * misc/chflags.c: Likewise.
7604         * misc/chroot.c: Likewise.
7605         * misc/fchflags.c: Likewise.
7606         * misc/fgetxattr.c: Likewise.
7607         * misc/flistxattr.c: Likewise.
7608         * misc/fremovexattr.c: Likewise.
7609         * misc/fsetxattr.c: Likewise.
7610         * misc/fsync.c: Likewise.
7611         * misc/ftruncate.c: Likewise.
7612         * misc/futimes.c: Likewise.
7613         * misc/futimesat.c: Likewise.
7614         * misc/getdomain.c: Likewise.
7615         * misc/getdtsz.c: Likewise.
7616         * misc/gethostid.c: Likewise.
7617         * misc/gethostname.c: Likewise.
7618         * misc/getloadavg.c: Likewise.
7619         * misc/getpagesize.c: Likewise.
7620         * misc/getsysstats.c: Likewise.
7621         * misc/getxattr.c: Likewise.
7622         * misc/gtty.c: Likewise.
7623         * misc/ioctl.c: Likewise.
7624         * misc/lgetxattr.c: Likewise.
7625         * misc/listxattr.c: Likewise.
7626         * misc/llistxattr.c: Likewise.
7627         * misc/lremovexattr.c: Likewise.
7628         * misc/lsetxattr.c: Likewise.
7629         * misc/lutimes.c: Likewise.
7630         * misc/madvise.c: Likewise.
7631         * misc/mincore.c: Likewise.
7632         * misc/mlock.c: Likewise.
7633         * misc/mlockall.c: Likewise.
7634         * misc/mmap.c: Likewise.
7635         * misc/mprotect.c: Likewise.
7636         * misc/msync.c: Likewise.
7637         * misc/munlock.c: Likewise.
7638         * misc/munlockall.c: Likewise.
7639         * misc/munmap.c: Likewise.
7640         * misc/preadv.c: Likewise.
7641         * misc/preadv64.c: Likewise.
7642         * misc/ptrace.c: Likewise.
7643         * misc/pwritev.c: Likewise.
7644         * misc/pwritev64.c: Likewise.
7645         * misc/readv.c: Likewise.
7646         * misc/reboot.c: Likewise.
7647         * misc/remap_file_pages.c: Likewise.
7648         * misc/removexattr.c: Likewise.
7649         * misc/revoke.c: Likewise.
7650         * misc/select.c: Likewise.
7651         * misc/setdomain.c: Likewise.
7652         * misc/setegid.c: Likewise.
7653         * misc/seteuid.c: Likewise.
7654         * misc/sethostid.c: Likewise.
7655         * misc/sethostname.c: Likewise.
7656         * misc/setregid.c: Likewise.
7657         * misc/setreuid.c: Likewise.
7658         * misc/setxattr.c: Likewise.
7659         * misc/sstk.c: Likewise.
7660         * misc/stty.c: Likewise.
7661         * misc/swapoff.c: Likewise.
7662         * misc/swapon.c: Likewise.
7663         * misc/sync.c: Likewise.
7664         * misc/syncfs.c: Likewise.
7665         * misc/syscall.c: Likewise.
7666         * misc/truncate.c: Likewise.
7667         * misc/ualarm.c: Likewise.
7668         * misc/usleep.c: Likewise.
7669         * misc/ustat.c: Likewise.
7670         * misc/utimes.c: Likewise.
7671         * misc/vhangup.c: Likewise.
7672         * misc/writev.c: Likewise.
7673         * posix/_exit.c: Likewise.
7674         * posix/alarm.c: Likewise.
7675         * posix/execve.c: Likewise.
7676         * posix/fexecve.c: Likewise.
7677         * posix/fork.c: Likewise.
7678         * posix/fpathconf.c: Likewise.
7679         * posix/getaddrinfo.c: Likewise.
7680         * posix/getegid.c: Likewise.
7681         * posix/geteuid.c: Likewise.
7682         * posix/getgid.c: Likewise.
7683         * posix/getgroups.c: Likewise.
7684         * posix/getlogin.c: Likewise.
7685         * posix/getlogin_r.c: Likewise.
7686         * posix/getpgid.c: Likewise.
7687         * posix/getpid.c: Likewise.
7688         * posix/getppid.c: Likewise.
7689         * posix/getresgid.c: Likewise.
7690         * posix/getresuid.c: Likewise.
7691         * posix/getsid.c: Likewise.
7692         * posix/getuid.c: Likewise.
7693         * posix/glob64.c: Likewise.
7694         * posix/nanosleep.c: Likewise.
7695         * posix/pathconf.c: Likewise.
7696         * posix/pause.c: Likewise.
7697         * posix/posix_madvise.c: Likewise.
7698         * posix/pread.c: Likewise.
7699         * posix/pread64.c: Likewise.
7700         * posix/pwrite.c: Likewise.
7701         * posix/pwrite64.c: Likewise.
7702         * posix/sched_getaffinity.c: Likewise.
7703         * posix/sched_getp.c: Likewise.
7704         * posix/sched_gets.c: Likewise.
7705         * posix/sched_primax.c: Likewise.
7706         * posix/sched_primin.c: Likewise.
7707         * posix/sched_rr_gi.c: Likewise.
7708         * posix/sched_setaffinity.c: Likewise.
7709         * posix/sched_setp.c: Likewise.
7710         * posix/sched_sets.c: Likewise.
7711         * posix/sched_yield.c: Likewise.
7712         * posix/setgid.c: Likewise.
7713         * posix/setlogin.c: Likewise.
7714         * posix/setpgid.c: Likewise.
7715         * posix/setresgid.c: Likewise.
7716         * posix/setresuid.c: Likewise.
7717         * posix/setsid.c: Likewise.
7718         * posix/setuid.c: Likewise.
7719         * posix/sleep.c: Likewise.
7720         * posix/spawni.c: Likewise.
7721         * posix/sysconf.c: Likewise.
7722         * posix/times.c: Likewise.
7723         * posix/wait.c: Likewise.
7724         * posix/wait3.c: Likewise.
7725         * posix/wait4.c: Likewise.
7726         * posix/waitpid.c: Likewise.
7727         * resolv/gai_sigqueue.c: Likewise.
7728         * resource/getpriority.c: Likewise.
7729         * resource/getrlimit.c: Likewise.
7730         * resource/getrusage.c: Likewise.
7731         * resource/nice.c: Likewise.
7732         * resource/setpriority.c: Likewise.
7733         * resource/setrlimit.c: Likewise.
7734         * resource/ulimit.c: Likewise.
7735         * rt/aio_cancel.c: Likewise.
7736         * rt/aio_fsync.c: Likewise.
7737         * rt/aio_read.c: Likewise.
7738         * rt/aio_sigqueue.c: Likewise.
7739         * rt/aio_suspend.c: Likewise.
7740         * rt/aio_write.c: Likewise.
7741         * rt/clock_getres.c: Likewise.
7742         * rt/clock_gettime.c: Likewise.
7743         * rt/clock_nanosleep.c: Likewise.
7744         * rt/clock_settime.c: Likewise.
7745         * rt/lio_listio.c: Likewise.
7746         * rt/mq_close.c: Likewise.
7747         * rt/mq_getattr.c: Likewise.
7748         * rt/mq_notify.c: Likewise.
7749         * rt/mq_open.c: Likewise.
7750         * rt/mq_receive.c: Likewise.
7751         * rt/mq_send.c: Likewise.
7752         * rt/mq_setattr.c: Likewise.
7753         * rt/mq_timedreceive.c: Likewise.
7754         * rt/mq_timedsend.c: Likewise.
7755         * rt/mq_unlink.c: Likewise.
7756         * rt/shm_open.c: Likewise.
7757         * rt/shm_unlink.c: Likewise.
7758         * rt/timer_create.c: Likewise.
7759         * rt/timer_delete.c: Likewise.
7760         * rt/timer_getoverr.c: Likewise.
7761         * rt/timer_gettime.c: Likewise.
7762         * rt/timer_settime.c: Likewise.
7763         * setjmp/__longjmp.c: Likewise.
7764         * setjmp/setjmp.c: Likewise.
7765         * signal/kill.c: Likewise.
7766         * signal/killpg.c: Likewise.
7767         * signal/raise.c: Likewise.
7768         * signal/sigaction.c: Likewise.
7769         * signal/sigaltstack.c: Likewise.
7770         * signal/sigblock.c: Likewise.
7771         * signal/sigignore.c: Likewise.
7772         * signal/sigintr.c: Likewise.
7773         * signal/signal.c: Likewise.
7774         * signal/sigpause.c: Likewise.
7775         * signal/sigpending.c: Likewise.
7776         * signal/sigqueue.c: Likewise.
7777         * signal/sigreturn.c: Likewise.
7778         * signal/sigset.c: Likewise.
7779         * signal/sigsetmask.c: Likewise.
7780         * signal/sigstack.c: Likewise.
7781         * signal/sigsuspend.c: Likewise.
7782         * signal/sigtimedwait.c: Likewise.
7783         * signal/sigvec.c: Likewise.
7784         * signal/sigwait.c: Likewise.
7785         * signal/sigwaitinfo.c: Likewise.
7786         * signal/sysv_signal.c: Likewise.
7787         * socket/accept.c: Likewise.
7788         * socket/accept4.c: Likewise.
7789         * socket/bind.c: Likewise.
7790         * socket/connect.c: Likewise.
7791         * socket/getpeername.c: Likewise.
7792         * socket/getsockname.c: Likewise.
7793         * socket/getsockopt.c: Likewise.
7794         * socket/isfdtype.c: Likewise.
7795         * socket/listen.c: Likewise.
7796         * socket/recv.c: Likewise.
7797         * socket/recvfrom.c: Likewise.
7798         * socket/recvmsg.c: Likewise.
7799         * socket/send.c: Likewise.
7800         * socket/sendmsg.c: Likewise.
7801         * socket/sendto.c: Likewise.
7802         * socket/setsockopt.c: Likewise.
7803         * socket/shutdown.c: Likewise.
7804         * socket/sockatmark.c: Likewise.
7805         * socket/socket.c: Likewise.
7806         * socket/socketpair.c: Likewise.
7807         * stdio-common/ctermid.c: Likewise.
7808         * stdio-common/cuserid.c: Likewise.
7809         * stdio-common/remove.c: Likewise.
7810         * stdio-common/rename.c: Likewise.
7811         * stdio-common/renameat.c: Likewise.
7812         * stdio-common/tempname.c: Likewise.
7813         * stdlib/getcontext.c: Likewise.
7814         * stdlib/makecontext.c: Likewise.
7815         * stdlib/setcontext.c: Likewise.
7816         * stdlib/swapcontext.c: Likewise.
7817         * stdlib/system.c: Likewise.
7818         * streams/fattach.c: Likewise.
7819         * streams/fdetach.c: Likewise.
7820         * streams/getmsg.c: Likewise.
7821         * streams/getpmsg.c: Likewise.
7822         * streams/putmsg.c: Likewise.
7823         * streams/putpmsg.c: Likewise.
7824         * sysdeps/unix/bsd/getpt.c: Likewise.
7825         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7826         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7827         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7829         Likewise.
7830         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7831         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7832         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7833         * sysvipc/msgctl.c: Likewise.
7834         * sysvipc/msgget.c: Likewise.
7835         * sysvipc/msgrcv.c: Likewise.
7836         * sysvipc/msgsnd.c: Likewise.
7837         * sysvipc/semctl.c: Likewise.
7838         * sysvipc/semget.c: Likewise.
7839         * sysvipc/semop.c: Likewise.
7840         * sysvipc/semtimedop.c: Likewise.
7841         * sysvipc/shmat.c: Likewise.
7842         * sysvipc/shmctl.c: Likewise.
7843         * sysvipc/shmdt.c: Likewise.
7844         * sysvipc/shmget.c: Likewise.
7845         * termios/tcdrain.c: Likewise.
7846         * termios/tcflow.c: Likewise.
7847         * termios/tcflush.c: Likewise.
7848         * termios/tcgetattr.c: Likewise.
7849         * termios/tcgetpgrp.c: Likewise.
7850         * termios/tcsendbrk.c: Likewise.
7851         * termios/tcsetattr.c: Likewise.
7852         * termios/tcsetpgrp.c: Likewise.
7853         * time/adjtime.c: Likewise.
7854         * time/clock.c: Likewise.
7855         * time/getitimer.c: Likewise.
7856         * time/gettimeofday.c: Likewise.
7857         * time/setitimer.c: Likewise.
7858         * time/settimeofday.c: Likewise.
7859         * time/stime.c: Likewise.
7860         * time/time.c: Likewise.
7861
7862 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7863
7864         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7865         /usr/old/bin.
7866
7867         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7868         instead of spaces.
7869         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7870
7871 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7872
7873         [BZ #14796]
7874         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7875         FE_TONEAREST before applying Dekker multiplication and Knuth
7876         addition.  Clear inexact exceptions and check for exact zero
7877         results afterwards.
7878         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7879         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7880         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7881         * math/libm-test.inc (fma_test): Add more tests.
7882         (fma_test_towardzero): Likewise.
7883         (fma_test_downward): Likewise.
7884         (fma_test_upward): Likewise.
7885         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7886         function.
7887         (libc_fesetround): New macro.
7888         (libc_fesetroundf): Likewise.
7889         (libc_fesetroundl): Likewise.
7890         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7891         function.
7892         (libc_fesetround_387): Likewise.
7893         (libc_fesetroundf): New macro.
7894         (libc_fesetround): Likewise.
7895         (libc_fesetroundl): Likewise.
7896         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7897         function.
7898         (libc_fesetroundf): New macro.
7899         (libc_fesetround): Likewise.
7900         (libc_fesetroundl): Likewise.
7901         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7902         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7903         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7904         libm_hidden_ver.
7905         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7906         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7907         libm_hidden_def.
7908         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7909         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7910         libm_hidden_ver.
7911         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7912         libm_hidden_def.
7913
7914         [BZ #3439]
7915         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7916         integer constant usable in #if and use that to give value to enum
7917         constant.
7918         (FE_DIVBYZERO): Likewise.
7919         (FE_UNDERFLOW): Likewise.
7920         (FE_OVERFLOW): Likewise.
7921         (FE_INVALID): Likewise.
7922         (FE_INVALID_SNAN): Likewise.
7923         (FE_INVALID_ISI): Likewise.
7924         (FE_INVALID_IDI): Likewise.
7925         (FE_INVALID_ZDZ): Likewise.
7926         (FE_INVALID_IMZ): Likewise.
7927         (FE_INVALID_COMPARE): Likewise.
7928         (FE_INVALID_SOFTWARE): Likewise.
7929         (FE_INVALID_SQRT): Likewise.
7930         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7931         (FE_TONEAREST): Likewise.
7932         (FE_TOWARDZERO): Likewise.
7933         (FE_UPWARD): Likewise.
7934         (FE_DOWNWARD): Likewise.
7935         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7936         (FE_DIVBYZERO): Likewise.
7937         (FE_OVERFLOW): Likewise.
7938         (FE_UNDERFLOW): Likewise.
7939         (FE_INEXACT): Likewise.
7940         (FE_TONEAREST): Likewise.
7941         (FE_DOWNWARD): Likewise.
7942         (FE_UPWARD): Likewise.
7943         (FE_TOWARDZERO): Likewise.
7944         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7945         (FE_UNDERFLOW): Likewise.
7946         (FE_OVERFLOW): Likewise.
7947         (FE_DIVBYZERO): Likewise.
7948         (FE_INVALID): Likewise.
7949         (FE_TONEAREST): Likewise.
7950         (FE_TOWARDZERO): Likewise.
7951         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7952         (FE_OVERFLOW): Likewise.
7953         (FE_UNDERFLOW): Likewise.
7954         (FE_DIVBYZERO): Likewise.
7955         (FE_INEXACT): Likewise.
7956         (FE_TONEAREST): Likewise.
7957         (FE_TOWARDZERO): Likewise.
7958         (FE_UPWARD): Likewise.
7959         (FE_DOWNWARD): Likewise.
7960         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7961         (FE_DIVBYZERO): Likewise.
7962         (FE_OVERFLOW): Likewise.
7963         (FE_UNDERFLOW): Likewise.
7964         (FE_INEXACT): Likewise.
7965         (FE_TONEAREST): Likewise.
7966         (FE_DOWNWARD): Likewise.
7967         (FE_UPWARD): Likewise.
7968         (FE_TOWARDZERO): Likewise.
7969
7970 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7971
7972         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7973
7974 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7975
7976         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7977         commands.  Quote $PWD.
7978         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7979         -x" by "export".
7980         (remove_newlines): Remove.
7981
7982 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7983
7984         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7985         * stdlib/stdlib.h (atof): Moved to ...
7986         * include/bits/stdlib-float.h: Here.  New file.
7987         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7988         * stdlib/bits/stdlib-float.h: New file.
7989         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7990         -mno-sse -mno-mmx.
7991         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7992         <xmmintrin.h>.
7993
7994 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7995
7996         * conform/conformtest.pl (@headers): Add fenv.h.
7997         * conform/data/fenv.h-data: New file.
7998         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7999         include of <math/fenv.h>.
8000
8001         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8002         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8003         && !UNIX98].  Enables tests for XOPEN2K8.
8004         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8005         POSIX2008]: Likewise.
8006
8007         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8008         (struct rusage): Do not expect type or its members.
8009
8010         [BZ #3439]
8011         * math/math.h (FP_NAN): Define macro to integer constant usable in
8012         #if and use that to give value to enum constant.
8013         (FP_INFINITE): Likewise.
8014         (FP_ZERO): Likewise.
8015         (FP_SUBNORMAL): Likewise.
8016         (FP_NORMAL): Likewise.
8017
8018 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8019
8020         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8021         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8022         arguments.
8023
8024 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8025
8026         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8027         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8028         autoconf-time if not.
8029         * configure.in: Remove AC_PREREQ.
8030
8031 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8032
8033         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8034         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8035         of the internal implementation.
8036
8037 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8038
8039         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8040         except include of <misc/sys/syslog.h>.
8041
8042 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8043
8044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8045         function returns with a NULL context exit with zero.
8046
8047 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8048
8049         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8050
8051 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8052
8053         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8054         (run_program_cmd): This.
8055         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8056         (tst_langinfo): New variable.  Use it.
8057
8058 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8059
8060         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8061         floating point opcodes.
8062
8063 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8064
8065         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8066         variable.
8067
8068         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8069
8070         * sysdeps/mach/hurd/powerpc: Remove directory.
8071         * sysdeps/mach/powerpc: Likewise.
8072
8073 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8074
8075         * scripts/check-local-headers.sh: Ignore c++ headers.
8076
8077 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8078
8079         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8080         __libc_cleanup_region_start argument.
8081
8082 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8083
8084         [BZ #14784]
8085         [BZ #14785]
8086         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8087         x * y using scaling, not as x * y + z.
8088         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8089         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8090         * math/libm-test.inc (fma_test): Add more tests.
8091         (fma_test_towardzero): Likewise.
8092         (fma_test_downward): Likewise.
8093         (fma_test_upward): Likewise.
8094
8095 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8096
8097         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8098
8099 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8100
8101         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8102         New variable.
8103
8104 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8105
8106         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8107
8108 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8109
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8111         Fix sort order.
8112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8113         Likewise.
8114
8115 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8116
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8118         Fix the order of the list for glibc 2.17.
8119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8120         Likewise.
8121
8122 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8123
8124         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8125
8126 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8127
8128         [BZ #14610]
8129         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8130         for low part of x being zero before using __atanl (y).
8131         * math/libm-test.inc (atan2_test): Add another test.
8132
8133         * manual/install.texi (Configuring and compiling): Document
8134         general use of test-wrapper and test-wrapper-env.
8135         * INSTALL: Regenerated.
8136
8137         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8138         (__fma): Do not extract and scale down low bits on after-rounding
8139         systems when result rounded to normal precision would have normal
8140         exponent.
8141         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8142         (__fmal): Do not extract and scale down low bits on after-rounding
8143         systems when result rounded to normal precision would have normal
8144         exponent.
8145         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8146         (__fmal): Do not extract and scale down low bits on after-rounding
8147         systems when result rounded to normal precision would have normal
8148         exponent.
8149         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8150         macro.
8151         (fma_test): Add more tests.
8152         (fma_test_towardzero): Likewise.
8153         (fma_test_downward): Likewise.
8154         (fma_test_upward): Likewise.
8155
8156 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8157
8158         * sysdeps/i386/tininess.h: Renamed to ...
8159         * sysdeps/x86/tininess.h: This.
8160         * sysdeps/x86_64/tininess.h: Removed.
8161
8162 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8163
8164         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8165         input.  Use $(build-program-cmd).
8166         ($(objpfx)tst-array1-static.out): Likewise.
8167         ($(objpfx)tst-array2.out): Likewise.
8168         ($(objpfx)tst-array3.out): Likewise.
8169         ($(objpfx)tst-array4.out): Likewise.
8170         ($(objpfx)tst-array5.out): Likewise.
8171         ($(objpfx)tst-array5-static.out): Likewise.
8172
8173 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8174
8175         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8176         if defined.
8177
8178         * nss/nsswitch.h (nss_interface_function): Provide new
8179         macro for use with NSS functions.
8180         * grp/initgroups.c: Use new macro.
8181         * nss/getXXbyYY.c: Likewise.
8182         * nss/getXXbyYY_r.c: Likewise.
8183         * nss/getXXent.c: Likewise.
8184         * nss/getXXent_r.c: Likewise.
8185         * sysdeps/posix/getaddrinfo.c: Likewise.
8186
8187 2012-10-30  Andreas Jaeger  <aj@suse.de>
8188
8189         * po/ru.po: Update Russion translation from translation project.
8190
8191 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8192
8193         [BZ #14152]
8194         [BZ #14783]
8195         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8196         result and shift together with sticky bit instead of replicating
8197         round-to-nearest rounding.
8198         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8199         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8200         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8201         missing underflow exceptions.
8202         (fma_test_towardzero): Add more tests.
8203         (fma_test_downward): Likewise.
8204         (fma_test_upward): Likewise.
8205
8206         [BZ #14047]
8207         * sysdeps/generic/tininess.h: New file.
8208         * sysdeps/i386/tininess.h: Likewise.
8209         * sysdeps/sh/tininess.h: Likewise.
8210         * sysdeps/x86_64/tininess.h: Likewise.
8211         * stdlib/tst-strtod-underflow.c: Likewise.
8212         * stdlib/tst-tininess.c: Likewise.
8213         * stdlib/strtod_l.c: Include <tininess.h>.
8214         (round_and_return): Do not set errno for exact underflow cases.
8215         Force an underflow exception when setting errno for underflow.
8216         Determine underflow based on rounding to normal precision if
8217         TININESS_AFTER_ROUNDING.
8218         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8219         ERANGE for exact underflow cases.
8220         * stdlib/Makefile (tests): Add tst-tininess and
8221         tst-strtod-underflow.
8222         ($(objpfx)tst-tininess): Use $(link-libm).
8223         ($(objpfx)tst-strtod-underflow): Likewise.
8224
8225 2012-10-30  Andreas Jaeger  <aj@suse.de>
8226
8227         [BZ#14767]
8228         * elf/Makefile (tests): Remove conditional for have-initfini-array
8229         since this is now always required and the variable does not exist
8230         anymore.
8231         (tests-static): Likewise.
8232         (modules-names): Likewise.
8233
8234         * po/eo.po: Add Esperanto translation from translation project.
8235
8236         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8237         merged with constructor/destructor.
8238         (init_array): Likewise.
8239         * elf/tst-array2dep.c (fini_array): Likewise.
8240         (init_array): Likewise.
8241
8242 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8243
8244         * manual/message.texi: Delete @cartouche tags.
8245
8246 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8247
8248         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8249         EOPNOTSUPP.
8250         * sysdeps/mach/hurd/fsync.c: Likewise.
8251
8252         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8253         [_POSIX_REALTIME_SIGNALS]: Change condition to
8254         [_POSIX_REALTIME_SIGNALS > 0].
8255
8256 2012-10-27  Andreas Jaeger  <aj@suse.de>
8257
8258         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8259         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8260         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8261         [__WORDSIZE != 64]: Likewise.
8262
8263 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8264
8265         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8266         *  iconvdata/tst-tables.sh: Likewise.
8267
8268 2012-10-25  David S. Miller  <davem@davemloft.net>
8269
8270         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8271         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8272         of strtoull.
8273
8274         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8275         ifunc-impl-list.c
8276         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8277         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8278         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8279         file.
8280
8281 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8282
8283         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8284         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8285         __getdirentries.
8286
8287 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8288             Jim Blandy  <jimb@codesourcery.com>
8289
8290         * scripts/cross-test-ssh.sh: New file.
8291         * manual/install.texi (Configuring and compiling): Document use of
8292         cross-test-ssh.sh.
8293         * INSTALL: Regenerated.
8294
8295 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8296
8297         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8298         EOPNOTSUPP.
8299
8300 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8301
8302         * Makeconfig (run-program-prefix): Fix comment.
8303
8304 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8305             Jim Blandy  <jimb@codesourcery.com>
8306
8307         * Makeconfig (test-wrapper): New variable,
8308         (test-wrapper-env): Likewise.
8309         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8310         (run-built-tests): Define to yes.
8311         (run-program-prefix): Use $(test-wrapper).
8312         (built-program-cmd): Likewise.
8313         * Rules (make-test-out): Use $(test-wrapper-env) and
8314         $(host-built-program-cmd).
8315         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8316         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8317         tst-pathopt.sh.
8318         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8319         $(test-wrapper-env) to tst-rtld-load-self.sh.
8320         ($(objpfx)order2.out): Use $(test-wrapper).
8321         ($(objpfx)tst-initorder.out): Likewise.
8322         ($(objpfx)tst-initorder2.out): Likewise.
8323         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8324         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8325         (test_wrapper_env): New variable.  Use it to run ld.so.
8326         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8327         Use it to run ld.so.
8328         (test_wrapper_env): Likewise.
8329         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8330         $(test-wrapper) to run-iconv-test.sh.
8331         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8332         (ICONV): Use $test_wrapper.
8333         * posix/Makefile ($(objpfx)globtest.out): Pass
8334         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8335         globtest.sh, not $(run-program-prefix).
8336         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8337         (test_wrapper): Likewise.
8338         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8339         set together with run_via_rtld_prefix.
8340         (run_program_prefix): Define in terms of test_wrapper and
8341         run_via_rtld_prefix.
8342
8343 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8344
8345         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8346         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8347         Targets removed.
8348
8349         [BZ #14743]
8350         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8351         Declare __clock_getres, __clock_gettime, __clock_settime,
8352         __clock_nanosleep, and __clock_getcpuclockid.
8353         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8354         Remove librt_hidden_def (clock_gettime).
8355         * sysdeps/unix/clock_gettime.c: Likewise.
8356         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8357         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8358         * rt/clock_getres.c: Define __clock_getres as an alias.
8359         * sysdeps/posix/clock_getres.c: Likewise.
8360         * rt/clock_settime.c: Define __clock_settime as an alias.
8361         * sysdeps/unix/clock_settime.c: Likewise.
8362         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8363         * sysdeps/unix/clock_nanosleep.c: Likewise.
8364         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8365         * rt/clock-compat.c: New file.
8366         * rt/Makefile (librt-routines): Add clock-compat and move
8367         $(clock-routines) to ...
8368         (routines): ... here, new variable.
8369         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8370         Don't add get_clockfreq here.
8371         * rt/Versions (libc: GLIBC_2.17): New version set.
8372         Add clock_* symbols here.
8373         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8374         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8375         (GLIBC_2.17): Add clock_* symbols.
8376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8378         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8380         Likewise.
8381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8382         Likewise.
8383         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8384         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8385         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8386         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8387         * NEWS: Mention the move.
8388
8389         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8390         Use __open, __read, __close rather than their public counterparts.
8391         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8392         (__get_clockfreq_via_cpuinfo): Likewise.
8393         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8394         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8395
8396         * config.h.in (HAVE_IFUNC): New #undef.
8397         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8398         was successful.
8399         * configure: Regenerated.
8400
8401 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8402
8403         * configure.in: Move READELF check to start of file.
8404         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8405         libc_cv_asm_gnu_indirect_function in the process.
8406         * configure: Regenerated.
8407
8408 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8409
8410         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8411         send the output to /dev/null.
8412         (libc_cv_cc_with_libunwind): Likewise.
8413         (libc_cv_as_noexecstack): Likewise.
8414         * configure: Regenerate.
8415
8416 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8417
8418         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8419
8420         * posix/globtest.sh (TMPDIR): Do not set.
8421         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8422         (testout): Likewise.
8423
8424 2012-10-24  Andreas Jaeger  <aj@suse.de>
8425
8426         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8427         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8428         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8429         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8430         posix_fadvise64, posix_fallocate64.
8431
8432         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8433         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8434         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8435         Likewise.
8436         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8437         Likewise.
8438         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8439
8440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8441         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8442         <bits/fcntl-linux.h>.
8443         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8444
8445         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8446         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8447         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8448         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8449         [__WORDSIZE != 64]: Likewise.
8450
8451 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8452
8453         * Makeconfig (run-built-tests): New variable.
8454         * Rules [$(cross-compiling) = yes]: Change condition to
8455         [$(run-built-tests) = no].
8456         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8457         to [$(run-built-tests) = yes].
8458         * elf/Makefile [$(cross-compiling) = no]: Likewise
8459         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8460         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8461         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8462         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8463         * io/Makefile [$(cross-compiling) = no]: Likewise.
8464         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8465         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8466         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8467         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8468         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8469         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8470         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8471         * string/Makefile [$(cross-compiling) = no]: Likewise.
8472
8473         * posix/Makefile ($(objpfx)globtest.out): Pass
8474         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8475         $(rtld-installed-name).
8476         * posix/globtest.sh (elf_objpfx): Remove variable.
8477         (rtld_installed_name): Likewise.
8478         (library_path): Likewise.
8479         (run_program_prefix): New variable.  Use for running globtest
8480         binary.
8481
8482 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8483             Joseph Myers  <joseph@codesourcery.com>
8484
8485         * Makeconfig (host-built-program-cmd): New variable.
8486         * elf/Makefile (tst-stackguard1-ARGS): Use
8487         $(host-built-program-cmd).
8488         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8489         (tst-spawn-ARGS): Likewise.
8490         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8491
8492 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8493             Jim Blandy  <jimb@codesourcery.com>
8494
8495         * Makeconfig (run-via-rtld-prefix): New variable.
8496         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8497         (built-program-cmd): Likewise.
8498
8499 2012-10-22  Andreas Jaeger  <aj@suse.de>
8500
8501         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8502         __O_RSYNC if it exists, otherwise to O_SYNC.
8503
8504 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8505             Joseph Myers  <joseph@codesourcery.com>
8506
8507         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8508         /dev/null.
8509         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8510         from /dev/null
8511         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8512         /dev/null.
8513
8514 2012-10-22  Andreas Jaeger  <aj@suse.de>
8515
8516         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8517         Define always.
8518         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8519
8520         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8521         bits/fcntl-linux.h.
8522
8523         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8524         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8525
8526         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8527         to __O_LARGEFILE.
8528         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8529         to __O_LARGEFILE.
8530
8531 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8532             Joseph Myers  <joseph@codesourcery.com>
8533
8534         * config.make.in (NM): New variable.
8535
8536 2012-10-21  Andreas Jaeger  <aj@suse.de>
8537
8538         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8539         definitions and declarations that are provided by
8540         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8541
8542 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8543
8544         [BZ #14683]
8545         * elf/Makefile (tests-static): Add tst-leaks1-static.
8546         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8547         ($(objpfx)tst-leaks1-static): New rule.
8548         ($(objpfx)tst-leaks1-static-mem): Likewise.
8549         (tst-leaks1-static-ENV): New macro.
8550         * elf/dl-open.c (dl_open_worker): Check the main application
8551         only if SHARED is defined.
8552         * elf/tst-leaks1-static.c: New file.
8553
8554 2012-10-20  Andreas Jaeger  <aj@suse.de>
8555
8556         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8557         generic values for Linux.
8558         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8559         and declarations that are provided by <bits/fcntl-linux.h> and
8560         include <bits/fcntl-linux.h>.
8561         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8562         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8563
8564 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8565
8566         * io/fcntl.h: Move include of <bits/types.h> to the top and
8567         include it unconditionally.
8568
8569 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8570
8571         * wcsmbs/Makefile (tests-ifunc): New variable.
8572         (tests): Add $(tests-ifunc).
8573         * wcsmbs/test-wcschr-ifunc.c: New file.
8574         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8575         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8576         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8577         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8578         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8579
8580         * string/Makefile (tests-ifunc): New variable.
8581         (tests): Add $(tests-ifunc).
8582         * string/test-memccpy.c (TEST_NAME): New macro.
8583         * string/test-memchr.c (TEST_NAME): Likewise.
8584         * string/test-memcmp.c (TEST_NAME): Likewise.
8585         * string/test-memcpy.c (TEST_NAME): Likewise.
8586         * string/test-memmem.c (TEST_NAME): Likewise.
8587         * string/test-memmove.c (TEST_NAME): Likewise.
8588         * string/test-memset.c (TEST_NAME): Likewise.
8589         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8590         * string/test-stpcpy.c (TEST_NAME): Likewise.
8591         * string/test-stpncpy.c (TEST_NAME): Likewise.
8592         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8593         * string/test-strcasestr.c (TEST_NAME): Likewise.
8594         * string/test-strcat.c (TEST_NAME): Likewise.
8595         * string/test-strchr.c (TEST_NAME): Likewise.
8596         * string/test-strcmp.c(TEST_NAME): Likewise.
8597         * string/test-strcpy.c (TEST_NAME): Likewise.
8598         * string/test-strcspn.c (TEST_NAME): Likewise.
8599         * string/test-strlen.c (TEST_NAME): Likewise.
8600         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8601         * string/test-strncmp.c (TEST_NAME): Likewise.
8602         * string/test-strncpy.c (TEST_NAME): Likewise.
8603         * string/test-strnlen.c (TEST_NAME): Likewise.
8604         * string/test-strpbrk.c (TEST_NAME): Likewise.
8605         * string/test-strrchr.c (TEST_NAME): Likewise.
8606         * string/test-strspn.c (TEST_NAME): Likewise.
8607         * string/test-strstr.c (TEST_NAME): Likewise.
8608         * string/test-bcopy-ifunc.c: New file.
8609         * string/test-bzero-ifunc.c: Likewise.
8610         * string/test-memccpy-ifunc.c: Likewise.
8611         * string/test-memchr-ifunc.c: Likewise.
8612         * string/test-memcmp-ifunc.c: Likewise.
8613         * string/test-memcpy-ifunc.c: Likewise.
8614         * string/test-memmem-ifunc.c: Likewise.
8615         * string/test-memmove-ifunc.c: Likewise.
8616         * string/test-mempcpy-ifunc.c: Likewise.
8617         * string/test-memset-ifunc.c: Likewise.
8618         * string/test-rawmemchr-ifunc.c: Likewise.
8619         * string/test-stpcpy-ifunc.c: Likewise.
8620         * string/test-stpncpy-ifunc.c: Likewise.
8621         * string/test-strcasecmp-ifunc.c: Likewise.
8622         * string/test-strcasestr-ifunc.c: Likewise.
8623         * string/test-strcat-ifunc.c: Likewise.
8624         * string/test-strchr-ifunc.c: Likewise.
8625         * string/test-strchrnul-ifunc.c: Likewise.
8626         * string/test-strcmp-ifunc.c: Likewise.
8627         * string/test-strcpy-ifunc.c: Likewise.
8628         * string/test-strcspn-ifunc.c: Likewise.
8629         * string/test-strlen-ifunc.c: Likewise.
8630         * string/test-strncasecmp-ifunc.c: Likewise.
8631         * string/test-strncat-ifunc.c: Likewise.
8632         * string/test-strncmp-ifunc.c: Likewise.
8633         * string/test-strncpy-ifunc.c: Likewise.
8634         * string/test-strnlen-ifunc.c: Likewise.
8635         * string/test-strpbrk-ifunc.c: Likewise.
8636         * string/test-strrchr-ifunc.c: Likewise.
8637         * string/test-strspn-ifunc.c: Likewise.
8638         * string/test-strstr-ifunc.c: Likewise.
8639
8640         * debug/Makefile (tests-ifunc): New variable.
8641         (tests): Add $(tests-ifunc).
8642         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8643         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8644         * debug/test-stpcpy_chk-ifunc.c: New file.
8645         * debug/test-strcpy_chk-ifunc.c: Likewise.
8646
8647 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8648
8649         [BZ #13601]
8650         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8651         header is not read in.
8652
8653 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8654
8655         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8656         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8657         directly.  Pass built executable to script as
8658         $(built-program-cmd).
8659         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8660         $testprogram without using LD_LIBRARY_PATH and $ldso.
8661
8662         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8663         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8664         $(rtld-installed-name).
8665         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8666         (rtld_installed_name): Likewise.
8667         (library_path): Likewise.
8668         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8669         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8670         $(run-program-prefix) to tst-tables.sh.
8671         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8672         it to run tst-table-from and tst-table-to.
8673         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8674         Pass it to tst-table.sh.
8675         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8676         $(run-program-prefix) to tst-gettext.sh.
8677         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8678         tst-translit.sh.
8679         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8680         tst-gettext2.sh.
8681         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8682         to run tst-gettext.
8683         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8684         to run tst-gettext2.
8685         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8686         to run tst-translit.
8687         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8688         $(run-program-prefix) to tst-mtrace.sh.
8689         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8690         to run tst-mtrace.
8691         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8692         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8693         $(rtld-installed-name).
8694         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8695         (rtld_installed_name): Likewise.
8696         (run_program_prefix): New variable.  Use it to run wordexp-test.
8697
8698         * Makeconfig (ARCH): Remove all definitions.
8699         (machine): Likewise.
8700         [ARCH]: Remove conditional code.
8701         [!objdir]: Give error.
8702         [!objdir] (objpfx): Remove.
8703         [!objdir] (common-objpfx): Likewise.
8704         [!objdir] (common-objdir): Likewise.
8705         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8706         AC_CONFIG_FILES call.
8707         * configure: Regenerated.
8708
8709         [BZ #13888]
8710         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8711         or TMPDIR.
8712         (testout): Likewise.
8713
8714         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8715         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8716         $(rtld-installed-name).
8717         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8718         (rtld_installed_name): Likwise.
8719         (runit): Remove function.
8720         (run_getconf): New variable,  Use it for running getconf binary.
8721
8722 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8723
8724         [BZ #14716]
8725         * string/test-memmem.c (check_result): New function.
8726         (do_one_test): Use it.
8727         (check1): New function.
8728         (test_main): Use it.
8729
8730 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8731
8732         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8733
8734 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8735
8736         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8737         (_G_LSEEK64): Likewise.
8738         (_G_MMAP64): Likewise.
8739         (_G_FSTAT64): Likewise.
8740         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8741         (_G_LSEEK64): Likewise.
8742         (_G_MMAP64): Likewise.
8743         (_G_FSTAT64): Likewise.
8744         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8745         unconditional.  Call __mmap64 directly.
8746         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8747         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8748         __lseek64 directly.
8749         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8750         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8751         __mmap64 directly.
8752         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8753         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8754         __lseek64 directly.
8755         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8756         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8757         __lseek64 directly.
8758         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8759         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8760         __lseek64 directly.
8761         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8762         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8763         __fxstat64 directly.
8764         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8765         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8766         unconditional.
8767         (freopen64) [!_G_OPEN64]: Remove conditional code.
8768         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8769         unconditional.
8770         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8771         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8772         unconditional.
8773         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8774         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8775         unconditional.
8776         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8777         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8778         unconditional.
8779         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8780         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8781         unconditional.
8782         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8783         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8784         unconditional.
8785         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8786         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8787         unconditional.
8788         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8789
8790 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8791
8792         [BZ #12140]
8793         * manual/memory.texi (Malloc Tunable Parameters): Add note
8794         about free list pointers overwriting some perturb bytes.
8795         Wording suggested by Roland McGrath.
8796
8797 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8798
8799         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8800         (lgamma_test): Likewise.
8801         (tgamma_test): Likewise.
8802
8803 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8804
8805         [BZ #14700]
8806         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8807         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8808
8809 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8810
8811         * NEWS: Mention BZ #14716.
8812         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8813         when removing AVAILABLE1_USES_J macro.
8814
8815 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8816
8817         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8818         (__bswap_64): __uint64_t for unsigned 64-bit int.
8819
8820 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8821
8822         * include/string.h (memmem): Declare libc hidden alias.
8823         * string/memmem.c (memmem): Define libc hidden alias.
8824         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8825         __read, __close instead of open, read, close.
8826
8827 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8828
8829         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8830         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8831         global and hidden.
8832         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8833         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8834         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8835         Likewise.
8836         (__rawmemchr_sse2): Likewise.
8837         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8838         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8839         (__strchr_sse2): Likewise.
8840         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8841         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8842         (__strcasecmp_sse2): Likewise.
8843         (__strncasecmp_sse2): Likewise.
8844         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8845         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8846         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8847         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8848         (__strrchr_sse2): Likewise.
8849         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8850         ifunc-impl-list.c.
8851         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8852         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8853         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8854         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8855         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8856         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8857         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8858         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8859         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8860         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8861         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8862         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8863         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8864         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8865         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8866         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8867         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8868         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8869         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8870         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8871         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8872         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8873         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8874         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8875         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8876         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8877         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8878         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8879         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8880         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8881
8882         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8883         global and hidden.
8884         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8885         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8886         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8887         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8888         Likewise.
8889         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8890         Likewise.
8891         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8892         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8893         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8894         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8895         ifunc-impl-list.c.
8896         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8897         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8898         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8899         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8900         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8901         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8902         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8903         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8904         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8905         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8906         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8907         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8908         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8909         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8910         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8911         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8912         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8913         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8914         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8915         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8916         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8917         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8918         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8919         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8920         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8921         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8922         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8923         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8924         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8925         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8926         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8927         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8928         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8929         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8930         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8931         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8932         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8933         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8934         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8935         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8936         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8937
8938         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8939         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8940         * include/ifunc-impl-list.h: New file.
8941         * misc/ifunc-impl-list.c: Likewise.
8942         * misc/Makefile (routines): Add ifunc-impl-list.
8943         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8944         * string/test-string.h: Include <ifunc-impl-list.h>.
8945         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8946         impl_array): New variables.
8947         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8948         are defined.
8949         (test_init): Call __libc_ifunc_impl_list to initialize
8950         func_list if TEST_IFUNC and TEST_NAME are defined.
8951
8952         * string/Makefile (strop-tests): Add bcopy and bzero.
8953         * string/test-bcopy.c: New file.
8954         * string/test-bzero.c: Likewise.
8955         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8956         defined.
8957         * string/test-memset.c: Support bzero test if TEST_BZERO is
8958         defined.
8959         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8960         __libc_memmove.
8961         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8962         __libc_memset.
8963         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8964         of memset.
8965
8966 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8967
8968         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8969         * configure: Regenerated.
8970
8971         * Makeconfig (+link-static-before-libc): Don't include
8972         $(link-static-libc).
8973
8974         * libio/libio.h (_IO_pos_t): Remove.
8975
8976 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8977
8978         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8979         McGrath.
8980
8981 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8982
8983         * crypt/crypt-entry.c: Include fips-private.h.
8984         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8985         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8986         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8987         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8988
8989 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8990
8991         * crypt/crypt-private.h: Include stdbool.h.
8992         (_ufc_setup_salt_r): Return bool.
8993         * crypt/crypt-entry.c: Include errno.h.
8994         (__crypt_r): Return NULL with EINVAL for bad salt.
8995         * crypt/crypt_util.c (bad_for_salt): New.
8996         (_ufc_setup_salt_r): Check that salt is long enough and within
8997         the specified alphabet.
8998         * crypt/badsalttest.c: New file.
8999         * crypt/Makefile (tests): Add it.
9000         ($(objpfx)badsalttest): New.
9001
9002 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9003
9004         * NEWS: Add entry for BZ #14602.
9005
9006 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9007
9008         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9009         type-generic.
9010         * math/libm-test.inc: Update comment listing what functions and
9011         macros are tested.
9012         (isgreater_test): New function.
9013         (isgreaterequal_test): Likewise.
9014         (isless_test): Likewise.
9015         (islessequal_test): Likewise.
9016         (islessgreater_test): Likewise.
9017         (isunordered_test): Likewise.
9018         (main): Call the new functions.
9019
9020 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9021
9022         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9023         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9024         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9025         * sysdeps/i386/configure: Regenerated.
9026         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9027         * sysdeps/mach/configure: Regenerated.
9028         * sysdeps/mach/hurd/configure: Regenerated.
9029         * sysdeps/powerpc/configure: Regenerated.
9030         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9031         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9032         * sysdeps/s390/s390-32/configure: Regenerated.
9033         * sysdeps/s390/s390-64/configure: Regenerated.
9034         * sysdeps/sh/configure: Regenerated.
9035         * sysdeps/sparc/configure: Regenerated.
9036         * sysdeps/unix/sysv/linux/configure: Regenerated.
9037         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9038         * sysdeps/x86_64/configure: Regenerated.
9039
9040         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9041         defined.  Don't check if MAP is NULL.
9042
9043 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9044
9045         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9046         (_G_stat64): Likewise.
9047         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9048         (_G_stat64): Likewise.
9049         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9050         instead of struct _G_stat64.
9051         * libio/fileops.c (mmap_remap_check): Likewise.
9052         (decide_maybe_mmap): Likewise.
9053         (_IO_new_file_seekoff): Likewise.
9054         (_IO_file_stat): Likewise.
9055         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9056         _G_off64_t.
9057         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9058         instead of struct _G_stat64.
9059         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9060
9061 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9062
9063         [BZ #14602]
9064         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9065         Replace with ...
9066         (CHECK_EOL): New macro.
9067         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9068         CHECK_EOL.
9069         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9070         Replace with CHECK_EOL.
9071         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9072         Replace with CHECK_EOL.
9073
9074 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9075
9076         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9077         type-generic.
9078         * math/libm-test.inc: Update comment listing what functions and
9079         macros are tested.
9080         (finite_test): New function.
9081         (isinf_test): Likewise.
9082         (isnan_test): Likewise.
9083         (fpclassify_test): Test subnormal input.
9084         (isfinite_test): Likewise.
9085         (isnormal_test): Likewise.
9086         (main): Call the new functions.
9087
9088 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9089
9090         [BZ #14660]
9091         * Makerules (%.dynsym): Force C locale when running
9092         $(OBJDUMP) --dynamic-syms.
9093
9094 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9095
9096         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9097         <stdint.h>.
9098
9099 2012-10-06  David S. Miller  <davem@davemloft.net>
9100
9101         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9102         upper 32-bits of the length value in %o2 since we use branch-on-register
9103         tests which consider the entire 64-bit register.
9104
9105 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9106
9107         * string/test-strstr.c (check2): Add a test for page boundary.
9108
9109 2012-10-05  David S. Miller  <davem@davemloft.net>
9110
9111         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9112         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9113         file.
9114         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9115         sysdep_routines.
9116         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9117         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9118         and bzero when HWCAP_SPARC_CRYPTO is present.
9119
9120 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         [BZ #14602]
9123         * string/test-strstr.c (check2): New function.
9124         (test_main): Call check2.
9125
9126         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9127         and bug-strchr1.
9128         * string/bug-strcasestr1.c (do_test): Moved to ...
9129         * string/test-strcasestr.c (check1): Here.  New function.
9130         (do_one_test): Break out result checking code into ...
9131         (check_result): This.  New function.
9132         (do_one_test): Call check_result.
9133         (test_main): Call check1.
9134         * string/bug-strchr1.c (do_test): Moved to ...
9135         * string/test-strchr.c (check1): Here.  New function.
9136         (do_one_test): Break out result checking code into ...
9137         (check_result): This.  New function.
9138         (do_one_test): Call check_result.
9139         (test_main): Call check1.
9140         * string/bug-strstr1.c (main): Moved to ...
9141         * string/test-strstr.c (check1): Here.  New function.
9142         (do_one_test): Break out result checking code into ...
9143         (check_result): This.  New function.
9144         (do_one_test): Call check_result.
9145         (test_main): Call check1.
9146         * string/bug-strcasestr1.c: Removed.
9147         * string/bug-strchr1.c: Likewise.
9148         * string/bug-strstr1.c: Likewise.
9149
9150         * elf/Makefile (dl-routines): Add hwcaps.
9151         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9152         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9153         (_dl_important_hwcaps): Moved to ...
9154         * elf/dl-hwcaps.c: Here.  New file.
9155         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9156
9157         [BZ #14557]
9158         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9159         if IS_IN_rtld isn't defined.
9160
9161         * elf/dl-support.c (_dl_sysinfo_map): New.
9162         Include "get-dynamic-info.h" and "setup-vdso.h".
9163         (_dl_non_dynamic_init): Call setup_vdso.
9164         * elf/dynamic-link.h: Don't include <assert.h>.
9165         (elf_get_dynamic_info): Moved to ...
9166         * elf/get-dynamic-info.h: Here.  New file.
9167         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9168         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9169         * elf/setup-vdso.h: Here.  New file.
9170         * elf/rtld.c: Include "setup-vdso.h".
9171         (dl_main): Call setup_vdso.
9172
9173 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9174
9175         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9176         creal in comment listing functions tested.  List finite, isinf,
9177         isnan, isless, islessequal, isgreater, isgreaterequal,
9178         islessgreater, isunordered, lgamma_r and pow10 as functions and
9179         macros not tested.  Mention which functions not tested are aliases
9180         for other functions.  Fix typo.  Note that signs of NaNs are not
9181         tested.
9182
9183         * scripts/config.guess: Update from config.git.
9184         * scripts/config.sub: Likewise.
9185
9186 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9187
9188         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9189         * misc/madvise.c (madvise): Renamed to __madvise.
9190         Make madvise a weak alias.
9191         * include/sys/mman.h: Declare __madvise.
9192         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9193         * sysdeps/unix/syscalls.list
9194         (madvise): Make __madvise the strong name, and madvise a weak alias.
9195         * sysdeps/unix/sysv/linux/syscalls.list
9196         (madvise, mmap): Remove redundant entries.
9197         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9198         * malloc/malloc.c (mtrim): Likewise.
9199         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9200
9201 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9202
9203         * sysdeps/mach/hurd/dl-cache.c: File removed.
9204         * config.h.in (USE_LDCONFIG): New #undef.
9205         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9206         * configure: Regenerated.
9207         * elf/Makefile (dl-routines): Add dl-cache only under
9208         [$(use-ldconfig) = yes].
9209         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9210         cache on [USE_LDCONFIG].
9211         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9212         [USE_LDCONFIG].
9213         * elf/rtld.c (dl_main): Likewise.
9214
9215 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9216
9217         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9218         _SC_LEVEL4_CACHE_LINESIZE.
9219
9220 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9221
9222         * sysdeps/unix/bsd/confstr.h: File removed.
9223
9224 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9225
9226         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9227         sys/sdt-config.h.
9228
9229 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9230
9231         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9232         Make 'mapoff' field ElfW(Off) rather than off_t.
9233
9234 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9235
9236         * nscd/Makefile: Remove nscd-cflags and all its users.
9237         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9238         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9239
9240         [BZ #10631]
9241         * malloc.c (malloc_printerr): Clarify error message.
9242
9243 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9244
9245         [BZ #14648]
9246         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9247         Set bit_FMA_Usable if FMA is supported.
9248         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9249         macro.
9250         (bit_FMA4_Usable): Updated.
9251         (index_FMA_Usable): New macro.
9252         (CPUID_FMA): Likewise
9253         (HAS_FMA): Defined with bit_FMA_Usable.
9254
9255 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9256
9257         * bits/types.h (__swblk_t): Type removed.
9258         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9259         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9260         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9261         (__SWBLK_T_TYPE): Likewise.
9262         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9263         (__SWBLK_T_TYPE): Likewise.
9264         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9265         (__SWBLK_T_TYPE): Likewise.
9266         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9267         (__SWBLK_T_TYPE): Likewise.
9268
9269 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9270             Honza Horak <hhorak@redhat.com>
9271
9272         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9273         (xdr_mapname): Use YPMAXMAP as maxsize.
9274         (xdr_peername): Use YPMAXPEER as maxsize.
9275         (xdr_keydat): Use YPAXRECORD as maxsize.
9276         (xdr_valdat): Use YPMAXRECORD as maxsize.
9277
9278 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9279
9280         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9281
9282         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9283         * csu/init-first.c: ... here.
9284         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9285         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9286         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9287         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9288         * sysdeps/i386/init-first.c: File removed.
9289         * sysdeps/sh/init-first.c: File removed.
9290
9291 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9292
9293         [BZ #14645]
9294         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9295         if x * y might underflow to zero and z is zero.
9296         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9297         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9298         * math/libm-test.inc (min_subnorm_value): New variable.
9299         (fma_test): Add more tests.
9300         (fma_test_towardzero): Likewise.
9301         (fma_test_downward): Likewise
9302         (fma_test_upward): Likewise.
9303         (initialize): Set min_subnorm_value.
9304
9305 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9306
9307         [BZ #14638]
9308         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9309         0 + 0.
9310         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9311         mode for addition resulting in exact zero.
9312         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9313         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9314         exact 0 + 0.
9315         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9316         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9317         * math/libm-test.inc (fma_test): Add more tests.
9318         (fma_test_towardzero): New function.
9319         (fma_test_downward): Likewise.
9320         (fma_test_upward): Likewise.
9321         (main): Call the new functions.
9322
9323 2012-09-28  David S. Miller  <davem@davemloft.net>
9324
9325         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9326
9327 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9328
9329         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9330         instead of SIGALRM.
9331
9332         * sysdeps/gnu/_G_config.h: Moved to ...
9333         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9334         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9335         * sysdeps/generic/_G_config.h: ... here.
9336
9337         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9338
9339         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9340
9341         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9342         Conditionalize target on [libnss_test1.so-version].
9343
9344         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9345
9346         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9347         (elfobjdir): Move out of conditionals.
9348
9349         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9350         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9351         (__nss_lookup_function): Conditionalize label remove_from_tree on
9352         [!DO_STATIC_NSS || SHARED], matching its only use.
9353
9354 2012-09-28  David S. Miller  <davem@davemloft.net>
9355
9356         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9357         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9358         file.
9359         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9360         sysdep_routines.
9361         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9362         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9363         when HWCAP_SPARC_CRYPTO is present.
9364
9365 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9366
9367         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9368
9369 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9370
9371         [BZ #6530]
9372         * stdio-common/vfprintf.c (process_string_arg): Revert
9373         2000-07-22 change.
9374
9375 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9376
9377         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9378         for testcase.
9379         * stdio-common/tst-sprintf.c: Include <locale.h>
9380         (main): Test sprintf's handling of incomplete multibyte
9381         characters.
9382
9383 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9384
9385         * elf/dl-runtime.c (VERSYMIDX): Removed.
9386         * elf/dl-version.c (VERSYMIDX): Likewise.
9387         * elf/do-rel.h (VERSYMIDX): Likewise.
9388         (VALIDX): Likewise.
9389         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9390         * elf/rtld.c (VALIDX): Likewise.
9391         (ADDRIDX): Likewise.
9392         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9393         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9394         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9395         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9396         (VALIDX): Likewise.
9397         (ADDRIDX): Likewise.
9398
9399 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9400
9401         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9402
9403 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9404
9405         [BZ #11438]
9406         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9407         to global scope.
9408         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9409         addresses are in the same scope as 192.0.2/24.
9410         * posix/gai.conf: Document new scope table defaults.
9411
9412 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9413
9414         [BZ #5298]
9415         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9416         for ftell.  Compute offsets from write pointers instead.
9417         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9418
9419 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9420
9421         [BZ #14543]
9422         * libio/Makefile (tests): New test case tst-fseek.
9423         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9424         combination works in wide mode.
9425         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9426         state when the external buffer state changes.
9427
9428 2012-09-27  David S. Miller  <davem@davemloft.net>
9429
9430         [BZ #14376]
9431         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9432         pass reloc->r_addend in as the 'high' argument to
9433         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9434
9435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9436
9437 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9438
9439         * rt/tst-aio2.c: Include <pthread.h>.
9440         * rt/tst-aio3.c: Likewise.
9441
9442 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9443
9444         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9445
9446 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9447
9448         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9449         contents on [SHARED].
9450
9451 2012-09-26  Marek Polacek  <polacek@redhat.com>
9452
9453         [BZ #14530]
9454         [BZ #13741]
9455         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9456         for C++ and GCC <4.3 as well as for non GCC compilers.
9457
9458 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9459
9460         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9461
9462 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9463
9464         * Makefile.in (all, install): Declare with .PHONY.
9465         Reported by Michael Hope <michael.hope@linaro.org>.
9466
9467 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9468
9469         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9470         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9471         system header.
9472         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9473         Likewise.
9474         (sydep_routines): Add the new and the internal functions.
9475         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9476         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9478         (GLIBC_2.17): Add the new function.
9479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9480         (GLIBC_2.17): Likewise.
9481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9482         (GLIBC_2.17): Likewise.
9483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9484         (GLIBC_2.17): Likewise.
9485         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9486
9487 2012-09-25  Alan Modra  <amodra@gmail.com>
9488
9489         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9490         Add release barrier before setting once_control to say
9491         initialisation is done.  Add hints on lwarx.  Use macro in
9492         place of isync.
9493         (clear_once_control): Add release barrier.
9494
9495 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9496
9497         [BZ #13629]
9498         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9499         specially.
9500         * math/s_clog10.c (__clog10): Likewise.
9501         * math/s_clog10f.c (__clog10f): Likewise.
9502         * math/s_clog10l.c (__clog10l): Likewise.
9503         * math/s_clogf.c (__clogf): Likewise.
9504         * math/s_clogl.c (__clogl): Likewise.
9505         * math/Makefile (libm-calls): Add x2y2m1.
9506         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9507         (__x2y2m1): Likewise.
9508         (__x2y2m1l): Likewise.
9509         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9510         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9511         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9512         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9513         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9514         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9515         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9516         * sysdeps/i386/fpu/libm-test-ulps: Update.
9517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9518
9519         [BZ #14621]
9520         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9521         int as type of variable DEPTH.
9522         (glob): Use size_t instead of int as type of variables NEWCOUNT
9523         and OLD_PATHC.
9524
9525 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9526
9527         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9528         Add s_sincosf-sse2.
9529         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9530         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9531         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9532         macros for using routine as __sincosf_ia32.
9533         Use macro for function declaration and weak_alias.
9534         * sysdeps/i386/fpu/libm-test-ulps: Update.
9535
9536         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9537         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9538
9539         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9540         subnormal argument.
9541         * math/s_cexpf.c (__cexpf): Likewise.
9542         * math/s_csinf.c (__csinf): Likewise.
9543         * math/s_csinhf.c (__csinhf): Likewise.
9544         * math/s_ctanf.c (__ctanf): Likewise.
9545         * math/s_ctanhf.c (__ctanhf): Likewise.
9546         * math/s_ccosh.c (__ccoshf): Likewise.
9547         * math/s_cexp.c (__cexpl): Likewise.
9548         * math/s_csin.c (__csin): Likewise.
9549         * math/s_csinh.c (__csinh): Likewise.
9550         * math/s_ctan.c (__ctan): Likewise.
9551         * math/s_ctanh.c (ctanh): Likewise.
9552         * math/s_ccoshl.c (__ccoshl): Likewise.
9553         * math/s_cexpl.c (__cexpl): Likewise.
9554         * math/s_csinl.c (__csinl): Likewise.
9555         * math/s_csinhl.c (__csinhl): Likewise.
9556         * math/s_ctanl.c (__ctanl): Likewise.
9557         * math/s_ctanhl.c (__ctanhl): Likewise.
9558
9559 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9560
9561         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9562         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9563         (_IO_off_t): Define to __off_t, not _G_off_t.
9564         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9565         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9566         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9567         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9568         type of __dummy and __dummy2 fields.
9569         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9570         (_G_ssize_t): Likewise.
9571         (_G_off_t): Likewise.
9572         (_G_pid_t): Likewise.
9573         (_G_uid_t): Likewise.
9574         (_G_wchar_t): Likewise.
9575         (_G_wint_t): Likewise.
9576         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9577         (_G_ssize_t): Likewise.
9578         (_G_off_t): Likewise.
9579         (_G_pid_t): Likewise.
9580         (_G_uid_t): Likewise.
9581         (_G_wchar_t): Likewise.
9582         (_G_wint_t): Likewise.
9583         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9584         (_G_ssize_t): Likewise.
9585         (_G_off_t): Likewise.
9586         (_G_pid_t): Likewise.
9587         (_G_uid_t): Likewise.
9588         (_G_wchar_t): Likewise.
9589         (_G_wint_t): Likewise.
9590
9591 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9592
9593         * malloc/arena.c: Include malloc-sysdep.h.
9594         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9595         is sufficient to shrink the heap or an unmap is needed.
9596         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9597         new function check_may_shrink_heap.
9598         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9599         new function check_may_shrink_heap.
9600
9601 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9602
9603         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9604         comments.
9605
9606 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9607
9608         * catgets/test-gencat.sh: Add "set -e".
9609         * elf/tst-pathopt.sh: Likewise.
9610         * grp/tst_fgetgrent.sh: Likewise.
9611         * iconvdata/run-iconv-test.sh: Likewise.
9612         * intl/tst-gettext.sh: Likewise.
9613         * intl/tst-gettext2.sh: Likewise.
9614         * intl/tst-gettext4.sh: Likewise.
9615         * intl/tst-gettext6.sh: Likewise.
9616         * intl/tst-translit.sh: Likewise.
9617         * io/ftwtest-sh: Likewise.
9618         * libio/test-freopen.sh: Likewise.
9619         * malloc/tst-mtrace.sh: Likewise.
9620         * posix/globtest.sh: Likewise.
9621         * posix/tst-getconf.sh: Likewise.
9622         * posix/wordexp-tst.sh: Likewise.
9623         * stdio-common/tst-printf.sh: Likewise.
9624         * stdio-common/tst-unbputc.sh: Likewise.
9625         * stdlib/tst-fmtmsg.sh: Likewise.
9626         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9627         * catgets/Makefile: Do not specify -e option when running
9628         testsuite shell scripts.
9629         * elf/Makefile: Likewise.
9630         * grp/Makefile: Likewise.
9631         * iconvdata/Makefile: Likewise.
9632         * intl/Makefile: Likewise.
9633         * io/Makefile: Likewise.
9634         * libio/Makefile: Likewise.
9635         * malloc/Makefile: Likewise.
9636         * posix/Makefile: Likewise.
9637         * stdio-common/Makefile: Likewise.
9638         * stdlib/Makefile: Likewise.
9639         * sysdeps/x86_64/Makefile: Likewise.
9640
9641         * io/ftwtest-sh: Add copyright header.
9642         * posix/globtest.sh: Likewise.
9643         * posix/tst-getconf.sh: Likewise.
9644         * posix/wordexp-tst.sh: Likewise.
9645         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9646
9647 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9648
9649         [BZ #13679]
9650         * Makeconfig (+link): Defined as $(+link-static) if
9651         $(build-shared) isn't yes.
9652         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9653         isn't yes.
9654         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9655
9656         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9657
9658         [BZ #14562]
9659         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9660         new chunk size with MALLOC_ALIGN_MASK.
9661
9662 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9663
9664         [BZ #5044]
9665         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9666         <rounding-mode.h>.
9667         (__printf_fphex): Determine rounding using get_rounding_mode and
9668         round_away.
9669         * stdio-common/tst-printf-round.c (struct hex_test): New
9670         structure.
9671         (hex_tests): New variable.
9672         (test_hex_in_one_mode): New function.
9673         (do_test): Also run tests for hex float output.
9674
9675 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9676
9677         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9678         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9679         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9680         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9681         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9682         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9683         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9684         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9685
9686 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9687
9688         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9689         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9690         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9691         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9692
9693 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9694
9695         [BZ #14579]
9696         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9697         mode only.
9698         * elf/tst-rtld-load-self.sh: New test.
9699         * elf/Makefile: Run it.
9700
9701 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9702
9703         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9704         (tst-writev-ENV): Remove.
9705         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9706
9707 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9708
9709         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9710
9711 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9712
9713         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9714         unconditional.
9715         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9716         Likewise.
9717         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9718         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9719         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9720         Likewise.
9721
9722 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9723
9724         [BZ #14587]
9725         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9726         * config.make.in (have-cpp-asm-debuginfo): Removed.
9727         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9728         * configure: Regenerated.
9729
9730 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9731
9732         [BZ #5044]
9733         * stdio-common/printf_fp.c: Include <stdbool.h> and
9734         <rounding-mode.h>.
9735         (___printf_fp): Determine rounding using get_rounding_mode and
9736         round_away.
9737         * stdio-common/tst-printf-round.c: New file.
9738         * stdio-common/Makefile (tests): Add tst-printf-round.
9739         (link-libm): New variable.
9740         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9741
9742 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9743
9744         [BZ #14576]
9745         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9746         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9747         Likewise.
9748         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9749         Likewise.
9750
9751 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9752
9753         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9754         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9755         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9756         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9757
9758 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9759
9760         [BZ #14518]
9761         * include/rounding-mode.h: New file.
9762         * sysdeps/generic/get-rounding-mode.h: Likewise.
9763         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9764         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9765         (MAX_VALUE): New macro.
9766         (MIN_VALUE): Likewise.
9767         (overflow_value): New function.
9768         (underflow_value): Likewise.
9769         (round_and_return): Use overflow_value and underflow_value to
9770         determine return values in overflow and underflow cases.  Use
9771         round_away to determine rounding depending on rounding mode.
9772         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9773         determine return values in overflow and underflow cases.
9774         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9775         (struct test_results): New structure.
9776         (struct test): Use struct test_results to store expected results
9777         for all rounding modes.
9778         (TEST): Include expected results for all rounding modes.
9779         (test_in_one_mode): New function.
9780         (do_test): Use test_in_one_mode to compute and check results.
9781         Check results for all rounding modes.
9782         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9783         $(link-libm).
9784
9785 2012-12-09  Allan McRae  <allan@archlinux.org>
9786
9787         * sysdeps/i386/fpu/libm-test-ulps: Update
9788
9789 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9790
9791         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9792         (_G_int32_t): Likewise.
9793         (_G_uint16_t): Likewise.
9794         (_G_uint32_t): Likewise.
9795         (_G_HAVE_BOOL): Likewise.
9796         (_G_HAVE_ATEXIT): Likewise.
9797         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9798         (_G_HAVE_IO_FILE_OPEN): Likewise.
9799         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9800         (_G_int32_t): Likewise.
9801         (_G_uint16_t): Likewise.
9802         (_G_uint32_t): Likewise.
9803         (_G_HAVE_BOOL): Likewise.
9804         (_G_HAVE_ATEXIT): Likewise.
9805         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9806         (_G_HAVE_IO_FILE_OPEN): Likewise.
9807         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9808         (_G_int32_t): Likewise.
9809         (_G_uint16_t): Likewise.
9810         (_G_uint32_t): Likewise.
9811         (_G_HAVE_BOOL): Likewise.
9812         (_G_HAVE_ATEXIT): Likewise.
9813         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9814         (_G_HAVE_IO_FILE_OPEN): Likewise.
9815
9816 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9817
9818         * csu/libc-tls.c: Update copyright years.
9819
9820 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9821
9822         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9823         [!_G_USING_THUNKS]: Remove conditional code.
9824         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9825         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9826
9827         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9828         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9829         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9830         (_G_VTABLE_LABEL_PREFIX): Likewise.
9831         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9832         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9833         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9834         (_G_VTABLE_LABEL_PREFIX): Likewise.
9835         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9836         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9837         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9838         (_G_VTABLE_LABEL_PREFIX): Likewise.
9839         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9840
9841 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9842
9843         * libio/Makefile: Include ../Makeconfig before tests.
9844         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9845         only if $(build-shared) is yes.
9846
9847         * iconv/gconv_db.c: Update copyright years.
9848
9849 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9850
9851         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9852         unwind info if defined PIC. Fix special cases description.
9853         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9854
9855         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9856         DP_HI_MASK entry.
9857         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9858
9859 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9860
9861         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9862
9863         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9864         is NULL.
9865
9866         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9867         (LDLIBS-tst-chk4): This.
9868         (LDFLAGS-tst-chk5): Renamed to ...
9869         (LDLIBS-tst-chk5): This.
9870         (LDFLAGS-tst-chk6): Renamed to ...
9871         (LDLIBS-tst-chk6): This.
9872         (LDFLAGS-tst-lfschk4): Renamed to ...
9873         (LDLIBS-tst-lfschk4): This.
9874         (LDFLAGS-tst-lfschk5): Renamed to ...
9875         (LDLIBS-tst-lfschk5): This.
9876         (LDFLAGS-tst-lfschk6): Renamed to ...
9877         (LDLIBS-tst-lfschk6): This.
9878
9879         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9880         on $(common-objpfx)soversions.mk.
9881
9882 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9883
9884         [BZ #10014]
9885         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9886         example host name.
9887
9888 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9889
9890         * malloc/arena.c (arena_get_retry): New function that gets
9891         another arena for the caller to try its request on.
9892         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9893         current arena cannot fulfill the request.
9894         (__libc_memalign): Likewise.
9895         (__libc_memalign): Likewise.
9896         (__libc_pvalloc): Likewise.
9897         (__libc_calloc): Likewise.
9898
9899 2012-09-05  John Tobey  <john.tobey@gmail.com>
9900
9901         [BZ #13542]
9902         * manual/arith.texi (Operations on Complex): Fix description
9903         of carg branch cut.
9904
9905 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9906
9907         [BZ #10014]
9908         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9909         host name.
9910
9911         [BZ #10038]
9912         * manual/memory.texi (Memory): Make order of menu items match
9913         order of sections.
9914
9915 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9916
9917         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9918         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9919         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9920
9921 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9922
9923         * csu/libc-tls.c (static_dtv): Renamed to ...
9924         (_dl_static_dtv): This.  Make it global.
9925         (_dl_initial_dtv): Removed.
9926         (__libc_setup_tls): Updated.
9927         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9928         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9929         DL_INITIAL_DTV.
9930
9931 2012-09-06  Petr Machata  <pmachata@redhat.com>
9932
9933         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9934         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9935         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9936         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9937
9938 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9939
9940         [BZ #14545]
9941         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9942         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9943         freeing dtv[-1].
9944
9945 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9946
9947         [BZ #14544]
9948         * Makeconfig (link-static-before-libc): Replace $(+prector)
9949         with $(+prectorT).
9950         (link-static-after-libc): Replace $(+postctor) with
9951         $(+postctorT).
9952         (link-bounded): Replace $(+prector)/$(+postctor) with
9953         $(+prectorT)/$(+postctorT).
9954         (+prectorT): New macro.
9955         (+postctorT): Likewise.
9956
9957 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9958
9959         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9960         (round_str): Handle values above the maximum for IBM long double
9961         as inexact.
9962         * stdlib/tst-strtod-round.c (tests): Regenerated.
9963
9964 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9965
9966         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9967         assembler flag.
9968         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9969         zarch_nohighgprs around the zarch optimized routines.
9970         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9971         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9972         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9973         for zarch.
9974
9975 2012-09-05  David S. Miller  <davem@davemloft.net>
9976
9977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9978
9979         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9980         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9981         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9982         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9983         entries.
9984
9985 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9986
9987         * malloc/arena.c: Fold copyright years.
9988         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9989
9990 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9991
9992         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9993
9994 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9995
9996         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9997
9998 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9999
10000         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10001         change internal state upon failure.
10002
10003 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10004
10005         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10006         * malloc/memusage.c (mmap): Likewise.
10007         (mmap64, mremap): Likewise.  Adjust name in comment.
10008
10009 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10010
10011         * libio/fileops.c: Fix typos in comments.
10012         * libio/oldfileops.c: Likewise.
10013         * libio/wfileops.c: Likewise.
10014
10015 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10016
10017         [BZ #1349]
10018         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10019         (tst-malloc-usable-ENV): Set environment for test case.
10020         * malloc/hooks.c (malloc_check_get_size): New function to get
10021         requested size.
10022         * malloc/malloc.c (musable): Use malloc_check_get_size.
10023         * malloc/tst-malloc-usable.c: New test case.
10024
10025 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10026
10027         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10028
10029 2012-09-05  Allan McRae  <allan@archlinux.org>
10030
10031         [BZ #13966]
10032         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10033         determine header location.
10034         * configure: Regenerated.
10035
10036 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10037
10038         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10039         float format.
10040         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10041         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10042         format.
10043         (test): Regenerate.
10044
10045 2012-09-04  David S. Miller  <davem@davemloft.net>
10046
10047         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10048         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10049         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10050
10051 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10052
10053         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10054         failures.
10055
10056         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10057
10058 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10059
10060         [BZ #9914]
10061         * libio/iogetdelim.c: Include <limits.h>.
10062         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10063         + len + 1 would overflow.
10064
10065 2012-09-03  Andreas Jaeger  <aj@suse.de>
10066
10067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10068         * sysdeps/i386/fpu/libm-test-ulps: Update.
10069
10070 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10071
10072         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10073         Add s_sinf-sse2, s_conf-sse2.
10074
10075         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10076         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10077         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10078         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10079
10080         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10081         for using routine as __sinf_ia32.
10082         Use macro for function declaration and weak_alias.
10083         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10084         for using routine as __cosf_ia32.
10085         Use macro for function declaration and weak_alias.
10086
10087         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10088         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10089
10090         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10091         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10092         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10093
10094         * math/libm-test.inc (cos_test): Add more test cases.
10095         (sin_test): Likewise.
10096         (sincos_test): Likewise.
10097
10098 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10099
10100         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10101         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10102         hidden.
10103         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10104
10105 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10106
10107         [BZ #14538]
10108         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10109         first element of the GOT.
10110         (elf_machine_load_address): Return the difference between
10111         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10112
10113 2012-09-01  Allan McRae  <allan@archlinux.org>
10114
10115         [BZ #13412]
10116         * configure.in (AWK): Require gawk version 3.0 or later.
10117         * configure: Regenerated.
10118
10119 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10120
10121         * sysdeps/unix/sysv/linux/kernel-features.h
10122         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10123         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10124         [__NR_clock_getres]: Make code unconditional.
10125         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10126         (clock_getcpuclockid): Remove code left unreachable by removal of
10127         conditionals.
10128         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10129         code unconditional.
10130         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10131         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10132         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10133         Make code unconditional.
10134         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10135         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10136         * sysdeps/unix/sysv/linux/clock_settime.c
10137         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10138         conditional code.
10139         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10140         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10141
10142 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10143
10144         [BZ #14476]
10145         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10146         scripts/test-installation.pl.
10147
10148         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10149         and $ld_so_version if it is set.
10150
10151 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10152
10153         [BZ #14516]
10154         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10155         failure if reading from procfs failed.
10156         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10157
10158 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10159
10160         * sysdeps/unix/sysv/linux/kernel-features.h
10161         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10162         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10163         Remove conditional code.
10164         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10165         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10166         Remove conditional code.
10167         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10168         * sysdeps/unix/sysv/linux/i386/fxstat.c
10169         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10170         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10171         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10172         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10173         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10174         * sysdeps/unix/sysv/linux/i386/lxstat.c
10175         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10176         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10177         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10178         Remove conditional code.
10179         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10180         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10181         Remove conditional code.
10182         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10183         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10184         <kernel-features.h>.
10185         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10186         Remove.
10187         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10188         Remove conditional code.
10189         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10190         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10191         Remove conditional.
10192
10193 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10194
10195         [BZ #5400]
10196         * NEWS: Add fixed bug number.
10197
10198 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10199
10200         [BZ #14519]
10201         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10202         underflowing exponent in case of negative sign.
10203         * stdlib/tst-strtod-round-data: Add more tests.
10204         * stdlib/tst-strtod-round.c (tests): Regenerated.
10205
10206         [BZ #3479]
10207         * stdlib/strtod_l.c (NDIG): Remove.
10208         (HEXNDIG): Likewise.
10209         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10210         smallest representable value.
10211         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10212         lie within an exact representation of 1/2 ulp of the result.
10213         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10214         unconditionally.
10215         (TENS_P9_IDX): Define unconditionally.
10216         (TENS_P9_SIZE): Likewise.
10217         (TENS_P10_IDX): Likewise.
10218         (TENS_P10_SIZE): Likewise.
10219         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10220         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10221         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10222         entries for 10^2^13 and 10^2^14.
10223         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10224         (TENS_P13_IDX): Define.
10225         (TENS_P13_SIZE): Likewise.
10226         (TENS_P14_IDX): Likewise.
10227         (TENS_P14_SIZE): Likewise.
10228         (_fpioconst_pow10): Change array size to
10229         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10230         unconditional.
10231         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10232         1024]: Add entries for 10^2^13 and 10^2^14.
10233         [LAST_POW10 > _LAST_POW10]: Remove #error.
10234         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10235         (_fpioconst_pow10): Change array size to
10236         FPIOCONST_POW10_ARRAY_SIZE.
10237         * stdlib/gen-fpioconst.c: New file.
10238         * stdlib/gen-tst-strtod-round.c: Likewise.
10239         * stdlib/tst-strtod-round-data: Likewise.
10240         * stdlib/tst-strtod-round.c: Likewise.
10241         * stdlib/Makefile (tests): Add tst-strtod-round.
10242
10243         [BZ #14459]
10244         * stdlib/strtod_l.c: Include <stdint.h>.
10245         (NDEBUG): Do not define.
10246         (round_and_return): Change EXPONENT parameter to type intmax_t.
10247         Rearrange calculations to avoid internal overflow possibilities.
10248         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10249         Rearrange calculations to avoid internal overflow possibilities.
10250         Assert that number fits inside MPNSIZE limbs.
10251         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10252         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10253         calculations and add assertions to avoid internal overflow
10254         possibilities.  Add casts to avoid signed/unsigned operations.
10255         * stdlib/tst-strtod-overflow.c: New file.
10256         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10257
10258 2012-08-25  Marek Polacek  <polacek@redhat.com>
10259
10260         * time/time.h: Fix some typos in comments.
10261
10262 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10263
10264         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10265         * posix/tst-rfc3484-2.c: Likewise.
10266         * posix/tst-rfc3484-3.c: Likewise.
10267
10268 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10269
10270         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10271         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10272
10273 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10274
10275         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10276         #include of fxstatat64.c.
10277
10278 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10279
10280         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10281         * shadow/getspent_r.c: Likewise.
10282         * shadow/getspnam.c: Likewise.
10283         * shadow/getspnam_r.c: Likewise.
10284         * gshadow/getsgent.c: Likewise.
10285         * gshadow/getsgent_r.c: Likewise.
10286         * gshadow/getsgnam.c: Likewise.
10287         * gshadow/getsgnam_r.c: Likewise.
10288         * inet/getnetbyad.c: Likewise.
10289         * inet/getnetbyad_r.c: Likewise.
10290         * inet/getnetbynm.c: Likewise.
10291         * inet/getnetbynm_r.c: Likewise.
10292         * inet/getnetent.c: Likewise.
10293         * inet/getnetent_r.c: Likewise.
10294         * inet/getproto.c: Likewise.
10295         * inet/getproto_r.c: Likewise.
10296         * inet/getprtent.c: Likewise.
10297         * inet/getprtent_r.c: Likewise.
10298         * inet/getprtname.c: Likewise.
10299         * inet/getprtname_r.c: Likewise.
10300         * inet/getrpcbyname.c: Likewise.
10301         * inet/getrpcbyname_r.c: Likewise.
10302         * inet/getrpcbynumber.c: Likewise.
10303         * inet/getrpcbynumber_r.c: Likewise.
10304         * inet/getrpcent.c: Likewise.
10305         * inet/getrpcent_r.c: Likewise.
10306         * inet/getaliasent.c: Likewise.
10307         * inet/getaliasent_r.c: Likewise.
10308         * inet/getaliasname.c: Likewise.
10309         * inet/getaliasname_r.c: Likewise.
10310         * nscd/getgrgid_r.c: Likewise.
10311         * nscd/getgrnam_r.c: Likewise.
10312         * nscd/gethstbyad_r.c: Likewise.
10313         * nscd/gethstbynm3_r.c: Likewise.
10314         * nscd/getpwnam_r.c: Likewise.
10315         * nscd/getpwuid_r.c: Likewise.
10316         * nscd/getsrvbynm_r.c: Likewise.
10317         * nscd/getsrvbypt_r.c: Likewise.
10318         * nscd/gai.c: Likewise.
10319
10320         * configure.in (build_nscd): New substituted variable, set
10321         by --disable-build-nscd and defaults to $use_nscd.
10322         * configure: Regenerated.
10323         * config.make.in (build-nscd): New substituted variable.
10324         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10325         Change conditional to require [$(build-nscd) = yes] as well.
10326         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10327
10328         [BZ# 13696]
10329         * configure.in (use_nscd): New substituted variable, set by
10330         --disable-nscd.  If enabled, define USE_NSCD.
10331         * configure: Regenerated.
10332         * config.h.in: Add USE_NSCD.
10333         * config.make.in (use-nscd): New substituted variable.
10334         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10335         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10336         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10337         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10338         (CFLAGS-getgrnam_r.c): Likewise.
10339         (CFLAGS-initgroups.c): Likewise.
10340         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10341         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10342         Variables removed.
10343         * inet/getnetgrent_r.c
10344         (nscd_setnetgrent): New function, broken out of ...
10345         (setnetgrent): ... here.  Call it.
10346         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10347         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10348         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10349         * nscd/Makefile (routines, aux): Move definitions after include of
10350         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10351         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10352         Conditionalize on [USE_NSCD].
10353         (is_nscd, nscd_init_cb): Likewise.
10354         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10355         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10356         * nss/nss_db/db-init.c: Likewise.
10357         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10358         [USE_NSCD].
10359         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10360         (make_request): Use it.
10361         (cache_valid_p): New function.
10362         (__check_pf): Use it.
10363         * NEWS: Add item for --disable-nscd.
10364
10365 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10366
10367         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10368         to support sed >= 4.2.1-20-ga9bf076.
10369         * configure: Regenerated.
10370
10371 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10372
10373         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10374         Conditionalize whole body on [IREL].
10375
10376 2012-08-22  Jeff Law <law@redhat.com>
10377
10378         [BZ #14505]
10379         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10380         if the family is PF_UNSPEC.
10381
10382 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10383
10384         * Makerules (lib-version): Rename from V.
10385         (install-lib-nosubdir): Change V to lib-version.
10386
10387 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10388
10389         [BZ #14252]
10390         * powerpc32/power6/wcschr.c: New file.
10391         * powerpc32/power6/wcscpy.c: New file.
10392         * powerpc32/power6/wcsrchr.c: New file.
10393         * powerpc64/power6/wcschr.c: New file.
10394         * powerpc64/power6/wcscpy.c: New file.
10395         * powerpc64/power6/wcsrchr.c: New file.
10396
10397 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10398
10399         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10400         (two_way_short_needle): Use it.
10401         * string/strstr.c (AVAILABLE1_USES_J): Define.
10402         * string/strcasestr.c: Likewise.
10403
10404         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10405         array references.
10406         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10407
10408         [BZ #11607]
10409         * NEWS: Add an entry.
10410         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10411         define their defaults.
10412         (two_way_short_needle): Detect end-of-string on-the-fly.
10413         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10414         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10415         * string/bug-strcasestr1.c: New test.
10416         * string/Makefile: Run it.
10417
10418 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10419
10420         [BZ #11607]
10421         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10422         the first character.
10423
10424 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10425
10426         * csu/elf-init.c (__libc_csu_irel): Function removed.
10427         * csu/libc-start.c (apply_irel): New function.
10428         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10429
10430 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10431
10432         * sysdeps/unix/sysv/linux/kernel-features.h
10433         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10434         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10435         <kernel-features.h>.
10436         [__NR_fadvise64_64]: Make code unconditional.
10437         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10438         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10439         !__NR_fadvise64_64)]: Likewise.
10440         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10441         !__NR_fadvise64_64))]: Likewise.
10442         [__NR_fadvise64]: Make code unconditional.
10443         [!__NR_fadvise64]: Remove conditional code.
10444         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10445         <kernel-features.h>.
10446         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10447         unconditional.
10448         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10449         conditional code.
10450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10451         not include <kernel-features.h>.
10452         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10453         unconditional.
10454         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10455         conditional code.
10456         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10457         include <kernel-features.h>.
10458         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10459         unconditional.
10460         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10461         conditional code.
10462
10463 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10464
10465         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10466         slight instruction rearrangements per scrollpipe analysis.
10467         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10468
10469 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10470
10471         * manual/syslog.texi (syslog; vsyslog, closelog):
10472         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10473         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10474
10475         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10476         DSOCAPS to match condition on defining it.
10477
10478 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10479
10480         * sysdeps/unix/sysv/linux/kernel-features.h
10481         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10483         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10484         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10486         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10487         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10489         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10490         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10491
10492         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10493         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10494
10495         * sysdeps/unix/sysv/linux/kernel-features.h
10496         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10497         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10498         unconditional.
10499         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10500         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10501         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10502         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10503         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10504         Make code unconditional.
10505         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10506         (__mmap64) [!__NR_mmap2]: Likewise.
10507         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10508         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10509         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10510         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10511         [__NR_mmap2]: Make code unconditional.
10512         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10513         (__mmap64) [!__NR_mmap2]: Likewise.
10514
10515 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10516
10517         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10518
10519 2012-08-18  Andreas Jaeger  <aj@suse.de>
10520
10521         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10522
10523 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10524
10525         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10526         * include/unistd.h (__have_sock_cloexec): Likewise.
10527         (__have_pipe2): Likewise.
10528         (__have_dup3): Likewise.
10529
10530 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10531
10532         [BZ #9685]
10533         * include/unistd.h (__have_pipe2): Change define into an extern int.
10534         (__have_dup3): Likewise.
10535         * socket/have_sock_cloexec.c: Include fcntl.h.
10536         (__have_pipe2): New variable.
10537         (__have_dup3): Likewise.
10538
10539 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10540
10541         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10542
10543 2012-08-17  Marek Polacek  <polacek@redhat.com>
10544
10545         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10546         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10547
10548 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10549
10550         * configure.in: Add AC_SUBST for sysheaders.
10551         * configure: Regenerated.
10552         * config.make.in (sysheaders): New substituted variable.
10553
10554         * sysdeps/unix/mkfifo.c: Moved ...
10555         * sysdeps/posix/mkfifo.c: ... here.
10556         * sysdeps/unix/mkfifoat.c: Moved ...
10557         * sysdeps/posix/mkfifoat.c: ... here.
10558
10559         * sysdeps/unix/utime.c: Moved ...
10560         * sysdeps/posix/utime.c: ... here.
10561
10562         * sysdeps/unix/time.c: Moved ...
10563         * sysdeps/posix/time.c: ... here.
10564         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10565         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10566
10567         * sysdeps/unix/nice.c: Moved ...
10568         * sysdeps/posix/nice.c: ... here.
10569
10570         * sysdeps/unix/alarm.c: Moved ...
10571         * sysdeps/posix/alarm.c: ... here.
10572
10573         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10574
10575 2012-08-17  Jeff Law <law@redhat.com>
10576
10577         * intl/Makefile (codeset_mo): New variable.
10578         ($(codeset_mo)): New target.
10579         (tst-codeset.out): Depend on that.  Remove explicit rule.
10580         (tst-gettext3.out, tst-gettext5.out): Likewise.
10581         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10582         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10583         * intl/tst-codeset.sh: Remove.
10584         * intl/tst-gettext3.sh: Likewise.
10585         * intl/tst-gettext5.sh: Likewise.
10586
10587 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10588
10589         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10590         * sysdeps/unix/syscalls.list: ... here.
10591
10592         * sysdeps/posix/getaddrinfo.c
10593         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10594         (gaiconf_init, gaiconf_reload): Use them.
10595         [!_STATBUF_ST_NSEC]
10596         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10597         Define using time_t rather than struct timespec.
10598
10599         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10600         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10601         Macros removed.
10602         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10603         [!NO_THREADS].
10604         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10605         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10606         Likewise.
10607
10608         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10609         __libc_cleanup_push argument.
10610
10611         * bits/param.h: New file.
10612         * misc/sys/param.h: New file.
10613         * include/sys/param.h: New file.
10614         * misc/Makefile (headers): Add bits/param.h.
10615         * sysdeps/generic/sys/param.h: File removed.
10616         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10617         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10618         * sysdeps/mach/hurd/bits/param.h: New file.
10619         * sysdeps/mach/hurd/sys/param.h: File removed.
10620
10621         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10622         last change.
10623
10624         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10625         [_IO_MTSAFE_IO].
10626         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10627         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10628         New macros.
10629
10630         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10631         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10632         rather than -D_IO_MTSAFE_IO conditionally.
10633         * stdio-common/Makefile (CPPFLAGS): Likewise.
10634         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10635         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10636         Use $(libio-mtsafe).
10637         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10638         of -D_IO_MTSAFE_IO.
10639         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10640         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10641         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10642         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10643         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10644         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10645         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10646         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10647         (CFLAGS-fread_u_chk.c): Likewise.
10648         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10649         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10650         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10651         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10652         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10653         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10654         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10655         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10656         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10657
10658         * libio/Makefile: Test [$(libc-reentrant) = yes]
10659         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10660
10661         * Makeconfig
10662         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10663         * sysdeps/pthread/configure: File removed.
10664         * sysdeps/pthread/Makeconfig: New file.
10665         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10666         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10667
10668 2012-08-16  Gary Benson  <gbenson@redhat.com>
10669
10670         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10671         unmapping the first object in a namespace.
10672
10673 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10674
10675         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10676         (__internal_setnetgrent): ... this.  Add internal_function to
10677         definition.  Add libc_hidden_def.
10678         (setnetgrent): Update caller.
10679         (internal_endnetgrent): Renamed to ...
10680         (__internal_endnetgrent): ... this.  Add internal_function to
10681         definition.  Add libc_hidden_def.
10682         (endnetgrent): Update caller.
10683         (internal_getnetgrent_r): Renamed to ...
10684         (__internal_getnetgrent_r): ... this.  Add internal_function to
10685         definition.  Add libc_hidden_def.
10686         (__getnetgrent_r): Update caller.
10687         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10688
10689 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * stdlib/longlong.h: Update from GCC.
10692
10693 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10694
10695         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10696         on _QL, which is set by umul_ppmm but never used.
10697         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10698         variables, which are set by GMP macros but never used.
10699         * stdio-common/_itowa.c (_itowa): Likewise.
10700         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10701         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10702
10703 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10704
10705         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10706         struct La_sh_regs is not constant.
10707         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10708         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10709         and struct La_sparc64_regs are not constant.
10710
10711 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10712
10713         * sysdeps/unix/sysv/linux/kernel-features.h
10714         (__ASSUME_POSIX_TIMERS): Remove.
10715         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10716         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10717         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10718         Make code unconditional.
10719         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10720         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10721         Make code unconditional.
10722         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10723         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10724         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10725         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10726         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10727         Make code unconditional.
10728         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10729         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10730         (__libc_missing_posix_timers): Remove.
10731
10732 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10733
10734         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10735         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10736
10737         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10738
10739         * elf/dl-sym.c: Include <stdlib.h>.
10740
10741         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10742         constants, which avoids warnings in 32-bit builds.
10743
10744         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10745         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10746
10747         * misc/lseek.c: File moved to ...
10748         * io/lseek.c: ... here.
10749
10750         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10751
10752         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10753         shifting LEN more than 31 bits at once.
10754
10755 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10756
10757         [BZ #14195]
10758         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10759         segmentation fault for a case of two empty input strings.
10760         * string/test-strncasecmp.c (check1): Renamed to...
10761         (bz12205): ...this.
10762         (bz14195): Add new testcase for two empty input strings and N > 0.
10763         (test_main): Call new testcase, adapt for renamed function.
10764
10765 2012-08-15  Andreas Jaeger  <aj@suse.de>
10766
10767         [BZ #14090]
10768         * crypt/md5test2.c: New test, based on test supplied by Serge
10769         Belyshev <belyshev@depni.sinp.msu.ru>.
10770         * crypt/Makefile (xtests): Add md5test-giant..
10771         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10772
10773 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10774
10775         [BZ #14090]
10776         * crypt/md5.c (md5_process_block): Don't assume the buffer
10777         length is less than 2**32.
10778         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10779         length is less than 2**64.
10780
10781 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10782
10783         * string/str-two-way.h: Include <sys/param.h>.
10784         (MAX): Macro removed.
10785
10786         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10787         Move #define and #undef of memmove to just before and after
10788         including <string.h>.
10789
10790         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10791         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10792         and after including <string.h>.  Move declarations of
10793         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10794         to before #include "string/memmove.c".
10795
10796         * include/dirent.h: Declare __getdirentries.
10797
10798         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10799         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10800
10801 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10802
10803         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10804         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10805         * sysdeps/i386/configure: Regenerated.
10806         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10807         STABS_CURRENT_FILE, and STABS_FUN.
10808         (END): Remove call to STABS_FUN_END.
10809         (STABS_CURRENT_FILE1): Delete.
10810         (STABS_CURRENT_FILE): Likewise.
10811         (STABS_FUN): Likewise.
10812         (STABS_FUN_END): Likewise.
10813         (STABS_FUN2): Likewise.
10814         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10815         * sysdeps/x86_64/configure: Regenerated.
10816
10817 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10818
10819         * elf/dl-open.c: Include <atomic.h>.
10820         * elf/dl-lookup.c: Likewise.
10821
10822 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10823
10824         * sysdeps/unix/sysv/linux/kernel-features.h
10825         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10826         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10827         unconditionally.
10828         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10829         unconditionally.
10830         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10831         condition on __ASSUME_CLONE_THREAD_FLAGS.
10832
10833 2012-08-14  Andreas Jaeger  <aj@suse.de>
10834
10835         * sysdeps/i386/fpu/libm-test-ulps: Update.
10836
10837 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10838
10839         * include/atomic.h (atomic_exchange_and_add): Split into ...
10840         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10841         New atomic macros.
10842
10843 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10844
10845         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10846
10847 2012-08-13  Jeff Law <law@redhat.com>
10848
10849         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10850         null byte in the output string.
10851
10852 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10853
10854         * sysdeps/unix/sysv/linux/kernel-features.h
10855         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10856         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10857         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10858         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10859         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10860         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10861         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10862
10863 2012-08-09  Jeff Law <law@redhat.com>
10864
10865         [BZ #13939]
10866         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10867         When avoid_arena is set, don't retry in the that arena.  Pick the
10868         next one, whatever it might be.
10869         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10870         (arena_lock): Pass in new parameter to arena_get2.
10871         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10872         arena_get2.
10873         (__libc_malloc): Unify retrying after main arena failure with
10874         __libc_memalign version.
10875         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10876
10877 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10878
10879         [BZ #14166]
10880         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10881         to __redirect_strstr.
10882         (__strstr_sse42): Use typeof __redirect_strstr.
10883         (__strstr_ia32): Likewise.
10884         (__libc_strstr): New prototype.
10885         (strstr): Renamed to ...
10886         (__libc_strstr): This.
10887         (strstr): New strong alias of __libc_strstr.
10888         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10889         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10890         __redirect_time.
10891         Include <time.h>.
10892         (__libc_time): New prototype.
10893         (time_ifunc): Replace time with __libc_time.
10894         (time): New strong alias and hidden definition of __libc_time.
10895         (__GI_time): Remove strong alias.
10896         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10897         Include <stddef.h>.
10898         (memmove): Redefined to __redirect_memmove.
10899         (__memmove_sse2): Use typeof __redirect_memmove.
10900         (__memmove_ssse3): Likewise.
10901         (__memmove_ssse3_back): Likewise.
10902         (__libc_memmove): New prototype.
10903         (memmove): Renamed to ...
10904         (__libc_memmove): This.
10905         (memmove): New strong alias of __libc_memmove.
10906
10907 2012-08-08  Mark Salter  <msalter@redhat.com>
10908
10909         * elf/elf.h
10910         (R_MN10300_TLS_GD): Define.
10911         (R_MN10300_TLS_LD): Likewise.
10912         (R_MN10300_TLS_LDO): Likewise.
10913         (R_MN10300_TLS_GOTIE): Likewise.
10914         (R_MN10300_TLS_IE): Likewise.
10915         (R_MN10300_TLS_LE): Likewise.
10916         (R_MN10300_TLS_DTPMOD): Likewise.
10917         (R_MN10300_TLS_DTPOFF): Likewise.
10918         (R_MN10300_TLS_TPOFF): Likewise.
10919         (R_MN10300_SYM_DIFF): Likewise.
10920         (R_MN10300_ALIGN): Likewise.
10921         (R_MN10300_NUM): Update.
10922
10923 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10924
10925         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10926         Remove.
10927
10928 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10929
10930         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10931
10932         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10933         sysdeps/unix -> sysdeps/posix move.
10934         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10935
10936 2012-08-07      Allan McRae     <allan@archlinux.org>
10937
10938         [BZ #14303]
10939         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10940         (SUNOS_CPP): Likewise.
10941         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10942         not found.
10943         (open_input): Call CPP using execvp.
10944
10945 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10946
10947         * sysdeps/unix/sysv/linux/kernel-features.h
10948         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10949         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10950         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10951         (__ASSUME_WAITID_SYSCALL): Likewise.
10952         * sysdeps/unix/sysv/linux/dl-execstack.c
10953         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10954         code unconditional.
10955         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10956         conditional code.
10957         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10958         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10959         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10960         code.
10961         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10962         unconditional.
10963         [__ASSUME_WAITID_SYSCALL]: Likewise.
10964         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10965
10966 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10967
10968         * sysdeps/unix/closedir.c: Renamed to ...
10969         * sysdeps/posix/closedir.c: ... here.
10970         * sysdeps/unix/dirfd.c: Renamed to ...
10971         * sysdeps/posix/dirfd.c: ... here.
10972         * sysdeps/unix/dirstream.h: Renamed to ...
10973         * sysdeps/posix/dirstream.h: ... here.
10974         * sysdeps/unix/fdopendir.c: Renamed to ...
10975         * sysdeps/posix/fdopendir.c: ... here.
10976         * sysdeps/unix/opendir.c: Renamed to ...
10977         * sysdeps/posix/opendir.c: ... here.
10978         * sysdeps/unix/readdir.c: Renamed to ...
10979         * sysdeps/posix/readdir.c: ... here.
10980         * sysdeps/unix/readdir_r.c: Renamed to ...
10981         * sysdeps/posix/readdir_r.c: ... here.
10982         * sysdeps/unix/rewinddir.c: Renamed to ...
10983         * sysdeps/posix/rewinddir.c: ... here.
10984         * sysdeps/unix/seekdir.c: Renamed to ...
10985         * sysdeps/posix/seekdir.c: ... here.
10986         * sysdeps/unix/telldir.c: Renamed to ...
10987         * sysdeps/posix/telldir.c: ... here.
10988         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10989         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10990         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10991         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10992
10993         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10994         * bits/fcntl.h: ... here.
10995
10996         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10997         not 0.
10998         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10999         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11000         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11001         (struct flock): Move l_start, l_len to the beginning.
11002         Use __pid_t for l_pid.
11003         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11004         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11005         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11006         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11007         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11008         [__USE_LARGEFILE64] (struct flock64): New type.
11009         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11010
11011         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11012         * bits/dirent.h: ... here.
11013
11014         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11015         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11016
11017 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11020         Change from 2.6.0 to 2.6.16.
11021         * sysdeps/unix/sysv/linux/configure: Regenerated.
11022         * sysdeps/unix/sysv/linux/kernel-features.h
11023         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11024         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11025         version.
11026         (__ASSUME_UTIMES): Likewise.
11027         (__ASSUME_CLONE_STOPPED): Remove.
11028         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11029         architectures, not kernel version.
11030         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11031         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11032         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11033         (__ASSUME_WAITID_SYSCALL): Likewise.
11034         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11035         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11036         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11037         refer to older versions.
11038
11039 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11040
11041         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11042         Define alphasort64 as an alias.
11043         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11044         Define versionsort64 as an alias.
11045         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11046         Define scandir64 as an alias.
11047         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11048         Define scandirat64 as an alias.
11049         * dirent/alphasort64.c (alphasort64):
11050         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11051         * dirent/versionsort64.c: Likewise.
11052         * dirent/scandir64.c: Likewise.
11053         * dirent/scandirat64.c: Likewise.
11054         * sysdeps/wordsize-64/alphasort.c: File removed.
11055         * sysdeps/wordsize-64/alphasort64.c: File removed.
11056         * sysdeps/wordsize-64/scandir.c: File removed.
11057         * sysdeps/wordsize-64/scandir64.c: File removed.
11058         * sysdeps/wordsize-64/scandirat.c: File removed.
11059         * sysdeps/wordsize-64/scandirat64.c: File removed.
11060         * sysdeps/wordsize-64/versionsort.c: File removed.
11061         * sysdeps/wordsize-64/versionsort64.c: File removed.
11062         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11063         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11064         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11065         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11066         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11067         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11068         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11069         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11070
11071         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11072         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11073         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11074         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11075         [defined __arch64__ || defined __sparcv9]
11076         (__INO_T_MATCHES_INO64_T): New macro.
11077         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11078         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11079         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11080         * sysdeps/unix/sysv/linux/bits/dirent.h
11081         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11082         (_DIRENT_MATCHES_DIRENT64): New macro.
11083
11084         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11085         Define lockf64 as an alias.
11086         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11087         Define fseeko64 as an alias.
11088         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11089         Define ftello64 as an alias.
11090         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11091         Define _IO_fgetpos64 and fgetpos64 as aliases.
11092         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11093         Define _IO_fsetpos64 and fsetpos64 as aliases.
11094         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11095         Conditionalize body on this.
11096         * libio/fseeko64.c: Likewise.
11097         * libio/ftello64.c: Likewise.
11098         * libio/iofgetpos64.c: Likewise.
11099         * libio/iofsetpos64.c: Likewise.
11100         * sysdeps/wordsize-64/lockf.c: File removed.
11101         * sysdeps/wordsize-64/lockf64.c: File removed.
11102         * sysdeps/wordsize-64/fseeko.c: File removed.
11103         * sysdeps/wordsize-64/fseeko64.c: File removed.
11104         * sysdeps/wordsize-64/ftello.c: File removed.
11105         * sysdeps/wordsize-64/ftello64.c: File removed.
11106         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11107         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11108         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11109         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11110         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11111         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11112         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11113         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11114         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11115         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11116         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11117         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11118         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11119         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11120
11121         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11122         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11123         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11124         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11125         [defined __arch64__ || defined __sparcv9]
11126         (__OFF_T_MATCHES_OFF64_T): New macro.
11127         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11128         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11129         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11130         (__OFF_T_MATCHES_OFF64_T): New macro.
11131
11132 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11133
11134         * stdlib/secure-getenv.c (__secure_getenv): Replace
11135         GLIBC_2_16 with GLIBC_2_17.
11136
11137 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11138
11139         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11140         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11141
11142 2012-08-03  David S. Miller  <davem@davemloft.net>
11143
11144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11145
11146 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11147
11148         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11149         Remove.
11150         (__ASSUME_CORRECT_SI_PID): Likewise.
11151         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11152         (__ASSUME_TMPFS_NAME): Likewise.
11153         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11154         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11155         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11156         (HAVE_AUX_SECURE): Make definition unconditional.
11157         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11158         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11159
11160 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11161
11162         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11163         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11164         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11165         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11166         __eloop_threshold instead of SYMLOOP_MAX.
11167
11168         * sysdeps/generic/eloop-threshold.h: New file.
11169         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11170         of MAXSYMLINKS.
11171         * elf/chroot_canon.c (chroot_canon): Likewise.
11172
11173 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11174
11175         [BZ #13717]
11176         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11177         Change to 2.6.0 everywhere.
11178         * sysdeps/unix/sysv/linux/configure: Regenerated.
11179         * sysdeps/unix/sysv/linux/kernel-features.h
11180         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11181         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11182         kernel versions.
11183         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11184         (__ASSUME_FUTEX_REQUEUE): Remove.
11185         (__ASSUME_STATFS64): Define unconditionally.
11186         (__ASSUME_AT_SECURE): Likewise.
11187         (__ASSUME_CORRECT_SI_PID): Likewise.
11188         (__ASSUME_TGKILL): Define without depending on kernel version for
11189         i386.
11190         (__ASSUME_UTIMES): Likewise.
11191         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11192         kernel version.
11193         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11194         (__ASSUME_TMPFS_NAME): Likewise.
11195         * README: Update reference to Linux kernel versions.
11196
11197 2012-08-02  Marek Polacek  <polacek@redhat.com>
11198
11199         [BZ# 14150]
11200         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11201         libc_cv_asm_type_prefix with %.
11202         * configure: Regenerated.
11203         * include/libc-symbols.h: Remove comment about
11204         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11205         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11206         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11207         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11208         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11209         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11210         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11211         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11212         * elf/tst-unique2mod1.c: Likewise.
11213         * elf/tst-unique1mod2.c: Likewise.
11214         * elf/tst-unique1mod1.c: Likewise.
11215         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11216         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11217         Replace ASM_TYPE_DIRECTIVE with .type.
11218         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11219         * sysdeps/i386/sysdep.h: Likewise.
11220         * sysdeps/x86_64/sysdep.h: Likewise.
11221         * sysdeps/sh/sysdep.h: Likewise.
11222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11223         Do not define ASM_TYPE_DIRECTIVE.
11224         * sysdeps/powerpc/sysdep.h: Likewise.
11225         * sysdeps/powerpc/powerpc32/sysdep.h:
11226         Replace ASM_TYPE_DIRECTIVE with .type.
11227         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11228         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11229         * sysdeps/i386/fpu/e_powf.S: Likewise.
11230         * sysdeps/i386/fpu/e_expl.S: Likewise.
11231         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11232         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11233         * sysdeps/i386/fpu/e_pow.S: Likewise.
11234         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11235         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11236         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11237         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11238         * sysdeps/i386/fpu/e_log2.S: Likewise.
11239         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11240         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11241         * sysdeps/i386/fpu/e_powl.S: Likewise.
11242         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11243         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11244         * sysdeps/i386/fpu/e_logl.S: Likewise.
11245         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11246         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11247         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11248         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11249         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11250         * sysdeps/i386/fpu/e_log.S: Likewise.
11251         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11252         * sysdeps/i386/fpu/e_logf.S: Likewise.
11253         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11254         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11255         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11256         * sysdeps/i386/fpu/e_log10.S: Likewise.
11257         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11258         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11259         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11260         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11261         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11262         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11263         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11264         * sysdeps/i386/i686/strtok.S: Likewise.
11265         * sysdeps/i386/i386-mcount.S: Likewise.
11266         * sysdeps/i386/strtok.S: Likewise.
11267         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11268         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11269         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11270         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11271         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11272         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11273         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11274         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11275         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11276         * sysdeps/x86_64/_mcount.S: Likewise.
11277         * sysdeps/x86_64/strtok.S: Likewise.
11278         * sysdeps/sh/_mcount.S: Likewise.
11279
11280 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11281
11282         * libio/iofopen.c: Include <fcntl.h>.
11283         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11284         (_IO_fopen64, fopen64): Define as aliases.
11285         * libio/iofopen64.c: Include <fcntl.h>.
11286         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11287         Conditionalize body on this.
11288         * sysdeps/wordsize-64/iofopen.c: File removed.
11289         * sysdeps/wordsize-64/iofopen64.c: File removed.
11290
11291 2012-08-01  Marek Polacek  <polacek@redhat.com>
11292
11293         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11294         Use dlfcn directly instead of a variable.
11295         (binfmt-subdir): Do not define.
11296         (dlfcn): Likewise.
11297
11298 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11299
11300         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11301         Remove all definitions.
11302         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11303         <kernel-features.h>.
11304         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11305         (miss_F_GETOWN_EX): Remove all definitions.
11306         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11307         macro definition.
11308         [!__ASSUME_FCNTL64]: Remove conditional code.
11309         [__ASSUME_FCNTL64]: Make code unconditional.
11310         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11311         <kernel-features.h>.
11312         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11313         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11314         (lockf64) [__NR_fcntl64]: Make code unconditional.
11315         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11316
11317         * sysdeps/unix/sysv/linux/kernel-features.h
11318         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11319         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11320         Make code unconditional.
11321         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11322         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11324         [__NR_vfork]: Make code unconditional.
11325         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11326         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11328         [__NR_vfork]: Make code unconditional.
11329         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11330         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11331
11332 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11333
11334         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11335         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11336
11337         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11338         Define mkstemp64 as an alias.
11339         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11340         Define mkstemps64 as an alias.
11341         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11342         Define mkostemp64 as an alias.
11343         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11344         Define mkostemps64 as an alias.
11345         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11346         Conditionalize body on this.
11347         * misc/mkostemp64.c: Likewise.
11348         * misc/mkostemps64.c: Likewise.
11349         * misc/mkstemps64.c: Likewise.
11350         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11351         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11352         * sysdeps/wordsize-64/mkostemp.c: File removed.
11353         * sysdeps/wordsize-64/mkstemp.c: File removed.
11354         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11355         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11356         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11357         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11358
11359         [BZ #14138]
11360         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11361         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11362         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11363         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11364
11365         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11366         compat_symbol macros from <shlib-compat.h> rather than the underlying
11367         default_symbol_version and symbol_version macros, so that DEFAULT
11368         lines in shlib-versions are respected.
11369         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11370
11371 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11372
11373         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11374         Declare with warn_unused_result.
11375         (setgid, setregid, setegid, setresgid): Likewise.
11376         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11377         Likewise.
11378         * WUR-REPORT: Remove set*id functions.
11379
11380 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11381
11382         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11383
11384 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11385
11386         [BZ #10191]
11387         * include/sys/socket.h (__libc_accept, __libc_accept4):
11388         Add attribute_hidden.
11389         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11390
11391         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11392         use of PTR_MANGLE.
11393         * inet/getnetgrent_r.c (setup): Likewise.
11394
11395         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11396
11397 2012-07-31  David S. Miller  <davem@davemloft.net>
11398
11399         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11400
11401 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11402
11403         [BZ #13629]
11404         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11405         value between 1.0 and 2.0 and smaller part has absolute value less
11406         than 1.0.
11407         * math/s_clog10.c (__clog10): Likewise.
11408         * math/s_clog10f.c (__clog10f): Likewise.
11409         * math/s_clog10l.c (__clog10l): Likewise.
11410         * math/s_clogf.c (__clogf): Likewise.
11411         * math/s_clogl.c (__clogl): Likewise.
11412         * math/libm-test.inc (clog_test): Add more tests.
11413         (clog10_test): Likewise.
11414         * sysdeps/i386/fpu/libm-test-ulps: Update.
11415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11416
11417 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11418
11419         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11420         Exit with zero in case no suitable GID is found, and write a
11421         message to standard error.
11422
11423 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11424
11425         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11426         rather than to 1.
11427         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11428         (MAXPATHLEN): Removed.
11429         (NOGROUP, NODEV): New macros.
11430         (setbit, clrbit, isset, isclr): New macros.
11431         (howmany, roundup, powerof2): New macros.
11432         (DEV_BSIZE): New macro.
11433
11434         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11435         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11436
11437         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11438         definition on [!__NO_LONG_DOUBLE_MATH].
11439
11440         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11441         PTR_MANGLE and PTR_DEMANGLE.
11442
11443         * socket/accept4.c (accept4): Rename to __libc_accept4.
11444         Define accept4 as a weak alias.
11445
11446         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11447         on [_DIRENT_HAVE_D_TYPE].
11448         * io/ftw.c (ftw_dir): Likewise.
11449
11450         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11451
11452         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11453
11454         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11455         Use the BSD numbers rather than the arbitrary ones we had.
11456         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11457         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11458         (SIGXCPU, SIGXFSZ): New macros.
11459         (_NSIG): Now 32.
11460
11461         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11462         initializer on [_LIBC_REENTRANT].
11463
11464         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11465         definitions inside [_POSIX_MAPPED_FILES].
11466
11467         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11468
11469         * dirent/opendir.c: Include <fcntl.h>.
11470
11471         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11472         (__libc_getspecific): Likewise.
11473         (__libc_key_create): Likewise.
11474
11475         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11476         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11477         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11478         (tmpfile64): Define as alias.
11479         * sysdeps/wordsize-64/tmpfile.c: File removed.
11480         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11481         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11482         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11483
11484         * stdio-common/vfscanf.c: Include <stdbool.h>.
11485         * nss/makedb.c: Likewise.
11486         * stdio-common/_i18n_number.h: Likewise.
11487         * argp/argp-help.c: Likewise.
11488         * posix/wordexp.c: Likewise.
11489         * sysdeps/posix/spawni.c: Likewise.
11490         * nss/nss_files/files-initgroups.c: Likewise.
11491         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11492         * nss/nss_files/files-initgroups.c: Likewise.
11493         * nss/nss_db/db-netgrp.c: Likewise.
11494         * nss/nss_db/db-initgroups.c: Likewise.
11495         * io/fchmodat.c: Include <sys/stat.h>.
11496
11497         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11498         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11499
11500         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11501         [HAVE_MMAP].
11502
11503         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11504         Add multiple inclusion protection.
11505
11506 2012-07-27  David S. Miller  <davem@davemloft.net>
11507
11508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11509
11510 2012-07-27  Gary Benson  <gbenson@redhat.com>
11511
11512         [BZ #14298]
11513         * elf/rtld.c: Include <stap-probe.h>.
11514         (dl_main): Added static probes "init_start" and "init_complete".
11515         * elf/dl-load.c: Include <stap-probe.h>.
11516         (lose): Take new parameter "nsid".
11517         Added static probe "map_failed".
11518         (_dl_map_object_from_fd): Pass namespace id to lose.
11519         Added static probe "map_start".
11520         (open_verify): Pass namespace id to lose.
11521         * elf/dl-open.c: Include <stap-probe.h>.
11522         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11523         and "reloc_complete".
11524         * elf/dl-close.c: Include <stap-probe.h>.
11525         (_dl_close_worker): Added static probes "unmap_start" and
11526         "unmap_complete".
11527         * elf/rtld-debugger-interface.txt: New file documenting the above.
11528
11529 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11530
11531         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11532         rather than a string variable.
11533         * sunrpc/rpc_main.c (h_output): Likewise.
11534         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11535
11536 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11537
11538         * inet/check_native.c: New file.
11539
11540 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11541
11542         [BZ #13629]
11543         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11544         if larger part has absolute value 1.0.
11545         * math/s_clog10.c (__clog10): Likewise.
11546         * math/s_clog10f.c (__clog10f): Likewise.
11547         * math/s_clog10l.c (__clog10l): Likewise.
11548         * math/s_clogf.c (__clogf): Likewise.
11549         * math/s_clogl.c (__clogl): Likewise.
11550         * math/libm-test.inc (clog_test): Add more tests.
11551         (clog10_test): Likewise.
11552         * sysdeps/i386/fpu/libm-test-ulps: Update.
11553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11554
11555         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11556         (pltexit): Likewise.
11557         (La_regs): Likewise.
11558         (La_retval): Likewise.
11559         (int_retval): Likewise.
11560         Update #error for removed macros to refer only to definitions in
11561         tst-audit.h.
11562         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11563         macro.
11564         (pltexit): Likewise.
11565         (La_regs): Likewise.
11566         (La_retval): Likewise.
11567         (int_retval): Likewise.
11568         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11569         macro.
11570         (pltexit): Likewise.
11571         (La_regs): Likewise.
11572         (La_retval): Likewise.
11573         (int_retval): Likewise.
11574         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11575         macro.
11576         (pltexit): Likewise.
11577         (La_regs): Likewise.
11578         (La_retval): Likewise.
11579         (int_retval): Likewise.
11580         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11581         macro.
11582         (pltexit): Likewise.
11583         (La_regs): Likewise.
11584         (La_retval): Likewise.
11585         (int_retval): Likewise.
11586         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11587         macro.
11588         (pltexit): Likewise.
11589         (La_regs): Likewise.
11590         (La_retval): Likewise.
11591         (int_retval): Likewise.
11592         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11593         macro.
11594         (pltexit): Likewise.
11595         (La_regs): Likewise.
11596         (La_retval): Likewise.
11597         (int_retval): Likewise.
11598         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11599         macro definitions in tst-audit.h.
11600         * sysdeps/i386/tst-audit.h: New file.
11601         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11602         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11603         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11604         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11605         * sysdeps/sh/tst-audit.h: Likewise.
11606         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11607         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11608         * sysdeps/x86_64/tst-audit.h: Likewise.
11609
11610 2012-07-26  Andreas Jaeger  <aj@suse.de>
11611
11612         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11613         ptrace.
11614
11615         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11616         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11617         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11618         PTRACE_O_MASK.
11619         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11620         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11621         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11622
11623         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11624         value.
11625
11626         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11627         _sigsys.
11628         (si_call_addr, si_syscall, si_arch): Define new macro.
11629         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11630         _sigsys.
11631         (si_call_addr, si_syscall, si_arch): Define new marcro.
11632         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11633         _sigsys.
11634         (si_call_addr, si_syscall, si_arch): Define new macro.
11635         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11636         _sigsys.
11637         (si_call_addr, si_syscall, si_arch): Define new macro.
11638
11639 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11640
11641         [BZ #13717]
11642         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11643         Change to 2.4.21 where previously 2.4.1.
11644         * sysdeps/unix/sysv/linux/configure: Regenerated.
11645         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11646         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11647         Linux kernel version.
11648         (__ASSUME_STD_AUXV): Remove.
11649         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11650         kernel version.
11651         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11652         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11653         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11654         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11655         (__ASSUME_NETLINK_SUPPORT): Likewise.
11656         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11657         (__no_netlink_support): Remove conditional definition.
11658         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11659         Remove.
11660         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11661         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11662         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11663         (if_nameindex_ioctl): Remove.
11664         (if_nameindex_netlink): Do not handle __no_netlink_support.
11665         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11666         code.
11667         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11668         Remove conditional code.
11669         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11670         code.
11671         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11672         unconditional.
11673         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11674         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11675         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11676         Remove.
11677         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11678         [!__ASSUME_STD_AUXV]: Remove conditional code.
11679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11680         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11681         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11683         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11684         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11685         code.
11686         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11688         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11689         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11690         conditional code.
11691         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11693         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11694         code.
11695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11696         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11697         conditional code.
11698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11699         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11700         code unconditional.
11701         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11702         conditional code.
11703         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11704         unconditional.
11705         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11706         conditional code.
11707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11708         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11709         unconditional.
11710         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11711         conditional code.
11712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11713         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11714         code unconditional.
11715         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11716         conditional code.
11717         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11718         unconditional.
11719         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11720         conditional code.
11721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11722         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11723         code unconditional.
11724         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11725         conditional code.
11726         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11727         unconditional.
11728         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11729         conditional code.
11730
11731 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11732
11733         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11734         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11735         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11736         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11737         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11738         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11739         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11740         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11741         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11742         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11743         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11744         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11745         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11746         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11747         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11748         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11749         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11750         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11751         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11752         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11753         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11754         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11755         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11756
11757 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11758
11759         * Versions.def: Add GLIBC_2.17.
11760         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11761         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11762         Introduce __libc_secure_getenv.
11763         * stdlib/Versions (2.17): Add secure_getenv
11764         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11765         * stdlib/secure-getenv.c: Rename __secure_getenv to
11766         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11767         symbol __secure_getenv for GLIBC_2.0.
11768         * stdlib/tst-secure-getenv.c: New.
11769         * stdlib/Makefile (tests): Add testcase.
11770         * manual/startup.texi (Environment Access): Document
11771         secure_getenv.
11772         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11773         __libc_secure_getenv.
11774         * inet/ruserpass.c (ruserpass): Likewise.
11775         * malloc/mtrace.c (mtrace): Likewise.
11776         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11777         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11778         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11779         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11780         HAVE_SECURE_GETENV.
11781         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11782         __secure_getenv to __libc_secure_getenv.
11783         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11785         Likewise.
11786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11787         Likewise.
11788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11789         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11790         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11791         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11795
11796 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11797
11798         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11799         (struct La_i86_retval): Likewise.
11800         (struct La_x86_64_regs): Likewise.
11801         (struct La_x86_64_retval): Likewise.
11802         (struct La_x32_regs): Likewise.
11803         (struct La_x32_retval): Likewise.
11804         (struct La_ppc32_regs): Likewise.
11805         (struct La_ppc32_retval): Likewise.
11806         (struct La_ppc64_regs): Likewise.
11807         (struct La_ppc64_retval): Likewise.
11808         (struct La_sh_regs): Likewise.
11809         (struct La_sh_retval): Likewise.
11810         (struct La_s390_32_regs): Likewise.
11811         (struct La_s390_32_retval): Likewise.
11812         (struct La_s390_64_regs): Likewise.
11813         (struct La_s390_64_retval): Likewise.
11814         (struct La_sparc32_regs): Likewise.
11815         (struct La_sparc32_retval): Likewise.
11816         (struct La_sparc64_regs): Likewise.
11817         (struct La_sparc64_retval): Likewise.
11818         (struct audit_ifaces): Remove architecture-specific pltenter and
11819         pltexit members.
11820         * sysdeps/i386/ldsodefs.h: New file.
11821         * sysdeps/powerpc/ldsodefs.h: Likewise.
11822         * sysdeps/s390/ldsodefs.h: Likewise.
11823         * sysdeps/sh/ldsodefs.h: Likewise.
11824         * sysdeps/sparc/ldsodefs.h: Likewise.
11825         * sysdeps/x86_64/ldsodefs.h: Likewise.
11826
11827 2012-07-25  Marek Polacek  <polacek@redhat.com>
11828
11829         [BZ #6808]
11830         * math/libm-test.inc (yn_test): Add another test.
11831         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11832         to ERANGE when the result is +-Inf.
11833         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11834         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11835         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11836         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11837
11838 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11839
11840         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11841         equal to 0.
11842         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11843         clock_t.
11844         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11845
11846 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11847
11848         * configure.in <sysdeps resolving>: Correct printing
11849         Implies_before.
11850         * configure: Regenerate.
11851
11852 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11853
11854         * math/w_ilogb.c: Include <limits.h>.
11855         * math/w_ilogbl.c: Likewise.
11856
11857 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11858
11859         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11860         va_copy.  Document allowing for unavailable va_copy only as
11861         pre-C99 compatibility.
11862         * manual/string.texi (Copying and Concatenation): Use va_copy
11863         instead of __va_copy in concat example.
11864
11865 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11866
11867         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11868         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11869         it if not null.
11870
11871         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11872         with O_NOLINK passed to __file_name_lookup.
11873
11874         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11875         with O_NOLINK passed to __file_name_lookup.
11876
11877         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11878         negative N or less than NGIDS.
11879
11880         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11881         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11882         enough.  Use memcpy instead of strncpy.
11883
11884 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11885
11886         * elf/Makefile (check-data): Remove.
11887         (localplt.data): New vpath directive.
11888         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11889         instead of $(check-data).
11890         * scripts/data/localplt-generic.data: Move to ...
11891         * sysdeps/generic/localplt.data: ... here.
11892         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11893         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11894         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11896         ... here.
11897         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11899         ... here.
11900         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11901         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11902         ... here.
11903         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11904         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11905         ... here.
11906         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11908         ... here.
11909         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11910         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11911         ... here.
11912
11913 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11914
11915         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11916         PPC32 and PPC64 files.
11917         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11918         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11919
11920 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11921
11922         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11923         __makecontext_ret to ...
11924         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11925         ... here and call exit if uc_link is NULL.  New file.
11926         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11927         __makecontext_ret.S.
11928         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11929         __makecontext_ret to ...
11930         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11931         ... here and call exit if uc_link is NULL.  New file.
11932         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11933         __makecontext_ret.S.
11934
11935 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11936
11937         * elf/elf.h (R_390_IRELATIVE): New definition.
11938         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11939         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11940         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11941         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11942         (elf_machine_lazy_rel): Likewise.
11943         * sysdeps/s390/dl-irel.h: New file.
11944         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11945         * sysdeps/s390/s390-64/memset.S: New asm code.
11946         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11947         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11948         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11949         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11950         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11951         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11952         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11953         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11954         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11955         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11956         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11957         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11958         * sysdeps/s390/s390-32/memset.S: New asm code.
11959         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11960
11961 2012-07-17  Marek Polacek  <polacek@redhat.com>
11962
11963         [BZ #14349]
11964         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11965         * sysdeps/s390/s390-64/configure.in: Likewise.
11966         * sysdeps/sparc/configure.in: Likewise.
11967         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11968         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11969         * sysdeps/i386/configure.in: Likewise.
11970         * sysdeps/x86_64/configure.in: Likewise.
11971         * sysdeps/sh/configure.in: Likewise.
11972         * sysdeps/s390/s390-32/configure: Regenerated.
11973         * sysdeps/s390/s390-64/configure: Likewise.
11974         * sysdeps/x86_64/configure: Likewise.
11975         * sysdeps/sh/configure: Likewise.
11976         * sysdeps/powerpc/powerpc64/configure: Likewise.
11977         * sysdeps/powerpc/powerpc32/configure: Likewise.
11978         * sysdeps/sparc/configure: Likwise.
11979         * sysdeps/i386/configure: Likewise.
11980
11981         * elf/dl-open.c: Comment fixes.
11982
11983 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11984
11985         * Makefile [CXX] (check-data): Remove.
11986         [CXX] (c++-types.data): New vpath directive.
11987         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11988         vpath.  Do not allow for C++ type data being missing.
11989         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11990         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11991         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11992         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11993         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11994         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11995         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11997         ... here.
11998         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12000         ... here.
12001         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12002         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12003         ... here.
12004         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12005         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12006         ... here.
12007         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12008         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12009         ... here.
12010         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12012         ... here.
12013         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12014         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12015         ... here.
12016         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12018
12019         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12020         definitions to architecture-specific files.
12021         (TLS_IE): Likewise.
12022         (TLS_LD): Likewise.
12023         (TLS_GD): Likewise.
12024         * sysdeps/i386/tls-macros.h: New file.
12025         * sysdeps/powerpc/tls-macros.h: Likewise.
12026         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12027         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12028         * sysdeps/sh/tls-macros.h: Likewise.
12029         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12030         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12031         * sysdeps/x86_64/tls-macros.h: Likewise.
12032
12033 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12034
12035         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12036         zero value for regular exit case.
12037
12038         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12039         (__start_context): Preserve zero value for regular exit case.
12040
12041 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12042             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12043
12044         * manual/setjmp.texi (setcontext): Clarify normal process
12045         termination when uc_link is the null pointer.
12046         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12047         exit call.
12048
12049 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12050
12051         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12052         preprocessor.  Test for each exception mask separately.
12053
12054 2012-07-16  Andreas Jaeger  <aj@suse.de>
12055
12056         * po/ru.po: Update from translation team.
12057
12058 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12059
12060         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12061         equal to 0.
12062         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12063         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12064         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12065         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12066         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12067
12068 2012-07-13  Andreas Jaeger  <aj@suse.de>
12069
12070         * po/fr.po: Update from translation team.
12071
12072 2012-07-12  Marek Polacek  <polacek@redhat.com>
12073
12074         [BZ #14173]
12075         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12076         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12077         loop condition.
12078
12079 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12080
12081         [BZ #13717]
12082         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12083         Change to 2.4.1 where previously 2.4.0.
12084         * sysdeps/unix/sysv/linux/configure: Regenerated.
12085         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12086         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12087         version.
12088         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12089         (__ASSUME_AT_CLKTCK): Remove.
12090         (__ASSUME_AT_PAGESIZE): Likewise.
12091         (__ASSUME_AT_XID): Likewise.
12092         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12093         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12094         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12095         unconditionally.
12096         (HAVE_AUX_PAGESIZE): Likewise.
12097         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12098         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12099         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12100
12101 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12102
12103         [BZ #14307]
12104         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12105         the temporary buffer used to invoke __gethostbyname2_r,
12106         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12107         host_data / struct gaih_addrtuple.
12108         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12109         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12110         header file nss/nsswitch.h.
12111         * nss/nsswitch.h (global scope): Add definition of implementation
12112         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12113         resolv/nss_dns/dns-host.c).
12114
12115 2012-07-11  Andreas Jaeger  <aj@suse.de>
12116
12117         * po/fr.po: Update from translation team.
12118
12119         * po/sv.po: Update from translation team
12120         * po/fr.po: Another update from translation team.
12121
12122 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12123
12124         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12125         for subnormals or multiply small sinh result by itself.
12126         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12127         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12128
12129 2012-07-11  David S. Miller  <davem@davemloft.net>
12130
12131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12132
12133 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12134
12135         [BZ #14347]
12136         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12137         (INTERNAL_MARK): Shift it here.
12138
12139 2012-07-10  Marek Polacek  <polacek@redhat.com>
12140
12141         [BZ #14151]
12142         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12143         libc_cv_asm_global_directive with .globl.
12144         * configure: Regenerated.
12145         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12146         with .globl.
12147         * sysdeps/i386/configure: Regenerated.
12148         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12149         with .globl.
12150         * sysdeps/x86_64/configure: Regenerated.
12151         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12152         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12153         * elf/tst-unique2mod2.c: Likewise.
12154         * elf/tst-unique2mod1.c: Likewise.
12155         * elf/tst-unique1mod2.c: Likewise.
12156         * elf/tst-unique1mod1.c: Likewise.
12157         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12158         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12159         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12160         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12161         * sysdeps/mach/sysdep.h: Likewise.
12162         * sysdeps/i386/sysdep.h: Likewise.
12163         * sysdeps/i386/i386-mcount.S: Likewise.
12164         * sysdeps/x86_64/_mcount.S: Likewise.
12165         * sysdeps/x86_64/sysdep.h: Likewise.
12166         * sysdeps/sh/_mcount.S: Likewise.
12167         * sysdeps/sh/sysdep.h: Likewise.
12168         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12169         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12170         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12171         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12172         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12173         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12174         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12175         * locale/localeinfo.h: Likewise.
12176         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12177         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12178
12179 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12180
12181         [BZ #14336]
12182         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12183         system".
12184         * manual/message.texi (The Uniforum approach): Likewise.
12185         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12186         (glibc iconv Implementation): Likewise.
12187
12188 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12189
12190         [BZ #14337]
12191         * math/s_clog.c (__clog): Avoid scaling a value down where that
12192         could result in underflow.
12193         * math/s_clog10.c (__clog10): Likewise.
12194         * math/s_clog10f.c (__clog10f): Likewise.
12195         * math/s_clog10l.c (__clog10l): Likewise.
12196         * math/s_clogf.c (__clogf): Likewise.
12197         * math/s_clogl.c (__clogl): Likewise.
12198         * math/libm-test.inc (clog_test): Add more tests.
12199         (clog10_test): Likewise.
12200         * sysdeps/i386/fpu/libm-test-ulps: Update.
12201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12202
12203 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12204
12205         [BZ #14283]
12206         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12207         by 7 not 8 to examine high bit of fractional part.
12208
12209         [BZ #14042]
12210         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12211         for call to __mcount_internal.
12212         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12213         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12214         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12215
12216 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12217
12218         [BZ #14154]
12219         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12220         approximation for values within 0x1p-13f of an odd multiple of
12221         pi/4.
12222         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12223         exception.  Add more tests.
12224         * sysdeps/i386/fpu/libm-test-ulps: Update.
12225
12226         [BZ #6778]
12227         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12228         inputs and return -1 for them.  Do not check for +Inf in case not
12229         reachable for +Inf.
12230         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12231         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12232         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12233         and return -1 for them.  Do not check for +Inf in case not
12234         reachable for +Inf.
12235         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12236         define.
12237         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12238         and return -1 for them.  Do not check for +Inf in case not
12239         reachable for +Inf.
12240         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12241         spurious underflow.
12242         * sysdeps/i386/fpu/libm-test-ulps: Update.
12243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12244
12245 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12246
12247         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12248
12249 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12250
12251         [BZ #14157]
12252         [BZ #14331]
12253         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12254         could result in spurious underflow.  Scale down values above
12255         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12256         * math/s_csqrtf.c (__csqrtf): Likewise.
12257         * math/s_csqrtl.c (__csqrtl): Likewise.
12258         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12259         spurious underflow.
12260         * sysdeps/i386/fpu/libm-test-ulps: Update.
12261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12262
12263 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12264
12265         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12266         xopen-msg.sed.
12267         * catgets/xopen-msg.awk: New file.
12268         * catgets/xopen-msg.sed: Removed.
12269
12270         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12271         po2text.sed.
12272         * intl/po2test.awk: New file.
12273         * intl/po2test.sed: Removed.
12274
12275 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12276
12277         [BZ #14328]
12278         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12279         or multiply small sinh result by itself.
12280         * math/s_ctanf.c (__ctanf): Likewise.
12281         * math/s_ctanh.c (__ctanh): Likewise.
12282         * math/s_ctanhf.c (__ctanhf): Likewise.
12283         * math/s_ctanhl.c (__ctanhl): Likewise.
12284         * math/s_ctanl.c (__ctanl): Likewise.
12285         * math/libm-test.inc (ctan_test_tonearest): New function.
12286         (ctan_test_towardzero): Likewise.
12287         (ctan_test_downward): Likewise.
12288         (ctan_test_upward): Likewise.
12289         (ctanh_test_tonearest): Likewise.
12290         (ctanh_test_towardzero): Likewise.
12291         (ctanh_test_downward): Likewise.
12292         (ctanh_test_upward): Likewise.
12293         (main): Call these new functions.
12294         * sysdeps/i386/fpu/libm-test-ulps: Update.
12295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12296
12297 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12298
12299         * .gitignore: Delete /ports entry.
12300
12301 2012-07-03  Andreas Jaeger  <aj@suse.de>
12302
12303         * po/bg.po: Update from translation team.
12304         * po/cs.po: Likewise.
12305         * po/de.po: Likewise.
12306         * po/hr.po: Likewise.
12307         * po/nl.pl: Likewise.
12308         * po/pl.po: Likewise.
12309         * po/vi.po: Likewise.
12310
12311 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * Makeconfig [!+link] (+link-before-libc): New variable.
12314         [!+link] (+link-after-libc): Likewise.
12315         [!+link] (+link-tests): Likewise.
12316         [!+link] (+link): Define in terms of $(+link-before-libc) and
12317         $(+link-after-libc).
12318         [!+link-static] (+link-static-before-libc): New variable.
12319         [!+link-static] (+link-static-after-libc): Likewise.
12320         [!+link-static] (+link-static-tests): Likewise.
12321         [!+link-static] (+link-static): Define in terms of
12322         $(+link-static-before-libc) and $(+link-static-after-libc).
12323         [build-shared] (link-libc-before-gnulib): New variable.
12324         [build-shared] (link-libc-tests): Likewise.
12325         [build-shared] (link-libc): Define in terms of
12326         $(link-libc-before-gnulib).
12327         [!build-shared] (link-libc-tests): New variable.
12328         (link-libc-static-tests): New variable.
12329         [!gnulib] (gnulib-arch): New variable.
12330         [!gnulib] (gnulib-tests): Likewise.
12331         [!gnulib] (static-gnulib-arch): Likewise.
12332         [!gnulib] (static-gnulib-tests): Likewise.
12333         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12334         Define with "=" instead of ":=".
12335         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12336         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12337         * Rules (binaries-all-notests): New variable.
12338         (binaries-all-tests): Likewise.
12339         (binaries-static-notests): Likewise.
12340         (binaries-static-tests): Likewise.
12341         (binaries-all): Define using $(binaries-all-notests) and
12342         $(binaries-all-tests).
12343         (binaries-static): Define using $(binaries-static-notests) and
12344         $(binaries-static-tests).
12345         (binaries-shared-tests): New variable.
12346         (binaries-shared-notests): Likewise.
12347         (binaries-shared): Remove variable.
12348         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12349         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12350         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12351         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12352         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12353         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12354         * elf/Makefile (sln-modules): New variable.
12355         (extra-objs): Add $(sln-modules:=.o).
12356         (ldconfig-modules): Add static-stubs.
12357         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12358         * elf/static-stubs.c: New file.
12359
12360         [BZ #14283]
12361         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12362         by 7 not 8 to examine high bit of fractional part.  Use volatile
12363         variables when splitting into final array of floats if
12364         __FLT_EVAL_METHOD__ != 0.
12365         * math/libm-test.inc (cos_test): Add another test.
12366         (sin_test): Likewise.
12367         * sysdeps/i386/fpu/libm-test-ulps: Update.
12368
12369         [BZ #14273]
12370         * math/libm-test.inc (cosh_test): Add more tests.
12371
12372         * version.h (RELEASE): Set to "development".
12373         (VERSION): Set to "2.16.90".
12374
12375 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12376
12377         * NEWS: Update copyright. Remove last-updated date.
12378         Mention math library bug fixes and timezone data changes.
12379         * README: Mention GNU/Hurd, x32, and HPPA support status.
12380
12381 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12382
12383         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12384
12385 2012-06-27  Andreas Jaeger  <aj@suse.de>
12386
12387         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12388
12389 2012-06-25  Andreas Jaeger  <aj@suse.de>
12390
12391         * sysdeps/s390/fpu/libm-test-ulps: Update.
12392
12393 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12394             Thomas Schwinge  <thomas@codesourcery.com>
12395
12396         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12397         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12398         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12399         fanotify_mark.
12400
12401 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12402
12403         * sysdeps/mach/start.c: Remove file.
12404         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12405         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12406         * sysdeps/sh/init-first.c: Likewise.
12407
12408         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12409         registers for frame unwinding purposes, add CFI directives.
12410         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12411         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12412         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12413         Likewise.
12414
12415         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12416         __fortify_fail returning.
12417         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12418
12419         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12420         sysdeps/sh/____longjmp_chk.S.
12421         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12422         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12423         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12424         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12425
12426         * sysdeps/sh/abort-instr.h: New file.
12427         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12428         process in case exit returns.
12429
12430         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12431         initialize the GOT register before use.
12432
12433         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12434         calculation of ARGC > 4.
12435
12436         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12437         meaningful names to some local labels.
12438
12439 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12440             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12441
12442         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12443         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12444         (__arch_compare_and_exchange_val_16_acq): Likewise.
12445         (__arch_compare_and_exchange_val_32_acq): Likewise.
12446         (atomic_exchange_and_add): Fix gUSA sequence.
12447         (atomic_add): Likewise.
12448         (atomic_add_negative): Likewise.
12449         (atomic_add_zero): Likewise.
12450         (atomic_bit_test_set): Likewise.
12451
12452 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12453
12454         [BZ #13579]
12455         * include/link.h (struct link_map): Add l_free_initfini.
12456         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12457         l_initfini.
12458         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12459         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12460         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12461         set.
12462
12463 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12464
12465         * configure.in: Use AC_LANG_SOURCE.
12466         * configure: Regenerate.
12467
12468 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12469
12470         * configure.in (libc_cv_localstatedir): New substituted variable.
12471         * configure: Regenerated.
12472         * config.make.in (localstatedir): New variable, substituted from
12473         libc_cv_localstatedir.
12474         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12475         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12476         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12477         * sysdeps/gnu/configure: Regenerated.
12478
12479 2012-06-21  Jeff Law  <law@redhat.com>
12480
12481         [BZ #14277]
12482         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12483         free.  Simplify list management for _LIBC case.
12484
12485 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12486
12487         [BZ #14273]
12488         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12489         Clear sign bit of 64-bit integer value before comparing against
12490         overflow value.
12491
12492         * sysdeps/mach/configure: Regenerated.
12493
12494 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12495
12496         [BZ #14278]
12497         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12498
12499 2012-06-21  Jeff Law  <law@redhat.com>
12500
12501         [BZ #13882]
12502         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12503         uint16_t for elements in the "seen" array to avoid char overflows.
12504         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12505         * elf/dl-open.c (dl_open_worker): Likewise.
12506
12507 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12508
12509         * scripts/list-sources.sh: Scan PORTS for translations.
12510         * po/libc.pot: Regenerated.
12511
12512 2012-06-21  Andreas Jaeger  <aj@suse.de>
12513
12514         [BZ #12194]
12515         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12516         warning.
12517         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12518         * bits/byteswap-16.h (__bswap_16): Likewise.
12519         * bits/byteswap.h (__bswap_constant_16): Likewise.
12520
12521 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12522
12523         [BZ #14117]
12524         * sysdeps/i386/fpu_control.h: Removed.
12525         * sysdeps/x86_64/fpu_control.h: Moved to ...
12526         * sysdeps/x86/fpu_control.h: Here.
12527
12528         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12529         (_FPU_SETCW): Likewise.
12530
12531 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12532
12533         [BZ #14117]
12534         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12535         * sysdeps/x86/fpu/bits/mathinline.h: This.
12536         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12537
12538         [BZ #14050]
12539         [BZ #14117]
12540         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12541         functions if __x86_64__ is defined.
12542
12543 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12544
12545         * string/endian.h: Add !__ASSEMBLER__ condition for including
12546         conversion interfaces.
12547
12548 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12549
12550         [BZ #14241]
12551         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12552         of ABS(x) in calculating zero to negative powers other than odd
12553         integers.
12554         * math/libm-test.inc (pow_test): Add more tests.
12555
12556 2012-06-15  Andreas Jaeger  <aj@suse.de>
12557
12558         * manual/contrib.texi (Contributors): Update entry of Liubov
12559         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12560         Machado Filho.
12561
12562 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12563
12564         * string/string.h: Add __wur to GNU version of strerror_r.
12565
12566 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12567
12568         [BZ #14229]
12569         * string/Makefile (tests): Add tst-strtok_r.
12570         * string/tst-strtok_r.c: New file.
12571         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12572         RAX_LP/RDX_LP on SAVE_PTR.
12573
12574 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12575
12576         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12577
12578 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12579
12580         * libm_test.inc (csqrt_test): Allow more spurious underflow
12581         exceptions.
12582         (j0_test): Likewise.
12583         (j1_test): Likewise.
12584         (y0_test): Likewise.
12585         (y1_test): Likewise.
12586
12587 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12588
12589         * po/Makefile (libc.pot): Use UTF-8 charset.
12590
12591 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12592
12593         [BZ #14210]
12594         Suppress sign-conversion warning from FD_SET.
12595         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12596         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12597         not unsigned long int.
12598         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12599
12600 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12601
12602         [BZ #14050]
12603         [BZ #14117]
12604         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12605         __extern_always_inline instead of __extern_inline.
12606         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12607         (__signbit): Likewise.
12608         (__signbitl): Support C++ namespace.
12609         (lrintf): New inline function.
12610         (lrint): Likewise.
12611         (llrintf): Likewise.
12612         (llrint): Likewise.
12613         (fmaxf): Likewise.
12614         (fmax): Likewise.
12615         (fminf): Likewise.
12616         (fmin): Likewise.
12617         (rint): Likewise.
12618         (rintf): Likewise.
12619         (ceil): Likewise.
12620         (ceilf): Likewise.
12621         (floor): Likewise.
12622         (floorf): Likewise.
12623         (nearbyint): Likewise.
12624         (nearbyintf): Likewise.
12625
12626 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12627
12628         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12629         non-default versions.
12630
12631 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12632
12633         [BZ #14218]
12634         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12635
12636 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12637
12638         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12639         (FE_UPWARD, FE_DOWNWARD): Don't define.
12640         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12641         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12642
12643         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12644         reading it.
12645         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12646         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12647
12648 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12649
12650         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12651         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12652         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12653         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12654
12655 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12656
12657         [BZ #14117]
12658         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12659         * sysdeps/i386/fpu/Implies: New file.
12660         * sysdeps/x86_64/fpu/Implies: Likewise.
12661         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12662         * sysdeps/x86/fpu/bits/fenv.h: This.
12663
12664         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12665         __SSE_MATH__.
12666
12667 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12668
12669         [BZ #14134]
12670         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12671         character 0xffff that matches the last element of the
12672         conversion table.
12673
12674 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12675
12676         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12677         fmodl commit.
12678
12679 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12680
12681         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12682         values higher than 25.6283.
12683
12684 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12685
12686         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12687         subnormal exponent extraction and add some __builtin_expect.
12688         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12689         Fix for subnormal mantissa calculation.
12690
12691 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12692
12693         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12694         cpu2 is -1 and errno is not ENOSYS.
12695
12696 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12697
12698         [BZ #14117]
12699         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12700         * sysdeps/x86/bits/string.h: This.
12701         * sysdeps/x86_64/bits/string.h: Removed.
12702
12703         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12704         if not compiling for x86-64, but compiling for >= i486.
12705
12706         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12707         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12708
12709         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12710         New macro from Linux kernel 3.4.0.
12711         (FP_XSTATE_MAGIC2): Likewise.
12712         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12713         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12714         (struct _fpx_sw_bytes): New struct.
12715         (struct _xsave_hdr): Likewise.
12716         (struct _ymmh_state): Likewise.
12717         (struct _xstate): Likewise.
12718
12719         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12720         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12721         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12722         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12723         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12724         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12725
12726         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12727         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12728         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12729         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12730         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12731         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12732
12733 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12734
12735         [BZ #13743]
12736         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12737         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12738         (sysdep_headers): Include sys/platform/ppc.h.
12739         * sysdeps/powerpc/test-gettimebase.c: Test for
12740         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12741         * manual/Makefile (appendices): Include platform.texi.
12742         * manual/contrib.texi (Contributors): Update @node pointers.
12743         * manual/maint.texi (Maintenance): Likewise.
12744         (Platform): New node.
12745         * manual/platform.texi: New file.  Document the new features.
12746
12747 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12748             Jakub Jelinek  <jakub@redhat.com>
12749
12750         [BZ #14188]
12751         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12752         where __builtin_expect is unavailable.
12753
12754 2012-06-03  David S. Miller  <davem@davemloft.net>
12755
12756         * stdlib/longlong.h: Updated from GCC.
12757
12758 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12759
12760         [BZ #14042]
12761         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12762         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12763         __mcount_internal.
12764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12765         (GLIBC_2.16): Likewise.
12766
12767 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12768
12769         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12770
12771 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12772
12773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12774         (default-abi): New variable.
12775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12776         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12777         variable.
12778         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12779         Likewise.
12780         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12781         Likewise.
12782         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12783         Likewise.
12784
12785         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12786         definition.  Document in comment.
12787
12788 2012-06-01  David S. Miller  <davem@davemloft.net>
12789
12790         * stdlib/longlong.h: Updated from GCC.
12791
12792 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12793
12794         [BZ #14117]
12795         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12796         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12797         sys/debugreg.h sys/io.h here.
12798         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12799         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12800         sys/io.h.
12801         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12802         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12803         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12804         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12805         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12806         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12807
12808         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12809         Define only if __x86_64__ is defined.
12810
12811 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12812
12813         [BZ #14048]
12814         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12815         Use int64_t for variable i.
12816         * math/libm-test.inc (fmod_test): Add more tests.
12817
12818         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12819         z computation is not scheduled after fetestexcept.
12820         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12821         Use math_force_eval instead of asm to ensure calculation scheduled
12822         before exception test.
12823         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12824         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12825
12826 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12827
12828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12829         computation is not scheduled after fetestexcept.
12830
12831 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12832
12833         [BZ #14117]
12834         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12835         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12836
12837 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12838
12839         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12840         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12841
12842 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         [BZ #14117]
12845         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12846         <bits/wordsize.h>.
12847         (__WCHAR_MIN): Support __WORDSIZE == 64.
12848         (__WCHAR_MAX): Likewise.
12849
12850         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12851         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12852
12853         [BZ #14183]
12854         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12855         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12856
12857         [BZ #14117]
12858         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12859         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12860
12861         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12862         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12863
12864         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12865         Defined to 1 if __x86_64__ isn't defined.
12866         (_STAT_VER_LINUX_OLD): New.
12867         (st_atime): Remove duplicate.
12868         (st_mtime): Likewise.
12869         (st_ctime): Likewise.
12870
12871 2012-05-31  David S. Miller  <davem@davemloft.net>
12872
12873         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12874         entries.
12875
12876 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12877
12878         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12879         gen-libm-test.pl.
12880
12881         [BZ #14132]
12882         * elf/dl-reloc.c: Include <_itoa.h>.
12883         (_dl_reloc_bad_type): Remove use of INTUSE.
12884         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12885         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12886         * stdio-common/psiginfo.c (psiginfo): Likewise.
12887         * stdio-common/psignal.c (psignal): Likewise.
12888         * string/strsignal.c (strsignal): Likewise.
12889         * include/signal.h (_sys_siglist): Declare hidden proto.
12890         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12891         INTVARDEF with libc_hidden_data_def.
12892         * stdio-common/itoa-udigits.c: Likewise.
12893         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12894         (_itoa_lower_digits_internal): Remove declaration.
12895         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12896         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12897         (_sys_sigabbrev_internal): Remove aliases.
12898         (_sys_siglist): Define hidden alias.
12899
12900 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12901
12902         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12903         bits/sysctl.h.
12904
12905 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12906
12907         [BZ #14117]
12908         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12909         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12910
12911         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12912         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12913         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12914         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12915         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12916         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12917
12918         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12919         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12920         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12921
12922         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12923         with __addr.
12924         (insw): Likewise.
12925         (insl): Likewise.
12926         (outsb): Likewise.
12927         (outsw): Likewise.
12928         (outsl): Likewise.
12929
12930         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12931         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12932         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12933
12934         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12935         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12936         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12937         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12938         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12939         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12940
12941         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12942         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12943
12944         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12945         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12946
12947         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12948         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12949         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12950
12951         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12952         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12953         to ...
12954         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12955
12956         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12957         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12958         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12959
12960         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12961         for x86-64.
12962         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12963
12964 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12965
12966         * math/math.h (M_El): Use two more decimal places.
12967         (M_LOG2El): Likewise.
12968         (M_LOG10El): Likewise.
12969         (M_LN2l): Likewise.
12970         (M_LN10l): Likewise.
12971         (M_PIl): Likewise.
12972         (M_PI_2l): Likewise.
12973         (M_PI_4l): Likewise.
12974         (M_1_PIl): Likewise.
12975         (M_2_PIl): Likewise.
12976         (M_2_SQRTPIl): Likewise.
12977         (M_SQRT2l): Likewise.
12978         (M_SQRT1_2l): Likewise.
12979
12980 2012-05-31  David S. Miller  <davem@davemloft.net>
12981
12982         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12983         values between float registers.
12984         * sysdeps/sparc/sparc64/memset.S: Likewise.
12985         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12986
12987 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12988
12989         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12990         -D_FORTIFY_SOURCE=1.
12991         (CPPFLAGS-tst-longjmp_chk.c): Define.
12992         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12993         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12994         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12995         CFLAGS-tst-wchar-h.c.
12996
12997 2012-05-31  Marek Polacek  <polacek@redhat.com>
12998
12999         [BZ #14132]
13000         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13001         __endmntent_internal): Remove declaration.
13002         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13003         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13004         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13005
13006 2012-05-30  David S. Miller  <davem@davemloft.net>
13007
13008         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13009         (___Q_simulate_exceptions): Use real FP ops rather than writing
13010         into the %fsr.
13011         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13012         Likewise.
13013
13014 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13015
13016         [BZ #14117]
13017         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13018         * sysdeps/x86/bits/xtitypes.h: This.
13019
13020         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13021         * sysdeps/x86/bits/wordsize.h: This.
13022
13023         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13024         * sysdeps/x86/bits/huge_vall.h: This.
13025
13026         * sysdeps/i386/bits/select.h: Removed.
13027         * sysdeps/x86_64/bits/select.h: Renamed to ...
13028         * sysdeps/x86/bits/select.h: This.
13029
13030         * sysdeps/i386/bits/setjmp.h: Removed.
13031         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13032         * sysdeps/x86/bits/setjmp.h: This.
13033
13034         * sysdeps/i386/bits/mathdef.h: Removed.
13035         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13036         * sysdeps/x86/bits/mathdef.h: This.
13037
13038 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13039
13040         [BZ #14132]
13041         * include/sys/socket.h (__connect_internal)
13042         (__libc_sa_len_internal): Remove declaration.
13043         (__connect, __libc_sa_len): Declare hidden_proto.
13044         (SA_LEN): Remove use of INTUSE.
13045         * socket/connect.c: Add libc_hidden_def.
13046         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13047         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13048         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13049         alias.
13050         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13051         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13052         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13053         of adding _internal alias.
13054
13055 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13056
13057         [BZ #14117]
13058         * sysdeps/i386/bits/link.h: Removed.
13059         * sysdeps/i386/bits/linkmap.h: Likewise.
13060         * sysdeps/x86_64/bits/link.h: Renamed to ...
13061         * sysdeps/x86/bits/link.h: This.
13062         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13063         * sysdeps/x86/bits/linkmap.h: This.
13064
13065         * sysdeps/i386/bits/endian.h: Removed.
13066         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13067         * sysdeps/x86/bits/endian.h: This.
13068
13069         * sysdeps/i386/bits/byteswap.h: Removed.
13070         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13071         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13072         * sysdeps/x86/bits/byteswap.h: This.
13073         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13074         * sysdeps/x86/bits/byteswap-16.h: This.
13075         * sysdeps/i386/Implies: Add x86.
13076         * sysdeps/x86_64/Implies: Likewise.
13077
13078 2012-05-30  David S. Miller  <davem@davemloft.net>
13079
13080         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13081         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13082         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13083         (FP_TRAPPING_EXCEPTIONS): Define.
13084         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13085         (FP_TRAPPING_EXCEPTIONS): Define.
13086         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13087         subnormals only when inexact has been signalled or underflow
13088         exceptions are enabled.
13089         (_FP_PACK_CANONICAL): Likewise.
13090
13091 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13092
13093         [BZ #14183]
13094         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13095         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13096
13097 2012-05-30  Richard Henderson  <rth@twiddle.net>
13098
13099         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13100         with #ifndef NOT_IN_libc.
13101
13102         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13103         marked to avoid plt entry.
13104
13105 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13106
13107         [BZ #14112]
13108         * Makeconfig (default-abi): New macro.
13109         (abi-includes): Likewise.
13110         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13111         $(abi-$(default-abi)-lib-soname) for soname if defined.
13112         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13113         abi-variants.
13114         * Makefile (installed-stubs): Likewise.
13115         * include/stubs-biarch.h: Removed.
13116         * scripts/lib-names.awk: Only handle one library at a time.
13117         * scripts/soversions.awk: Remove WORDSIZE support.
13118         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13119         entries.
13120         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13121         Removed.
13122         (syscall-list-default-condition): Likewise.
13123         (syscall-list-default-condition): Likewise.
13124         (syscall-list-includes): Likewise.
13125         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13126         syscall-list-* with abi-*.  Handle undefined abi-variants.
13127         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13128         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13129         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13130         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13131         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13132         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13133         Removed.
13134         (syscall-list-32-options): Likewise.
13135         (syscall-list-32-condition): Likewise.
13136         (syscall-list-64-options): Likewise.
13137         (syscall-list-64-condition): Likewise.
13138         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13139         macro.
13140         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13141         Renamed to ...
13142         (abi-*): This.
13143         (abi-64-ld-soname): New macro.
13144         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13145         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13146         Renamed to ...
13147         (abi-*): This.
13148         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13149         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13150
13151 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13152
13153         * sysdeps/unix/sysv/linux/kernel-features.h
13154         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13155         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13156         include <kernel-features.h>.
13157         [!__NR_ftruncate64]: Remove conditional code.
13158         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13159         [__NR_ftruncate64]: Make code unconditional.
13160         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13161         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13162         include <kernel-features.h>.
13163         [!__NR_ftruncate64]: Remove conditional code.
13164         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13165         [__NR_ftruncate64]: Make code unconditional.
13166         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13168         include <kernel-features.h>.
13169         [!__NR_ftruncate64]: Remove conditional code.
13170         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13171         [__NR_ftruncate64]: Make code unconditional.
13172         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13174         include <kernel-features.h>.
13175         [!__NR_ftruncate64]: Remove conditional code.
13176         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13177         [__NR_ftruncate64]: Make code unconditional.
13178         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13179
13180         * configure.in (libc_cv_fpie): Weaken to a compile test using
13181         LIBC_TRY_CC_OPTION.
13182         * configure: Regenerated.
13183
13184 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13185
13186         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13190         Refreshed.
13191         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13192         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13193         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13194         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13195         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13196         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13197         Refreshed.
13198
13199 2012-05-27  David S. Miller  <davem@davemloft.net>
13200
13201         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13202         (___Q_zero): New.
13203         (__Q_simulate_exceptions): Return void.  Change to simulate
13204         exceptions by writing into the %fsr.
13205         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13206         (__Qp_handle_exceptions): Likewise.
13207         (numbers): Delete.
13208         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13209         __Qp_handle_exceptions.
13210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13211         __Qp_handle_exceptions.
13212         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13213         as unused and give dummy FP_RND_NEAREST initializer.
13214         (FP_INHIBIT_RESULTS): Define.
13215         (___Q_simulate_exceptions): Update declaration.
13216         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13217         formatting.
13218         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13219         as unused and give dummy FP_RND_NEAREST initializer.
13220         (__Qp_handle_exceptions): Update declaration.
13221         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13222         formatting.
13223
13224 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13225
13226         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13227         the temporary FPU control word.
13228         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13229         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13230         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13231         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13232         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13233         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13234         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13235         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13236         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13237         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13238         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13239
13240 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13241
13242         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13243         fields.
13244
13245 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13246
13247         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13248         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13249         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13250         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13251         Likewise.
13252         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13253         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13254         Likewise.
13255
13256 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13257
13258         * po/h.po: Update from translation team.
13259
13260 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13261
13262         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13263
13264         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13265         handling of denormals.
13266         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13267         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13268         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13269         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13270         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13271         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13272         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13273         Likewise.
13274
13275 2012-05-26  Marek Polacek  <polacek@redhat.com>
13276
13277         [BZ #14152]
13278         * math/libm-test.inc (fma_test): Don't always expect underflow
13279         exception.
13280
13281 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13282
13283         [BZ #12416]
13284         * elf/tst-execstack.c: Include stackinfo.h.
13285         (do_test): Adjust test case to ensure that pthread_getattr_np
13286         behaviour remains the same after marking stack executable.
13287
13288 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13289
13290         * sysdeps/unix/sysv/linux/kernel-features.h
13291         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13292         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13293         kernel-features.h.
13294         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13295         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13296         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13297         kernel-features.h.
13298         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13299         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13300
13301 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13302
13303         * configure.in: Define the default includes to being none.
13304         * configure: Regenerated.
13305
13306 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13307
13308         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13309         * sysdeps/x86_64/setjmp.S: Likewise.
13310         * sysdeps/i386/bsd-setjmp.S: Likewise.
13311         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13312         * sysdeps/i386/setjmp.S: Likewise.
13313         * sysdeps/i386/__longjmp.S: Likewise.
13314         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13315         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13316
13317         * include/stap-probe.h: New file.
13318         * configure.in: Handle --enable-systemtap.
13319         * configure: Regenerated.
13320         * config.h.in (USE_STAP_PROBE): New #undef.
13321         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13322         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13323         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13324
13325 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13326
13327         [BZ #13717]
13328         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13329         to 2.4.0 where earlier.
13330         * sysdeps/unix/sysv/linux/configure: Regenerated.
13331         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13332         <kernel-features.h>.
13333         [__ASSUME_32BITUIDS]: Make code unconditional.
13334         [!__ASSUME_32BITUIDS]: Remove conditional code.
13335         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13336         <kernel-features.h>.
13337         [__ASSUME_32BITUIDS]: Make code unconditional.
13338         [!__ASSUME_32BITUIDS]: Remove conditional code.
13339         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13340         [__ASSUME_32BITUIDS]: Make code unconditional.
13341         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13342         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13343         <kernel-features.h>.
13344         [__ASSUME_32BITUIDS]: Make code unconditional.
13345         [!__ASSUME_32BITUIDS]: Remove conditional code.
13346         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13347         <kernel-features.h>.
13348         [__ASSUME_32BITUIDS]: Make code unconditional.
13349         [!__ASSUME_32BITUIDS]: Remove conditional code.
13350         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13351         <kernel-features.h>.
13352         [__ASSUME_32BITUIDS]: Make code unconditional.
13353         [!__ASSUME_32BITUIDS]: Remove conditional code.
13354         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13355         <kernel-features.h>.
13356         [__ASSUME_32BITUIDS]: Make code unconditional.
13357         [!__ASSUME_32BITUIDS]: Remove conditional code.
13358         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13359         <kernel-features.h>.
13360         [__ASSUME_32BITUIDS]: Make code unconditional.
13361         [!__ASSUME_32BITUIDS]: Remove conditional code.
13362         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13363         <kernel-features.h>.
13364         [__ASSUME_32BITUIDS]: Make code unconditional.
13365         [!__ASSUME_32BITUIDS]: Remove conditional code.
13366         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13367         <kernel-features.h>.
13368         [__ASSUME_32BITUIDS]: Make code unconditional.
13369         [!__ASSUME_32BITUIDS]: Remove conditional code.
13370         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13371         <kernel-features.h>.
13372         [__ASSUME_32BITUIDS]: Make code unconditional.
13373         [!__ASSUME_32BITUIDS]: Remove conditional code.
13374         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13375         <kernel-features.h>.
13376         [__ASSUME_32BITUIDS]: Make code unconditional.
13377         [!__ASSUME_32BITUIDS]: Remove conditional code.
13378         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13379         <kernel-features.h>.
13380         [__ASSUME_32BITUIDS]: Make code unconditional.
13381         [!__ASSUME_32BITUIDS]: Remove conditional code.
13382         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13383         <kernel-features.h>.
13384         [__NR_setresgid] (__setresgid): Do not declare.
13385         [__ASSUME_32BITUIDS]: Make code unconditional.
13386         [!__ASSUME_32BITUIDS]: Remove conditional code.
13387         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13388         <kernel-features.h>.
13389         [__NR_setresuid] (__setresuid): Do not declare.
13390         [__ASSUME_32BITUIDS]: Make code unconditional.
13391         [!__ASSUME_32BITUIDS]: Remove conditional code.
13392         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13393         <kernel-features.h>.
13394         [__ASSUME_32BITUIDS]: Make code unconditional.
13395         [!__ASSUME_32BITUIDS]: Remove conditional code.
13396         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13397         <kernel-features.h>.
13398         [__ASSUME_32BITUIDS]: Make code unconditional.
13399         [!__ASSUME_32BITUIDS]: Remove conditional code.
13400         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13401         <kernel-features.h>.
13402         [__ASSUME_32BITUIDS]: Make code unconditional.
13403         [!__ASSUME_32BITUIDS]: Remove conditional code.
13404         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13405         <kernel-features.h>.
13406         [__ASSUME_32BITUIDS]: Make code unconditional.
13407         [!__ASSUME_32BITUIDS]: Remove conditional code.
13408         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13409         <kernel-features.h>.
13410         [__ASSUME_32BITUIDS]: Make code unconditional.
13411         [!__ASSUME_32BITUIDS]: Remove conditional code.
13412         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13413         <kernel-features.h>.
13414         [__ASSUME_32BITUIDS]: Make code unconditional.
13415         [!__ASSUME_32BITUIDS]: Remove conditional code.
13416         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13417         <kernel-features.h>.
13418         [__ASSUME_32BITUIDS]: Make code unconditional.
13419         [!__ASSUME_32BITUIDS]: Remove conditional code.
13420         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13421         <kernel-features.h>.
13422         [__ASSUME_32BITUIDS]: Make code unconditional.
13423         [!__ASSUME_32BITUIDS]: Remove conditional code.
13424         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13425         <kernel-features.h>.
13426         [__ASSUME_32BITUIDS]: Make code unconditional.
13427         [!__ASSUME_32BITUIDS]: Remove conditional code.
13428         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13429         <kernel-features.h>.
13430         [__ASSUME_32BITUIDS]: Make code unconditional.
13431         [!__ASSUME_32BITUIDS]: Remove conditional code.
13432         * sysdeps/unix/sysv/linux/kernel-features.h
13433         (__ASSUME_SETRESUID_SYSCALL): Remove.
13434         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13435         (__ASSUME_32BITUIDS): Likewise.
13436         (__ASSUME_LDT_WORKS): Likewise.
13437         (__ASSUME_O_DIRECTORY): Likewise.
13438         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13439         architecture but not kernel version.
13440         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13441         (__ASSUME_MMAP2_SYSCALL): Likewise.
13442         (__ASSUME_STAT64_SYSCALL): Likewise.
13443         (__ASSUME_IPC64): Likewise.
13444         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13445         <kernel-features.h>.
13446         [__ASSUME_32BITUIDS]: Make code unconditional.
13447         [!__ASSUME_32BITUIDS]: Remove conditional code.
13448         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13449         <kernel-features.h>.
13450         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13451         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13452         132096]: Remove conditional code.
13453         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13454         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13455         <kernel-features.h>.
13456         [__ASSUME_32BITUIDS]: Make code unconditional.
13457         [!__ASSUME_32BITUIDS]: Remove conditional code.
13458         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13459         <kernel-features.h>.
13460         [__ASSUME_32BITUIDS]: Make code unconditional.
13461         [!__ASSUME_32BITUIDS]: Remove conditional code.
13462         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13463         <kernel-features.h>.
13464         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13465         unconditional.
13466         (__setresgid): Do not declare.
13467         [__ASSUME_32BITUIDS]: Make code unconditional.
13468         [!__ASSUME_32BITUIDS]: Remove conditional code.
13469         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13470         <kernel-features.h>.
13471         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13472         unconditional.
13473         (__setresuid): Do not declare.
13474         [__ASSUME_32BITUIDS]: Make code unconditional.
13475         [!__ASSUME_32BITUIDS]: Remove conditional code.
13476         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13477         <kernel-features.h>.
13478         [__ASSUME_32BITUIDS]: Make code unconditional.
13479         [!__ASSUME_32BITUIDS]: Remove conditional code.
13480         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13481         <kernel-features.h>.
13482         [__ASSUME_32BITUIDS]: Make code unconditional.
13483         [!__ASSUME_32BITUIDS]: Remove conditional code.
13484
13485 2012-05-25  Richard Henderson  <rth@twiddle.net>
13486
13487         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13488         dl_hwcap to ifunc resolver.
13489         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13490         elf_ifunc_invoke.
13491         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13492         dl_hwcap to ifunc resolver.
13493         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13494
13495 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13496
13497         [BZ #14153]
13498         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13499         for |x| <= 2**-26, not 2**-57.
13500         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13501         exception.
13502
13503 2012-05-24  Jeff Law  <law@redhat.com>
13504
13505         * stdio-common/Makefile (tests): Add bug25.
13506         * stdio-common/bug25.c: New test.
13507
13508 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13509
13510         [BZ #13576]
13511         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13512         multiple of MALLOC_ALIGNMENT in size.
13513         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13514
13515 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13516
13517         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13518         Require >= 256.
13519         (FILENAME_MAX): Use macro-int-constant.
13520         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13521         (_IOFBF): Use macro-int-constant.
13522         (_IOLBF): Likewise.
13523         (_IONBF): Likewise.
13524         (SEEK_CUR): Likewise.
13525         (SEEK_END): Likewise.
13526         (SEEK_SET): Likewise.
13527         (TMP_MAX): Likewise.
13528         (EOF): Use macro-int-constant.  Require < 0.
13529         (NULL): Use macro-constant.  Require == 0.
13530         (stdin): Require type to be FILE *.
13531         (stdout): Likewise.
13532         (stderr): Likewise.
13533         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13534         macro-int-constant.
13535         (EXIT_SUCCESS): Likewise.
13536         (NULL): Use macro-constant.  Require == 0.
13537         (RAND_MAX): Use macro-int-constant.
13538         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13539         [C99-based standards] (strtof): Require function.
13540         [C99-based standards] (strtold): Likewise.
13541         [C99-based standards] (strtoll): Likewise.
13542         [C99-based standards] (strtoull): Likewise.
13543         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13544         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13545         [ISO || ISO99 || ISO11] (math.h): Likewise.
13546         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13547         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13548         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13549
13550 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13551
13552         [BZ #14132]
13553         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13554         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13555         * intl/dgettext.c (DCGETTEXT): Likewise.
13556         * intl/gettext.c (DCGETTEXT): Likewise.
13557         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13558         * posix/regex_internal.h (gettext): Likewise.
13559         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13560         Remove declaration.
13561         * include/argz.h (__argz_count_internal)
13562         (__argz_stringify_internal): Remove declaration.
13563         (__argz_count, __argz_stringify): Declare hidden proto.
13564         * intl/dcgettext.c: Remove use of INTDEF.
13565         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13566         * string/argz-stringify.c: Likewise.
13567         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13568         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13569         Declare hidden proto.
13570         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13571         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13572         Declare hidden proto.
13573         * include/stdio.h (__asprintf_internal): Don't declare.
13574         (__asprintf): Don't define as macro.  Declare hidden proto.
13575         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13576         (__fsetlocking): Declare hidden proto.
13577         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13578         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13579         hidden proto.
13580         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13581         (_IO_setlinebuf): Remove use of INTUSE.
13582         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13583         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13584         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13585         Remove declaration.
13586         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13587         (_IO_do_flush): Remove use of INTUSE.
13588         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13589         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13590         (_IO_adjust_column, _IO_least_wmarker)
13591         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13592         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13593         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13594         (_IO_default_doallocate, _IO_wdefault_doallocate)
13595         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13596         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13597         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13598         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13599         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13600         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13601         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13602         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13603         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13604         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13605         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13606         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13607         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13608         proto.
13609         (_IO_flush_all_internal, _IO_adjust_column_internal)
13610         (_IO_default_uflow_internal, _IO_default_finish_internal)
13611         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13612         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13613         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13614         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13615         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13616         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13617         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13618         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13619         (_IO_file_close_internal, _IO_file_close_it_internal)
13620         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13621         (_IO_file_init_internal, _IO_file_attach_internal)
13622         (_IO_file_fopen_internal, _IO_file_read_internal)
13623         (_IO_file_sync_internal, _IO_file_seek_internal)
13624         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13625         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13626         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13627         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13628         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13629         (_IO_list_all_internal, _IO_link_in_internal)
13630         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13631         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13632         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13633         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13634         (_IO_do_write_internal, _IO_padn_internal)
13635         (_IO_getline_info_internal, _IO_getline_internal)
13636         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13637         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13638         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13639         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13640         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13641         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13642         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13643         with libc_hidden_ver, remove use of INTUSE.
13644         * libio/genops.c: Likewise.
13645         * libio/freopen.c: Likewise.
13646         * libio/freopen64.c: Likewise.
13647         * libio/iofclose.c: Likewise.
13648         * libio/iofdopen.c: Likewise.
13649         * libio/iofflush.c: Likewise.
13650         * libio/iofflush_u.c: Likewise.
13651         * libio/iofgets.c: Likewise.
13652         * libio/iofgets_u.c: Likewise.
13653         * libio/iofopen.c: Likewise.
13654         * libio/iofopncook.c: Likewise.
13655         * libio/iofread.c: Likewise.
13656         * libio/iofread_u.c: Likewise.
13657         * libio/ioftell.c: Likewise.
13658         * libio/iofwrite.c: Likewise.
13659         * libio/iogetline.c: Likewise.
13660         * libio/iogets.c: Likewise.
13661         * libio/iogetwline.c: Likewise.
13662         * libio/iopadn.c: Likewise.
13663         * libio/iopopen.c: Likewise.
13664         * libio/ioseekoff.c: Likewise.
13665         * libio/ioseekpos.c: Likewise.
13666         * libio/iosetbuffer.c: Likewise.
13667         * libio/iosetvbuf.c: Likewise.
13668         * libio/ioungetc.c: Likewise.
13669         * libio/ioungetwc.c: Likewise.
13670         * libio/iovdprintf.c: Likewise.
13671         * libio/iovsprintf.c: Likewise.
13672         * libio/iovsscanf.c: Likewise.
13673         * libio/memstream.c: Likewise.
13674         * libio/obprintf.c: Likewise.
13675         * libio/oldfileops.c: Likewise.
13676         * libio/oldiofclose.c: Likewise.
13677         * libio/oldiofdopen.c: Likewise.
13678         * libio/oldiofopen.c: Likewise.
13679         * libio/oldiopopen.c: Likewise.
13680         * libio/oldstdfiles.c: Likewise.
13681         * libio/putc.c: Likewise.
13682         * libio/setbuf.c: Likewise.
13683         * libio/setlinebuf.c: Likewise.
13684         * libio/stdfiles.c: Likewise.
13685         * libio/strops.c: Likewise.
13686         * libio/vasprintf.c: Likewise.
13687         * libio/vscanf.c: Likewise.
13688         * libio/vsnprintf.c: Likewise.
13689         * libio/vswprintf.c: Likewise.
13690         * libio/wfiledoalloc.c: Likewise.
13691         * libio/wfileops.c: Likewise.
13692         * libio/wgenops.c: Likewise.
13693         * libio/wmemstream.c: Likewise.
13694         * libio/wstrops.c: Likewise.
13695         * libio/__fpurge.c: Likewise.
13696         * libio/__fsetlocking.c: Likewise.
13697         * assert/assert.c: Likewise.
13698         * debug/fgets_chk.c: Likewise.
13699         * debug/fgets_u_chk.c: Likewise.
13700         * debug/fread_chk.c: Likewise.
13701         * debug/fread_u_chk.c: Likewise.
13702         * debug/gets_chk.c: Likewise.
13703         * debug/obprintf_chk.c: Likewise.
13704         * debug/vasprintf_chk.c: Likewise.
13705         * debug/vdprintf_chk.c: Likewise.
13706         * debug/vsnprintf_chk.c: Likewise.
13707         * debug/vsprintf_chk.c: Likewise.
13708         * malloc/mtrace.c: Likewise.
13709         * misc/error.c: Likewise.
13710         * misc/syslog.c: Likewise.
13711         * stdio-common/asprintf.c: Likewise.
13712         * stdio-common/fxprintf.c: Likewise.
13713         * stdio-common/getw.c: Likewise.
13714         * stdio-common/isoc99_fscanf.c: Likewise.
13715         * stdio-common/isoc99_scanf.c: Likewise.
13716         * stdio-common/isoc99_vfscanf.c: Likewise.
13717         * stdio-common/isoc99_vscanf.c: Likewise.
13718         * stdio-common/isoc99_vsscanf.c: Likewise.
13719         * stdio-common/printf-prs.c: Likewise.
13720         * stdio-common/printf_fp.c: Likewise.
13721         * stdio-common/printf_fphex.c: Likewise.
13722         * stdio-common/printf_size.c: Likewise.
13723         * stdio-common/putw.c: Likewise.
13724         * stdio-common/scanf.c: Likewise.
13725         * stdio-common/sprintf.c: Likewise.
13726         * stdio-common/tmpfile.c: Likewise.
13727         * stdio-common/vfprintf.c: Likewise.
13728         * stdio-common/vfscanf.c: Likewise.
13729         * stdlib/strfmon_l.c: Likewise.
13730         * sunrpc/openchild.c: Likewise.
13731         * sunrpc/xdr_stdio.c: Likewise.
13732         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13733         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13734
13735 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13736
13737         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13738
13739         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13740         in the third column, to generate for the shared library an IFUNC
13741         that uses _dl_vdso_vsym.
13742         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13743         * Makeconfig (object-suffixes-noshared): New variable.
13744
13745         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13746         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13747         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13748         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13749
13750         [BZ #14132]
13751         * include/sys/time.h (__gettimeofday): Remove macro.
13752         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13753         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13754         Remove INTDEF.
13755         (__gettimeofday): Add libc_hidden_def.
13756         (gettimeofday): Add libc_hidden_weak.
13757         * sysdeps/mach/gettimeofday.c: Likewise.
13758         * sysdeps/posix/gettimeofday.c: Likewise.
13759         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13760         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13761         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13762         (__gettimeofday_internal): Remove strong_alias.
13763         (__gettimeofday): Add libc_hidden_def.
13764         (gettimeofday): Add libc_hidden_weak.
13765         * sysdeps/unix/syscalls.list (gettimeofday):
13766         Remove __gettimeofday_internal alias.
13767
13768 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13769             H.J. Lu  <hongjiu.lu@intel.com>
13770
13771         [BZ #12495]
13772         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13773         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13774         (largebin_index_32_big): New.
13775         (largebin_index): Use it for 16-byte alignment.
13776         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13777         correction with front_misalign.
13778
13779 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13780
13781         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13782         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13783         Likewise.
13784         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13785         Likewise.
13786         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13787         Likewise.
13788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13789         Likewise.
13790         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13791         Likewise.
13792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13793         Likewise.
13794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13795         Likewise.
13796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13797         Likewise.
13798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13799         Likewise.
13800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13801         Likewise.
13802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13803         Likewise.
13804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13805         Likewise.
13806
13807         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13808         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13809
13810 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13811
13812         [BZ #10846]
13813         [BZ #14036]
13814         * math/libm-test.inc (exp_test): Add test from bug 14036.
13815         (pow_test): Add test from bug 10846.
13816
13817         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13818         and other flags.
13819         (special_function): Do not include flags in test name.
13820         (parse_args): Likewise.
13821         * sysdeps/i386/fpu/libm-test-ulps: Update.
13822         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13823         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13824         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13826
13827         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13828         exceptions.
13829         * math/libm-test.inc ("Philosophy"): Update comment about
13830         exception testing.
13831         (UNDERFLOW_EXCEPTION): New macro.
13832         (UNDERFLOW_EXCEPTION_OK): Likewise.
13833         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13834         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13835         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13836         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13837         (INVALID_EXCEPTION_OK): Update value.
13838         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13839         (OVERFLOW_EXCEPTION_OK): Likewise.
13840         (IGNORE_ZERO_INF_SIGN): Likewise.
13841         (test_exceptions): Handle underflow exceptions.
13842         (acos_test): Update for underflow exception expectations.
13843         (cexp_test): Likewise.
13844         (clog_test): Likewise.
13845         (clog10_test): Likewise.
13846         (csqrt_test): Likewise.
13847         (ctan_test): Likewise.
13848         (ctanh_test): Likewise.
13849         (exp_test): Likewise.
13850         (exp10_test): Likewise.
13851         (exp2_test): Likewise.
13852         (expm1_test): Likewise.
13853         (fma_test): Likewise.
13854         (j0_test): Likewise.
13855         (jn_test): Likewise.
13856         (nexttoward_test): Likewise.
13857         (pow_test): Likewise.
13858         (scalbn_test): Likewise.
13859         (scalbln_test): Likewise.
13860         (tan_test): Likewise.
13861         (y1_test): Likewise.
13862         * sysdeps/i386/fpu/libm-test-ulps: Update.
13863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13864
13865 2012-05-23  David S. Miller  <davem@davemloft.net>
13866
13867         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13868         (__libc_sigaction): Remove unused local variables.
13869
13870 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13871
13872         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13873
13874 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13875
13876         mktime: avoid signed integer overflow
13877         * time/mktime.c (__mktime_internal): Do not mishandle the case
13878         where diff == INT_MIN.
13879
13880         mktime: simplify computation of average
13881         * time/mktime.c (ranged_convert): Use new time_t_avg function
13882         instead of rolling our own (probably-slower) code.
13883
13884         mktime: do not assume signed right shift propagates sign bit
13885         * time/mktime.c (isdst_differ): New static function.
13886         (__mktime_internal): No need to normalize tm_isdst now.
13887         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13888         tm_isdst values.
13889
13890         mktime: merge another wrapv change from gnulib
13891         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13892         from some compilers.
13893
13894         mktime: remove incorrect attempt at unusual arithmetics
13895         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13896         The code didn't really work on such machines anyway.
13897         (TYPE_MINIMUM): Assume two's complement.
13898         (twos_complement_arithmetic): Verify that long_int and time_t
13899         are two's complement (or unsigned, in the latter case).
13900
13901         mktime: check signed shifts on long_int and time_t, too
13902         * time/mktime.c (SHR): Check that shifts work as desired
13903         on the types long_int and time_t too, as SHR is used on
13904         such types.
13905
13906         mktime: do not assume 'long' is wide enough
13907         * time/mktime.c (verify): Move decl up.
13908         (long_int): New type.
13909         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13910         to remove assumption in the code that 'long' is wide enough to
13911         store year values.  This assumption is not true on x32 and on
13912         some non-glibc platforms.
13913
13914         mktime: merge wrapv change from gnulib
13915         * time/mktime.c (WRAPV): New macro.
13916         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13917         (guess_time_tm, __mktime_internal): Do not assume that signed
13918         integer overflow wraps around; modern compilers generate code
13919         where this assumption is no longer valid.
13920
13921 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13922
13923         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13924         Replace "jmp L(pseudo_end)" with "ret".
13925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13926         Likewise.
13927
13928 2012-05-23  Andreas Jaeger  <aj@suse.de>
13929
13930         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13931         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13932
13933 2012-05-23  Andreas Jaeger  <aj@suse.de>
13934             Maximilian Attems  <max@stro.at>
13935
13936         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13937         New macros.
13938
13939 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13940
13941         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13942         code so that pseudo_end is just ret and the stack pointer is
13943         correct also for static library in error case.
13944
13945 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13946
13947         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13948         move to syscalls.list.
13949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13953
13954         * manual/install.texi (Running make install): Do not mention Linux
13955         kernel version for which pt_chown is not needed.
13956         (Linux): Do not mention problems with nscd with 2.0 kernels.
13957         * INSTALL: Regenerated.
13958
13959 2012-05-23  Andreas Jaeger  <aj@suse.de>
13960
13961         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13962         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13963         macro.
13964         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13965         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13966         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13967         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13968         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13969         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13970         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13971         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13972         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13973         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13974         * sysdeps/unix/sysv/linux/bits/in.h
13975         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13976
13977 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13978
13979         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13980         (PREPARE_VERSION): Just use assert instead, it will be elided
13981         under [NDEBUG] anyway.
13982
13983 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13984
13985         * sysdeps/unix/sysv/linux/Makefile: Include
13986         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13987         (sysdep_routines): Remove sysctl.
13988         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13989         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13990         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13991         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13992         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13993
13994 2012-05-22  Andreas Jaeger  <aj@suse.de>
13995
13996         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13997         that pseudo_end is just ret and the stack pointer is correct also
13998         for static library in error case.
13999
14000 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14001
14002         [BZ #14122]
14003         * nss/nsswitch.c (defconfig_entries): New variable.
14004         (__nss_database_lookup): Don't leak defconfig entries.
14005         (nss_parse_service_list): Don't leak on error paths.
14006         (free_database_entries): New function.
14007         (free_defconfig): New function.
14008         (free_mem): Move common code to free_database_entries.
14009
14010 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14011
14012         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14013         Add arch_prctl.
14014         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14015
14016         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14017         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14018         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14019         New macro.
14020         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14021         (INTERNAL_SYSCALL_TYPES): Likewise.
14022         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14023         (LOAD_REGS_TYPES_[1-6]): Likewise.
14024         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14025         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14026
14027 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14028
14029         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14030         copysignl for GLIBC_2_0.
14031         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14032         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14033         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14034         logbl for GLIBC_2_0.
14035         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14036         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14037
14038 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14039
14040         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14041         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14042
14043         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14044         Use "neg %eax".
14045
14046         * time/mktime.c: Update copyright years.
14047
14048 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         mktime: merge comment-quoting-style change from gnulib
14051         * time/mktime.c: Quote 'like this' in comments.
14052         The GNU coding standards suggest that we no longer quote `like this',
14053         as "`" and "'" are typically rendered asymmetrically nowadays.
14054         The typical gnulib style is to quote 'like this' when quoting
14055         code, and "like this" when quoting English.
14056
14057         * time/mktime.c (compile-command): Add "-I.".
14058
14059         mktime: merge mktime-internal.h change from gnulib
14060         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14061
14062         mktime: merge time_r change from gnulib
14063         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14064
14065         mktime: merge DEBUG change from gnulib
14066         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14067         case system <time.h> has a #define.
14068
14069         mktime: merge <sys/types.h> change from gnulib
14070         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14071         since <time.t> is now guaranteed to define time_t.
14072
14073         mktime: merge HAVE_CONFIG_H change from gnulib
14074         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14075
14076 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14077
14078         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14079         Use "neg %eax".
14080
14081         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14082         __rlim_t cast.
14083         (struct rusage): Use anonymous union to pad each field to
14084         __syscall_slong_t.
14085
14086 2012-05-21  David S. Miller  <davem@davemloft.net>
14087
14088         * Makefules (o-iterator): Remove .s cases.
14089         (compile-command.s): Delete.
14090         (COMPILE.s): Delete.
14091         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14092
14093 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14094
14095         * configure.in (libc_cv_predef_stack_protector): Only consider
14096         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14097         * configure: Regenerated.
14098
14099 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14100
14101         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14102         New macro.  Use R*LP on int and pointer.
14103         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14104         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14105         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14106         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14107
14108         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14109         [__WORDSIZE_TIME64_COMPAT32] instead of
14110         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14111         (struct utmp): Likewise.
14112         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14113         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14114         Renamed to ...
14115         (__WORDSIZE_TIME64_COMPAT32): This.
14116         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14117         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14118         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14119         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14120         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14121         (__WORDSIZE_TIME64_COMPAT32): New macro.
14122
14123 2012-05-21  Andreas Jaeger  <aj@suse.de>
14124
14125         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14126         only if [SHARED]. Add prototype for __wcschr_ia32.
14127
14128 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14129
14130         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14131         of %rbp unmolested in the jmp_buf while mangling the low bits.
14132         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14133         unmolested high bits of %rbp while demangling the low bits.
14134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14135
14136 2012-05-21  Andreas Jaeger  <aj@suse.de>
14137
14138         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14139         * sunrpc/svc_simple.c: Use it for registerrpc.
14140         * sunrpc/xcrypt.c: Use it for passwd2des.
14141
14142         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14143
14144 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14145
14146         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14147         Don't define if [__SYSCALL_WORDSIZE != 32].
14148         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14149         New macro.
14150
14151 2012-05-21  Bruno Haible  <bruno@clisp.org>
14152             Andreas Jaeger  <aj@suse.de>
14153
14154         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14155         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14156         inptr and inend for must_buffer_ch.
14157         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14158         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14159         * stdio-common/Makefile (tests): Remove bug15.
14160         (bug15-ENV): Remove macro.
14161         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14162         anymore.
14163
14164 2012-05-19  Andreas Jaeger  <aj@suse.de>
14165             Roland McGrath  <roland@hack.frob.com>
14166
14167         * manual/contrib.texi: Completely rewritten. It contains now an
14168         alphabetical list of contributors and their contributions.
14169
14170 2012-05-21  Richard Henderson  <rth@twiddle.net>
14171
14172         * misc/getauxval.c (__getauxval): Use unsigned long int.
14173         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14174         (getauxval): Use unsigned long int.
14175
14176 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14177
14178         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14179
14180 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14181
14182         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14183         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14184         __alignof__ (long double).
14185
14186 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14187
14188         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14189
14190 2012-05-20  Richard Henderson  <rth@twiddle.net>
14191
14192         * misc/getauxval.c: New file.
14193         * misc/sys/auxv.h: New file.
14194         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14195         (routines): Add getauxval.
14196         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14197         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14198         * elf/dl-sysdep.c (_dl_auxv): Remove.
14199         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14200         * elf/dl-support.c (_dl_auxv): New variable.
14201         (_dl_aux_init): Initialize it.
14202         * manual/startup.texi (Auxiliary Vector): New node.
14203         * sysdeps/generic/bits/hwcap.h: New file.
14204         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14205         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14206         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14207         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14208         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14209         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14211         Update.
14212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14215         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14217         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14218         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14220
14221 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14222
14223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14224
14225 2012-05-19  David S. Miller  <davem@davemloft.net>
14226
14227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14228
14229 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14230
14231         [BZ #14123]
14232         * math/s_ccosh.c: Include <float.h>
14233         (__ccosh): Avoid internal overflow calculating sinh and cosh
14234         values before multiplying by sin and cos values.
14235         * math/s_ccoshf.c: Likewise.
14236         * math/s_ccoshl.c: Likewise.
14237         * math/s_csin.c: Likewise.
14238         * math/s_csinf.c: Likewise.
14239         * math/s_csinl.c: Likewise.
14240         * math/s_csinh.c: Likewise.
14241         * math/s_csinhf.c: Likewise.
14242         * math/s_csinhl.c: Likewise.
14243         * math/libm-test.inc (ccos_test): Add more tests.
14244         (ccosh_test): Likewise.
14245         (csin_test): Likewise.
14246         (csinh_test): Likewise.
14247         * sysdeps/i386/fpu/libm-test-ulps: Update.
14248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14249
14250 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14251
14252         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14253         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14254
14255         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14256
14257 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14258
14259         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14260         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14261         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14262         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14263         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14264         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14265         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14266         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14267         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14268         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14269         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14270         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14271         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14272         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14273         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14274         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14275         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14276         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14277         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14278         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14279         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14280         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14281         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14282         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14283         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14284         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14285         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14286         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14287         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14288         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14289         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14290
14291 2012-05-18  Andreas Jaeger  <aj@suse.de>
14292
14293         * csu/.gitignore: Delete.
14294
14295 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14296
14297         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14298         (timex): Use __syscall_slong_t.
14299
14300 2012-05-18  Andreas Jaeger  <aj@suse.de>
14301             Carlos O'Donell  <carlos_odonell@mentor.com>
14302
14303         * manual/install.texi (Configuring and compiling): Update
14304         description about files modified in the source directory.
14305         * INSTALL: Regenerated.
14306
14307 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14308
14309         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14310         value.  Use "or" to set return value to -1.
14311         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14312         negate return value.
14313
14314 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14315
14316         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14317         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14318         failure if the compiler has Graphite support disabled.
14319         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14320         Likewise.
14321         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14322         CFLAGS-memmove.c): Likewise.
14323         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14324         Likewise.
14325
14326 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14327
14328         * sysdeps/x86_64/x32/_itoa.h: New file.
14329
14330         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14331         getdents system call only if kernel and user dirents have the
14332         same d_ino and d_off.
14333
14334         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14335         LLONG_MAX != LONG_MAX.
14336         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14337         (_fitoa_word): Likewise.
14338
14339         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14340         years.
14341         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14342         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14343         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14344
14345         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14346         include <bits/wordsize.h>.  Check __x86_64__ instead of
14347         __WORDSIZE.
14348         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14349         if __x86_64__ is defined.  Use anonymous union on fpstate.
14350
14351         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14352         anonymous union.
14353
14354 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14355
14356         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14357         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14358         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14359         Refer to _rtld_local_ro instead of _rtld_global_ro.
14360         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14361         Likewise.
14362         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14363         Likewise.
14364         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14365         Likewise.
14366         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14367         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14368         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14369
14370         * sysdeps/powerpc/powerpc32/dl-machine.c
14371         (__elf_machine_runtime_setup) [PROF]: Don't reference
14372         _dl_prof_resolve.
14373
14374 2012-05-18  Andreas Jaeger  <aj@suse.de>
14375
14376         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14377         function only available for GCCs before 3.4 since GCC 3.4
14378         introduced a builtin.
14379         (lrint): Likewise.
14380         (llrintf): Likewise.
14381         (llrint): Likewise.
14382         (fmaxf): Likewise.
14383         (fmax): Likewise.
14384         (fminf): Likewise.
14385         (fmin): Likewise.
14386         (rint): Likewise.
14387         (rintf): Likewise.
14388         (nearbyint): Likewise.
14389         (nearbyintf): Likewise.
14390         (ceil): Likewise.
14391         (ceilf): Likewise.
14392         (floor): Likewise.
14393         (floorf): Likewise.
14394
14395 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14396
14397         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14398         on both fields and cast pointer to __syscall_ulong_t.
14399
14400         * bits/types.h (__fsword_t): New type.
14401         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14402         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14403         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14404         (__FSWORD_T_TYPE): Likewise.
14405         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14406         (__FSWORD_T_TYPE): Likewise.
14407         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14408         (__FSWORD_T_TYPE): Likewise.
14409         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14410         (__FSWORD_T_TYPE): Likewise.
14411         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14412         __SWORD_TYPE with __fsword_t.
14413         (statfs64): Likewise.
14414
14415 2012-05-17  David S. Miller  <davem@davemloft.net>
14416
14417         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14418
14419 2012-05-17  Andreas Jaeger  <aj@suse.de>
14420
14421         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14422         warning.
14423
14424 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14425
14426         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14427
14428 2012-05-17  Andreas Jaeger  <aj@suse.de>
14429
14430         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14431         when it is used.
14432
14433 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14434
14435         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14436
14437 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14438
14439         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14440         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14441
14442 2012-05-17  Andreas Jaeger  <aj@suse.de>
14443             Carlos O'Donell  <carlos_odonell@mentor.com>
14444
14445         [BZ #14059]
14446         * sysdeps/x86_64/multiarch/init-arch.h
14447         (bit_YMM_Usable): Rename to...
14448         (bit_AVX_Usable): ... this.
14449         (bit_FMA4_Usable): New macro.
14450         (bit_XMM_state): New macro.
14451         (bit_YMM_state): New macro.
14452         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14453         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14454         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14455         (CPUID_OSXSAVE): New macro.
14456         (CPUID_AVX): New macro.
14457         (CPUID_FMA4): New macro.
14458         (index_YMM_Usable): Rename to...
14459         (index_AVX_Usable): ... this.
14460         (HAS_AVX): Use HAS_ARCH_FEATURE.
14461         (HAS_FMA4): Likewise.
14462         (HAS_YMM_USABLE): Remove.
14463         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14464         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14465         are present.
14466         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14467         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14468         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14469         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14470         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14471
14472 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14473
14474         * math/libm-test.c: Support platforms without multiple rounding modes.
14475         * math/bug-nextafter.c: Support platforms without FP exceptions.
14476         * math/bug-nexttoward.c: Likewise.
14477         * math/test-fenv.c: Likewise.
14478         * math/test-misc.c: Likewise.
14479         * stdlib/bug-getcontext.c: Likewise.
14480
14481 2012-05-17  Andreas Jaeger  <aj@suse.de>
14482
14483         * manual/examples/search.c (critter_cmp): Change signature to
14484         avoid warnings.
14485         * manual/string.texi (Collation Functions): Likewise.
14486
14487 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14488
14489         * bits/types.h: Fold copyright years.
14490         * bits/typesizes.h: Likewise.
14491         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14492         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14493         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14494         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14495         * time/time.h: Likewise.
14496
14497 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14498
14499         [BZ #208]
14500         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14501         in instead of returning them.  Return void.
14502         (__libc_mallinfo): Accumulate over all arenas.
14503         (__malloc_stats): Adjust for change in int_mallinfo interface.
14504
14505 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14506
14507         [BZ #10375]
14508         * configure.in (NM): Add AC_CHECK_TOOL for it.
14509         (libc_extra_cflags): New substituted variable.
14510         Check for -fstack-protector being used implicitly.
14511         * configure: Regenerated.
14512         * config.make.in (config-extra-cflags): New variable,
14513         gets @libc_extra_cflags@.
14514         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14515
14516         [BZ #10375]
14517         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14518         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14519         * configure: Regenerated.
14520         * config.make.in (CPPUNDEFS): New substituted variable.
14521         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14522         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14523         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14524
14525 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14526
14527         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14528         (mq_attr): Use __syscall_slong_t.
14529
14530 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14531
14532         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14533         Check __x86_64__ instead of __WORDSIZE.
14534         (_STAT_VER_LINUX): Likewise.
14535         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14536         __syscall_ulong_t and __syscall_slong_t.
14537         (stat64): Likewise.
14538
14539 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14540
14541         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14542
14543 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14544
14545         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14546
14547 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14548
14549         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14550         __syscall_ulong_t.
14551
14552         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14553         include <bits/wordsize.h>.  Check __x86_64__ instead of
14554         __WORDSIZE.
14555         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14556         defined.
14557         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14558
14559         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14560         include <bits/wordsize.h>.  Check __x86_64__ instead of
14561         __WORDSIZE.
14562         (user_regs_struct): Use "__extension__ unsigned long long"
14563         instead of "unsigned long" if __x86_64__ is defined.
14564         (user): Likewise.  Pad after pointer field if __ILP32__ is
14565         defined.
14566
14567 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14568
14569         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14570         versions 5 to 9.
14571         * configure: Regenerated.
14572         * manual/install.texi (texinfo): Increase version requirement to
14573         4.5 or later.
14574         * INSTALL: Regenerated.
14575
14576         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14577
14578 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14579
14580         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14581
14582         * sysdeps/x86_64/x32/ffs.c: New file.
14583
14584         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14585         __syscall_ulong_t.
14586         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14587         defined.  Use __syscall_ulong_t.
14588         (shminfo): Use __syscall_ulong_t.
14589         (shm_info): Likewise.
14590
14591         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14592         __syscall_ulong_t.
14593
14594         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14595         <bits/wordsize.h>.
14596         (msgqnum_t): Use __syscall_ulong_t.
14597         (msglen_t): Likewise.
14598         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14599         __syscall_ulong_t.
14600
14601         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14602         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14603
14604         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14605
14606         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14607         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14608
14609         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14610         __syscall_slong_t.
14611
14612         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14613         include <bits/wordsize.h>.  Check __x86_64__ instead of
14614         __WORDSIZE.
14615
14616         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14617         "unsigned long long int" if __x86_64__ is defined.
14618         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14619
14620         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14621         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14622         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14623
14624         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14625         <stdint.h>.
14626         (GET_PC): Cast to uintptr_t first.
14627         (GET_FRAME): Likewise.
14628         (GET_STACK): Likewise.
14629
14630         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14631         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14632         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14633         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14634         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14635         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14636         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14637         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14638         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14639         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14640         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14641         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14642         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14643         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14644         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14645         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14646         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14647         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14648         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14649         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14650         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14651         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14652         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14653         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14654         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14655         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14656         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14657         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14658         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14659
14660 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14661
14662         * Makerules (+depfiles): Also collect depfiles from .oS in
14663         $(extra-objs).
14664         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14665         .oS, $(libnldbl-routines)).
14666
14667         * Makerules (native-compile-mkdep-flags): Define.
14668         * sunrpc/Makefile (extra-objs): Add $(addprefix
14669         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14670         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14671         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14672         calling $(make-target-directory).
14673
14674 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14675
14676         * bits/types.h (__snseconds_t): Removed.
14677         * time/time.h (struct timespec): Replace __snseconds_t with
14678         __syscall_slong_t.
14679         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14680         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14681         Likewise.
14682         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14683         (__SNSECONDS_T_TYPE): Likewise.
14684         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14685         (__SNSECONDS_T_TYPE): Likewise.
14686         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14687         (__SNSECONDS_T_TYPE): Likewise.
14688
14689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14690
14691         * sysdeps/mach/hurd/bits/typesizes.h
14692         (__SYSCALL_SLONG_TYPE): New macro.
14693         (__SYSCALL_ULONG_TYPE): Likewise.
14694
14695 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14696
14697         * bits/types.h (__syscall_slong_t): New type.
14698         (__syscall_ulong_t): Likewise.
14699
14700         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14701         (__SYSCALL_ULONG_TYPE): Likewise.
14702         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14703         (__SYSCALL_SLONG_TYPE): Likewise.
14704         (__SYSCALL_ULONG_TYPE): Likewise.
14705         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14706         (__SYSCALL_SLONG_TYPE): Likewise.
14707         (__SYSCALL_ULONG_TYPE): Likewise.
14708         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14709         (__SYSCALL_SLONG_TYPE): Likewise.
14710         (__SYSCALL_ULONG_TYPE): Likewise.
14711
14712 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14713
14714         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14715         Add sigaltstack-offsets.sym.
14716         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14717         <sigaltstack-offsets.h>.
14718         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14719         longjmp_msg pointer.
14720         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14721         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14722         signal stack.
14723         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14724
14725 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14726
14727         * elf/stackguard-macros.h: Remove file.
14728         * sysdeps/generic/stackguard-macros.h: New file.
14729         * sysdeps/i386/stackguard-macros.h: Likewise.
14730         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14731         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14732         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14733         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14734         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14735         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14736         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14737         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14738         <elf/stackguard-macros.h>.
14739
14740         [BZ #14109]
14741         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14742         __aligned__ in attribute.
14743         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14744         (gregset_t): Likewise.
14745
14746 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14747
14748         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14749         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14750         * sysdeps/x86_64/x32/Implies-after: New file.
14751
14752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14753
14754         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14755         and access return value for _dl_profile_fixup.  Use R10_LP to
14756         load frame size.
14757
14758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14759
14760         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14761
14762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14763
14764         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14765         * sysdeps/x86_64/x32/sysdep.h: New file.
14766
14767 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14768
14769         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14770         * sysdeps/x86_64/setjmp.S: Likewise.
14771
14772 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14773
14774         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14775         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14776         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14777         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14778         remove unused global constant.
14779
14780 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14781
14782         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14783         include of <not-cancel.h>.
14784
14785 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14786
14787         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14788
14789 2012-05-15  Jeff Law  <law@redhat.com>
14790             Andreas Jaeger  <aj@suse.de>
14791
14792         [BZ #13594]
14793         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14794         out from...
14795         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14796         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14797         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14798         code changing __hst_map_handle.map.
14799
14800 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14801
14802         * configure.in (sysnames): Look for Implies-before and Implies-after
14803         files.
14804         * configure: Regenerated.
14805
14806 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14807
14808         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14809         8-byte data alignment with LP_SIZE alignment.
14810
14811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14812
14813         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14814         into R10_LP.
14815
14816 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14817
14818         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14819
14820 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14821
14822         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14823         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14824         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14825         Likewise.
14826         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14827
14828 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14829
14830         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14831         (stackinfo_sub_sp): Likewise.
14832
14833 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14834
14835         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14836         RAX_LP.
14837
14838 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14839
14840         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14841         into R*_LP.
14842
14843 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14844
14845         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14846         sizes into R*_LP.
14847
14848 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14849
14850         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14851
14852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14855         into R11_LP and load __x86_64_shared_cache_size_half into
14856         R8_LP.
14857
14858 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14859
14860         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14861         R8_LP.
14862
14863 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14864
14865         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14866         logb for POWER7.
14867         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14868         logbf for POWER7.
14869         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14870         logbl for POWER7.
14871         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14872         powerpc32/power7/fpu/s_logb.c via #include.
14873         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14874         powerpc32/power7/fpu/s_logbf.c via #include.
14875         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14876         powerpc32/power7/fpu/s_logbl.c via #include.
14877
14878 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14879
14880         * README.libm: Remove file.
14881
14882 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14883
14884         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14885         count for x32.  Use R*_LP and omit operand-size suffix.
14886
14887 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14888
14889         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14890         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14891         * sysdeps/x86_64/x32/shlib-versions: New file.
14892
14893 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14894
14895         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14896         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14897         Use _dl_fatal_printf instead.
14898
14899 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14900
14901         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14902         set if not set by the user.  Do not allow for being unset.
14903         * sysdeps/unix/sysv/linux/configure: Regenerated.
14904
14905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14906
14907         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14908         the `q' suffix from lea and replace .quad with ASM_ADDR.
14909
14910 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14911
14912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14913         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14914         instead of $17.
14915         (PTR_DEMANGLE): Likewise.
14916
14917 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14918
14919         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14920         (LP_OP): Likewise.
14921         (ASM_ADDR): Likewise.
14922         (RAX_LP): Likewise.
14923         (RBP_LP): Likewise.
14924         (RBX_LP): Likewise.
14925         (RCX_LP): Likewise.
14926         (RDI_LP): Likewise.
14927         (RSI_LP): Likewise.
14928         (RSP_LP): Likewise.
14929         (R8_LP): Likewise.
14930         (R9_LP): Likewise.
14931         (R10_LP): Likewise.
14932         (R10_LP): Likewise.
14933         (R11_LP): Likewise.
14934         (R12_LP): Likewise.
14935         (R13_LP): Likewise.
14936         (R14_LP): Likewise.
14937         (R15_LP): Likewise.
14938
14939 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         * sysdeps/x86_64/x32/dl-machine.h: New file.
14942
14943 2012-05-14  Andreas Jaeger  <aj@suse.de>
14944
14945         * manual/Makefile (subdir): Remove export of subdir.
14946         (all): Remove target.
14947         (.PHONY): Remove all from list.
14948         (mkinstalldirs): Remove.
14949         (.PHONY): Remove installdirs from list.
14950         ($(inst_infodir)/libc.info): Use make-target-directory.
14951         (installdirs): Remove.
14952         (subdir_%): Remove.
14953         (glibc-targets): Remove.
14954         (lib): Remove.
14955         (stubs): Remove.
14956         ($(objpfx)stubs ../po/manual.pot): Remove.
14957         ($(objpfx)stamp%): Remove.
14958         (make-target-directory): Remove.
14959         (subdir_install): Remove.
14960         (routines): Remove.
14961         (aux): Remove.
14962         (sources): Remove.
14963         (objects): Remove.
14964         (headers): Remove.
14965
14966         [BZ #13750]
14967         * manual/.gitignore: Remove, it's not needed anymore.
14968         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14969         all files in it.
14970         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14971         directory.
14972         (texis): Renamed to $(objpfx)texis.
14973         (texis-path): New, contains path to generated files.
14974         (chapters.%): Use texis-path for complete path, add extra argument
14975         libc-texinfo.sh.
14976         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14977         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14978         (summary,texi, stamp-summary): Use complete path of
14979         files. Generate files in build dir.
14980         (dir-add.texi): Build in build dir.
14981         (libm-err.texi,stamp-libm-err): Likewise.
14982         (version.texi, stamp-version): Likewise.
14983         (.%c.texi): Likewise.
14984         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14985         (mostlyclean): Remove target.
14986         (realclean): Remove target.
14987         (generated): Add new variable with contents from mostlyclean and
14988         realclean, remove entries duplicated in common-mostlyclean, add
14989         stamp-libm-err and stamp-version.
14990         (generated-dirs): Add libc directory.
14991         ($(inst_infodir)/libc.info): Install files from build dir.
14992
14993         * manual/install.texi (Configuring and compiling): Adjust since
14994         the info files are not part of the tar ball anymore.
14995
14996 2012-05-14  Andreas Jaeger  <aj@suse.de>
14997
14998         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14999         variable.
15000
15001 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15002
15003         [BZ #13717]
15004         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15005         to 2.2.0 where earlier.
15006         * sysdeps/unix/sysv/linux/configure: Regenerated.
15007         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15008         Remove conditional code.
15009         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15010         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15011         Remove conditional code.
15012         [!__NR_lchown]: Likewise.
15013         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15014         [__NR_lchown]: Likewise.
15015         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15016         comment referencing __ASSUME_LCHOWN_SYSCALL.
15017         * sysdeps/unix/sysv/linux/i386/sigaction.c
15018         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15019         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15020         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15021         Remove conditional code.
15022         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15023         (__protocol_available): Remove #if 0 code.
15024         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15025         conditional code.
15026         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15027         * sysdeps/unix/sysv/linux/kernel-features.h
15028         (__ASSUME_GETCWD_SYSCALL): Don't define.
15029         (__ASSUME_REALTIME_SIGNALS): Likewise.
15030         (__ASSUME_PREAD_SYSCALL): Likewise.
15031         (__ASSUME_PWRITE_SYSCALL): Likewise.
15032         (__ASSUME_POLL_SYSCALL): Likewise.
15033         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15034         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15035         non-SPARC.
15036         (__ASSUME_SIOCGIFNAME): Don't define.
15037         (__ASSUME_MSG_NOSIGNAL): Likewise.
15038         (__ASSUME_SENDFILE): Define unconditionally.
15039         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15040         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15041         conditional code.
15042         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15043         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15044         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15045         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15046         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15047         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15048         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15050         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15051         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15053         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15054         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15056         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15057         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15059         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15060         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15062         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15063         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15065         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15066         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15068         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15069         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15071         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15072         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15073         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15074         Remove conditional code.
15075         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15076         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15077         Remove conditional code.
15078         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15079         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15080         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15081         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15082         Remove conditional code.
15083         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15084         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15085         Remove conditional code.
15086         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15087         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15088         Remove conditional code.
15089         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15090         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15091         Remove conditional code.
15092         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15093         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15094         Remove conditional code.
15095         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15096         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15097         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15098         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15099         * sysdeps/unix/sysv/linux/sigaction.c
15100         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15101         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15102         * sysdeps/unix/sysv/linux/sigpending.c
15103         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15104         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15105         * sysdeps/unix/sysv/linux/sigprocmask.c
15106         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15107         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15108         * sysdeps/unix/sysv/linux/sigsuspend.c
15109         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15110         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15111         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15112         (__libc_missing_rt_sigs): Remove.
15113         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15114         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15115         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15116         Remove conditional code.
15117         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15118         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15119         return 1.
15120         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15121         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15122         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15123         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15124
15125 2012-05-14  Andreas Jaeger  <aj@suse.de>
15126
15127         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15128         it's not used in glibc.
15129         (__coshm1): Likewise.
15130         (__acosh1p): Likewise.
15131         (__sgn): Likewise.
15132
15133         * manual/string.texi (Copying and Concatenation): Add missing
15134         variable in concat example.
15135         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15136
15137 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15138
15139         [BZ #14103]
15140         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15141         __builtin_clzl with __builtin_clzll.
15142
15143 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15144
15145         [BZ #14104]
15146         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15147         libc_freeres_ptr.
15148
15149 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15150
15151         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15152         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15153         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15154         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15155
15156 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15157
15158         * NEWS: Update ia64 info.
15159
15160 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15161
15162         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15163         used as bcopy.
15164
15165 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15166
15167         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15168         * sysdeps/unix/syscalls.list (dup3): Likewise.
15169         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15170         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15171
15172 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15173
15174         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15175         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15176
15177 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15178
15179         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15180         thread pointer.
15181         (TLS_IE): Use mov/add instead of movq/addq to load thread
15182         pointer.
15183         (TLS_GD_PREFIX): New.
15184         (TLS_GD): Use it.
15185
15186 2012-05-11  David S. Miller  <davem@davemloft.net>
15187
15188         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15189         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15190         (_FPU_SETCW): Likewise.
15191
15192 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15193
15194         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15195         is 32-byte aligned.
15196
15197 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15198
15199         [BZ #11837]
15200         * iconvdata/gb18030.c: Update tables.
15201         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15202         characters specially.
15203         (BODY for TO_LOOP): Add encoding of missing ranges.
15204
15205 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15206
15207         [BZ #13673]
15208         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15209         * sysdeps/mach/hurd/dup3.c: Likewise.
15210         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15211         * sysdeps/powerpc/memmove.c:: Likewise.
15212
15213 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15214
15215         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15216         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15217
15218 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15219
15220         * elf/elf.h (R_X86_64_RELATIVE64): New.
15221         (R_X86_64_NUM): Updated.
15222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15223         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15224         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15225         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15226         tst-quad1pie tst-quad2pie
15227         (modules-names): Add tst-quadmod1 tst-quadmod2.
15228         ($(objpfx)tst-quad1): New dependency.
15229         ($(objpfx)tst-quad2): Likewise.
15230         ($(objpfx)tst-quad1pie): Likewise.
15231         ($(objpfx)tst-quad2pie): Likewise.
15232         * sysdeps/x86_64/tst-quad1.c: New file.
15233         * sysdeps/x86_64/tst-quad1pie.c: New file.
15234         * sysdeps/x86_64/tst-quad2.c: Likewise.
15235         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15236         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15237         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15238         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15239         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15240
15241 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15242
15243         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15244         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15245         * streams/stropts.h (t_scalar_t): Define type.
15246
15247         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15248         (_PATH_PRESERVE): Set to "/var/lib".
15249         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15250
15251         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15252         instead of int.
15253
15254         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15255         if __dir_mkfile succeeded.
15256
15257         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15258         checking for _hurd_dtablesize.  Unlock it right after having
15259         finished _hurd_dtable allocation.
15260
15261 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15262
15263         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15264         * sysdeps/mach/hurd/configure: Regenerated.
15265         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15266         special-casing to...
15267         * sysdeps/gnu/configure.in: ... this new file.
15268         * sysdeps/unix/sysv/linux/configure: Regenerated.
15269         * sysdeps/gnu/configure: New generated file.
15270
15271         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15272         for Linux: use nsec instead of usec, as well as:
15273         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15274         members of type struct timespec.
15275         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15276         New macros.
15277         (struct stat64): Likewise.
15278         (_STATBUF_ST_NSEC): New macro.
15279         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15280
15281         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15282         __strtoul_internal rather than strtoul.
15283
15284 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15285
15286         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15287         and reject them.
15288
15289 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15290
15291         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15292         which preserves existing values.
15293         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15294
15295 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15296
15297         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15298         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15299         greater than FD_SETSIZE.
15300
15301 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15302
15303         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15304         allocated, call __vm_protect to finish enabling the existing space, and
15305         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15306         allocate the remainder.
15307
15308 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15309
15310         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15311         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15312
15313 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15314
15315         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15316         sysdeps/mach/hurd/readlink.c.
15317
15318         * posix/tst-sysconf.c (posix_options): Only use
15319         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15320         _POSIX_SYNCHRONIZED_IO when they are defined
15321         * sysdeps/mach/hurd/bits/posix_opt.h:
15322         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15323         (_XOPEN_REALTIME): Undefine macro.
15324         (_XOPEN_REALTIME_THREADS): Undefine macro.
15325         (_XOPEN_SHM): Undefine macro.
15326         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15327         macro to -1.
15328         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15329         macro to -1.
15330         (_POSIX_ASYNC_IO): Undefine macro.
15331         (_POSIX_PRIORITIZED_IO): Undefine macro.
15332         (_POSIX_SPIN_LOCKS): Define macro to -1.
15333
15334         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15335         SA_NODEFER, SA_RESETHAND.
15336         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15337         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15338         F_DUPFD_CLOEXEC.
15339
15340 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15341
15342         * elf/Makefile (pldd-modules): Define unconditionally.
15343
15344 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15345
15346         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15347
15348 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15349
15350         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15351         Return ENOENT when name is empty.
15352         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15353
15354 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15355
15356         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15357
15358         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15359
15360 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15361
15362         Fix mlock in all cases except non-readable pages.
15363         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15364         instead of VM_PROT_ALL as parameter to __vm_wire function.
15365
15366         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15367         (__mkdir): When path is `/', just fail with EEXIST.
15368         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15369
15370 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15371
15372         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15373         <sys/uio.h> (for writev).
15374         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15375         and <sys/param.h> (for MIN).
15376
15377 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15378
15379         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15380         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15381         if interrupted.
15382
15383 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15384
15385         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15386         Depend on against $(link-rpcuserlibs).
15387
15388 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15389
15390         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15391         (__libc_stack_end): Do not use attribute_relro.
15392         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15393         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15394         to libthread-provided value.
15395         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15396         attribute_relro.
15397
15398 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15399
15400         [BZ #3748]
15401         * bits/libc-lock.h (__libc_once_get): New macro.
15402         * sysdeps/mach/bits/libc-lock.h: Likewise.
15403         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15404         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15405         instead of using implementation details.
15406
15407         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15408         * libio/freopen.c: Likewise.
15409         * libio/freopen64.c: Likewise.
15410         * misc/syslog.c: Likewise.
15411         * nscd/connections.c: Likewise.
15412         * nscd/netgroupcache.c: Likewise.
15413         * sysdeps/posix/getcwd.c: Likewise.
15414
15415 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15416
15417         * math/w_ilogbf.c: Add #include <limits.h>.
15418
15419 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15420
15421         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15422         path instead of returning without unlocking.
15423
15424         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15425         immediate-write ioctls.
15426         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15427
15428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15429
15430         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15431         __builtin_frame_address instead of making assumptions about the
15432         location of the return address relative to DATA.  Force early load of
15433         the return address.
15434         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15435         __builtin_frame_address.
15436
15437         dup3 for GNU Hurd.
15438         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15439         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15440         implement dup3 and do some further code clean-ups.
15441         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15442         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15443
15444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15445
15446         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15447
15448         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15449         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15450         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15451         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15452         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15453         d->port.lock.
15454
15455         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15456         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15457         when handler == SIG_ERR, not when handler != SIG_ERR.
15458
15459 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15460
15461         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15462         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15463         definitions.
15464
15465         accept4 for GNU Hurd.
15466         * include/sys/socket.h (__libc_accept4): New prototype.
15467         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15468         to implement __libc_accept4.
15469         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15470         __libc_accept4.
15471         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15472
15473         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15474         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15475         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15476         signal-defines.sym.
15477
15478 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15479
15480         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15481
15482 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15483
15484         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15485         assertion on O_CLOEXEC flag.
15486         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15487         * hurd/intern-fd.c: Likewise.
15488         * hurd/port2fd.c: Likewise.
15489
15490 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15491
15492         [BZ #3906]
15493         * bits/in.h (IPV6_PKTINFO): Define new macro.
15494         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15495
15496 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15497
15498         [BZ #13954]
15499         [BZ #13955]
15500         [BZ #13956]
15501         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15502         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15503         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15504         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15505         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15506         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15507         * math/libm-test.inc (logb_test) : Additional logb tests.
15508
15509 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15510             Andreas Jaeger  <aj@suse.de>
15511
15512         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15513         * configure: Regenerated.
15514         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15515         * config.make.in (link-obsolete-rpc): New substituted variable.
15516         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15517         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15518         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15519         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15520         so that libc.a contains the symbols.
15521         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15522         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15523         * sunrpc/auth_none.c: Likewise.
15524         * sunrpc/auth_unix.c: Likewise.
15525         * sunrpc/authdes_prot.c: Likewise.
15526         * sunrpc/authuxprot.c: Likewise.
15527         * sunrpc/clnt_gen.c: Likewise.
15528         * sunrpc/clnt_perr.c: Likewise.
15529         * sunrpc/clnt_raw.c: Likewise.
15530         * sunrpc/clnt_simp.c: Likewise.
15531         * sunrpc/clnt_tcp.c: Likewise.
15532         * sunrpc/clnt_udp.c: Likewise.
15533         * sunrpc/clnt_unix.c: Likewise.
15534         * sunrpc/des_crypt.c: Likewise.
15535         * sunrpc/des_soft.c: Likewise.
15536         * sunrpc/get_myaddr.c: Likewise.
15537         * sunrpc/key_call.c: Likewise.
15538         * sunrpc/key_prot.c: Likewise.
15539         * sunrpc/netname.c: Likewise.
15540         * sunrpc/pm_getmaps.c: Likewise.
15541         * sunrpc/pm_getport.c: Likewise.
15542         * sunrpc/pmap_clnt.c: Likewise.
15543         * sunrpc/pmap_prot.c: Likewise.
15544         * sunrpc/pmap_prot2.c: Likewise.
15545         * sunrpc/pmap_rmt.c: Likewise.
15546         * sunrpc/publickey.c: Likewise.
15547         * sunrpc/rpc_cmsg.c: Likewise.
15548         * sunrpc/rpc_common.c: Likewise.
15549         * sunrpc/rpc_dtable.c: Likewise.
15550         * sunrpc/rpc_prot.c: Likewise.
15551         * sunrpc/rpc_thread.c: Likewise.
15552         * sunrpc/rtime.c: Likewise.
15553         * sunrpc/svc.c: Likewise.
15554         * sunrpc/svc_auth.c: Likewise.
15555         * sunrpc/svc_raw.c: Likewise.
15556         * sunrpc/svc_run.c: Likewise.
15557         * sunrpc/svc_tcp.c: Likewise.
15558         * sunrpc/svc_udp.c: Likewise.
15559         * sunrpc/svc_unix.c: Likewise.
15560         * sunrpc/svcauth_des.c: Likewise.
15561         * sunrpc/xcrypt.c: Likewise.
15562         * sunrpc/xdr.c: Likewise.
15563         * sunrpc/xdr_array.c: Likewise.
15564         * sunrpc/xdr_float.c: Likewise.
15565         * sunrpc/xdr_intXX_t.c: Likewise.
15566         * sunrpc/xdr_mem.c: Likewise.
15567         * sunrpc/xdr_rec.c: Likewise.
15568         * sunrpc/xdr_ref.c: Likewise.
15569         * sunrpc/xdr_sizeof.c: Likewise.
15570         * sunrpc/xdr_stdio.c: Likewise.
15571
15572 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15573
15574         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15575         change.  Update copyright years.
15576
15577 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15578
15579         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15580
15581 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15582             Joseph Myers  <joseph@codesourcery.com>
15583             Paul Pluzhnikov  <ppluzhnikov@google.com>
15584
15585         [BZ #14012]
15586         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15587         requiring rpcgen.
15588         [cross-compiling] (extra-libs): Likewise.
15589         [cross-compiling] (extra-libs-others): Likewise.
15590         [cross-compiling] (librpcsvc-routines): Likewise.
15591         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15592         [cross-compiling] (omit-deps): Likewise.
15593         (sunrpc-CPPFLAGS): New variable.
15594         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15595         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15596         (cross-rpcgen-objs): New variable.
15597         (extra-objs): Append $(cross-rpcgen-objs).
15598         ($(cross-rpcgen-objs)): New rule.
15599         ($(objpfx)cross-rpcgen): Likewise.
15600         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15601         comment.
15602         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15603         ($(objpfx)x%.stmp): Likewise.
15604         * sunrpc/proto.h [IS_IN_build] (_): Define.
15605         [IS_IN_build] (_libc_intl_domainname): Likewise.
15606
15607 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15608
15609         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15610         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15611         and R_X86_64_TPOFF64.
15612
15613 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15614
15615         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15616         sysdeps/unix/sysv/syscalls.list.
15617         (stime): Likewise.
15618         (utime): Likewise.
15619         * sysdeps/unix/sysv/syscalls.list: Remove file.
15620
15621 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15622
15623         [BZ #3440]
15624         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15625         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15626         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15627         (__LC_IDENTIFICATION): Make these macros useful in #if
15628         expressions, as required by C99.
15629
15630 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15631
15632         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15633         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15634         after this.
15635
15636 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15637
15638         * stdlib/longlong.h: Updated from GCC.
15639
15640 2012-05-09  Andreas Jaeger  <aj@suse.de>
15641
15642         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15643         default is first entry.
15644         (run_mode): Set type.
15645         (main): Remove informal message about syslog.
15646         (options): Fix typo.
15647
15648         [BZ #14053]
15649         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15650         to asm.
15651         (lrint): Likewise.
15652         (llrintf): Likewise.
15653         (llrint): Likewise.
15654         (rint): Likewise.
15655         (rintf): Likewise.
15656         (nearbyint): Likewise.
15657         (nearbyintf): Likewise.
15658
15659 2012-05-09  Andreas Jaeger  <aj@suse.de>
15660             Pedro Alves  <palves@redhat.com>
15661
15662         * nscd/nscd.c (run_mode): Use enum.
15663         (main): Cleanup coding style issue.
15664
15665 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15666             Andreas Jaeger  <aj@suse.de>
15667
15668         * nscd/nscd.c (go_background): Replaced with...
15669         (run_mode): ... this.
15670         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15671         (options): Add -F --foreground.
15672         (main): Implement it.
15673         (parse_opt): Parse it.
15674
15675 2012-05-09  Andreas Jaeger  <aj@suse.de>
15676
15677         [BZ #14083]
15678         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15679         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15680         -Wconversion warning.
15681         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15682         Likewise.
15683
15684 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15685
15686         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15687         == 0.
15688         (LC_ALL): Use macro-int-constant.
15689         (LC_COLLATE): Likewise.
15690         (LC_CTYPE): Likewise.
15691         (LC_MESSAGES): Likewise.
15692         (LC_MONETARY): Likewise.
15693         (LC_NUMERIC): Likewise.
15694         (LC_TIME): Likewise.
15695         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15696         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15697         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15698         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15699         Specify type.
15700         [C99-based standards] (float_t): Expect type.
15701         [C99-based standards] (double_t): Expect type.
15702         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15703         type.
15704         [C99-based standards] (HUGE_VALL): Likewise.
15705         [C99-based standards] (INFINITY): Likewise.
15706         [C99-based standards] (NAN): Likewise.
15707         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15708         [C99-based standards] (FP_NAN): Likewise.
15709         [C99-based standards] (FP_NORMAL): Likewise.
15710         [C99-based standards] (FP_SUBNORMAL): Likewise.
15711         [C99-based standards] (FP_ZERO): Likewise.
15712         [C99-based standards] (FP_FAST_FMA): Use
15713         optional-macro-int-constant.  Specify type.  Require == 1.
15714         [C99-based standards] (FP_FAST_FMAF): Likewise.
15715         [C99-based standards] (FP_FAST_FMAL): Likewise.
15716         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15717         [C99-based standards] (FP_ILOGBNAN): Likewise.
15718         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15719         Specify type.
15720         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15721         [C99-based standards] (math_errhandling): Specify type.
15722         [ISO99 || ISO11] (signgam): Do not allow.
15723         [non-C99-based standards] (copysignf): Do not allow.
15724         [non-C99-based standards] (exp2f): Likewise.
15725         [non-C99-based standards] (log2f): Likewise.
15726         [non-C99-based standards] (modff): Allow.
15727         [non-C99-based standards] (erff): Do not allow.
15728         [non-C99-based standards] (erfcf): Likewise.
15729         [non-C99-based standards] (gammaf): Likewise.
15730         [non-C99-based standards] (hypotf): Likewise.
15731         [non-C99-based standards] (j0f): Likewise.
15732         [non-C99-based standards] (j1f): Likewise.
15733         [non-C99-based standards] (jnf): Likewise.
15734         [non-C99-based standards] (lgammaf): Likewise.
15735         [non-C99-based standards] (tgammaf): Likewise.
15736         [non-C99-based standards] (y0f): Likewise.
15737         [non-C99-based standards] (y1f): Likewise.
15738         [non-C99-based standards] (ynf): Likewise.
15739         [non-C99-based standards] (isnanf): Likewise.
15740         [non-C99-based standards] (acoshf): Likewise.
15741         [non-C99-based standards] (asinhf): Likewise.
15742         [non-C99-based standards] (atanhf): Likewise.
15743         [non-C99-based standards] (cbrtf): Likewise.
15744         [non-C99-based standards] (expm1f): Likewise.
15745         [non-C99-based standards] (ilogbf): Likewise.
15746         [non-C99-based standards] (log1pf): Likewise.
15747         [non-C99-based standards] (logbf): Likewise.
15748         [non-C99-based standards] (nextafterf): Likewise.
15749         [non-C99-based standards] (remainderf): Likewise.
15750         [non-C99-based standards] (rintf): Likewise.
15751         [non-C99-based standards] (scalbf): Likewise.
15752         [non-C99-based standards] (copysignl): Likewise.
15753         [non-C99-based standards] (exp2l): Likewise.
15754         [non-C99-based standards] (log2l): Likewise.
15755         [non-C99-based standards] (modfl): Allow.
15756         [non-C99-based standards] (erfl): Do not allow.
15757         [non-C99-based standards] (erfcl): Likewise.
15758         [non-C99-based standards] (gammal): Likewise.
15759         [non-C99-based standards] (hypotl): Likewise.
15760         [non-C99-based standards] (j0l): Likewise.
15761         [non-C99-based standards] (j1l): Likewise.
15762         [non-C99-based standards] (jnl): Likewise.
15763         [non-C99-based standards] (lgammal): Likewise.
15764         [non-C99-based standards] (tgammal): Likewise.
15765         [non-C99-based standards] (y0l): Likewise.
15766         [non-C99-based standards] (y1l): Likewise.
15767         [non-C99-based standards] (ynl): Likewise.
15768         [non-C99-based standards] (isnanl): Likewise.
15769         [non-C99-based standards] (acoshl): Likewise.
15770         [non-C99-based standards] (asinhl): Likewise.
15771         [non-C99-based standards] (atanhl): Likewise.
15772         [non-C99-based standards] (cbrtl): Likewise.
15773         [non-C99-based standards] (expm1l): Likewise.
15774         [non-C99-based standards] (ilogbl): Likewise.
15775         [non-C99-based standards] (log1pl): Likewise.
15776         [non-C99-based standards] (logbl): Likewise.
15777         [non-C99-based standards] (nextafterl): Likewise.
15778         [non-C99-based standards] (remainderl): Likewise.
15779         [non-C99-based standards] (rintl): Likewise.
15780         [non-C99-based standards] (scalbl): Likewise.
15781         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15782         [non-C99-based standards] (FP_*): Do not allow.
15783         [C99-based standards] (FP_*): Change to
15784         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15785         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15786         allow.
15787         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15788         (SIG_ERR): Likewise.
15789         [X/Open-based standards] (SIG_HOLD): Likewise.
15790         (SIG_IGN): Likewise.
15791         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15792         positive value.
15793         (SIGFPE): Likewise.
15794         (SIGILL): Likewise.
15795         (SIGINT): Likewise.
15796         (SIGSEGV): Likewise.
15797         (SIGTER): Likewise.
15798         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15799         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15800         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15801         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15802         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15803         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15804         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15805         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15806         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15807         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15808         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15809         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15810         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15811         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15812         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15813         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15814         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15815         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15816         [X/Open-based standards] (SIGTRAP): Likewise.
15817         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15818         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15819         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15820         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15821         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15822         allow.
15823
15824 2012-05-08  Ian Wienand  <ianw@vmware.com>
15825
15826         [BZ #14080]
15827         * time/tzset.c (__tzset_parse_tz): Update default rules for
15828         daylight time changes in the Energy Policy Act of 2005.
15829
15830 2012-05-09  Andreas Jaeger  <aj@suse.de>
15831
15832         [BZ #13983]
15833         * elf/ldconfig.c (parse_conf): Change string to make clear that
15834         ldconfig only issued a warning if ld.so.conf does not exist.
15835
15836 2012-05-08  David S. Miller  <davem@davemloft.net>
15837
15838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15839         movxtod instead of popping the value on the stack.
15840
15841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15842
15843 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15844
15845         * config.h.in: Add HAVE_ARM_PCS_VFP.
15846
15847 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15848
15849         [BZ #13979]
15850         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15851         checking but the checks are disabled for any reason.
15852
15853 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15854
15855         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15856         and ELF64_R_TYPE with ELFW(R_TYPE).
15857
15858 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15859
15860         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15861         (ulimit): Likewise.
15862
15863         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15864         (settimeofday): Likewise.
15865
15866 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15867
15868         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15869         a struct th_u2 inside the union, and move tu_block/tu_code into
15870         a new th_u3 union of tu_block/tu_code inside of that.  Move
15871         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15872         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15873         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15874         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15875         (th_stuff): Change to th_u1.tu_stuff.
15876         (th_data): Define.
15877         (th_msg): Change to th_u1.th_u2.tu_data.
15878
15879 2012-05-07  David S. Miller  <davem@davemloft.net>
15880
15881         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15882
15883         [BZ #14074]
15884         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15885         (SETUP_PIC_REG): Use it.
15886         (SETUP_PIC_REG_LEAF): Use it.
15887
15888 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15889
15890         [BZ #13885]
15891         [BZ #13923]
15892         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15893         USE_AS_EXPM1L.
15894         (EXPL_FINITE): Likewise.
15895         (FLDLOG): Likewise.
15896         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15897         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15898         e_expl.S.
15899         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15900         USE_AS_EXPM1L.
15901         (EXPL_FINITE): Likewise.
15902         (FLDLOG): Likewise.
15903         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15904         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15905         e_expl.S.
15906         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15907         test of -max_value argument for long double.
15908         * sysdeps/i386/fpu/libm-test-ulps: Update.
15909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15910
15911 2012-05-06  David S. Miller  <davem@davemloft.net>
15912
15913         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15914         quad soft-float symbols whose references which are compiler
15915         generated.
15916         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15917
15918 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15919
15920         [BZ #13884]
15921         [BZ #13914]
15922         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15923         USE_AS_EXP10L.
15924         (EXPL_FINITE): Likewise.
15925         (FLDLOG): Likewise.
15926         (c0): Likewise.
15927         (c1): Likewise.
15928         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15929         Adjust comments for base varying.
15930         (__expl_finite): Change alias to EXPL_FINITE.
15931         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15932         e_expl.S.
15933         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15934         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15935         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15936         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15937         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15938         USE_AS_EXP10L.
15939         (EXPL_FINITE): Likewise.
15940         (FLDLOG): Likewise.
15941         (c0): Likewise.
15942         (c1): Likewise.
15943         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15944         Adjust comments for base varying.
15945         (__expl_finite): Change alias to EXPL_FINITE.
15946         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15947         tests for bugs.
15948         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15949
15950         [BZ #14064]
15951         * math/libm-test.inc (check_float_internal): Correct ulp
15952         calculation for subnormal expected results.
15953
15954 2012-05-06  Andreas Jaeger  <aj@suse.de>
15955
15956         * Makeconfig (+math-flags): New, set to -frounding-math.
15957         (+cflags): Add +math-flags so that all of glibc gets compiled with
15958         it.
15959
15960         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15961
15962 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15963
15964         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15965         Disable one test.
15966
15967         [BZ #13787]
15968         [BZ #13922]
15969         [BZ #14036]
15970         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15971         (__ieee754_expl): Allow for and saturate large arguments.
15972         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15973         (u_threshold): Likewise.
15974         (__exp): Call __ieee754_exp before checking for overflow and
15975         underflow.
15976         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15977         (u_threshold): Likewise.
15978         (__expf): Call __ieee754_expf before checking for overflow and
15979         underflow.
15980         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15981         (u_threshold): Likewise.
15982         (__expl): Call __ieee754_expl before checking for overflow and
15983         underflow.
15984         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15985         (__ieee754_expl): Allow for and saturate large arguments.
15986         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15987         missing overflow exception on overflow.
15988         (expm1_test): Do not allow missing overflow exception on overflow.
15989
15990         * sysdeps/i386/fpu/e_expl.c: Move to ...
15991         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15992         rather than using inline asm.
15993         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15994         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15995         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15996
15997         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15998         (nice): Likewise.
15999         (poll): Likewise.
16000         (signal): Likewise.
16001         (time): Likewise.
16002         (times): Likewise.
16003
16004 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16005
16006         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16007         sysdeps/unix/common/syscalls.list.
16008         (fchmod): Likewise.
16009         (fchown): Likewise.
16010         (ftruncate): Likewise.
16011         (getrusage): Likewise.
16012         (gettimeofday): Likewise.
16013         (setpgid): Likewise.
16014         (setregid): Likewise.
16015         (setreuid): Likewise.
16016         (sigaction): Likewise.
16017         (truncate): Likewise.
16018         (vhangup): Likewise.
16019         * sysdeps/unix/common/syscalls.list: Remove file.
16020         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16021         * sysdeps/unix/sysv/linux/Implies: Likewise.
16022
16023 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16024
16025         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16027         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16028         Moved to ...
16029         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16030         Here.
16031         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16032         to ...
16033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16034         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16035         to ...
16036         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16037         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16038         to ...
16039         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16040         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16041         to ...
16042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16043         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16044         to ...
16045         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16046         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16047         to ...
16048         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16049         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16050         to ...
16051         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16052         Here.
16053         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16054         to ...
16055         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16056         Here.
16057         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16058         to ...
16059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16060         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16061         Moved to ...
16062         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16063         Here.
16064         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16065         to ...
16066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16067
16068 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16069
16070         * sysdeps/unix/common/bits/dirent.h: Remove file.
16071         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16072
16073         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16074         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16075         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16076         * sysdeps/unix/bsd/isatty.c: Likewise.
16077         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16078         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16079         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16080
16081 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16082
16083         [BZ #13563]
16084         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16085         long double comparison inaccuracies.
16086         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16087         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16088
16089 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16090
16091         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16092         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16093
16094 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16095
16096         [BZ #14049]
16097         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16098         nonzero digits before rounding a hex value.
16099         * stdlib/tst-strtod.c (tests): Add another test.
16100
16101 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16102
16103         * sysdeps/s390/fpu/libm-test-ulps: Update.
16104
16105 2012-05-03  Andreas Jaeger  <aj@suse.de>
16106
16107         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16108         does not get optimized out.
16109         (malloc_opt_barrier): New.
16110
16111 2012-05-03  Andreas Jaeger  <aj@suse.de>
16112             Roland McGrath  <roland@hack.frob.com>
16113
16114         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16115         intermediate file deletion.
16116         (generated): Add .symlist files.
16117
16118 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16119
16120         [BZ #13775]
16121         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16122         Redirect under this condition.
16123         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16124         [__USE_GNU] (__dprintf_chk): Not under this condition.
16125         [__USE_GNU] (__vdprintf_chk): Likewise.
16126         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16127         under this condition.
16128         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16129         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16130         [__USE_XOPEN2K8] (vdprintf): Likewise.
16131         [__USE_GNU] (__dprintf_chk): Not under this condition.
16132         [__USE_GNU] (__vdprintf_chk): Likewise.
16133         [__USE_GNU] (dprintf): Likewise.
16134         [__USE_GNU] (vdprintf): Likewise.
16135
16136 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16137
16138         * elf/Makefile (common-generated): Set this instead of generated for
16139         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16140         $(all-built-dso)-derived lists.
16141
16142 2012-05-03  Andreas Jaeger  <aj@suse.de>
16143
16144         * sysdeps/i386/fpu/libm-test-ulps: Update.
16145
16146         * FAQ: Removed.
16147         * FAQ.in: Likewise.
16148         * scripts/gen-FAQ.pl: Likewise.
16149         * manual/install.texi (Installation): Point to online location of
16150         FAQ.
16151         * Makefile (files-for-dist): Remove FAQ.
16152         (FAQ): Remove.
16153
16154 2012-05-02  Allan McRae  <allan@archlinux.org>
16155
16156         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16157         (LDFLAGS-reldepmod5.so): Likewise.
16158         (LDFLAGS-reldep6mod1.so): Likewise.
16159         (LDFLAGS-reldep6mod4.so): Likewise.
16160         (LDFLAGS-reldep8mod3.so): Likewise.
16161         (LDFLAGS-unload4mod1.so): Likewise.
16162         (LDFLAGS-unload4mod2.so): Likewise.
16163         (LDFLAGS-tst-initorder): Likewise.
16164         (LDFLAGS-tst-initordera2.so): Likewise.
16165         (LDFLAGS-tst-initordera3.so): Likewise.
16166         (LDFLAGS-tst-initordera4.so): Likewise.
16167         (LDFLAGS-tst-initorderb2.so): Likewise.
16168         (LDFLAGS-noload): Likewise.
16169         (LDFLAGS-next): Likewise.
16170         (LDFLAGS-order2mod1.so): Likewise.
16171         (LDFLAGS-order2mod2.so): Likewise.
16172         (LDFLAGS-tst-initorder2): Likewise.
16173         (LDFLAGS-tst-initorder2a.so): Likewise.
16174         (LDFLAGS-tst-initorder2b.so): Likewise.
16175         (LDFLAGS-tst-initorder2c.so): Likewise.
16176         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16177
16178 2012-05-02  David S. Miller  <davem@davemloft.net>
16179
16180         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16181
16182 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16183
16184         [BZ #14055]
16185         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16186
16187 2012-05-02  Andreas Jaeger  <aj@suse.de>
16188
16189         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16190         since we manipulate rounding mode.
16191         (CPPFLAGS-test-idouble.c): Likewise.
16192         (CPPFLAGS-test-ifloat.c): Likewise.
16193         (CFLAGS-test-ldouble.c): Likewise.
16194         (CFLAGS-test-double.c): Likewise.
16195         (CFLAGS-test-float.c): Likewise.
16196         (CFLAGS-test-misc.c): Likewise.
16197         (CFLAGS-test-test-fenv.c): Likewise.
16198
16199 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16200
16201         [BZ #2550]
16202         [BZ #2570]
16203         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16204         comparisons to determine direction to adjust input.
16205
16206 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16207
16208         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16209         output to the target.
16210
16211         * scripts/localplt.awk: New file.
16212         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16213         (check-localplt-CFLAGS): Variable removed.
16214         ($(all-built-dso:=.jmprel)): New static pattern rule.
16215         (generated): Add those targets.
16216         (localplt-built-dso): New variable.
16217         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16218
16219         * elf/check-localplt.c: File removed.
16220
16221         * scripts/check-execstack.awk: New file.
16222         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16223         (check-execstack-CFLAGS): Variable removed.
16224         ($(objpfx)check-execstack.h): Target removed.
16225         ($(objpfx)execstack-default): New target.
16226         (generated): Add that instead of check-execstack.h.
16227         ($(all-built-dso:=.phdr)): New static pattern rule.
16228         (generated): Add those targets.
16229         * elf/check-execstack.c: File removed.
16230
16231         * scripts/check-textrel.awk: New file.
16232         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16233         (check-textrel-CFLAGS): Variable removed.
16234         (all-built-dso): Use := to define.o
16235         ($(all-built-dso:=.dyn)): New static pattern rule.
16236         (generated): Add those targets.
16237         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16238         * config.make.in (READELF): New substituted variable.
16239         * elf/check-textrel.c: File removed.
16240
16241 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16242
16243         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16244         allow.
16245         * conform/data/ctype.h-data [C99-based standards] (isblank):
16246         Expect function.
16247         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16248         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16249         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16250         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16251         Specify type.  Require positive value.
16252         (EILSEQ): Likewise.
16253         (ERANGE): Likewise.
16254         [ISO || POSIX] (EILSEQ): Do not expect.
16255         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16256         Specify type.  Require positive value.
16257         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16258         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16259         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16260         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16261         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16262         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16263         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16264         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16265         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16266         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16267         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16268         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16269         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16270         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16271         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16272         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16273         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16274         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16275         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16276         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16277         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16278         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16279         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16280         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16281         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16282         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16283         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16284         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16285         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16286         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16287         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16288         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16289         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16290         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16291         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16292         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16293         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16294         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16295         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16296         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16297         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16298         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16299         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16300         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16301         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16302         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16303         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16304         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16305         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16306         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16307         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16308         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16309         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16310         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16311         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16312         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16313         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16314         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16315         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16316         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16317         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16318         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16319         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16320         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16321         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16322         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16323         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16324         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16325         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16326         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16327         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16328         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16329         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16330         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16331         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16332         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16333         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16334         Require >= 2.
16335         (FLT_ROUNDS): Expect as macro, not constant.
16336         (FLT_MANT_DIG): Use macro-int-constant.
16337         (DBL_MANT_DIG): Likewise.
16338         (LDBL_MANT_DIG): Likewise.
16339         (FLT_DIG): Likewise.
16340         (DBL_DIG): Likewise.
16341         (LDBL_DIG): Likewise.
16342         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16343         (DBL_MIN_EXP): Likewise.
16344         (LDBL_MIN_EXP): Likewise.
16345         (FLT_MAX_EXP): Use macro-int-constant.
16346         (DBL_MAX_EXP): Likewise.
16347         (LDBL_MAX_EXP): Likewise.
16348         (FLT_MAX_10_EXP): Likewise.
16349         (DBL_MAX_10_EXP): Likewise.
16350         (LDBL_MAX_10_EXP): Likewise.
16351         (FLT_MAX): Use macro-constant.
16352         (DBL_MAX): Likewise.
16353         (LDBL_MAX): Likewise.
16354         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16355         (DBL_EPSILON): Likewise.
16356         (LDBL_EPSILON): Likewise.
16357         (FLT_MIN): Likewise.
16358         (DBL_MIN): Likewise.
16359         (LDBL_MIN): Likewise.
16360         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16361         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16362         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16363         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16364         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16365         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16366         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16367         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16368         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16369         [ISO11] (FLT_TRUE_MIN): Likewise.
16370         [ISO11] (LDBL_TRUE_MIN): Likewise.
16371         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16372         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16373         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16374         (SCHAR_MAX): Likewise.
16375         (UCHAR_MAX): Likewise.
16376         (CHAR_MIN): Likewise.
16377         (CHAR_MAX): Likewise.
16378         (MB_LEN_MAX): Use macro-int-constant.
16379         (SHRT_MIN): Use macro-int-constant.  Specify type.
16380         (SHRT_MAX): Likewise.
16381         (USHRT_MAX): Likewise.
16382         (INT_MAX): Likewise.
16383         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16384         bound negative.
16385         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16386         bound with "U".
16387         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16388         bound with "L".
16389         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16390         bound negative.  Suffix upper bound with "L".
16391         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16392         bound with "UL".
16393         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16394         Specify type.
16395         [C99-based standards] (LLONG_MAX): Likewise.
16396         [C99-based standards] (ULLONG_MAX): Likewise.
16397         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16398         == 0.
16399         [ISO11] (max_align_t): Require type.
16400         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16401
16402         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16403         from $CFLAGS, without defining away __attribute__ calls.
16404         (checknamespace): Use $CFLAGS_namespace.
16405
16406         * conform/conformtest.pl (@keywords): Only include C99 keywords
16407         for standards based on C99 or C11.
16408
16409         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16410         Disable tests.
16411         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16412         UNIX98]: Likewise.
16413
16414         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16415         usability of symbols in #if.
16416
16417         * conform/conformtest.pl: If macro or constant types start
16418         "promoted:", expect the symbol to be of the following type
16419         promoted by the integer promotions.
16420
16421         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16422         in one place.  Also handle "macro-constant".
16423
16424         * conform/conformtest.pl: Only accept expected macro values with
16425         "==".  Parse all "macro" lines in one place.
16426         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16427
16428         * conform/conformtest.pl: Handle braced types on "constant" lines
16429         instead of handling "typed-constant".
16430         * conform/data/signal.h-data: Use "constant" instead of
16431         "typed-constant".
16432
16433         * conform/conformtest.pl: Handle "optional-" at start of lines in
16434         one place rather than duplicating several cases.  Handle each
16435         format of "macro" line with initial "optional-".
16436
16437         * conform/conformtest.pl: Only accept expected constant or
16438         optional-constant values with "==".  Parse all "constant" lines in
16439         one place.  Parse all "optional-constant" lines in one place.
16440         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16441         * conform/data/fmtmsg.h-data: Likewise.
16442         * conform/data/netinet/in.h-data: Likewise.
16443         * conform/data/tar.h-data: Likewise.
16444         * conform/data/limits.h-data: Use "==" form on "constant" and
16445         "optional-constant" lines.
16446
16447         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16448         Use -std=c99 for XOPEN2K.
16449         (@knownproblems): Remove.
16450         (newtoken): Don't check %isknown.
16451
16452         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16453         Do not expect macro.
16454         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16455         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16456         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16457         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16458         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16459         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16460         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16461         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16462         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16463         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16464         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16465         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16466         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16467         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16468         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16469         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16470         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16471         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16472         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16473         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16474         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16475         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16476         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16477         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16478         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16479         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16480         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16481         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16482         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16483         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16484         [XPG3] (acosh): Likewise.
16485         [XPG3] (asinh): Likewise.
16486         [XPG3] (atanh): Likewise.
16487         [XPG3] (cbrt): Likewise.
16488         [XPG3] (expm1): Likewise.
16489         [XPG3] (ilogb): Likewise.
16490         [XPG3] (log1p): Likewise.
16491         [XPG3] (logb): Likewise.
16492         [XPG3] (nextafter): Likewise.
16493         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16494         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16495         [XPG3] (remainder): Likewise.
16496         [XPG3] (rint): Likewise.
16497         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16498         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16499         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16500         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16501         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16502         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16503         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16504         [UNIX98 || XOPEN2K] (scalb): Expect.
16505         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16506         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16507         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16508         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16509         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16510         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16511         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16512         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16513         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16514         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16515         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16516         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16517         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16518         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16519         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16520         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16521         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16522         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16523         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16524         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16525         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16526         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16527         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16528         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16529         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16530         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16531         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16532         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16533         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16534         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16535         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16536         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16537         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16538         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16539         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16540         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16541         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16542         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16543         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16544         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16545         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16546         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16547         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16548         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16549         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16550         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16551         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16552         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16553         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16554         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16555         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16556         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16557         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16558         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16559         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16560         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16561         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16562         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16563         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16564         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16565         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16566         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16567         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16568         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16569         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16570         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16571         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16572         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16573         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16574         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16575         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16576         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16577         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16578         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16579         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16580         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16581         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16582         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16583         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16584         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16585         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16586         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16587         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16588         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16589         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16590         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16591         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16592         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16593         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16594         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16595         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16596         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16597         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16598         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16599         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16600         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16601         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16602         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16603         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16604         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16605         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16606         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16607         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16608         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16609         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16610         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16611         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16612         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16613         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16614         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16615         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16616         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16617         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16618         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16619         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16620         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16621         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16622         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16623         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16624         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16625         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16626         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16627         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16628         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16629         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16630         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16631         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16632         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16633         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16634         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16635         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16636         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16637         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16638         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16639         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16640         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16641         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16642
16643         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16644         _XOPEN_SOURCE_EXTENDED for XPG4.
16645
16646         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16647
16648         * Makeconfig (localtime): Remove variable.
16649         (inst_localtime-file): Likewise.
16650
16651 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16652
16653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16654         Update.
16655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16656         Update.
16657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16658         Update.
16659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16660         Update.
16661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16662         Update.
16663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16664         Update.
16665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16666         Update.
16667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16668         Update.
16669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16670         Update.
16671
16672 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16673
16674         [BZ #2550]
16675         [BZ #2570]
16676         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16677         comparisons to determine direction to adjust input.
16678         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16679         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16680         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16681         Likewise.
16682         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16683         Likewise.
16684         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16685         Likewise.
16686         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16687         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16688         Likewise.
16689         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16690         Likewise.
16691         * math/libm-test.inc (nexttoward_test): Add more tests.
16692
16693 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16694
16695         [BZ #14040]
16696         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16697         in version GLIBC_2.1, not GLIBC_2.0.
16698         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16699         Likewise.
16700
16701 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16702
16703         [BZ #13942]
16704         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16705         (1 - x) * (1 + x).
16706         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16707         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16708         * math/libm-test.inc (acos_test): Add more tests.
16709         (asin_test): Likewise.
16710         * sysdeps/i386/fpu/libm-test-ulps: Update.
16711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16712
16713         [BZ #14034]
16714         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16715         of square root.
16716         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16717         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16718         * math/libm-test.inc (acos_test_tonearest): New function.
16719         (acos_test_towardzero): Likewise.
16720         (acos_test_downward): Likewise.
16721         (acos_test_upward): Likewise.
16722         (asin_test_tonearest): Likewise.
16723         (asin_test_towardzero): Likewise.
16724         (asin_test_downward): Likewise.
16725         (asin_test_upward): Likewise.
16726         (main): Call the new functions.
16727         * sysdeps/i386/fpu/libm-test-ulps: Update.
16728         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16729
16730         [BZ #13884]
16731         [BZ #13924]
16732         * math/e_exp10.c: Include <float.h>.
16733         (__ieee754_exp10): Handle underflow here rather than multiplying
16734         large negative argument by M_LN10.
16735         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16736         of __ieee754_expf.
16737         * math/e_exp10l.c: Include <float.h>.
16738         (__ieee754_exp10l): Handle underflow here rather than multiplying
16739         large negative argument by M_LN10l.
16740         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16741         spurious overflow exception on underflow.
16742
16743 2012-04-29  Marek Polacek  <polacek@redhat.com>
16744
16745         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16746         (__fortify_function): New macro.
16747         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16748         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16749         __extern_always_inline.
16750         * libio/bits/stdio2.h: Likewise.
16751         * libio/bits/stdio.h: Likewise.
16752         * string/string.h: Likewise.
16753         * string/bits/string3.h: Likewise.
16754         * include/stdio.h: Likewise.
16755         * stdlib/bits/stdlib.h: Likewise.
16756         * stdlib/stdlib.h: Likewise.
16757         * rt/bits/mqueue2.h: Likewise.
16758         * rt/mqueue.h: Likewise.
16759         * posix/bits/unistd.h: Likewise.
16760         * posix/unistd.h: Likewise.
16761         * io/bits/poll2.h: Likewise.
16762         * io/bits/fcntl2.h: Likewise.
16763         * io/fcntl.h: Likewise.
16764         * io/sys/poll.h: Likewise.
16765         * misc/bits/syslog.h: Likewise.
16766         * misc/bits/syslog-ldbl.h: Likewise.
16767         * misc/sys/syslog.h: Likewise.
16768         * socket/bits/socket2.h: Likewise.
16769         * socket/sys/socket.h: Likewise.
16770         * debug/tst-chk1.c: Likewise.
16771         * wcsmbs/bits/wchar2.h: Likewise.
16772         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16773         * wcsmbs/wchar.h: Likewise.
16774
16775 2012-04-29  Andreas Jaeger  <aj@suse.de>
16776
16777         * Makerules (tests): Remove enable-check-abi protection.
16778         (check-abi-warn): Remove.
16779         (check-abi-%): Remove check-abi-warn usage.
16780
16781         * configure.in: Remove check-abi configure option.
16782         * configure: Regenerated.
16783         * config.make.in (enable-check-abi): Remove.
16784
16785 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16786
16787         [BZ #14033]
16788         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16789         double functions to double *_finite functions.
16790
16791         [BZ #13941]
16792         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16793         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16794         LDBL_MIN_EXP.
16795         * stdio-common/Makefile (tests): Add tst-sprintf3.
16796         * stdio-common/tst-sprintf3.c: New file.
16797
16798         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16799         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16800
16801 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16802
16803         * conform/conformtest.pl: Remove duplicate typed-constant
16804         handling.
16805
16806 2012-04-28  David S. Miller  <davem@davemloft.net>
16807
16808         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16809         (check-abi-%): Remove AWK script prerequisite and explicit
16810         abilist directory.
16811         (check-abi): Rewrite to just diff the symlist with the abilist.
16812         (config-tls, config-abi-config): Delete, no longer used.
16813         (update-abi-%): Remove AWK script and explicit abilist directory.
16814         (update-abi): Rewrite to simply compare and conditionally copy the
16815         symlist and the sysdep abilist file.  Remove update-abi-config
16816         checks.
16817         * abilist/ld.abilist: Remove.
16818         * abilist/libBrokenLocale.abilist: Remove.
16819         * abilist/libanl.abilist: Remove.
16820         * abilist/libcrypt.abilist: Remove.
16821         * abilist/libdl.abilist: Remove.
16822         * abilist/librt.abilist: Remove.
16823         * abilist/libthread_db.abilist: Remove.
16824         * abilist/libutil.abilist: Remove.
16825         * scripts/extract-abilist.awk: Remove.
16826         * scripts/merge-abilist.awk: Remove.
16827         * sysdeps/generic/libcidn.abilist: New file.
16828         * sysdeps/generic/libnss_compat.abilist: New file.
16829         * sysdeps/generic/libnss_db.abilist: New file.
16830         * sysdeps/generic/libnss_dns.abilist: New file.
16831         * sysdeps/generic/libnss_files.abilist: New file.
16832         * sysdeps/generic/libnss_hesiod.abilist: New file.
16833         * sysdeps/generic/libnss_nis.abilist: New file.
16834         * sysdeps/generic/libnss_nisplus.abilist: New file.
16835         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16836         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16837         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16838         file.
16839         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16840         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16841         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16842         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16843         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16844         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16845         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16846         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16847         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16848         file.
16849         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16850         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16851         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16852         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16853         file.
16854         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16855         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16856         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16857         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16858         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16859         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16860         file.
16861         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16862         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16863         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16864         file.
16865         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16866         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16867         New file.
16868         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16869         New file.
16870         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16871         New file.
16872         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16873         New file.
16874         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16875         New file.
16876         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16877         New file.
16878         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16879         New file.
16880         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16881         New file.
16882         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16883         New file.
16884         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16885         New file.
16886         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16887         New file.
16888         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16889         New file.
16890         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16891         New file.
16892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16893         file.
16894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16895         New file.
16896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16897         New file.
16898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16899         file.
16900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16901         New file.
16902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16903         New file.
16904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16905         file.
16906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16907         New file.
16908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16909         New file.
16910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16911         New file.
16912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16913         New file.
16914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16915         New file.
16916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16917         New file.
16918         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16920         file.
16921         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16922         New file.
16923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16924         file.
16925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16926         file.
16927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16928         file.
16929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16930         file.
16931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16932         file.
16933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16934         New file.
16935         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16936         file.
16937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16938         file.
16939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16940         New file.
16941         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16942         file.
16943         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16944         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16945         file.
16946         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16947         New file.
16948         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16949         file.
16950         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16951         file.
16952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16953         file.
16954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16955         file.
16956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16957         file.
16958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16959         New file.
16960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16961         file.
16962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16963         file.
16964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16965         New file.
16966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16967         file.
16968         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16969         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16970         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16971         file.
16972         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16973         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16974         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16975         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16976         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16977         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16978         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16979         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16980         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16981         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16982         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16984         file.
16985         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16986         New file.
16987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16988         file.
16989         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16990         file.
16991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16992         file.
16993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16994         file.
16995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16996         file.
16997         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16998         New file.
16999         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17000         New file.
17001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17002         file.
17003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17004         New file.
17005         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17006         file.
17007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17008         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17009         file.
17010         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17011         New file.
17012         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17013         file.
17014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17015         file.
17016         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17017         file.
17018         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17019         file.
17020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17021         file.
17022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17023         New file.
17024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17025         New file.
17026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17027         file.
17028         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17029         New file.
17030         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17031         file.
17032
17033 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17034
17035         * conform/conformtest.pl: Fix typo in handling typed-constant from
17036         allow-header.
17037
17038 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17039
17040         * README: Cut down references to pre-2.6 Linux kernels and
17041         Linuxthreads.  Update lists of configurations in libc and ports
17042         and sort alphabetically.  Say "or newer" with Linux kernel version
17043         requirements.
17044
17045         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17046
17047 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17048
17049         [BZ #887]
17050         * math/libm-test.inc (logb_test_downward): New test to expose
17051         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17052         rounding mode.
17053
17054 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17055
17056         [BZ #14027]
17057         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17058         to be done.
17059         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17060         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17061
17062 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17063
17064         * sysdeps/unix/i386/brk.S: Remove file.
17065         * sysdeps/unix/i386/dl-brk.S: Likewise.
17066         * sysdeps/unix/i386/pipe.S: Likewise.
17067         * sysdeps/unix/i386/sigreturn.S: Likewise.
17068         * sysdeps/unix/i386/syscall.S: Likewise.
17069         * sysdeps/unix/i386/vfork.S: Likewise.
17070         * sysdeps/unix/i386/wait.S: Likewise.
17071
17072         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17073         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17074
17075         * configure.in (arm*-none*): Do not allow without
17076         --enable-hacker-mode.
17077         (netbsd*): Remove case setting base_os.
17078         (386bsd*): Likewise.
17079         (freebsd*): Likewise.
17080         (bsdi*): Likewise.
17081         (osf*): Likewise.
17082         (sunos*): Likewise.
17083         (ultrix*): Likewise.
17084         (newsos*): Likewise.
17085         (dynix*): Likewise.
17086         (*bsd*): Likewise.
17087         (sysv*): Likewise.
17088         (isc*): Likewise.
17089         (esix*): Likewise.
17090         (sco*): Likewise.
17091         (minix*): Likewise.
17092         (irix4*): Likewise.
17093         (irix6*): Likewise.
17094         (solaris[2-9]*): Likewise.
17095         (none): Likewise.
17096         * configure: Regenerated.
17097
17098 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17099
17100         [BZ #11521]
17101         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17102         overflow or cancellation in calculating denominator.
17103         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17104         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17105         down expression to avoid unexpected rounding in newer GCCs.
17106         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17107
17108 2012-04-26  David S. Miller  <davem@davemloft.net>
17109
17110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17111         long-double compat symbols.
17112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17125
17126 2012-04-25  David S. Miller  <davem@davemloft.net>
17127
17128         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17129         HWCAP_* values only after the memory barriers have been defined.
17130         (atomic_full_barrier): Define.
17131         (atomic_read_barrier): Define.
17132         (atomic_write_barrier): Define.
17133
17134 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17135
17136         * shlib-versions: Add libgcc_s version information.
17137         * sysdeps/generic/libgcc_s.h: Remove.
17138         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17139         libgcc_s.h.
17140         * sysdeps/gnu/unwind-resume.c: Likewise.
17141         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17142
17143 2012-04-25  David S. Miller  <davem@davemloft.net>
17144
17145         * sysdeps/unix/sparc/brk.S: Delete.
17146         * sysdeps/unix/sparc/dl-brk.S: Delete.
17147         * sysdeps/unix/sparc/pipe.S: Delete.
17148         * sysdeps/unix/sparc/sysdep.S: Delete.
17149         * sysdeps/unix/sparc/sysdep.h: Delete.
17150         * sysdeps/unix/sparc/vfork.S: Delete.
17151         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17152         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17153         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17154         ret_ERRVAL, r0, r1, MOVE): Define.
17155         (JUMPTARGET): Remove.
17156         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17157         sysdeps/unix/sparc/sysdep.h
17158         (ENTRY, END): Remove.
17159         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17160
17161 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17162
17163         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17164         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17165         -DIS_IN_build.
17166
17167         * timezone/README: Update upstream location and email address for
17168         tzcode and tzdata.
17169         * timezone/zdump.c: Update from tzcode 2012b.
17170         * timezone/zic.c: Likewise.
17171
17172         * configure.in (libc_cv_as_needed): Remove test.
17173         * configure: Regenerated.
17174         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17175         conditional definition.
17176         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17177         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17178         * config.make.in (have-as-needed): Remove variable.
17179
17180 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17181             Paul Pluzhnikov  <ppluzhnikov@google.com>
17182
17183         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17184         strings correctly.
17185
17186 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17187
17188         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17189         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17190         * sysdeps/sh/strlen.S: Likewise.
17191
17192 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17193
17194         * sysdeps/unix/fork.S: Remove file.
17195         * sysdeps/unix/i386/fork.S: Likewise.
17196         * sysdeps/unix/sparc/fork.S: Likewise.
17197
17198         * sysdeps/unix/system.c: Remove file.
17199         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17200
17201         * sysdeps/unix/getegid.S: Remove file.
17202         * sysdeps/unix/geteuid.S: Likewise.
17203
17204 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17205
17206         * scripts/check-localplt.awk: New file.
17207         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17208         of diff.
17209         * scripts/data/localplt-generic.data: Add a comment.
17210
17211         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17212         NODE when __dir_mkfile failed.
17213         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17214         Reported by Ludovic Courtès <ludo@gnu.org>.
17215
17216 2012-04-24  Andreas Jaeger  <aj@suse.de>
17217
17218         * Makerules (common-clean): Also remove gen-as-const-headers
17219         files.
17220
17221 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17222
17223         * Makerules (native-compile): Do not change working directory for
17224         build.  Use $(OUTPUT_OPTION) in command.
17225         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17226
17227 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17228
17229         [BZ #13886]
17230         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17231         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17232         * math/libm-test.inc (floor_test): Add more tests.
17233         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17234
17235 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17236
17237         * sysdeps/unix/getdents.c: Remove file.
17238         * sysdeps/unix/sysv/getdents.c: Likewise.
17239         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17240
17241         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17242         sysdeps/unix/mman/syscalls.list.
17243         (mmap): Likewise.
17244         (mprotect): Likewise.
17245         (msync): Likewise.
17246         (munmap): Likewise.
17247         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17248         * sysdeps/unix/mman/syscalls.list: Remove.
17249         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17250
17251         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17252         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17253         * configure: Regenerated.
17254         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17255         $(libgcc_s_suffix).
17256         * config.make.in (libgcc_s_suffix): Remove variable.
17257
17258 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17259
17260         * sysdeps/unix/sysv/gethostname.c: Move to ...
17261         * sysdeps/posix/gethostname.c: ... here.
17262
17263         * sysdeps/unix/execve.S: Remove file.
17264
17265         * sysdeps/unix/_exit.S: Remove file.
17266
17267 2012-04-23  Andreas Jaeger  <aj@suse.de>
17268
17269         [BZ #13739]
17270         * manual/Makefile: Remove make dist support, there's no
17271         need for a stand-alone documentation tar ball.
17272         (TEXI2DVI): Define always, it's not in Makeconfig.
17273         (dist): Removed.
17274         (tar-it): Removed.
17275         (edition): Removed.
17276         (glibc-doc-$(edition).tar): Removed
17277         (%.Z): Removed.
17278         (%.gz): Removed.
17279         (%.uu): Removed.
17280         (ETAGS): Remove, it's in Makeconfig.
17281         (move-if-change): Remove, it's in Makeconfig.
17282
17283 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17284
17285         [BZ #13970]
17286         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17287         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17288         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17289         (strtod_l, strtof_l, strtold_l): Remove __wur.
17290         It is not necessarily an error to ignore strtol's return value.
17291         One can reliably look at the stored endptr to decide whether
17292         the number had valid syntax.
17293
17294 2012-04-21  Andreas Jaeger  <aj@suse.de>
17295
17296         [BZ #13739]
17297         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17298
17299 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17300
17301         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17302         * sysdeps/unix/sysv/Versions: Remove file.
17303
17304 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17305
17306         [BZ #13927]
17307         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17308
17309 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17310
17311         [BZ #7064]
17312         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17313         version from __vm86.
17314
17315 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17316
17317         * sysdeps/unix/common/lxstat.c: Remove file.
17318         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17319
17320         * sysdeps/unix/sysv/Makefile: Remove file.
17321
17322         * sysdeps/unix/sysv/direct.h: Remove file.
17323
17324         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17325         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17326         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17327         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17328         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17329         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17330         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17331
17332         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17333
17334         * sysdeps/unix/xmknod.c: Remove file.
17335         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17336
17337         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17338
17339         * sysdeps/unix/sysv/i386/time.S: Remove file.
17340
17341         * sysdeps/unix/fxstat.c: Remove file.
17342         * sysdeps/unix/xstat.c: Likewise.
17343         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17344
17345         * sysdeps/unix/sysv/sigaction.c: Remove file.
17346
17347         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17348         (sysdep_headers): Remove variable.
17349         [termio.h not in sysdep_headers] (generated): Likewise.
17350         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17351         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17352         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17353         * sysdeps/unix/sysv/tcflow.c: Likewise.
17354         * sysdeps/unix/sysv/tcflush.c: Likewise.
17355         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17356         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17357         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17358         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17359         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17360
17361         * sysdeps/unix/siglist.c: Remove file.
17362
17363         * sysdeps/unix/getppid.S: Remove file.
17364
17365         * sysdeps/unix/mkdir.c: Remove file.
17366         * sysdeps/unix/rmdir.c: Likewise.
17367
17368 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17369
17370         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17371         ERR_MAX value.
17372         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17373         errlist-compat value.
17374
17375 2012-04-18  David S. Miller  <davem@davemloft.net>
17376
17377         * sysdeps/generic/memcopy.h (reg_char): Delete.
17378         * debug/strcat_chk.c: Use char, not reg_char.
17379         * debug/strcpy_chk.c: Likewise.
17380         * debug/strncat_chk.c: Likewise.
17381         * debug/strncpy_chk.c: Likewise.
17382         * string/memchr.c: Likewise.
17383         * string/memrchr.c: Likewise.
17384         * string/rawmemchr.c: Likewise.
17385         * string/strcat.c: Likewise.
17386         * string/strchr.c: Likewise.
17387         * string/strchrnul.c: Likewise.
17388         * string/strcmp.c: Likewise.
17389         * string/strcpy.c: Likewise.
17390         * string/strncat.c: Likewise.
17391         * string/strncmp.c: Likewise.
17392         * string/strncpy.c: Likewise.
17393
17394 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17395
17396         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17397         __builtin_memcopy is called when src and dest ranges are known to not
17398         overlap.
17399
17400 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17401
17402         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17403         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17404         fwd_align_merge macro call.
17405         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17406         bwd_align_merge macro call.
17407         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17408
17409 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17410
17411         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17412         bwd_align_merge macros.
17413         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17414         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17415         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17416
17417 2012-04-18  David S. Miller  <davem@davemloft.net>
17418
17419         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17420
17421 2012-04-18  Andreas Jaeger  <aj@suse.de>
17422
17423         [BZ# 6794]
17424         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17425         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17426         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17427
17428         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17429         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17430         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17431
17432         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17433         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17434         Adjust for changed ldbl-128 files.
17435
17436         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17437         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17438         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17439
17440 2012-04-17  David S. Miller  <davem@davemloft.net>
17441
17442         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17443
17444 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17445
17446         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17447         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17448         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17449         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17450         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17451         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17452
17453 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17454
17455         [BZ #6794]
17456         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17457         * math/libm-test.inc: Add ilogb errno and exception tests.
17458         * math/w_ilogb.c: New file: ilogb wrapper.
17459         * math/w_ilogbf.c: New file: ilogbf wrapper.
17460         * math/w_ilogbl.c: New file: ilogbl wrapper.
17461         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17462         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17463         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17464         exception being thrown with 0.0 as argument.
17465         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17466         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17467         exception being thrown with 0.0 as argument.
17468         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17469         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17470         exception being thrown with 0.0 as argument.
17471         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17472         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17473         exception being thrown with 0.0 as argument.
17474         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17475         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17476         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17477         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17478         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17479         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17480         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17481         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17482         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17483
17484 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17485
17486         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17487         with altivec.
17488
17489 2012-04-16  Marek Polacek  <polacek@redhat.com>
17490
17491         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17492
17493 2012-04-16  Marek Polacek  <polacek@redhat.com>
17494
17495         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17496         operands of fdivp instruction.
17497
17498 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17499
17500         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17501         * elf/tst-auditmod3b.c: Likewise.
17502         * elf/tst-auditmod4b.c: Likewise.
17503         * elf/tst-auditmod5b.c: Likewise.
17504         * elf/tst-auditmod6b.c: Likewise.
17505         * elf/tst-auditmod6c.c: Likewise.
17506         * elf/tst-auditmod7b.c: Likewise.
17507         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17508         * sysdeps/x86_64/preconfigure.in: Likewise.
17509         * sysdeps/x86_64/preconfigure: Regenerated.
17510
17511 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17512
17513         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17514         __ILP32__.
17515
17516 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17517
17518         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17519         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17520
17521 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17522
17523         [BZ #13973]
17524         * locale/iso-639.def: Fix gl language name. Spotted by
17525         Yaron Shahrabani.
17526
17527 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17528
17529         [BZ #2074]
17530         * libio/libio.h (__io_write_fn): Update comment.
17531
17532 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17533
17534         [BZ #2074]
17535         * stdio.texi (Hook Functions): The user provided writer function
17536         is not allowed to return -1.
17537
17538 2012-04-11  David S. Miller  <davem@davemloft.net>
17539
17540         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17541
17542 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17543
17544         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17545         Add a leading slash to rtkaio.
17546
17547 2012-04-11  Jim Meyering  <meyering@redhat.com>
17548
17549         [BZ #11959]
17550         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17551         It is not necessarily an error to ignore fwrite's return
17552         value.  One can reliably use ferror to test for errors after
17553         the fact.
17554
17555 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17556
17557         * bits/types.h (__snseconds_t): New type.
17558         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17559
17560         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17561         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17562         (__SNSECONDS_T_TYPE): Likewise.
17563         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17564         (__SNSECONDS_T_TYPE): Likewise.
17565         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17566         (__SNSECONDS_T_TYPE): Likewise.
17567
17568 2012-04-10  Andreas Jaeger  <aj@suse.de>
17569
17570         [BZ #2636]
17571         * manual/time.texi (Processor Time): Return type of times is
17572         elapsed real time since an arbitrary point in the past.
17573         (CPU Time): Move CLK_TCK from here...
17574         (Processor Time): ...to here.  Correct description.
17575         * manual/conf.texi (Constants for Sysconf): Correct description of
17576         _SC_CLK_TCK.
17577
17578 2012-04-10  David S. Miller  <davem@davemloft.net>
17579
17580         [BZ #13967]
17581         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17582         where the is a gap between DT_REL(A) and DT_JMPREL.
17583
17584 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17585
17586         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17587         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17588         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17589
17590 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17591
17592         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17593         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17594         (dl_main): Handle --inhibit-cache.
17595         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17596         _dl_inhibit_cache.
17597         * elf/dl-load.c (_dl_map_object): Use it.
17598         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17599
17600 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17601
17602         [BZ #13872]
17603         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17604         (__ieee754_powl): Saturate large exponents rather than testing for
17605         overflow of y*log2(x).
17606         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17607         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17608         exceptions.
17609
17610         [BZ #11521]
17611         * math/s_ctan.c: Include <float.h>.
17612         (__ctan): Avoid internal overflow or cancellation in calculating
17613         denominator.
17614         * math/s_ctanf.c: Likewise.
17615         * math/s_ctanl.c: Likewise.
17616         * math/s_ctanh.c: Likewise.
17617         * math/s_ctanhf.c: Likewise.
17618         * math/s_ctanhl.c: Likewise.
17619         * math/libm-test.inc (ctan_test): Add more tests.
17620         (ctanh_test): Likewise.
17621         * sysdeps/i386/fpu/libm-test-ulps: Update.
17622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17623
17624 2012-04-09  Andreas Jaeger  <aj@suse.de>
17625
17626         [BZ #6894]
17627         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17628         is an optional BSD extension.
17629
17630         [BZ #10254]
17631         * manual/stdio.texi (Opening Streams): Document additional fopen
17632         parameters.
17633
17634 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17635
17636         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17637         %eax without telling the compiler.
17638
17639 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17640
17641         [BZ # 13963]
17642         * manual/install.texi: Use sourceware.org.
17643
17644 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17645
17646         [BZ #13873]
17647         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17648         (__ieee754_pow): Generate overflow and underflow using huge*huge
17649         and tiny*tiny rather than just returning constant infinity or zero
17650         for large exponents.
17651         * math/libm-test.inc (pow_test): Require overflow exceptions for
17652         applicable cases of large exponents.
17653
17654         [BZ #706]
17655         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17656         (__ieee754_pow): Use iterative multiplication algorithm only for
17657         integer exponents with absolute value below 1024.  Check for odd
17658         integer exponents when using algorithm for real exponents.
17659         * math/libm-test.inc (pow_test): Add more tests.
17660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17661
17662 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17663
17664         [BZ #13705]
17665         * math/libm-test.inc (exp_test): Do not allow overflow exception
17666         on underflow test.
17667
17668 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17669
17670         [BZ #13705]
17671         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17672         instead of __kernel_standard_f.
17673
17674 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17675
17676         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17677         * sysdeps/x86_64/memset_chk.S: Likewise.
17678
17679 2012-04-08  Andreas Jaeger  <aj@suse.de>
17680
17681         [BZ #10153]
17682         * manual/startup.texi (Environment Access): Describe return value
17683         for putenv and setenv.
17684
17685         [BZ #6895]
17686         * manual/filesys.texi (Directory Entries): Add description for
17687         DT_LNK.
17688
17689         [BZ #6890]
17690         * manual/filesys.texi (Directory Entries): Clarify that it's file
17691         system not operating system in the description of DT_UNKNOWN.
17692
17693         [BZ #6578]
17694         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17695
17696 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17697
17698         [BZ #6649]
17699         * manual/llio.texi (Opening and Closing Files): Add cross
17700         reference to explain mode argument.
17701
17702 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17703
17704         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17705         * sysdeps/x86_64/memset_chk.S: Likewise.
17706
17707 2012-04-07  David S. Miller  <davem@davemloft.net>
17708
17709         * elf/elf.h (R_SPARC_WDISP10): Define.
17710         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17711         R_SPARC_SIZE32.
17712         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17713         R_SPARC_SIZE64 and R_SPARC_H34.
17714
17715 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17716
17717         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17718         conditions and remove no longer applicable assertion.
17719
17720 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17721
17722         * bits/byteswap.h: Include <features.h>.
17723         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17724         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17725
17726 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17727
17728         * bits/byteswap.h (__bswap_16): Removed.
17729         Include <bits/byteswap-16.h> to get __bswap_16.
17730         * sysdeps/i386/bits/byteswap.h: Likewise.
17731         * sysdeps/s390/bits/byteswap.h: Likewise.
17732         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17733         * bits/byteswap-16.h: New file.
17734         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17735         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17736         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17737         * string/Makefile (headers): Add bits/byteswap-16.h.
17738
17739 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17740
17741         [BZ #13895]
17742         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17743         extra indirection.
17744         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17745         * nss/tst-nss-static.c: New.
17746
17747 2012-04-06  Robert Millan  <rmh@gnu.org>
17748
17749         [BZ #6486]
17750         * manual/llio.texi (File Position Primitive): lseek
17751         refers to WHENCE when it really means OFFSET.
17752
17753 2012-04-06  Andreas Jaeger  <aj@suse.de>
17754
17755         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17756         strncmp declarations.
17757
17758         * abilist/libc.abilist: Add __poll and __ppoll.
17759
17760 2012-04-05  David S. Miller  <davem@davemloft.net>
17761
17762         * scripts/check-local-headers.sh: Accept a host triplet in the
17763         path matched by the exclude regexp.
17764
17765         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17766         definition.
17767         * sysdeps/powerpc/powerpc32/dl-machine.h
17768         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17769         * sysdeps/s390/s390-32/dl-machine.h
17770         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17771         * sysdeps/sparc/sparc32/dl-machine.h
17772         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17773         * sysdeps/sparc/sparc64/dl-machine.h
17774         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17775
17776         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17777         lazy binding.
17778         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17779         undefined symbol errors.
17780
17781         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17782         DT_NEEDED entries.
17783
17784 2012-04-05  Michael Matz  <matz@suse.de>
17785
17786         [BZ #13592]
17787         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17788
17789 2012-04-05  Andreas Jaeger  <aj@suse.de>
17790
17791         [BZ #13908]
17792         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17793         comment.
17794
17795 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17796
17797         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17798         which ROUND is no valid rounding mode.
17799
17800 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17801
17802         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17803         read again.
17804         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17805
17806 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17807
17808         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17809         an exception using FPU order intentionally.
17810
17811 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17812
17813         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17814         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17815         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17816         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17817
17818 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17819
17820         [BZ #12340]
17821         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17822         EINVAL when BUFLEN is too smal.
17823
17824 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17825
17826         [BZ #13553]
17827         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17828         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17829
17830 2012-04-03  Andreas Jaeger  <aj@suse.de>
17831
17832         [BZ #13938]
17833         * manual/setjmp.texi (System V contexts): Fix sentence.
17834
17835         [BZ #13926]
17836         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17837         New macro for this case.
17838         [!__GNUC__] (__bswap_64): New inline function for this case.
17839         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17840         * bits/byteswap.h: Likewise.
17841         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17842         ull, guard with __GLIBC_HAVE_LONG_LONG.
17843
17844         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17845         __GLIBC_HAVE_LONG_LONG.
17846
17847         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17848         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17849
17850 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17851
17852         [BZ #13691]
17853         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17854         inptr and inend, rather than using last_ch.
17855
17856 2012-04-02  David S. Miller  <davem@davemloft.net>
17857
17858         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17859         * stdio-common/printf-parse.h (read_int): Change return type to
17860         'int', return -1 on INT_MAX overflow.
17861         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17862         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17863         overflows INT_MAX.  Check for overflow of in-format-string precision
17864         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17865         SIZE_MAX not INT_MAX for integer overflow test.
17866         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17867         skip the construct in the format string but do not record anything.
17868         * stdio-common/bug22.c: Adjust to test both width/prevision
17869         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17870         explicitly for proper errno values.
17871
17872 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17873
17874         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17875         CHAR_MAX.
17876         * string/test-strcmp.c [! WIDE]: Likewise.
17877         * time/tst-mktime2.c: Likewise for INT_MAX.
17878         * string/test-string.h: #include <sys/param.h> for MIN.
17879
17880         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17881         * sysdeps/i386/init-first.c (init): Likewise.
17882         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17883         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17884         * sysdeps/sh/init-first.c (init): Likewise.
17885
17886 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17887
17888         * po/ru.po: Update from translation team.
17889         * po/vi.po: Likewise.
17890
17891 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17892
17893         * resolv/nss_dns/dns-host.c: Merge copyright years.
17894
17895 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17896
17897         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17898         Optimize memcpy with prefetch if
17899         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17900         src, dst pointers have unequal 16 byte alignments.
17901
17902 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17903
17904         [BZ #13928]
17905         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17906         from a CNAME entry and return the minimum ttl for the query.
17907         (gaih_getanswer_slice): Likewise.
17908
17909 2012-03-30  Jeff Law  <law@redhat.com>
17910
17911         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17912         due to long keys.
17913         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17914         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17915
17916         * resolv/nss_dns/dns-host.c: Update copyright year.
17917
17918 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17919
17920         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17921         requests to save a system call.  Fix check that all bytes are sent.
17922
17923         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17924         comments for sendmmsg.
17925
17926 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17927
17928         [BZ #13691]
17929         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17930         with only 1 character between 0x0041 and 0x01b0.
17931         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17932         * wcsmbs/tst-mbsnrtowcs.c: New file.
17933
17934 2012-03-29  David S. Miller  <davem@davemloft.net>
17935
17936         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17937         small copies by hand.
17938
17939 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17940
17941         [BZ #13761]
17942         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17943         _nss_compat_initgroups_dyn): Fall back to malloc/free
17944         for large group memberships.
17945
17946 2012-03-28  David S. Miller  <davem@davemloft.net>
17947
17948         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17949         that branches into memcpy.
17950         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17951         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17952         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17953         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17954         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17955         bits.
17956         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17957         implementation too.
17958         * sysdeps/sparc/mempcpy.S: New file.
17959
17960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17961         the IFUNC routine in the libc case.
17962         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17963
17964         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17965         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17966         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17967         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17968         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17969         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17970         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17971         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17972
17973         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17974         loop to 256 bytes instead of 64 bytes and fix test signedness.
17975
17976         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17977         * sysdeps/sparc/sparc32/Makefile: rather than here...
17978         * sysdeps/sparc/sparc64/Makefile: and here.
17979
17980 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17981
17982         * malloc/mallocbug.c: Avoid warnings about unused variables.
17983
17984 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17985
17986         [BZ #13760]
17987         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17988         in the right place. Discard and retry query if response is
17989         larger than input buffer size.
17990
17991 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17992
17993         [BZ #369]
17994         [BZ #2678]
17995         [BZ #3866]
17996         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17997         x for large integer exponent.
17998         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17999         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18000         sign of result as needed afterwards.
18001         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18002         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18003         result for underflowing pow the same as for overflow.
18004         (__kernel_standard_l): Handle powl overflow and underflow here
18005         rather than calling __kernel_standard.
18006         * math/libm-test.inc (pow_test): Add more tests.
18007
18008         [BZ #3868]
18009         [BZ #13879]
18010         [BZ #13910]
18011         [BZ #13911]
18012         [BZ #13912]
18013         [BZ #13913]
18014         [BZ #13915]
18015         [BZ #13916]
18016         [BZ #13917]
18017         [BZ #13918]
18018         [BZ #13919]
18019         [BZ #13920]
18020         [BZ #13921]
18021         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18022         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18023         (__kernel_standard_l): New function.
18024         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18025         __kernel_standard.
18026         * math/w_acosl.c (__acosl): Likewise.
18027         * math/w_asinl.c (__asinl): Likewise.
18028         * math/w_atan2l.c (__atan2l): Likewise.
18029         * math/w_atanhl.c (__atanhl): Likewise.
18030         * math/w_coshl.c (__coshl): Likewise.
18031         * math/w_exp10l.c (__exp10l): Likewise.
18032         * math/w_exp2l.c (__exp2l): Likewise.
18033         * math/w_fmodl.c (__fmodl): Likewise.
18034         * math/w_hypotl.c (__hypotl): Likewise.
18035         * math/w_j0l.c (__j0l, __y0l): Likewise.
18036         * math/w_j1l.c (__j1l, __y1l): Likewise.
18037         * math/w_jnl.c (__jnl, __ynl): Likewise.
18038         * math/w_lgammal.c (__lgammal): Likewise.
18039         * math/w_log10l.c (__log10l): Likewise.
18040         * math/w_log2l.c (__log2l): Likewise.
18041         * math/w_logl.c (__logl): Likewise.
18042         * math/w_powl.c (__powl): Likewise.
18043         * math/w_remainderl.c (__remainderl): Likewise.
18044         * math/w_scalbl.c (sysv_scalbl): Likewise.
18045         * math/w_sinhl.c (__sinhl): Likewise.
18046         * math/w_sqrtl.c (__sqrtl): Likewise.
18047         * math/w_tgammal.c (__tgammal): Likewise.
18048         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18049         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18050         * math/libm-test.inc (acos_test): Add more tests.
18051         (acosh_test): Likewise.
18052         (asin_test): Likewise.
18053         (atanh_test): Likewise.
18054         (exp_test): Likewise.
18055         (exp10_test): Likewise.
18056         (exp2_test): Likewise.
18057         (expm1_test): Likewise.
18058         (lgamma_test): Likewise.
18059         (log_test): Likewise.
18060         (log10_test): Likewise.
18061         (log1p_test): Likewise.
18062         (log2_test): Likewise.
18063         (pow_test): Do not allow some spurious overflow exceptions.
18064         (sqrt_test): Add more tests.
18065         (tgamma_test): Likewise.
18066         (y0_test): Likewise.
18067         (y1_test): Likewise.
18068         (yn_test): Likewise.
18069
18070 2012-03-27  Anton Blanchard  <anton@samba.org>
18071
18072         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18073         MAP_HUGETLB.
18074         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18075         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18076         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18077
18078 2012-03-27  David S. Miller  <davem@davemloft.net>
18079
18080         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18081
18082         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18083         have-as-vis3 check.
18084
18085 2012-03-27  Andreas Jaeger  <aj@suse.de>
18086
18087         * sysdeps/x86_64/elf/configure.in: Moved to ...
18088         * sysdeps/x86_64/configure.in: ... here.
18089         * sysdeps/x86_64/elf/start.S: Moved to ...
18090         * sysdeps/x86_64/start.S: ... here.
18091         * sysdeps/x86_64/elf/configure: Delete.
18092
18093         * sysdeps/x86_64/configure.in: Merge contents from
18094         sysdeps/i386/configure.in (without i686 check).
18095
18096         * sysdeps/i386/elf/Versions: Merge into ...
18097         * sysdeps/i386/Versions: ... this.
18098         * sysdeps/i386/elf/Versions: Delete file.
18099         * sysdeps/i386/elf/start.S: Moved to ...
18100         * sysdeps/i386/start.S: ...here.
18101         * sysdeps/i386/elf/configure.in: Merge into...
18102         * sysdeps/i386/configure.in: ...here.
18103         * sysdeps/i386/elf/configure.in: Delete file.
18104         * sysdeps/i386/elf/configure: Delete file.
18105
18106         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18107         * debug/backtracesyms.c: ... here.
18108         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18109         * debug/backtracesymsfd.c: ... here.
18110         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18111         * sysdeps/generic/ifunc-sel.h: ... here.
18112
18113         * sysdeps/unix/i386/start.c: Delete file.
18114         * sysdeps/unix/sparc/start.c: Delete file.
18115         * sysdeps/unix/start.c: Delete file.
18116
18117         * sysdeps/sh/elf/configure.in: Moved to ...
18118         * sysdeps/sh/configure.in: ... here.
18119         * sysdeps/sh/elf/start.S: Moved to ...
18120         * sysdeps/sh/start.S: ... here.
18121         * sysdeps/sh/elf/configure: Delete file.
18122
18123         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18124         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18125         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18126         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18127         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18128         * sysdeps/powerpc/powerpc64/start.S: here.
18129         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18130         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18131         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18132         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18133         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18134
18135         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18136         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18137         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18138         * sysdeps/powerpc/powerpc32/start.S: ... here.
18139         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18140         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18141         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18142
18143         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18144         * sysdeps/powerpc/ifunc-sel.h: ... here.
18145         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18146         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18147
18148         * sysdeps/sparc/elf/configure.in: Moved to ...
18149         * sysdeps/sparc/configure.in: ... here.
18150         * sysdeps/sparc/elf/configure: Delete file.
18151         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18152         * sysdeps/sparc/sparc32/start.S: ... here.
18153         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18154         * sysdeps/sparc/sparc64/start.S: ... here.
18155         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18156         * sysdeps/sparc/sparc32/Makefile: ... this.
18157         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18158         * sysdeps/sparc/sparc64/Makefile: ... this.
18159
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/bsd-setjmp.S: Moved to ...
18163         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18164         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18165         * sysdeps/s390/s390-32/setjmp.S: ... here.
18166         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18167         * sysdeps/s390/s390-32/configure.in: ... here.
18168         * sysdeps/s390/s390-32/elf/configure: Delete file.
18169         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18170         * sysdeps/s390/s390-32/start.S: ... here.
18171
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/bsd-setjmp.S: Moved to ...
18175         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18176         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18177         * sysdeps/s390/s390-64/setjmp.S: ... here.
18178         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18179         * sysdeps/s390/s390-64/configure.in: ... here
18180         * sysdeps/s390/s390-64/elf/configure: Delete file.
18181         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18182         * sysdeps/s390/s390-64/start.S: ... here.
18183         * sysdeps/s390/s390-64/elf/configure: Delete.
18184
18185         * configure.in: Remove support for elf directories in sysdeps.
18186
18187         * configure: Regenerated.
18188         * sysdeps/i386/configure: Regenerated.
18189         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18190         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18191         * sysdeps/s390/s390-32/configure: Regenerated.
18192         * sysdeps/s390/s390-64/configure: Regenerated.
18193         * sysdeps/sh/configure: Regenerated.
18194         * sysdeps/sparc/configure: Regenerated.
18195         * sysdeps/x86_64/configure: Regenerated.
18196
18197 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18198
18199         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18200
18201         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18202         denormal result into account.
18203
18204 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18205
18206         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18207         Reported by Allan McRae <allan@archlinux.org>.
18208
18209 2012-03-23  Jeff Law  <law@redhat.com>
18210
18211         * nss/getnssent.c (__nss_getent): Fix typo.
18212
18213 2012-03-23  David S. Miller  <davem@davemloft.net>
18214
18215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18216
18217 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18218
18219         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18220         to pad to uint64_t for each field.
18221         (dl_tls_index): Replace unsigned long with uint64_t.
18222
18223 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18224         Paul Pluzhnikov  <ppluzhnikov@google.com>
18225
18226         [BZ #6528]
18227         * grp/Makefile (otherlibs): Don't set it.
18228         * inet/Makefile (otherlibs): Likewise.
18229         * login/Makefile (otherlibs): Likewise.
18230         * nscd/Makefile (otherlibs): Likewise.
18231         * posix/Makefile (otherlibs): Likewise.
18232         * pwd/Makefile (otherlibs): Likewise.
18233         * rt/Makefile (otherlibs): Likewise.
18234         * sunrpc/Makefile (otherlibs): Likewise.
18235         * nss/Makefile (otherlibs): Likewise.
18236         Add libnss_files to routines and static-only-routines.
18237         ($(objpfx)getent): Remove rule.
18238         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18239         static-only-routines.
18240
18241 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18242
18243         [BZ #13892]
18244         * math/s_cexp.c: Include <float.h>.
18245         (__cexp): Handle exp result overflowing not necessarily
18246         overflowing both real and imaginary parts of result.
18247         * math/s_cexpf.c: Likewise.
18248         * math/s_cexpl.c: Likewise.
18249         * math/libm-test.inc (cexp_test): Add more tests.
18250         * sysdeps/i386/fpu/libm-test-ulps: Update.
18251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18252
18253 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18254
18255         * include/link.h (ELFW): New macro.
18256         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18257         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18258
18259 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18260
18261         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18262         with uint64_t.
18263
18264 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18265
18266         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18267         declaration.
18268         (struct La_x32_retval): Likewise.
18269
18270 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18271
18272         * sysdeps/x86_64/preconfigure.in: New file.
18273         * sysdeps/x86_64/preconfigure: New generated file.
18274
18275 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18276
18277         [BZ #13824]
18278         * math/e_exp2l.c: Include <float.h>.
18279         (__ieee754_exp2l): Handle overflow and underflow cases
18280         separately.  Only pass fractional part of argument to
18281         __ieee754_expl.
18282         * math/libm-test.inc (exp2_test): Add more tests.
18283
18284         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18285         negating x to take absolute value.
18286         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18287         Likewise.
18288         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18289         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18290         Likewise.
18291         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18292         computing low part if x was negated.
18293         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18294
18295 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18298         la_x32_gnu_pltexit.
18299         (pltexit): Cast int_retval to ptrdiff_t.
18300         * elf/tst-auditmod3b.c: Likewise.
18301         * elf/tst-auditmod4b.c: Likewise.
18302         * elf/tst-auditmod5b.c: Likewise.
18303         * elf/tst-auditmod6b.c: Likewise.
18304         * elf/tst-auditmod6c.c: Likewise.
18305         * elf/tst-auditmod7b.c: Likewise.
18306
18307         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18308         and x32_gnu_pltexit.
18309
18310         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18311         __ELF_NATIVE_CLASS.
18312         (La_x32_regs): New macro.
18313         (La_x32_retval): Likewise.
18314         (la_x32_gnu_pltenter): New function prototype.
18315         (la_x32_gnu_pltexit): Likewise.
18316
18317 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18318
18319         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18320         exponent.
18321
18322         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18323
18324         * configure.in (libc_cv_cc_nofma): Check for option to disable
18325         generation of FMA instructions.
18326         * configure: Regenerate.
18327         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18328         * sysdeps/ieee754/dbl-64/Makefile: New file.
18329         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18330         Remove brandred-fma4.
18331         (CFLAGS-brandred-fma4.c): Remove.
18332         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18333         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18334         define.
18335         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18336         define.
18337
18338 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18339
18340         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18341         LLONG_MAX != LONG_MAX.
18342         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18343         (_fitoa_word): Likewise.
18344         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18345         LLONG_MAX != LONG_MAX.
18346         * stdio-common/_itowa.h: Include <_itoa.h>.
18347         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18348         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18349         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18350         only if not defined.
18351         (_ITOA_WORD_TYPE): Likewise.
18352         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18353         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18354
18355 2012-03-21  David S. Miller  <davem@davemloft.net>
18356
18357         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18358
18359 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18360
18361         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18362         of x86_64 when setting libc_cv_slibdir, libdir and
18363         libc_cv_localedir.
18364         * sysdeps/unix/sysv/linux/configure: Regenerated.
18365
18366 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18367
18368         * manual/lang.texi (Old Varargs): Remove section.
18369         (How Variadic): Update menu.
18370         (va_start): Do not mention varargs.h.
18371
18372 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18373             Joseph Myers  <joseph@codesourcery.com>
18374
18375         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18376         link test.
18377         * configure: Regenerated.
18378
18379 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18380
18381         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18382         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18383         conformtest.pl
18384
18385 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18386
18387         * NOTES: Remove.
18388         * Makefile (files-for-dist): Remove NOTES.
18389         (NOTES): Remove rule.
18390         * README: Don't refer to NOTES.
18391         * manual/creature.texi: Don't include macros.texi.
18392         * manual/intro.texi (creature.texi): Remove comment referring to
18393         NOTES.
18394
18395         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18396         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18397         * configure: Regenerated.
18398         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18399         LIBC_TRY_CC_OPTION.
18400         (libc_cv_as_i686): Likewise.
18401         (libc_cv_cc_avx): Likewise.
18402         (libc_cv_cc_sse2avx): Likewise.
18403         (libc_cv_cc_fma4): Likewise.
18404         (libc_cv_cc_novzeroupper): Likewise.
18405         * sysdeps/i386/configure: Regenerated.
18406
18407         [BZ #13883]
18408         * sysdeps/i386/fpu/s_cexp.S: Remove.
18409         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18410         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18411         * math/libm-test.inc (cexp_test): Add more tests.
18412         * sysdeps/i386/fpu/libm-test-ulps: Update.
18413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18414
18415 2012-03-21  Allan McRae  <allan@archlinux.org>
18416
18417         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18418
18419 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18420
18421         [BZ #13871]
18422         * math/w_exp2.c: Do not include <float.h>.
18423         (o_threshold, u_threshold): Remove.
18424         (__exp2): Calculate result before checking finiteness and calling
18425         __kernel_standard.
18426         * math/w_exp2f.c: Likewise.
18427         * math/w_exp2l.c: Likewise.
18428         * math/libm-test.inc (exp2_test): Require overflow exception for
18429         1e6 input.
18430
18431         [BZ #3866]
18432         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18433         range of signed 64-bit integers before using fistpll.  Remove
18434         checks for whether integers fit in mantissa bits.
18435         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18436         the range of signed 32-bit integers before using fistpl.  Remove
18437         checks for whether integers fit in mantissa bits.
18438         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18439         (__ieee754_powl): Test for y outside the range of signed 64-bit
18440         integers before using fistpll.  Reduce 64-bit values to 63-bit
18441         ones as needed.
18442         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18443         divide-by-zero is raised for zero to large negative powers.
18444         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18445         (__ieee754_powl): Test for y outside the range of signed 64-bit
18446         integers before using fistpll.  Reduce 64-bit values to 63-bit
18447         ones as needed.
18448         * math/libm-test.inc (pow_test): Add more tests.
18449
18450 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18451
18452         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18453         <stdio-common/_itoa.h>.
18454         * debug/segfault.c: Likewise.
18455         * elf/dl-cache.c: Likewise.
18456         * elf/dl-minimal.c: Likewise.
18457         * elf/dl-misc.c: Likewise.
18458         * elf/dl-sysdep.c: Likewise.
18459         * elf/dl-version.c: Likewise.
18460         * elf/rtld.c: Likewise.
18461         * hurd/hurdsock.c: Likewise.
18462         * hurd/lookup-retry.c: Likewise.
18463         * malloc/malloc.c: Likewise.
18464         * malloc/mtrace.c: Likewise.
18465         * nscd/nscd_getgr_r.c: Likewise.
18466         * nscd/nscd_getpw_r.c: Likewise.
18467         * nscd/nscd_getserv_r.c: Likewise.
18468         * posix/getopt_init.c: Likewise.
18469         * posix/wordexp.c: Likewise.
18470         * stdio-common/_itoa.c: Likewise.
18471         * stdio-common/printf_fphex.c: Likewise.
18472         * stdio-common/vfprintf.c: Likewise.
18473         * string/_strerror.c: Likewise.
18474         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18475         * sysdeps/i386/i686/hp-timing.h: Likewise.
18476         * sysdeps/mach/_strerror.c: Likewise.
18477         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18478         * sysdeps/mach/hurd/sethostid.c: Likewise.
18479         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18480         * sysdeps/mach/xpg-strerror.c: Likewise.
18481         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18482         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18483         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18484         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18485         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18486         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18487         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18488         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18489         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18490         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18491         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18492         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18493         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18494         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18495         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18496         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18497         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18498         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18499         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18500         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18501         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18502
18503         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18504
18505         * stdio-common/_itoa.h: Moved to ...
18506         * sysdeps/generic/_itoa.h: Here.
18507
18508         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18509
18510         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18511         instead of "_itoa.h" and "_itowa.h".
18512         * stdio-common/vfprintf.: Likewise.
18513
18514 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18515
18516         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18517         <bits/wordsize.h>.
18518         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18519         (__signbit): Likwise.
18520         (llrintf): Likwise.
18521         (llrint): Likwise.
18522
18523 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18524
18525         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18526         __WORDSIZE != 64.
18527
18528 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18529
18530         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18531         OVERFLOW_EXCEPTION_OK.
18532         * math/libm-test.inc ("Philosophy"): Update comment about
18533         exception testing.
18534         (OVERFLOW_EXCEPTION): Define.
18535         (OVERFLOW_EXCEPTION_OK): Likewise.
18536         (INVALID_EXCEPTION_OK): Renumber.
18537         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18538         (IGNORE_ZERO_INF_SIGN): Likewise.
18539         (test_exceptions): Handle FE_OVERFLOW.
18540         (exp10_test): Expect overflow exceptions.
18541         (exp2_test): Likewise.
18542         (expm1_test): Likewise.
18543         (nextafter_test): Likewise.
18544         (pow_test): Likewise.
18545         (scalbn_test): Likewise.
18546         (scalbln_test): Likewise.
18547
18548 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18549
18550         * sysdeps/x86_64/bits/atomic.h
18551         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18552         64bit integer.
18553         (atomic_exchange_acq): Likewise.
18554         (__arch_exchange_and_add_body): Likewise.
18555         (__arch_add_body): Likewise.
18556         (atomic_add_negative): Likewise.
18557         (atomic_add_zero): Likewise.
18558
18559 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18560
18561         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18562         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18563
18564 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18565
18566         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18567         Check __x86_64__ instead of __WORDSIZE.
18568
18569 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18570
18571         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18572
18573 2012-03-19  David S. Miller  <davem@davemloft.net>
18574
18575         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18576
18577         * sysdeps/sparc/fpu/fenv_private.h: New file.
18578         * sysdeps/sparc/fpu/math_private.h: Use it.
18579         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18580         Remove.
18581         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18582         (libc_feholdexcept_setroundl): Remove.
18583         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18584         Remove.
18585         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18586         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18587
18588 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18589
18590         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18591         int64_t instead of long int.
18592         (INSERT_WORDS64): Likwise.
18593
18594 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18595
18596         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18597         _Unwind_GetCFA return to _Unwind_Ptr first.
18598
18599 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18600
18601         [BZ #13629]
18602         * math/s_clog.c: Include <float.h>.
18603         (__clog): Scale large or subnormal inputs.
18604         * math/s_clogf.c: Likewise.
18605         * math/s_clogl.c: Likewise.
18606         * math/s_clog10.c: Include <float.h>.
18607         (M_LOG10_2): Define.
18608         (__clog10): Scale large or subnormal inputs.
18609         * math/s_clog10f.c: Likewise.
18610         * math/s_clog10l.c: Likewise.
18611         * math/libm-test.inc (clog_test): Add more tests.
18612         (clog10_test): Likewise.
18613         * sysdeps/i386/fpu/libm-test-ulps: Update.
18614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18615
18616         [BZ #11451]
18617         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18618         x and y.
18619         * math/libm-test.inc (atan2_test): Add another test.
18620
18621         * Makerules (common-objdir-compile): Remove.
18622         * sysdeps/unix/Makefile (config-generated): Do not add
18623         $(unix-generated) to variable.
18624         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18625         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18626         Remove rule.
18627         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18628         Likewise.
18629         [generic bits/local_lim.h] (before-compile): Do not append to
18630         variable.
18631         [generic bits/local_lim.h] (common-generated): Likewise.
18632         [generic sys/param.h] (before-compile): Do not append to variable.
18633         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18634         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18635         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18636         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18637         include.
18638         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18639         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18640         [generic sys/param.h] ($(addprefix
18641         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18642         [generic sys/param.h] (common-generated): Do not append to
18643         variable.
18644         [generic sys/param.h] (sysdep_headers): Likewise.
18645         [generic bits/errno.h] (before-compile): Do not append to
18646         variable.
18647         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18648         rule.
18649         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18650         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18651         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18652         [generic bits/errno.h] (common-generated): Do not append to
18653         variable.
18654         [generic bits/ioctls.h] (before-compile): Do not append to
18655         variable.
18656         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18657         rule.
18658         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18659         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18660         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18661         rule.
18662         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18663         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18664         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18665         [generic bits/ioctls.h] (common-generated): Do not append to
18666         variable.
18667         [generic sys/syscall.h] (syscall.h): Remove variable.
18668         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18669         rule.
18670         [generic sys/syscall.h] (before-compile): Do not append to
18671         variable.
18672         [generic sys/syscall.h] (common-generated): Likewise.
18673         * sysdeps/unix/errnos-tmpl.c: Remove file.
18674         * sysdeps/unix/errnos.awk: Likewise.
18675         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18676         * sysdeps/unix/ioctls.awk: Likewise.
18677         * sysdeps/unix/mk-local_lim.c: Likewise.
18678         * sysdeps/unix/snarf-ioctls: Likewise.
18679
18680 2012-03-19  Richard Henderson  <rth@twiddle.net>
18681
18682         * sysdeps/i386/fpu/fenv_private.h: New file.
18683         * sysdeps/i386/fpu/math_private.h: Use it.
18684         (math_opt_barrier, math_force_eval): Remove.
18685         (libc_feholdexcept_setround_53bit): Remove.
18686         (libc_feupdateenv_53bit): Remove.
18687         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18688         (math_opt_barrier, math_force_eval): Remove.
18689         (libc_feholdexcept): Remove.
18690         (libc_feholdexcept_setround): Remove.
18691         (libc_fetestexcept, libc_fesetenv): Remove.
18692         (libc_feupdateenv_test): Remove.
18693         (libc_feupdateenv, libc_feholdsetround): Remove.
18694         (libc_feresetround): Remove.
18695
18696         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18697         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18698
18699         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18700         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18701         (libc_feupdateenv_testl): New.
18702         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18703         (libc_feupdateenv_testf): New.
18704         (libc_feupdateenv): Use libc_feupdateenv_test.
18705         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18706         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18707
18708         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18709         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18710         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18711         (libc_feresetround_noex): New.
18712         (libc_feresetround_noexf): New.
18713         (libc_feresetround_noexl): New.
18714         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18715         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18716         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18717         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18718         SET_RESTORE_ROUND.
18719         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18720         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18721         (__cos): Likewise.
18722         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18723         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18724         SET_RESTORE_ROUND_NOEX.
18725         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18726         SET_RESTORE_ROUND_NOEXF.
18727         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18728         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18729         (libc_feholdsetroundf): New.
18730         (libc_feresetround, libc_feresetroundf): New.
18731
18732         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18733         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18734         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18735
18736         * sysdeps/generic/math_private.h: Include <fenv.h>.
18737         (default_libc_feholdexcept): New.
18738         (default_libc_feholdexcept_setround): New.
18739         (default_libc_fesetenv, default_libc_feupdateenv): New.
18740         (libc_feholdexcept): Only define if undefined.
18741         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18742         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18743         (libc_feholdexcept_setroundl): Likewise.
18744         (libc_feholdexcept_setround_53bit): Likewise.
18745         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18746         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18747         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18748         (libc_feupdateenv_53bit): Likewise.
18749         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18750         (libc_feholdexcept): Convert from macro to inline function.
18751         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18752         (libc_fesetenv, libc_feupdateenv): Likewise.
18753
18754         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18755         not previously defined.
18756         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18757         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18758         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18759         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18760         * sysdeps/ieee754/flt-32/math_private.h: New file.
18761         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18762         math_private.h below SET_FLOAT_WORD.
18763         (__isnan, __isinf_ns, __finite): Remove.
18764         (__isnanf, __isinf_nsf, __finitef): Remove.
18765
18766 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18767
18768         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18769
18770 2012-03-17  David S. Miller  <davem@davemloft.net>
18771
18772         [BZ #6471]
18773         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18774         for 2.16.
18775
18776 2012-03-16  David S. Miller  <davem@davemloft.net>
18777
18778         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18779         warnings.
18780
18781         [BZ #6471]
18782         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18783         properly.
18784         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18785         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18786         sysdep_routines when subdir is sysvipc.
18787         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18788         __getshmlba helper.
18789
18790         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18791
18792 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18793
18794         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18795         [__LP64__].
18796
18797 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18798
18799         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18800         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18801         (__lround): Renamed to ...
18802         (__llround): This.  Replace long int with long long int.
18803         Define lround functions as aliases of llround functions.
18804         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18805
18806 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18807
18808         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18809         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18810         adresses to uintptr_t.  Replace "long int" and "unsigned long
18811         int" with "greg_t" on va_arg.
18812
18813 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18814
18815         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18816         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18817
18818         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18819         Move e_machine check before EI_CLASS check.  Handle x32
18820         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18821         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18822         SKIP_EM_IA_64 and include
18823         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18824
18825         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18826         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18827         (add_system_dir): New macro.
18828
18829         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18830         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18831
18832 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18833
18834         [BZ #2551]
18835         [BZ #2552]
18836         [BZ #2553]
18837         [BZ #2554]
18838         [BZ #2562]
18839         [BZ #2563]
18840         [BZ #2565]
18841         [BZ #2566]
18842         [BZ #2576]
18843         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18844         (y0): Likewise.
18845         * math/w_j0f.c (j0f): Likewise.
18846         (y0f): Likewise.
18847         * math/w_j0l.c (__j0l): Likewise.
18848         (__y0l): Likewise.
18849         * math/w_j1.c (j1): Likewise.
18850         (y1): Likewise.
18851         * math/w_j1f.c (j1f): Likewise.
18852         (y1f): Likewise.
18853         * math/w_j1l.c (__j1l): Likewise.
18854         (__y1l): Likewise.
18855         * math/w_jn.c (jn): Likewise.
18856         (yn): Likewise.
18857         * math/w_jnf.c (jnf): Likewise.
18858         (ynf): Likewise.
18859         * math/w_jnl.c (__jnl): Likewise.
18860         (__ynl): Likewise.
18861         * math/libm-test.inc (j0_test): Add more tests.
18862         (j1_test): Likewise.
18863         (jn_test): Likewise.  Add trailing semicolon to existing test.
18864         (y0_test): Likewise.
18865         (y1_test): Likewise.
18866         * sysdeps/i386/fpu/libm-test-ulps: Update.
18867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18868
18869         [BZ #13851]
18870         [BZ #13854]
18871         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18872         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18873         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18874         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18875         (__tanl): Set errno for infinite argument.
18876         * sysdeps/i386/fpu/mptan.c: Remove.
18877         * sysdeps/i386/fpu/s_tan.S: Likewise.
18878         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18879         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18880         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18881         * math/libm-test.inc (tan_test): Add more tests and enable more
18882         tests for double and long double.
18883         * sysdeps/i386/fpu/libm-test-ulps: Update.
18884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18885
18886 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18887
18888         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18889         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18890
18891 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18892
18893         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18894         * configure.in: Use it for both main tree and add-ons.
18895         * configure: Regenerated.
18896
18897 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18898
18899         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18900
18901 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18902
18903         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18904         in comment.
18905
18906         [BZ #13851]
18907         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18908         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18909         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18910         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18911         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18912         infinite argument.
18913         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18914         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18915         != 0 for prec == 2.
18916         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18917         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18918         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18919         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18920         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18921         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18922         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18923         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18924         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18925         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18926         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18927         * math/libm-test.inc (cos_test): Add more tests and enable more
18928         tests for long double.
18929         (sin_test): Likewise.
18930         (sincos_test): Likewise.
18931         * sysdeps/i386/fpu/libm-test-ulps: Update.
18932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18933
18934 2012-03-16  David S. Miller  <davem@davemloft.net>
18935
18936         * sysdeps/sparc/fpu/math_private.h: New file.
18937
18938 2012-03-15  David S. Miller  <davem@davemloft.net>
18939
18940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18941         file.
18942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18944         file.
18945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18946         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18947         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18948         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18949         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18950         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18951         sysdep routines.
18952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18953
18954         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18955         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18956
18957         * sysdeps/sparc/sparc-ifunc.h: New file.
18958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18959         sparc-ifunc.h
18960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18962         Likewise.
18963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18964         Likewise.
18965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18969         Likewise.
18970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18975         Likewise.
18976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18977         Likewise.
18978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18982         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18984         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18985         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18986         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18988         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18989         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18990         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18991         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18992         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18993         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18994         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18995         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18996         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18997         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18998         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18999         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19000         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19001         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19002
19003 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19004
19005         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19006         scaling.
19007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19008
19009 2012-03-15  Andreas Jaeger  <aj@suse.de>
19010
19011         [BZ #13852]
19012         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19013         ieee754/flt-32 implementation for sin, cos and sincos.
19014         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19015         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19016         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19017         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19018         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19019         ieee754/flt-32 implementation for tan.
19020
19021         * math/libm-test.inc (cos_test): Enable some large input tests for
19022         float as well
19023         (sin_test): Likewise.
19024         (sincos_test): Likewise.
19025         (tan_test): Add tests for large input.
19026
19027         * sysdeps/i386/fpu/libm-test-ulps: Update.
19028
19029 2012-03-15  Andreas Jaeger  <aj@suse.de>
19030
19031         [BZ #13658]
19032         * math/libm-test.inc (cos_test): Add more test cases.
19033         (sin_test): Likewise.
19034         (sincos_test): Likewise.
19035
19036 2012-03-15  Andreas Jaeger  <aj@suse.de>
19037
19038         [BZ #13837]
19039         * math/libm-test.inc (cos_test): Add a test case for large input
19040         value.
19041         (sin_test): Likewise.
19042         (sincos_test): Likewise.
19043
19044 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19045         Joseph Myers  <joseph@codesourcery.com>
19046
19047         [BZ #13658]
19048         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19049         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19050         * sysdeps/i386/fpu/branred.c: Likewise.
19051         * sysdeps/i386/fpu/dosincos.c: Likewise.
19052         * sysdeps/i386/fpu/mpa.c: Likewise.
19053         * sysdeps/i386/fpu/s_cos.S: Likewise.
19054         * sysdeps/i386/fpu/s_sin.S: Likewise.
19055         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19056         * sysdeps/i386/fpu/sincos32.c: Likewise.
19057
19058         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19059         Define.
19060         (libc_feupdateenv_53bit): Define.
19061         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19062         Define.
19063         (libc_feupdateenv_53bit): Define.
19064
19065         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19066         53 bit (without extend i386 double precision).
19067
19068         * math/libm-test.inc (sincos_test): Add tests for large input.
19069         (sin): Likewise.
19070         (cos): Likewise.
19071
19072         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19073
19074 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19075
19076         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19077
19078 2012-03-15  David S. Miller  <davem@davemloft.net>
19079
19080         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19081         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19082         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19083         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19084         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19086         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19087         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19093         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19096         file.
19097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19099         file.
19100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19102         file.
19103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19105         file.
19106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19107         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19108         fmin/fmax sysdep routines.
19109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19110
19111 2012-03-14  David S. Miller  <davem@davemloft.net>
19112
19113         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19114         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19115         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19116         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19117         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19118         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19119         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19120         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19121         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19122         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19123         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19124         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19125         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19126         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19127         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19128         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19129         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19130         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19131         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19132         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19133         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19134         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19135         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19136         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19137         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19138         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19139         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19140         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19141         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19142         routines.
19143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19144         file.
19145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19147         file.
19148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19150         file.
19151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19153         file.
19154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19156         file.
19157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19159         file.
19160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19161         file.
19162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19163         file.
19164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19165         file.
19166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19167         New file.
19168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19169         file.
19170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19171         file.
19172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19174         file.
19175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19177         file.
19178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19180         file.
19181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19183         VIS3 routines.
19184
19185         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19186         New file.
19187
19188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19189
19190         * sysdeps/sparc/configure.in: New file.
19191         * sysdeps/sparc/configure: Generate.
19192         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19193         * configure: Regenerate.
19194         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19195         * config.make.in (have-as-vis3): New.
19196         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19197         available use -Av9d instead of -Av9a.
19198         * sysdeps/sparc/sparc64/Makefile: Likewise.
19199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19201         New file.
19202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19203         file.
19204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19205         New file.
19206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19207         file.
19208         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19209         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19210         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19211         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19212         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19213
19214         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19215         fzeros/fnegs to load 0x80000000 into a float register instead of
19216         using the stack.
19217         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19218
19219 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19220
19221         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19222         bits/syscall.h.
19223         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19224         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19225         ($(inst_includedir)/bits/syscall.h): Remove rule.
19226         ($(objpfx)bits/syscall.d): Include instead of
19227         $(objpfx)syscall-list.d.
19228         (generated): Change syscall-list.h and syscall-list.d to
19229         bits/syscall.h and bits/syscall.d.
19230
19231 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19232
19233         [BZ #13846]
19234         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19235
19236 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19237
19238         [BZ #13841]
19239         * math/s_csqrt.c: Include <float.h>.
19240         (__csqrt): Scale large or subnormal inputs.
19241         * math/s_csqrtf.c: Likewise.
19242         * math/s_csqrtl.c: Likewise.
19243         * math/libm-test.inc (csqrt_test): Add more tests.
19244         * sysdeps/i386/fpu/libm-test-ulps: Update.
19245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19246
19247         [BZ #13840]
19248         * math/libm-test.inc (hypot_test): Add more tests.
19249
19250 2012-03-13  David S. Miller  <davem@davemloft.net>
19251
19252         [BZ #13840]
19253         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19254         double-precision for the calculation instead of scaling.
19255
19256 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19257
19258         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19259         manipulate bits before adding and subtracting TWO52[sx].
19260         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19261         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19262         Likewise.
19263         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19264
19265 2012-03-13  David S. Miller  <davem@davemloft.net>
19266
19267         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19268         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19269         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19270         rtld-global-offsets.h
19271         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19272
19273         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19274         large parameters.
19275
19276         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19277
19278         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19279         'err' in the ifdef scope in which it is actually used.
19280
19281         * nss/nss_db/db-init.c: Include string.h
19282
19283 2012-03-12  David S. Miller  <davem@davemloft.net>
19284
19285         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19286         masking out of the most significant byte of random value used.
19287         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19288         Fix coding style in previous change.
19289
19290         * sysdeps/unix/sysv/linux/kernel-features.h
19291         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19292         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19293         expression.
19294         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19295         later.
19296
19297 2012-03-11  David S. Miller  <davem@davemloft.net>
19298
19299         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19300         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19301         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19302         for 'resultvar' otherwise things get truncated on 64-bit.
19303
19304         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19305         Fix masking out of the most significant byte of random value used.
19306
19307         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19308
19309 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19310
19311         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19312
19313 2012-03-09  David S. Miller  <davem@davemloft.net>
19314
19315         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19316         variables with appropriate CPP guards.
19317         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19318         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19319         on resulting framesize and the management of the outregs buffer for pltexit.
19320         Preserve floating point return values across _dl_call_pltexit call.
19321         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19322         framesize and the management of the outregs buffer for pltexit.
19323         Preserve floating point return values across _dl_call_pltexit
19324         call.
19325         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19326         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19327         (print_exit): Fix format string for return register value.
19328
19329 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19330
19331         * sunrpc/Makefile (others): Add rpcgen.
19332         ($(objpfx)rpcgen): Remove special build rule and dependency on
19333         libc.
19334         * sunrpc/rpcgen.c: New file.
19335
19336 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19337
19338         [BZ #13673]
19339         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19340         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19341         * sysdeps/i386/crti.S: Likewise.
19342         * sysdeps/i386/crtn.S: Likewise.
19343         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19344         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19345         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19346         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19347         * sysdeps/sh/crti.S: Likewise.
19348         * sysdeps/sh/crtn.S: Likewise.
19349         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19350
19351         [BZ #13673]
19352         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19353         with URL.
19354         * locale/programs/locfile-kw.gperf: Likewise.
19355         * locale/programs/charmap-kw.h: Regenerated.
19356         * locale/programs/locfile-kw.h: Likewise.
19357
19358         [BZ #13673]
19359         * intl/plural.y: Replace FSF snail mail address with URL.
19360         * intl/plural.c: Regenerated.
19361
19362 2012-03-09  Richard Henderson  <rth@twiddle.net>
19363
19364         * include/math_private.h: Remove file.
19365         * math/math_private.h: Move file ...
19366         * sysdeps/generic/math_private.h: ... here.
19367
19368         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19369         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19370         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19371
19372         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19373         and <math_private.h>.
19374         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19375         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19376         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19377         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19378         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19379         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19380         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19381         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19382         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19383         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19384         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19385         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19386         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19387         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19388         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19389         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19390         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19391         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19392         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19393         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19394         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19395         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19396         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19397         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19398         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19399         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19400         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19401         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19402         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19403         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19404         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19405         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19406         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19407         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19408         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19409         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19410         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19411         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19412         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19413         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19414         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19415         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19416         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19417         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19418         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19419         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19420         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19421         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19422         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19423         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19424         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19425         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19426         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19427         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19428         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19429         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19430         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19431         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19432         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19433         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19434         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19435         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19436         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19437         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19438         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19439         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19440         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19441         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19442         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19443         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19444         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19445         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19446         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19447         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19448         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19449         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19450         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19451         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19452         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19453         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19454         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19455         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19456         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19457         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19458         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19459         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19460         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19461         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19462         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19463         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19464         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19465         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19466         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19467         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19468         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19469         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19470         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19471         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19472         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19473         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19474         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19475         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19476         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19477         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19478         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19479         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19480         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19481         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19482         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19483         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19484         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19485         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19486         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19487         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19488         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19489         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19490         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19491         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19492         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19493         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19494         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19495         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19496         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19497         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19498         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19499         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19500         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19501         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19502         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19503         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19504         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19505         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19506         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19507         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19508         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19509         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19510         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19511         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19512         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19513         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19514         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19515         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19516         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19517         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19518         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19519         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19520         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19521         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19522         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19523         * sysdeps/ieee754/k_standard.c: Likewise.
19524         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19525         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19526         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19527         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19528         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19529         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19530         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19531         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19533         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19534         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19535         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19536         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19537         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19538         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19539         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19540         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19541         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19542         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19543         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19544         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19545         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19546         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19547         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19548         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19549         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19550         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19551         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19552         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19553         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19554         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19555         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19556         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19557         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19558         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19559         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19560         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19561         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19562         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19563         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19564         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19565         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19566         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19567         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19568         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19569         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19570         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19571         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19572         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19573         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19574         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19575         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19576         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19577         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19578         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19579         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19580         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19581         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19582         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19583         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19584         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19585         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19586         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19587         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19588         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19589         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19590         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19591         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19592         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19593         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19594         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19595         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19596         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19597         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19598         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19599         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19600         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19601         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19602         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19603         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19604         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19605         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19606         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19607         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19608         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19609         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19610         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19611         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19612         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19613         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19614         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19615         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19616         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19617         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19618         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19619         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19620         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19621         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19622         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19623         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19624         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19625         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19626         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19627         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19628         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19629         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19630         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19631         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19632         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19633         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19634         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19635         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19636         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19637         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19638         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19639         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19640         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19641         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19642         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19643         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19644         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19645         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19646         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19647         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19648         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19649         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19650         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19651         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19652         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19653         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19654         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19655         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19656         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19657         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19658         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19659         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19660         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19661         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19662         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19663         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19664         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19665         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19666         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19667         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19668         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19669         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19670         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19671         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19672         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19673         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19674         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19675         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19676         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19677         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19678         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19679         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19680         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19681         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19682         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19683         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19684         * sysdeps/ieee754/s_lib_version.c: Likewise.
19685         * sysdeps/ieee754/s_matherr.c: Likewise.
19686         * sysdeps/ieee754/s_signgam.c: Likewise.
19687         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19688         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19689         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19690         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19691         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19692         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19693         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19694         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19695         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19696         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19697         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19698         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19699         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19700         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19701         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19702         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19703         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19704         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19705         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19706         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19707         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19708
19709 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19710
19711         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19712         * sunrpc/rpc_main.c: Likewise.
19713         * sunrpc/rpc_svcout.c: Likewise.
19714
19715 2012-03-09  David S. Miller  <davem@davemloft.net>
19716
19717         * include/math_private.h: New file.
19718
19719 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19720
19721         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19722         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19723         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19724         from <bits/socket_type.h>.
19725         (enum __socket_type): Don't define here.
19726         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19727         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19728         bits/socket_type.h.
19729
19730         [BZ #13566]
19731         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19732         checking __USE_GNU.
19733
19734         * Makerules ($(inst_includedir)/%.h): New rule.
19735         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19736         (install-others): Remove variable setting.
19737         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19738
19739 2012-03-08  Richard Henderson  <rth@twiddle.net>
19740
19741         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19742         from macro to inline function; merge with the
19743         !__LIBC_INTERNAL_MATH_INLINES version.
19744         (__ieee754_sqrtf): Likewise.
19745
19746         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19747         to inline function.
19748         (__rintf, __floor, __floorf): Likewise.
19749
19750         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19751         macro to inline function.
19752         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19753
19754         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19755         not <math/math_private.h>.
19756
19757 2012-03-08  David S. Miller  <davem@davemloft.net>
19758
19759         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19760         copyright year.
19761         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19762
19763 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19764
19765         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19766         normalization.
19767         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19768         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19769
19770 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19771
19772         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19773         be defined individually, they must be defined as a block.  Define
19774         S for printing a string instead of hidint the different by using a
19775         macro for adding the 'l'.
19776         * stdio-common/tst-fphex-wide.c: Adjust.
19777
19778 2012-03-07  Marek Polacek  <polacek@redhat.com>
19779
19780         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19781
19782 2012-03-08  Marek Polacek  <polacek@redhat.com>
19783
19784         [BZ #13806]
19785         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19786         * stdio-common/tst-fphex.c: Define a few macros to make the
19787         test reusable.  Use them.
19788         * stdio-common/tst-fphex-wide.c: New file.
19789
19790 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19791
19792         [BZ #6911]
19793         * manual/macros.texi (gnusystems): New macro.
19794         (nongnusystems): Likewise.
19795         (gnulinuxhurdsystems): Likewise.
19796         (gnuhurdsystems): Likewise..
19797         (gnulinuxsystems): Likewise.
19798         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19799         variants of the GNU system, not "GNU system".
19800         * manual/conf.texi: Likewise.
19801         * manual/errno.texi: Likewise.  Update example of errno macro
19802         expansion.
19803         * manual/filesys.texi: Likewise.
19804         (getumask): Document as specific to GNU/Hurd.
19805         * manual/install.texi: Likewise.  Reword some references to
19806         GNU/Linux.
19807         * manual/intro.texi: Likewise.
19808         * manual/io.texi: Likewise.
19809         (File Name Portability): Detail which constraints are inapplicable
19810         to all GNU systems and which are only inapplicable to GNU/Hurd.
19811         * manual/job.texi: Likewise.
19812         * manual/llio.texi: Likewise.
19813         (O_NOCTTY): Document as present on GNU/Linux.
19814         * manual/maint.texi: Likewise.
19815         * manual/memory.texi: Likewise.
19816         * manual/pattern.texi: Likewise.
19817         * manual/pipe.texi: Likewise.
19818         * manual/process.texi: Likewise.
19819         * manual/resource.texi: Likewise.
19820         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19821         child on GNU/Hurd.
19822         * manual/setjmp.texi: Likewise.
19823         * manual/signal.texi: Likewise.
19824         * manual/startup.texi: Likewise.
19825         * manual/stdio.texi: Likewise.
19826         * manual/terminal.texi: Likewise.
19827         (ONLCR): Document as POSIX.
19828         (OXTABS): Document availability on GNU/Linux as XTABS.
19829         (ONOEOT): Document availability separately from other bits.
19830         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19831         * manual/time.texi: Likewise.
19832         * manual/users.texi: Likewise.
19833         * INSTALL: Regenerated.
19834         * sysdeps/gnu/errlist.c: Regenerated.
19835
19836         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19837         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19838         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19839         puts.
19840         * configure: Regenerated.
19841
19842 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19843
19844         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19845         default includes instead of AC_HEADER_CHECK.
19846         * sysdeps/i386/configure: Regenerated.
19847
19848         [BZ #10716]
19849         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19850         * math/s_cacoshf.c (__cacoshf): Likewise.
19851         * math/s_cacoshl.c (__cacoshl): Likewise.
19852         * math/s_casinh.c (__casinh): Set signs of result from argument.
19853         * math/s_casinhf.c (__casinhf): Likewise.
19854         * math/s_casinhl.c (__casinhl): Likewise.
19855         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19856         (casinh_test): Add more tests.
19857         * sysdeps/i386/fpu/libm-test-ulps: Update.
19858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19859
19860 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19861
19862         * po/zh_TW.po: Update from translation team.
19863
19864         * login/Makefile (distribute): Remove variable.
19865         * catgets/Makefile: Likewise.
19866         * mach/Makefile: Likewise.
19867         * malloc/Makefile: Likewise.
19868         * misc/Makefile: Likewise.
19869         * iconv/Makefile: Likewise.
19870         * nscd/Makefile: Likewise.
19871         * hurd/Makefile: Likewise.
19872         * manual/Makefile: Likewise.
19873         * locale/Makefile: Likewise.
19874         * intl/Makefile: Likewise.
19875         * conform/Makefile: Likewise.
19876         * nss/Makefile: Likewise.
19877         * time/Makefile: Likewise.
19878         * soft-fp/Makefile: Likewise.
19879         * dirent/Makefile: Likewise.
19880         * gmon/Makefile: Likewise.
19881         * po/Makefile: Likewise.
19882         * rt/Makefile: Likewise.
19883         * socket/Makefile: Likewise.
19884         * math/Makefile: Likewise.
19885         * signal/Makefile: Likewise.
19886         * debug/Makefile: Likewise.
19887         * elf/Makefile: Likewise.
19888         * timezone/Makefile: Likewise.
19889         * stdlib/Makefile: Likewise.
19890         * iconvdata/Makefile: Likewise.
19891         * sunrpc/Makefile: Likewise.
19892         * io/Makefile: Likewise.
19893         * argp/Makefile: Likewise.
19894         * inet/Makefile: Likewise.
19895         * hesiod/Makefile: Likewise.
19896         * grp/Makefile: Likewise.
19897         * csu/Makefile: Likewise.
19898         * wctype/Makefile: Likewise.
19899         * crypt/Makefile: Likewise.
19900         * libio/Makefile: Likewise.
19901         * string/Makefile: Likewise.
19902         * nis/Makefile: Likewise.
19903         * resolv/Makefile: Likewise.
19904         * stdio-common/Makefile: Likewise.
19905         * wcsmbs/Makefile: Likewise.
19906         * dlfcn/Makefile: Likewise.
19907         * posix/Makefile: Likewise.
19908
19909         [BZ #6959]
19910         * timezone/Makefile: Don't install timezone files, just the programs
19911         and scripts.
19912
19913 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19914
19915         * nss/databases.def: Add missing gshadow entry.
19916
19917         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19918
19919 2012-03-06  Marek Polacek  <polacek@redhat.com>
19920
19921         [BZ #13726]
19922         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19923         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19924         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19925         * stdio-common/tst-long-dbl-fphex.c: New file.
19926
19927 2012-03-06  David S. Miller  <davem@davemloft.net>
19928
19929         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19930         (set_obp_int): New function.
19931         (get_obp_int): New function.
19932         (__get_clockfreq_via_dev_openprom): Likewise.
19933         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19934         Avoid unused variable warnings on 'val' and use builtin_expect.
19935         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19936         __builtin_expect.
19937         (INLINE_CLONE_SYSCALL): Likewise.
19938
19939 2012-03-05  David S. Miller  <davem@davemloft.net>
19940
19941         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19942
19943 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19944
19945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19946
19947         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19948         only for |x| >= 40.
19949         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19950
19951 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19952
19953         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19954         Replace gettimeofday with __vdso_gettimeofday.
19955
19956         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19957         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19958         __vdso_clock_gettime and __vdso_getcpu.
19959
19960         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19961         time with __vdso_time.
19962
19963 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19964
19965         * manual/lang.texi (size_t): Note types to which size_t may be
19966         equivalent with the GNU C Library, but do not describe when
19967         differences between them are significant.
19968
19969 2012-03-05  Andreas Jaeger  <aj@suse.de>
19970
19971         * sysdeps/i386/fpu/libm-test-ulps: Update.
19972
19973 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19974
19975         [BZ #3976]
19976         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19977         (__ieee754_pow): Save and restore rounding mode and use
19978         round-to-nearest for main computations.
19979         * math/libm-test.inc (pow_test_tonearest): New function.
19980         (pow_test_towardzero): Likewise.
19981         (pow_test_downward): Likewise.
19982         (pow_test_upward): Likewise.
19983         (main): Call the new functions.
19984         * sysdeps/i386/fpu/libm-test-ulps: Update.
19985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19986
19987         [BZ #3976]
19988         * math/libm-test.inc (cosh_test_tonearest): New function.
19989         (cosh_test_towardzero): Likewise.
19990         (cosh_test_downward): Likewise.
19991         (cosh_test_upward): Likewise.
19992         (sinh_test_tonearest): Likewise.
19993         (sinh_test_towardzero): Likewise.
19994         (sinh_test_downward): Likewise.
19995         (sinh_test_upward): Likewise.
19996         (main): Call the new functions.
19997         * sysdeps/i386/fpu/libm-test-ulps: Update.
19998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19999
20000 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20001
20002         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20003         default stack guard is set in last bytes.
20004         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20005
20006 2012-03-05  Kees Cook  <keescook@chromium.org>
20007
20008         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20009
20010         [BZ #13656]
20011         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20012         possibly allocate from heap instead of stack.
20013         * stdio-common/bug-vfprintf-nargs.c: New file.
20014         * stdio-common/Makefile (tests): Add nargs overflow test.
20015
20016 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20017
20018         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20019
20020 2012-03-03  Marek Polacek  <polacek@redhat.com>
20021
20022         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20023         * math/math_private.h: Likewise.
20024         * stdlib/tst-strtod.c: Likewise.
20025         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20026         * sysdeps/x86_64/bits/atomic.h: Likewise.
20027
20028 2012-03-02  David S. Miller  <davem@davemloft.net>
20029
20030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20034         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20035         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20036         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20037         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20038
20039 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20040
20041         [BZ #13792]
20042         * manual/examples/README: New file, says the example source files
20043         can be used under GPL>=2.
20044         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20045         line containing just "*/".
20046         * manual/examples/add.c: Add copyright header (GPL>=2).
20047         * manual/examples/argp-ex1.c: Likewise.
20048         * manual/examples/argp-ex2.c: Likewise.
20049         * manual/examples/argp-ex3.c: Likewise.
20050         * manual/examples/argp-ex4.c: Likewise.
20051         * manual/examples/atexit.c: Likewise.
20052         * manual/examples/db.c: Likewise.
20053         * manual/examples/dir.c: Likewise.
20054         * manual/examples/dir2.c: Likewise.
20055         * manual/examples/execinfo.c: Likewise.
20056         * manual/examples/filecli.c: Likewise.
20057         * manual/examples/filesrv.c: Likewise.
20058         * manual/examples/fmtmsgexpl.c: Likewise.
20059         * manual/examples/genpass.c: Likewise.
20060         * manual/examples/inetcli.c: Likewise.
20061         * manual/examples/inetsrv.c: Likewise.
20062         * manual/examples/isockad.c: Likewise.
20063         * manual/examples/longopt.c: Likewise.
20064         * manual/examples/memopen.c: Likewise.
20065         * manual/examples/memstrm.c: Likewise.
20066         * manual/examples/mkfsock.c: Likewise.
20067         * manual/examples/mkisock.c: Likewise.
20068         * manual/examples/mygetpass.c: Likewise.
20069         * manual/examples/pipe.c: Likewise.
20070         * manual/examples/popen.c: Likewise.
20071         * manual/examples/rprintf.c: Likewise.
20072         * manual/examples/search.c: Likewise.
20073         * manual/examples/select.c: Likewise.
20074         * manual/examples/setjmp.c: Likewise.
20075         * manual/examples/sigh1.c: Likewise.
20076         * manual/examples/sigusr.c: Likewise.
20077         * manual/examples/stpcpy.c: Likewise.
20078         * manual/examples/strdupa.c: Likewise.
20079         * manual/examples/strftim.c: Likewise.
20080         * manual/examples/strncat.c: Likewise.
20081         * manual/examples/subopt.c: Likewise.
20082         * manual/examples/swapcontext.c: Likewise.
20083         * manual/examples/termios.c: Likewise.
20084         * manual/examples/testopt.c: Likewise.
20085         * manual/examples/testpass.c: Likewise.
20086         * manual/examples/timeval_subtract.c: Likewise.
20087
20088         [BZ #13792]
20089         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20090         function to ...
20091         * manual/timeval_subtract.c.texi: ... here, new file.
20092
20093 2012-03-02  David S. Miller  <davem@davemloft.net>
20094
20095         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20096
20097 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20098
20099         [BZ #3976]
20100         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20101         (__sin): Save and restore rounding mode and use round-to-nearest
20102         for all computations.
20103         (__cos): Save and restore rounding mode and use round-to-nearest
20104         for all computations.
20105         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20106         <fenv.h>.
20107         (tan): Save and restore rounding mode and use round-to-nearest for
20108         all computations.
20109         * math/libm-test.inc (cos_test_tonearest): New function.
20110         (cos_test_towardzero): Likewise.
20111         (cos_test_downward): Likewise.
20112         (cos_test_upward): Likewise.
20113         (sin_test_tonearest): Likewise.
20114         (sin_test_towardzero): Likewise.
20115         (sin_test_downward): Likewise.
20116         (sin_test_upward): Likewise.
20117         (tan_test_tonearest): Likewise.
20118         (tan_test_towardzero): Likewise.
20119         (tan_test_downward): Likewise.
20120         (tan_test_upward): Likewise.
20121         (main): Call the new functions.
20122         * sysdeps/i386/fpu/libm-test-ulps: Update.
20123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20124
20125         [BZ #10135]
20126         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20127         small n, then large n, before computing and testing k+n.
20128         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20129         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20130         Likewise.
20131         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20132         Likewise.
20133         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20134         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20135         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20136         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20137         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20138         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20139         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20140         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20141         * math/libm-test.inc (scalbn_test): Add more tests.
20142         (scalbln_test): Likewise.
20143
20144         * manual/filesys.texi (mode_t): Describe constraints on size and
20145         signedness, not exact equivalence to a particular type.
20146         (ino_t): Likewise.
20147         (ino64_t): Likewise.
20148         (dev_t): Likewise.
20149         (nlink_t): Likewise.
20150         (blkcnt_t): Likewise.
20151         (blkcnt64_t): Likewise.
20152         * manual/llio.texi (off_t): Likewise.
20153
20154         [BZ #3976]
20155         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20156         (__ieee754_exp): Save and restore rounding mode and use
20157         round-to-nearest for all computations.
20158         * math/libm-test.inc (exp_test_tonearest): New function.
20159         (exp_test_towardzero): Likewise.
20160         (exp_test_downward): Likewise.
20161         (exp_test_upward): Likewise.
20162         (main): Call the new functions.
20163         * sysdeps/i386/fpu/libm-test-ulps: Update.
20164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20165
20166 2012-03-01  Chris Demetriou  <cgd@google.com>
20167
20168         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20169         have predictable order.
20170
20171 2012-03-01  David S. Miller  <davem@davemloft.net>
20172
20173         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20174
20175         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20176         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20177         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20178         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20179
20180         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20181         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20182         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20184         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20185         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20186         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20187         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20188         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20189
20190         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20191
20192         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20193         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20194         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20195
20196         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20197         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20198         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20199         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20200         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20201         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20202         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20203         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20204         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20205         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20206         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20207         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20208         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20209         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20210         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20211         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20212         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20213         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20214         * sysdeps/sparc/elf/configure: Regenerated.
20215
20216 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20217
20218         * configure.in (AS, LD): Require binutils 2.20 or later.
20219         * configure: Regenerated.
20220         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20221         as required minimum version.
20222         * INSTALL: Regenerated.
20223
20224         [BZ #2541]
20225         [BZ #4108]
20226         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20227         before squaring exponent.
20228         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20229         bottom long double and 27 bits of top long double before squaring
20230         exponent.
20231         * math/libm-test.inc (erfc_test): Add more tests.
20232         * sysdeps/i386/fpu/libm-test-ulps: Update.
20233         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20235
20236 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20237
20238         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20239         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20240         containing bit-fields.
20241         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20242         * soft-fp/single.h (_FP_UNION_S): Likewise.
20243         * soft-fp/double.h (_FP_UNION_D): Likewise.
20244
20245 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20246
20247         [BZ #13786]
20248         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20249         not include ../strcmp.S.
20250         [USE_AS_STRNCASECMP_L]: Likewise.
20251         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20252         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20253         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20254         (__strncasecmp_l_ia32): Define as alias to
20255         __strncasecmp_l_nonascii.
20256
20257         [BZ #5794]
20258         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20259         * sysdeps/i386/fpu/libm-test-ulps: Update.
20260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20261
20262         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20264
20265 2012-02-29  Jeff Law  <law@redhat.com>
20266
20267         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20268         out of bounds read.
20269
20270 2012-02-29  Marek Polacek  <polacek@redhat.com>
20271
20272         [BZ #13706]
20273         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20274         * elf/Makefile: Add rules to run tst-unused-dep.out.
20275
20276 2012-02-28  David S. Miller  <davem@davemloft.net>
20277
20278         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20279         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20280         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20281         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20282         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20283         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20284
20285 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20286
20287         * math/libm-test.inc (llround_test): Move one test from
20288         lround_test.  Use TEST_f_L in moved test.
20289         (lround_test): Move misplaced test to llround_test.  Add testcase
20290         from bug 2561.
20291
20292 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20293
20294         * sysdeps/x86_64/fpu/e_expf.S: New file.
20295         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20296
20297 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20298
20299         [BZ #13637]
20300         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20301         of remain_len that may cause incomplete multi-byte character and
20302         false match.
20303         * posix/bug-regex33.c: New file.
20304         * posix/Makefile (tests): Add bug-regex33.
20305
20306 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20307
20308         * manual/macros.texi: New file.
20309         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20310         * manual/libc.texinfo: Include macros.texi.
20311         * manual/creatute.texi: Likewise.
20312         * manual/install.texi: Likewise.
20313         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20314         @glibcadj{} in references to the GNU C Library.
20315         * manual/charset.texi: Likewise.
20316         * manual/conf.texi: Likewise.
20317         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20318         when not using those macros.
20319         * manual/creature.texi: Likewise.
20320         * manual/crypt.texi: Likewise.
20321         * manual/errno.texi: Likewise.
20322         * manual/filesys.texi: Likewise.
20323         * manual/header.texi: Likewise.
20324         * manual/install.texi: Likewise.
20325         * manual/intro.texi: Likewise.
20326         * manual/io.texi: Likewise.
20327         * manual/job.texi: Likewise.
20328         * manual/lang.texi: Likewise.
20329         * manual/libc.texiinfo: Likewise.
20330         * manual/llio.texi: Likewise.
20331         * manual/locale.texi: Likewise.
20332         * manual/maint.texi: Likewise.
20333         * manual/math.texi: Likewise.
20334         * manual/memory.texi: Likewise.
20335         * manual/message.texi: Likewise.
20336         * manual/nss.texi: Likewise.
20337         * manual/pattern.texi: Likewise.
20338         * manual/process.texi: Likewise.
20339         * manual/resource.texi: Likewise.
20340         * manual/search.texi: Likewise.
20341         * manual/setjmp.texi: Likewise.
20342         * manual/signal.texi: Likewise.
20343         * manual/socket.texi: Likewise.
20344         * manual/startup.texi: Likewise.
20345         * manual/stdio.texi: Likewise.
20346         * manual/string.texi: Likewise.
20347         * manual/sysinfo.texi: Likewise.
20348         * manual/syslog.texi: Likewise.
20349         * manual/terminal.texi: Likewise.
20350         * manual/time.texi: Likewise.
20351         * manual/users.texi: Likewise.
20352         * INSTALL: Regenerated.
20353         * NOTES: Regenerated.
20354         * sysdeps/gnu/errlist.c: Regenerated.
20355
20356 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20357
20358         * include/dirent.h: Include <dirstream.h> before
20359         <dirent/dirent.h>.
20360
20361 2012-02-28  David S. Miller  <davem@davemloft.net>
20362
20363         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20364         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20365         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20366         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20367
20368 2012-02-27  David S. Miller  <davem@davemloft.net>
20369
20370         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20371         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20372         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20373         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20374
20375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20376         frame pointer instead of stack pointer relative arg slot.
20377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20378         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20379         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20380
20381 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20382
20383         [BZ #3992]
20384         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20385
20386 2012-02-27  David S. Miller  <davem@davemloft.net>
20387
20388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20392         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20393         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20394         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20395         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20396
20397 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20398
20399         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20400         later.  Allow versions 5-9.
20401         * configure: Regenerated.
20402         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20403         required minimum version and 4.6 as recommended version.  Do not
20404         mention bugs in GCC 2.7 and 2.8.
20405         * INSTALL: Regenerated.
20406
20407 2012-02-27  David S. Miller  <davem@davemloft.net>
20408
20409         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20412         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20413         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20414         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20415         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20416         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20417
20418         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20419         manipulate bits before adding and subtracting TWO112[sx].
20420         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20421
20422 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20423
20424         [BZ #13775]
20425         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20426         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20427         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20428         being in POSIX, because they are in 1003.1-2008.
20429
20430         * rt/tst-aio.c: Include <fcntl.h>.
20431         * rt/tst-aio7.c: Likewise.
20432         * rt/tst-aio64.c: Likewise.
20433
20434         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20435
20436 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20437
20438         * manual/install.texi (--with-headers): Describe headers as
20439         interface headers, not private headers.
20440         (Specific advice for GNU/Linux systems): Describe use of headers
20441         from "make headers_install", not private headers from older
20442         kernels.
20443         * INSTALL: Regenerated.
20444         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20445         Change to 2.6.19.
20446         * sysdeps/unix/sysv/linux/configure: Regenerated.
20447
20448         * manual/llio.texi (fclean): Remove documentation.
20449
20450         * manual/Makefile (libc-texi-generated): New variable.  Include
20451         version.texi.
20452         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20453         $(libc-texi-generated), not duplicated list of files.
20454         (version.texi, stamp-version): New rules.
20455         (realclean): Remove $(libc-texi-generated), not individual files
20456         from that list.  Do not remove dir-add.texinfo.
20457         * manual/libc.texinfo: Comment out uses of edition numbers and
20458         references to printed manual.  Remove last-updated dates.
20459         (EDITION): Comment out.
20460         (ISBN): Likewise.
20461         (VERSION, UPDATED): Remove.
20462         (version.texi): Include.
20463
20464 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20465
20466         * sysdeps/posix/spawni.c: Include <signal.h>.
20467         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20468         * sysdeps/pthread/aio_fsync.c: Likewise.
20469
20470 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20471
20472         * conform/Makefile (tests): Run only when not cross-compiling and
20473         when fast-check is not defined.
20474
20475         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20476         * conform/data/limits.h-data: Fixes for POSIX2008.
20477         * conform/run-conformtest.sh: Run all tests.
20478         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20479         headers.
20480         * include/bits/dlfcn.h: Likewise.
20481         * include/langinfo.h: Likewise.
20482         * include/monetary.h: Likewise.
20483         * include/sys/poll.h: Likewise.
20484
20485         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20486         for __USE_GNU.
20487         * posix/spawn.h: Define __need_sigset_t.
20488         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20489         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20490         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20491         to get sigevent_t only.
20492         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20493         only for __USE_GNU.
20494         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20495         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20496         process_vm_writev only for __USE_GNU.
20497         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20498
20499         * conform/Makefile: For now ignore errors from run-conformtest.
20500         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20501         POSIX to avoid namespace pollution.  Don't prepend headers.
20502         * conform/data/aio.h-data: Fixes for POSIX testing.
20503         * conform/data/fcntl.h-data: Likewise.
20504         * conform/data/glob.h-data: Likewise.
20505         * conform/data/grp.h-data: Likewise.
20506         * conform/data/pthread.h-data: Likewise.
20507         * conform/data/pwd.h-data: Likewise.
20508         * conform/data/signal.h-data: Likewise.
20509         * conform/data/spawn.h-data: Likewise.
20510         * conform/data/stdio.h-data: Likewise.
20511         * conform/data/stdlib.h-data: Likewise.
20512         * conform/data/stropts.h-data: Likewise.
20513         * conform/data/sys/mman.h-data: Likewise.
20514         * conform/data/sys/stat.h-data: Likewise.
20515         * conform/data/sys/types.h-data: Likewise.
20516         * conform/data/sys/wait.h-data: Likewise.
20517         * conform/data/time.h-data: Likewise.
20518         * conform/data/unistd.h-data: Likewise.
20519         * conform/data/utime.h-data: Likewise.
20520
20521         * io/sys/stat.h: fchmod was always in POSIX.
20522         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20523         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20524         * rt/aio.h: Define __need_timespec before including <time.h>.
20525         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20526         struct.  Add forward declaration of pthread_attr_t and use it in
20527         sigevent.
20528         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20529         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20530         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20531         always remove CLK_TCK definition.
20532
20533 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20534
20535         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20536
20537 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20538
20539         * conform/run-conformtest.sh: New file.
20540         * conform/Makefile: Run run-conformtest for tests.
20541         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20542         support.
20543
20544         * conform/data/uchar.h-data: New file.
20545         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20546         * conform/data/arpa/inet.h-data: Likewise.
20547         * conform/data/assert.h-data: Likewise.
20548         * conform/data/complex.h-data: Likewise.
20549         * conform/data/cpio.h-data: Likewise.
20550         * conform/data/ctype.h-data: Likewise.
20551         * conform/data/dirent.h-data: Likewise.
20552         * conform/data/dlfcn.h-data: Likewise.
20553         * conform/data/errno.h-data: Likewise.
20554         * conform/data/fcntl.h-data: Likewise.
20555         * conform/data/float.h-data: Likewise.
20556         * conform/data/fmtmsg.h-data: Likewise.
20557         * conform/data/fnmatch.h-data: Likewise.
20558         * conform/data/ftw.h-data: Likewise.
20559         * conform/data/glob.h-data: Likewise.
20560         * conform/data/grp.h-data: Likewise.
20561         * conform/data/iconv.h-data: Likewise.
20562         * conform/data/inttypes.h-data: Likewise.
20563         * conform/data/langinfo.h-data: Likewise.
20564         * conform/data/libgen.h-data: Likewise.
20565         * conform/data/limits.h-data: Likewise.
20566         * conform/data/locale.h-data: Likewise.
20567         * conform/data/math.h-data: Likewise.
20568         * conform/data/monetary.h-data: Likewise.
20569         * conform/data/mqueue.h-data: Likewise.
20570         * conform/data/ndbm.h-data: Likewise.
20571         * conform/data/net/if.h-data: Likewise.
20572         * conform/data/netdb.h-data: Likewise.
20573         * conform/data/netinet/in.h-data: Likewise.
20574         * conform/data/nl_types.h-data: Likewise.
20575         * conform/data/poll.h-data: Likewise.
20576         * conform/data/pthread.h-data: Likewise.
20577         * conform/data/pwd.h-data: Likewise.
20578         * conform/data/regex.h-data: Likewise.
20579         * conform/data/sched.h-data: Likewise.
20580         * conform/data/search.h-data: Likewise.
20581         * conform/data/semaphore.h-data: Likewise.
20582         * conform/data/setjmp.h-data: Likewise.
20583         * conform/data/signal.h-data: Likewise.
20584         * conform/data/spawn.h-data: Likewise.
20585         * conform/data/stdarg.h-data: Likewise.
20586         * conform/data/stdio.h-data: Likewise.
20587         * conform/data/stdlib.h-data: Likewise.
20588         * conform/data/string.h-data: Likewise.
20589         * conform/data/strings.h-data: Likewise.
20590         * conform/data/stropts.h-data: Likewise.
20591         * conform/data/sys/ipc.h-data: Likewise.
20592         * conform/data/sys/mman.h-data: Likewise.
20593         * conform/data/sys/msg.h-data: Likewise.
20594         * conform/data/sys/resource.h-data: Likewise.
20595         * conform/data/sys/select.h-data: Likewise.
20596         * conform/data/sys/sem.h-data: Likewise.
20597         * conform/data/sys/shm.h-data: Likewise.
20598         * conform/data/sys/socket.h-data: Likewise.
20599         * conform/data/sys/stat.h-data: Likewise.
20600         * conform/data/sys/statvfs.h-data: Likewise.
20601         * conform/data/sys/time.h-data: Likewise.
20602         * conform/data/sys/timeb.h-data: Likewise.
20603         * conform/data/sys/times.h-data: Likewise.
20604         * conform/data/sys/types.h-data: Likewise.
20605         * conform/data/sys/uio.h-data: Likewise.
20606         * conform/data/sys/un.h-data: Likewise.
20607         * conform/data/sys/utsname.h-data: Likewise.
20608         * conform/data/sys/wait.h-data: Likewise.
20609         * conform/data/syslog.h-data: Likewise.
20610         * conform/data/tar.h-data: Likewise.
20611         * conform/data/termios.h-data: Likewise.
20612         * conform/data/utime.h-data: Likewise.
20613         * conform/data/utmpx.h-data: Likewise.
20614         * conform/data/varargs.h-data: Likewise.
20615         * conform/data/wchar.h-data: Likewise.
20616         * conform/data/wctype.h-data: Likewise.
20617         * conform/data/wordexp.h-data: Likewise.
20618
20619         * include/stropts.h: New file.
20620         * include/uchar.h: New file.
20621         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20622         * include/assert.h: Likewise.
20623         * include/ctype.h: Likewise.
20624         * include/dirent.h: Likewise.
20625         * include/dlfcn.h: Likewise.
20626         * include/fcntl.h: Likewise.
20627         * include/fnmatch.h: Likewise.
20628         * include/glob.h: Likewise.
20629         * include/grp.h: Likewise.
20630         * include/libio.h: Likewise.
20631         * include/locale.h: Likewise.
20632         * include/math.h: Likewise.
20633         * include/net/if.h: Likewise.
20634         * include/netdb.h: Likewise.
20635         * include/netinet/in.h: Likewise.
20636         * include/pthread.h: Likewise.
20637         * include/pwd.h: Likewise.
20638         * include/regex.h: Likewise.
20639         * include/sched.h: Likewise.
20640         * include/search.h: Likewise.
20641         * include/setjmp.h: Likewise.
20642         * include/signal.h: Likewise.
20643         * include/stdio.h: Likewise.
20644         * include/stdlib.h: Likewise.
20645         * include/string.h: Likewise.
20646         * include/sys/cdefs.h: Likewise.
20647         * include/sys/mman.h: Likewise.
20648         * include/sys/msg.h: Likewise.
20649         * include/sys/resource.h: Likewise.
20650         * include/sys/select.h: Likewise.
20651         * include/sys/socket.h: Likewise.
20652         * include/sys/stat.h: Likewise.
20653         * include/sys/statvfs.h: Likewise.
20654         * include/sys/time.h: Likewise.
20655         * include/sys/times.h: Likewise.
20656         * include/sys/uio.h: Likewise.
20657         * include/sys/utsname.h: Likewise.
20658         * include/sys/wait.h: Likewise.
20659         * include/termios.h: Likewise.
20660         * include/time.h: Likewise.
20661         * include/ulimit.h: Likewise.
20662         * include/unistd.h: Likewise.
20663         * include/utime.h: Likewise.
20664         * include/wchar.h: Likewise.
20665         * include/wctype.h: Likewise.
20666         * include/wordexp.h: Likewise.
20667
20668         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20669
20670         * time/time.h: TIME_UTC must be a macro.
20671         Make timespec_get available for ISO C11 only as well.
20672
20673 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20674
20675         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20676         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20677
20678 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20679
20680         * configure.in: Use -o not -a in test for unsupported multi-arch.
20681
20682 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20683
20684         * manual/texinfo.tex: Update to version 2012-01-19.16.
20685
20686 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20687
20688         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20689
20690 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20691
20692         [BZ #13738]
20693         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20694         * manual/fdl-1.3.texi: New file.
20695         * manual/fdl-1.1.texi: File removed.
20696
20697         [BZ #13738]
20698         * manual/libc.texinfo (FDL_VERSION): New @set.
20699         Use it for mention of FDL in cover text.
20700         (Documentation License): Use it in @include file name.
20701
20702 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20703             Roland McGrath  <roland@hack.frob.com>
20704
20705         [BZ #5461]
20706         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20707         not LONG_LONG_MAX and LONG_LONG_MIN.
20708         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20709         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20710         name.
20711         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20712
20713 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20714
20715         [BZ #2547]
20716         [BZ #11365]
20717         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20718         manipulate bits before adding and subtracting TWO23[sx].
20719         * math/libm-test.inc (nearbyint_test): Add more tests.
20720
20721 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20722
20723         [BZ #2548]
20724         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20725         bits before adding and subtracting TWO23[sx].
20726         * math/libm-test.inc (rint_test): Add more tests.
20727         (rint_test_tonearest): Likewise.
20728         (rint_test_towardzero): Likewise.
20729         (rint_test_downward): Likewise.
20730         (rint_test_upward: Likewise.
20731
20732 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20733
20734         [BZ #10110]
20735         * include/stdc-predef.h: New file.  Extracted from features.h.
20736         * include/features.h: Include stdc-predef.h.
20737         * Makefile (headers): Add stdc-predef.h.
20738         * CONFORMANCE (Compiler limitations): Update.
20739
20740 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20741
20742         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20743
20744 2012-02-21  David S. Miller  <davem@davemloft.net>
20745
20746         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20747         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20748
20749 2012-02-20  David S. Miller  <davem@davemloft.net>
20750
20751         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20752         using a normal save/restore sequence, rather than allocating a
20753         dummy stack frame just to store a frame pointer and restore.
20754         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20755
20756 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20757
20758         * manual/install.texi: Fix stray word in line-wrapped comment.
20759
20760 2012-02-20  David S. Miller  <davem@davemloft.net>
20761
20762         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20763         both binutils and gcc support GOTDATA.
20764
20765         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20766         "rd %pc" in the PIC register setup sequences.
20767
20768         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20769         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20770         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20771         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20772         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20773         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20774         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20775         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20776         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20777         (SYSCALL_ERROR_HANDLER): Likewise.
20778         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20779         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20780         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20781         (SYSCALL_ERROR_HANDLER): Likewise.
20782
20783         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20784         (HAVE_GCC_GOTDATA): New.
20785         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20786         relocation support in both binutils and gcc.
20787         * sysdeps/sparc/elf/configure: Regenerate.
20788
20789         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20790         * sysdeps/sparc/sparc32/elf/configure: Delete.
20791         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20792         * sysdeps/sparc/sparc64/elf/configure: Delete.
20793         * sysdeps/sparc/elf/configure.in: New file.
20794         * sysdeps/sparc/elf/configure: Generate.
20795
20796         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20797         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20798         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20799         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20800         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20801
20802 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20803
20804         * manual/install.texi: Do not mention specific glibc version
20805         numbers.
20806         * manual/libc.texinfo (VERSION, UPDATED): Update.
20807         (@copying): Use @copyright{} and range of years.
20808
20809 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20810
20811         [BZ #13695]
20812         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20813         [crti.S not in sysdirs] (generated): Do not append.
20814         [crti.S not in sysdirs] (omit-deps): Likewise.
20815         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20816         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20817         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20818         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20819         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20820         Likewise.
20821         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20822         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20823         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20824         * csu/defs.awk: Remove file.
20825         * sysdeps/generic/initfini.c: Likewise.
20826         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20827         variable.
20828         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20829         Likewise.
20830
20831 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20832
20833         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20834         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20835         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20836         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20837         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20838         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20839         <bits/epoll.h>.
20840         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20841         (__EPOLL_PACKED): Define to empty if not defined by
20842         <bits/epoll.h>.
20843         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20844         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20845         bits/epoll.h.
20846
20847 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20848
20849         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20850         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20851         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20852         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20853         <bits/timerfd.h>.
20854         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20855         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20856         bits/timerfd.h.
20857
20858 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20859
20860         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20861         in C locale.
20862         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20863         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20864         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20866
20867 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20868
20869         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20870         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20871
20872 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20873
20874         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20875         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20876         defined.
20877         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20878         Likewise.
20879         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20880         entry for 2.16.
20881
20882 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20883
20884         * math/w_acos.c: Use non-signaling floating-point comparisons.
20885         * math/w_acosf.c: Likewise.
20886         * math/w_acosh.c: Likewise.
20887         * math/w_acoshf.c: Likewise.
20888         * math/w_acoshl.c: Likewise.
20889         * math/w_acosl.c: Likewise.
20890         * math/w_asin.c: Likewise.
20891         * math/w_asinf.c: Likewise.
20892         * math/w_asinl.c: Likewise.
20893         * math/w_atanh.c: Likewise.
20894         * math/w_atanhf.c: Likewise.
20895         * math/w_atanhl.c: Likewise.
20896         * math/w_exp2.c: Likewise.
20897         * math/w_exp2f.c: Likewise.
20898         * math/w_exp2l.c: Likewise.
20899         * math/w_j0.c: Likewise.
20900         * math/w_j0f.c: Likewise.
20901         * math/w_j0l.c: Likewise.
20902         * math/w_j1.c: Likewise.
20903         * math/w_j1f.c: Likewise.
20904         * math/w_j1l.c: Likewise.
20905         * math/w_jn.c: Likewise.
20906         * math/w_jnf.c: Likewise.
20907         * math/w_log.c: Likewise.
20908         * math/w_log10.c: Likewise.
20909         * math/w_log10f.c: Likewise.
20910         * math/w_log10l.c: Likewise.
20911         * math/w_log2.c: Likewise.
20912         * math/w_log2f.c: Likewise.
20913         * math/w_log2l.c: Likewise.
20914         * math/w_logf.c: Likewise.
20915         * math/w_logl.c: Likewise.
20916         * math/w_sqrt.c: Likewise.
20917         * math/w_sqrtf.c: Likewise.
20918         * math/w_sqrtl.c: Likewise.
20919         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20920         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20921         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20922         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20923         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20924
20925 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20926
20927         [BZ #9739]
20928         * manual/string.texi (strnlen): Use correct parameter name in
20929         equivalent expression.
20930
20931 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20932
20933         [BZ #11174]
20934         * manual/users.texi (seteuid): Consistently use neweuid for
20935         argument name.
20936
20937 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20938
20939         [BZ #13704]
20940         * manual/nss.texi (Services in the NSS configuration): Correct
20941         list of services in example configuration file.
20942
20943 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20944
20945         [BZ #11322]
20946         * manual/arith.texi: Remove statements about negative zero
20947         behaving identically to zero.
20948
20949 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20950
20951         [BZ #5993]
20952         * manual/install.texi: Do not document upgrading from libc5.
20953
20954 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20955
20956         [BZ #4596]
20957         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20958
20959 2012-02-18  David S. Miller  <davem@davemloft.net>
20960
20961         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20962         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20963         %o7 across the call.
20964         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20965         instead.
20966         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20967         SETUP_PIC_REG_LEAF.
20968         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20969         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20970         * sysdeps/sparc/crtn.S: Likewise.
20971
20972 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20973
20974         * aout/Makefile: Remove.
20975
20976 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20977
20978         [BZ #13058]
20979         * manual/examples/argp-ex1.c (main): Format definition in GNU
20980         style.
20981         * manual/examples/argp-ex2.c (main): Likewise.
20982         * manual/examples/argp-ex3.c (main): Likewise.
20983         * manual/examples/argp-ex4.c (main): Likewise.
20984         * manual/examples/longopt.c (main): Use new-style prototype
20985         definition.
20986         * manual/examples/strncat.c (main): Specify return type and use
20987         (void) for arguments.
20988         * manual/examples/subopt.c (main): Use char **argv argument.
20989
20990 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20991
20992         [BZ #5077]
20993         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20994         rounding modes.
20995
20996 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20997
20998         [BZ #6907]
20999         * manual/string.texi (strchr): Change when strchrnul is
21000         recommended.
21001
21002 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21003
21004         [BZ #174]
21005         * manual/locale.texi (setlocale): Document LOCPATH.
21006
21007 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21008
21009         [BZ #10210]
21010         * manual/process.texi (execle): Move @dots{} before last argument.
21011
21012 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21013
21014         [BZ #12047]
21015         * manual/charset.texi (Generic Charset Conversion): Fix typo
21016         (LC_TYPE -> LC_CTYPE).
21017
21018 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21019
21020         [BZ #5805]
21021         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21022         (scalbnf): Likewise.
21023         (scalbnl): Likewise.
21024         (scalbln): Likewise.
21025         (scalblnf): Likewise.
21026         (scalblnl): Likewise.
21027         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21028         (vwarnx): Likewise.
21029         (verr): Likewise.
21030         (verrx): Likewise.
21031         * manual/filesys.texi (telldir): Use braces around return type.
21032         * manual/llio.texi (mmap): Add space after comma.
21033         (mmap64): Likewise.
21034         * manual/math.texi (jn): Use @var{} on parameter names.
21035         (jnf): Likewise.
21036         (jnl): Likewise.
21037         (yn): Likewise.
21038         (ynf): Likewise.
21039         (ynl): Likewise.
21040         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21041         line.
21042         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21043         "...".
21044         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21045         (sched_get_priority_max): Likewise.
21046         * manual/signal.texi (sigvec): Add space after comma.
21047         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21048         names.
21049         (if_indextoname): Likewise.
21050         (if_freenameindex): Likewise.
21051         (sendto): Use ',' instead of '.' in prototype.
21052         * manual/startup.texi (syscall): Use @dots{} instead of literal
21053         "...".
21054         * manual/stdio.texi (__fpending): Separate initial words of
21055         paragraph from @deftypefun line.
21056         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21057         "...".
21058         (vsyslog): Use @var{} on parameter names.
21059         * manual/terminal.texi (stty): Use @var{} on parameter names.
21060         * manual/users.texi (getutmp): Use @var{} on parameter names.
21061         (getutmpx): Likewise.
21062
21063 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21064
21065         [BZ #6884]
21066         * manual/stdio.texi (fopen): Fix typos in description of
21067         ",ccs=STRING".
21068
21069 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21070
21071         [BZ #4026]
21072         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21073         get clock_id definition.
21074
21075 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21076
21077         [BZ #4822]
21078         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21079         (madvise): Cast every argument to void on its own.
21080
21081 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21082
21083         [BZ #9902]
21084         * manual/startup.texi (Exit Status): Fix typo.
21085
21086 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21087
21088         [BZ #10140]
21089         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21090         * manual/examples/argp-ex2.c: Likewise.
21091         * manual/examples/argp-ex3.c: Likewise.
21092
21093 2012-02-16  Richard Henderson  <rth@redhat.com>
21094
21095         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21096         * sysdeps/s390/s390-32/initfini.c: Remove.
21097         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21098         * sysdeps/s390/s390-64/initfini.c: Remove.
21099
21100 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21101
21102         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21103         compiler output for sysdeps/generic/initfini.c.
21104         * sysdeps/sh/elf/initfini.c: Remove file.
21105
21106 2012-02-16  David S. Miller  <davem@davemloft.net>
21107
21108         [BZ #11494]
21109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21110
21111         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21112         * sysdeps/sparc/crti.S: New file.
21113         * sysdeps/sparc/crtn.S: New file.
21114         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21115         * sysdeps/sparc/sparc64/Makefile: Likewise.
21116
21117 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21118
21119         [BZ #3335]
21120         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21121
21122 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21123
21124         [BZ #4822]
21125         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21126
21127         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21128         (write, read, close): Likewise.
21129         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21130
21131 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21132
21133         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21134         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21135         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21136         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21137         <bits/signalfd.h>.
21138         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21139         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21140         bits/signalfd.h.
21141
21142 2012-02-14  Marek Polacek  <polacek@redhat.com>
21143
21144         * sysdeps/x86_64/crti.S: New file.
21145         * sysdeps/x86_64/crtn.S: New file.
21146         * sysdeps/x86_64/elf/initfini.c: Remove file.
21147
21148 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21149
21150         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21151         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21152         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21153         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21154         <bits/inotify.h>.
21155         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21156         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21157         bits/inotify.h.
21158
21159 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21160
21161         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21162         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21163         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21164         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21165         <bits/eventfd.h>.
21166         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21167         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21168         bits/eventfd.h.
21169
21170 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21171
21172         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21173         __feraiseexcept instead of feraiseexcept.
21174
21175         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21176         nanosleep invocations.
21177         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21178         strings, and add error checking for a nanosleep invocations.
21179
21180 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         Replace FSF snail mail address with URLs, as per GNU coding standards.
21183         Most of the snail mail addresses were wrong anyway, and omitting
21184         them makes the source code easier to maintain.  Almost all of the
21185         changes are to license notices and to locale LC_IDENTIFICATION
21186         addresses, except for this one:
21187         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21188         not its snail mail address.
21189
21190 2012-02-09  Richard Henderson  <rth@twiddle.net>
21191
21192         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21193         of kernel-features.h.
21194
21195         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21196
21197 2012-02-08  Marek Polacek  <polacek@redhat.com>
21198
21199         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21200         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21201         * sysdeps/gnu/_G_config.h: Likewise.
21202         * sysdeps/generic/_G_config.h: Likewise.
21203
21204 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21205
21206         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21207         tests.
21208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21209
21210         * sysdeps/powerpc/powerpc32/crti.S: New file.
21211         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21212         * sysdeps/powerpc/powerpc64/crti.S: New file.
21213         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21214
21215         * Makeconfig (have-initfini): Don't set.
21216         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21217         * configure.in (nopic_initfini): Don't substitute.
21218         * config.h.in (HAVE_INITFINI): Don't #undef.
21219         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21220         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21221
21222 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21223
21224         Support crti.S and crtn.S provided directly by architectures.
21225         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21226         [crti.S in sysdirs] (omit-deps): Likewise.
21227         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21228         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21229         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21230         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21231         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21232         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21233         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21234         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21235         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21236         compiler output for sysdeps/generic/initfini.c.
21237         * sysdeps/i386/elf/Makefile: Remove file.
21238         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21239
21240 2012-02-07  Marek Polacek  <polacek@redhat.com>
21241
21242         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21243         * sysdeps/gnu/_G_config.h: Likewise.
21244         * sysdeps/mach/hurd/_G_config.h: Likewise.
21245
21246 2012-02-07  Marek Polacek  <polacek@redhat.com>
21247
21248         * math/Makefile (tests): Add tst-CMPLX2.
21249         * math/tst-CMPLX2.c: New file.
21250
21251 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21252
21253         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21254
21255         * math/libm-test.inc (jn_test): Add missing L suffix.
21256
21257 2012-02-06  Marek Polacek  <polacek@redhat.com>
21258
21259         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21260         * sysdeps/i386/fpu/e_powf.S: Likewise.
21261         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21262         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21263         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21264         * sysdeps/i386/fpu/e_pow.S: Likewise.
21265         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21266         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21267         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21268         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21269         * sysdeps/i386/fpu/e_log2.S: Likewise.
21270         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21271         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21272         * sysdeps/i386/fpu/e_powl.S: Likewise.
21273         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21274         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21275         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21276         * sysdeps/i386/fpu/e_logl.S: Likewise.
21277         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21278         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21279         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21280         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21281         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21282         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21283         * sysdeps/i386/fpu/e_log.S: Likewise.
21284         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21285         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21286         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21287         * sysdeps/i386/fpu/e_logf.S: Likewise.
21288         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21289         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21290         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21291         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21292         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21293         * sysdeps/i386/fpu/e_log10.S: Likewise.
21294         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21295         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21296         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21297         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21298         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21299         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21300         * sysdeps/i386/asm-syntax.h: Likewise.
21301         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21302         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21303         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21304         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21305         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21306         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21307         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21308         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21309         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21310         * sysdeps/powerpc/sysdep.h: Likewise.
21311         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21312         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21313
21314 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21315
21316         [BZ #411]
21317         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21318
21319 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21320
21321         * sysdeps/i386/sysdep.h: Include <features.h>.
21322         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21323         version.
21324
21325 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21326
21327         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21328         Define.
21329         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21330         LOAD_PIC_REG_STR.
21331
21332 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21333
21334         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21335         (SETUP_PIC_REG): Use GET_PC_THUNK.
21336         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21337         macro.
21338
21339 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21340
21341         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21342         for non-PIC compilation.
21343         (SETUP_PIC_REG): Add .p2align directive.
21344         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21345         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21346         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21347         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21348         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21349         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21350         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21351         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21352         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21353         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21354         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21355         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21356         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21357         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21358         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21359         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21360         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21361         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21362         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21363         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21364         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21365         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21366         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21367         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21368         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21369         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21370         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21371         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21372         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21373         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21374         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21375         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21376         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21377         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21378         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21379         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21380         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21381         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21382         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21383         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21384         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21385
21386 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21387
21388         * math/tst-CMPLX.c: Include <stdio.h>.
21389
21390 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21391
21392         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21393         float.
21394         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21395         * sysdeps/sparc/bits/mathdef.h: Likewise.
21396
21397 2012-01-31  Marek Polacek  <polacek@redhat.com>
21398
21399         * libio/libio.h: Don't define _PARAMS.
21400         * locale/programs/config.h: Don't define PARAMS.
21401         * stdlib/strtol_l.c: Likewise.
21402         (__strtol_l): Remove PARAMS from the prototype.
21403
21404 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21405
21406         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21407         names.  Just use the correct names.  Remove unnecessary wrapper
21408         functions.
21409         * malloc/arena.c: Likewise.
21410         * malloc/hooks.c: Likewise.
21411
21412         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21413         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21414         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21415
21416 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21417
21418         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21419         into tail calls.
21420         (update_get_addr): New function.
21421         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21422         GET_ADDR_MODULE parameter.
21423
21424 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * crypt/cert.c: Remove __STDC__ conditionals.
21427         * crypt/crypt-entry.c: Likewise.
21428         * crypt/crypt_util.c: Likewise.
21429         * libio/filedoalloc.c: Likewise.
21430         * libio/fileops.c: Likewise.
21431         * libio/genops.c: Likewise.
21432         * libio/iofclose.c: Likewise.
21433         * libio/iofdopen.c: Likewise.
21434         * libio/iofopen.c: Likewise.
21435         * libio/iofopen64.c: Likewise.
21436         * libio/iogetdelim.c: Likewise.
21437         * libio/iopopen.c: Likewise.
21438         * libio/obprintf.c: Likewise.
21439         * libio/oldfileops.c: Likewise.
21440         * libio/oldiofclose.c: Likewise.
21441         * libio/oldiofdopen.c: Likewise.
21442         * libio/oldiofopen.c: Likewise.
21443         * libio/oldiopopen.c: Likewise.
21444         * libio/wfiledoalloc.c: Likewise.
21445         * libio/wgenops.c: Likewise.
21446         * locale/programs/xmalloc.c: Likewise.
21447         * misc/syslog.c: Likewise.
21448         * stdio-common/xbug.c: Likewise.
21449         * string/memchr.c: Likewise.
21450         * string/memcmp.c: Likewise.
21451         * string/memrchr.c: Likewise.
21452         * string/rawmemchr.c: Likewise.
21453         * sysdeps/posix/getcwd.c: Likewise.
21454         * time/strftime_l.c: Likewise.
21455
21456 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21457
21458         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21459         * config.make.in (config-cflags-sse2avx): Define.
21460         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21461         Fix typo.
21462
21463 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21464
21465         * scripts/config.guess: Update from upstream config git repository.
21466         * scripts/config.sub: Likewise.
21467
21468 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21469
21470         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21471         (EM_NUM): Update.
21472         (R_TILEPRO_*, R_TILEGX_*): New macros.
21473
21474         * scripts/firstversions.awk: Fix bug in version range handling.
21475
21476         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21477
21478         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21479
21480         * include/sys/epoll.h: New file.
21481         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21482         libc_hidden_def.
21483
21484 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21485
21486         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21487         Avoid unnecessary __WORDSIZE == 64 test.
21488         (fmaxf): Use VEX format if possible.
21489         (fmax): Likewise.
21490         (fminf): Likewise.
21491         (fmin): Likewise.
21492
21493         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21494         * math/math_private.h: Remove libc_fegetround* and
21495         libc_fesetround*.
21496         * sysdeps/i386/configure.in: Check for -msse2avx.
21497         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21498         also if SSE2AVX is defined.
21499         Remove libc_fegetround* and libc_fesetround*.
21500         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21501         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21502         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21503         of HAS_YMM_USABLE.
21504         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21505         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21506         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21507         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21508         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21509
21510         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21511
21512 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21513
21514         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21515         size is not set.
21516         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21517
21518 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21519
21520         [BZ #13618]
21521         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21522         relocation.
21523         * Makeconfig (libm): Define.
21524         * elf/Makefile: Add rules to build and run tst-relsort1.
21525         * elf/tst-relsort1.c: New file.
21526         * elf/tst-relsort1mod1.c: New file.
21527         * elf/tst-relsort1mod2.c: New file.
21528
21529 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21530
21531         * math/s_ldexp.c: Remove __STDC__ conditionals.
21532         * math/s_ldexpf.c: Likewise.
21533         * math/s_ldexpl.c: Likewise.
21534         * math/s_nextafter.c: Likewise.
21535         * math/s_nexttowardf.c: Likewise.
21536         * math/s_significand.c: Likewise.
21537         * math/s_significandf.c: Likewise.
21538         * math/s_significandl.c: Likewise.
21539         * math/w_jnl.c: Likewise.
21540         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21541         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21542         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21543         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21544         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21545         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21546         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21547         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21548         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21549         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21550         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21551         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21552         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21553         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21554         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21555         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21556         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21557         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21558         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21559         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21560         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21561         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21562         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21563         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21564         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21565         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21566         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21567         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21568         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21569         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21570         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21571         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21572         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21573         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21574         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21575         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21576         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21577         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21578         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21579         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21580         * sysdeps/ieee754/k_standard.c: Likewise.
21581         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21582         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21583         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21584         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21585         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21586         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21587         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21588         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21589         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21590         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21591         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21592         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21593         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21594         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21595         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21596         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21597         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21598         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21599         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21600         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21601         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21602         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21603         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21604         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21605         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21606         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21607         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21608         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21609         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21610         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21611         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21612         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21613         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21614         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21615         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21616         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21617         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21618         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21619         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21620         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21621         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21622         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21623         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21624         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21625         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21626         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21627         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21628         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21629         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21630         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21631         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21632         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21633         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21634         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21635         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21636         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21637         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21638         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21639         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21640         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21641         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21642         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21643         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21644         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21645         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21646         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21647         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21648         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21649         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21650         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21651         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21652         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21653         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21654         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21655         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21656         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21657         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21658         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21659         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21660         * sysdeps/ieee754/s_matherr.c: Likewise.
21661         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21662         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21663         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21664         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21665
21666 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21667
21668         * crypt/md5.h: Remove __STDC__ conditionals.
21669         * libio/libioP.h: Likewise.
21670         * locale/programs/config.h: Likewise.
21671         * sysdeps/generic/sysdep.h: Likewise.
21672         * sysdeps/i386/asm-syntax.h: Likewise.
21673         * sysdeps/s390/asm-syntax.h: Likewise.
21674         * sysdeps/unix/sysdep.h: Likewise.
21675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21677
21678 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21679
21680         * libio/libio.h: Remove __STDC__ conditionals.
21681         * malloc/obstack.h: Likewise.
21682         * math/complex.h: Likewise.
21683         * math/math.h: Likewise.
21684         * sysdeps/generic/_G_config.h: Likewise.
21685         * sysdeps/gnu/_G_config.h: Likewise.
21686         * sysdeps/mach/hurd/_G_config.h: Likewise.
21687         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21688         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21689         * sysdeps/sparc/bits/mathdef.h: Likewise.
21690
21691 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21692
21693         [BZ #13583]
21694         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21695         Clean up HAS_* macros.
21696         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21697         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21698         possible.
21699         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21700         HAS_AVX.
21701         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21702         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21703         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21704         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21705         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21706
21707 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21708
21709         * elf/tst-unique3.cc (gets): Remove declaration.
21710         * elf/tst-unique3lib.cc (gets): Likewise.
21711         * elf/tst-unique3lib2.cc (gets): Likewise.
21712         * elf/tst-unique4.cc (gets): Likewise.
21713
21714 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21715
21716         * include/stdio.h: Add C++ protection.  Add gets declarations and
21717         definitions.
21718         * debug/tst-chk1.c: Don't declare gets here.
21719         * stdio-common/tst-gets.c: Likewise.
21720
21721 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21722
21723         * posix/glob: Remove directory.
21724
21725 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21726
21727         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21728
21729 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21730
21731         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21732         of the non-standard EPFNOSUPPORT.
21733
21734 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21735
21736         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21737         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21738         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21739
21740 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21741
21742         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21743
21744 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21745
21746         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21747         transient errors.
21748         * nscd/grpcache.c (cache_addgr): Likewise.
21749         * nscd/hstcache.c (cache_addhst): Likewise.
21750         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21751         * nscd/pwdcache.c (cache_addpw): Likewise.
21752         * nscd/servicescache.c (cache_addserv): Likewise.
21753
21754 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21755
21756         * malloc/malloc.c: Various cleanups.
21757         * malloc/hooks.c: Likewise.
21758
21759         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21760         * stdlib/bug-fmtmsg1.c: New file.
21761
21762         * stdlib/fmtmsg.c (init): Add missing unlock.
21763         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21764
21765 2012-01-12  Marek Polacek  <polacek@redhat.com>
21766
21767         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21768         and _GNU_SOURCE.
21769
21770 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21771
21772         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21773         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21774         macro to ensure uniqueness of label name.
21775         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21776         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21777
21778 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21779
21780         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21781
21782         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21783         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21784         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21785         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21786
21787 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21788
21789         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21790
21791         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21792         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21793         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21794
21795         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21796
21797         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21798         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21799         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21800         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21801
21802         * math/bits/math-finite.h: Add ldexp support.
21803
21804 2012-01-10  Marek Polacek  <polacek@redhat.com>
21805
21806         * locale/programs/localedef.h (show_archive_content): Add noreturn
21807         attribute.
21808
21809 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21810
21811         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21812
21813 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21814
21815         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21816
21817         * io/Makefile (headers): Add bits/poll2.h.
21818
21819 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21820
21821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21822         typo #include statement.
21823
21824 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21825
21826         * include/sys/cdefs.h: Define __attribute_alloc_size.
21827         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21828         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21829         * elf/pldd.c: Likewise.
21830         * iconv/iconv_charmap.c: Likewise.
21831         * iconv/iconvconfig.c: Likewise.
21832         * iconv/strtab.c: Likewise.
21833         * locale/programs/locale.c: Likewise.
21834         * locale/programs/localedef.h: Likewise.
21835         * locale/programs/simple-hash.c: Likewise.
21836         * nscd/nscd.h: Likewise.
21837         * nss/makedb.c: Likewise.
21838         * sysdeps/generic/ldconfig.h: Likewise.
21839         * locale/programs/localedef.c: Remove xmalloc prototype.
21840         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21841
21842 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21843
21844         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21845         appropriate.
21846
21847 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21848
21849         * math/Makefile (tests): Add tst-CMPLX.
21850         * math/tst-CMPLX.c: New file.
21851
21852         * math/complex.h (CMPLXL): Fix typo.
21853
21854         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21855         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21856         GLIBC_2.16.
21857         * debug/tst-chk1.c: Add poll and ppoll tests.
21858         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21859         * include/sys/poll.h: Add hidden proto for ppoll.
21860         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21861         * sysdeps/mach/hurd/ppoll.c: Likewise.
21862         * io/ppoll.c: Likewise.
21863         * debug/poll_chk.c: New file.
21864         * debug/ppoll_chk.c: New file.
21865         * include/bits/poll2.h: New file.
21866         * io/bits/poll2.h: New file.
21867
21868         [BZ #1350]
21869         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21870
21871         * configure.in: static is always set to yes.  Remove.
21872         * config.make.in: Don't set build-static.
21873         * Makeconfig: Remove use of build-static.
21874         * dlfcn/Makefile: Likewise.
21875         * elf/Makefile: Likewise.
21876         * math/Makefile: Likewise.
21877         * misc/Makefile: Likewise.
21878         * nptl/Makefile: Likewise.
21879         * sysdeps/mach/hurd/Makefile: Likewise.
21880
21881         * configure.in: PWD_P is not used anymore.
21882         * config.make.in: Remove PWD_P entry.
21883
21884         * configure.in: Remove last remnants of RANLIB.
21885         No need to check for signed size_t anymore.
21886         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21887         and IA-64.
21888         Remove __builtin_expect test because we require at least gcc 3.4.
21889         * aclocal.m4: Likewise.
21890
21891         * wcsmbs/mbrtoc16.c: Implement using towc function.
21892         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21893         * wcsmbs/wcsmbsload.c: Likewise.
21894         * iconv/gconv_simple.c: Likewise.
21895         * iconv/gconv_int.h: Likewise.
21896         * iconv/gconv_builtin.h: Likewise.
21897         * iconv/iconv_prog.c: Remove CHAR16 handling.
21898
21899         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21900
21901         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21902
21903         * configure.in: Remove --with-elf and --enable-bounded options.
21904         Dont set base_machine for ia64.  More non-ELF conditions removed.
21905         Remove testing and setting of leading underscore information.
21906         * config.make.in (build-bounded): Set to no.
21907         * config.h.in: Remove NO_UNDERSCORES entry.
21908         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21909         them.
21910         * csu/start.c: Remove !NO_UNDERSCORE code.
21911         * locale/localeinfo.h: Likewise.
21912         * sysdeps/generic/machine-gmon.h: Likewise.
21913         * sysdeps/generic/sysdep.h: Likewise.
21914         * sysdeps/i386/sysdep.h: Likewise.
21915         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21916         * sysdeps/mach/sysdep.h: Likewise.
21917         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21918         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21919         * sysdeps/sh/sysdep.h: Likewise.
21920         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21921         * sysdeps/unix/i386/sysdep.S: Likewise.
21922         * sysdeps/unix/sparc/start.c: Likewise.
21923         * sysdeps/unix/sparc/sysdep.S: Likewise.
21924         * sysdeps/unix/sparc/sysdep.h: Likewise.
21925         * sysdeps/unix/start.c: Likewise.
21926         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21927         * sysdeps/x86_64/sysdep.h: Likewise.
21928
21929 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21930
21931         [BZ #13553]
21932         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21933         for non-gcc.
21934         * argp/argp-fmtstream.h: Use const instead __const.
21935         * argp/argp.h: Likewise.
21936         * assert/assert.h: Likewise.
21937         * bits/fenv.h: Likewise.
21938         * bits/sched.h: Likewise.
21939         * bits/sigset.h: Likewise.
21940         * bits/sigthread.h: Likewise.
21941         * catgets/nl_types.h: Likewise.
21942         * conform/data/pthread.h-data: Likewise.
21943         * crypt/crypt-private.h: Likewise.
21944         * crypt/crypt.h: Likewise.
21945         * crypt/crypt_util.c: Likewise.
21946         * ctype/ctype.h: Likewise.
21947         * debug/execinfo.h: Likewise.
21948         * debug/mbsnrtowcs_chk.c: Likewise.
21949         * debug/mbsrtowcs_chk.c: Likewise.
21950         * debug/wcsnrtombs_chk.c: Likewise.
21951         * debug/wcsrtombs_chk.c: Likewise.
21952         * debug/wcstombs_chk.c: Likewise.
21953         * dirent/dirent.h: Likewise.
21954         * dlfcn/dlfcn.h: Likewise.
21955         * elf/neededtest4.c: Likewise.
21956         * grp/grp.h: Likewise.
21957         * gshadow/gshadow.h: Likewise.
21958         * iconv/gconv.h: Likewise.
21959         * iconv/gconv_int.h: Likewise.
21960         * iconv/gconv_simple.c: Likewise.
21961         * iconv/iconv.h: Likewise.
21962         * iconv/loop.c: Likewise.
21963         * iconv/skeleton.c: Likewise.
21964         * include/aio.h: Likewise.
21965         * include/aliases.h: Likewise.
21966         * include/argz.h: Likewise.
21967         * include/arpa/inet.h: Likewise.
21968         * include/assert.h: Likewise.
21969         * include/dirent.h: Likewise.
21970         * include/dlfcn.h: Likewise.
21971         * include/execinfo.h: Likewise.
21972         * include/fcntl.h: Likewise.
21973         * include/fenv.h: Likewise.
21974         * include/glob.h: Likewise.
21975         * include/grp.h: Likewise.
21976         * include/libintl.h: Likewise.
21977         * include/mntent.h: Likewise.
21978         * include/netdb.h: Likewise.
21979         * include/pwd.h: Likewise.
21980         * include/rpc/netdb.h: Likewise.
21981         * include/sched.h: Likewise.
21982         * include/search.h: Likewise.
21983         * include/shadow.h: Likewise.
21984         * include/signal.h: Likewise.
21985         * include/stdio.h: Likewise.
21986         * include/stdlib.h: Likewise.
21987         * include/string.h: Likewise.
21988         * include/sys/socket.h: Likewise.
21989         * include/sys/stat.h: Likewise.
21990         * include/sys/statfs.h: Likewise.
21991         * include/sys/statvfs.h: Likewise.
21992         * include/sys/syslog.h: Likewise.
21993         * include/sys/time.h: Likewise.
21994         * include/sys/uio.h: Likewise.
21995         * include/time.h: Likewise.
21996         * include/unistd.h: Likewise.
21997         * include/utmp.h: Likewise.
21998         * include/wchar.h: Likewise.
21999         * include/wctype.h: Likewise.
22000         * inet/aliases.h: Likewise.
22001         * inet/arpa/inet.h: Likewise.
22002         * inet/netinet/ether.h: Likewise.
22003         * inet/netinet/in.h: Likewise.
22004         * intl/libintl.h: Likewise.
22005         * io/bits/fcntl2.h: Likewise.
22006         * io/fcntl.h: Likewise.
22007         * io/ftw.h: Likewise.
22008         * io/sys/poll.h: Likewise.
22009         * io/sys/stat.h: Likewise.
22010         * io/sys/statfs.h: Likewise.
22011         * io/sys/statvfs.h: Likewise.
22012         * io/utime.h: Likewise.
22013         * libio/bits/stdio.h: Likewise.
22014         * libio/bits/stdio2.h: Likewise.
22015         * libio/libio.h: Likewise.
22016         * libio/libioP.h: Likewise.
22017         * libio/stdio.h: Likewise.
22018         * locale/lc-ctype.c: Likewise.
22019         * locale/locale.h: Likewise.
22020         * login/utmp.h: Likewise.
22021         * malloc/arena.c: Likewise.
22022         * malloc/malloc.c: Likewise.
22023         * malloc/malloc.h: Likewise.
22024         * malloc/mcheck.c: Likewise.
22025         * malloc/mtrace.c: Likewise.
22026         * math/bits/mathcalls.h: Likewise.
22027         * math/fenv.h: Likewise.
22028         * math/math_private.h: Likewise.
22029         * misc/bits/error.h: Likewise.
22030         * misc/bits/syslog.h: Likewise.
22031         * misc/err.h: Likewise.
22032         * misc/error.h: Likewise.
22033         * misc/fstab.h: Likewise.
22034         * misc/mntent.h: Likewise.
22035         * misc/regexp.h: Likewise.
22036         * misc/search.h: Likewise.
22037         * misc/sgtty.h: Likewise.
22038         * misc/sys/mman.h: Likewise.
22039         * misc/sys/syslog.h: Likewise.
22040         * misc/sys/uio.h: Likewise.
22041         * misc/sys/xattr.h: Likewise.
22042         * misc/ttyent.h: Likewise.
22043         * nis/rpcsvc/ypclnt.h: Likewise.
22044         * nss/nss.h: Likewise.
22045         * posix/bits/unistd.h: Likewise.
22046         * posix/fnmatch.h: Likewise.
22047         * posix/glob.h: Likewise.
22048         * posix/sched.h: Likewise.
22049         * posix/spawn.h: Likewise.
22050         * posix/sys/wait.h: Likewise.
22051         * posix/unistd.h: Likewise.
22052         * posix/wordexp.h: Likewise.
22053         * pwd/pwd.h: Likewise.
22054         * resolv/netdb.h: Likewise.
22055         * resource/sys/resource.h: Likewise.
22056         * rt/aio.h: Likewise.
22057         * rt/bits/mqueue2.h: Likewise.
22058         * rt/mqueue.h: Likewise.
22059         * shadow/shadow.h: Likewise.
22060         * signal/signal.h: Likewise.
22061         * socket/send.c: Likewise.
22062         * socket/sendto.c: Likewise.
22063         * socket/sys/socket.h: Likewise.
22064         * stdio-common/printf.h: Likewise.
22065         * stdlib/bits/stdlib.h: Likewise.
22066         * stdlib/fmtmsg.h: Likewise.
22067         * stdlib/monetary.h: Likewise.
22068         * stdlib/stdlib.h: Likewise.
22069         * stdlib/ucontext.h: Likewise.
22070         * streams/stropts.h: Likewise.
22071         * string/argz.h: Likewise.
22072         * string/bits/string2.h: Likewise.
22073         * string/string.h: Likewise.
22074         * string/strings.h: Likewise.
22075         * sunrpc/rpc/auth.h: Likewise.
22076         * sunrpc/rpc/auth_des.h: Likewise.
22077         * sunrpc/rpc/clnt.h: Likewise.
22078         * sunrpc/rpc/netdb.h: Likewise.
22079         * sunrpc/rpc/pmap_clnt.h: Likewise.
22080         * sunrpc/rpc/xdr.h: Likewise.
22081         * sysdeps/generic/inttypes.h: Likewise.
22082         * sysdeps/generic/net/if.h: Likewise.
22083         * sysdeps/generic/sys/swap.h: Likewise.
22084         * sysdeps/gnu/net/if.h: Likewise.
22085         * sysdeps/gnu/utmpx.h: Likewise.
22086         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22087         * sysdeps/i386/i486/bits/string.h: Likewise.
22088         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22089         * sysdeps/s390/bits/string.h: Likewise.
22090         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22091         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22092         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22093         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22094         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22095         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22096         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22097         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22098         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22099         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22100         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22101         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22102         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22103         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22104         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22105         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22106         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22107         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22108         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22109         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22110         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22111         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22112         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22113         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22114         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22115         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22116         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22117         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22118         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22119         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22120         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22121         * sysvipc/sys/ipc.h: Likewise.
22122         * sysvipc/sys/msg.h: Likewise.
22123         * sysvipc/sys/sem.h: Likewise.
22124         * sysvipc/sys/shm.h: Likewise.
22125         * termios/termios.h: Likewise.
22126         * time/sys/time.h: Likewise.
22127         * time/time.h: Likewise.
22128         * wcsmbs/bits/wchar2.h: Likewise.
22129         * wcsmbs/uchar.h: Likewise.
22130         * wcsmbs/wchar.h: Likewise.
22131         * wctype/wctype.h: Likewise.
22132
22133         [BZ #13551]
22134         * Makeconfig: Remove all but ELF support including AIX support.
22135         * Makerules: Likewise.
22136         * config.h.in: Likewise.
22137         * config.make.in: Likewise.
22138         * configure: Likewise.
22139         * configure.in: Likewise.
22140         * csu/Makefile: Likewise.
22141         * csu/version.c: Likewise.
22142         * debug/Makefile: Likewise.
22143         * dlfcn/Makefile: Likewise.
22144         * elf/Makefile: Likewise.
22145         * extra-lib.mk: Likewise.
22146         * iconv/Makefile: Likewise.
22147         * include/libc-symbols.h: Likewise.
22148         * include/shlib-compat.h: Likewise.
22149         * resolv/Makefile: Likewise.
22150         * resolv/res_libc.c: Likewise.
22151         * rt/Makefile: Likewise.
22152         * sysdeps/i386/asm-syntax.h: Likewise.
22153         * sysdeps/i386/sysdep.h: Likewise.
22154         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22155         * sysdeps/mach/sysdep.h: Likewise.
22156         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22157         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22158         * sysdeps/s390/asm-syntax.h: Likewise.
22159         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22160         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22161         * sysdeps/sh/sysdep.h: Likewise.
22162         * sysdeps/unix/sparc/sysdep.h: Likewise.
22163         * sysdeps/wordsize-32/divdi3.c: Likewise.
22164         * sysdeps/x86_64/sysdep.h: Likewise.
22165
22166         * argp/Versions: Remove _argp_unlock_xxx.
22167
22168         [BZ #13559]
22169         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22170         * abilist/libBrokenLocale.abilist: Likewise.
22171         * abilist/libanl.abilist: Likewise.
22172         * abilist/libc.abilist: Likewise.
22173         * abilist/libcrypt.abilist: Likewise.
22174         * abilist/libdl.abilist: Likewise.
22175         * abilist/libm.abilist: Likewise.
22176         * abilist/libnsl.abilist: Likewise.
22177         * abilist/libpthread.abilist: Likewise.
22178         * abilist/libresolv.abilist: Likewise.
22179         * abilist/librt.abilist: Likewise.
22180         * abilist/libthread_db.abilist: Likewise.
22181         * abilist/libutil.abilist: Likewise.
22182         * abilist/libnss_db.abilist: New file.
22183
22184         * scripts/abilist.awk: Add support for indirect functions.
22185
22186         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22187
22188         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22189
22190         * shlib-versions: Remove entries for ports architectures.
22191
22192         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22193         files in ports.
22194         * elf/stackguard-macros.h: Remove support for IA-64.
22195         * elf/tst-auditmod1.c: Likewise.
22196         * sysdeps/generic/ldsodefs.h: Likewise.
22197
22198         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22199         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22200         configure files.
22201
22202         [BZ #13552]
22203         * configure.in: Remove --enable-omitfp support.
22204         * FAQ.in: Adjust.
22205         * config.make.in: Likewise.
22206         * Makeconfig: Likewise.
22207         * manual/install.texi: Likewise.
22208
22209         In case anyone cares, the IA-64 architecture could move to ports.
22210         * sysdeps/ia64/*: Removed.
22211         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22212         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22213
22214         [BZ #13555]
22215         * configure.in: Remove entries for unsupported architectures.
22216
22217         [BZ #13533]
22218         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22219         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22220         routines.
22221         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22222         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22223         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22224         fall back to using wcrtomb.
22225         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22226         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22227         renaming.
22228         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22229         * wcsmbs/tst-c16c32-1.c: New file.
22230
22231         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22232         local variable.
22233
22234         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22235
22236         * elf/tst-unique3.cc: Add explicit declaration of gets.
22237         * elf/tst-unique3lib.cc: Likewise.
22238         * elf/tst-unique3lib2.cc: Likewise.
22239         * elf/tst-unique4.cc: Likewise.
22240
22241         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22242
22243 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22244
22245         [BZ #13566]
22246         * assert/assert.h (static_assert): Don't define for C++.
22247         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22248         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22249
22250 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22251
22252         * iconv/loop.c (single loop): Fix assertion in storing of
22253         remaining bytes.
22254
22255         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22256
22257 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22258
22259         * posix/getconf.c: Update copyright year.
22260         * nss/getent.c: Likewise.
22261         * nss/makedb.c: Likewise.
22262         * iconv/iconvconfig.c: Likewise.
22263         * iconv/iconv_prog.c: Likewise.
22264         * elf/ldconfig.c: Likewise.
22265         * elf/pldd.c: Likewise.
22266         * elf/sotruss.ksh: Likewise.
22267         * catgets/gencat.c: Likewise.
22268         * csu/version.c: Likewise.
22269         * elf/ldd.bash.in: Likewise.
22270         * elf/sprof.c (print_version): Likewise.
22271         * locale/programs/locale.c: Likewise.
22272         * locale/programs/localedef.c: Likewise.
22273         * login/programs/pt_chown.c: Likewise.
22274         * nscd/nscd.c (print_version): Likewise.
22275         * debug/xtrace.sh: Likewise.
22276         * malloc/memusage.sh: Likewise.
22277         * malloc/mtrace.pl: Likewise.
22278         * debug/catchsegv.sh: Likewise.
22279
22280 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22281
22282         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22283         pure attribute.
22284
22285 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22286
22287         [BZ #13533]
22288         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22289         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22290         transformations.
22291         * iconv/gconv_int.h: Likewise.
22292         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22293         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22294         from libc for GLIBC_2.16.
22295         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22296         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22297         * wcsmbs/uchar.h: Really define mbstate_t.
22298         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22299         * wcsmbs/c16rtomb.c: New file.
22300         * wcsmbs/mbrtoc16.c: New file.
22301         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22302         for C/POSIX locale.
22303         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22304         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22305
22306         * wcsmbs/wchar.h: Add missing __restrict.
22307
22308 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22309
22310         [BZ #13532]
22311         * time/Makefile (routines): Add timespec_get.
22312         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22313         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22314         timespec for ISO C11.
22315         * time/timespec_get.c: New file.
22316         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22317         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22318
22319         [BZ #13531]
22320         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22321         * stdlib/stdlib.h: Declare aligned_alloc.
22322         * Versions.def: Add GLIBC_2.16 for libc.
22323         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22324
22325         [BZ 13527]
22326         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22327         ISO C11.
22328
22329         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22330         code.
22331
22332         [BZ #13528]
22333         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22334
22335         [BZ #13529]
22336         * assert/assert.h (static_assert): Define.
22337
22338         * version.h: Update for 2.16 development version.
22339
22340         [BZ #13526]
22341         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22342         _ISOC11_SOURCE.
22343
22344         * version.h (RELEASE): Bump for 2.15 release.
22345         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22346
22347         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22348         Patch by Marek Polacek <mpolacek@redhat.com>.
22349
22350         * bits/byteswap.h: Protect long long constants with __extension__.
22351         * sysdeps/i386/bits/byteswap.h: Likewise.
22352         * sysdeps/ia64/bits/byteswap.h: Likewise.
22353         * sysdeps/s390/bits/byteswap.h: Likewise.
22354         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22355
22356 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22357
22358         [BZ #13540]
22359         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22360         destination buffer.
22361         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22362
22363 2011-12-23  Marek Polacek  <polacek@redhat.com>
22364
22365         * elf/dl-addr.c (determine_info): Add inline keyword.
22366         * elf/tst-auditmod4b.c (check_avx): Likewise.
22367         * elf/tst-auditmod6b.c (check_avx): Likewise.
22368         * elf/tst-auditmod6c.c (check_avx): Likewise.
22369         * elf/tst-auditmod7b.c (check_avx): Likewise.
22370
22371 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22372
22373         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22374         !__SSE_MATH__.
22375
22376 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22377
22378         [BZ #13540]
22379         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22380         processing for last bytes.
22381
22382 2011-08-06  Bruno Haible  <bruno@clisp.org>
22383
22384         [BZ #13061]
22385         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22386         U+0385, not to U+1FEE.
22387
22388         [BZ #13062]
22389         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22390         entry for U+00A5 U+0301.
22391
22392 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22393
22394         [BZ #13166]
22395         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22396         buffer for the output is too small.
22397
22398         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22399         optimization.
22400
22401         [BZ #13185]
22402         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22403         SSE flags if possible.
22404
22405 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22406
22407         [BZ #13540]
22408         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22409         processing for last bytes.
22410
22411 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22412
22413         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22414         (syscall-list-default-options, syscall-list-default-condition)
22415         (syscall-list-includes): Define.
22416         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22417         list of ABIs and options and #if conditions for each ABI.  Do not
22418         handle common syscalls between ABIs specially.
22419         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22420         Remove.
22421         (syscall-list-variants, syscall-list-32bit-options)
22422         (syscall-list-32bit-condition, syscall-list-64bit-options)
22423         (syscall-list-64bit-condition): Define.
22424         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22425         (syscall-list-variants, syscall-list-32bit-options)
22426         (syscall-list-32bit-condition, syscall-list-64bit-options)
22427         (syscall-list-64bit-condition): Define.
22428         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22429         Remove.
22430         (syscall-list-variants, syscall-list-32bit-options)
22431         (syscall-list-32bit-condition, syscall-list-64bit-options)
22432         (syscall-list-64bit-condition): Define.
22433         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22434         Remove.
22435         (syscall-list-variants, syscall-list-32bit-options)
22436         (syscall-list-32bit-condition, syscall-list-64bit-options)
22437         (syscall-list-64bit-condition): Define.
22438
22439 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22440
22441         * locale/iso-639.def: Add brx entry.
22442
22443         [BZ #13328]
22444         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22445         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22446
22447         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22448         __feraiseexcept_renamed.
22449
22450 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22451
22452         [BZ #13538]
22453         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22454         EPOLLET with unsigned values.
22455         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22456         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22457
22458         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22459         to large cancellation.
22460         * math/s_cacoshf.c: Likewise.
22461         * math/s_cacoshl.c: Likewise.
22462
22463 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22464
22465         [BZ #13305]
22466         [BZ #12786]
22467         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22468         * math/s_cacoshf.c: Likewise.
22469         * math/s_cacoshl.c: Likewise.
22470
22471 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22472
22473         [BZ #13439]
22474         * iconv/gconv.h: Define __GCONV_SWAP.
22475         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22476         * iconvdata/utf-16.c: Likewise.
22477         * iconvdata/utf-32.c: Likewise.
22478
22479 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22480
22481         [BZ #13524]
22482         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22483         numerator after shifting it by one limb.
22484
22485 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22486
22487         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22488         under [__USE_EXTERN_INLINES].
22489
22490 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22491
22492         [BZ #13446]
22493         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22494
22495 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22496
22497         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22498         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22499         optimized code.
22500         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22501         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22502         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22503         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22504         for strncasecmp/strncasecmp_l compilation.
22505         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22506         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22507
22508 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22509
22510         [BZ #13484]
22511         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22512         of __asm__.
22513
22514 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22515
22516         [BZ #13506]
22517         * time/tzfile.c (__tzfile_read): Check values from file header.
22518
22519 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22520
22521         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22522         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22523         * powerpc/powerpc32/dl-start.S: Likewise.
22524         * powerpc/powerpc32/elf/start.S: Likewise.
22525         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22526         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22527         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22528         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22529         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22530         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22531         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22532         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22533         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22534         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22535         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22536         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22537         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22538         * powerpc/powerpc32/memset.S: Likewise.
22539         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22540         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22541         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22542         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22543         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22544         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22545         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22546         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22547         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22548         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22549         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22550         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22551         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22552
22553 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22554
22555         * math/libm-test.inc: Added more nearbyint tests.
22556         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22557         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22558         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22559         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22560
22561 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22562
22563         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22564         FD_CLOEXEC.
22565
22566 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22567
22568         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22569         Add wcscpy-ssse3 wcscpy-c.
22570         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22571         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22572         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22573         * sysdeps/x86_64/wcschr.S: New file.
22574         * sysdeps/x86_64/wcsrchr.S: New file.
22575         * string/test-strcmp.c: Remove checking of wcscmp function for
22576         wrong alignments.
22577         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22578         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22579         wcsrchr-sse2 wcsrchr-c.
22580         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22581         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22582         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22583         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22584         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22585         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22586         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22587         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22588         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22589         * wcsmbc/wcschr.c (WCSCHR): New macro.
22590
22591 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22592
22593         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22594         * wcsmbs/test-wcsrchr.c: New file.
22595         * string/test-strrchr.c: Add wcsrchr support.
22596         (WIDE): New macro.
22597         * wcsmbs/test-wcscpy.c: New file.
22598         * string/test-strcpy.c: Add wcscpy support.
22599         (WIDE): New macro.
22600
22601 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22602
22603         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22604         the inner loop.
22605
22606 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22607
22608         [BZ #13472]
22609         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22610
22611 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22612
22613         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22614         Minor optimizations.
22615
22616         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22617         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22618         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22619
22620 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22621
22622         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22623         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22624         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22625         for gcc to avoid warnings.
22626         * inet/Makefile (tests): Add tst-checks.
22627         * inet/tst-checks.c: New file.
22628
22629         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22630         warning.
22631
22632         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22633         __wmemcmp_sse2.
22634
22635         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22636         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22637
22638         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22639
22640 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22641
22642         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22643         problem.
22644
22645         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22646
22647 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22648
22649         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22650         conditional on GCC version.
22651         (__arch_compare_and_exchange_val_8_acq)
22652         (__arch_compare_and_exchange_val_16_acq)
22653         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22654         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22655         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22656
22657 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22658
22659         * sysdeps/sh/backtrace.c: New file.
22660
22661 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22662
22663         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22664         parenthesis.
22665
22666 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22667
22668         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22669         falling back to utime.
22670
22671 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22672
22673         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22674         expectations for float.
22675
22676 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22677
22678         * locale/weight.h (findidx): Add parameter len.
22679         * locale/weightwc.h (findidx): Likewise.
22680         * posix/fnmatch_loop.c (FCT): Adjust caller.
22681         * posix/regcomp.c (build_equiv_class): Likewise.
22682         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22683         * posix/regexec.c (check_node_accept_bytes): Likewise.
22684         * string/strcoll_l.c (STRCOLL): Likewise.
22685         * string/strxfrm_l.c (STRXFRM): Likewise.
22686
22687 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22688
22689         * Makefile.in: Remove CVSOPT handling.
22690         * configure.in: Remove use of AC_REVISION.
22691         * iconvdata/Makefile (distribute): No need to filter out CVS.
22692         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22693         handling.
22694
22695 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22696
22697         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22698         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22699         [USE_AS_STRNCASECMP_L]: Likewise.
22700         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22701         NO_TLS_DIRECT_SEG_REFS.
22702         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22703         Fix argument offsets for non-PIC.
22704         [USE_AS_STRNCASECMP_L]: Likewise.
22705         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22706         NO_TLS_DIRECT_SEG_REFS.
22707
22708 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22709
22710         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22711         O_CLOEXEC.
22712         * locale/loadlocale.c (_nl_load_locale): Likewise.
22713
22714 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22715
22716         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22717         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22718         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22719         (SYSCALL_GETTIME): Set errno on error.
22720
22721         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22722         count references to noai6ai_cached.
22723
22724 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22725
22726         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22727
22728         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22729         FD_CLOEXEC for /proc/self/maps.
22730
22731         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22732         FD_CLOEXEC for /proc/meminfo.
22733
22734         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22735         gai.conf.
22736
22737         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22738         FD_CLOEXEC for given file.
22739
22740         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22741
22742         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22743         FD_CLOEXEC for /etc/hosts.
22744         (_gethtent): Likewise.
22745
22746         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22747
22748         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22749         cancellation and set FD_CLOEXEC for /etc/netgroup.
22750
22751         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22752         reading /etc/publickey.
22753
22754         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22755         allow cancellation when reading /etc/group.
22756
22757         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22758         cancellation.
22759         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22760
22761         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22762         when using data file.
22763
22764         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22765
22766         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22767         (write_nis_obj): Use "c" and "e" in fopen.
22768
22769         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22770
22771         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22772
22773         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22774
22775         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22776
22777         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22778         locale.alias.
22779
22780         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22781
22782         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22783
22784         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22785
22786         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22787         file parsing and set FD_CLOEXEC.
22788
22789 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22790
22791         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22792
22793 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22794
22795         * malloc/arena.c (arena_get2): Don't call reused_arena when
22796         _int_new_arena failed.
22797
22798 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22799
22800         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22801         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22802         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22803         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22804         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22805         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22806         to compile strcasecmp and strncasecmp.
22807         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22808         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22809
22810         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22811
22812 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22813
22814         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22815         locale-defines.sym to gen-as-const-headers.
22816         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22817         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22818         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22819         to compile strcasecmp and strncasecmp.
22820         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22821         strcasecmp_l and strncasecmp_l.
22822         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22823         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22824         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22825         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22826         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22827         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22828         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22829         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22830         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22831         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22832         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22833
22834 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22835
22836         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22837         result of SYSDEP_GETTIME_CPU to retval.
22838         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22839         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22840
22841         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22842         variable.
22843
22844         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22845         mantissa words.
22846         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22847
22848         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22849         from unused variable.
22850
22851         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22852         DWARF definitions.
22853         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22854         for assembling.
22855
22856         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22857         over namespaces.
22858
22859         * sunrpc/rpc_prot.c (rejected): Fix case value.
22860
22861         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22862         unsigned long long int to avoid warnings in shift.
22863
22864         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22865         of use of trans.
22866         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22867         variable tmp.
22868
22869         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22870         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22871         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22872
22873         * nis/nis_table.c (nis_list): Use variable of correct type for
22874         result of __follow_path call.
22875
22876 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22877
22878         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22879         of math functions ceil, trunc, floor, round, and sqrt, when
22880         avaliable on the platform.
22881         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22882         name clash.
22883         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22884         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22885         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22886
22887 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22888
22889         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22890         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22891
22892 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22893
22894         * include/unistd.h: Fix __readlink return type.
22895         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22896
22897 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22898
22899         * stdlib/ucontext.h: Undo last change for makecontext.
22900
22901 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22902
22903         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22904
22905         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22906         * setjmp/setjmp.h: Mark functions as non-leaf.
22907         * setjmp/bits/setjmp2.h: Likewise.
22908         * stdlib/ucontext.h: Likewise.
22909
22910 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22911
22912         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22913         (reused_arena): Don't check arena limit.
22914         (arena_get2): Atomically check arena limit.
22915
22916 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22917
22918         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22919         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22920
22921         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22922         instructions.
22923
22924 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22925
22926         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22927         handler when locking.
22928
22929         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22930         Fix size of allocated buffer.
22931
22932 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22933
22934         [BZ #10103]
22935         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22936         declarations for long double functions.
22937         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22938
22939         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22940
22941 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22942
22943         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22944         installed.
22945
22946         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22947         is disabled.
22948
22949 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22950
22951         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22952
22953 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22954
22955         * include/alloca.h (stackinfo_alloca_round): Define.
22956         (extend_alloca): Use it.
22957         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22958         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22959         here.
22960
22961         * scripts/check-local-headers.sh: Ignore libaudit.h.
22962
22963         * nscd/Makefile (extra-objs): Make recursively expanded.
22964
22965 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22966
22967         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22968         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22969
22970         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22971         * posix/tst-rfc3484-2.c: Likewise.
22972         * posix/tst-rfc3484-3.c: Likewise.
22973
22974         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22975         process_vm_writev.
22976         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22977         process_vm_writev.
22978         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22979         process_vm_writev from libc using GLIBC_2.15 version.
22980
22981         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22982
22983 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22984
22985         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22986         stack usage.
22987
22988 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22989
22990         [BZ #13367]
22991         * nss/getent.c (initgroups_keys): Show error message in case no group
22992         names are given.
22993
22994         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22995         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22996         __bump_nl_timestamp.
22997         * nscd/connections (nscd_init): When host database is served open
22998         netlink socket and request notification about configuration changes.
22999         (main_loop_poll): Track netlink file descriptor and bump timestamp
23000         in case data becomes available.
23001         (main_loop_epoll): Likewise.
23002         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23003         (database_pers_head): Add extra_data fileds.
23004         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23005         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23006         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23007         Adjust caller.
23008         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23009         in6ai data, call __free_in6ai.
23010         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23011         Add -DHAVE_NETLINK.
23012         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23013         interface information.  Reuse previous data if netlink timestamp
23014         is not changed.
23015         (__bump_nl_timestamp): New function.
23016         (__free_in6ai): New function.
23017
23018 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23019
23020         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23021         close_not_cancel_no_status here.
23022         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23023
23024 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23025
23026         [BZ #13276]
23027         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23028         return value.
23029
23030         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23031         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23032         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23033
23034 2011-07-03  Andreas Jaeger  <aj@suse.de>
23035
23036         [BZ #10709]
23037         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23038         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23039         * math/libm-test.inc (sin_test): Add test case.
23040
23041 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23042
23043         [BZ #13337]
23044         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23045         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23046
23047         * elf/chroot_canon.c (chroot_canon): Cleanups.
23048
23049         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23050
23051         [BZ #13335]
23052         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23053         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23054
23055         * string/test-strchr.c: Make usable for strchrnul testing.
23056         * string/test-strchrnul.c: New file.
23057         * string/Makefile (strop-tests): Add strchrnul.
23058
23059         * po/it.po: Update from translation team.
23060         * po/es.po: Likewise.
23061
23062 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23063
23064         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23065         the three constants needed as parameters.  Drop the others.
23066         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23067         __m128i_strloadu_tolower.
23068         Create and initialize variable zero and use it in all the places
23069         where _mm_setzero_si128 was used.
23070
23071         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23072         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23073         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23074         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23075         anymore.
23076         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23077         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23078         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23079         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23080         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23081         __mpranred, __mptan.
23082         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23083         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23084         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23085         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23086         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23087         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23088         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23089         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23090         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23091
23092 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23093
23094         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23095         redefine if SHARED.
23096         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23097
23098         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23099         wide char related routines to wcsmbs subdir.
23100
23101 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23102
23103         [BZ #13344]
23104         * misc/sys/cdefs.h (__THROWNL): Define.
23105         * posix/unistd.h: Use __THREADNL instead of __THREAD
23106         for memory synchronization functions.
23107
23108 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23109
23110         [BZ #13349]
23111         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23112         doesn't exist.
23113         * manual/stdio.texi (Obstack Streams): Node removed.
23114
23115 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23116
23117         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23118         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23119         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23120
23121         * math/math_private.h (math_force_eval): Allow non-addressable
23122         arguments.
23123         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23124
23125 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23126
23127         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23128         file is not needed.
23129
23130         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23131         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23132         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23133         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23134         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23135         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23136         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23137         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23138         Add AVX variants.
23139         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23140         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23141         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23142         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23143         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23144         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23145         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23146         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23147         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23148         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23149         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23150         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23151         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23152         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23153         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23154         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23155         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23156         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23157         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23158
23159         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23160         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23161
23162         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23163         place.  Use VEX encoding when compiling for AVX.
23164
23165 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23166
23167         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23168         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23169
23170         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23171
23172 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23173
23174         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23175         useless if() expression.
23176         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23177         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23178         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23179         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23180         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23181         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23182         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23183         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23184         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23185         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23186         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23187         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23188         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23189         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23190         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23191         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23192         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23193         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23194         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23195
23196         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23197
23198 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23199
23200         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23201         condition.
23202         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23203
23204 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23205
23206         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23207         .text section.  Avoid duplicate constants.
23208         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23209         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23210         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23211         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23212         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23213         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23214         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23215         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23216         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23217         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23218         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23219         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23220         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23221         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23222         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23223         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23224         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23225         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23226         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23227         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23228         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23229         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23230         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23231         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23232         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23233         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23234         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23235         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23236         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23237         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23238         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23239         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23240         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23241         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23242         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23243         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23244         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23245         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23246         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23247         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23248         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23249         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23250         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23251         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23252         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23253
23254 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23255
23256         * sysdeps/x86_64/dla.h: Move to ...
23257         * sysdeps/x86_64/fpu/dla.h: ...here.
23258         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23259         situations.  Use __builtin_fma only for gcc 4.6 and up.
23260
23261         * config.make.in: Add have-mfma4 entry.
23262         * configure.in: Substitute libc_cv_cc_fma4.
23263         * math/Makefile (dbl-only-routines): Add sincostab.
23264         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23265         Use __sincostab not sincos.
23266         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23267         name is a macro.
23268         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23269         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23270         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23271         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23272         using __copysign.
23273         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23274         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23275         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23276         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23277         and __inv.
23278         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23279         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23280         __copysign.
23281         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23282         define aliases when function name is a macro.
23283         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23284         sysdeps/ieee754/dbl-64/sincos.tbl.
23285         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23286         fma4-enabled routines.
23287         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23288         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23289         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23290         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23291         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23292         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23293         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23294         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23295         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23296         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23297         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23298         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23299         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23300         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23301         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23302         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23303         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23304         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23305         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23306         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23307         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23308         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23309         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23310         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23311         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23312         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23313         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23314         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23315         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23316         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23317
23318         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23319         rename.
23320         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23321         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23322         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23323         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23324         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23325         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23326         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23327         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23328
23329 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23330
23331         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23332
23333 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23334
23335         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23336
23337         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23338         prediction.
23339         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23340
23341         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23342         Remove unused variable magic_bits.
23343         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23344
23345         * string/strnlen.c: Define and use STRNLEN macro.
23346         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23347         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23348         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23349         * wcsmbs/wcslen.c: Define and use WCSLEN.
23350         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23351         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23352         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23353         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23354         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23355         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23356         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23357
23358 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23359
23360         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23361         strnlen-sse2-no-bsf.
23362         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23363         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23364         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23365         Add strnlen support.
23366         (USE_AS_STRNLEN): New macro.
23367         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23368         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23369         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23370         * sysdeps/x86_64/wcslen.S: New file.
23371
23372 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23373
23374         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23375         XMM-moves are used for copying on small sizes.
23376
23377 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23378
23379         * wcsmbs/Makefile (strop-tests): Add wcschr.
23380         * wcsmbs/test-wcschr.c: New file.
23381         * string/test-strchr.c: Update.
23382         Add wcschr support.
23383         (WIDE): New macro.
23384
23385 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23386
23387         * wcsmbs/Makefile (strop-tests): Add wcslen.
23388         * wcsmbs/test-wcslen.c: New file.
23389         * string/test-strlen.c: Update.
23390         Add wcslen support.
23391         (WIDE): New macro.
23392
23393 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23394
23395         * po/it.po: Update from translation team.
23396
23397 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23398
23399         * sysdeps/x86_64/wcscmp.S: Update.
23400         Fix wrong comparison semantics.
23401         wcscmp shall use signed comparison not unsigned.
23402         Don't use substraction to avoid overflow bug.
23403         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23404         * wcsmbc/wcscmp.c: Likewise.
23405         * string/test-strcmp.c: Likewise.
23406         Add new tests to check cases with negative values.
23407
23408 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23409
23410         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23411         * sysdeps/x86_64/dla.h: ...here.  New file.
23412         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23413         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23414         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23415         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23416         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23417         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23418         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23419         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23420         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23421
23422 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23423
23424         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23425         __ynl_finite aliases.
23426
23427 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23428
23429         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23430
23431         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23432         define DLA_FMA.
23433         [DLA_FMA] (EMULV): Use DLA_FMA.
23434         [DLA_FMA] (MUL12): Use EMULV.
23435         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23436         that are not needed.
23437         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23438         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23439         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23440         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23441         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23442         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23443         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23444
23445 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23446
23447         * math/s_nan.c: Undef __nan.
23448         * math/s_nanf.c: Undef __nanf.
23449         * math/s_nanl.c: Undef __nanl.
23450         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23451         "math_private.h".
23452
23453 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23454
23455         * math/s_catan.c: Add branch predictions.
23456         * math/s_catanf.c: Likewise.
23457         * math/s_catanh.c: Likewise.
23458         * math/s_catanhf.c: Likewise.
23459         * math/s_catanhl.c: Likewise.
23460         * math/s_catanl.c: Likewise.
23461         * math/s_cexp.c: Likewise.
23462         * math/s_cexpf.c: Likewise.
23463         * math/s_cexpl.c: Likewise.
23464         * math/s_clog.c: Likewise.
23465         * math/s_clog10.c: Likewise.
23466         * math/s_clog10f.c: Likewise.
23467         * math/s_clog10l.c: Likewise.
23468         * math/s_clogf.c: Likewise.
23469         * math/s_clogl.c: Likewise.
23470         * math/s_csqrt.c: Likewise.
23471         * math/s_csqrtf.c: Likewise.
23472         * math/s_csqrtl.c: Likewise.
23473         * math/s_ctanf.c: Likewise.
23474         * math/s_ctanh.c: Likewise.
23475         * math/s_ctanhf.c: Likewise.
23476         * math/s_ctanhl.c: Likewise.
23477         * math/s_ctanl.c: Likewise.
23478
23479         * math/math_private.h: Define __nan, __nanf, __nanl.
23480         * math/s_cacosh.c: Include <math_private.h>.
23481         * math/s_cacoshl.c: Likewise.
23482         * math/s_casinh.c: Likewise.
23483         * math/s_casinhf.c: Likewise.
23484         * math/s_casinhl.c: Likewise.
23485         * math/s_ccos.c: Rely entire on ccosh.
23486         * math/s_ccosf.c: Rely entire on ccoshf.
23487         * math/s_ccosl.c: Rely entirely on ccoshl.
23488         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23489         Remove tests for FE_INVALID.
23490         * math/s_ccoshf.c: Likewise.
23491         * math/s_ccoshl.c: Likewise.
23492         * math/s_csin.c: Likewise.
23493         * math/s_csinf.c: Likewise.
23494         * math/s_csinh.c Likewise.
23495         * math/s_csinhf.c: Likewise.
23496         * math/s_csinhl.c: Likewise.
23497         * math/s_csinl.c: Likewise.
23498         * math/s_ctan.c: Likewise.
23499         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23500         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23501         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23502
23503 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23504
23505         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23506         compilation problems.
23507
23508         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23509         __builtin_expect.
23510
23511 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23512
23513         * sysdeps/i386/configure.in: Test for -mfma4 option.
23514         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23515         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23516         COMMON_CPUID_INDEX_80000001.
23517         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23518         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23519         use it if FMA3 is not supported.
23520         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23521
23522         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23523         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23524
23525 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23526
23527         [BZ #12892]
23528         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23529         it would create a cycle with a link time dependency.
23530
23531 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23532
23533         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23534         instruction.
23535         * string/Makefile (strop-tests): Add rawmemchr.
23536         * string/test-rawmemchr.c: New file.
23537
23538         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23539         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23540         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23541         when compiling str{,n}casecmp and when AVX is available.  Hook up
23542         new optimized code in initializers.
23543
23544 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23545
23546         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23547         __feraiseexcept instead of feraiseexcept.
23548
23549 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23550
23551         * math/math_private.h: Define defaults for libc_fetestexcept and
23552         libc_feupdateenv.
23553         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23554         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23555         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23556         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23557         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23558         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23559         libc_fetestexcept and libc_feupdateenv.
23560
23561         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23562         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23563         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23564         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23565         libc_feholdexcept_setround.
23566
23567         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23568         Add s_nearbyint-c and s_nearbyintf-c.
23569         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23570         nearbyintf inlines.
23571         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23572         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23573         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23574         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23575
23576         * math/math_private.h: Define defaults for libc_fegetround,
23577         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23578         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23579         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23580         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23581         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23582         standard functions.
23583         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23584         Remove comments and hacks for old compiler versions.
23585         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23586         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23587         libc_feholdexceptl.
23588
23589 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23590
23591         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23592         (__feraiseexcept_renamed): Add __NTH.
23593         (feraiseexcept): Add __NTH.  Rename local variables to fix
23594         namespace violations.
23595
23596 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23597
23598         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23599
23600         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23601
23602         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23603         recently added interfaces.
23604         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23605
23606         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23607         about macro parameter expansion.
23608
23609         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23610         __NO_MATH_INLINES is defined.  Cleanups.
23611
23612         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23613         and __floorf is target has SSE4.1.
23614         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23615         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23616         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23617         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23618
23619         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23620         name.
23621         (floorf): Likewise.
23622
23623         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23624
23625 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23626
23627         * misc/sys/cdefs.h: Fix last change.
23628
23629         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23630         database lookup.
23631
23632 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23633
23634         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23635
23636         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23637         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23638         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23639         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23640         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23641         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23642         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23643         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23644         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23645         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23646         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23647         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23648         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23649         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23650         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23651         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23652         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23653         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23654         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23655         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23656         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23657         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23658
23659         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23660         ceil, ceilf, floor, floorf.
23661
23662         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23663         Perform IRELATIVE relocations last.
23664
23665         * elf/do-rel.h: Add another parameter nrelative, replacing the
23666         local variable with the same name.  Change name of the function
23667         to end in Rel or Rela (uppercase).
23668         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23669         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23670         elf_dynamic_do_##reloc function.
23671
23672 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23673
23674         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23675         is sufficient, at least on modern CPUs.
23676
23677         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23678
23679         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23680         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23681
23682         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23683         __expl_finite.
23684         * math/bits/math-finite.h: Add entries for exp.
23685         * math/e_expl.c: Add __*_finite alias.
23686         * sysdeps/i386/fpu/e_exp.S: Likewise.
23687         * sysdeps/i386/fpu/e_expf.S: Likewise.
23688         * sysdeps/i386/fpu/e_expl.c: Likewise.
23689         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23690         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23691         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23692         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23693         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23694         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23695         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23696
23697         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23698         is sufficient, at least on modern CPUs.
23699
23700         * ctype/ctype-info.c (__ctype_init): Define.
23701         * include/ctype.h (__ctype_init): Declare.
23702         (__ctype_b_loc): The variable is always initialized.
23703         (__ctype_toupper_loc): Likewise.
23704         (__ctype_tolower_loc): Likewise.
23705         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23706         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23707
23708 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23709
23710         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23711
23712         * configure.in: Also look in $cxxmachine/include for C++ system
23713         headers.
23714
23715 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23716
23717         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23718         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23719         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23720         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23721         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23722         (USE_AS_WMEMCMP): New macro.
23723         Fixing indents.
23724         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23725         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23726         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23727         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23728         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23729         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23730         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23731         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23732         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23733         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23734         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23735         (USE_AS_WMEMCMP): New macro.
23736         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23737         * sysdeps/string/test-memcmp.c: Update.
23738         Fix simple_wmemcmp.
23739         Add new tests.
23740         * wcsmbs/wmemcmp.c: Update.
23741         (WMEMCMP): New macro.
23742         Fix overflow bug.
23743
23744 2011-10-12  Andreas Jaeger  <aj@suse.de>
23745
23746         [BZ #13268]
23747         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23748
23749 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23750
23751         * libio/iofwide.c (do_length): Avoid warning.
23752
23753         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23754
23755 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23756
23757         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23758
23759         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23760         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23761         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23762         * sysdeps/i386/i686/fpu/e_log.S: New file.
23763         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23764         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23765
23766         * ctype/ctype.h: Add support for inlined isXXX functions when
23767         compiling C++ code.
23768
23769 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23770
23771         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23772
23773         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23774
23775 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23776
23777         [BZ #13291]
23778         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23779
23780 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23781
23782         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23783         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23784         feraiseexcept.
23785
23786         * sysdeps/x86_64/memrchr.S: Check for zero size.
23787
23788         * string/stratcliff.c: Add memrchr tests.
23789
23790 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23791
23792         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23793         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23794         rawmemchr-sse2 rawmemchr-sse2-bsf.
23795         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23796         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23797         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23798         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23799         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23800         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23801         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23802         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23803         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23804         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23805         * string/memrchr.c (MEMRCHR): New macro.
23806
23807 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23808
23809         Add integration with gcc's -ffinite-math-only and optimize wrapper
23810         functions in libm.
23811         * Versions.def: Define GLIBC_2.15 version for libm.
23812         * math/Makefile (headers): Add bits/math-finite.h.
23813         * math/bits/math-finite.h: New file.
23814         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23815         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23816         * math/e_acoshl.c: Add __*_finite alias.
23817         * math/e_acosl.c: Likewise.
23818         * math/e_asinl.c: Likewise.
23819         * math/e_atan2l.c: Likewise.
23820         * math/e_atanhl.c: Likewise.
23821         * math/e_coshl.c: Likewise.
23822         * math/e_exp10.c: Likewise.
23823         * math/e_exp10f.c: Likewise.
23824         * math/e_exp10l.c: Likewise.
23825         * math/e_exp2l.c: Likewise.
23826         * math/e_fmodl.c: Likewise.
23827         * math/e_gammal_r.c: Likewise.
23828         * math/e_hypotl.c: Likewise.
23829         * math/e_j0l.c: Likewise.
23830         * math/e_j1l.c: Likewise.
23831         * math/e_jnl.c: Likewise.
23832         * math/e_lgammal_r.c: Likewise.
23833         * math/e_log10l.c: Likewise.
23834         * math/e_log2l.c: Likewise.
23835         * math/e_logl.c: Likewise.
23836         * math/e_powl.c: Likewise.
23837         * math/e_sinhl.c: Likewise.
23838         * math/e_sqrtl.c: Likewise.
23839         * math/e_scalb.c: Completely rewritten and optimized.
23840         * math/e_scalbf.c: Likewise.
23841         * math/e_scalbl.c: Likewise.
23842         * math/w_acos.c: Likewise.
23843         * math/w_acosf.c: Likewise.
23844         * math/w_acosl.c: Likewise.
23845         * math/w_acosh.c: Likewise.
23846         * math/w_acoshf.c: Likewise.
23847         * math/w_acoshl.c: Likewise.
23848         * math/w_asin.c: Likewise.
23849         * math/w_asinf.c: Likewise.
23850         * math/w_asinl.c: Likewise.
23851         * math/w_atan2.c: Likewise.
23852         * math/w_atan2f.c: Likewise.
23853         * math/w_atan2l.c: Likewise.
23854         * math/w_atanh.c: Likewise.
23855         * math/w_atanhf.c: Likewise.
23856         * math/w_atanhl.c: Likewise.
23857         * math/w_exp10.c: Likewise.
23858         * math/w_exp10f.c: Likewise.
23859         * math/w_exp10l.c: Likewise.
23860         * math/w_fmod.c: Likewise.
23861         * math/w_fmodf.c: Likewise.
23862         * math/w_fmodl.c: Likewise.
23863         * math/w_j0.c: Likewise.
23864         * math/w_j0f.c: Likewise.
23865         * math/w_j0l.c: Likewise.
23866         * math/w_j1.c: Likewise.
23867         * math/w_j1f.c: Likewise.
23868         * math/w_j1l.c: Likewise.
23869         * math/w_jn.c: Likewise.
23870         * math/w_jnf.c: Likewise.
23871         * math/w_log.c: Likewise.
23872         * math/w_logf.c: Likewise.
23873         * math/w_logl.c: Likewise.
23874         * math/w_log10.c: Likewise.
23875         * math/w_log10f.c: Likewise.
23876         * math/w_log10l.c: Likewise.
23877         * math/w_log2.c: Likewise.
23878         * math/w_log2f.c: Likewise.
23879         * math/w_log2l.c: Likewise.
23880         * math/w_pow.c: Likewise.
23881         * math/w_powf.c: Likewise.
23882         * math/w_powl.c: Likewise.
23883         * math/w_remainder.c: Likewise.
23884         * math/w_remainderf.c: Likewise.
23885         * math/w_remainderl.c: Likewise.
23886         * math/w_scalb.c: Likewise.
23887         * math/w_scalbf.c: Likewise.
23888         * math/w_scalbl.c: Likewise.
23889         * math/w_sqrt.c: Likewise.
23890         * math/w_sqrtf.c: Likewise.
23891         * math/w_sqrtl.c: Likewise.
23892         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23893         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23894         used.
23895         * math/math_private.h: Declare __kernel_standard_f.
23896         * math/w_cosh.c: Remove cruft and optimize a bit.
23897         * math/w_coshf.c: Likewise.
23898         * math/w_coshl.c: Likewise.
23899         * math/w_exp2.c: Likewise.
23900         * math/w_exp2f.c: Likewise.
23901         * math/w_exp2l.c: Likewise.
23902         * math/w_hypot.c: Likewise.
23903         * math/w_hypotf.c: Likewise.
23904         * math/w_hypotl.c: Likewise.
23905         * math/w_lgamma.c: Likewise.
23906         * math/w_lgamma_r.c: Likewise.
23907         * math/w_lgammaf.c: Likewise.
23908         * math/w_lgammaf_r.c: Likewise.
23909         * math/w_lgammal.c: Likewise.
23910         * math/w_lgammal_r.c: Likewise.
23911         * math/w_sinh.c: Likewise.
23912         * math/w_sinhf.c: Likewise.
23913         * math/w_sinhl.c: Likewise.
23914         * math/w_tgamma.c: Likewise.
23915         * math/w_tgammaf.c: Likewise.
23916         * math/w_tgammal.c: Likewise.
23917         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23918         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23919         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23920         Minor optimizations.  Pretty printing.  Remove cruft.
23921         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23922         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23923         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23924         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23925         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23926         * sysdeps/i386/fpu/e_asin.S: Likewise.
23927         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23928         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23929         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23930         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23931         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23932         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23933         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23934         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23935         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23936         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23937         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23938         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23939         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23940         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23941         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23942         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23943         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23944         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23945         * sysdeps/i386/fpu/e_log.S: Likewise.
23946         * sysdeps/i386/fpu/e_log10.S: Likewise.
23947         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23948         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23949         * sysdeps/i386/fpu/e_log2.S: Likewise.
23950         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23951         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23952         * sysdeps/i386/fpu/e_logf.S: Likewise.
23953         * sysdeps/i386/fpu/e_logl.S: Likewise.
23954         * sysdeps/i386/fpu/e_pow.S: Likewise.
23955         * sysdeps/i386/fpu/e_powf.S: Likewise.
23956         * sysdeps/i386/fpu/e_powl.S: Likewise.
23957         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23958         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23959         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23960         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23961         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23962         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23963         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23964         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23965         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23966         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23967         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23968         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23969         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23970         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23971         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23972         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23973         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23974         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23975         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23976         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23977         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23978         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23979         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23980         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23981         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23982         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23983         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23984         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23985         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23986         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23987         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23988         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23989         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23990         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23991         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23992         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23993         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23994         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23995         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23996         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23997         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23998         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23999         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24000         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24001         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24002         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24003         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24004         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24005         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24006         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24007         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24008         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24009         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24010         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24011         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24012         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24013         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24014         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24015         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24016         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24017         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24018         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24019         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24020         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24021         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24022         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24023         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24024         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24025         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24026         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24027         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24028         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24029         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24030         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24031         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24032         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24033         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24034         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24035         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24036         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24037         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24038         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24039         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24040         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24041         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24042         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24043         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24044         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24045         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24046         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24047         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24048         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24049         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24050         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24051         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24052         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24053         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24054         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24055         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24056         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24057         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24058         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24059         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24060         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24061         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24062         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24063         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24064         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24065         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24066         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24067         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24068         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24069         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24070         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24071         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24072         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24073         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24074         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24075         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24076         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24077         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24078         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24079         (__isnanf): Likewise.
24080         (__isinf_ns): Likewise.
24081         (__isinf_nsf): Likewise.
24082         (__finite): Likewise.
24083         (__finitef): Likewise.
24084         (__ieee754_sqrt): Define as macro.
24085         (__ieee754_sqrtf): Define as macro.
24086         (__ieee754_sqrtl): Define as macro.
24087         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24088         inlined copy.
24089         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24090         __FINITE_MATH_ONLY__ consistent.
24091         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24092
24093 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24094
24095         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24096         of rawmemchr.
24097
24098         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24099
24100 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24101
24102         * po/ja.po: Update from translation team.
24103
24104 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24105
24106         * locale/programs/locarchive.c (prepare_address_space): New function.
24107         (create_archive, enlarge_archive, open_archive): Use it.
24108
24109         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24110         inside [SHARED], where it is used.
24111
24112         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24113
24114         * nss/getent.c (netgroup_keys): Remove unused variable.
24115         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24116
24117 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24118
24119         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24120         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24121         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24122         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24123         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24124         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24125         * math/Makefile (libm-calls): Add s_isinf_ns.
24126         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24127         * math/multc3.c: Likewise.
24128         * math/s_casin.c: Likewise.
24129         * math/s_casinf.c: Likewise.
24130         * math/s_casinl.c: Likewise.
24131         * math/s_ccos.c: Likewise.
24132         * math/s_ccosf.c: Likewise.
24133         * math/s_ccosl.c: Likewise.
24134         * math/s_ctan.c: Likewise.
24135         * math/s_ctanf.c: Likewise.
24136         * math/s_ctanh.c: Likewise.
24137         * math/s_ctanhf.c: Likewise.
24138         * math/s_ctanhl.c: Likewise.
24139         * math/s_ctanl.c: Likewise.
24140         * math/w_fmod.c: Likewise.
24141         * math/w_fmodf.c: Likewise.
24142         * math/w_fmodl.c: Likewise.
24143         * math/w_remainder.c: Likewise.
24144         * math/w_remainderf.c: Likewise.
24145         * math/w_remainderl.c: Likewise.
24146         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24147         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24148         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24149         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24150         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24151         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24152         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24153         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24154
24155         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24156         of the number.
24157         * stdio-common/printf_fphex.c: Likewise.
24158         * stdio-common/printf_size.c: Likewise.
24159
24160         * math/e_exp10.c: Include math_private.h using <...> not "...".
24161         * math/e_exp10f.c: Likewise.
24162         * math/e_exp10l.c: Likewise.
24163         * math/e_exp2l.c: Likewise.
24164         * math/e_j0l.c: Likewise.
24165         * math/e_j1l.c: Likewise.
24166         * math/e_jnl.c: Likewise.
24167         * math/e_lgammal_r.c: Likewise.
24168         * math/e_rem_pio2l.c: Likewise.
24169         * math/e_scalb.c: Likewise.
24170         * math/e_scalbf.c: Likewise.
24171         * math/e_scalbl.c: Likewise.
24172         * math/k_cosl.c: Likewise.
24173         * math/k_sinl.c: Likewise.
24174         * math/k_tanl.c: Likewise.
24175         * math/s_cacoshf.c: Likewise.
24176         * math/s_catan.c: Likewise.
24177         * math/s_catanf.c: Likewise.
24178         * math/s_catanh.c: Likewise.
24179         * math/s_catanhf.c: Likewise.
24180         * math/s_catanhl.c: Likewise.
24181         * math/s_catanl.c: Likewise.
24182         * math/s_ccosh.c: Likewise.
24183         * math/s_ccoshf.c: Likewise.
24184         * math/s_ccoshl.c: Likewise.
24185         * math/s_cexp.c: Likewise.
24186         * math/s_cexpf.c: Likewise.
24187         * math/s_cexpl.c: Likewise.
24188         * math/s_clog.c: Likewise.
24189         * math/s_clog10.c: Likewise.
24190         * math/s_clog10f.c: Likewise.
24191         * math/s_clog10l.c: Likewise.
24192         * math/s_clogf.c: Likewise.
24193         * math/s_clogl.c: Likewise.
24194         * math/s_csin.c: Likewise.
24195         * math/s_csinf.c: Likewise.
24196         * math/s_csinh.c: Likewise.
24197         * math/s_csinhf.c: Likewise.
24198         * math/s_csinhl.c: Likewise.
24199         * math/s_csinl.c: Likewise.
24200         * math/s_csqrt.c: Likewise.
24201         * math/s_csqrtf.c: Likewise.
24202         * math/s_csqrtl.c: Likewise.
24203         * math/s_ctan.c: Likewise.
24204         * math/s_ctanf.c: Likewise.
24205         * math/s_ctanh.c: Likewise.
24206         * math/s_ctanhf.c: Likewise.
24207         * math/s_ctanhl.c: Likewise.
24208         * math/s_ctanl.c: Likewise.
24209         * math/s_ldexp.c: Likewise.
24210         * math/s_ldexpf.c: Likewise.
24211         * math/s_ldexpl.c: Likewise.
24212         * math/s_significand.c: Likewise.
24213         * math/s_significandf.c: Likewise.
24214         * math/s_significandl.c: Likewise.
24215         * math/w_acos.c: Likewise.
24216         * math/w_acosf.c: Likewise.
24217         * math/w_acosh.c: Likewise.
24218         * math/w_acoshf.c: Likewise.
24219         * math/w_acoshl.c: Likewise.
24220         * math/w_acosl.c: Likewise.
24221         * math/w_asin.c: Likewise.
24222         * math/w_asinf.c: Likewise.
24223         * math/w_asinl.c: Likewise.
24224         * math/w_atan2.c: Likewise.
24225         * math/w_atan2f.c: Likewise.
24226         * math/w_atan2l.c: Likewise.
24227         * math/w_atanh.c: Likewise.
24228         * math/w_atanhf.c: Likewise.
24229         * math/w_atanhl.c: Likewise.
24230         * math/w_cosh.c: Likewise.
24231         * math/w_coshf.c: Likewise.
24232         * math/w_coshl.c: Likewise.
24233         * math/w_dremf.c: Likewise.
24234         * math/w_exp10.c: Likewise.
24235         * math/w_exp10f.c: Likewise.
24236         * math/w_exp10l.c: Likewise.
24237         * math/w_exp2.c: Likewise.
24238         * math/w_exp2f.c: Likewise.
24239         * math/w_fmod.c: Likewise.
24240         * math/w_fmodf.c: Likewise.
24241         * math/w_fmodl.c: Likewise.
24242         * math/w_hypot.c: Likewise.
24243         * math/w_hypotf.c: Likewise.
24244         * math/w_hypotl.c: Likewise.
24245         * math/w_j0.c: Likewise.
24246         * math/w_j0f.c: Likewise.
24247         * math/w_j0l.c: Likewise.
24248         * math/w_j1.c: Likewise.
24249         * math/w_j1f.c: Likewise.
24250         * math/w_j1l.c: Likewise.
24251         * math/w_jn.c: Likewise.
24252         * math/w_jnf.c: Likewise.
24253         * math/w_jnl.c: Likewise.
24254         * math/w_lgamma.c: Likewise.
24255         * math/w_lgamma_r.c: Likewise.
24256         * math/w_lgammaf.c: Likewise.
24257         * math/w_lgammaf_r.c: Likewise.
24258         * math/w_lgammal.c: Likewise.
24259         * math/w_lgammal_r.c: Likewise.
24260         * math/w_log.c: Likewise.
24261         * math/w_log10.c: Likewise.
24262         * math/w_log10f.c: Likewise.
24263         * math/w_log10l.c: Likewise.
24264         * math/w_log2.c: Likewise.
24265         * math/w_log2f.c: Likewise.
24266         * math/w_log2l.c: Likewise.
24267         * math/w_logf.c: Likewise.
24268         * math/w_logl.c: Likewise.
24269         * math/w_pow.c: Likewise.
24270         * math/w_powf.c: Likewise.
24271         * math/w_powl.c: Likewise.
24272         * math/w_remainder.c: Likewise.
24273         * math/w_remainderf.c: Likewise.
24274         * math/w_remainderl.c: Likewise.
24275         * math/w_scalb.c: Likewise.
24276         * math/w_scalbf.c: Likewise.
24277         * math/w_scalbl.c: Likewise.
24278         * math/w_sinh.c: Likewise.
24279         * math/w_sinhf.c: Likewise.
24280         * math/w_sinhl.c: Likewise.
24281         * math/w_sqrt.c: Likewise.
24282         * math/w_sqrtf.c: Likewise.
24283         * math/w_sqrtl.c: Likewise.
24284         * math/w_tgamma.c: Likewise.
24285         * math/w_tgammaf.c: Likewise.
24286         * math/w_tgammal.c: Likewise.
24287
24288         * po/ja.po: Update from translation team.
24289
24290 2011-09-29  Andreas Jaeger  <aj@suse.de>
24291
24292         [BZ #13179]
24293         * sunrpc/netname.c (netname2host): Fix logic.
24294
24295         [BZ #6779]
24296         [BZ #6783]
24297         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24298         correctly.
24299         * math/w_remainder.c (__remainder): Likewise.
24300         * math/w_remainderf.c (__remainderf): Likewise.
24301         * math/libm-test.inc (remainder_test): Add test cases.
24302
24303 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24304
24305         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24306         sdiv_qrnnd.
24307
24308 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24309
24310         * string/test-memcmp.c: Avoid unncessary #defines.
24311         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24312
24313 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24314
24315         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24316         Use new sse2 version for core i3 - i7 as it's faster
24317         than sse42 version.
24318         (bit_Prefer_PMINUB_for_stringop): New.
24319         * sysdeps/x86_64/rawmemchr.S: Update.
24320         Replace with faster SSE2 version.
24321         * sysdeps/x86_64/memrchr.S: New file.
24322         * sysdeps/x86_64/memchr.S: Update.
24323         Replace with faster SSE2 version.
24324
24325 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24326
24327         * elf/dl-load.c (lose): Add cast to avoid warning.
24328
24329 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24330
24331         * po/ca.po: Update from translation team.
24332
24333         * inet/getnetgrent_r.c: Hook up nscd.
24334         * nscd/Makefile (routines): Add nscd_netgroup.
24335         (nscd-modules): Add netgroupcache.
24336         (CFLAGS-netgroupcache.c): Define.
24337         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24338         (cache_search): Add const to second parameter.
24339         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24340         INNETGR.
24341         (dbs): Add netgrdb entry.
24342         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24343         (verify_persistent_db): Handle netgrdb.
24344         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24345         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24346         GETFDNETGR.
24347         (netgroup_response_header): Define.
24348         (innetgroup_response_header): Define.
24349         (datahead): Add netgroup_response_header and innetgroup_response_header
24350         elements.
24351         * nscd/nscd.conf: Add entries for netgroup cache.
24352         * nscd/nscd.h (dbtype): Add netgrdb.
24353         (_PATH_NSCD_NETGROUP_DB): Define.
24354         (netgroup_iov_disabled): Declare.
24355         (xmalloc, xcalloc, xrealloc): Move declarations here.
24356         (cache_search): Adjust prototype.
24357         Add netgroup-related prototypes.
24358         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24359         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24360         (__nscd_innetgr): Declare.
24361         * nscd/selinux.c (perms): Use access_vector_t as element type and
24362         add netgroup-related initializers.
24363         * nscd/netgroupcache.c: New file.
24364         * nscd/nscd_netgroup.c: New file.
24365         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24366         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24367         For four parameters use innetgr.
24368         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24369         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24370         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24371         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24372
24373         * nscd/connections.c (register_traced_file): Don't register file
24374         for disabled databases.
24375
24376 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24377
24378         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24379
24380         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24381         from tree and freeing node.
24382
24383 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24384
24385         * nss/nsswitch.c (__nss_database_lookup): Handle
24386         nss_parse_service_list out of memory case.
24387
24388 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24389
24390         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24391         out of memory case.
24392
24393 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24394
24395         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24396         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24397         pass it down.
24398         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24399         elf_machine_rela, elf_machine_lazy_rel.
24400         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24401         (ELF_DYNAMIC_DO_REL): Likewise.
24402         (ELF_DYNAMIC_DO_RELA): Likewise.
24403         (ELF_DYNAMIC_RELOCATE): Likewise.
24404         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24405         to ELF_DYNAMIC_DO_REL.
24406         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24407         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24408         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24409         elf_machine_rela.
24410         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24411         skip_ifunc, don't call ifunc function if non-zero.
24412         (elf_machine_rela): Likewise.
24413         (elf_machine_lazy_rel): Likewise.
24414         (elf_machine_lazy_rela): Likewise.
24415         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24416         (elf_machine_lazy_rel): Likewise.
24417         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24418         Likewise.
24419         (elf_machine_lazy_rel): Likewise.
24420         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24421         Likewise.
24422         (elf_machine_lazy_rel): Likewise.
24423         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24424         (elf_machine_lazy_rel): Likewise.
24425         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24426         (elf_machine_lazy_rel): Likewise.
24427         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24428         (elf_machine_lazy_rel): Likewise.
24429         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24430         (elf_machine_lazy_rel): Likewise.
24431         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24432         (elf_machine_lazy_rel): Likewise.
24433         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24434         (elf_machine_lazy_rel): Likewise.
24435
24436 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24437
24438         * nss/nss_files/files-init.c (_nss_files_init): Use static
24439         initialization for all the *_traced_file variables.
24440
24441 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24442
24443         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24444
24445 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24446
24447         [BZ #13226]
24448         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24449
24450 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24451
24452         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24453         Reread the line before reparsing it.
24454
24455 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24456
24457         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24458
24459 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24460             Maxim Kuvyrkov  <maxim@codesourcery.com>
24461             Joseph Myers  <joseph@codesourcery.com>
24462
24463         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24464         if needed for __stack_chk_guard.
24465
24466 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24467
24468         * sysdeps/posix/spawni.c (script_execute): Always define it.
24469         It will be optimized away if unused.
24470         (maybe_script_execute): New function.
24471         (__spawni): Call it.
24472
24473         * Makerules: Don't include tls.make.
24474         (config-tls): Always set to thread.
24475         * tls.make.c: File removed.
24476
24477 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24478
24479         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24480         * config.make.in (CPPFLAGS-config): New substituted variable.
24481
24482 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24483
24484         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24485
24486         [BZ #13192]
24487         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24488         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24489
24490 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24491
24492         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24493         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24494         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24495         (CALL_FAIL): Likewise.
24496         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24497         (CALL_FAIL): Macro removed.
24498         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24499
24500 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24501
24502         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24503         for __FINITE_MATH_ONLY__ == 1.
24504
24505 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24506
24507         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24508         __ieee754_sqrt instead of sqrt.
24509         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24510         __ieee754_sqrtf instead of sqrtf.
24511         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24512         __floorf instead of floorf.
24513         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24514         __floorf, __truncf instead of floorf, truncf.
24515
24516 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24517
24518         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24519
24520         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24521         __extern_always_inline.
24522         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24523         32-bit.
24524
24525 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24526
24527         * elf/rtld.c (dl_main): Also relocate in dependency order when
24528         doing symbol dependency testing.
24529
24530 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24531
24532         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24533         Always define `refsym'.
24534
24535 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24536
24537         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24538         (__FD_ELT): Renamed from __FDELT.
24539         * misc/bits/select2.h (__FD_ELT): Likewise.
24540         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24541         __FD_MASK instead of __FDELT, __FDMASK.
24542         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24543         Likewise.
24544         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24545         Likewise.
24546
24547         * elf/Makefile (gen-ldd): Fix pattern.
24548
24549         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24550         (init_tls): Likewise.
24551
24552 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24553
24554         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24555
24556 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24557
24558         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24559         `struct cmsghdr *' instead of `void *'.
24560         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24561         Likewise.
24562
24563 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24564
24565         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24566         if non-absolute.
24567         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24568         ldd_rewrite_script.
24569
24570 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24571
24572         * configure.in: Remove --with-tls option.
24573         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24574         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24575         out in case it is missing.
24576         * sysdeps/ia64/elf/configure.in: Likewise.
24577         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24578         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24579         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24580         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24581         * sysdeps/sh/elf/configure.in: Likewise.
24582         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24583         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24584         * sysdeps/x86_64/elf/configure.in: Likewise.
24585         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24586         * sysdeps/mach/hurd/tls.h: Likewise.
24587
24588         [BZ #13067]
24589         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24590
24591         [BZ #13090]
24592         * configure.in: Fix use of AC_INIT.
24593
24594         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24595
24596 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24597
24598         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24599         __set_errno.
24600         * malloc/hooks.c: Likewise.
24601
24602         [BZ #11929]
24603         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24604         variables statically.
24605         (narenas): Initialize.
24606         (list_lock): Initialize.
24607         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24608         initializtion of main_arena and list_lock.  Small cleanups.
24609         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24610         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24611         Add initializers to main_arena and mp_.
24612         (malloc_state): Remove pagesize member.  Change all users to use
24613         GLRO(dl_pagesize).
24614
24615         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24616         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24617         is always initialized.
24618
24619         * malloc/malloc.c: Removed unused configurations and dead code.
24620         * malloc/arena.c: Likewise.
24621         * malloc/hooks.c: Likewise.
24622         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24623
24624         * include/tls.h: Removed.  USE___THREAD must always be defined.
24625         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24626         * elf/dl-libc.c: Likewise.
24627         * elf/dl-tsd.c: Likewise.
24628         * include/errno.h: Likewise.
24629         * include/netdb.h: Likewise.
24630         * include/resolv.h: Likewise.
24631         * inet/herrno-loc.c: Likewise.
24632         * inet/herrno.c: Likewise.
24633         * malloc/arena.c: Likewise.
24634         * malloc/hooks.c: Likewise.
24635         * malloc/malloc.c: Likewise.
24636         * resolv/res-state.c: Likewise.
24637         * resolv/res_libc.c: Likewise.
24638         * sysdeps/i386/dl-machine.h: Likewise.
24639         * sysdeps/ia64/dl-machine.h: Likewise.
24640         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24641         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24642         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24643         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24644         * sysdeps/sh/dl-machine.h: Likewise.
24645         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24646         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24647         * sysdeps/unix/i386/sysdep.S: Likewise.
24648         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24649         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24650         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24651         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24652         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24653         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24654         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24655         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24656         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24657         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24658         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24659         * sysdeps/x86_64/dl-machine.h: Likewise.
24660         * tls.make.c: Likewise.
24661
24662         * configure.in: Remove --with-__thread option.  Make tests for
24663         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24664         tls_model attribute fail if no support is available.  Remove
24665         USE_IN_LIBIO.
24666         * Makeconfig: Adjust for dropped configure option.  All features are
24667         now mandatory.
24668         * Makerules: Likewise.
24669         * Versions.def: Likewise.
24670         * argp/argp-fmtstream.c: Likewise.
24671         * argp/argp-fmtstream.h: Likewise.
24672         * argp/argp-help.c: Likewise.
24673         * assert/assert.c: Likewise.
24674         * config.h.in: Likewise.
24675         * config.make.in: Likewise.
24676         * configure: Likewise.
24677         * configure.in: Likewise.
24678         * csu/Versions: Likewise.
24679         * csu/init.c: Likewise.
24680         * elf/tst-audit2.c: Likewise.
24681         * elf/tst-tls10.c: Likewise.
24682         * elf/tst-tls10.h: Likewise.
24683         * elf/tst-tls11.c: Likewise.
24684         * elf/tst-tls12.c: Likewise.
24685         * elf/tst-tls14.c: Likewise.
24686         * elf/tst-tlsmod11.c: Likewise.
24687         * elf/tst-tlsmod12.c: Likewise.
24688         * elf/tst-tlsmod13.c: Likewise.
24689         * elf/tst-tlsmod13a.c: Likewise.
24690         * elf/tst-tlsmod14a.c: Likewise.
24691         * elf/tst-tlsmod15b.c: Likewise.
24692         * elf/tst-tlsmod16a.c: Likewise.
24693         * elf/tst-tlsmod16b.c: Likewise.
24694         * elf/tst-tlsmod7.c: Likewise.
24695         * elf/tst-tlsmod8.c: Likewise.
24696         * elf/tst-tlsmod9.c: Likewise.
24697         * gmon/gmon.c: Likewise.
24698         * grp/fgetgrent_r.c: Likewise.
24699         * grp/putgrent.c: Likewise.
24700         * hurd/fopenport.c: Likewise.
24701         * include/libc-symbols.h: Likewise.
24702         * include/tls.h: Likewise.
24703         * intl/gettextP.h: Likewise.
24704         * intl/loadinfo.h: Likewise.
24705         * locale/global-locale.c: Likewise.
24706         * locale/localeinfo.h: Likewise.
24707         * mach/devstream.c: Likewise.
24708         * malloc/arena.c: Likewise.
24709         * malloc/set-freeres.c: Likewise.
24710         * misc/err.c: Likewise.
24711         * misc/getttyent.c: Likewise.
24712         * misc/mntent_r.c: Likewise.
24713         * posix/getopt.c: Likewise.
24714         * posix/wordexp.c: Likewise.
24715         * pwd/fgetpwent_r.c: Likewise.
24716         * resolv/Versions: Likewise.
24717         * resolv/res_hconf.c: Likewise.
24718         * shadow/fgetspent_r.c: Likewise.
24719         * shadow/putspent.c: Likewise.
24720         * stdio-common/printf_fphex.c: Likewise.
24721         * stdio-common/tmpfile.c: Likewise.
24722         * stdlib/abort.c: Likewise.
24723         * stdlib/fmtmsg.c: Likewise.
24724         * sunrpc/auth_unix.c: Likewise.
24725         * sunrpc/clnt_perr.c: Likewise.
24726         * sunrpc/clnt_tcp.c: Likewise.
24727         * sunrpc/clnt_udp.c: Likewise.
24728         * sunrpc/clnt_unix.c: Likewise.
24729         * sunrpc/openchild.c: Likewise.
24730         * sunrpc/svc_simple.c: Likewise.
24731         * sunrpc/svc_tcp.c: Likewise.
24732         * sunrpc/svc_udp.c: Likewise.
24733         * sunrpc/svc_unix.c: Likewise.
24734         * sunrpc/xdr.c: Likewise.
24735         * sunrpc/xdr_array.c: Likewise.
24736         * sunrpc/xdr_rec.c: Likewise.
24737         * sunrpc/xdr_ref.c: Likewise.
24738         * sunrpc/xdr_stdio.c: Likewise.
24739
24740 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24741
24742         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24743
24744 2011-07-03  Andreas Jaeger  <aj@suse.de>
24745
24746         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24747         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24748         regenerate with gen-libm-tests.pl.
24749
24750 2010-05-12  Petr Baudis  <pasky@suse.cz>
24751
24752         [BZ #11589]
24753         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24754         around j0() zero points by switching to j1().
24755         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24756         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24757         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24758         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24759
24760 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24761
24762         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24763         instead of 0.
24764         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24765         instead of 0.
24766         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24767         Patch in part by Pavel Roskin <proski@gnu.org>.
24768
24769         [BZ #13138]
24770         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24771         realloc.
24772         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24773         Free memory block if necessary.
24774
24775         [BZ #12847]
24776         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24777         be NULL.  Don't lock in this case.
24778
24779 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24780
24781         * elf/elf.h (ELFOSABI_GNU): New macro.
24782         (ELFOSABI_LINUX): Define to that.
24783
24784 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24785
24786         * string/strncat.c (strncat): Undef the symbol in case it has been
24787         defined in bits/string.h.
24788
24789 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24790
24791         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24792
24793         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24794         link map.
24795
24796 2011-08-17  Andreas Jaeger  <aj@suse.de>
24797
24798         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24799
24800 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24801             Ian Lance Taylor  <iant@google.com>
24802
24803         * math/libm-test.inc (lround_test): New testcase.
24804         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24805
24806 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24807
24808         * Makefile: Remove support for automatic cvs check-ins.
24809         * Makerules: Likewise.
24810         * config.make.in: Likewise.
24811         * configure.in: Likewise.
24812         * intl/Makefile: Likewise.
24813         * locale/Makefile: Likewise.
24814         * po/Makefile: Likewise.
24815         * posix/Makefile: Likewise.
24816         * sysdeps/gnu/Makefile: Likewise.
24817         * sysdeps/mach/hurd/Makefile: Likewise.
24818         * sysdeps/sparc/sparc32/Makefile: Likewise.
24819
24820         [BZ #13118]
24821         * posix/Makefile (bug-regex32-ENV): Define.
24822         Patch by John Stanley <jpsinthemix@verizon.net>.
24823
24824         * misc/Makefile (headers): Add bits/select2.h.
24825         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24826         * misc/bits/select2.h: New file.
24827         * include/bits/select2.h: New file.
24828         * debug/Makefile (routines): Add fdelt_chk.
24829         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24830         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24831         FD_ISSET.
24832         * debug/fdelt_chk.c: New file.
24833
24834         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24835         * wcsmbs/test-wmemcmp.c: Likewise.
24836         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24837         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24838
24839 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24840
24841         * string/Makefile (strop-tests): Add memcmp.
24842         * string/test-wmemcmp.c: New file.
24843         * string/test-memcmp.c: Add wmemcmp support.
24844
24845 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24846
24847         [BZ #13153]
24848         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24849         2011-07-19 change.
24850
24851         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24852         garbage value in a __mach_port_mod_refs call in the cases of the
24853         task-self and thread-self ports.
24854
24855 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24856
24857         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24858
24859 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24860
24861         * elf/dl-load.c (lose): Check for non-null L.
24862
24863 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24864
24865         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24866
24867         * elf/dl-libc.c (dlerror_run): Pass back error code from
24868         dl_catch_error.
24869
24870         [BZ #13123]
24871         * elf/dl-load.c (lose): Free l_origin if it is valid.
24872
24873         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24874         names.
24875         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24876         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24877         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24878         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24879         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24880         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24881
24882 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24883
24884         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24885         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24886         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24887         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24888         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24889         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24890         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24891         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24892         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24893         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24894
24895 2011-08-15  Alan Modra  <amodra@gmail.com>
24896
24897         [BZ #13092]
24898         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24899         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24900         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24901         ppc_mcount to static-only-routines.
24902         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24903         __mcount_internal.
24904         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24905         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24906
24907 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24908
24909         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24910         for finite and infinity parameters.
24911
24912 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24913
24914         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24915         and add nop instructions for throughput optimization.
24916         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24917
24918 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24919
24920         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24921         aligned copy for power7 with vector-scalar instructions.
24922         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24923
24924 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24925
24926         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24927         AVX check.
24928
24929 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24930
24931         [BZ #13144]
24932         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24933         last change.
24934
24935 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24936
24937         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24938         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24939         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24940         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24941         clock_gettime.
24942
24943 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24944
24945         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24946         Forgot to demangle the pointer.
24947
24948         * sysdeps/i386/sysdep.h: Define atom_text_section.
24949         * sysdeps/x86_64/sysdep.h: Likewise.
24950         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24951         section with atom_text_section.
24952         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24953         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24954         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24955         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24956         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24957
24958         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24959         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24960         already be defined.  Change to take two parameters and don't assign
24961         result to variable.  Adjust all users.
24962         Define INTERNAL_GETTIME if not already defined.
24963         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24964         call.
24965         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24966         HAVE_CLOCK_GETTIME_VSYSCALL.
24967         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24968
24969         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24970         gettimeofday vsyscall, just use time.
24971
24972 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24973
24974         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24975         <errno.h>.
24976
24977 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24978
24979         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24980         syscall on x86-64.
24981         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24982         syscall.
24983         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24984         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24985         syscall if possible.
24986
24987 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24988
24989         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24990         e_ident.  Don't pass to find_mapsXX.
24991         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24992
24993 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24994
24995         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24996         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24997         * sysdeps/x86_64/multiarch/strchr.S: Update.
24998         Check bit_slow_BSF bit.
24999         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25000         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25001         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25002
25003 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25004
25005         [BZ #13134]
25006         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25007         before glibc 2.15.
25008         (tryshell): Define.
25009         (__spawni): Change last parameter to be flag.  Test
25010         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25011         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25012         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25013         * posix/spawni.c: Likewise.
25014         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25015         * posix/spawnp.c: Likewise.  Change normal version to use
25016         SPAWN_XFLAGS_USE_PATH.
25017         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25018         SPAWN_XFLAGS_TRY_SHELL.
25019
25020         [BZ #13150]
25021         * posix/glob.h: Remove gcc 1.x support.
25022
25023         [BZ #13068]
25024         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25025
25026 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25027
25028         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25029         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25030         strrchr-sse2-bsf
25031         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25032         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25033         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25034         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25035         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25036         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25037
25038 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25039
25040         * sysdeps/x86_64/wcscmp.S: New file.
25041
25042         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25043         wcscmp-c wcscmp-sse2
25044         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25045         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25046         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25047         * wcsmbs/wcscmp.c: Allow renaming.
25048
25049 2011-09-05  David S. Miller  <davem@davemloft.net>
25050
25051         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25052         stack slot, rather than the struct return pointer slot.
25053         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25054         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25056         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25057
25058 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25059
25060         * po/ja.po: Update from translation team.
25061
25062         [BZ #13144]
25063         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25064         kernel in 64-bit binaries.
25065
25066 2011-09-01  David S. Miller  <davem@davemloft.net>
25067
25068         * elf/elf.h (HWCAP_SPARC_*): Move to..
25069         * sysdeps/sparc/sysdep.h: this new file and add new values.
25070         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25071         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25072         _DL_HWCAP_COUNT to 24.
25073         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25074         entries.
25075         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25076         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25077         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25078         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25079         instead of magic constants.
25080         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25081
25082 2011-08-31  David S. Miller  <davem@davemloft.net>
25083
25084         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25086         Reimplement to do errno handling inline.
25087         (SYSCALL_ERROR_HANDLER): New macro.
25088         (__SYSCALL_STRING): Do not do errno handling in asm.
25089         (__CLONE_SYSCALL_STRING): Delete.
25090         (__INTERNAL_SYSCALL_STRING): Delete.
25091         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25092         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25093         (PSEUDO): Reimplement to do errno handling inline.
25094         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25095         (SYSCALL_ERROR_HANDLER): New macro.
25096         (__SYSCALL_STRING): Do not do errno handling in asm.
25097         (__CLONE_SYSCALL_STRING): Delete.
25098         (__INTERNAL_SYSCALL_STRING): Delete.
25099         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25100         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25101         i386.
25102         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25103         (inline_syscall*): Add 'err' argument.
25104         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25105         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25106         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25107         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25108
25109         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25110         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25111
25112 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25113
25114         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25115
25116 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25117
25118         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25119         directive.
25120
25121 2011-08-24  David S. Miller  <davem@davemloft.net>
25122
25123         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25124
25125 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25126
25127         * elf/Makefile: Add rules to build and run unload8 test.
25128         * elf/unload8.c: New file.
25129         * elf/unload8mod1.c: New file.
25130         * elf/unload8mod1x.c: New file.
25131         * elf/unload8mod2.c: New file.
25132         * elf/unload8mod3.c: New file.
25133
25134         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25135         it wasn't used.
25136
25137 2011-08-23  David S. Miller  <davem@davemloft.net>
25138
25139         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25140         subtract stack bias.
25141         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25142         %sp not %fp in calculations.
25143         (_JMPBUF_UNWINDS_ADJ): Likewise.
25144
25145         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25146         (aio_suspend): Call it to force an exception region around the
25147         AIO_MISC_WAIT() invocation.
25148
25149 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25150
25151         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25152         backslash.
25153
25154 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25155
25156         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25157         protection macro.
25158         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25159         and <dl-machine.h>.
25160         (Elf64_FuncDesc): Remove.
25161
25162 2011-08-22  David S. Miller  <davem@davemloft.net>
25163
25164         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25165         sigaltstack check, add missing cfi directives.
25166         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25167         missing cfi directives, and sigaltstack handling.
25168
25169 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25170
25171         [BZ #11724]
25172         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25173         object is seen twice.
25174         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25175
25176         * elf/Makefile (distribute): Add tst-initorder2.c.
25177         (tests): Add tst-initorder2.
25178         (modules-names): Add tst-initorder2a tst-initorder2b
25179         tst-initorder2c tst-initorder2d.  Add rules to build them.
25180         ($(objpfx)tst-initorder2.out): New rule.
25181         * elf/tst-initorder2.c: New file.
25182         * elf/tst-initorder2.exp: New file.
25183
25184 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25185
25186         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25187
25188         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25189         dependencies back to end of function.
25190
25191         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25192         $(elfobjdir)/ld.so.
25193
25194 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25195
25196         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25197         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25198         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25199         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25200         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25201         of __vdso_gettimeofday.
25202         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25203         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25204         attribute_hidden.
25205         (_libc_vdso_platform_setup): Remove initialization of
25206         __vdso_gettimeofday and __vdso_time.
25207
25208 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25209
25210         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25211         and fgetc_unlocked.
25212         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25213         getc_unlocked.
25214
25215         * elf/dl-open.c (add_to_global): Report additions to the global scope
25216         for LD_DEBUG=scopes.
25217         (dl_open_worker): Also print scope of newly loaded dependencies.
25218         (_dl_show_scope): Indicate if there is no scope.
25219
25220         [BZ #13114]
25221         * stdio-common/Makefile (tests): Add bug24.
25222         * stdio-common/bug24.c: New file.
25223
25224 2011-08-19  Andreas Jaeger  <aj@suse.de>
25225
25226         [BZ #13114]
25227         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25228         non-existant file when using close-on-exec mode.
25229
25230 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25231
25232         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25233         the very first instruction.
25234
25235         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25236         the CFI state in the end.
25237         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25238         inclusion of dl-trampoline.h.
25239         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25240
25241 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25242
25243         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25244         expectations for long double.
25245
25246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25247         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25248
25249 2011-08-14  David S. Miller  <davem@davemloft.net>
25250
25251         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25252         artificual limit depends upon the system page size.
25253
25254 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25255
25256         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25257         * resolv/Makefile: Define CFLAGS-libresolv.
25258
25259 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25260
25261         * nss/makedb.c (compute_tables): Make variables used in nested
25262         function static.
25263
25264 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25265
25266         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25267         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25268         if buffer was too small.
25269
25270         * elf/pldd.c (main): Attach to all threads in the process.
25271         Rewrite /proc handling to use *at functions.
25272
25273 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25274
25275         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25276         specifies first scope to show.
25277         (dl_open_worker): Update callers.  Move printing scope of new
25278         object to before the relocation.
25279         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25280         * sysdeps/generic/ldsodefs.h: Update declaration.
25281
25282         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25283         string for the scope number.
25284
25285 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25286
25287         * nscd/servicescache.c (cache_addserv): Make sure written is always
25288         initialized.
25289
25290 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25291
25292         * sysdeps/i386/i486/bits/atomic.h
25293         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25294         statement expression, so as to suppress "set but not used" warning.
25295         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25296
25297         * string/strncat.c (STRNCAT): Use prototype definition.
25298
25299         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25300         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25301         -Iprograms here.
25302         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25303         (localedef-modules): Add localedef.
25304         (locale-modules): Add locale.
25305
25306         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25307         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25308         to avoid a warning.
25309
25310 2011-08-14  David S. Miller  <davem@davemloft.net>
25311
25312         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25313         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25314
25315 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25316
25317         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25318         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25319         * elf/rtld.c (dl_main): Set l_name of vDSO.
25320         Call _dl_show_scope when DL_DEBUG_SCOPES.
25321         (process_dl_debug): Recognize scopes flag and also set it for all.
25322         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25323         Declare _dl_show_scope.
25324
25325         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25326         (do_dlopen): Pass caller_dlopen to dl_open.
25327         (__libc_dlopen_mode): Initialize caller_dlopen.
25328
25329         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25330         of libc.  Make tolower call locale-independent.  Optimize a bit by
25331         using isdigit instead of isalnum.
25332         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25333
25334 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25335
25336         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25337         was a dependency or dynamically loaded.
25338
25339 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25340
25341         * intl/l10nflist.c: Allow architecture-specific pop function.
25342         * sysdeps/x86_64/l10nflist.c: New file.
25343
25344         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25345         classification.
25346
25347 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25348
25349         * include/dirent.h: Add libc_hidden_proto for scandirat and
25350         scandirat64.  Don't declare __scandirat64.
25351         * dirent/scandirat.c: Add libc_hidden_def.
25352         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25353         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25354
25355 2011-08-10  David S. Miller  <davem@davemloft.net>
25356
25357         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25358         enum.
25359         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25360         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25361         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25362
25363 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25364
25365         * Versions.def [libc]: Add GLIBC_2.15.
25366         * dirent/Makefile (routines): Add scandirat and scandirat64.
25367         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25368         GLIBC_2.15.
25369         * dirent/dirent.h: Declare scandirat and scandirat64.
25370         * dirent/scandirat.c: New file.
25371         * dirent/scandirat64.c: New file.
25372         * sysdeps/wordsize-64/scandirat.c: New file.
25373         * sysdeps/wordsize-64/scandirat64.c: New file.
25374         * dirent/opendir.c: Define opendirat.
25375         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25376         using scandirat.
25377         * dirent/scandir64.c: Adjust for scandir.c change.
25378         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25379         __scandirat64, and __scandir_cancel_handler.
25380         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25381         additional parameter and use openat instead of open (outside of ld.so).
25382         Add new __opendir as wrapper around __opendirat.
25383         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25384         here without requiring old scandirat implementation.
25385
25386 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25387
25388         * dirent/scandir.c (cancel_handler): Renamed to
25389         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25390         defined.  Adjust users.
25391         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25392         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25393
25394 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25395
25396         * string/test-string.h (IMPL): Use __STRING to expand name and then
25397         stringify it.
25398
25399         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25400         of cleanups.
25401
25402 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25403
25404         * string/Makefile: Update.
25405         (strop-tests): Append strncat.
25406         * string/test-wcscmp.c: New file.
25407         New comprehensive test for wcscmp.
25408         * string/test-strcmp.c: Update.
25409         (WIDE): New define.
25410
25411 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25412
25413         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25414         line.
25415
25416 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25417
25418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25419         encoding to ACE if AI_IDN.
25420
25421 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25422
25423         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25424         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25425
25426 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25427
25428         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25429         Fix overflow bug in strncat.
25430         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25431
25432         * string/test-strncat.c: Update.
25433         Add new tests for checking overflow bugs.
25434
25435 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25436
25437         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25438         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25439         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25440         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25441         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25442         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25443         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25444         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25445         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25446
25447         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25448         (USE_AS_STRCAT): Define.
25449         Add strcat and strncat support.
25450         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25451
25452 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25453
25454         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25455         __n bigger than INT_MAX+1.
25456         (__strncmp_g): Likewise.
25457
25458 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25459
25460         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25461         * libio/stido.h: Likewise.
25462
25463         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25464         (AF_NFC): Define.
25465         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25466         (AF_NFC): Define.
25467
25468         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25469         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25470         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25471         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25472         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25473
25474         [BZ #13021]
25475         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25476         installed.
25477
25478         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25479         typo.
25480         (_dl_x86_64_save_sse): Likewise.
25481
25482 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25483
25484         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25485         OSXSAVE.
25486         (_dl_x86_64_save_sse): Likewise.
25487
25488         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25489
25490         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25491
25492 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25493
25494         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25495         change.
25496         (_dl_x86_64_save_sse): Use correct AVX check.
25497
25498 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25499
25500         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25501         bug in strncpy/strncat.
25502         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25503
25504 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25505
25506         * string/tester.c (test_strcat): Add tests for different alignments
25507         of source and destination.
25508         (test_strncat): Likewise.
25509
25510 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25511
25512         [BZ #12852]
25513         * posix/glob.c (glob): Check passed in values before using them in
25514         expressions to avoid some overflows.
25515         (glob_in_dir): Likewise.
25516
25517         [BZ #13007]
25518         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25519         check for AVX enablement so that we don't crash with old kernels and
25520         new hardware.
25521         * elf/tst-audit4.c: Add same checks here.
25522         * elf/tst-audit6.c: Likewise.
25523
25524         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25525
25526 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25527
25528         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25529
25530 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25531
25532         * po/cs.po: Update from translation team.
25533         * po/bg.po: Likewise.
25534
25535 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25536
25537         * misc/sys/cdefs.h: Add support for const attribute.
25538         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25539         to gnu_dev_{major,minor,makedev} functions.
25540
25541 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25542
25543         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25544
25545 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25546
25547         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25548         strlen results.
25549
25550 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25551
25552         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25553         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25554         register in order to avoid conflicts with the soft frame pointer
25555         being held in r11 when necessary.
25556         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25557         (INTERNAL_VSYSCALL_NCS): Likewise.
25558
25559 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25560
25561         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25562         * elf/dl-fini.c (_dl_fini): Adjust caller.
25563         * elf/dl-close.c (_dl_close_worker): Likewise.
25564         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25565
25566 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25567
25568         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25569         "aux_cache->nlibs < 0".
25570
25571         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25572         in the reload-count case.
25573
25574 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25575
25576         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25577         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25578         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25579         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25580         * sysdeps/x86_64/multiarch/strcat.S: New file.
25581         * sysdeps/x86_64/multiarch/strncat.S: New file.
25582         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25583         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25584         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25585         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25586         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25587         (USE_AS_STRCAT): Define.
25588         Add strcat and strncat support.
25589         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25590         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25591         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25592         * string/strncat.c: Update.
25593         (USE_AS_STRNCAT): Define.
25594         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25595         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25596         and i7.
25597         * sysdeps/x86_64/multiarch/init-arch.h
25598         (bit_Prefer_PMINUB_for_stringop): New.
25599         (index_Prefer_PMINUB_for_stringop): Likewise.
25600         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25601         bit_Prefer_PMINUB_for_stringop.
25602
25603 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25604
25605         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25606         buffer64.
25607         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25608         of casting of buffer.
25609         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25610         buffer32 and buffer64.
25611         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25612         writes instead of casting of buffer.
25613         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25614         buffer32.
25615         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25616         casting of buffer.
25617
25618 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25619
25620         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25621
25622 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25623
25624         * nscd/nscd.c (termination_handler): Don't do anything for a database
25625         if it has not yet been initialized.
25626
25627 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25628
25629         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25630
25631 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25632
25633         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25634
25635 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25636
25637         * po/nl.po: Update from translation team.
25638         * po/sv.po: Likewise.
25639
25640 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25641
25642         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25643         now disallowed by GCC.
25644
25645         * configure.in (use-default-link): Default to yes if a test -shared
25646         link meets our qualifications.
25647         * configure: Regenerated.
25648
25649         * config.make.in (output-format): New variable.
25650         * configure.in: Check for ld --print-output-format support.
25651         * configure: Regenerated.
25652         * Makerules ($(common-objpfx)format.lds)
25653         [$(output-format) != unknown]: Just use $(output-format),
25654         instead of the linker-script munging.
25655
25656 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25657
25658         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25659         of $(common-objpfx)shlib.lds.
25660         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25661
25662         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25663         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25664
25665         * configure.in (-z relro check): Adjust test code to add a large
25666         writable data section after it.
25667         * configure: Regenerated.
25668
25669 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25670
25671         * configure.in (-z relro check): Fix test code to make the variable
25672         truly const.
25673         * configure: Regenerated.
25674
25675 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25676
25677         * nscd/nscd.h (struct traced_file): Define.
25678         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25679         elements.  Add traced_files.
25680         (inotify_fd): Declare.
25681         (register_traced_file): Declare.
25682         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25683         (inotify_fd): Export.
25684         (resolv_conf_descr): Remove.
25685         (nscd_init): Move inotify descriptor creation to main.
25686         Don't register files for notification here.
25687         (register_traced_file): New function.
25688         (invalidate_cache): Don't use reset_res to determine whether to call
25689         res_init, go through the list of registered files.
25690         (main_loop_poll): The inotify descriptors are now stored in the
25691         structures for the traced files.
25692         (main_loop_epoll): Likewise
25693         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25694         to __nss_disable_nscd.
25695         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25696         for a database anymore.  Check the records for all the registered
25697         files instead.
25698         * nss/Makefile (libnss_files-routines): Add files-init.
25699         (libnss_db-routines): Add db-init.
25700         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25701         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25702         * nss/nss_db/db-init.c: New file.
25703         * nss/nss_files/files-init.c: New file.
25704         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25705         __nss_lookup_function.
25706         (__nss_lookup_function): Call nss_load_library.
25707         (nss_load_all_libraries): New function.
25708         (__nss_disable_nscd): Take parameter with callback function for files
25709         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25710         used for the cached services.
25711         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25712         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25713         options for features to all the files in nscd.
25714
25715         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25716
25717 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25718
25719         * csu/elf-init.c (__libc_csu_init): Comment typo.
25720
25721 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25722
25723         * po/pl.po: Update from translation team.
25724         * po/ja.po: Likewise.
25725         * po/ru.po: Likewise.
25726         * po/ko.po: Likewise.
25727         * po/fr.po: Likewise.
25728
25729 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25730
25731         * configure.in (.ctors/.dtors header and trailer check):
25732         Use an empirical test on a built program.
25733         * configure: Regenerated.
25734
25735         * configure.in (-z relro check): Use an empirical test on a built DSO.
25736         Detect, but do not require, on ia64.
25737         * configure: Regenerated.
25738
25739         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25740         Update tests that use readelf to use $READELF instead.
25741         * configure: Regenerated.
25742
25743 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25744
25745         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25746         if the result is not used.
25747
25748 2011-07-05  Andreas Jaeger  <aj@suse.de>
25749
25750         [BZ#9696]
25751         * stdlib/tst-strtod.c: Add testcase.
25752
25753 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25754
25755         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25756         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25757         The latter has a higher limit.  Take additional parameter to pass to
25758         the new function.
25759         (__pathconf): Pass file to __statfs_link_max.
25760         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25761         __statfs_link_max.
25762         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25763         __statfs_link_max.
25764
25765         [BZ #12868]
25766         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25767         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25768         Handle Lustre.
25769         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25770         (__statfs_filesize_max): Likewise.
25771         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25772
25773 2011-07-05  Andreas Jaeger  <aj@suse.de>
25774
25775         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25776
25777 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25778
25779         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25780         `status' variable.
25781         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25782         Likewise.
25783
25784 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25785
25786         * Makefile (strop-tests): Add strncat.
25787         * string/test-strncat.c: New file.
25788
25789 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25790
25791         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25792
25793 2011-06-21  Andreas Jaeger  <aj@suse.de>
25794
25795         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25796         Copy rule from iconvdata/Makefile.
25797
25798 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25799
25800         [BZ #12922]
25801         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25802         but no long options are defined, just return 'W'.
25803
25804 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25805
25806         [BZ #9696]
25807         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25808
25809 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25810
25811         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25812         netgroups to read.
25813         (innetgr): Likewise.
25814
25815 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25816
25817         * config.make.in (install_root): Default to $(DESTDIR).
25818
25819 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25820
25821         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25822
25823 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25824
25825         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25826
25827         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25828         containing directory rather than embedding absolute directory names.
25829
25830         * scripts/check-local-headers.sh: Rewritten using awk.
25831         Match by word, not by line.  Print error messages for matches.
25832         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25833
25834         * Makerules [shlib-lds-flags empty]:
25835         ($(common-objpfx)libc_pic.opts): New target.
25836         ($(common-objpfx)libc_pic.os.clean): New target.
25837         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25838
25839         * config.make.in (OBJCOPY): New variable.
25840         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25841         * configure: Regenerated.
25842
25843         * config.make.in (use-default-link): New variable.
25844         * configure.in (use_default_link): Grok --with-default-link to set it.
25845         * configure: Regenerated.
25846         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25847         (shlib-lds, shlib-lds-flags): Define to empty.
25848
25849         * Makerules (shlib-lds): New variable.
25850         (shlib-lds-flags): New variable.
25851         (build-shlib, build-moduile, build-module-asneeded): Use it.
25852         ($(common-objpfx)libc.so): Use $(shlib-lds).
25853         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25854         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25855
25856         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25857         DT_FLAGS/DT_FLAGS_1 with zero flags.
25858
25859         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25860         linker script munging.
25861
25862 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25863
25864         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25865         as 128-bit value.
25866         * crypt/sha512.c (sha512_process_block): Perform total addition using
25867         128-bit if possible.
25868         (__sha512_finish_ctx): Likewise.
25869         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25870         as 64-bit value.
25871         * crypt/sha256.c (SWAP64): Define.
25872         (sha256_process_block): Perform total addition using 64-bit if
25873         possible.
25874         (__sha256_finish_ctx): Likewise.
25875
25876 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25877
25878         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25879         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25880         * nscd/hstcache.c (cache_addhst): Likewise.
25881         * nscd/grpcache.c (cache_addgr): Likewise.
25882         * nscd/aicache.c (addhstaiX): Likewise
25883         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25884
25885 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25886
25887         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25888         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25889         * nscd/hstcache.c (cache_addhst): Likewise.
25890         * nscd/grpcache.c (cache_addgr): Likewise.
25891         * nscd/aicache.c (addhstaiX): Likewise
25892
25893 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25894
25895         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25896         domain only when needed.
25897
25898 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25899
25900         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25901         is always restored.
25902
25903 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25904
25905         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25906         are re-adding the entry.
25907         * nscd/servicescache.c (cache_addserv): Likewise.
25908
25909 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25910
25911         * sysdeps/generic/dl-irel.h: fix protection against multiple
25912         inclusions.
25913         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25914
25915 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25916
25917         [BZ #12935]
25918         * malloc/memusage.sh: Fix quoting in message.
25919         * debug/xtrace.sh: Likewise.
25920
25921         * configure.in: Remove support for --experimental-malloc option, make
25922         it the default.
25923         * config.make.in: Likewise.
25924         * malloc/Makefile: Likewise.
25925
25926 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25927
25928         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25929         two-byte characters.
25930
25931 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25932
25933         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25934         AC_CACHE_CHECK invocation.
25935         * configure: Regenerated.
25936
25937         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25938
25939 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25940
25941         [BZ #12350]
25942         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25943         bit from old_res_options.
25944
25945         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25946
25947         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25948         value type for setfct.
25949
25950 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25951
25952         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25953         __gettimeofday instead of gettimeofday.
25954
25955 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25956
25957         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25958
25959 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25960
25961         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25962
25963         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25964         info.
25965
25966 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25967
25968         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25969         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25970         strcpy-sse2-unaligned strncpy-sse2-unaligned
25971         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25972         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25973         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25974         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25975         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25976         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25977         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25978         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25979         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25980         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25981         (STRCPY): Support SSE2 and SSSE3 versions.
25982
25983 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25984
25985         [BZ #12874]
25986         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25987         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25988         kernels which artificially limit size of requests.
25989
25990 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25991
25992         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25993         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25994         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25995         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25996         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25997         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25998         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25999         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26000         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26001         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26002         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26003         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26004         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26005         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26006         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26007         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26008         Enable unaligned load optimization for Intel Core i3, i5 and i7
26009         processors.
26010         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26011         Define.
26012         (index_Fast_Unaligned_Load): Define.
26013         (HAS_FAST_UNALIGNED_LOAD): Define.
26014
26015 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26016
26017         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26018
26019 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26020
26021         [BZ #12907]
26022         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26023         until it is clear that the information is realy needed.
26024         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26025
26026 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26027
26028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26029
26030 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26031
26032         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26033         /sys/devices/system/cpu/online if it is usable.
26034
26035         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26036         reading the information from the /proc filesystem to once a second.
26037
26038 2011-06-21  Andreas Jaeger  <aj@suse.de>
26039
26040         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26041         NULL after inclusion of kernel headers.
26042
26043 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26044
26045         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26046         calls to internal_setent.
26047
26048         [BZ #12885]
26049         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26050         addresses using gethostbyname4_r ignore IPv4 addresses.
26051
26052         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26053         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26054
26055         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26056
26057 2011-06-20  David S. Miller  <davem@davemloft.net>
26058
26059         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26060         inclusions.
26061         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26062
26063         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26064         (elf_irel): Use it.
26065         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26066         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26067         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26068         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26069         * sysdeps/x86_64/dl-irel.h: Likewise.
26070
26071         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26072         * elf/dl-sym.c: Likewise.
26073
26074 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26075
26076         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26077         need to dereference resplen2.
26078
26079 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26080
26081         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26082
26083 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26084
26085         * Makeconfig: Define vardbdir and inst_vardbdir.
26086         * nss/Makefile: Add rules to install db-Makefile.
26087
26088         * nss/nss_db/db-XXX.c: Cleanup.
26089
26090         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26091         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26092         GLIBC_PRIVATE.
26093         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26094         * nss/makedb.c: Implement -g option to specify that value strings
26095         are generated and should not be added to table iterated over for
26096         get*ent calls.
26097         * nss/nss_db/db-initgroups.c: New file.
26098
26099         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26100         interface.
26101
26102         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26103         (internal_getgrouplist): Adjust to name change.
26104         Update use_initgroups_entry if this is not the first call.
26105         * nss/databases.def: Add initgroups entry.
26106
26107         * nss/makedb.c (compute_tables): Check result of multiple hash table
26108         sizes to minimize maximum chain length.
26109
26110 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26111
26112         * Versions.def: Add entry for libnss_db.
26113         * shlib-versions: Likewise.
26114         * nss/Makefile: Add rules to build libnss_db.
26115         * nss/Versions: Add libnss_db information.  Organize libnss_files
26116         entries better.
26117         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26118         makedb progra.  Some minor improvements to generate smaller files.
26119         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26120         here from...
26121         * nss/makedb.c: ...here.
26122         Improve database format to be smaller and require less memory at
26123         runtime.
26124         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26125         db anymore.
26126         * nss/nss_db/db-netgrp.c: Likewise.
26127         * nss/nss_db/db-open.c: Likewise.
26128         * nss/nss_files/flies-XXX.x: Adjust comments.
26129         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26130         * nss/nss_files/files-grp.c: Likewise.
26131         * nss/nss_files/files-hosts.c: Likewise.
26132         * nss/nss_files/files-network.c: Likewise.
26133         * nss/nss_files/files-proto.c: Likewise.
26134         * nss/nss_files/files-pwd.c: Likewise.
26135         * nss/nss_files/files-rpc.c: Likewise.
26136         * nss/nss_files/files-service.c: Likewise.
26137         * nss/nss_files/files-sgrp.c: Likewise.
26138         * nss/nss_files/files-spwd.c: Likewise.
26139         * nss/nss_db/db-alias.c: Removed.
26140         * nss/nss_db/dummy-db.h: Removed.
26141
26142 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26143
26144         * nss/makedb.c: Rewritten to not use database library.
26145         * nss/Makefile: Update to build new makedb program.
26146
26147 2011-06-14  Andreas Jaeger  <aj@suse.de>
26148
26149         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26150         memset declaration.
26151
26152 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26153
26154         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26155         tmpbuf.
26156
26157 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26158
26159         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26160         * elf/Makefile ($(objpfx)ld.so): Likewise.
26161
26162         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26163         Don't list ld.so twice in dependencies.
26164
26165         * posix/bug-regex31.c: Include <stdlib.h>.
26166
26167         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26168
26169         * nis/nss_compat/compat-spwd.c
26170         (getspent_next_nss_netgr): Remove unused variable.
26171         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26172
26173         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26174         nonmembers" output to use the right array.
26175
26176         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26177
26178         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26179
26180         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26181         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26182         * catgets/gencat.c (read_input_file): Likewise.
26183         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26184
26185         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26186         variable definition inside #if's controlling its use.
26187
26188         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26189
26190         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26191
26192         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26193
26194         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26195         unreachable code.
26196
26197         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26198
26199         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26200         * configure: Regenerated.
26201
26202         * Makerules: Revert last change.
26203         * elf/Makefile: Likewise.
26204
26205 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26206
26207         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26208         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26209         (reloc-link): Likewise.
26210
26211 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26212
26213         * elf/Makefile: Add rules to build pldd.
26214         * elf/pldd.c: New file.
26215         * elf/pldd-xx.c: New file.
26216
26217 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26218
26219         * version.h: Update for 2.15 development version.
26220
26221 2011-06-07  David S. Miller  <davem@davemloft.net>
26222
26223         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26224         ifuncs.
26225         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26226         elf_machine_lazy_rel): Likewise.
26227         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26228         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26229         elf_machine_lazy_rel): Likewise.
26230         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26231         dl_hwcap via passed in argument.
26232         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26233         Likewise.
26234
26235 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26236
26237         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26238
26239 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26240
26241         [BZ #12849]
26242         * manual/fdl-1.1.texi: New file, verbatim from:
26243         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26244         * manual/lgpl-2.1.texi: New file, verbatim from:
26245         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26246         * manual/Makefile (licenses): New variable, list those new file names.
26247         (texis): Use it.
26248         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26249
26250         * manual/fdl.texi: File removed.
26251         * manual/lesser.texi: File removed.
26252         * manual/libc.texinfo (Copying, Documentation License):
26253         Use new @include file names, put @appendix directive before @include.
26254
26255 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26256
26257         [BZ #12841]
26258         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26259         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26260         (mq_open): Add __NTH.
26261
26262 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26263
26264         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26265         Assume Intel Core i3/i5/i7 processor if AVX is available.
26266
26267 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26268
26269         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26270         typo.
26271
26272 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26273
26274         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26275         memory.  Use alloca_account.  Fix memory leak when retrying.
26276
26277 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26278
26279         * version.h (RELEASE): Bump for 2.14 release.
26280         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26281
26282         * config.make.in (RANLIB): Remove entry.
26283
26284 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26285
26286         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26287         (libc.pot): Work around missing support for .ksh extension in xgettext.
26288
26289         [BZ #12684]
26290         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26291         if both request failed.
26292         (send_dg): In case of server errors clear resplen or *resplen2.
26293
26294         [BZ #12454]
26295         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26296         when there are multiple maps.
26297         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26298         (_dl_fini): Remove test here.
26299
26300         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26301
26302 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26303
26304         [BZ #12350]
26305         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26306         bit from old_res_options.
26307         (gaih_inet): Likewise.
26308
26309         [BZ #11099]
26310         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26311         as signed.
26312
26313         * resolv/res_init.c (res_setoptions): Make the code more compact.
26314
26315         [BZ #11558]
26316         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26317         set RES_USEVC.
26318
26319         [BZ #11634]
26320         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26321
26322         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26323
26324         [BZ #11781]
26325         * malloc/malloc.h: Declare malloc hook variables as volatile.
26326
26327         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26328         in last patch.
26329
26330         [BZ #11799]
26331         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26332         raise in the comment.
26333         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26334         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26335         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26336
26337 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26338
26339         [BZ #12811]
26340         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26341         grow the buffers more if it already has to be sufficient.
26342         (build_wcs_upper_buffer): Likewise.
26343         * posix/regexec.c (check_matching): Likewise.
26344         (clean_state_log_if_needed): Likewise.
26345         (extend_buffers): Don't enlarge buffers beyond size of the input
26346         buffer.
26347         Patches mostly by Emil Wojak <emil@wojak.eu>.
26348         * posix/bug-regex32.c: New file.
26349         * posix/Makefile (tests): Add bug-regex32.
26350
26351         * locale/findlocale.c (_nl_find_locale): Return right away if
26352         _nl_explode_name failed.
26353         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26354
26355         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26356
26357         * debug/xtrace.sh: Unify messages.
26358         * malloc/memusage.sh: Likewise.
26359
26360         [BZ #12813]
26361         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26362         time symbol from vDSO.  Substitute with vsyscall if not available.
26363         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26364         __vdso_time.
26365
26366         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26367         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26368         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26369         Add sendmmsg and internal_sendmmsg.
26370         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26371         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26372         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26373
26374         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26375         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26376         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26377
26378 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26379
26380         [BZ #12813]
26381         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26382         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26383         available.
26384         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26385         __vdso_getcpu.
26386
26387         [BZ #12814]
26388         * iconvdata/Makefile (tests): Add bug-iconv9.
26389         * iconvdata/bug-iconv9.c: New file.
26390
26391 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26392
26393         [BZ #12814]
26394         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26395
26396 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26397
26398         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26399         (struct user_regs_struct): Change intcs field back to cs.
26400
26401 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26402
26403         * po/ja.po: Update from translation team.
26404
26405 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26406
26407         [BZ #12795]
26408         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26409         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26410
26411 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26412
26413         * stdlib/longlong.h: Update from GCC.
26414
26415 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26416
26417         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26418         parameter name.
26419         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26420         Add parameter name.
26421         (__sysconf): Pass it down.
26422
26423 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26424
26425         [BZ #12671]
26426         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26427         some situations.
26428         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26429         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26430         add in in __libc_use_alloca calls.  Adjust callers.
26431         (glob): Use malloc in some situations.
26432
26433         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26434         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26435         pltexit.
26436
26437 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26438
26439         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26440         and CLOCK_BOOTTIME_ALARM.
26441
26442         [BZ #12782]
26443         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26444         is returned.
26445
26446         * string/_strerror.c (__strerror_r): Print negative errors as signed
26447         numbers.
26448
26449         [BZ #12777]
26450         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26451         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26452         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26453
26454         * configure.in: Fix typo in redirection and correct removal of test
26455         files in two cases.
26456
26457         [BZ #12788]
26458         * locale/setlocale.c (new_composite_name): Fix test to check for
26459         identical name of all categories.
26460
26461         [BZ #12792]
26462         * libio/filedoalloc.c (local_isatty): New function.
26463         (_IO_file_doallocate): Use local_isatty.
26464         * stdio-common/perror.c (perror): In case a new stream is used
26465         forward the stream error.
26466         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26467         error flag.
26468
26469 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26470
26471         [BZ #11869]
26472         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26473         alloca.
26474         * include/alloca.h (extend_alloca_account): Define.
26475
26476         [BZ #11857]
26477         * posix/regex.h: Fix comments with documentation of user-accessible
26478         fields after compilation and describe correct free'ing of pattern
26479         after re_compile_pattern.
26480         Patch by Reuben Thomas <rrt@sc3d.org>.
26481
26482 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26483
26484         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26485         and -mno-altivec to prevent the compiler from using Altivec and/or
26486         VSX instructions when the corresponding registers are not available.
26487
26488 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26489
26490         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26491
26492 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26493
26494         * libio/freopen.c (freopen): Use __dup2, not dup2.
26495         * libio/freopen64.c (freopen64): Likewise.
26496
26497 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26498
26499         [BZ #12775]
26500         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26501         * math/Makefile (tests): Add test-powl.
26502         (CFLAGS-test-powl.c): Define.
26503         * math/test-powl.c: New file.
26504
26505 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26506
26507         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26508
26509 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26510
26511         [BZ #11837]
26512         * iconvdata/gb18030.c: Update to GB18020-2005.
26513
26514 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26515
26516         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26517         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26518         Patch by Aharon Robbins <arnold@skeeve.com>.
26519
26520         [BZ #11892]
26521         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26522         on the stack.
26523
26524         [BZ #11895]
26525         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26526         through underflows.
26527
26528         [BZ #12766]
26529         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26530         point to strings before performing equality test for error_one_per_line
26531         mode.
26532
26533         [BZ #11697]
26534         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26535
26536         [BZ #11820]
26537         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26538         (struct user_fpregs_struct): Avoid __uint*_t types.
26539
26540         [BZ #6420]
26541         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26542         symbol info.  Use it instead of calling _dl_addr locally.
26543         (lock_and_info): New function.
26544         (tr_freehook): Call lock_and_info and pass symbol info as additional
26545         parameter to tr_where.
26546         (tr_mallochook): Likewise.
26547         (tr_reallochook): Likewise.
26548         (tr_memalignhook): Likewise.
26549
26550         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26551         used and couldn't be at all thread-safe.
26552
26553 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26554
26555         * libio/freopen.c (freopen): Don't close old file descriptor
26556         before the new one is opened.  Instead dup the new file descriptor
26557         to the old one after the new stream is created.
26558         * libio/freopen64.c (freopen64): Likewise.
26559         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26560         * libio/fileops.c (_IO_new_file_close_it): Handle new
26561         _IO_FLAGS2_NOCLOSE flag.
26562         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26563         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26564         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26565         _IO_FLAGS2_NOCLOSE flag.
26566         * include/unistd.h: Add hidden_proto for dup3.
26567         Define __have_dup3.
26568         * io/dup3.c: Define hidden symbol.
26569         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26570
26571         [BZ #7101]
26572         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26573         when an incomplete long option is used.
26574         * posix/tst-getopt_long1.c: New file.
26575         * posix/Makefile (tests): Add tst-getopt_long1.
26576
26577         [BZ #10138]
26578         * scripts/config.guess: Update from autoconf-2.68.
26579         * scripts/config.sub: Likewise.
26580
26581         [BZ #10157]
26582         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26583         tests into ...
26584         (has_cpuclock): ...this.  New function.
26585         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26586         macro here based on has_cpuclock code.
26587
26588         [BZ #10149]
26589         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26590         First byte (not low byte) is now always NUL.
26591         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26592
26593         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26594         Use non-cancelable interfaces.
26595
26596         [BZ #9809]
26597         * locale/iso-639.def: Add entry for Sorani.
26598
26599         [BZ #11901]
26600         * include/stdlib.h: Move include protection to the right place.
26601         Define abort_msg_s.  Declare __abort_msg with it.
26602         * stdlib/abort.c (__abort_msg): Adjust type.
26603         * assert/assert.c (__assert_fail_base): New function.  Majority
26604         of code from __assert_fail.  Allocate memory for __abort_msg with
26605         mmap.
26606         (__assert_fail): Now call __assert_fail_base.
26607         * assert/assert-perr.c: Remove bulk of implementation.  Use
26608         __assert_fail_base.
26609         * include/assert.hL Declare __assert_fail_base.
26610         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26611         mmap.
26612         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26613
26614 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26615
26616         [BZ #11952]
26617         [BZ #12453]
26618         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26619         until all modules are registered in the DTV.
26620         * elf/Makefile: Add rules to build and run tst-tls19.
26621         * elf/tst-tls19.c: New file.
26622         * elf/tst-tls19mod1.c: New file.
26623         * elf/tst-tls19mod2.c: New file.
26624         * elf/tst-tls19mod3.c: New file.
26625         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26626
26627         [BZ #12083]
26628         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26629         correctly.
26630
26631         [BZ #12601]
26632         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26633         two-byte sequence errors.
26634         * iconvdata/Makefile (tests): Add bug-iconv8.
26635         * iconvdata/bug-iconv8.c: New file.
26636
26637         [BZ #12626]
26638         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26639         buf2 definition.
26640
26641         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26642
26643         [BZ #12432]
26644         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26645         (dummy_getcfa): New function.
26646         (init): Get _Unwind_GetCFA address, use dummy if not found.
26647         (backtrace_helper): In recursion check, also check whether CFA changes.
26648         (__backtrace): Completely initialize arg.
26649
26650         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26651         storing incomplete byte sequence in state object.  Avoid testing for
26652         guaranteed too small input if we know there is enough data available.
26653
26654 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26655
26656         * Makeconfig (+link-pie): Indent.
26657         * Rules (binaries-pie): Define if $(have-fpie) and
26658         $(build-shared).
26659         (binaries-shared): Also filter out $(binaries-pie).
26660         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26661         * nscd/Makefile (others-pie): Add nscd.
26662         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26663         ($(objpfx)nscd): Remove command override.
26664         * login/Makefile (others-pie): Add pt_chown.
26665         ($(objpfx)pt_chown): Remove command override.
26666         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26667         remove command overrides.
26668
26669 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26670
26671         * libio/tst_putwc.c: Fix error messages.
26672
26673         [BZ #12724]
26674         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26675         currently writing and seek to current position when not.
26676         * libio/Makefile (tests): Add bug-fclose1.
26677         * libio/bug-fclose1.c: New file.
26678
26679 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26680
26681         [BZ #12511]
26682         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26683         don't set DF_1_NODELETE here.
26684         (do_lookup_x): When entering new entry test for copy relocation
26685         and if necessary set DF_1_NODELETE flag.
26686         * elf/tst-unique4.cc: New file.
26687         * elf/tst-unique4.h: New file.
26688         * elf/tst-unique4lib.cc: New file.
26689         * elf/Makefile: Add rules to build and run tst-unique4.
26690         Patch by Piotr Bury <pbury@goahead.com>.
26691
26692 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26693
26694         [BZ #12052]
26695         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26696
26697         [BZ #12625]
26698         * misc/mntent_r.c (addmntent): Flush the stream after the output
26699
26700         [BZ #12393]
26701         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26702         (is_trusted_path_normalize): Skip initial colon.  Append slash
26703         to empty buffer.  Duplicate is_trusted_path code but allow
26704         constructed patch to be prefix.
26705         (is_dst): Allow $ORIGIN followed by /.
26706         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26707         Correct testing of result of is_trusted_path_normalize
26708         (decompose_rpath): Fix warning.
26709
26710 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26711
26712         [BZ #11257]
26713         * grp/initgroups.c (internal_getgrouplist): When we found the service
26714         list through the initgroups entry in nsswitch.conf do not always
26715         continue on a successful lookup.  Don't always use the
26716         __nss_group_database value if it is set.
26717         * nss/nsswitch.conf (initgroups): Change action for successful db
26718         lookup to continue for compatibility.
26719
26720 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26721
26722         [BZ #11532]
26723         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26724         and CP774 modules.
26725         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26726         and CP774 modules.
26727         * iconvdata/tst-tables.sh: Likewise.
26728         * iconvdata/cp770.c: New file.
26729         * iconvdata/cp771.c: New file.
26730         * iconvdata/cp772.c: New file.
26731         * iconvdata/cp773.c: New file.
26732         * iconvdata/cp774.c: New file.
26733         * iconvdata/testdata/CP770: New file.
26734         * iconvdata/testdata/CP770..UTF8: New file.
26735         * iconvdata/testdata/CP771: New file.
26736         * iconvdata/testdata/CP771..UTF8: New file.
26737         * iconvdata/testdata/CP772: New file.
26738         * iconvdata/testdata/CP772..UTF8: New file.
26739         * iconvdata/testdata/CP773: New file.
26740         * iconvdata/testdata/CP773..UTF8: New file.
26741         * iconvdata/testdata/CP774: New file.
26742         * iconvdata/testdata/CP774..UTF8: New file.
26743
26744         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26745         END CHARMAP line.
26746         * iconvdata/gen-8bit-gap.sh: Likewise.
26747         * iconvdata/gen-8bit.sh: Likewise.
26748
26749         * locale/iso-639.def: Add ary entry.
26750
26751         [BZ #11258]
26752         * locale/C-translit.h.in: Add U20A1 transliteration.
26753
26754         [BZ #12178]
26755         * locale/iso-639.def: Add wae entry.
26756         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26757
26758         [BZ #12545]
26759         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26760         for n.
26761
26762         [BZ #12711]
26763         * locale/C-translit.h.in: Add entry for U20B9.
26764         Patch by pravin.d.s@gmail.com.
26765
26766 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26767
26768         [BZ #12713]
26769         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26770         ENAMETOOLONG use generic getcwd.
26771         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26772         in rtld.  Use *stat64.
26773         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26774         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26775         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26776         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26777         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26778         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26779         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26780         __fstatat64 macros.
26781         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26782         * dirent/rewinddir.c: Add libc_hidden_def.
26783         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26784         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26785
26786         * include/dirent.h (__alloc_dir): Add flags parameter.
26787         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26788         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26789         __alloc_dir.
26790         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26791         from fdopendir if O_CLOEXEC is already set.
26792
26793 2011-03-15  Alan Modra  <amodra@gmail.com>
26794
26795         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26796         l_tls_firstbyte_offset non-zero.  Save padding offset in
26797         l_tls_firstbyte_offset for later use.
26798         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26799         freeing static tls block.
26800
26801 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26802
26803         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26804         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26805         being defined by the kernel headers.
26806
26807 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26808
26809         [BZ #12734]
26810         * resolv/resolv.h: Define RES_NOTLDQUERY.
26811         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26812         no-tld-query and set RES_NOTLDQUERY.
26813         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26814         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26815         modern BIND to search name as TLD unless forbidden.
26816
26817 2011-05-07  Petr Baudis  <pasky@suse.cz>
26818             Ulrich Drepper  <drepper@gmail.com>
26819
26820         [BZ #12393]
26821         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26822         (is_trusted_path): ...to here.
26823         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26824         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26825         using is_trusted_path_normalize() in setuid scripts.
26826
26827 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26828
26829         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26830         __BEGIN/__END_DECLS.
26831
26832 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26833
26834         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26835         NSS_STATUS_NOTFOUND if no record was found.
26836
26837 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26838
26839         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26840         (headers-not-in-tirpc): Remove rpc/netdb.h
26841         * resolv/netdb.h: Revert last change.
26842
26843 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26844
26845         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26846         circular dependency between libgcc.a and libc.a.
26847
26848 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26849
26850         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26851         * nis/Makefile: Don't install rpcsvc/*.
26852         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26853         instead of <rpc/types.h>.
26854         (MAXHOSTNAMELEN): Define.
26855
26856 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26857
26858         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26859
26860 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26861
26862         [BZ #12714]
26863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26864         gethostbyname4_r when IPv6 results are possible.
26865
26866 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26867
26868         [BZ #12723]
26869         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26870         _PC_PIPE_BUF handling.
26871
26872 2011-04-30  Bruno Haible  <bruno@clisp.org>
26873
26874         [BZ #12717]
26875         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26876         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26877         to 'int'.
26878         * inet/getnameinfo.c (getnameinfo): Likewise.
26879
26880 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26881
26882         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26883         to groups setting in database lookup.
26884         * nss/nsswitch.conf: Add initgroups entry.
26885
26886 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26887
26888         [BZ #12685]
26889         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26890         mode string.
26891         Patch by Eric Blake <eblake@redhat.com>.
26892
26893 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26894
26895         * sunrpc/Makefile (need-export-routines): Add svc_run.
26896         (routines): Remove svc_run.
26897         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26898         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26899         * sunrpc/svc_run.c (svc_run): Likewise.
26900         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26901
26902 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26903
26904         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26905         problem in reallocation in last patch.
26906
26907 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26908
26909         * sunrpc/Makefile: Move inclusion of Rules.
26910
26911 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26912
26913         * nss/nss_files/files-initgroups.c: New file.
26914         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26915         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26916         _nss_files_initgroups_dyn.
26917
26918 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26919
26920         * elf/elf.h (R_ARM_IRELATIVE): Define.
26921
26922 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26923
26924         * po/ru.po: Update from translation team.
26925
26926 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26927
26928         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26929         dependencies.
26930
26931 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26932
26933         [BZ #12653]
26934         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26935         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26936         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26937         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26938         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26939
26940 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26941
26942         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26943         differing bytes.
26944         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26945         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26946         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26947
26948 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26949
26950         [BZ #12420]
26951         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26952         storing it.
26953         * stdlib/bug-getcontext.c: New file.
26954         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26955
26956 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26957
26958         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26959         instructions into .machine "z9-109".
26960         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26961         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26962
26963 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26964
26965         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26966         between environment variables and auxiliary vector.
26967
26968 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26969
26970         * Makefile: Add rules to build linkobj/libc.so.
26971         * include/libc-symbols.h: Define libc_hidden_nolink.
26972         * include/rpc/auth.h: Mark functions which are to be hidden.
26973         * include/rpc/auth_des.h: Likewise.
26974         * include/rpc/auth_unix.h: Likewise.
26975         * include/rpc/clnt.h: Likewise.
26976         * include/rpc/des_crypt.h: Likewise.
26977         * include/rpc/key_prot.h: Likewise.
26978         * include/rpc/pmap_clnt.h: Likewise.
26979         * include/rpc/pmap_prot.h: Likewise.
26980         * include/rpc/pmap_rmt.h: Likewise.
26981         * include/rpc/rpc_msg.h: Likewise.
26982         * include/rpc/svc.h: Likewise.
26983         * include/rpc/svc_auth.h: Likewise.
26984         * include/rpc/xdr.h: Likewise.
26985         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26986         * nss/Makefile: Likewise.
26987         * sunrpc/Makefile: Don't install headers.  Build library with normal
26988         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26989         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26990         for the compat linking library.  Remove use of INTDEF/INTUSE.
26991         * sunrpc/auth_none.c: Likewise.
26992         * sunrpc/auth_unix.c: Likewise.
26993         * sunrpc/authdes_prot.c: Likewise.
26994         * sunrpc/authuxprot.c: Likewise.
26995         * sunrpc/clnt_gen.c: Likewise.
26996         * sunrpc/clnt_perr.c: Likewise.
26997         * sunrpc/clnt_raw.c: Likewise.
26998         * sunrpc/clnt_simp.c: Likewise.
26999         * sunrpc/clnt_tcp.c: Likewise.
27000         * sunrpc/clnt_udp.c: Likewise.
27001         * sunrpc/clnt_unix.c: Likewise.
27002         * sunrpc/des_crypt.c: Likewise.
27003         * sunrpc/des_soft.c: Likewise.
27004         * sunrpc/get_myaddr.c: Likewise.
27005         * sunrpc/key_call.c: Likewise.
27006         * sunrpc/key_prot.c: Likewise.
27007         * sunrpc/netname.c: Likewise.
27008         * sunrpc/pm_getmaps.c: Likewise.
27009         * sunrpc/pm_getport.c: Likewise.
27010         * sunrpc/pmap_clnt.c: Likewise.
27011         * sunrpc/pmap_prot.c: Likewise.
27012         * sunrpc/pmap_prot2.c: Likewise.
27013         * sunrpc/pmap_rmt.c: Likewise.
27014         * sunrpc/publickey.c: Likewise.
27015         * sunrpc/rpc_cmsg.c: Likewise.
27016         * sunrpc/rpc_common.c: Likewise.
27017         * sunrpc/rpc_dtable.c: Likewise.
27018         * sunrpc/rpc_prot.c: Likewise.
27019         * sunrpc/rpc_thread.c: Likewise.
27020         * sunrpc/rtime.c: Likewise.
27021         * sunrpc/svc.c: Likewise.
27022         * sunrpc/svc_auth.c: Likewise.
27023         * sunrpc/svc_authux.c: Likewise.
27024         * sunrpc/svc_raw.c: Likewise.
27025         * sunrpc/svc_run.c: Likewise.
27026         * sunrpc/svc_simple.c: Likewise.
27027         * sunrpc/svc_tcp.c: Likewise.
27028         * sunrpc/svc_udp.c: Likewise.
27029         * sunrpc/svc_unix.c: Likewise.
27030         * sunrpc/svcauth_des.c: Likewise.
27031         * sunrpc/xcrypt.c: Likewise.
27032         * sunrpc/xdr.c: Likewise.
27033         * sunrpc/xdr_array.c: Likewise.
27034         * sunrpc/xdr_float.c: Likewise.
27035         * sunrpc/xdr_intXX_t.c: Likewise.
27036         * sunrpc/xdr_mem.c: Likewise.
27037         * sunrpc/xdr_rec.c: Likewise.
27038         * sunrpc/xdr_ref.c: Likewise.
27039         * sunrpc/xdr_sizeof.c: Likewise.
27040         * sunrpc/xdr_stdio.c: Likewise.
27041
27042 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27043
27044         [BZ #12650]
27045         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27046         * sysdeps/ia64/dl-tls.h: Likewise.
27047         * sysdeps/powerpc/dl-tls.h: Likewise.
27048         * sysdeps/s390/dl-tls.h: Likewise.
27049         * sysdeps/sh/dl-tls.h: Likewise.
27050         * sysdeps/sparc/dl-tls.h: Likewise.
27051         * sysdeps/x86_64/dl-tls.h: Likewise.
27052         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27053
27054 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27055
27056         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27057         rpath element also skip the following colon.
27058         (expand_dynamic_string_token): Add is_path parameter and pass
27059         down to DL_DST_REQUIRED and _dl_dst_substitute.
27060         (decompose_rpath): Call expand_dynamic_string_token with
27061         non-zero is_path.  Ignore empty rpaths.
27062         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27063         with zero is_path.
27064
27065 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27066
27067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27068         Make cancelable.
27069
27070 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27071
27072         [BZ #12655]
27073         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27074         Patch by Filipe David Manana <fdmanana@apache.org>.
27075
27076 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27077
27078         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27079         Maintain aligned stack.
27080         (CHECK_RSP): Remove unused macro.
27081
27082 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27083
27084         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27085         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27086
27087 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27088
27089         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27090
27091         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27092
27093 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27094
27095         [BZ #12518]
27096         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27097         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27098         * sysdeps/x86_64/memmove.c: New file.
27099         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27100         (memcpy): Renamed to ...
27101         (__new_memcpy): This.
27102         (memcpy): Provide GLIBC_2_14 memcpy.
27103         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27104         (memcpy): Provide GLIBC_2_2_5 memcpy.
27105
27106 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27107
27108         [BZ #12631]
27109         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27110
27111 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27112
27113         * misc/syncfs.c: New file.
27114         * misc/Makefile (routines): Add syncfs.
27115         * posix/unistd.h: Declare syncfs.
27116         * sysdeps/unix/syscalls.list: Add syncfs.
27117
27118 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27119
27120         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27121         open_by_handle_at.
27122         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27123         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27124         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27125         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27126         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27127         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27129
27130 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27131
27132         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27133         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27134         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27135         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27136         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27137         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27138         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27139
27140         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27141         sync_file_range.c with -fexceptions.
27142         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27143         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27144         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27145         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27146         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27147         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27148         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27149         sync_file_range as cancellation point
27150         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27151         now a wrapper around __call_sync_file_range with cancellation handling.
27152         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27153         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27154         function name to __call_sync_file_range.
27155         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27156         Add call_sync_file_range.
27157
27158 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27159
27160         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27161         bits/timex.h.
27162
27163 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27164
27165         * iconv/iconv.h: Fix typo in comment.
27166         * io/fcntl.h: Likewise.
27167         * libio/stdio.h: Likewise.
27168         * posix/spawn.h: Likewise.
27169         * posix/unistd.h: Likewise.
27170         * stdlib/stdlib.h: Likewise.
27171         * time/time.h: Likewise.
27172         * wcsmbs/wchar.h: Likewise.
27173
27174         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27175         open_by_handle): Add.
27176         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27177         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27178         Augment a few comments.
27179         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27180         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27181         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27182         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27183         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27184         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27185         open_by_handle.
27186
27187         * io/fcntl.h (AT_EMPTY_PATH): Define.
27188
27189 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27190
27191         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27192         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27193         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27194         to...
27195         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27196         * Versions.def: Add GLIBC_2.14.
27197         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27198         Export.
27199
27200 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27201
27202         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27203         round counter.
27204         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27205
27206 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27207
27208         [BZ #12597]
27209         * string/test-strncmp.c (do_page_test): New function.
27210         (check2): Likewise.
27211         (test_main): Call check2.
27212         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27213
27214 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27215
27216         [BZ #12587]
27217         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27218         Handle cache information in CPU leaf 4.
27219         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27220
27221 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27222
27223         [BZ #12583]
27224         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27225         character representation.
27226         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27227
27228 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27229
27230         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27231         END(__isnan) to END(__isnanf) to match function entry point/label
27232         EALIGN(__isnanf,...).
27233
27234 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27235
27236         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27237
27238 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27239
27240         [BZ #12510]
27241         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27242         copy from the symbol referenced in the relocation to initialize the
27243         used variable.
27244         Patch by Piotr Bury <pbury@goahead.com>.
27245         * elf/Makefile: Add rules to build and tst-unique3.
27246         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27247         * elf/tst-unique3.cc: New file.
27248         * elf/tst-unique3.h: New file.
27249         * elf/tst-unique3lib.cc: New file.
27250         * elf/tst-unique3lib2.cc: New file.
27251
27252         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27253
27254 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27255
27256         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27257         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27258         to _start.
27259
27260 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27261
27262         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27263         to-be-loaded object along a path to loader is ld.so.
27264
27265 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27266             Ulrich Drepper  <drepper@gmail.com>
27267
27268         * sysdeps/x86_64/memset.S: After aligning destination, code
27269         branches to different locations depending on the value of
27270         misalignment, when multiarch is enabled. Fix this.
27271
27272 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27273
27274         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27275         Set _x86_64_preferred_memory_instruction for AMD processsors.
27276         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27277         Set bit_Prefer_SSE_for_memop for AMD processors.
27278
27279 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27280
27281         * libio/fmemopen.c (fmemopen): Optimize a bit.
27282
27283 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27284
27285         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27286
27287 2011-03-03  Roland McGrath  <roland@redhat.com>
27288
27289         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27290
27291 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27292
27293         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27294         __bzero_ultra1 instead of __memset_ultra1.
27295
27296 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27297             Ulrich Drepper  <drepper@gmail.com>
27298
27299         [BZ #12509]
27300         * include/link.h (struct link_map): Add l_orig_initfini.
27301         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27302         returning unsuccessfully.
27303         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27304         close of a file loaded at startup, restore the original l_initfini
27305         list.
27306         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27307         list, store the pointer.
27308         * elf/Makefile ($(objpfx)noload-mem): New rule.
27309         (noload-ENV): Define.
27310         (tests): Add $(objpfx)noload-mem.
27311         * elf/noload.c: Include <memcheck.h>.
27312         (main): Call mtrace.  Close all opened handles.
27313
27314 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27315
27316         [BZ #12454]
27317         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27318         dependencies are missing.
27319
27320 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27321
27322         Fix __if_freereq crash: Unlike the generic version which uses free,
27323         Hurd needs munmap.
27324         * sysdeps/mach/hurd/ifreq.h: New file.
27325
27326 2011-01-27  Petr Baudis  <pasky@suse.cz>
27327             Ulrich Drepper  <drepper@gmail.com>
27328
27329         [BZ 12445]#
27330         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27331         to extend_alloca().
27332         * stdio-common/bug23.c: New file.
27333         * stdio-common/Makefile (tests): Add bug23.
27334
27335 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27336             Ulrich Drepper  <drepper@gmail.com>
27337
27338         [BZ #12489]
27339         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27340         before performing relro protection.  At old place add assertion
27341         to make sure nothing changed.
27342
27343 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27344             Glauber de Oliveira Costa  <glommer@gmail.com>
27345
27346         * elf/elf.h: Add new ARM TLS relocs.
27347
27348 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27349
27350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27351         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27352         cast from r3.
27353         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27354         'tests' variable.
27355         * sysdeps/wordsize-64/tst-writev.c: New file.
27356
27357 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27358
27359         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27360         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27361         insns in _dl_start to prevent a TOC reference before relocs are
27362         resolved.
27363
27364 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27365
27366         [BZ #12469]
27367         * Makeconfig: Remove RANLIB definition.
27368         * Makerules: Don't use RANLIB.
27369         * aclocal.m4: Remove ranlib test.
27370         * configure.in: No need to check for ranlib.
27371         * elf/rtld-Rules: Don't use RANLIB.
27372
27373 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27374
27375         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27376         protection macro.
27377         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27378         inclusion protection macro.
27379
27380         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27381         SIGRTMIN and SIGRTMAX and print information in that case only when
27382         SIGRTMIN is defined.
27383
27384 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27385
27386         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27387         arginfo fn returning -1.
27388
27389         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27390         and thousands string is zero terminated.
27391
27392 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27393
27394         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27395         sysdeps/unix/sysv/linux/bits/socket.h.
27396
27397 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27398
27399         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27400         (__CPU_COUNT): Remove old macros.
27401         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27402         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27403         (__CPU_ALLOC, __CPU_FREE): Add macros.
27404         (__sched_cpualloc, __sched_cpufree): Add declarations.
27405
27406 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27407
27408         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27409         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27410         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27411         (readdhstai): Return value of addhstaiX call.
27412         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27413         (addgrbyX): Return value returned by cache_addgr.
27414         (readdgrbyname): Return value returned by addgrbyX.
27415         (readdgrbygid): Likewise.
27416         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27417         (addpwbyX): Return value returned by cache_addpw.
27418         (readdpwbyname): Return value returned by addhstbyX.
27419         (readdpwbyuid): Likewise.
27420         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27421         (addservbyX): Return value returned by cache_addserv.
27422         (readdservbyname): Return value returned by addservbyX:
27423         (readdservbyport): Likewise.
27424         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27425         (addhstbyX): Return value returned by cache_addhst.
27426         (readdhstbyname): Return value returned by addhstbyX.
27427         (readdhstbyaddr): Likewise.
27428         (readdhstbynamev6): Likewise.
27429         (readdhstbyaddrv6): Likewise.
27430         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27431         (readdinitgroups): Return value returned by addinitgroupsX.
27432         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27433         (prune_cache): Keep track of timeout value of re-added entries.
27434         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27435         * nscd/nscd.h: Adjust prototypes of readd* functions.
27436
27437 2011-02-04  Roland McGrath  <roland@redhat.com>
27438
27439         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27440         (nis_stats): Likewise.
27441         * nis/nis_modify.c (nis_modify): Likewise.
27442         * nis/nis_remove.c (nis_remove): Likewise.
27443         * nis/nis_add.c (nis_add): Likewise.
27444
27445         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27446
27447         * posix/fnmatch_loop.c: Add some consts.
27448
27449         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27450
27451 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27452
27453         [BZ #12460]
27454         * config.make.in (config-cflags-novzeroupper): Define.
27455         * configure.in: Substitute libc_cv_cc_novzeroupper.
27456         * elf/Makefile (AVX-CFLAGS): Define.
27457         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27458         (CFLAGS-tst-auditmod4a.c): Likewise.
27459         (CFLAGS-tst-auditmod4b.c): Likewise.
27460         (CFLAGS-tst-auditmod6b.c): Likewise.
27461         (CFLAGS-tst-auditmod6c.c): Likewise.
27462         (CFLAGS-tst-auditmod7b.c): Likewise.
27463         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27464
27465 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27466
27467         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27468         function to the callback.
27469         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27470
27471 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27472
27473         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27474         of errno.
27475
27476 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27477
27478         [BZ #11724]
27479         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27480         of constructors.
27481         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27482         of destructors.
27483         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27484
27485         [BZ #11724]
27486         * elf/Makefile: Add rules to build and run new test.
27487         * elf/tst-initorder.c: New file.
27488         * elf/tst-initorder.exp: New file.
27489         * elf/tst-initordera1.c: New file.
27490         * elf/tst-initordera2.c: New file.
27491         * elf/tst-initordera3.c: New file.
27492         * elf/tst-initordera4.c: New file.
27493         * elf/tst-initorderb1.c: New file.
27494         * elf/tst-initorderb2.c: New file.
27495         * elf/tst-order-a1.c: New file.
27496         * elf/tst-order-a2.c: New file.
27497         * elf/tst-order-a3.c: New file.
27498         * elf/tst-order-a4.c: New file.
27499         * elf/tst-order-b1.c: New file.
27500         * elf/tst-order-b2.c: New file.
27501         * elf/tst-order-main.c: New file.
27502         New test case by George Gensure <werkt0@gmail.com>.
27503
27504 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27505
27506         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27507         decoding ACE if AI_CANONIDN.
27508
27509 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27510
27511         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27512
27513 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27514
27515         * version.h (RELEASE): Bump for 2.13 release.
27516         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27517
27518         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27519
27520         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27521         MADV_NOHUGEPAGE.
27522         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27523         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27524         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27525         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27526         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27527         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27528
27529         * posix/getconf.c: Update copyright year.
27530         * catgets/gencat.c: Likewise.
27531         * csu/version.c: Likewise.
27532         * debug/catchsegv.sh: Likewise.
27533         * debug/xtrace.sh: Likewise.
27534         * elf/ldconfig.c: Likewise.
27535         * elf/ldd.bash.in: Likewise.
27536         * elf/sprof.c (print_version): Likewise.
27537         * iconv/iconv_prog.c: Likewise.
27538         * iconv/iconvconfig.c: Likewise.
27539         * locale/programs/locale.c: Likewise.
27540         * locale/programs/localedef.c: Likewise.
27541         * malloc/memusage.sh: Likewise.
27542         * malloc/mtrace.pl: Likewise.
27543         * nscd/nscd.c (print_version): Likewise.
27544         * nss/getent.c: Likewise.
27545
27546         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27547         PF_CAIF, and PF_ALG.
27548         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27549
27550 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27551
27552         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27553         (modules-names): Use them.
27554         (ifunc-test-modules, ifunc-pie-tests): Define.
27555         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27556         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27557         (test-extras): Likewise.
27558         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27559         $(compile-command.c).
27560         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27561         (all-built-dso): Define.
27562         (check-textrel.out, check-execstack.out): Depend on it.
27563
27564         * configure.in: Don't override --enable-multi-arch.
27565
27566 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27567
27568         [BZ #6812]
27569         * nscd/hstcache.c (tryagain): Define.
27570         (cache_addhst): Return tryagain not notfound for temporary errors.
27571         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27572         failed.
27573
27574 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27575
27576         [BZ #10563]
27577         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27578         to make the syscall.
27579         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27580
27581         [BZ #12378]
27582         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27583         and fall back to matching as normal character if the string ends before
27584         the matching ']' is found.  This is what POSIX requires.
27585         * posix/testfnm.c: Adjust test result.
27586         * posix/globtest.sh: Adjust test result.  Add new test.
27587         * posix/tst-fnmatch.input: Likewise.
27588         * posix/tst-fnmatch2.c: Add new test.
27589
27590 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27591
27592         * elf/Makefile (check-execstack): Revert last change.  Depend on
27593         check-execstack.h.
27594         (check-execstack.h): New target.
27595         (generated): Add check-execstack.h.
27596         * elf/check-execstack.c: Include "check-execstack.h".
27597         (main): Revert last change.
27598         (handle_file): Return zero if GNU_STACK is absent and
27599         DEFAULT_STACK_PERMS doesn't include PF_X.
27600
27601 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27602
27603         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27604         in child fails because the descriptor is already closed.
27605         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27606         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27607         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27608
27609         [BZ #12397]
27610         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27611         syscall.
27612
27613         [BZ #10484]
27614         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27615         temporary buffer used to handle multi lookups locally.
27616         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27617
27618 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27619
27620         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27621         loader is ld.so.
27622
27623 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27624
27625         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27626         alignment for SSE2.
27627
27628 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27629
27630         [BZ #12394]
27631         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27632         characters.  When rounding increased number of integer digits recompute
27633         number of groups.
27634         * stdio-common/tst-grouping.c: New file.
27635         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27636
27637 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27638
27639         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27640         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27641
27642         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27643         void.
27644         * bits/select.h: Likewise.
27645
27646 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27647
27648         * po/ja.po: Update from translation team.
27649
27650 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27651
27652         [BZ #11155]
27653         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27654         implementation just like for lxstat, fxstatat, et al.
27655
27656 2010-12-27  Jim Meyering  <meyering@redhat.com>
27657
27658         [BZ #12348]
27659         * posix/regexec.c (build_trtable): Return failure indication upon
27660         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27661
27662 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27663
27664         [BZ #12201]
27665         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27666         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27667         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27668         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27669
27670         [BZ #12207]
27671         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27672
27673         [BZ #12204]
27674         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27675         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27676
27677 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27678
27679         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27680         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27681         script has SORT_BY_INIT_PRIORITY.
27682         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27683         NO_CTORS_DTORS_SECTIONS is defined.
27684         * elf/soinit.c: Likewise.
27685         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27686         NO_CTORS_DTORS_SECTIONS is defined.
27687         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27688         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27689         * sysdeps/sh/init-first.c: Likewise.
27690         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27691
27692 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27693
27694         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27695         always use the slow path.
27696
27697 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27698
27699         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27700         similar rule which adds the sysdep directories to the header search in
27701         order to pick up the correct platform stackinfo.h.
27702         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27703         perform test if it is, otherwise return successfully without testing.
27704         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27705         DEFAULT_STACK_PERMS define in stackinfo.h.
27706         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27707         defined in stackinfo.h.
27708         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27709         DEFAULT_STACK_PERMS defined in stackinfo.h.
27710         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27711         * sysdeps/ia64/stackinfo.h: Likewise.
27712         * sysdeps/s390/stackinfo.h: Likewise.
27713         * sysdeps/sh/stackinfo.h: Likewise.
27714         * sysdeps/sparc/stackinfo.h: Likewise.
27715         * sysdeps/x86_64/stackinfo.h: Likewise.
27716         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27717         PF_X for powerpc64.  Retain PF_X for powerpc32.
27718
27719 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27720
27721         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27722         accurately.
27723         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27724         GETDENTS_64BIT_ALIGNED.
27725
27726 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27727
27728         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27729
27730 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27731
27732         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27733         _GNU_SOURCE.
27734
27735         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27736         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27737         Remove __restrict.
27738         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27739         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27740
27741 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27742
27743         [BZ #11655]
27744         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27745         are initialized.
27746
27747 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27748
27749         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27750
27751 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27752
27753         * po/it.po: Update from translation team.
27754
27755 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27756
27757         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27758         unused codes.
27759
27760 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27761
27762         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27763
27764 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27765
27766         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27767         specially.
27768         (gaih_getanswer_slice): Likewise.
27769
27770 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27771
27772         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27773
27774 2010-05-31  Petr Baudis  <pasky@suse.cz>
27775
27776         [BZ #11149]
27777         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27778         silently even in the chroot mode.
27779
27780 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27781
27782         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27783         last patch a bit.  Pretty printing
27784
27785 2010-05-31  Petr Baudis <pasky@suse.cz>
27786
27787         [BZ #10085]
27788         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27789         initialization of skip_initgroups_dyn.
27790
27791 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27792
27793         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27794         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27795
27796 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27797
27798         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27799
27800 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27801
27802         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27803         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27804         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27805         ($(objpfx)tst-fnmatch-mem): New rule.
27806         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27807         * posix/tst-fnmatch.c (main): Call mtrace.
27808
27809 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27810
27811         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27812         Support Intel processor model 6 and model 0x2c.
27813
27814 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27815
27816         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27817           signed comparison.
27818
27819 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27820
27821         [BZ #12205]
27822         * string/test-strncasecmp.c (check_result): New function.
27823         (do_one_test): Use it.
27824         (check1): New function.
27825         (test_main): Use it.
27826         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27827         Support strcasecmp and strncasecmp.
27828
27829 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27830
27831         [BZ #12194]
27832         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27833         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27834
27835 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27836
27837         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27838         IFUNC support.
27839         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27840         memset-x86-64.
27841         * sysdeps/x86_64/multiarch/bzero.S: New file.
27842         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27843         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27844         * sysdeps/x86_64/multiarch/memset.S: New file.
27845         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27846         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27847         Set bit_Prefer_SSE_for_memop for Intel processors.
27848         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27849         Define.
27850         (index_Prefer_SSE_for_memop): Define.
27851         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27852
27853 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27854
27855         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27856         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27857
27858 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27859
27860         [BZ #12191]
27861         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27862         (__x86_64_raw_data_cache_size_half): Likewise.
27863         (__x86_64_raw_shared_cache_size): Likewise.
27864         (__x86_64_raw_shared_cache_size_half): Likewise.
27865
27866         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27867         (__x86_64_raw_data_cache_size_half): Likewise.
27868         (__x86_64_raw_shared_cache_size): Likewise.
27869         (__x86_64_raw_shared_cache_size_half): Likewise.
27870         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27871         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27872         and __x86_64_raw_shared_cache_size_half.  Round
27873         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27874         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27875         to multiple of 256 bytes.
27876
27877 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27878
27879         [BZ #12167]
27880         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27881         of inacessible symlinks.  Verify result of symlink before returning it.
27882         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27883         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27884
27885 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27886
27887         * math/math.h (isinf): Fix typo in comment.
27888
27889 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27890
27891         * po/da.po: Update from translation team.
27892
27893 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27894
27895         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27896         is added to the list.
27897
27898 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27899             Ulrich Drepper  <drepper@gmail.com>
27900
27901         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27902         the global list here.  Move code to...
27903         (_dl_add_to_namespace_list): ...here.  New function.
27904         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27905         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27906         * elf/dl-load.c (lose): Don't remove the element from the list.
27907         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27908         (_dl_map_object): Likewise.
27909
27910 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27911
27912         [BZ #12159]
27913         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27914         into all bytes of SSE register.
27915         Patch by Richard Li <richardpku@gmail.com>.
27916
27917 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27918
27919         [BZ #12140]
27920         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27921         perturbing.
27922
27923 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27924
27925         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27926         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27927         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27928         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27930         submachine.
27931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27932
27933 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27934
27935         * include/dlfcn.h (__RTLD_SECURE): Define.
27936         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27937         mode & __RTLD_SECURE instead.
27938         (open_path): Rename preloaded parameter to secure.
27939         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27940         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27941         * elf/dl-deps.c (openaux): Likewise.
27942         * elf/rtld.c (struct map_args): Remove is_preloaded.
27943         (map_doit): Don't use it.
27944         (dl_main): Likewise.
27945         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27946         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27947
27948 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27949
27950         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27951         (sysd-rules-targets): Remove duplicates.
27952         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27953         rtld-%.$o dependency.
27954
27955 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27956
27957         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27958         _dl_map_object do it.
27959
27960 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27961
27962         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27963         fast fma builtins, define the macros in the C99 standard.
27964         (FP_FAST_FMAF): Likewise.
27965         (FP_FAST_FMAL): Likewise.
27966         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27967
27968         * bits/mathdef.h: Update copyright year.
27969         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27970
27971 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27972
27973         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27974         builtins, define the macros in the C99 standard.
27975         (FP_FAST_FMAF): Likewise.
27976         (FP_FAST_FMAL): Likewise.
27977         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27978         multiply/add.
27979         (FP_FAST_FMAF): Likewise.
27980
27981 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27982
27983         [BZ #3268]
27984         * math/libm-test.inc (fma_test): Some new testcases.
27985         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27986         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27987         y and infinite z.  Do multiplication by C already in long double.
27988         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27989         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27990         y and infinite z.  Do bitwise or of inexact bit into u.d.
27991         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27992         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27993         * sysdeps/i386/fpu/s_fma.S: Removed.
27994         * sysdeps/i386/fpu/s_fmal.S: Removed.
27995
27996 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27997
27998         [BZ #3268]
27999         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28000         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28001         computation is not scheduled after fetestexcept.  Fix value
28002         of minimum denormal long double.
28003
28004 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28005
28006         [BZ #3268]
28007         * math/libm-test.inc (fma_test): Add some more tests.
28008         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28009         correctly.
28010
28011 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28012
28013         * scripts/data/localplt-s390-linux-gnu.data: New file.
28014         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28015
28016 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28017
28018         [BZ #3268]
28019         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28020         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28021         instead of dbl-64.
28022         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28023         inlines.
28024         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28025         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28026         if one of x and y is very large and the other is subnormal.
28027         * sysdeps/s390/fpu/s_fmaf.c: New file.
28028         * sysdeps/s390/fpu/s_fma.c: New file.
28029         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28030         * sysdeps/powerpc/fpu/s_fma.S: New file.
28031         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28032         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28033         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28034
28035 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28036
28037         [BZ #3268]
28038         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28039         fma tests.
28040         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28041         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28042         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28043         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28044         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28045         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28046         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28047
28048 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28049
28050         [BZ #12078]
28051         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28052         * posix/bug-regex31.input: Add test case.
28053
28054 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28055
28056         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28057         * posix/bug-regex31.input: New file.
28058
28059         [BZ #12078]
28060         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28061         (parse_sub_exp): Fix last change, use postorder.
28062
28063         * posix/bug-regex31.c: New file.
28064         * posix/Makefile: Add rules to build and run bug-regex31.
28065
28066         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28067
28068         [BZ #12078]
28069         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28070
28071         [BZ #12108]
28072         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28073         to have entries in sys_siglist.
28074
28075         [BZ #12093]
28076         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28077         be NULL.
28078
28079 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28080
28081         [BZ #3268]
28082         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28083         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28084         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28085         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28086         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28087         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28088         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28089         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28090         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28091         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28092         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28093         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28094         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28095         * math/ftestexcept.c (fetestexcept): Likewise.
28096         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28097         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28098         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28099         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28100         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28101         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28102         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28103
28104 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28105
28106         [BZ #12107]
28107         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28108         newline.
28109
28110 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28111
28112         * string/bug-strstr1.c: New file.
28113         * string/Makefile: Add rules to build and run bug-strstr1.
28114
28115 2010-10-05  Eric Blake  <eblake@redhat.com>
28116
28117         [BZ #12092]
28118         * string/str-two-way.h (two_way_long_needle): Always clear memory
28119         when skipping input due to the shift table.
28120
28121 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28122
28123         [BZ #12005]
28124         * malloc/mcheck.c: Handle large requests.
28125
28126         [BZ #12077]
28127         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28128         for strncmp and strncasecmp.
28129         * string/stratcliff.c: Add tests for strcmp and strncmp.
28130         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28131
28132 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28133
28134         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28135         __set_fpscr.
28136
28137 2010-09-30  Andreas Jaeger  <aj@suse.de>
28138
28139         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28140         (CGROUP_SUPER_MAGIC): Define.
28141         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28142         Handle btrfs and cgroup file systems.
28143         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28144         Likewise.
28145
28146 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28147
28148         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28149         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28150
28151 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28152
28153         [BZ #12067]
28154         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28155         trying to locate the ELF header.
28156
28157 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28158
28159         [BZ #11611]
28160         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28161         Mask out sign-bit copies when constructing f_fsid.
28162
28163 2010-09-24  Petr Baudis <pasky@suse.cz>
28164
28165         * debug/stack_chk_fail_local.c: Add missing licence exception.
28166         * debug/warning-nop.c: Likewise.
28167
28168 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28169
28170         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28171         implementing getdents64 using getdents syscall, set d_type if
28172         __ASSUME_GETDENTS32_D_TYPE.
28173
28174 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28175
28176         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28177         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28178
28179 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28180
28181         [BZ #12037]
28182         * posix/unistd.h: Undo change of feature selection for ftruncate from
28183         2010-01-11.
28184
28185 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28186
28187         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28188         detection.
28189
28190 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28191
28192         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28193         fanotify_mark.
28194         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28195
28196 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28197
28198         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28199         variables after CHECK_SP call.
28200         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28201
28202 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28203             Ulrich Drepper  <drepper@redhat.com>
28204
28205         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28206         re-relocationg ld.so.
28207         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28208         _dl_init_paths call.
28209         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28210         here anymore.
28211
28212 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28213
28214         * resolv/res_init.c (__res_vinit): Count the default server we added.
28215
28216 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28217             Ulrich Drepper  <drepper@redhat.com>
28218
28219         [BZ #11968]
28220         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28221         (____longjmp_chk): Use %ebx for saving value across system call.
28222         Add unwind info.
28223
28224 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28225
28226         * manual/Makefile: Don't mix pattern rules with normal rules.
28227
28228 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28229
28230         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28231         operation.
28232         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28233         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28234         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28235         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28236         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28237         Likewise.
28238
28239 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28240
28241         [BZ #11979]
28242         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28243         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28244
28245 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28246
28247         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28248         * sysdeps/x86_64/addmul_1.S: Likewise.
28249         * sysdeps/x86_64/lshift.S: Likewise.
28250         * sysdeps/x86_64/mul_1.S: Likewise.
28251         * sysdeps/x86_64/rshift.S: Likewise.
28252         * sysdeps/x86_64/sub_n.S: Likewise.
28253         * sysdeps/x86_64/submul_1.S: Likewise.
28254
28255 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28256
28257         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28258         Define __sched_param instead of SCHED_* and sched_param when
28259         <bits/sched.h> is included with __need_schedparam defined.
28260         * bits/sched.h [__need_schedparam]
28261         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28262         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28263         (__defined_schedparam): Define to 1.
28264         (__sched_param): New structure, identical to sched_param.
28265         (__need_schedparam): Undefine.
28266
28267 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28268
28269         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28270         (epoll_create1): Declare.
28271
28272         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28273
28274 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28275
28276         [BZ #7066]
28277         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28278         shifting retval into place.
28279
28280 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28281
28282         * nis/rpcsvc/nis.h: Update copyright notice.
28283         * nis/rpcsvc/nis.x: Likewise.
28284         * nis/rpcsvc/nis_callback.h: Likewise.
28285         * nis/rpcsvc/nis_callback.x: Likewise.
28286         * nis/rpcsvc/nis_object.x: Likewise.
28287         * nis/rpcsvc/nis_tags.h: Likewise.
28288         * nis/rpcsvc/yp.h: Likewise.
28289         * nis/rpcsvc/yp.x: Likewise.
28290         * nis/rpcsvc/ypupd.h: Likewise.
28291         * nis/yp_xdr.c: Likewise.
28292         * nis/ypupdate_xdr.c: Likewise.
28293
28294         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28295         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28296         (pmap_getport): Use __libc_rpc_getport.
28297         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28298         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28299         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28300
28301 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28302
28303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28304         fanotify_mark.
28305
28306 2010-08-27  Roland McGrath  <roland@redhat.com>
28307
28308         * sysdeps/i386/i686/multiarch/Makefile
28309         (CFLAGS-varshift.c): New variable.
28310
28311 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28312
28313         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28314         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28315
28316         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28317
28318         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28319
28320 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28321
28322         * sysdeps/x86_64/strlen.S: Unroll the loop.
28323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28324         strlen-sse2 strlen-sse2-bsf.
28325         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28326         __strlen_no_bsf if bit_Slow_BSF is set.
28327         (__strlen_sse42): Removed.
28328         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28329         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28330
28331 2010-08-25  Roland McGrath  <roland@redhat.com>
28332
28333         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28334         * sysdeps/x86_64/multiarch/varshift.c: New file.
28335         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28336         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28337         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28338         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28339
28340 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28341
28342         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28343         strlen-sse2 strlen-sse2-bsf.
28344         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28345         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28346         (__strlen_sse2): Removed.
28347         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28348         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28350         bit_Slow_BSF for Atom.
28351         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28352         (index_Slow_BSF): Define.
28353         (HAS_SLOW_BSF): Define.
28354
28355 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28356
28357         [BZ #10851]
28358         * resolv/res_init.c (__res_vinit): When no server address at all
28359         is given default to loopback.
28360
28361 2010-08-24  Roland McGrath  <roland@redhat.com>
28362
28363         * configure.in: Remove config-name.h generation.
28364         * configure: Regenerated.
28365         * config-name.in: File removed.
28366         * scripts/config-uname.sh: New file.
28367         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28368         ($(objdir)config-name.h): New target.
28369
28370         * sunrpc/rpc_parse.h: Avoid nested comment.
28371
28372 2010-08-24  Richard Henderson  <rth@redhat.com>
28373             Ulrich Drepper  <drepper@redhat.com>
28374             H.J. Lu  <hongjiu.lu@intel.com>
28375
28376         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28377         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28378         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28379         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28380         _mm_alignr_epi8 with _mm_loadu_si128.
28381         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28382         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28383         (__m128i_shift_right): Removed.
28384         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28385         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28386         * sysdeps/x86_64/multiarch/varshift.h: New file.
28387         * sysdeps/x86_64/multiarch/varshift.S: New file.
28388
28389 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28390
28391         * configure.in: Move assembler checks to before sysdep dir checking.
28392
28393 2010-08-20  Petr Baudis  <pasky@suse.cz>
28394
28395         * LICENSES: Sync the sunrpc license.
28396
28397 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28398
28399         * sunrpc/auth_des.c: Update copyright notice once again.
28400         * sunrpc/auth_none.c: Likewise.
28401         * sunrpc/auth_unix.c: Likewise.
28402         * sunrpc/authdes_prot.c: Likewise.
28403         * sunrpc/authuxprot.c: Likewise.
28404         * sunrpc/bindrsvprt.c: Likewise.
28405         * sunrpc/clnt_gen.c: Likewise.
28406         * sunrpc/clnt_perr.c: Likewise.
28407         * sunrpc/clnt_raw.c: Likewise.
28408         * sunrpc/clnt_simp.c: Likewise.
28409         * sunrpc/clnt_tcp.c: Likewise.
28410         * sunrpc/clnt_udp.c: Likewise.
28411         * sunrpc/clnt_unix.c: Likewise.
28412         * sunrpc/des_crypt.c: Likewise.
28413         * sunrpc/des_soft.c: Likewise.
28414         * sunrpc/get_myaddr.c: Likewise.
28415         * sunrpc/getrpcport.c: Likewise.
28416         * sunrpc/key_call.c: Likewise.
28417         * sunrpc/key_prot.c: Likewise.
28418         * sunrpc/openchild.c: Likewise.
28419         * sunrpc/pm_getmaps.c: Likewise.
28420         * sunrpc/pm_getport.c: Likewise.
28421         * sunrpc/pmap_clnt.c: Likewise.
28422         * sunrpc/pmap_prot.c: Likewise.
28423         * sunrpc/pmap_prot2.c: Likewise.
28424         * sunrpc/pmap_rmt.c: Likewise.
28425         * sunrpc/rpc/auth.h: Likewise.
28426         * sunrpc/rpc/auth_unix.h: Likewise.
28427         * sunrpc/rpc/clnt.h: Likewise.
28428         * sunrpc/rpc/des_crypt.h: Likewise.
28429         * sunrpc/rpc/key_prot.h: Likewise.
28430         * sunrpc/rpc/netdb.h: Likewise.
28431         * sunrpc/rpc/pmap_clnt.h: Likewise.
28432         * sunrpc/rpc/pmap_prot.h: Likewise.
28433         * sunrpc/rpc/pmap_rmt.h: Likewise.
28434         * sunrpc/rpc/rpc.h: Likewise.
28435         * sunrpc/rpc/rpc_des.h: Likewise.
28436         * sunrpc/rpc/rpc_msg.h: Likewise.
28437         * sunrpc/rpc/svc.h: Likewise.
28438         * sunrpc/rpc/svc_auth.h: Likewise.
28439         * sunrpc/rpc/types.h: Likewise.
28440         * sunrpc/rpc/xdr.h: Likewise.
28441         * sunrpc/rpc_clntout.c: Likewise.
28442         * sunrpc/rpc_cmsg.c: Likewise.
28443         * sunrpc/rpc_common.c: Likewise.
28444         * sunrpc/rpc_cout.c: Likewise.
28445         * sunrpc/rpc_dtable.c: Likewise.
28446         * sunrpc/rpc_hout.c: Likewise.
28447         * sunrpc/rpc_main.c: Likewise.
28448         * sunrpc/rpc_parse.c: Likewise.
28449         * sunrpc/rpc_parse.h: Likewise.
28450         * sunrpc/rpc_prot.c: Likewise.
28451         * sunrpc/rpc_sample.c: Likewise.
28452         * sunrpc/rpc_scan.c: Likewise.
28453         * sunrpc/rpc_scan.h: Likewise.
28454         * sunrpc/rpc_svcout.c: Likewise.
28455         * sunrpc/rpc_tblout.c: Likewise.
28456         * sunrpc/rpc_util.c: Likewise.
28457         * sunrpc/rpc_util.h: Likewise.
28458         * sunrpc/rpcinfo.c: Likewise.
28459         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28460         * sunrpc/rpcsvc/key_prot.x: Likewise.
28461         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28462         * sunrpc/rpcsvc/mount.x: Likewise.
28463         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28464         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28465         * sunrpc/rpcsvc/rex.x: Likewise.
28466         * sunrpc/rpcsvc/rstat.x: Likewise.
28467         * sunrpc/rpcsvc/rusers.x: Likewise.
28468         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28469         * sunrpc/rpcsvc/spray.x: Likewise.
28470         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28471         * sunrpc/rtime.c: Likewise.
28472         * sunrpc/svc.c: Likewise.
28473         * sunrpc/svc_auth.c: Likewise.
28474         * sunrpc/svc_authux.c: Likewise.
28475         * sunrpc/svc_raw.c: Likewise.
28476         * sunrpc/svc_run.c: Likewise.
28477         * sunrpc/svc_simple.c: Likewise.
28478         * sunrpc/svc_tcp.c: Likewise.
28479         * sunrpc/svc_udp.c: Likewise.
28480         * sunrpc/svc_unix.c: Likewise.
28481         * sunrpc/svcauth_des.c: Likewise.
28482         * sunrpc/xcrypt.c: Likewise.
28483         * sunrpc/xdr.c: Likewise.
28484         * sunrpc/xdr_array.c: Likewise.
28485         * sunrpc/xdr_float.c: Likewise.
28486         * sunrpc/xdr_mem.c: Likewise.
28487         * sunrpc/xdr_rec.c: Likewise.
28488         * sunrpc/xdr_ref.c: Likewise.
28489         * sunrpc/xdr_sizeof.c: Likewise.
28490         * sunrpc/xdr_stdio.c: Likewise.
28491
28492         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28493         handling.
28494
28495 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28496
28497         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28498
28499 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28500
28501         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28502         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28503         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28504         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28505         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28506         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28507         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28508         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28509         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28510         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28511         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28512         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28513         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28514         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28515
28516 2010-07-26  Anton Blanchard  <anton@samba.org>
28517
28518         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28519         * malloc/arena.c (heap_trim): Likewise.
28520
28521 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28522
28523         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28524         here.  Not...
28525         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28526         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28527
28528 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28529
28530         * sysdeps/i386/elf/Makefile: New file.
28531
28532 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28533
28534         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28535         from fanotify_init.
28536         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28537         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28538
28539 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28540
28541         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28542         of strncasecmp_l.
28543         * sysdeps/multiarch/strcmp.S: Likewise.
28544
28545 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28546
28547         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28548         strncase_l-nonascii.
28549         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28550         Add strncase_l-ssse3.
28551         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28552         * sysdeps/x86_64/strcmp.S: Likewise.
28553         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28554         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28555         * sysdeps/x86_64/strncase.S: New file.
28556         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28557         * sysdeps/x86_64/strncase_l.S: New file.
28558         * string/Makefile (strop-tests): Add strncasecmp.
28559         * string/test-strncasecmp.c: New file.
28560
28561         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28562         warning.
28563
28564         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28565         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28566
28567 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28568
28569         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28570
28571 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28572
28573         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28574         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28575         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28576
28577 2010-05-01  Alan Modra  <amodra@gmail.com>
28578
28579         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28580         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28581         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28582         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28583         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28584         tidying.  Don't tail-call __sigjmp_save for static lib.
28585         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28586         save location.
28587         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28588         (CALL_MCOUNT): Add eh info, and nop after bl.
28589         (TAIL_CALL_SYSCALL_ERROR): New macro.
28590         (PSEUDO_RET): Use it.
28591         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28592         Correct save location of integer regs and cr.
28593         (_dl_profile_resolve): Correct cr save location.  Delete nops
28594         after bl when SHARED.  Reduce cfi size a little by better
28595         placement of cfi directives.
28596         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28597         make a stack frame.  Instead use parm save area as a temp.
28598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28599         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28601         Don't make a stack frame for parent, use parm save area.
28602         Increase child stack frame to 112 bytes.  Don't save unused reg,
28603         and adjust reg usage.  Set up cfi on error recovery and
28604         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28606         (__makecontext): Add dummy nop after jump to exit.
28607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28608         Use correct parm save area and cr save, reduce stack frame.
28609         Correct cfi for possible PSEUDO_RET frame setup.
28610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28611         Branch to local label emitted by PSEUDO_RET rather than
28612         __syscall_error.
28613
28614 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28615
28616         [BZ #11904]
28617         * locale/programs/locale.c (print_assignment): New function.
28618         (show_locale_vars): Use it.
28619
28620 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28621
28622         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28623         field.
28624         (struct statfs64): Likewise.
28625         (_STATFS_F_FLAGS): Define.
28626         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28627         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28628         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28629         (ST_VALID): Define locally.
28630         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28631         __statvfs_getflags, use the provided value.
28632         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28633         __ASSUME_STATFS_F_FLAGS.
28634
28635         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28636
28637         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28638         Add sys/fanotify.h.
28639         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28640         fanotify_mask for GLIBC_2.13.
28641         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28642         fanotify_init and fanotify_mark.
28643         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28644         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28645
28646         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28647         Add prlimit.
28648         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28649         prlimit64 for GLIBC_2.13.
28650         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28651         prlimit64.
28652         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28653         syscall.
28654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28655         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28656         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28657         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28658         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28659         add prlimit alias.
28660         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28661
28662         [BZ #11903]
28663         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28664         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28665
28666         * nss/Makefile: Add rules to build and run tst-nss-test1.
28667         * shlib-versions: Add entry for libnss_test1.
28668         * nss/nss_test1.c: New file.
28669         * nss/tst-nss-test1.c: New file.
28670
28671         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28672         (__nss_configure_lookup): Set appropriate entry in
28673         __nss_configure_lookup to true.
28674         * nss/nsswitch.h: Define enum with indeces of databases in
28675         databases and __nss_database_custom arrays.  Declare
28676         __nss_database_custom.
28677         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28678         to avoid using nscd when custom rules are installed.
28679         * nss/getXXbyYY_r.c: Likewise.
28680         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28681
28682         * nss/nss_files/files-parse.c: Whitespace fixes.
28683
28684 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28685
28686         [BZ #11883]
28687         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28688         * posix/fnmatch_loop.c: Likewise.
28689
28690 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28691
28692         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28693         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28694         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28695         * Versions.def [GLIBC_2.13]: Add.
28696
28697 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28698
28699         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28700         Also fail if tpwd after pwuid call is NULL.
28701
28702 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28703
28704         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28705         when converting to ms.
28706
28707 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28708
28709         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28710         EOPNOTSUPP errors with ENOTTY.
28711         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28712         EOPNOTSUPP errors with ENOTTY.
28713
28714 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28715
28716         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28717         Add strcasecmp_l-ssse3.
28718         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28719         strcasecmp.
28720         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28721         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28722         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28723
28724 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28725
28726         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28727
28728         * string/Makefile (strop-tests): Add strcasecmp.
28729         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28730         strcasecmp_l-nonascii.
28731         (gen-as-const-headers): Add locale-defines.sym.
28732         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28733         * sysdeps/x86_64/strcasecmp.S: New file.
28734         * sysdeps/x86_64/strcasecmp_l.S: New file.
28735         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28736         * sysdeps/x86_64/locale-defines.sym: New file.
28737         * string/test-strcasecmp.c: New file.
28738
28739         * string/test-strcasestr.c: Test both ends of the range of characters.
28740         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28741
28742 2010-07-29  Roland McGrath  <roland@redhat.com>
28743
28744         [BZ #11856]
28745         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28746
28747 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28748
28749         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28750         for ld.so.
28751
28752 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28753
28754         * manual/memory.texi (Malloc Tunable Parameters): Document
28755         M_PERTURB.
28756
28757 2010-07-26  Roland McGrath  <roland@redhat.com>
28758
28759         [BZ #11840]
28760         * configure.in (-fgnu89-inline check): Set and substitute
28761         gnu89_inline, not libc_cv_gnu89_inline.
28762         * configure: Regenerated.
28763         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28764
28765 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28766
28767         * string/test-strnlen.c: New file.
28768         * string/Makefile (strop-tests): Add strnlen.
28769         * string/tester.c (test_strnlen): Add a few more test cases.
28770         * string/tst-strlen.c: Better error reporting.
28771
28772         * sysdeps/x86_64/strnlen.S: New file.
28773
28774 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28775
28776         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28777         lower-latency instructions.
28778
28779 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28780
28781         * string/test-strcasestr.c: New file.
28782         * string/test-strstr.c: New file.
28783         * string/Makefile (strop-tests): Add strstr and strcasestr.
28784         * string/str-two-way.h: Don't undefine MAX.
28785         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28786
28787 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28788
28789         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28790         strcasestr-nonascii.
28791         (CFLAGS-strcasestr-nonascii.c): Define.
28792         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28793         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28794         Remove unused attribute.
28795
28796 2010-07-20  Roland McGrath  <roland@redhat.com>
28797
28798         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28799         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28800         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28801         like LD_HWCAP_MASK can disable hwcaps.
28802
28803 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28804
28805         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28806
28807 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28808
28809         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28810         call in strcasestr.
28811         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28812         __strcasestr_sse42_nonascii.
28813         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28814         strcasestr-nonascii.c.
28815         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28816
28817 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28818
28819         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28820         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28821         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28822         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28823
28824 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28825
28826         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28827         fcntl.
28828
28829 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28830
28831         [BZ #11577]
28832         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28833         dl_signal_cerror.
28834
28835 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28836
28837         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28838         _PC_PIPE_BUF using F_GETPIPE_SZ.
28839
28840 2010-07-05  Roland McGrath  <roland@redhat.com>
28841
28842         * manual/arith.texi (Rounding Functions): Fix rint description
28843         implicit in round description.
28844
28845 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28846
28847         * elf/Makefile: Fix linking for a few tests to make recent linker
28848         happy.
28849
28850 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28851
28852         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28853         $(common-objpfx)libc_nonshared.a.
28854
28855 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28856
28857         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28858         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28859         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28860         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28861         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28862         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28863         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28864         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28879         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28880         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28881         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28882         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28883         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28884         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28885         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28886         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28887         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28888         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28889         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28890         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28905
28906 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28907
28908         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28909         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28910         * string/memmove.c (memmove): Renamed to ...
28911         (MEMMOVE): ...this.  Default to memmove.
28912         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28913         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28914         (END_CHK): Define.
28915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28916         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28917         mempcpy-ssse3-back memmove-ssse3-back.
28918         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28919         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28920         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28921         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28922         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28923         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28924         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28925         * sysdeps/x86_64/multiarch/memmove.c: New file.
28926         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28927         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28928         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28929         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28930         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28931         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28932         Define.
28933         (index_Fast_Copy_Backward): Define.
28934         (HAS_ARCH_FEATURE): Define.
28935         (HAS_FAST_REP_STRING): Define.
28936         (HAS_FAST_COPY_BACKWARD): Define.
28937
28938 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28939
28940         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28941         Restore proper fallback handling.
28942
28943 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28944
28945         [BZ #11701]
28946         * posix/group_member.c (__group_member): Correct checking loop.
28947
28948         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28949         OOM in getpwuid_r correctly.  Return error number when the caller
28950         should return, otherwise -1.
28951         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28952         call returning > 0 value.
28953         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28954
28955 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28956
28957         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28958         libc_nonshared.a from targets in modules-names.
28959
28960 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28961
28962         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28963         requires it.
28964
28965 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28966
28967         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28968         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28969         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28970         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28971
28972 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28973
28974         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28975
28976 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28977
28978         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28979         and F_GETPIPE_SZ.
28980         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28981         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28982         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28983         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28984         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28985         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28986
28987 2010-06-14  Roland McGrath  <roland@redhat.com>
28988
28989         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28990
28991 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28992
28993         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28994         __REDIRECT followed by __THROW.
28995         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28996         * posix/getopt.h (getopt): Likewise.
28997
28998 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28999
29000         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29001         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29002         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29003         in AT_FLAGS.
29004         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29005         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29006
29007 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29008
29009         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29010
29011 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29012
29013         [BZ #11640]
29014         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29015         Properly check family and model.
29016
29017 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29018
29019         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29020
29021 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29022
29023         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29024
29025 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29026
29027         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29028         symbol reference.
29029
29030 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29031
29032         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29033         symbol reference.
29034
29035 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29036
29037         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29038         and internal_recvmmsg.
29039         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29040         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29041         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29042         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29043
29044         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29045         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29046         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29047
29048 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29049
29050         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29051
29052 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29053
29054         POWER7 optimizations.
29055         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29056         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29057
29058 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29059
29060         * version.h: Update for 2.13 development version.
29061
29062 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29063
29064         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29065         exceptions.  Return 0.
29066
29067 2010-05-07  Roland McGrath  <roland@redhat.com>
29068
29069         * elf/ldconfig.c (main): Add a const.
29070
29071 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29072
29073         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29074         (args_options): Add no-idn option.
29075         (ahosts_keys_int): Add idn_flags to ai_flags.
29076         (parse_option): Handle 'i' option to clear idn_flags.
29077
29078         * malloc/malloc.c (_int_free): Possible race in the most recently
29079         added check.  Only act on the data if no current modification
29080         happened.
29081
29082 See ChangeLog.17 for earlier changes.