Define decimal constant M_1_DIV_El in libm-test.inc
[jlayton/glibc.git] / ChangeLog
1 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
4         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5
6 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7
8         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
10         (bench-deps): Add bench-timing.h.
11         * benchtests-bench-skeleton.c: Include bench-timing.h.
12         (main): Use TIMING_* macros instead of clock_gettime.
13         * benchtests/bench-timing.h: New file.
14
15         [BZ #14582]
16         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17         Renamed from _LIB_VERSION.
18         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
19
20 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
21
22         * math/libm-test.inc (struct test_fff_f_data): New type.
23         (RUN_TEST_LOOP_fff_f): New macro.
24         (fma_test_data): New variable.
25         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
26         (fma_towardzero_test_data): New variable.
27         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
28         (fma_downward_test_data): New variable.
29         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
30         (fma_upward_test_data): New variable.
31         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
32
33         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
34         (struct test_c_c_data): New type.
35         (RUN_TEST_LOOP_c_c): New macro.
36         (cacos_test_data): New variable.
37         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
38         (cacosh_test_data): New variable.
39         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
40         (casin_test_data): New variable.
41         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
42         (casinh_test_data): New variable.
43         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
44         (catan_test_data): New variable.
45         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
46         (catanh_test_data): New variable.
47         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48         (ccos_test_data): New variable.
49         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
50         (ccosh_test_data): New variable.
51         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
52         (cexp_test_data): New variable.
53         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54         (clog_test_data): New variable.
55         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
56         (clog10_test_data): New variable.
57         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
58         (conj_test_data): New variable.
59         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
60         (cproj_test_data): New variable.
61         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
62         (csin_test_data): New variable.
63         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
64         (csinh_test_data): New variable.
65         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
66         (csqrt_test_data): New variable.
67         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
68         (ctan_test_data): New variable.
69         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
70         (ctan_tonearest_test_data): New variable.
71         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
72         (ctan_towardzero_test_data): New variable.
73         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
74         (ctan_downward_test_data): New variable.
75         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
76         (ctan_upward_test_data): New variable.
77         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
78         (ctanh_test_data): New variable.
79         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
80         (ctanh_tonearest_test_data): New variable.
81         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
82         (ctanh_towardzero_test_data): New variable.
83         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
84         (ctanh_downward_test_data): New variable.
85         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
86         (ctanh_upward_test_data): New variable.
87         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
88         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
89         of BUILD_COMPLEX.
90
91         * math/libm-test.inc (struct test_ff_f_data): New type.
92         (struct test_ff_f_data_nexttoward): Likewise.
93         (RUN_TEST_LOOP_2_f): New macro.
94         (RUN_TEST_LOOP_ff_f): Likewise.
95         (atan2_test_data): New variable.
96         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
97         (copysign_test_data): New variable.
98         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
99         (fdim_test_data): New variable.
100         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
101         (fmax_test_data): New variable.
102         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
103         (fmin_test_data): New variable.
104         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
105         (fmod_test_data): New variable.
106         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
107         (hypot_test_data): New variable.
108         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
109         (nextafter_test_data): New variable.
110         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
111         (nexttoward_test_data): New variable.
112         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
113         (pow_test_data): New variable.
114         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
115         (pow_tonearest_test_data): New variable.
116         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
117         (pow_towardzero_test_data): New variable.
118         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
119         (pow_downward_test_data): New variable.
120         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
121         (pow_upward_test_data): New variable.
122         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
123         (remainder_test_data): New variable.
124         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
125         (scalb_test_data): New variable.
126         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
127         * sysdeps/i386/fpu/libm-test-ulps: Update.
128
129 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
130
131         * math/libm-test.inc (fma_test): Use max_value instead of local
132         variable fltmax.
133         (nextafter_test): Likewise.
134
135         * math/libm-test.inc (acos_towardzero_test_data): New variable.
136         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
137         (acos_downward_test_data): New variable.
138         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
139         (acos_upward_test_data): New variable.
140         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
141         (acosh_test_data): New variable.
142         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
143         (asin_test_data): New variable.
144         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
145         (asin_tonearest_test_data): New variable.
146         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
147         (asin_towardzero_test_data): New variable.
148         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
149         (asin_downward_test_data): New variable.
150         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
151         (asin_upward_test_data): New variable.
152         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
153         (asinh_test_data): New variable.
154         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
155         (atan_test_data): New variable.
156         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
157         (atanh_test_data): New variable.
158         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
159         (cbrt_test_data): New variable.
160         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
161         (ceil_test_data): New variable.
162         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
163         (cos_test_data): New variable.
164         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
165         (cos_tonearest_test_data): New variable.
166         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
167         (cos_towardzero_test_data): New variable.
168         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
169         (cos_downward_test_data): New variable.
170         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
171         (cos_upward_test_data): New variable.
172         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
173         (cosh_test_data): New variable.
174         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
175         (cosh_tonearest_test_data): New variable.
176         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
177         (cosh_towardzero_test_data): New variable.
178         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
179         (cosh_downward_test_data): New variable.
180         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
181         (cosh_upward_test_data): New variable.
182         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
183         (erf_test_data): New variable.
184         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
185         (erfc_test_data): New variable.
186         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
187         (exp_test_data): New variable.
188         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
189         (exp_tonearest_test_data): New variable.
190         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
191         (exp_towardzero_test_data): New variable.
192         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
193         (exp_downward_test_data): New variable.
194         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
195         (exp_upward_test_data): New variable.
196         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
197         (exp10_test_data): New variable.
198         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
199         (exp2_test_data): New variable.
200         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
201         (expm1_test_data): New variable.
202         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
203         (fabs_test_data): New variable.
204         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
205         (floor_test_data): New variable.
206         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
207         (j0_test_data): New variable.
208         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
209         (j1_test_data): New variable.
210         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
211         (log_test_data): New variable.
212         (log_test): Run tests with RUN_TEST_LOOP_f_f.
213         (log10_test_data): New variable.
214         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
215         (log1p_test_data): New variable.
216         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
217         (log2_test_data): New variable.
218         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
219         (logb_test_data): New variable.
220         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
221         (logb_downward_test_data): New variable.
222         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
223         (nearbyint_test_data): New variable.
224         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
225         (rint_test_data): New variable.
226         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
227         (rint_tonearest_test_data): New variable.
228         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
229         (rint_towardzero_test_data): New variable.
230         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
231         (rint_downward_test_data): New variable.
232         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
233         (rint_upward_test_data): New variable.
234         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
235         (round_test_data): New variable.
236         (round_test): Run tests with RUN_TEST_LOOP_f_f.
237         (sin_test_data): New variable.
238         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
239         (sin_tonearest_test_data): New variable.
240         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
241         (sin_towardzero_test_data): New variable.
242         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
243         (sin_downward_test_data): New variable.
244         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
245         (sin_upward_test_data): New variable.
246         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
247         (sinh_test_data): New variable.
248         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
249         (sinh_tonearest_test_data): New variable.
250         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
251         (sinh_towardzero_test_data): New variable.
252         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
253         (sinh_downward_test_data): New variable.
254         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
255         (sinh_upward_test_data): New variable.
256         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
257         (sqrt_test_data): New variable.
258         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
259         (tan_test_data): New variable.
260         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
261         (tan_tonearest_test_data): New variable.
262         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
263         (tan_towardzero_test_data): New variable.
264         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
265         (tan_downward_test_data): New variable.
266         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
267         (tan_upward_test_data): New variable.
268         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
269         (tanh_test_data): New variable.
270         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
271         (tgamma_test_data): New variable.
272         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
273         (trunc_test_data): New variable.
274         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
275         (y0_test_data): New variable.
276         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
277         (y1_test_data): New variable.
278         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
279         (significand_test_data): New variable.
280         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
281
282 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
283
284         [BZ #12387]
285         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
286
287 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
288
289         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
290
291 2013-05-10  Andreas Jaeger  <aj@suse.de>
292
293         [BZ #15448]
294         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
295         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
296
297 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
298
299         * math/gen-libm-test.pl (adjust_arg): New function.
300         (special_functions): Handle generating output in both functions
301         and arrays.
302         (parse_args): Likewise.
303         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
304         $in_func argument to parse_args.
305         * math/libm-test.inc (struct test_f_f_data): New type.
306         (IF_ROUND_INIT_): New macro.
307         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
308         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
309         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
310         (IF_ROUND_INIT_FE_UPWARD): Likewise.
311         (ROUND_RESTORE_): Likewise.
312         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
313         (ROUND_RESTORE_FE_TONEAREST): Likewise.
314         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
315         (ROUND_RESTORE_FE_UPWARD): Likewise.
316         (RUN_TEST_LOOP_f_f): New macro.
317         (acos_test_data): New variable.
318         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
319         (acos_tonearest_test_data): New variable.
320         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
321
322 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
323
324         * benchtests/bench-skeleton.c (startup): Fix coding style.
325
326 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
327
328         [BZ #6809]
329         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
330         negative infinity argument.
331         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
332         negative infinity argument.
333         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
334         negative infinity argument.
335         * math/libm-test.inc (tgamma_test): Expect errno to be set for
336         domain errors.
337
338 2013-05-10  Florian Weimer  <fweimer@redhat.com>
339
340         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
341         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
342         * iconv/iconv_prog.c (main): Likewise.
343         * locale/programs/charmap-dir.c (charmap_readdir)
344         (fopen_uncompressed): Likewise.
345         * locale/programs/locfile.c (siblings_uncached)
346         (write_locale_data): Use lstat64 instead of lstat.
347         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
348         stat.
349
350 2013-05-10  Andreas Jaeger  <aj@suse.de>
351
352         [BZ #15395]
353         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
354         localization.
355         Include <locale.h>.
356
357 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
358
359         * elf/dl-close.c (_dl_close_worker): Add comments.
360
361 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
362
363         [BZ #15359]
364         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
365         high part of pi/2.
366         (__ieee754_rem_pio2l): Update comments.
367
368         [BZ #15429]
369         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
370         high part of pi/2.
371         (__ieee754_rem_pio2l): Update comments.
372
373         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
374         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
375
376         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
377         M_PI_4l.
378
379         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
380         (M_PI_34_LOG10El): Likewise.
381         (M_PI2_LOG10El): Likewise.
382         (M_PI4_LOG10El): Likewise.
383         (M_PI_LOG10El): Likewise.
384
385 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
386
387         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
388
389 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
390
391         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
392         (MINUS_ZERO_INIT): Likewise.
393         (PLUS_INFTY_INIT): Likewise.
394         (MINUS_INFTY_INIT): Likewise.
395         (QNAN_VALUE_INIT): Likewise.
396         (MAX_VALUE_INIT): Likewise.
397         (MIN_VALUE_INIT): Likewise.
398         (MIN_SUBNORM_VALUE_INIT): Likewise.
399         (plus_zero): Initialize with PLUS_ZERO_INIT.
400         (minus_zero): Initialize with MINUS_ZERO_INIT.
401         (plus_infty): Initialize with PLUS_INFTY_INIT.
402         (minus_infty): Initialize with MINUS_INFTY_INIT.
403         (qnan_value): Initialize with QNAN_VALUE_INIT.
404         (max_value): Initialize with MAX_VALUE_INIT.
405         (min_value): Initialize with MIN_VALUE_INIT.
406         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
407
408         * math/libm-test.inc (RUN_TEST_if_f): New macro.
409         (jn_test): Use TEST_if_f instead of TEST_ff_f.
410         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
411         (yn_test): Use TEST_if_f instead of TEST_ff_f.
412
413         * math/libm-test.inc (RUN_TEST_f_f): New macro.
414         (RUN_TEST_2_f): Likewise.
415         (RUN_TEST_ff_f): Likewise.
416         (RUN_TEST_fi_f): Likewise.
417         (RUN_TEST_fl_f): Likewise.
418         (RUN_TEST_fff_f): Likewise.
419         (RUN_TEST_c_f): Likewise.
420         (RUN_TEST_f_f1): Likewise.
421         (RUN_TEST_fF_f1): Likewise.
422         (RUN_TEST_fI_f1): Likewise.
423         (RUN_TEST_ffI_f1): Likewise.
424         (RUN_TEST_c_c): Likewise.
425         (RUN_TEST_cc_c): Likewise.
426         (RUN_TEST_f_i): Likewise.
427         (RUN_TEST_f_i_tg): Likewise.
428         (RUN_TEST_ff_i_tg): Likewise.
429         (RUN_TEST_f_b): Likewise.
430         (RUN_TEST_f_b_tg): Likewise.
431         (RUN_TEST_f_l): Likewise.
432         (RUN_TEST_f_L): Likewise.
433         (RUN_TEST_sincos): Likewise.
434         * math/gen-libm-test.pl (new_test): Take new argument to indicate
435         whether to show exceptions.  Do not include ");\n" in return
436         value.
437         (special_functions): Output call to RUN_TEST_sincos instead of
438         check_float calls.  Update calls to new_test.
439         (parse_args): Output call to single RUN_TEST_* macro instead of
440         check_* calls and other assignments.  Update calls to new_test.
441
442         [BZ #2546]
443         [BZ #2560]
444         [BZ #5159]
445         [BZ #15426]
446         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
447         input to result for tgamma overflow.
448         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
449         (gamma_coeff): New variable.
450         (NCOEFF): New macro.
451         (gamma_positive): New function.
452         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
453         underflow here.  Use gamma_positive instead of exp (lgamma) for
454         other arguments.
455         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
456         (gamma_coeff): New variable.
457         (NCOEFF): New macro.
458         (gammaf_positive): New function.
459         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
460         underflow here.  Use gamma_positive instead of exp (lgamma) for
461         other arguments.
462         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
463         (gamma_coeff): New variable.
464         (NCOEFF): New macro.
465         (gammal_positive): New function.
466         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
467         underflow here.  Use gamma_positive instead of exp (lgamma) for
468         other arguments.
469         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
470         (gamma_coeff): New variable.
471         (NCOEFF): New macro.
472         (gammal_positive): New function.
473         (__ieee754_gammal_r): Handle positive infinity, overflow and
474         underflow here.  Handle NaN the same as positive infinity.  Remove
475         check x < 0xffffffff for negative integers.  Use gamma_positive
476         instead of exp (lgamma) for other arguments.
477         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
478         (gamma_coeff): New variable.
479         (NCOEFF): New macro.
480         (gammal_positive): New function.
481         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
482         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
483         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
484         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
485         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
486         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
487         * sysdeps/generic/math_private.h (__gamma_productf): New
488         prototype.
489         (__gamma_product): Likewise.
490         (__gamma_productl): Likewise.
491         * math/Makefile (libm-calls): Add gamma_product.
492         * math/libm-test.inc (tgamma_test): Add more tests.
493         * sysdeps/i386/fpu/libm-test-ulps: Update.
494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
495
496 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
497
498         * benchtests/bench-skeleton.c (main): Preheat CPU.
499
500 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
501
502         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
503
504 2013-05-07  Roland McGrath  <roland@hack.frob.com>
505
506         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
507         and _dl_skip_args_internal.
508
509 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
510
511         * manual/message.texi (Message Translation): Talk about users.
512         Message to key mapping impacts design.
513
514 2013-05-06  Roland McGrath  <roland@hack.frob.com>
515
516         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
517
518         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
519
520         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
521         * sysdeps/wordsize-64/glob64.c: ... here.
522
523         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
524         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
525         New macros.
526
527         * debug/getlogin_r_chk.c: Moved to ...
528         * login/getlogin_r_chk.c: ... here.
529         * debug/Makefile (routines): Move getlogin_r_chk to ...
530         * login/Makefile (routines): ... here.
531         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
532         * login/Versions (libc: GLIBC_2.4): ... here.
533
534         * io/poll.c (__poll): Renamed from poll.
535         Add libc_hidden_def.
536         (poll): Define as weak alias.
537
538         * debug/ptsname_r_chk.c: Moved to ...
539         * login/ptsname_r_chk.c: ... here.
540         * debug/Makefile (routines): Move ptsname_r_chk to ...
541         * login/Makefile (routines): ... here.
542         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
543         * login/Versions (libc: GLIBC_2.4): ... here.
544
545         * posix/getlogin.c: Moved to ...
546         * login/getlogin.c: ... here.
547         * posix/getlogin_r.c: Moved to ...
548         * login/getlogin_r.c: ... here.
549         * posix/getlogin_r.c: Moved to ...
550         * login/getlogin_r.c: ... here.
551         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
552         * login/Makefile (routines): ... here.
553         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
554         * login/Versions (libc: GLIBC_2.0): ... here.
555
556         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
557         (setrlimit): Define as weak alias.
558
559         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
560         Call __ names for open, ftruncate, and close.
561         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
562         (truncate): Define as weak alias.
563
564 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
565
566         * math/gen-libm-test.pl (parse_args): Initialize x before each
567         test of frexp, modf and remquo.
568
569         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
570         test signgam value.
571
572 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
573
574         [BZ #15418]
575         [BZ #15419]
576         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
577         internal tests.
578         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
579
580 2013-05-06  Roland McGrath  <roland@hack.frob.com>
581
582         * elf/dl-writev.h: New file.
583         * elf/dl-misc.c: Include it.
584         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
585         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
586
587 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
588
589         * math/libm-test.inc (noXFails): Remove variable.
590         (noXPasses): Likewise.
591         (BUILD_COMPLEX_INT): Remove macro.
592         (print_screen): Remove xfail argument.
593         (print_screen_max_error): Likewise.
594         (update_stats): Likewise.
595         (print_max_error): Likewise.  Update calls to other affected
596         functions.
597         (print_complex_max_error): Likewise.
598         (test_single_exception): Update calls to print_screen.
599         (test_single_errno): Likewise.
600         (check_float_internal): Remove xfail argument.  Update calls to
601         other affected functions.
602         (check_float): Likewise.
603         (check_complex): Likewise.
604         (check_int): Likewise.
605         (check_long): Likewise.
606         (check_bool): Likewise.
607         (check_longlong): Likewise.
608         (main): Don't print noXFails and noXPasses.
609         * math/gen-libm-test.pl (top level): Don't mention expected
610         failure handling in comment.
611         (new_test): Don't handle expected failures.
612         (parse_args): Don't mention expected failure handling in comment.
613         (generate_testfile): Don't handle expected failures.
614         (parse_ulps): Likewise.
615         (print_ulps_file): Likewise.
616         (get_failure): Remove function.
617         (output_test): Don't handle expected failures.
618         * make/README.libm-test: Don't mention expected failure handling.
619
620         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
621         (minus_zero): Likewise.
622         (plus_infty): Likewise.
623         (minus_infty): Likewise.
624         (qnan_value): Likewise.
625         (max_value): Likewise.
626         (min_value): Likewise.
627         (min_subnorm_value): Likewise.
628         (initialize): Do not initialize those variables dynamically.
629
630 2013-05-03  Roland McGrath  <roland@hack.frob.com>
631
632         * io/open.c (__open_2): Moved to ...
633         * io/open_2.c: ... this new file.
634         * io/open64.c (__open64_2): Moved to ...
635         * io/open64_2.c: ... this new file.
636         * io/openat.c (__openat_2): Moved to ...
637         * io/openat_2.c: ... this new file.
638         * io/openat64.c (__openat64_2): Moved to ...
639         * io/openat64_2.c: ... this new file.
640         * io/Makefile (routines): Add them.
641         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
642         * sysdeps/unix/sysv/linux/open_2.c: File removed.
643         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
644         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
645         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
646         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
647         (__openat64): Add hidden_ver.
648         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
649         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
650
651         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
652         Separately conditionalize setting of GLRO(dl_sysinfo) so
653         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
654         as well, but the actual setting is only under [NEED_DL_SYSINFO].
655
656 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
657
658         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
659         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
660         definition.
661         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
662         * sysdeps/unix/sysv/linux/powerpc/init-first.c
663         (_libc_vdso_platform_setup): Add __vdso_time initialization.
664         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
665         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
666
667 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
668
669         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
670         test signgam value.
671
672         * math/libm-test.inc (hypot_test): Do not use
673         IGNORE_ZERO_INF_SIGN.
674
675 2013-05-03  Andreas Jaeger  <aj@suse.de>
676
677         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
678         Linux 3.9.
679         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
680         (PF_MAX): Adjust for VSOCK change.
681
682 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
683
684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
685
686 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
687
688         [BZ #15264]
689         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
690         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
691         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
692
693 2013-05-02  David S. Miller  <davem@davemloft.net>
694
695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
696
697 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
698
699         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
700
701 2013-05-01  Roland McGrath  <roland@hack.frob.com>
702
703         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
704
705 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
706
707         [BZ #14952]
708         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
709         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
710         Use __attribute__ ((__gnu_inline__)).
711         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
712         Don't use __attribute__ ((__gnu_inline__)).
713
714 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
715
716         [BZ #15423]
717         * math/s_catan.c (__catan): Handle small real or imaginary part of
718         input specially to avoid spurious underflow.
719         * math/s_catanf.c (__catanf): Likewise.
720         * math/s_catanh.c (__catanh): Likewise.
721         * math/s_catanhf.c (__catanhf): Likewise.
722         * math/s_catanhl.c (__catanhl): Likewise.
723         * math/s_catanl.c (__catanl): Likewise.
724         * math/libm-test.inc (catan_test): Add more tests.
725         (catanh_test): Likewise.
726         * sysdeps/i386/fpu/libm-test-ulps: Update.
727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
728
729 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
730
731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
732
733 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
734
735         [BZ #15416]
736         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
737         accurately for denominator in atan2.
738         * math/s_catanf.c (__catanf): Likewise.
739         * math/s_catanh.c (__catanh): Likewise.
740         * math/s_catanhf.c (__catanhf): Likewise.
741         * math/s_catanhl.c (__catanhl): Likewise.
742         * math/s_catanl.c (__catanl): Likewise.
743         * math/libm-test.inc (catan_test): Add more tests.
744         (catanh_test): Likewise.
745         * sysdeps/i386/fpu/libm-test-ulps: Update.
746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
747
748 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
749
750         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
751
752         * benchtests/Makefile (bench): Remove slow benchmarks.
753         * benchtests/atan-inputs: Add slow benchmark inputs.
754         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
755         (BENCH_FUNC): Accept variant offset.
756         (VARIANT): Define.
757         * benchtests/bench-skeleton.c (main): Run benchmark for each
758         variant.
759         * benchtests/cos-inputs: Add slow benchmark inputs.
760         * benchtests/exp-inputs: Likewise.
761         * benchtests/pow-inputs: Likewise.
762         * benchtests/sin-inputs: Likewise.
763         * benchtests/slowatan-inputs: Remove.
764         * benchtests/slowatan.c: Remove.
765         * benchtests/slowcos-inputs: Remove.
766         * benchtests/slowcos.c: Remove.
767         * benchtests/slowexp-inputs: Remove.
768         * benchtests/slowexp.c: Remove.
769         * benchtests/slowpow-inputs: Remove.
770         * benchtests/slowpow.c: Remove.
771         * benchtests/slowsin-inputs: Remove.
772         * benchtests/slowsin.c: Remove.
773         * benchtests/slowtan-inputs: Remove.
774         * benchtests/slowtan.c: Remove.
775         * benchtests/tan-inputs: Add slow benchmark inputs.
776         * scripts/bench.pl: Parse comments and directives.
777
778         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
779         in CPPFLAGS.
780         ($(objpfx)bench-%.c): Remove *-ITER.
781         * benchtests/bench-modf.c: Remove definition of ITER.
782         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
783         (main): Loop for DURATION seconds instead of fixed number of
784         iterations.
785         * scripts/bench.pl: Don't expect iterations in parameters.
786
787 2013-04-29  Roland McGrath  <roland@hack.frob.com>
788
789         * io/fchdir.c (__fchdir): Renamed from fchdir.
790         (fchdir): Define as weak alias.
791
792 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
793
794         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
795         (ERRNO_EDOM): Likewise.
796         (ERRNO_ERANGE): Likewise.
797         (noErrnoTests): New variable.
798         (init_max_error): Set errno to 0.
799         (test_single_errno): New function.
800         (test_errno): Likewise.
801         (check_float_internal): Call test_errno.  Set errno to 0.
802         (check_complex): Refer to errno tests in comment.
803         (check_int): Call test_errno.  Set errno to 0.
804         (check_long): Likewise.
805         (check_bool): Likewise.
806         (check_longlong): Likewise.
807         (cos_test): Use ERRNO_* flags for errno tests instead of
808         check_int.
809         (expm1_test): Likewise.
810         (fmod_test): Likewise.
811         (ilogb_test): Likewise.
812         (lgamma_test): Likewise.
813         (pow_test): Likewise.
814         (remainder_test): Likewise.
815         (sin_test): Likewise.
816         (tan_test): Likewise.
817         (yn_test): Likewise.
818         (initialize): Set errno to 0.
819         (main): Print number of errno tests.
820         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
821
822 2013-04-29  Andreas Jaeger  <aj@suse.de>
823
824         [BZ #15084]
825         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
826         and RES_USEVC.
827
828         [BZ #15085]
829         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
830         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
831         unimplemented.
832
833         [BZ #15380]
834         * stdlib/random.c (__initstate): Return NULL if
835         __initstate fails.
836
837         [BZ #15086]
838         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
839         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
840         RES_SNGLKUPREOP.
841
842 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
843
844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
845
846 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
847
848         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
849         of individual tests.
850         (casin_test): Likewise.
851         (casinh_test): Likewise.
852
853 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
854
855         [BZ #15409]
856         * math/s_catan.c (__catan): Handle arguments with large real or
857         imaginary part separately without squaring.
858         * math/s_catanf.c (__catanf): Likewise.
859         * math/s_catanh.c (__catanh): Likewise.
860         * math/s_catanhf.c (__catanhf): Likewise.
861         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
862         and redefine.
863         (__catanhl): Handle arguments with large real or imaginary part
864         separately without squaring.
865         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
866         and redefine.
867         (__catanl): Handle arguments with large real or imaginary part
868         separately without squaring.
869         * math/libm-test.inc (catan_test): Add more tests.
870         (catanh_test): Likewise.
871         * sysdeps/i386/fpu/libm-test-ulps: Update.
872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
873
874 2013-04-27  Andreas Jaeger  <aj@suse.de>
875
876         [BZ #15007]
877         * stdlib/stdlib.h: Update guards for qecvt.
878         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
879         <stdlib.h>.
880
881 2013-04-27  Allan McRae  <allan@archlinux.org>
882
883         * sysdeps/i386/fpu/libm-test-ulps: Update.
884
885 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
886
887         [BZ #15406]
888         * math/s_catan.c: Include <float.h>.
889         (__catan): Ensure underflow exception occurs for underflowed
890         result.
891         * math/s_catanf.c: Include <float.h>.
892         (__catanf): Ensure underflow exception occurs for underflowed
893         result.
894         * math/s_catanh.c: Include <float.h>.
895         (__catanh): Ensure underflow exception occurs for underflowed
896         result.
897         * math/s_catanhf.c: Include <float.h>.
898         (__catanhf): Ensure underflow exception occurs for underflowed
899         result.
900         * math/s_catanhl.c: Include <float.h>.
901         (__catanhl): Ensure underflow exception occurs for underflowed
902         result.
903         * math/s_catanl.c: Include <float.h>.
904         (__catanl): Ensure underflow exception occurs for underflowed
905         result.
906         * math/libm-test.inc (catan_test): Add more tests.
907         (catanh_test): Likewise.
908
909         [BZ #15405]
910         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
911         underflowed result.
912         * math/s_ccoshf.c (__ccoshf): Likewise.
913         * math/s_ccoshl.c (__ccoshl): Likewise.
914         * math/s_csin.c (__csin): Likewise.
915         * math/s_csinf.c (__csinf): Likewise.
916         * math/s_csinh.c (__csinh): Likewise.
917         * math/s_csinhf.c (__csinhf): Likewise.
918         * math/s_csinhl.c (__csinhl): Likewise.
919         * math/s_csinl.c (__csinl): Likewise.
920         * math/libm-test.inc (ccos_test): Add more tests.
921         (ccosh_test): Likewise.
922         (csin_test): Likewise.
923         (csinh_test): Likewise.
924
925 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
926
927         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
928         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
929         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
930         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
931         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
932         powerpc/power5+/fpu folders.
933         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
934
935
936 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
937
938         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
939
940 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
941
942         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
943         additions to variable.
944         [$(config-machine) = x86_64] (modules-names): Likewise.
945         ($(objpfx)tst-audit3): Remove dependency.
946         ($(objpfx)tst-audit3.out): Likewise.
947         ($(objpfx)tst-audit4): Likewise.
948         ($(objpfx)tst-audit4.out): Likewise.
949         ($(objpfx)tst-audit5): Likewise.
950         ($(objpfx)tst-audit5.out): Likewise.
951         ($(objpfx)tst-audit6): Likewise.
952         ($(objpfx)tst-audit6.out): Likewise.
953         ($(objpfx)tst-audit7): Likewise.
954         ($(objpfx)tst-audit7.out): Likewise.
955         (tst-audit3-ENV): Remove variable.
956         (tst-audit4-ENV): Likewise.
957         (tst-audit5-ENV): Likewise.
958         (tst-audit6-ENV): Likewise.
959         (tst-audit7-ENV): Likewise.
960         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
961         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
962         addition to variable.
963         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
964         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
965         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
966         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
967         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
968         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
969         tst-audit3, tst-audit4 and tst-audit5.
970         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
971         tst-audit6 and tst-audit7.
972         [$(subdir) = elf] (modules-names): Add audit modules for those
973         tests.
974         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
975         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
976         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
977         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
978         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
979         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
980         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
981         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
982         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
983         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
984         [$(subdir) = elf] (tst-audit3-ENV): New variable.
985         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
986         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
987         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
988         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
989         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
990         Likewise.
991         [$(subdir) = elf && $(config-cflags-avx) = yes]
992         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
993         [$(subdir) = elf && $(config-cflags-avx) = yes]
994         (CFLAGS-tst-auditmod4a.c): Likewise.
995         [$(subdir) = elf && $(config-cflags-avx) = yes]
996         (CFLAGS-tst-auditmod4b.c): Likewise.
997         [$(subdir) = elf && $(config-cflags-avx) = yes]
998         (CFLAGS-tst-auditmod6b.c): Likewise.
999         [$(subdir) = elf && $(config-cflags-avx) = yes]
1000         (CFLAGS-tst-auditmod6c.c): Likewise.
1001         [$(subdir) = elf && $(config-cflags-avx) = yes]
1002         (CFLAGS-tst-auditmod7b.c): Likewise.
1003         * elf/tst-audit3.c: Move to ...
1004         * sysdeps/x86_64/tst-audit3.c: ... here.
1005         * elf/tst-audit4.c: Move to ...
1006         * sysdeps/x86_64/tst-audit4.c: ... here.
1007         * elf/tst-audit5.c: Move to ...
1008         * sysdeps/x86_64/tst-audit5.c: ... here.
1009         * elf/tst-audit6.c: Move to ...
1010         * sysdeps/x86_64/tst-audit6.c: ... here.
1011         * elf/tst-audit7.c: Move to ...
1012         * sysdeps/x86_64/tst-audit7.c: ... here.
1013         * elf/tst-auditmod3a.c: Move to ...
1014         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1015         * elf/tst-auditmod3b.c: Move to ...
1016         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1017         * elf/tst-auditmod4a.c: Move to ...
1018         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1019         * elf/tst-auditmod4b.c: Move to ...
1020         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1021         * elf/tst-auditmod5a.c: Move to ...
1022         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1023         * elf/tst-auditmod5b.c: Move to ...
1024         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1025         * elf/tst-auditmod6a.c: Move to ...
1026         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1027         * elf/tst-auditmod6b.c: Move to ...
1028         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1029         * elf/tst-auditmod6c.c: Move to ...
1030         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1031         * elf/tst-auditmod7a.c: Move to ...
1032         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1033         * elf/tst-auditmod7b.c: Move to ...
1034         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1035
1036 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1037
1038         [BZ #15366]
1039         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1040         define unconditionally.
1041         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1042         define unconditionally.
1043         (INT8_C, INT16_C, etc.): Likewise.
1044
1045 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1046
1047         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1048         __ehdr_start with hidden visibility.
1049
1050         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1051
1052 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1053
1054         * math/libm-test.inc (cos_test): Use accurate hex constants.
1055         (sincost_test): Likewise.
1056
1057 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1058
1059         * math/libm-test.inc (catan_test): Add more tests.
1060         (catanh_test): Likewise.
1061
1062         * math/s_catanf.c (__catanf): Use suffixed floating-point
1063         constants.
1064         * math/s_catanhf.c (__catanhf): Likewise.
1065         * math/s_catanhl.c (__catanhl): Likewise.
1066         * math/s_catanl.c (__catanl): Likewise.
1067
1068         [BZ #15394]
1069         * math/s_catan.c (__catan): Calculate imaginary part of result
1070         with log1p not log unless computing log of number close to 0.
1071         * math/s_catanf.c (__catanf): Likewise.
1072         * math/s_catanl.c (__catanl): Likewise.
1073         * math/s_catanh.c (__catanh): Calculate real part of result with
1074         log1p not log unless computing log of number close to 0.
1075         * math/s_catanhf.c (__catanhf): Likewise.
1076         * math/s_catanhl.c (__catanhl): Likewise.
1077         * math/libm-test.inc (catan_test): Add more tests.
1078         (catanh_test): Likewise.
1079         * sysdeps/i386/fpu/libm-test-ulps: Update.
1080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1081
1082 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1083
1084         * benchtests/Makefile: Mention files in which fast and slow
1085         paths of math functions are implemented.
1086
1087 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1088
1089         * sysdeps/posix/timespec_get.c: New file.
1090
1091 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1092
1093         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1094         POWER.
1095         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1096         for POWER.
1097         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1098         powerpc/power5/fpu folders.
1099         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1100         * benchtests/Makefile: Add modf testcase.
1101         * benchtests/bench-modf.c: New file: Benchmark test for mo
1102
1103 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1104
1105         [BZ #14888]
1106         * time/Makefile (tests): Add tst-strptime-whitespace.
1107         * time/strptime_l.c (get_number): Use ISSPACE.
1108         (__strptime_internal): Likewise.
1109         * time/tst-strptime-whitespace.c: New test case.
1110
1111 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1112
1113         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1114         member.
1115         (_nss_files_init): Set it here.
1116
1117 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1118
1119         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1120         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1121         unsigned.
1122
1123 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1124
1125         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1126
1127 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1128
1129         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1130         size just once.
1131
1132 2013-04-21  David S. Miller  <davem@davemloft.net>
1133
1134         * po/ru.po: Update Russion translation from translation project.
1135
1136 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1137
1138         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1139         and setfsgid.
1140
1141 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1142
1143         * configure.in: Remove i386 configure warning. Remove i386 case.
1144         * configure: Regenerate.
1145         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1146         Add example to error message.
1147         * sysdeps/i386/configure: Regenerate.
1148
1149 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1150
1151         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1152         slowtan.
1153         * benchtests/cos-inputs: New file.
1154         * benchtests/slowcos-inputs: New file.
1155         * benchtests/slowcos.c: New file.
1156         * benchtests/slowtan-inputs: New file.
1157         * benchtests/slowtan.c: New file.
1158         * benchtests/tan-inputs: New file.
1159
1160 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1161
1162         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1163         considered kosher.
1164
1165 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1166
1167         * benchtests/Makefile: Include cppflags-iterator.mk to add
1168         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1169
1170         * Makefile.in (bench-clean): New target.
1171         * benchtests/Makefile (bench-clean): Likewise.
1172
1173 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1174
1175         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1176
1177 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1178
1179         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1180
1181 2013-04-15  Andreas Schwab  <schwab@suse.de>
1182
1183         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1184         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1185         * nscd/pwdcache.c (cache_addpw): Likewise.
1186         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1187         more than recsize.
1188
1189 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1190
1191         * benchtests/Makefile (bench): Write all output to
1192         bench-out.tmp together.
1193
1194 2013-04-15  Andreas Schwab  <schwab@suse.de>
1195
1196         * nscd/nscd.c (main): Don't fork again after closing files.
1197
1198 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1199
1200         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1201
1202         * benchtests/Rules (bench-deps): Collect dependencies into a
1203         single variable.  Add Makefile to dependencies.
1204         ($(objpfx)bench-%.c): Depend on bench-deps.
1205
1206 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1207             Xavier Roche  <roche+kml2@exalead.com>
1208
1209         [BZ #15361]
1210         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1211         just that it's a file descriptor.
1212         * manual/llio.texi (Synchronizing AIO Operations): Update description
1213         for EBADF error from aio_fsync.
1214
1215 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1216
1217         * Rules (bench): Move target definition...
1218         * benchtests/Makefile: ... here.
1219
1220 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1221
1222         * math/libm-test.inc (cos_test): Fix PI/2 test.
1223         (sincos_test): Likewise.
1224         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1225         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1226
1227 2013-04-11  Andreas Schwab  <schwab@suse.de>
1228
1229         [BZ #13988]
1230         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1231         accept exponent character only when digits were seen.
1232         * stdio-common/Makefile (tests): Add bug26.
1233         * stdio-common/bug26.c: New file.
1234
1235         [BZ #14293]
1236         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1237         non-freeable.
1238
1239 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1240
1241         * Makeconfig (rtld-prefix): Define built linker prefix.
1242         * Rules (run-bench): Use it.
1243         * math/Makefile (run-regen-ulps): Likewise.
1244
1245         * Rules (bench): Remove eval.
1246
1247 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1248             Roland McGrath  <roland@hack.frob.com>
1249             Ondrej Bilka  <neleai@seznam.cz>
1250
1251         [BZ #15346]
1252         * time/getdate.c: Include ctype.h and alloca.h.
1253         (__getdate_r): Trim leading and trailing spaces of input.
1254         * time/tst-getdate.c (tests): Add tests with leading and
1255         trailing spaces.
1256
1257 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1258
1259         [BZ #14280]
1260         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1261         when computing value.
1262
1263 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1264
1265         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1266         Use testrun.sh to run libm tests.
1267
1268         [BZ #15309]
1269         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1270
1271 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1272
1273         [BZ #15264]
1274         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1275
1276 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1277
1278         * Makefile.in (regen-ulps): New target.
1279         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1280         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1281         [ifneq (no,$(PERL)] (regen-ulps): New target.
1282         [ifeq (no,$(PERL)] (regen-ulps): New target.
1283         * math/libm-test.inc (ulps_file_name): Define.
1284         (output_dir): New variable.
1285         (options): Add "output-dir" option.
1286         (parse_opt): Handle 'o' case.
1287         (main): If output_dir is non-NULL use it as a prefix
1288         otherwise use "".
1289         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1290
1291 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1292
1293         [BZ #10060, #10062]
1294         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1295         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1296         fail configure if __sync_val_compare_and_swap is not inlined.
1297         * sysdeps/i386/configure: Regenerate.
1298         * configure.in: Build for i686 when configured for i386.
1299         * configure: Regenerate.
1300         * README: Remove i386 reference.
1301
1302 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1303
1304         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1305         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1306
1307 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1308
1309         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1310         (lmsnanval): New variables.
1311         (F): Add conversion tests.
1312         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1313         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1314
1315         * stdio-common/tstdiomisc.c (F): Properly collect individual
1316         tests' results.
1317
1318         [BZ #14686, #15336]
1319         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1320         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1321         Instead, use input NaN values or generate a qNaN by arithmetic
1322         operation.  Also fix bugs to comply with the standard.
1323         * math/libm-test.inc (remainder_test): Add more tests.
1324
1325         [BZ #15335, #15342]
1326         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1327         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1328         input NaN values or generate a qNaN by arithmetic operation.
1329
1330         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1331         unreachable code.
1332
1333         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1334         definitions.
1335
1336 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1337
1338         [BZ #14478]
1339         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1340         underflowed result.
1341         * math/s_cexpf.c (__cexpf): Likewise.
1342         * math/s_cexpl.c (__cexpl): Likewise.
1343         * math/libm-test.inc (cexp_test): Add more tests.
1344
1345 2013-04-03  Andreas Schwab  <schwab@suse.de>
1346
1347         [BZ #15330]
1348         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1349         order arrays from heap if bigger than alloca cutoff.
1350
1351 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1352
1353         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1354         (SNAN_TESTS_double): Refer to GCC PR56831.
1355         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1356         GCC PR56828.
1357
1358 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1359
1360         * Rules (bench): Move bench.out after the run is complete.
1361
1362         * Rules (bench): Echo currently running benchmark.
1363
1364         * benchtests/Makefile (bench): Add atan and slowatan.
1365         * benchtests/atan-inputs: New file.
1366         * benchtests/slowatan-inputs: New file.
1367         * benchtests/slowatan.c: New file.
1368
1369         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1370         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1371         its value.
1372
1373         [BZ #15305]
1374         * sysdeps/unix/sysv/linux/kernel-features.h
1375         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1376         __ASSUME_XFS_RESTRICTED_CHOWN.
1377         * sysdeps/unix/sysv/linux/pathconf.c
1378         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1379         Save and restore errno.
1380
1381 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1382
1383         [BZ #15327]
1384         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1385         arguments using __kernel_casinh.
1386         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1387         arguments using __kernel_casinhf.
1388         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1389         arguments using __kernel_casinhl.
1390         * math/libm-test.inc (cacosh_test): Add more tests.
1391         * sysdeps/i386/fpu/libm-test-ulps: Update.
1392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1393
1394 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1395
1396         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1397         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1398
1399         * bench/Makefile (bench): Add sin and slowsin.
1400         * benchtests/sin-inputs: New file.
1401         * benchtests/slowsin-inputs: New file.
1402         * benchtests/slowsin.c: New file.
1403
1404         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1405         (bench): Add slowexp and slowpow.
1406         (exp-ITER): Increase iterations.
1407         (pow-ITER): Likewise.
1408         * benchtests/exp-inputs: Change input.
1409         * benchtests/pow-inputs: Likewise.
1410         * benchtests/slowexp-inputs: New file.
1411         * benchtests/slowexp.c: New file.
1412         * benchtests/slowpow-inputs: New file.
1413         * benchtests/slowpow.c: New file.
1414
1415 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1416
1417         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1418         instructions.
1419         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1420         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1421         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1422         * benchtests/Makefile: Add rint benchtest.
1423         * benchtests/rint-inputs: Input for rint benchtest.
1424
1425 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1426
1427         * Versions.def (libm): Add GLIBC_2.18.
1428         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1429         hidden libm prototypes.
1430         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1431         * math/Makefile (libm-calls): Add s_issignaling.
1432         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1433         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1434         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1435         declaration.
1436         * math/math.h [__USE_GNU] (issignaling): New macro.
1437         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1438         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1439         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1440         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1441         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1442         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1443         * manual/arith.texi (issignaling): New section.
1444         * manual/libm-err-tab.pl (@all_functions): Update comment.
1445         * math/gen-libm-test.pl (parse_args): Apply special handling for
1446         issignaling.
1447         * math/libm-test.inc (print_float, issignaling_test): New
1448         functions.
1449         (check_float_internal): Add issignaling checks.
1450         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1451         default definition.
1452         * sysdeps/powerpc/math-tests.h: New file.
1453         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1454         tests.
1455         * math/test-snan.c (TEST_FUNC): Likewise.
1456
1457 2013-03-30  David S. Miller  <davem@davemloft.net>
1458
1459         * po/de.po: Update from translation team.
1460
1461 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1462
1463         [BZ #10357]
1464         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1465         imaginary part less than 1.0 and real part less than 0.5
1466         specially.
1467         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1468         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1469         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1470         (cacos_test): Add more tests.
1471         (casin_test): Likewise.
1472         (casinh_test): Likewise.
1473         * sysdeps/i386/fpu/libm-test-ulps: Update.
1474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1475
1476 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1477
1478         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1479         ONE with its value.
1480
1481         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1482         (__pow_mp): Replace ONE and MONE with their values.
1483         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1484         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1485         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1486         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1487         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1488         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1489
1490         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1491
1492         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1493         (__pow_mp): Replace ZERO and MZERO with their values.
1494         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1495         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1496         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1497         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1498         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1499         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1500         (__sqr): Likewise.
1501
1502         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1503
1504         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1505
1506 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1507
1508         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1509         Declare with __attribute__ ((weak)).
1510         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1511         Call __call_tls_dtors only if it's not NULL.
1512
1513 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1514
1515         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1516         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1517         magic __ehdr_start linker symbol if it's defined.
1518         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1519         them up here if it was already done.
1520
1521         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1522         (_dl_aux_init): Use const in cast when setting it.
1523         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1524         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1525         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1526
1527         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1528         Declare them here.
1529         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1530         * csu/libc-tls.c: Nor here.
1531         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1532
1533         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1534         (__libc_message): Never call vsyslog.
1535
1536 2013-03-28  Alan Modra  <amodra@gmail.com>
1537
1538         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1539         Define as empty.
1540         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1541         Likewise.
1542
1543 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1544
1545         [BZ #15214]
1546         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1547         underflow.
1548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1549
1550 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1551
1552         [BZ #15304]
1553         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1554         Don't add gid passed as argument.
1555
1556         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1557
1558 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1559
1560         [BZ #15307]
1561         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1562         imaginary part between 1.0 and 1.5 and real part less than 0.5
1563         specially.
1564         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1565         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1566         * math/libm-test.inc (cacos_test): Add more tests.
1567         (casin_test): Likewise.
1568         (casinh_test): Likewise.
1569         * sysdeps/i386/fpu/libm-test-ulps: Update.
1570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1571
1572 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1573
1574         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1575         constants.
1576         (norm): Likewise.
1577         (denorm): Likewise.
1578         (__dbl_mp): Likewise.
1579         (add_magnitudes): Likewise.
1580         (sub_magnitudes): Likewise.
1581         (__add): Likewise.
1582         (__sub): Likewise.
1583         (__mul): Likewise.
1584         (__sqr): Likewise.
1585         (__inv): Likewise.
1586         (__dvd): Likewise.
1587
1588         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1589         commented code.
1590         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1591         (__dubcos): Likewise.
1592         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1593         (__ieee754_acos): Likewise.
1594         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1595         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1596         (__exp1): Likewise.
1597         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1598         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1599         (log1): Likewise.
1600         (my_log2): Likewise.
1601         (checkint): Likewise.
1602         * sysdeps/ieee754/dbl-64/e_remainder.c
1603         (__ieee754_remainder): Likewise.
1604         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1605         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1606         (bsloww): Likewise.
1607         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1608
1609         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1610         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1611         MANTISSA_STORE_T to store computations on mantissa.  Use
1612         macros for rounding and division.
1613         (denorm): Likewise.
1614         (__dbl_mp): Likewise.
1615         (add_magnitudes): Likewise.
1616         (sub_magnitudes): Likewise.
1617         (__mul): Likewise.
1618         (__sqr): Likewise.
1619         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1620         powers of two in terms of TWOPOW macro.
1621         (mp_no): Make type of mantissa as MANTISSA_T.
1622         [!RADIXI]: Define RADIXI.
1623         [!TWO52]: Define TWO52.
1624         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1625
1626 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1627
1628         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1629         llroundl symbol when building for PPC32.
1630
1631 2013-03-24  Mark H Weaver  <mhw@netris.org>
1632
1633         * manual/arith.texi (Normalization Functions): Fix prototypes for
1634         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1635
1636 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1637
1638         [BZ #13889]
1639         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1640         high value to check if expl overflow.
1641         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1642         to check for underflow and overflow.
1643         * math/libm-test.inc: Add exp test.
1644
1645 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1646
1647         [BZ #11120]
1648         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1649         with NOT_IN_libc.
1650
1651 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1652
1653         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1654         symbol.
1655
1656 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1657
1658         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1659         wrap blocks consisting of several statements.
1660
1661         * sysdeps/generic/math-tests.h: New file.
1662         * sysdeps/i386/fpu/math-tests.h: Likewise.
1663         * math/test-snan.c: Include it.
1664         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1665
1666 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1667
1668         [BZ #15285]
1669         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1670         (__ieee754_j0l): Do not improve calculations using cos of twice
1671         input for inputs above LDBL_MAX / 2.0L.
1672         (__ieee754_y0l): Likewise.
1673         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1674         (__ieee754_j1l): Do not improve calculations using cos of twice
1675         input for inputs above LDBL_MAX / 2.0L.
1676         (__ieee754_y1l): Likewise.
1677         * math/libm-test.inc (j0_test): Add another test.
1678         (j1_test): Likewise.
1679         (y0_test): Likewise.
1680         (y1_test): Likewise.
1681         * sysdeps/i386/fpu/libm-test-ulps: Update.
1682
1683 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1684
1685         * Rules ($(objpfx)bench-%.c): Include code from a C source
1686         file.
1687
1688 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1689
1690         [BZ #15287]
1691         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1692         imaginary part 1.0 and real part less than 0.5 specially.
1693         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1694         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1695         * math/libm-test.inc (cacos_test): Add more tests.
1696         (casin_test): Likewise.
1697         (casinh_test): Likewise.
1698         * sysdeps/i386/fpu/libm-test-ulps: Update.
1699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1700
1701 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1702
1703         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1704         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1705
1706 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1709         * config.make.in (config-cflags-sse4): Remove variable.
1710         (config-cflags-avx): Likewise.
1711         (config-cflags-sse2avx): Likewise.
1712         (config-cflags-novzeroupper): Likewise.
1713         (config-asflags-i686): Likewise.
1714         (have-mfma4): Likewise.
1715         (have-as-vis3): Likewise.
1716         (MIG): Likewise.
1717         * configure.in (MIG): Do not AC_SUBST.
1718         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1719         (libc_cv_cc_sse4): Do not AC_SUBST.
1720         (libc_cv_cc_avx): Likewise.
1721         (libc_cv_cc_sse2avx): Likewise.
1722         (libc_cv_cc_novzeroupper): Likewise.
1723         (libc_cv_cc_fma4): Likewise.
1724         (libc_cv_as_i686): Likewise.
1725         (libc_cv_sparc_as_vis3): Likewise.
1726         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1727         LIBC_CONFIG_VAR.
1728         (config-asflags-i686): Likewise.
1729         (config-cflags-avx): Likewise.
1730         (config-cflags-sse2avx): Likewise.
1731         (have-mfma4): Likewise.
1732         (config-cflags-novzeroupper): Likewise.
1733         * sysdeps/mach/configure.in (MIG): Likewise.
1734         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1735         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1736         LIBC_CONFIG_VAR.
1737         (config-cflags-avx): Likewise.
1738         (config-cflags-sse2avx): Likewise.
1739         (have-mfma4): Likewise.
1740         (config-cflags-novzeroupper): Likewise.
1741         * configure: Regenerated.
1742         * sysdeps/i386/configure: Likewise.
1743         * sysdeps/mach/configure: Likewise.
1744         * sysdeps/sparc/configure: Likewise.
1745         * sysdeps/x86_64/configure: Likewise.
1746
1747 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1748
1749         [BZ #14812]
1750         * locale/programs/localedef.c (options): Put N_ translation marker
1751         on argument names, not just descriptions.
1752
1753 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1754
1755         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1756
1757 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1758
1759         [BZ #14176]
1760         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1761
1762 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1763
1764         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1765         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1766         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1767         [!BEFORE_ABORT] (before_abort): New function.
1768         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1769         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1770         (writev_for_fatal): New function.
1771         (WRITEV_FOR_FATAL): New macro; call that.
1772         (backtrace_and_maps): New function.
1773         (BEFORE_ABORT): New macro; call that.
1774         (struct str_list): Type removed.
1775         (__libc_message, __libc_fatal): Functions removed.
1776         Include <sysdeps/posix/libc_fatal.c> instead.
1777
1778 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1779
1780         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1781         constants.
1782         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1783         double constants.
1784
1785 2013-03-19  Andreas Schwab  <schwab@suse.de>
1786
1787         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1788         * sysdeps/gnu/configure: Regenerate.
1789
1790         * configure.in: Substitute libc_cv_rtlddir.
1791         * configure: Regenerate.
1792         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1793         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1794         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1795         * elf/Makefile (install-others, CFLAGS-interp.c)
1796         (ldso_install, common-ldd-rewrite): Likewise.
1797         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1798         $(inst_slibdir)/$(rtld-installed-name).
1799         * scripts/rellns-sh: Add -p option.
1800         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1801         for source.
1802
1803 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1804
1805         * manual/nptl.texi: Renamed to ...
1806         * manual/threads.texi: ... this.
1807         * manual/Makefile (chapters): Update.
1808
1809 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1810
1811         [BZ #14812]
1812         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1813         on argument names, not just descriptions.
1814         * malloc/memusagestat.c (options): Likewise.
1815         * nss/getent.c (options): Likewise.
1816
1817 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1818
1819         [BZ #14812]
1820         * iconv/iconv_prog.c (options): Put N_ translation marker
1821         on argument names, not just descriptions.
1822         * iconv/iconvconfig.c (options): Likewise.
1823
1824 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1825
1826         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1827         implementation which is faster on all x86_64 architectures.
1828         Tested on AMD, Intel Nehalem, SNB, IVB.
1829         * sysdeps/x86_64/strnlen.S: Likewise.
1830
1831         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1832         Remove all multiarch strlen and strnlen versions.
1833         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1834         Remove strlen and strnlen related parts.
1835
1836         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1837         Inline strlen part.
1838         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1839
1840         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1841         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1842         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1843         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1844         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1845         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1846
1847 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1848
1849         * manual/memory.texi (Malloc Tunable Parameters):
1850         Sort parameters alphabetically. Add comments for missing entries.
1851
1852 2013-03-17  David S. Miller  <davem@davemloft.net>
1853
1854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1855
1856 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1857
1858         [BZ #15283]
1859         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1860         for arguments at most half maximum finite value.
1861         * math/libm-test.inc (j0_test): Add more tests.
1862         (j1_test): Likewise.
1863         (y0_test): Likewise.
1864         (y1_test): Likewise.
1865         * sysdeps/i386/fpu/libm-test-ulps: Update.
1866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1867
1868         [BZ #14155]
1869         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1870         1 / x and functions P and Q for arguments above 0x1p256L.
1871         (__ieee754_y0l): Likewise.
1872         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1873         (__ieee754_y1l): Likewise.
1874         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1875         (j1_test): Likewise.
1876         (y0_test): Likewise.
1877         (y1_test): Likewise.
1878
1879 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1880
1881         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1882         variable.
1883
1884 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1885
1886         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1887         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1888         zero since it's initialized to EXEC_PAGESIZE.
1889
1890         * sysdeps/unix/sysv/linux/ldsodefs.h
1891         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1892         * sysdeps/generic/ldsodefs.h: ... here.
1893
1894 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1895
1896         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1897
1898         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1899         math/test-snan.c.
1900         * math/test-snan.c: Renamed from
1901         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1902         * math/Makefile (tests): Add test-snan.
1903         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1904         test-powerpc-snan.
1905
1906         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1907         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1908         functions.
1909         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1910         __builtin_nan family of functions.
1911         * math/libm-test.inc (initialize): Initialize qnan_value with
1912         __builtin_nan family of functions.
1913         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1914         Remove variables.
1915         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1916         Remove functions.
1917         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1918         storage class.  Initialize qNaN_var and sNaN_var with
1919         __builtin_nan and __builtin_nans families of functions,
1920         respectively.
1921
1922         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1923         (sqrt_test): Remove duplicate test with qNaN input.
1924         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1925         (round_test, signbit_test, significand_test): Note missing +/-Inf
1926         as well as qNaN tests.
1927
1928         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1929         qNaN_var.  Fix a few strings, too.
1930         * math/libm-test.inc (nan_value): Rename to qnan_value.
1931         * math/gen-libm-test.pl (%beautify): Adjust to that.
1932         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1933         * math/test-misc.c (main): Likewise.
1934         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1935         to __qnan_bytes, and __qnan_union, respectively.
1936         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1937         Likewise.
1938         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1939         and lqnanval, respectively.
1940         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1941         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1942         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1943         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1944
1945         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1946         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1947         doubles.
1948
1949         * math/test-misc.c (main): Fix copy'n'pastos.
1950         * misc/tst-efgcvt.c (special): Likewise.
1951
1952         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1953         Remove declarations.
1954
1955 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1956
1957         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1958         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1959         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1960         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1961
1962 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1963
1964         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1965         macro to return vdso values correctly in IFUNC implementations.
1966         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1967         Optimization by using IFUNC.
1968
1969 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1970             Richard Henderson  <rth@redhat.com>
1971             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1972
1973         * Makefile.in (bench): New target.
1974         * NEWS: Mention the benchmark framework.
1975         * Rules (bench): Likewise.
1976         (binaries-bench): Generate binaries for functions to
1977         benchmark.
1978         * benchtests/Makefile: New makefile for benchmark tests.
1979         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1980         programs.
1981         * benchtests/exp-inputs: New input file for EXP function.
1982         * benchtests/pow-inputs: New input file for POW function.
1983         * scripts/bench.pl: New script to generate source files for
1984         benchmark programs.
1985
1986 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1987
1988         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1989         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
1990         computations on mantissa.  Use macros for rounding and
1991         division.
1992         (denorm): Likewise.
1993         (__dbl_mp): Likewise.
1994         (add_magnitudes): Likewise.
1995         (sub_magnitudes): Likewise.
1996         (__mul): Likewise.
1997         (__sqr): Likewise.
1998         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1999         powers of two in terms of TWOPOW macro.
2000         (mp_no): Make type of mantissa as MANTISSA_T.
2001         [!RADIXI]: Define RADIXI.
2002         [!TWO52]: Define TWO52.
2003         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2004
2005         * manual/nptl.texi (cindex): Modify threads to pthreads.
2006
2007 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * sysdeps/x86_64/preconfigure: Regenerated.
2010
2011 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2012
2013         [BZ #14155]
2014         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2015         0x1p28 and above.
2016         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2017         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2018         0x1p28 and above.
2019         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2020         * math/libm-test.inc (j0_test): Do not allow one spurious
2021         underflow exception.
2022         (y1_test): Likewise.
2023
2024 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2025
2026         * manual/Makefile (chapters): Add nptl.
2027         * manual/debug.texi (Debugging Support): Add link to Threads
2028         chapter.
2029         * manual/nptl.texi: New file.
2030
2031         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2032
2033 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2034
2035         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2036         for non-NULL pointer before the memory validity test. Pointed
2037         out by Holger Brunck <holger.brunck@keymile.com>.
2038
2039 2013-03-13  Andreas Schwab  <schwab@suse.de>
2040
2041         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2042         instead of .os.
2043
2044 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2045
2046         * timezone/zic.c: Update from tzcode 2013b.
2047
2048 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2049
2050         * manual/install.texi (Configuring and compiling):
2051         Mention i686 and i586.
2052         * INSTALL: Regenerate.
2053
2054 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2055
2056         * sysdeps/init_array/elf-init.c: New file.
2057         * csu/elf-init.c
2058         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2059         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2060
2061         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2062         __gmon_start__ as global, but as static with a .preinit_array pointer.
2063         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2064         * sysdeps/init_array/crti.S: New file, empty except for comments.
2065         * sysdeps/init_array/crtn.S: Likewise.
2066
2067 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2068
2069         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2070         definining bcopy.
2071         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2072         Remove Prefer_SSE_for_memop.
2073         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2074         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2075         HAS_PREFER_SSE_FOR_MEMOP.
2076         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2077         memset-x86-64.
2078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2079         Remove bzero, memset ifunc support.
2080         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2081         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2082         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2083         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2084
2085 2013-03-11  Andreas Schwab  <schwab@suse.de>
2086
2087         [BZ #15234]
2088         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2089         by SHLIB_COMPAT.
2090         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2091         (GLIBC_2.16): Remove pthread_atfork.
2092
2093 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2094
2095         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2096         (ptestcases.h): Likewise.
2097
2098 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2099
2100         * Makeconfig ($(common-objpfx)config.status): Depend on
2101         sysdeps/*/preconfigure{,.in} too.
2102
2103 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2104
2105         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2106         (__free_hook): Use void * instead of __malloc_ptr_t.
2107         (__malloc_hook): Likewise.
2108         (__realloc_hook): Likewise.
2109         (__memalign_hook): Likewise.
2110         (__after_morecore_hook): Likewise.
2111         * malloc/arena.c (save_malloc_hook): Likewise.
2112         (save_free_hook): Likewise.
2113         * malloc/hooks.c (malloc_hook_ini): Likewise.
2114         (realloc_hook_ini): Likewise.
2115         (memalign_hook_ini): Likewise.
2116         * malloc/malloc.c (malloc_hook_ini): Likewise.
2117         (realloc_hook_ini): Likewise.
2118         (memalign_hook_ini): Likewise.
2119         (__free_hook): Likewise.
2120         (__malloc_hook): Likewise.
2121         (__realloc_hook): Likewise.
2122         (__memalign_hook): Likewise.
2123         (__libc_malloc): Likewise.
2124         (__libc_free): Likewise.
2125         (__libc_realloc): Likewise.
2126         (__libc_memalign): Likewise.
2127         (__libc_valloc): Likewise.
2128         (__libc_pvalloc): Likewise.
2129         (__libc_calloc): Likewise.
2130         (__posix_memalign): Likewise.
2131         * malloc/morecore.c (__sbrk): Likewise.
2132         (__default_morecore): Likewise.
2133
2134         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2135
2136         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2137         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2138         __malloc_ptrdiff_t.
2139
2140         * malloc/malloc.h (__malloc_size_t): Remove macro.
2141         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2142         __malloc_size_t.
2143         (old_memalign_hook): Likewise.
2144         (old_realloc_hook): Likewise.
2145         (struct hdr): Likewise.
2146         (flood): Likewise.
2147         (mallochook): Likewise.
2148         (memalignhook): Likewise.
2149         (reallochook): Likewise.
2150         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2151         (tr_old_realloc_hook): Likewise.
2152         (tr_old_memalign_hook): Likewise.
2153         (tr_mallochook): Likewise.
2154         (tr_reallochook): Likewise.
2155         (tr_memalignhook): Likewise.
2156
2157 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2158
2159         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2160         default_ldbl_pack and using as default implementation.
2161         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2162         implementation.
2163         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2164         redundant definition.
2165         (ldbl_insert_mantissa): Likewise.
2166         (ldbl_canonicalize): Likewise.
2167         (ldbl_nearbyint): Likewise.
2168         (ldbl_pack): Rename to ldbl_pack_ppc.
2169         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2170         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2171         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2172
2173 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2174
2175         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2176         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2177         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2178         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2179         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2180         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2181         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2182         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2183
2184 2013-03-07  Andreas Jaeger  <aj@suse.de>
2185
2186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2187         bits/mman-linux.h.
2188
2189 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2190
2191         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2192         Include mpa.h and declare __MPEXP.
2193         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2194         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2195         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2197         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2198         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2199         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2200
2201         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2202         (__slowpow): Use long double EXPL and LOGL functions to
2203         compute POW.
2204         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2205         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2206         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2207         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2208         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2209         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2210
2211         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2212         intermediate variable to calculate exponent.
2213         (__sqr): Likewise.
2214         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2215         Likewise.
2216         (__sqr): Likewise.
2217
2218         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2219         [!NO__SQR]: Define __sqr.
2220         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2221         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2222         sysdeps/ieee754/dbl-64/mpa.c.
2223         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2224
2225         [BZ #12723]
2226         * posix/Makefile (tests): Add tst-pathconf.
2227         * posix/tst-pathconf.c: New test case.
2228         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2229         _PC_PIPE_BUF.
2230         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2231
2232 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2233
2234         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2235
2236 2013-03-06  Andreas Jaeger  <aj@suse.de>
2237
2238         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2239         definition via __MAP_ANONYMOUS.
2240
2241         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2242         it's not part of Linux headers.
2243
2244         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2245         (MAP_HUGE_MASK): Define.
2246
2247         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2248         Define.
2249         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2250         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2251         Define.
2252         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2253         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2254         Define.
2255         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2256         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2257         Define.
2258         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2259
2260         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2261         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2262         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2263         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2264         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2265         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2266
2267         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2268         Handle f2fs.
2269
2270         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2271         Handle f2fs and efivarfs.
2272
2273         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2274         f2fs.
2275
2276         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2277         (EFIVARFS_MAGIC): Add.
2278         (F2FS_LINK_MAX): Add.
2279
2280 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2281
2282         * stdio-common/vfprintf.c: Replace __builtin_expect with
2283         __glibc_unlikely.
2284
2285 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2286
2287         [BZ #13550]
2288         * sysdeps/generic/bp-sym.h: Remove file.
2289         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2290         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2291         <bp-sym.h> and <bp-asm.h>.
2292         (__longjmp): Don't use BP_SYM.
2293         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2294         and <bp-asm.h>.
2295         (memcpy): Don't use BP_SYM.
2296         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2297         <bp-sym.h> and <bp-asm.h>.
2298         (memcpy): Don't use BP_SYM.
2299         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2300         <bp-asm.h>.
2301         (memcpy): Don't use BP_SYM.
2302         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2303         <bp-asm.h>.
2304         (memset): Don't use BP_SYM.
2305         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2306         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2307         (__bzero): Don't use BP_SYM.
2308         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2309         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2310         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2311         <bp-sym.h> and <bp-asm.h>.
2312         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2313         pointers.
2314         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2315         <bp-sym.h> and <bp-asm.h>.
2316         (memcpy): Don't use BP_SYM.
2317         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2318         <bp-sym.h> and <bp-asm.h>.
2319         (memset): Don't use BP_SYM.
2320         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2321         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2322         (__bzero): Don't use BP_SYM.
2323         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2324         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2325         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2326         <bp-sym.h> and <bp-asm.h>.
2327         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2328         pointers.
2329         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2330         <bp-sym.h> and <bp-asm.h>.
2331         (memcpy): Don't use BP_SYM.
2332         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2333         <bp-sym.h> and <bp-asm.h>.
2334         (memset): Don't use BP_SYM.
2335         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2336         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2337         (__bzero): Don't use BP_SYM.
2338         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2339         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2340         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2341         <bp-sym.h> and <bp-asm.h>.
2342         (__memchr): Don't use BP_SYM.
2343         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2344         <bp-sym.h> and <bp-asm.h>.
2345         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2346         pointers.
2347         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2348         <bp-sym.h> and <bp-asm.h>.
2349         (memcpy): Don't use BP_SYM.
2350         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2351         <bp-sym.h> and <bp-asm.h>.
2352         (__mempcpy): Don't use BP_SYM.
2353         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2354         <bp-sym.h> and <bp-asm.h>.
2355         (__memrchr): Don't use BP_SYM.
2356         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2357         <bp-sym.h> and <bp-asm.h>.
2358         (memset): Don't use BP_SYM.
2359         (__bzero): Likewise.
2360         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2361         <bp-sym.h> and <bp-asm.h>.
2362         (__rawmemchr): Don't use BP_SYM.
2363         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2364         <bp-sym.h> and <bp-asm.h>.
2365         (__STRCMP): Don't use BP_SYM.
2366         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2367         <bp-sym.h> and <bp-asm.h>.
2368         (strchr): Don't use BP_SYM.
2369         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2370         <bp-sym.h> and <bp-asm.h>.
2371         (__strchrnul): Don't use BP_SYM.
2372         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2373         <bp-sym.h> and <bp-asm.h>.
2374         (strlen): Don't use BP_SYM.
2375         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2376         <bp-sym.h> and <bp-asm.h>.
2377         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2378         pointers.
2379         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2380         <bp-sym.h> and <bp-asm.h>.
2381         (__strnlen): Don't use BP_SYM.
2382         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2383         <bp-sym.h> and <bp-asm.h>.
2384         (__GI__setjmp): Don't use BP_SYM.
2385         (_setjmp): Likewise.
2386         (__sigsetjmp): Likewise.
2387         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2388         (L(start_addresses)): Don't use BP_SYM.
2389         (_start): Likewise.
2390         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2391         <bp-asm.h>.
2392         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2393         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2394         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2395         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2396         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2397         <bp-asm.h>.
2398         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2399         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2400         about bounded pointers.
2401         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2402         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2403         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2404         <bp-asm.h>.
2405         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2406         about bounded pointers.  Remove GKM FIXME comments.
2407         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2408         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2409         <bp-asm.h>.
2410         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2411         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2412         Remove GKM FIXME comments.
2413         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2414         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2415         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2416         <bp-asm.h>.
2417         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2418         about bounded pointers.  Remove GKM FIXME comment.
2419         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2420         and <bp-asm.h>.
2421         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2422         pointers.
2423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2424         <bp-sym.h> and <bp-asm.h>.
2425         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2427         <bp-sym.h> and <bp-asm.h>.
2428         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2429         comment.
2430
2431 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2432
2433         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2434         call free(NULL).
2435
2436 2013-03-05  David S. Miller  <davem@davemloft.net>
2437
2438         * po/es.po: Update from translation team.
2439
2440 2013-03-05  Andreas Jaeger  <aj@suse.de>
2441
2442         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2443         <bits/mman-linux.h>.
2444         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2445         is fine.
2446         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2447         <bits/mman-linux.h> to end of file.
2448         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2449         is fine.
2450         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2451         <bits/mman-linux.h> to end of file.
2452         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2453         is fine.
2454         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2455         <bits/mman-linux.h> to end of file.
2456
2457         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2458         (MCL_CURRENT, MCL_FUTURE): Define here.
2459
2460 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2461
2462         [BZ #15232]
2463         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2464         attribute_hidden.
2465         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2466
2467 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2468
2469         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2470         fourth parameter needed for rt_sigprocmask syscall.
2471         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2472         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2473         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2474         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2475         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2476         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2477
2478 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2479
2480         [BZ #13550]
2481         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2482         comment about bounded pointers.
2483         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2484         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2485
2486 2013-03-04  Andreas Jaeger  <aj@suse.de>
2487
2488         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2489         common definitions.
2490
2491         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2492         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2493         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2494         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2495         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2496         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2497
2498 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2499
2500         [BZ #15055]
2501         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2502         __ieee754_sqrl instead of __sqrl.
2503
2504 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2505
2506         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2507         * sysdeps/powerpc/fpu_control.h: ... here.
2508         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2509         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2510         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2511         * sysdeps/powerpc/bits/mathinline.h: ... here.
2512
2513 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2514
2515         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2516         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2517         to just [NEED_DL_SYSINFO_DSO].
2518         * elf/dl-support.c: Likewise.
2519         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2520         * elf/rtld.c (dl_main): Likewise.
2521         * elf/setup-vdso.h (setup_vdso): Likewise.
2522         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2523         * sysdeps/unix/sysv/linux/dl-sysdep.c
2524         (_dl_discover_osversion): Likewise.
2525
2526 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2527
2528         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2529         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2530
2531 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2532
2533         * NEWS: Mention libm performance improvements and non-x86 PI
2534         futex support.
2535
2536         * csu/libc-start.c (__pthread_initialize_minimal): Change
2537         function arguments.
2538         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2539
2540 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2541
2542         [BZ #13550]
2543         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2544         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2545         <bp-sym.h> and <bp-asm.h>.
2546         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2547         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2548         and <bp-asm.h>.
2549         (memcpy): Don't use BP_SYM.
2550         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2551         <bp-asm.h>.
2552         (__mpn_add_n): Don't use BP_SYM.
2553         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2554         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2555         and <bp-asm.h>.
2556         (__mpn_addmul_1): Don't use BP_SYM.
2557         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2558         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2559         <bp-sym.h>.
2560         (_setjmp): Don't use BP_SYM.
2561         (__novmx_setjmp): Likewise.
2562         (__GI__setjmp): Likewise.
2563         (__vmx_setjmp): Likewise.
2564         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2565         <bp-sym.h>.
2566         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2567         (__bzero): Don't use BP_SYM.
2568         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2569         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2570         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2571         <bp-sym.h> and <bp-asm.h>.
2572         (memcpy): Don't use BP_SYM.
2573         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2574         <bp-sym.h> and <bp-asm.h>.
2575         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2576         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2577         <bp-sym.h> and <bp-asm.h>.
2578         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2579         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2580         <bp-asm.h>.
2581         (__mpn_lshift): Don't use BP_SYM.
2582         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2583         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2584         <bp-asm.h>.
2585         (memset): Don't use BP_SYM.
2586         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2587         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2588         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2589         <bp-asm.h>.
2590         (__mpn_mul_1): Don't use BP_SYM.
2591         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2592         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2593         <bp-sym.h> and <bp-asm.h>.
2594         (memcmp): Don't use BP_SYM.
2595         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2596         <bp-sym.h> and <bp-asm.h>.
2597         (memcpy): Don't use BP_SYM.
2598         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2599         <bp-sym.h> and <bp-asm.h>.
2600         (memset): Don't use BP_SYM.
2601         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2602         <bp-sym.h> and <bp-asm.h>.
2603         (strncmp): Don't use BP_SYM.
2604         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2605         <bp-sym.h> and <bp-asm.h>.
2606         (memcpy): Don't use BP_SYM.
2607         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2608         <bp-sym.h> and <bp-asm.h>.
2609         (memset): Don't use BP_SYM.
2610         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2611         <bp-sym.h> and <bp-asm.h>.
2612         (__memchr): Don't use BP_SYM.
2613         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2614         <bp-sym.h> and <bp-asm.h>.
2615         (memcmp): Don't use BP_SYM.
2616         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2617         <bp-sym.h> and <bp-asm.h>.
2618         (memcpy): Don't use BP_SYM.
2619         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2620         <bp-sym.h> and <bp-asm.h>.
2621         (__mempcpy): Don't use BP_SYM.
2622         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2623         <bp-sym.h> and <bp-asm.h>.
2624         (__memrchr): Don't use BP_SYM.
2625         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2626         <bp-sym.h> and <bp-asm.h>.
2627         (memset): Don't use BP_SYM.
2628         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2629         <bp-sym.h> and <bp-asm.h>.
2630         (__rawmemchr): Don't use BP_SYM.
2631         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2632         <bp-sym.h> and <bp-asm.h>.
2633         (__STRCMP): Don't use BP_SYM.
2634         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2635         <bp-sym.h> and <bp-asm.h>.
2636         (strchr): Don't use BP_SYM.
2637         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2638         <bp-sym.h> and <bp-asm.h>.
2639         (__strchrnul): Don't use BP_SYM.
2640         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2641         <bp-sym.h> and <bp-asm.h>.
2642         (strlen): Don't use BP_SYM.
2643         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2644         <bp-sym.h> and <bp-asm.h>.
2645         (strncmp): Don't use BP_SYM.
2646         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2647         <bp-sym.h> and <bp-asm.h>.
2648         (__strnlen): Don't use BP_SYM.
2649         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2650         <bp-asm.h>.
2651         (__mpn_rshift): Don't use BP_SYM.
2652         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2653         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2654         <bp-sym.h> and <bp-asm.h>.
2655         (__sigsetjmp): Don't use BP_SYM.
2656         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2657         (L(start_addresses)): Don't use BP_SYM.
2658         (_start): Likewise.
2659         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2660         <bp-asm.h>.
2661         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2662         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2663         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2664         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2665         <bp-asm.h>.
2666         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2667         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2668         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2669         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2670         <bp-asm.h>.
2671         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2672         comments.
2673         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2674         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2675         <bp-asm.h>.
2676         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2677         FIXME comments.
2678         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2679         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2680         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2681         <bp-asm.h>.
2682         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2683         comment.
2684         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2685         and <bp-asm.h>.
2686         (strncmp): Don't use BP_SYM,
2687         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2688         <bp-asm.h>.
2689         (__mpn_sub_n): Don't use BP_SYM.
2690         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2691         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2692         and <bp-asm.h>.
2693         (__mpn_submul_1): Don't use BP_SYM.
2694         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2696         <bp-sym.h> and <bp-asm.h>.
2697         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2699         <bp-sym.h> and <bp-asm.h>.
2700         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2701         comment.
2702
2703 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2704
2705         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2706         Use ZK to minimize writes to Z.
2707         (sub_magnitudes): Simplify code a bit.
2708         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2709         Use ZK to minimize writes to Z.
2710         (sub_magnitudes): Simplify code a bit.
2711
2712 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2713
2714         * csu/gmon-start.c: Add special exception to license text.
2715
2716 2013-02-27  Richard Henderson  <rth@redhat.com>
2717
2718         * scripts/config.guess: Update from config.git.
2719         * scripts/config.sub: Likewise.
2720
2721 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2722
2723         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2724
2725         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2726
2727         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2728
2729         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2730
2731         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2732
2733 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2734
2735         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2736         [$(build-shared = yes].
2737
2738 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2739
2740         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2741         (__mul): Reduce iterations for calculating mantissa.
2742
2743         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2744         MPTWO.
2745         (__mpranred): Likewise.
2746
2747         [BZ #15160]
2748         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2749         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2750
2751 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2752
2753         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2754         Define __attribute__.
2755
2756 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2757
2758         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2759         unused.
2760         * posix/regex_internal.h (__attribute): Remove.
2761         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2762         (re_string_context_at): Likewise.
2763         (bitset_not): Use __attribute__ and mark function as possibly
2764         unused.
2765         (bitset_merge): Likewise.
2766         (bitset_mask): Likewise.
2767         (re_string_char_size_at): Likewise.
2768         (re_string_wchar_at): Likewise.
2769         (re_string_elem_size_at): Likewise.
2770
2771 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2772
2773         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2774         code.
2775         (cc32): Likewise.
2776
2777         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2778         (__acr): Likewise.
2779         (__cpy): Likewise.
2780         (norm): Likewise.
2781         (denorm): Likewise.
2782         (__dbl_mp): Likewise.
2783         (add_magnitudes): Likewise.
2784         (sub_magnitudes): Likewise.
2785         (__mul): Likewise.
2786         (__inv): Likewise.
2787
2788         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2789         style.
2790
2791         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2792         style.
2793
2794         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2795         code.
2796
2797         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2798         up changes with default code.
2799         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2800         Likewise.
2801
2802 2013-02-24  Allan McRae  <allan@archlinux.org>
2803
2804         * manual/socket.texi (The Internet Namespace): Order menu items
2805         to match that in the file.
2806
2807         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2808         node listing of the info page menu.
2809
2810 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2811
2812         [BZ #13550]
2813         * sysdeps/i386/bp-asm.h: Remove file.
2814         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2815         (PARMS): Do not use macros from bp-asm.h.
2816         (S1): Likewise.
2817         (S2): Likewise.
2818         (SIZE): Likewise.
2819         (__mpn_add_n): Do not use BP_SYM
2820         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2821         "bp-asm.h".
2822         (PARMS): Do not use macros from bp-asm.h.
2823         (S1): Likewise.
2824         (SIZE): Likewise.
2825         (__mpn_addmul_1): Do not use BP_SYM
2826         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2827         "bp-asm.h".
2828         (PARMS): Do not use macros from bp-asm.h.
2829         (SIGMSK): Likewise.
2830         (_setjmp): Likewise.  Do not use BP_SYM.
2831         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2832         "bp-asm.h".
2833         (PARMS): Do not use macros from bp-asm.h.
2834         (SIGMSK): Likewise.
2835         (setjmp): Likewise.  Do not use BP_SYM.
2836         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2837         "bp-asm.h".
2838         (PARMS): Do not use macros from bp-asm.h.
2839         (__frexp): Do not use BP_SYM.
2840         (frexp): Likewise.
2841         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2842         "bp-asm.h".
2843         (PARMS): Do not use macros from bp-asm.h.
2844         (__frexpf): Do not use BP_SYM.
2845         (frexpf): Likewise.
2846         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2847         "bp-asm.h".
2848         (PARMS): Do not use macros from bp-asm.h.
2849         (__frexpl): Do not use BP_SYM.
2850         (frexpl): Likewise.
2851         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2852         "bp-asm.h".
2853         (PARMS): Do not use macros from bp-asm.h.
2854         (__remquo): Do not use BP_SYM.
2855         (remquo): Likewise.
2856         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2857         "bp-asm.h".
2858         (PARMS): Do not use macros from bp-asm.h.
2859         (__remquof): Do not use BP_SYM.
2860         (remquof): Likewise.
2861         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2862         "bp-asm.h".
2863         (PARMS): Do not use macros from bp-asm.h.
2864         (__remquol): Do not use BP_SYM.
2865         (remquol): Likewise.
2866         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2867         "bp-asm.h".
2868         (PARMS): Do not use macros from bp-asm.h.
2869         (DEST): Likewise.
2870         (SRC): Likewise.
2871         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2872         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2873         "bp-asm.h".
2874         (PARMS): Do not use macros from bp-asm.h.
2875         (strlen): Do not use BP_SYM.
2876         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2877         "bp-asm.h".
2878         (PARMS): Do not use macros from bp-asm.h.
2879         (S1): Likewise.
2880         (S2): Likewise.
2881         (SIZE): Likewise.
2882         (__mpn_add_n): Do not use BP_SYM.
2883         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2884         "bp-asm.h".
2885         (PARMS): Do not use macros from bp-asm.h.
2886         (S1): Likewise.
2887         (SIZE): Likewise.
2888         (__mpn_addmul_1): Do not use BP_SYM.
2889         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2890         weak_alias.
2891         (bzero): Likewise.
2892         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2893         "bp-asm.h".
2894         (PARMS): Do not use macros from bp-asm.h.
2895         (S): Likewise.
2896         (SIZE): Likewise.
2897         (__mpn_lshift): Do not use BP_SYM.
2898         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2899         "bp-asm.h".
2900         (PARMS): Do not use macros from bp-asm.h.
2901         (DEST): Likewise.
2902         (SRC): Likewise.
2903         (LEN): Likewise.
2904         (memcpy): Likewise.  Do not use BP_SYM.
2905         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2906         libc_hidden_def and weak_alias.
2907         (mempcpy): Do not use BP_SYM in weak_alias.
2908         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2909         "bp-asm.h".
2910         (PARMS): Do not use macros from bp-asm.h.
2911         (DEST): Likewise.
2912         (LEN): Likewise.
2913         [!BZERO_P] (CHR): Likewise.
2914         (memset): Likewise.  Do not use BP_SYM.
2915         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2916         "bp-asm.h".
2917         (PARMS): Do not use macros from bp-asm.h.
2918         (S1): Likewise.
2919         (SIZE): Likewise.
2920         (__mpn_mul_1): Do not use BP_SYM.
2921         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2922         "bp-asm.h".
2923         (PARMS): Do not use macros from bp-asm.h.
2924         (S): Likewise.
2925         (SIZE): Likewise.
2926         (__mpn_rshift): Do not use BP_SYM.
2927         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2928         "bp-asm.h".
2929         (PARMS): Do not use macros from bp-asm.h.
2930         (STR): Likewise.
2931         (CHR): Likewise.
2932         (strchr): Likewise.  Do not use BP_SYM.
2933         (index): Do not use BP_SYM in weak_alias.
2934         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2935         "bp-asm.h".
2936         (PARMS): Do not use macros from bp-asm.h.
2937         (DEST): Likewise.
2938         (SRC): Likewise.
2939         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2940         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2941         "bp-asm.h".
2942         (PARMS): Do not use macros from bp-asm.h.
2943         (strlen): Do not use BP_SYM.
2944         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2945         "bp-asm.h".
2946         (PARMS): Do not use macros from bp-asm.h.
2947         (S1): Likewise.
2948         (S2): Likewise.
2949         (SIZE): Likewise.
2950         (__mpn_sub_n): Do not use BP_SYM.
2951         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2952         "bp-asm.h".
2953         (PARMS): Do not use macros from bp-asm.h.
2954         (S1): Likewise.
2955         (SIZE): Likewise.
2956         (__mpn_submul_1): Do not use BP_SYM.
2957         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2958         "bp-asm.h".
2959         (PARMS): Do not use macros from bp-asm.h.
2960         (S1): Likewise.
2961         (S2): Likewise.
2962         (SIZE): Likewise.
2963         (__mpn_add_n): Do not use BP_SYM.
2964         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2965         weak_alias.
2966         (bzero): Likewise.
2967         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2968         "bp-asm.h".
2969         (PARMS): Do not use macros from bp-asm.h.
2970         (BLK2): Likewise.
2971         (LEN): Likewise.
2972         (memcmp): Do not use BP_SYM.
2973         (bcmp): Do not use BP_SYM in weak_alias.
2974         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2975         "bp-asm.h".
2976         (PARMS): Do not use macros from bp-asm.h.
2977         (DEST): Likewise.
2978         (SRC): Likewise.
2979         (LEN): Likewise.
2980         (memcpy): Likewise.  Do not use BP_SYM.
2981         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2982         "bp-asm.h".
2983         (PARMS): Do not use macros from bp-asm.h.
2984         (DEST): Likewise.
2985         (SRC): Likewise.
2986         (LEN): Likewise.
2987         (memmove): Likewise.  Do not use BP_SYM.
2988         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
2989         "bp-asm.h".
2990         (PARMS): Do not use macros from bp-asm.h.
2991         (DEST): Likewise.
2992         (SRC): Likewise.
2993         (LEN): Likewise.
2994         (__mempcpy): Likewise.  Do not use BP_SYM.
2995         (mempcpy): Do not use BP_SYM in weak_alias.
2996         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
2997         "bp-asm.h".
2998         (PARMS): Do not use macros from bp-asm.h.
2999         (DEST): Likewise.
3000         (LEN): Likewise.
3001         [!BZERO_P] (CHR): Likewise.
3002         (memset): Likewise.  Do not use BP_SYM.
3003         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3004         "bp-asm.h".
3005         (PARMS): Do not use macros from bp-asm.h.
3006         (STR2): Likewise.
3007         (strcmp): Do not use BP_SYM.
3008         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3009         "bp-asm.h".
3010         (PARMS): Do not use macros from bp-asm.h.
3011         (STR): Likewise.
3012         (DELIM): Likewise.
3013         [USE_AS_STRTOK_R] (SAVE): Likewise.
3014         (FUNCTION): Likewise.  Do not use BP_SYM.
3015         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3016         aliases.
3017         (strtok_r): Likewise.
3018         (__GI___strtok_r): Likewise.
3019         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3020         (PARMS): Do not use macros from bp-asm.h.
3021         (S): Likewise.
3022         (SIZE): Likewise.
3023         (__mpn_lshift): Do not use BP_SYM.
3024         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3025         (PARMS): Do not use macros from bp-asm.h.
3026         (STR): Likewise.
3027         (CHR): Likewise.
3028         (__memchr): Do not use BP_SYM.
3029         (memchr): Do not use BP_SYM in weak_alias.
3030         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3031         (PARMS): Do not use macros from bp-asm.h.
3032         (BLK2): Likewise.
3033         (LEN): Likewise.
3034         (memcmp): Do not use BP_SYM.
3035         (bcmp): Do not use BP_SYM in weak_alias.
3036         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3037         (PARMS): Do not use macros from bp-asm.h.
3038         (S1): Likewise.
3039         (SIZE): Likewise.
3040         (__mpn_mul_1): Do not use BP_SYM.
3041         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3042         "bp-asm.h".
3043         (PARMS): Do not use macros from bp-asm.h.
3044         (STR): Likewise.
3045         (CHR): Likewise.
3046         (__rawmemchr): Do not use BP_SYM.
3047         (rawmemchr): Do not use BP_SYM in weak_alias.
3048         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3049         (PARMS): Do not use macros from bp-asm.h.
3050         (S): Likewise.
3051         (SIZE): Likewise.
3052         (__mpn_rshift): Do not use BP_SYM.
3053         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3054         (PARMS): Do not use macros from bp-asm.h.
3055         (SIGMSK): Likewise.
3056         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3057         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3058         (_start): Do not use BP_SYM.
3059         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3060         (PARMS): Do not use macros from bp-asm.h.
3061         (DEST): Likewise.
3062         (SRC): Likewise.
3063         (__stpcpy): Likewise.  Do not use BP_SYM.
3064         (stpcpy): Do not use BP_SYM in weak_alias.
3065         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3066         "bp-asm.h".
3067         (PARMS): Do not use macros from bp-asm.h.
3068         (DEST): Likewise.
3069         (SRC): Likewise.
3070         (LEN): Likewise.
3071         (__stpncpy): Likewise.  Do not use BP_SYM.
3072         (stpncpy): Do not use BP_SYM in weak_alias.
3073         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3074         (PARMS): Do not use macros from bp-asm.h.
3075         (STR): Likewise.
3076         (CHR): Likewise.
3077         (strchr): Likewise.  Do not use BP_SYM.
3078         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3079         "bp-asm.h".
3080         (PARMS): Do not use macros from bp-asm.h.
3081         (STR): Likewise.
3082         (CHR): Likewise.
3083         (__strchrnul): Likewise.  Do not use BP_SYM.
3084         (strchrnul): Do not use BP_SYM in weak_alias.
3085         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3086         "bp-asm.h".
3087         (PARMS): Do not use macros from bp-asm.h.
3088         (STOP): Likewise.
3089         (strcspn): Do not use BP_SYM.
3090         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3091         "bp-asm.h".
3092         (PARMS): Do not use macros from bp-asm.h.
3093         (STR): Likewise.
3094         (STOP): Likewise.
3095         (strpbrk): Likewise.  Do not use BP_SYM.
3096         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3097         "bp-asm.h".
3098         (PARMS): Do not use macros from bp-asm.h.
3099         (STR): Likewise.
3100         (CHR): Likewise.
3101         (strrchr): Likewise.  Do not use BP_SYM.
3102         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3103         (PARMS): Do not use macros from bp-asm.h.
3104         (SKIP): Likewise.
3105         (strspn): Do not use BP_SYM.
3106         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3107         (PARMS): Do not use macros from bp-asm.h.
3108         (STR): Likewise.
3109         (DELIM): Likewise.
3110         (SAVE): Likewise.
3111         (FUNCTION): Likewise.  Do not use BP_SYM.
3112         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3113         aliases.
3114         (strtok_r): Likewise.
3115         (__GI___strtok_r): Likewise.
3116         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3117         (PARMS): Do not use macros from bp-asm.h.
3118         (S1): Likewise.
3119         (S2): Likewise.
3120         (SIZE): Likewise.
3121         (__mpn_sub_n): Do not use BP_SYM.
3122         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3123         "bp-asm.h".
3124         (PARMS): Do not use macros from bp-asm.h.
3125         (S1): Likewise.
3126         (SIZE): Likewise.
3127         (__mpn_submul_1): Do not use BP_SYM.
3128         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3129         <bp-sym.h>.
3130         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3131         and <bp-asm.h>.
3132         (PARMS): Do not use macros from bp-asm.h.
3133         (FLAGS): Likewise.
3134         (PTID): Likewise.
3135         (TLS): Likewise.
3136         (CTID): Likewise.
3137         (__clone): Do not use BP_SYM.
3138         (clone): Do not use BP_SYM in weak_alias.
3139         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3140         and <bp-asm.h>.
3141         (PARMS): Do not use macros from bp-asm.h.
3142         (LEN): Likewise.
3143         (__mmap64): Do not use BP_SYM.
3144         (mmap64): Do not use BP_SYM in weak_alias.
3145         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3146         <bp-sym.h> and <bp-asm.h>.
3147         (PARMS): Do not use macros from bp-asm.h.
3148         (__posix_fadvise64_l64): Do not use BP_SYM.
3149         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3150         (PARMS): Do not use macros from bp-asm.h.
3151         (NSOPS): Likewise.
3152         (semtimedop): Do not use BP_SYM.
3153         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3154         and <bp-asm.h>.
3155
3156 2013-02-21  Allan McRae  <allan@archlinux.org>
3157
3158         * manual/message.texi (Charset conversion in gettext):
3159         Move @end statement to beginning of line.
3160
3161 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3162
3163         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3164         static.
3165         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3166         Likewise.
3167
3168         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3169         (denorm): Likewise.
3170         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3171         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3172
3173 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3174
3175         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3176         tail-call to the resolved function if pltexit isn't needed.
3177
3178 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3179
3180         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3181         or Y being zero as being unlikely.
3182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3183         Likewise.
3184
3185 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3186
3187         * manual/nss.texi (System Databases and Name Service Switch):
3188         Remove frobnicate @pxref.
3189
3190 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3191
3192         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3193         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3194
3195 2013-02-20  Petr Machata  <pmachata@redhat.com>
3196
3197         * elf/elf.h (R_ARM_TARGET1): New macro.
3198         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3199         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3200         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3201         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3202         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3203         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3204         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3205         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3206         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3207         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3208         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3209         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3210         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3211         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3212         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3213         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3214         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3215         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3216         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3217         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3218         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3219         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3220         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3221         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3222         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3223         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3224         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3225         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3226         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3227         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3228         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3229         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3230         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3231         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3232         (R_ARM_THM_GOT_BREL12): Likewise.
3233         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3234         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3235         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3236         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3237         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3238         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3239         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3240         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3241         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3242
3243 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3244
3245         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3246         __attribute_used__ to __attribute__ ((unused)).
3247
3248 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3249
3250         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3251         powerpc mpa.c.
3252         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3253         comment formatting.
3254         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3255
3256 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3257
3258         [BZ #13550]
3259         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3260         Remove macro.
3261         (ENTER): Remove both macro definitions.
3262         (LEAVE): Likewise.
3263         (CHECK_BOUNDS_LOW): Likewise.
3264         (CHECK_BOUNDS_HIGH): Likewise.
3265         (CHECK_BOUNDS_BOTH): Likewise.
3266         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3267         (RETURN_BOUNDED_POINTER): Likewise.
3268         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3269         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3270         (POP_ERRNO_LOCATION_RETURN): Likewise.
3271         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3272         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3273         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3274         macros.
3275         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3276         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3277         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3278         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3279         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3280         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3281         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3282         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3283         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3284         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3285         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3286         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3287         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3288         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3289         removed macros.
3290         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3291         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3292         macros.
3293         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3294         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3295         * sysdeps/i386/i586/memset.S (memset): Likewise.
3296         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3297         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3298         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3299         macros.
3300         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3301         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3302         Change uses of L(2) to L(out).
3303         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3304         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3305         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3306         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3307         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3308         removed macros.
3309         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3310         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3311         macros.
3312         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3313         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3314         (RETURN): Do not use macro LEAVE.
3315         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3316         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3317         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3318         * sysdeps/i386/i686/memset.S (memset): Likewise.
3319         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3320         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3321         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3322         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3323         Likewise.
3324         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3325         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3326         L(1_2) and L(1_3) into L(1).
3327         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3328         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3329         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3330         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3331         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3332         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3333         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3334         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3335         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3336         macros.
3337         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3338         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3339         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3340         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3341         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3342         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3343         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3344         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3345         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3346         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3347         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3348         * sysdeps/i386/strspn.S (strspn): Likewise.
3349         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3350         conditional code.
3351         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3352         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3353         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3354         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3355         L(1_3) into L(1_1).
3356         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3357         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3358         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3359         macros.
3360         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3361
3362 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3363
3364         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3365         macro.
3366
3367 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3368
3369         * math/atest-exp.c (exp_mpn): Remove ROUND.
3370         * math/atest-exp2.c (exp_mpn): Likewise.
3371         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3372
3373         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3374         * stdlib/tst-tls-atexit-lib.c: Likewise.
3375         * stdlib/tst-tls-atexit.c: Likewise.
3376
3377 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3378
3379         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3380         and __attribute_alloc_size__.
3381
3382 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3383
3384         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3385         __attribute_alloc_size__.
3386         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3387         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3388
3389 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3390
3391         * include/programs/xmalloc.h: New file.
3392         * catgets/gencat.c: Include it.
3393         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3394         * elf/pldd.c: Likewise.
3395         * iconv/iconv_charmap.c: Likewise.
3396         * iconv/iconvconfig.c: Likewise.
3397         * iconv/strtab.c: Likewise.
3398         * locale/programs/locale.c: Likewise.
3399         * locale/programs/localedef.h: Likewise.
3400         * locale/programs/simple-hash.c: Likewise.
3401         * nscd/nscd.h: Likewise.
3402         * nss/makedb.c: Likewise.
3403         * sysdeps/generic/ldconfig.h: Likewise.
3404
3405 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3406
3407         * Versions.def: Add GLIBC_2.18.
3408         * include/link.h (struct link_map): New member l_tls_dtor_count.
3409         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3410         (__call_tls_dtors): Likewise.
3411         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3412         __cxa_thread_atexit_impl.
3413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3414         Likewise.
3415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3416         Likewise.
3417         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3418         Likewise.
3419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3420         Likewise.
3421         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3422         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3423         Likewise.
3424         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3425         Likewise.
3426         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3428         Likewise.
3429         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3430         (tests): Add test case tst-tls-atexit.
3431         (modules-names): Add shared library for tst-tls-atexit.
3432         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3433         (GLIBC_PRIVATE): Add __call_tls_dtors.
3434         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3435         for libstdc++.
3436         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3437         * stdlib/tst-tls-atexit.c: New test case.
3438         * stdlib/tst-tls-atexit-lib.c: New test case.
3439
3440         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3441
3442         * elf/Versions (ld): Add _dl_find_dso_for_object.
3443         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3444         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3445         (dl_open_worker): Use _dl_find_dso_for_object.
3446         * elf/dl-sym.c (do_sym): Likewise.
3447         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3448
3449 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3450
3451         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3452         Syntactic changes only.
3453         (_dl_runtime_profile): Do a tail-call to the resolved function.
3454
3455 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3456
3457         [BZ #13550]
3458         * sysdeps/x86_64/bp-asm.h: Remove file.
3459         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3460         <bp-sym.h> and <bp-asm.h>.
3461         (__clone): Do not use BP_SYM.
3462         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3463         <bp-sym.h> and <bp-asm.h>.
3464         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3465         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3466         "bp-asm.h".
3467         (_setjmp): Do not use BP_SYM.
3468         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3469         "bp-asm.h".
3470         (setjmp): Do not use BP_SYM.
3471         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3472         libc_hidden_def.
3473         (mempcpy): Do not use BP_SYM in weak_alias.
3474         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3475         "bp-asm.h".
3476         (strchr): Do not use BP_SYM.
3477         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3478         "bp-asm.h".
3479         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3480         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3481         (_start): Do not use BP_SYM.
3482         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3483         "bp-asm.h".
3484         (strcat): Do not use BP_SYM.
3485         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3486         "bp-asm.h".
3487         (STRCMP): Do not use BP_SYM.
3488         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3489         "bp-asm.h".
3490         (STRCPY): Do not use BP_SYM.
3491         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3492         "bp-asm.h".
3493         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3494         "bp-asm.h".
3495         (FUNCTION): Do not use BP_SYM.
3496         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3497         weak_alias.
3498         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3499
3500 2013-02-17  Andreas Jaeger  <aj@suse.de>
3501
3502         * time/Versions: Sort entries.
3503         * string/Versions: Likewise.
3504         * resolv/Versions: Likewise.
3505         * posix/Versions: Likewise.
3506         * iconv/Versions: Likewise.
3507         * elf/Versions: Likewise.
3508         * wcsmbs/Versions: Likewise.
3509
3510 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3511
3512         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3513         loop termination condition.
3514
3515         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3516         variable to calculate EZ.
3517         (__sqr): Likewise.
3518
3519         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3520         the lower precision input.
3521
3522 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3523
3524         [BZ #13550]
3525         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3526         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3527         (run-via-rtld-prefix): Do not handle %-bp tests.
3528         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3529         (all-object-suffixes): Remove .ob.
3530         (bppfx): Remove variable.
3531         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3532         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3533         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3534         [$(build-bounded) = yes] (libtype.ob): Likewise.
3535         * Makerules (elide-routines.ob): Remove variable.
3536         (do-tests-clean): Do not handle *-bp.out.
3537         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3538         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3539         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3540         (tests): Do not include $(tests-bp.out).
3541         (xtests): Do not include $(xtests-bp.out).
3542         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3543         [$(build-bounded) = yes] ($(addprefix
3544         $(objpfx),$(binaries-bounded))): Remove rule.
3545         ($(objpfx)%-bp.out): Remove rule.
3546         * config.make.in (build-bounded): Remove variable.
3547         * crypt/Makefile [$(build-bounded) = yes]
3548         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3549         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3550         append to variable.
3551         [$(build-bounded) = yes] (install-lib): Likewise.
3552         [$(build-bounded) = yes] (generated): Likewise.
3553         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3554         Remove rule.
3555         * intl/Makefile [$(build-bounded) = yes]
3556         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3557         * math/Makefile [$(build-bounded) = yes]
3558         ($(tests:%=$(objpfx)%-bp): Likewise.
3559         * misc/Makefile [$(build-bounded) = yes]
3560         ($(objpfx)tst-tsearch-bp): Likewise.
3561         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3562         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3563         Remove dependency.
3564         * string/Makefile (o-objects.ob): Remove variable.
3565         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3566         (CFLAGS-.ob): Remove variable.
3567         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3568         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3569         both definitions of variable.
3570         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3571         (ASFLAGS-.ob): Remove variable.
3572
3573 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3574
3575         [BZ #13550]
3576         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3577         Remove __BOUNDED_POINTERS__ from condition.
3578         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3579         * string/bits/string2.h [!__NO_STRING_INLINES &&
3580         !__BOUNDED_POINTERS__]: Likewise.
3581         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3582         Likewise.
3583         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3584         Remove conditional code.
3585         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3586         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3587         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3588         condition.
3589
3590         [BZ #13550]
3591         * csu/libc-start.c: Do not include <bp-sym.h>.
3592         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3593         * elf/dl-open.c: Do not include <bp-sym.h>.
3594         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3595         * math/fegetenv.c: Do not include <bp-sym.h>.
3596         (fegetenv): Do not use BP_SYM in versioned symbols.
3597         * nptl/sysdeps/pthread/bits/libc-lockP.h
3598         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3599         <bp-sym.h>.
3600         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3601         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3602         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3603         (__pthread_mutex_destroy): Likewise.
3604         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3605         (__pthread_mutex_lock): Likewise.
3606         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3607         (__pthread_mutex_trylock): Likewise.
3608         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3609         (__pthread_mutex_unlock): Likewise.
3610         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3611         (__pthread_mutexattr_init): Likewise.
3612         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3613         (__pthread_mutexattr_destroy): Likewise.
3614         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3615         (__pthread_mutexattr_settype): Likewise.
3616         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3617         (__pthread_rwlock_init): Likewise.
3618         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3619         (__pthread_rwlock_destroy): Likewise.
3620         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3621         (__pthread_rwlock_rdlock): Likewise.
3622         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3623         (__pthread_rwlock_tryrdlock): Likewise.
3624         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3625         (__pthread_rwlock_wrlock): Likewise.
3626         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3627         (__pthread_rwlock_trywrlock): Likewise.
3628         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3629         (__pthread_rwlock_unlock): Likewise.
3630         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3631         (__pthread_key_create): Likewise.
3632         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3633         (__pthread_setspecific): Likewise.
3634         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3635         (__pthread_getspecific): Likewise.
3636         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3637         Likewise.
3638         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3639         (_pthread_cleanup_push_defer): Likewise.
3640         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3641         (_pthread_cleanup_pop_restore): Likewise.
3642         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3643         (pthread_setcancelstate): Likewise.
3644         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3645         <bp-sym.h>.
3646         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3647         (memchr): Do not use BP_SYM in weak_alias.
3648         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3649         (fegetenv): Do not use BP_SYM in versioned symbols.
3650         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3651         (fesetenv): Do not use BP_SYM in versioned symbols.
3652         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3653         (feupdateenv): Do not use BP_SYM in versioned symbols.
3654         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3655         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3656         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3657         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3658         (open64): Do not use BP_SYM in weak_alias.
3659         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3660         (fegetenv): Do not use BP_SYM in versioned symbols.
3661         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3662         (fesetenv): Do not use BP_SYM in versioned symbols.
3663         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3664         (feupdateenv): Do not use BP_SYM in versioned symbols.
3665         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3666         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3667         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3668         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3669         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3670         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3671         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3672         <bp-sym.h>.
3673         (__libc_start_main): Do not use BP_SYM.
3674
3675 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3676
3677         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3678         redundant return line.
3679         (norm): Likewise.
3680         (denorm): Likewise.
3681         (dbl_mp): Likewise.
3682         (sub_magnitudes): Likewise.
3683         (__add): Likewise.
3684         (__sub): Likewise.
3685         (__mul): Likewise.
3686         (__inv): Likewise.
3687         (__dvd): Likewise.
3688         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3689         (norm): Likewise.
3690         (denorm): Likewise.
3691         (dbl_mp): Likewise.
3692         (sub_magnitudes): Likewise.
3693         (__add): Likewise.
3694         (__sub): Likewise.
3695         (__mul): Likewise.
3696         (__inv): Likewise.
3697         (__dvd): Likewise.
3698
3699         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3700         instead of __mul.
3701         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3702         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3703         (cc32): Likewise.
3704
3705         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3706         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3707         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3708         of __mul for squares.
3709         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3710         function
3711         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3712         Likewise.
3713         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3714         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3715
3716 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3717
3718         [BZ #13550]
3719         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3720         code.
3721         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3722         prototype or function definition.  Rename ubp_* variables and
3723         parameters.  Remove argv definitions conditional on
3724         [__BOUNDED_POINTERS__].
3725         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3726         * elf/dl-runtime.c (_dl_fixup): Likewise.
3727         * include/set-hooks.h (RUN_HOOK): Likewise.
3728         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3729         definition.
3730         * string/strcpy.c (strcpy): Do not use __unbounded.
3731         * sysdeps/generic/frame.h (struct layout): Likewise.
3732         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3733         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3734         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3735         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3736         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3737         (__backtrace): Likewise.
3738         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3739         use __ptrvalue.
3740         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3741         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3742         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3743         Likewise.
3744         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3745         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3746         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3747         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3748         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3749         Do not use __unbounded.
3750         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3751         Rename __unboundedrlimits parameter to rlimits in prototype.
3752         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3753         Do not use __unbounded.
3754         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3755         not use __ptrvalue.
3756         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3757         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3758         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3759         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3760         __ptrvalue or __unbounded.
3761         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3762         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3763         use __unbounded.
3764         (__new_msgctl): Do not use __ptrvalue.
3765         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3766         __unbounded.
3767         (__libc_msgrcv): Do not use __ptrvalue.
3768         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3769         startup_info): Do not use __unbounded.
3770         (__libc_start_main): Likewise.  Rename ubp_* variables and
3771         parameters.  Remove argv definitions conditional on
3772         [__BOUNDED_POINTERS__].
3773         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3774         __ptrvalue.
3775         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3776         use __unbounded.
3777         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3778         or __ptrvalue.
3779         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3780         use __unbounded.
3781         (__new_shmctl): Do not use __ptrvalue.
3782         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3783         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3784         Likewise.
3785         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3786         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3787         (__libc_sigaction): Likewise.
3788         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3789         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3790         Likewise.
3791         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3792
3793 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3794
3795         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3796
3797         * string/mempcpy.c: Implement by calling memcpy.
3798
3799 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3800
3801         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3802
3803         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3804         evaluation.
3805
3806         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3807         values in the mantissa.
3808
3809         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3810         minimize writes to Z.
3811         (sub_magnitudes): Simplify code a bit.
3812
3813 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3814
3815         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3816         from the message.  The linker prefixes all warnings with that already.
3817
3818 2013-02-12  Andreas Schwab  <schwab@suse.de>
3819
3820         [BZ #15078]
3821         * posix/regexec.c (extend_buffers): Add parameter min_len.
3822         (check_matching): Pass minimum needed length.
3823         (clean_state_log_if_needed): Likewise.
3824         (get_subexp): Likewise.
3825         * posix/Makefile (tests): Add bug-regex34.
3826         (bug-regex34-ENV): Define.
3827         * posix/bug-regex34.c: New file.
3828
3829         [BZ #11561]
3830         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3831         elements compare against the byte sequence of it, not its name.
3832         * posix/Makefile (tests): Add bug-regex35.
3833         (bug-regex35-ENV): Define.
3834         * posix/bug-regex35.c: New file.
3835
3836 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3837
3838         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3839         comment.
3840         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3841         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3842         (CHECK_EOL): Add undef.
3843
3844 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3845
3846         * bits/stdlib-bsearch.h: New file.
3847         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3848         * stdlib/stdlib.h: Likewise.
3849
3850 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3851
3852         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3853         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3854         declaration.
3855         * manual/search.texi (Array Search Function): Add missing const in
3856         lfind prototype.
3857         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3858         declaration to use rlim_t.
3859         (Basic Scheduling Functions): Remove erroneous const from
3860         sched_getparam prototype.  Remove erroneous * from
3861         sched_get_priority_max and sched_get_priority_min prototypes.
3862         (Resource Usage): Fix summary @comment on vtimes to refer to
3863         sys/vtimes.h rather than vtimes.h.
3864         Add missing *s in vtimes prototype.
3865         (Limits on Resources): Fix ulimit prototype to return long int.
3866         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3867         prototypes to use long int rather than double.
3868         (BSD Random): Fix initstate and setstate to use char *, not void *.
3869         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3870         prototype to make second argument 'struct aiocb64 *const[]'.
3871         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3872         (Status of AIO Operations): Remove erroneous const in aio_return and
3873         aio_return64 prototypes.
3874         (Synchronizing I/O): Fix sync prototype to return void.
3875         * manual/startup.texi (Suboptions): Remove an erroneous const in
3876         getsubopt prototype.
3877         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3878         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3879         use size_t rather than int.
3880         (Scanning All Users): Likewise for getpwent_r.
3881         (Setting Groups): Add missing const to setgroups prototype.
3882         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3883         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3884         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3885         'const void *' rather than 'const char *'.
3886         (Host Address Functions): Likewise for inet_ntop.
3887         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3888         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3889         ssize_t for return value.
3890         (Sending Data): Likewise for send, sendto, sendmsg.
3891         (Socket Option Functions): Add a missing const in setsockopt prototype.
3892         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3893         use wchar_t for the argument.
3894         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3895         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3896         take no arguments.
3897         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3898         double/float/long double for second argument.
3899         Fix return types of significand, significandf, significandl.
3900         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3901         argument in fchmod prototype.
3902         (File Owner): Use uid_t and gid_t in fchown prototype.
3903         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3904         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3905         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3906         use 'const struct dirent **' as argument types to CMP function pointer
3907         argument.
3908         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3909         (File Times): Fix summary magic @comment for struct utimbuf and utime
3910         to refer to utime.h, not time.h.
3911         * manual/string.texi (Argz Functions): Add missing const in
3912         argz_extract and argz_next prototypes.
3913         (Finding Tokens in a String): Likewise for basename.
3914         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3915         (Copying and Concatenation): Fix typo in wmemmove prototype.
3916         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3917         (Signal Stack): Remove erroneous const in sigstack prototype.
3918         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3919         prototype.
3920         (Simple Calendar Time): Likewise for stime.
3921         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3922         prototype.
3923         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3924         say sys/sysctl.h instead.
3925         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3926         and vsyslog prototypes.
3927
3928 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3929
3930         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3931         Remove.
3932
3933 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3934
3935         * misc/sys/mman.h: Fix typo in mremap comment.
3936
3937 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3938
3939         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3940         the '\0' terminator.
3941
3942 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3943
3944         [BZ #13550]
3945         * debug/segfault.c: Don't include <bp-checks.h>.
3946         * sysdeps/generic/bp-checks.h: Remove file.
3947         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3948         (__GETDENTS): Don't use CHECK_N.
3949         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3950         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3951         (__getgroups): Don't use CHECK_N.
3952         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3953         (setgroups): Don't use CHECK_N.
3954         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3955         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3956         (__libc_msgrcv): Don't use CHECK_N.
3957         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3958         (__libc_msgsnd): Don't use CHECK_N.
3959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3960         <bp-checks.h>.
3961         (__libc_pread): Don't use CHECK_N.
3962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3963         include <bp-checks.h>.
3964         (__libc_pread64): Don't use CHECK_N.
3965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3966         include <bp-checks.h>.
3967         (__libc_pwrite): Don't use CHECK_N.
3968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3969         include <bp-checks.h>.
3970         (__libc_pwrite64): Don't use CHECK_N.
3971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3972         <bp-checks.h>.
3973         (__libc_pread): Don't use CHECK_N.
3974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3975         include <bp-checks.h>.
3976         (__libc_pread64): Don't use CHECK_N.
3977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3978         include <bp-checks.h>.
3979         (__libc_pwrite): Don't use CHECK_N.
3980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3981         include <bp-checks.h>.
3982         (__libc_pwrite64): Don't use CHECK_N.
3983         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3984         (do_pread): Don't use CHECK_N.
3985         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3986         (do_pread64): Don't use CHECK_N.
3987         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3988         (do_pwrite): Don't use CHECK_N.
3989         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
3990         (do_pwrite64): Don't use CHECK_N.
3991         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
3992         (__libc_readv): Don't use CHECK_N.
3993         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
3994         (semop): Don't use CHECK_N.
3995         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
3996         <bp-checks.h>.
3997         (semtimedop): Don't use CHECK_N.
3998         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
3999         (__libc_pread): Don't use CHECK_N.
4000         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4001         <bp-checks.h>.
4002         (__libc_pread64): Don't use CHECK_N.
4003         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4004         <bp-checks.h>.
4005         (__libc_pwrite): Don't use CHECK_N.
4006         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4007         <bp-checks.h>.
4008         (__libc_pwrite64): Don't use CHECK_N.
4009         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4010         <bp-checks.h>.
4011         (__libc_msgrcv): Don't use CHECK_N.
4012         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4013         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4014         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4015         (__libc_writev): Don't use CHECK_N.
4016
4017 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4018
4019         * string/strcpy.c: Removed unused variable.
4020
4021         * Makeconfig (+sysdep-includes): Define with := rather than =.
4022         Use an existing include/ subdir of each sysdeps dir before it.
4023
4024 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4025
4026         * nscd/connection.c (register_traced_file): Comment function.
4027         [HAVE_INOTIFY] (union __inev): Define.
4028         [HAVE_INOTIFY] (inotify_check_files): New function.
4029         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4030         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4031         clear_db_cache.
4032         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4033
4034 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4035
4036         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4037         loaded if not already and that a failure is permanent.
4038
4039 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4040
4041         [BZ #15006]
4042         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4043         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4044
4045 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4046
4047         [BZ #13550]
4048         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4049         (CHECK_1_NULL_OK): Likewise.
4050         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4051         (__fxstat): Do not use CHECK_1.
4052         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4053         <bp-checks.h>.
4054         (___fxstat64): Do not use CHECK_1.
4055         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4056         <bp-checks.h>.
4057         (__fxstatat): Do not use CHECK_1.
4058         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4059         <bp-checks.h>.
4060         (__fxstatat64): Do not use CHECK_1.
4061         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4062         <bp-checks.h>.
4063         (__fxstat): Do not use CHECK_1.
4064         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4065         <bp-checks.h>.
4066         (__fxstatat): Do not use CHECK_1.
4067         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4068         <bp-checks.h>.
4069         (__getresgid): Do not use CHECK_1.
4070         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4071         <bp-checks.h>.
4072         (__getresuid): Do not use CHECK_1.
4073         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4074         <bp-checks.h>.
4075         (__lxstat): Do not use CHECK_1.
4076         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4077         <bp-checks.h>.
4078         (__old_msgctl): Do not use CHECK_1.
4079         (__new_msgctl): Likewise.
4080         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4081         <bp-checks.h>.
4082         (__new_setrlimit): Do not use CHECK_1.
4083         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4084         <bp-checks.h>.
4085         (__old_shmctl): Do not use CHECK_1.
4086         (__new_shmctl): Likewise.
4087         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4088         <bp-checks.h>.
4089         (__xstat): Do not use CHECK_1.
4090         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4091         (__lxstat): Do not use CHECK_1.
4092         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4093         <bp-checks.h>.
4094         (___lxstat64): Do not use CHECK_1.
4095         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4096         (__old_msgctl): Do not use CHECK_1.
4097         (__new_msgctl): Likewise.
4098         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4099         <bp-checks.h>.
4100         (__gettimeofday): Do not use CHECK_1.
4101         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4102         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4103         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4104         <bp-checks.h>.
4105         (__gettimeofday): Do not use CHECK_1.
4106         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4107         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4108         (__new_shmctl): Do not use CHECK_1.
4109         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4110         <bp-checks.h>.
4111         (do_sigtimedwait): Do not use CHECK_1.
4112         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4113         <bp-checks.h>.
4114         (do_sigwaitinfo): Do not use CHECK_1.
4115         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4116         <bp-checks.h>.
4117         (msgctl): Do not use CHECK_1.
4118         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4119         <bp-checks.h>.
4120         (shmctl): Do not use CHECK_1.
4121         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4122         (ustat): Do not use CHECK_1.
4123         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4124         <bp-checks.h>.
4125         (__fxstat): Do not use CHECK_1.
4126         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4127         <bp-checks.h>.
4128         (__fxstatat): Do not use CHECK_1.
4129         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4130         <bp-checks.h>.
4131         (__lxstat): Do not use CHECK_1.
4132         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4133         <bp-checks.h>.
4134         (__xstat): Do not use CHECK_1.
4135         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4136         (__xstat): Do not use CHECK_1.
4137         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4138         (___xstat64): Do not use CHECK_1.
4139
4140         [BZ #13550]
4141         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4142         definitions.
4143         (CHECK_BOUNDS_HIGH): Likewise.
4144         * string/strcpy.c: Do not include <bp-checks.h>.
4145         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4146
4147 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4148
4149         * nscd/nscd-client.h (__nscd_drop_map_ref):
4150         Add __attribute__ ((unused)).
4151         * nis/nss-nisplus.h (niserr2nss): Likewise.
4152
4153         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4154         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4155
4156         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4157         Remove inline keyword.
4158         * include/rounding-mode.h (round_away): Likewise.
4159         * libio/wfileops.c (adjust_wide_data): Likewise.
4160         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4161         (__m128i_strloadu_tolower): Likewise.
4162         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4163         (__m128i_strloadu_tolower): Likewise.
4164         * time/mktime.c (ydhms_diff): Likewise.
4165         * locale/elem-hash.h (elem_hash): Likewise.
4166         * locale/setlocale.c (setdata): Likewise.
4167         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4168         (re_string_wchar_at): Likewise.
4169         (bitset_not, bitset_merge, bitset_mask): Likewise.
4170         [!(__GNUC__ > 3)] (inline): Remove macro.
4171         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4172         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4173         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4174         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4175         * string/memcmp.c (memcmp_bytes): Likewise.
4176         * locale/programs/locarchive.c (compute_hashval): Likewise.
4177         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4178         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4179         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4180         * nss/getent.c (print_rpc, print_protocols): Likewise.
4181         (print_passwd, print_group, print_aliases): Likewise.
4182         * nis/nss-nisplus.h (niserr2nss): Likewise.
4183         * nscd/connections.c (restart_p): Likewise.
4184         Change return type to bool.
4185
4186 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4187
4188         * Makeconfig (all-Depend-files): Add existing
4189         $(sorted-subdirs:=/Depend) files.
4190         (all-subdirs): Remove nss.
4191         * sysdeps/unix/inet/Subdirs: Add it here instead.
4192         * hesiod/Depend: New file.
4193
4194         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4195         instead of calling alloca.
4196
4197         * io/lseek.c (__lseek): Rename to __libc_lseek.
4198         Define __lseek as an alias.
4199
4200         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4201
4202 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4203
4204         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4205         else clause and remove check for non-standard endianness.
4206
4207 2013-02-04  David S. Miller  <davem@davemloft.net>
4208
4209         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4210
4211 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4212
4213         [BZ #13550]
4214         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4215         (__ubp_memchr): Remove prototype.
4216         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4217         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4218         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4219         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4220         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4221         Remove alias.
4222         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4223         (__ubp_memchr): Likewise.
4224         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4225         (__ubp_memchr): Likewise.
4226         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4227         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4228         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4229         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4230         CHECK_STRING.
4231         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4232         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4233         (__getcwd): Do not use CHECK_STRING.
4234         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4235         <bp-checks.h>.
4236         (__real_chown): Do not use CHECK_STRING.
4237         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4238         <bp-checks.h>.
4239         (fchownat): Do not use CHECK_STRING.
4240         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4241         CHECK_STRING.
4242         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4243         <bp-checks.h>.
4244         (__lchown): Do not use CHECK_STRING.
4245         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4246         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4247         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4248         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4250         include <bp-checks.h>.
4251         (truncate64): Do not use CHECK_STRING.
4252         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4253         <bp-checks.h>.
4254         (__real_chown): Do not use CHECK_STRING.
4255         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4256         <bp-checks.h>.
4257         (__lchown): Do not use CHECK_STRING.
4258         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4259         <bp-checks.h>.
4260         (__chown): Do not use CHECK_STRING.
4261         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4262         <bp-checks.h>.
4263         (truncate64): Do not use CHECK_STRING.
4264         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4265         Likewise.
4266         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4267         (__xmknod): Do not use CHECK_STRING.
4268         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4269         <bp-checks.h>.
4270         (__xmknodat): Do not use CHECK_STRING.
4271         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4272         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4273
4274 2013-02-04  Andreas Schwab  <schwab@suse.de>
4275
4276         [BZ #14142]
4277         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4278         * include/netdb.h: Likewise for h_errno.
4279         * elf/tst-stackguard1.c: Include <tls.h>.
4280
4281 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4282
4283         * elf/link.h (struct link_map): Extend the l_addr comment.
4284         * include/link.h (struct link_map): Likewise.
4285
4286 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4287
4288         [BZ #13550]
4289         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4290         (BOUNDED_1): Remove macro.
4291         * debug/backtrace.c: Don't include <bp-checks.h>.
4292         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4293         (__backtrace): Likewise.
4294         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4295         <bp-checks.h>.
4296         (__backtrace): Don't use BOUNDED_1.
4297         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4298         <bp-checks.h>.
4299         (__backtrace): Don't use BOUNDED_1.
4300         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4301         (__backtrace): Don't use BOUNDED_1.
4302         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4303         (shmat): Don't use BOUNDED_N.
4304
4305 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4306
4307         [BZ #13550]
4308         * sysdeps/generic/bp-start.h: Remove file.
4309         * csu/libc-start.c: Don't include <bp-start.h>.
4310         (LIBC_START_MAIN): Set up __environ directly instead of using
4311         INIT_ARGV_and_ENVIRON.
4312         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4313         <bp-start.h>.
4314
4315         [BZ #13550]
4316         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4317         definitions.
4318         (CHECK_FCNTL): Likewise.
4319         (CHECK_N_PAGES): Likewise.
4320
4321         [BZ #13550]
4322         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4323         definitions.
4324         (CHECK_SIGSET_NULL_OK): Likewise.
4325         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4326         <bp-checks.h>.
4327         (sigpending): Don't use CHECK_SIGSET.
4328         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4329         <bp-checks.h>.
4330         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4331         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4332         <bp-checks.h>.
4333         (do_sigsuspend): Don't use CHECK_SIGSET.
4334         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4335         use CHECK_SIGSET.
4336         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4337         (do_sigwait): Don't use CHECK_SIGSET.
4338         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4339         use CHECK_SIGSET.
4340         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4341         include <bp-checks.h>.
4342         (sigpending): Don't use CHECK_SIGSET.
4343         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4344         include <bp-checks.h>.
4345         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4346         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4347         <bp-checks.h>.
4348         (sigpending): Don't use CHECK_SIGSET.
4349         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4350         <bp-checks.h>.
4351         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4352
4353         [BZ #13550]
4354         * sysdeps/generic/bp-semctl.h: Remove file.
4355         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4356         <bp-checks.h> and <bp-semctl.h>.
4357         (__old_semctl): Don't use CHECK_SEMCTL.
4358         (__new_semctl): Likewise.
4359         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4360         and <bp-semctl.h>.
4361         (__old_semctl): Don't use CHECK_SEMCTL.
4362         (__new_semctl): Likewise.
4363         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4364         <bp-checks.h> and <bp-semctl.h>.
4365         (__old_semctl): Don't use CHECK_SEMCTL.
4366         (__new_semctl): Likewise.
4367         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4368         <bp-checks.h> and <bp-semctl.h>.
4369         (semctl): Don't use CHECK_SEMCTL.
4370
4371         [BZ #13550]
4372         * Makerules (elide-bp-thunks): Remove variable.
4373         (elide-routines.oS): Don't use $(elide-bp-thunks).
4374         (elide-routines.os): Likewise.
4375         (elide-routines.o): Likewise.
4376         (elide-routines.op): Likewise.
4377         (elide-routines.og): Likewise.
4378         (objects): Don't use $(bp-thunks).
4379         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4380         include.
4381         (common-generated): Do not add s-proto-bp.d.
4382         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4383         (int): Likewise.
4384         (typ): Likewise.
4385         Do not generate makefile rules for bounded-pointer thunks.
4386         * sysdeps/generic/bp-thunks.h: Remove file.
4387         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4388         * sysdeps/unix/s-proto-bp.S: Likewise.
4389
4390         [BZ #15062]
4391         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4392         parts of result separately when argument is not close to line from
4393         -i to i and one part of argument is small.
4394         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4395         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4396         * math/libm-test.inc (cacos_test): Add more tests.
4397         (casin_test): Likewise.
4398         (casinh_test): Likewise.
4399         * sysdeps/i386/fpu/libm-test-ulps: Update.
4400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4401
4402 2013-01-31  David S. Miller  <davem@davemloft.net>
4403
4404         * po/de.po: Update from translation team.
4405
4406 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4407
4408         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4409
4410 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4411
4412         * configure.in (_AC_PROG_CC_C89): New definition.
4413         * configure: Regenerate.
4414
4415         * configure.in (AC_PROG_CPP): New definition.
4416         * configure: Regenerate.
4417
4418 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4419
4420         * debug/tst-backtrace.h: New file.
4421         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4422         (ret): Remove variable.
4423         (x): Likewise.
4424         (FAIL): Remove macro.
4425         (NO_INLINE): Likewise.
4426         (fn1): Use match function instead of strstr.
4427         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4428         (ret): Remove variable.
4429         (x): Likewise.
4430         (FAIL): Remove macro.
4431         (NO_INLINE): Likewise.
4432         (fn): Use match function instead of strstr.
4433         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4434         (ret): Remove variable.
4435         (x): Likewise.
4436         (FAIL): Remove macro.
4437         (NO_INLINE): Likewise.
4438         (handle_signal): Use match function instead of strstr.
4439         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4440         (ret): Remove variable.
4441         (x): Likewise.
4442         (FAIL): Remove macro.
4443         (NO_INLINE): Likewise.
4444         (handle_signal): Use match function instead of strstr.
4445
4446 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4447
4448         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4449
4450 2013-01-23  David S. Miller  <davem@davemloft.net>
4451
4452         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4453         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4454         argument of CAS if possible.
4455         * sysdeps/sparc/sparc64/bits/atomic.h
4456         (__arch_compare_and_exchange_val_32_acq): Likewise.
4457         (__arch_compare_and_exchange_val_64_acq): Likewise.
4458
4459 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4460
4461         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4462         * sysdeps/posix/ulimit.c: ... this.
4463         Include <limits.h>.
4464         * sysdeps/unix/bsd/ulimit.c: Remove file.
4465
4466 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4467
4468         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4469         (LDFLAGS-tst-array5): Likewise.
4470
4471 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4472
4473         [BZ #15036]
4474         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4475         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4476         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4477         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4478
4479 2013-01-21  David S. Miller  <davem@davemloft.net>
4480
4481         * sysdeps/sparc/backtrace.c: New file.
4482         * sysdeps/sparc/sparc32/backtrace.h: New file.
4483         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4484         * sysdeps/sparc/sparc64/backtrace.h: New file.
4485         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4486         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4487         -funwind-tables.
4488
4489 2013-01-21  Andreas Schwab  <schwab@suse.de>
4490
4491         [BZ #15020]
4492         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4493         closed its stdout.
4494
4495 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4496
4497         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4498         "mpa2.h".
4499         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4500
4501 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4502             Mark Mitchell  <mark@codesourcery.com>
4503             Tom de Vries  <tom@codesourcery.com>
4504             Paul Pluzhnikov  <ppluzhnikov@google.com>
4505
4506         * debug/tst-backtrace2.c: New file.
4507         * debug/tst-backtrace3.c: Likewise.
4508         * debug/tst-backtrace4.c: Likewise.
4509         * debug/tst-backtrace5.c: Likewise.
4510         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4511         (CFLAGS-tst-backtrace3.c): Likewise.
4512         (CFLAGS-tst-backtrace4.c): Likewise.
4513         (CFLAGS-tst-backtrace5.c): Likewise.
4514         (LDFLAGS-tst-backtrace2): Likewise.
4515         (LDFLAGS-tst-backtrace3): Likewise.
4516         (LDFLAGS-tst-backtrace4): Likewise.
4517         (LDFLAGS-tst-backtrace5): Likewise.
4518         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4519         tst-backtrace4 and tst-backtrace5.
4520
4521 2013-01-18  Anton Blanchard  <anton@samba.org>
4522             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4523
4524         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4525         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4526         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4527         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4529         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4530         "+r" and remove output regs list as redundant.  Add explicit inline
4531         asm to specify register of return val to work around compiler codegen
4532         bug.  Remove (int) cast on return value.  Add return type parameter to
4533         use in macro so that this macro does not truncate return value for
4534         64-bit values.
4535         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4536         pass to INTERNAL_VSYSCALL_NCS.
4537         (INLINE_VSYSCALL): Add 'long int' as return type to
4538         INTERNAL_VSYSCALL_NCS macro invocation.
4539         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4540         INTERNAL_VSYSCALL_NCS macro invocation.
4541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4542
4543 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4544
4545         [BZ #14496]
4546         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4547         Fix application of SIMD FP exception mask.
4548
4549         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4550         mp_no from a power of two.
4551         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4552         __mpexp_twomm1.  Use __pow_mp.
4553
4554         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4555         multiplication.
4556
4557 2013-01-17  David S. Miller  <davem@davemloft.net>
4558
4559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4560
4561 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4562
4563         [BZ #15023]
4564         * include/complex.h: Condition contents on [!_COMPLEX_H].
4565         (__kernel_casinhf): New prototype.
4566         (__kernel_casinh): Likewise.
4567         (__kernel_casinhl): Likewise.
4568         * math/Makefile (libm_calls): Add k_casinh.
4569         * math/k_casinh.c: New file.
4570         * math/k_casinhf.c: Likewise.
4571         * math/k_casinhl.c: Likewise.
4572         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4573         finite nonzero arguments.
4574         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4575         finite nonzero arguments.
4576         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4577         finite nonzero arguments.
4578         * math/s_casinh.c: Do not include <float.h>.
4579         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4580         * math/s_casinhf.c: Do not include <float.h>.
4581         (__casinhf): Move code for finite nonzero arguments to
4582         k_casinhf.c.
4583         * math/s_casinhl.c: Do not include <float.h>.
4584         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4585         redefine.
4586         (__casinhl): Move code for finite nonzero arguments to
4587         k_casinhl.c.
4588         * math/libm-test.inc (cacos_test): Add more tests.
4589         * sysdeps/i386/fpu/libm-test-ulps: Update.
4590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4591
4592 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4593
4594         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4595         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4596         [!HAVE_MREMAP]: Remove [defined linux] case.
4597         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4598
4599 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4600
4601         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4602
4603 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4604
4605         * elf/elf.h (R_386_SIZE32): New relocation.
4606         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4607         R_386_SIZE32.
4608         (elf_machine_rela): Likewise.
4609         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4610         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4611
4612 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4613
4614         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4615         (FP_FAST_FMA): Do not define.
4616         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4617         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4618         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4619         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4620         !_SOFT_FLOAT]: Likewise.
4621         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4622         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4623         value.
4624         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4625         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4626         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4627         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4628         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4629         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4630         file.
4631
4632 2013-01-16  Andreas Schwab  <schwab@suse.de>
4633
4634         [BZ #14327]
4635         * include/stdlib.h (__mktemp): Add declaration.
4636         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4637         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4638
4639 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4640
4641         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4642         definitions.
4643         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4644         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4645         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4646         definitions here.
4647         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4648         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4649         definitions.
4650         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4651         and ONE.
4652         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4653         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4654         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4655         definitions.
4656         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4657         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4658         definitions.
4659         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4660
4661         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4662
4663 2013-01-15  David S. Miller  <davem@davemloft.net>
4664
4665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4666         trunc{,f} to libm-sysdep_routes.
4667         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4669         file.
4670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4672         file.
4673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4674         file.
4675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4677         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4678         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4679         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4680         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4681         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4682         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4683
4684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4685         nearbyint{,f} to libm-sysdep_routes.
4686         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4688         New file.
4689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4690         file.
4691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4692         New file.
4693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4694         file.
4695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4697         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4698         file.
4699         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4700         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4701         file.
4702         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4703         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4704         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4705
4706         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4707         libc_feholdexcept and libc_fesetenv.
4708
4709 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4710
4711         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4712
4713 2013-01-14  David S. Miller  <davem@davemloft.net>
4714
4715         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4716         (SPARC_ASM_VIS2_IFUNC): Likewise.
4717         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4719         use of 'siam' instruction.
4720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4721         Likewise.
4722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4723         Likewise.
4724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4725         Likewise.
4726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4727         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4728         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4729         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4731         file.
4732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4733         file.
4734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4735         file.
4736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4737         file.
4738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4739         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4741         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4743         new VIS2 routines.
4744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4747         Likewise.
4748         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4749         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4750         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4751         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4753         routines to libm-sysdep_routines.
4754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4755
4756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4757         fdim/fdimf to libm-sysdep_routines.
4758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4759         file.
4760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4762         file.
4763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4766         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4767         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4768         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4769         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4770
4771 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4772
4773         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4774         to optimize copies.
4775
4776         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4777         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4778         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4779
4780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4781         local variable MPTWO.
4782         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4783         Likewise.
4784
4785 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4786
4787         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4788         GLOB_NOESCAPE.
4789
4790 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4791
4792         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4793
4794 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4795
4796         * manual/pattern.texi (glob_t): Document gl_flags.
4797         (glob64_t): Likewise.
4798
4799 2013-01-11  David S. Miller  <davem@davemloft.net>
4800
4801         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4802         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4803         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4804         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4805         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4806         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4807         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4808         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4809         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4810         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4811         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4812         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4813         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4814
4815         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4816         sparc V9 rather than using V8 code.
4817         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4818         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4819
4820         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4821         Move to...
4822         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4823         Here.
4824
4825 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4826
4827         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4828         not in the main loop.
4829         * configure: Regenerated.
4830
4831 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4832
4833         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4834         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4835         to just #else.
4836         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4837         [!__GLIBC_HAVE_LONG_LONG] case.
4838         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4839         condition to just #else.
4840         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4841         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4842         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4843         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4844         unconditional.
4845         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4846         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4847         #elif condition to just #else.
4848         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4849         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4850         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4851         #elif condition to just #else.
4852
4853 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4854
4855         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4856         (EF_MIPS_ARCH_64): Fix value.
4857         (EF_MIPS_ARCH_32R2): New.
4858         (EF_MIPS_ARCH_64R2): New.
4859
4860 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4861
4862         * Makeconfig (+link-pie-before-libc): New.
4863         (+link-pie-after-libc): Likewise.
4864         (+link-pie-tests): Likewise.
4865         (+link-pie): Rewritten.
4866         (link-before-libc): Remove $(config-LDFLAGS).
4867         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4868         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4869         (config-LDFLAGS): Renamed to ...
4870         (rtld-LDFLAGS): This.
4871         (rtld-tests-LDFLAGS): New macro.
4872         (link-libc-rpath-link): Likewise.
4873         (link-libc-tests-rpath-link): Likewise.
4874         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4875         (link-libc): Prepand $(link-libc-rpath-link).
4876         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4877         (test-program-prefix): New macro.
4878         (test-via-rtld-prefix): Likewise.
4879         (test-program-cmd): Likewise.
4880         (host-test-program-cmd): Likewise.
4881         * Makefile ($(common-objpfx)testrun.sh): Replace
4882         $(run-program-prefix) with $(test-program-prefix).
4883         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4884         $(rtld-LDFLAGS).
4885         ($(common-objpfx)shlib.lds): Likewise.
4886         (build-module-helper): Likewise.
4887         ($(common-objpfx)format.lds): Likewise.
4888         * Rules (binaries-pie-tests): New.
4889         (binaries-pie-notests): Likewise.
4890         (binaries-pie): Rewritten.
4891         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4892         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4893         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4894         (make-test-out): Replace $(host-built-program-cmd) with
4895         $(host-test-program-cmd).
4896         * config.make.in (build-hardcoded-path-in-tests): New variable.
4897         * configure.in (--enable-hardcoded-path-in-tests): New configure
4898         option.
4899         (hardcoded_path_in_tests): New AC_SUBST.
4900         * configure: Regenerated.
4901         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4902         $(built-program-cmd) with $(test-program-cmd).
4903         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4904         (test_program_cmd): This.
4905         * elf/Makefile ($(objpfx)order.out): Run test with
4906         $(test-program-prefix).
4907         ($(objpfx)order2.out): Likewise.
4908         ($(objpfx)tst-initorder.out): Likewise.
4909         ($(objpfx)tst-initorder2.out): Likewise.
4910         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4911         $(test-program-cmd).
4912         ($(objpfx)tst-array1-static.out): Likewise.
4913         ($(objpfx)tst-array2.out): Likewise.
4914         ($(objpfx)tst-array3.out): Likewise.
4915         ($(objpfx)tst-array4.out): Likewise.
4916         ($(objpfx)tst-array5.out): Likewise.
4917         ($(objpfx)tst-array5-static.out): Likewise.
4918         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4919         $(test-program-cmd).
4920         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4921         $(run-program-prefix) with $(test-program-prefix).
4922         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4923         (test_program_prefix): This.
4924         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4925         $(run-program-prefix) with $(test-program-prefix).
4926         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4927         (test_program_prefix): This.
4928         * iconvdata/tst-tables.sh: Likewise.
4929         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4930         $(run-program-prefix) with $(test-program-prefix).
4931         ($(objpfx)tst-translit.out): Likewise.
4932         ($(objpfx)tst-gettext2.out): Likewise.
4933         ($(objpfx)tst-gettext4.out): Likewise.
4934         ($(objpfx)tst-gettext6.out): Likewise.
4935         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4936         (test_program_prefix): This.
4937         * intl/tst-gettext2.sh: Likewise.
4938         * intl/tst-gettext4.sh  Likewise.
4939         * intl/tst-gettext6.sh: Likewise.
4940         * intl/tst-translit.sh: Likewise.
4941         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4942         with $(test-program-cmd).
4943         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4944         $(run-program-prefix) with $(test-program-prefix).
4945         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4946         (test_program_prefix): This.
4947         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4948         $(run-program-prefix) with $(test-program-prefix).
4949         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4950         (test_program_prefix): This.
4951         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4952         * posix/Makefile ($(objpfx)globtest.out): Replace
4953         $(run-via-rtld-prefix) and $(test-wrapper) with
4954         $(test-program-prefix) and $(test-via-rtld-prefix).
4955         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4956         $(test-program-prefix).
4957         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4958         $(host-test-program-cmd).
4959         (tst-spawn-ARGS): Likewise.
4960         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4961         $(test-program-prefix).
4962         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4963         (test_via_rtld_prefix): This.
4964         (test_wrapper): Renamed to ...
4965         (test_program_prefix): This.
4966         (run_program_prefix): Replaced by test_program_prefix.
4967         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4968         (test_program_prefix): This.
4969         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4970         with $(host-test-program-cmd).
4971         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4972         $(run-program-prefix) with $(test-program-prefix).
4973         ($(objpfx)tst-printf.out): Likewise.
4974         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4975         $(test-program-cmd).
4976         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4977         (test_program_prefix): This.
4978         * stdio-common/tst-unbputc.sh: Likewise.
4979         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4980         $(run-program-prefix) with $(test-program-prefix).
4981         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4982         (test_program_prefix): This.
4983         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4984         $(built-program-cmd) with $(test-program-cmd).
4985
4986 2013-01-11  Andreas Jaeger  <aj@suse.de>
4987
4988         [BZ #15003]
4989         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
4990         value. Sync with Linux 3.7.
4991
4992 2013-01-10  David S. Miller  <davem@davemloft.net>
4993
4994         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
4995         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4996         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4997
4998 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4999
5000         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5001         never set.
5002         * configure: Regenerated.
5003
5004 2013-01-10  David S. Miller  <davem@davemloft.net>
5005
5006         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5007         sparc V9 rather than using V8 code.
5008         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5009         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5010
5011 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5012
5013         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5014         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5015         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5016         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5017         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5018         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5019         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5020         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5021         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5022         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5023         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5024         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5025         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5026         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5027         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5028         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5029         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5030         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5031         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5032         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5033         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5034         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5035         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5036         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5037         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5038         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5039         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5040
5041 2013-01-10  David S. Miller  <davem@davemloft.net>
5042
5043         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5044
5045 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5046
5047         * posix/Makefile (tests-static): New variable.
5048         (tests): Add $(tests-static).
5049         (tst-exec-static-ARGS): New variable.
5050         (tst-spawn-static-ARGS): Likewise.
5051         * posix/tst-exec-static.c: New file.
5052         * posix/tst-spawn-static.c: Likewise.
5053         * posix/tst-exec.c: Support run directly.
5054         * posix/tst-spawn.c: Likewise.
5055
5056 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5057
5058         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5059         long.
5060         * math/bits/mathcalls.h (llrint): Likewise.
5061         (llround): Likewise.
5062         * stdlib/stdlib.h (struct drand48_data): Likewise.
5063         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5064         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5065         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5066         Likewise.
5067         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5068         Likewise.
5069         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5070         (elf_greg_t): Likewise.
5071         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5072         (__jmp_buf): Likewise.
5073         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5074         definitions.
5075         (llrint): Likewise, for all definitions.
5076         (llrintl): Likewise.
5077
5078         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5079         Remove [__GNUC__] condition.
5080         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5081         condition to just [__USE_ISOC99].
5082         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5083
5084 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5085
5086         [BZ #14200]
5087         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5088         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5089         defined.
5090         (_POSIX_V6_ILP32_OFF32): Likewise.
5091         (_XBS5_ILP32_OFF32): Likewise.
5092         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5093         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5094
5095 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5096
5097         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5098
5099         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5100         doubles __mpexp_twomm1.  Adjust usage.
5101         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5102         Remove.
5103
5104 2013-01-10  Andreas Schwab  <schwab@suse.de>
5105
5106         [BZ #14964]
5107         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5108         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5109
5110 2013-01-09  David S. Miller  <davem@davemloft.net>
5111
5112         [BZ #15003]
5113         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5114         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5115         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5116         TCP_FASTOPEN): Define.
5117         (tcp_repair_opt): New structure.
5118         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5119         enum values.
5120         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5121         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5122         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5123         (tcp_cookie_transactions): New structure.
5124
5125 2013-01-09  Anton Blanchard  <anton@samba.org>
5126
5127         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5128         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5129         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5130         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5131
5132 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5133
5134         * include/features.h (__USE_ANSI): Remove.
5135
5136 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5137
5138         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5139
5140         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5141
5142 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5143
5144         * sysdeps/s390/fpu/libm-test-ulps: Update.
5145
5146         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5147
5148         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5149         (__acr): Likewise.
5150         (__cpy): Likewise.
5151         (norm): Likewise.
5152         (denorm): Likewise.
5153         (__mp_dbl): Likewise.
5154         (__dbl_mp): Likewise.
5155         (add_magnitudes): Likewise.
5156         (sub_magnitudes): Likewise.
5157         (__add): Likewise.
5158         (__sub): Likewise.
5159         (__mul): Likewise.
5160         (__inv): Likewise.
5161         (__dvd): Likewise.
5162         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5163         (__acr): Likewise.
5164         (__cpy): Likewise.
5165         (norm): Likewise.
5166         (denorm): Likewise.
5167         (__mp_dbl): Likewise.
5168         (__dbl_mp): Likewise.
5169         (add_magnitudes): Likewise.
5170         (sub_magnitudes): Likewise.
5171         (__add): Likewise.
5172         (__sub): Likewise.
5173         (__mul): Likewise.
5174         (__inv): Likewise.
5175         (__dvd): Likewise.
5176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5177         (__acr): Likewise.
5178         (__cpy): Likewise.
5179         (norm): Likewise.
5180         (denorm): Likewise.
5181         (__mp_dbl): Likewise.
5182         (__dbl_mp): Likewise.
5183         (add_magnitudes): Likewise.
5184         (sub_magnitudes): Likewise.
5185         (__add): Likewise.
5186         (__sub): Likewise.
5187         (__mul): Likewise.
5188         (__inv): Likewise.
5189         (__dvd): Likewise.
5190
5191 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5194         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5195         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5196         2 && __USE_EXTERN_INLINES]: Likewise.
5197
5198 2013-01-08  Andreas Jaeger  <aj@suse.de>
5199
5200         [BZ# 14985]
5201         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5202         Remove.
5203         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5204         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5205
5206 2013-01-07  Anton Blanchard  <anton@samba.org>
5207
5208         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5209         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5210         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5211         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5212         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5213         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5214         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5215         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5217         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5218         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5219         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5220         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5221         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5222         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5223         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5224         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5225         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5226         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5227         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5228         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5229         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5230         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5231         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5232         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5233         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5234         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5235         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5236         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5237         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5238         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5240         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5241         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5242         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5243         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5244         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5245         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5246         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5247         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5248         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5249         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5250         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5251
5252 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5253
5254         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5255         (__MALLOC_PMT): Likewise.
5256         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5257         [__GNUC__], only on [_LIBC].
5258         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5259         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5260         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5261         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5262         forward declaration.
5263         (realloc_hook_ini): Likewise.
5264         (memalign_hook_ini): Likewise.
5265         (__libc_memalign): Do not use __MALLOC_PMT in variable
5266         declaration.
5267         (__libc_valloc): Likewise.
5268         (__libc_pvalloc): Likewise.
5269         (__libc_calloc): Likewise.
5270         (__posix_memalign): Likewise.
5271
5272         [BZ #14996]
5273         * math/s_casinh.c: Include <float.h>.
5274         (__casinh): Do not do computation with squaring and square root
5275         for large arguments.
5276         * math/s_casinhf.c: Include <float.h>.
5277         (__casinhf): Do not do computation with squaring and square root
5278         for large arguments.
5279         * math/s_casinhl.c: Include <float.h>.
5280         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5281         (__casinhl): Do not do computation with squaring and square root
5282         for large arguments.
5283         * math/libm-test.inc (casin_test): Add more tests.
5284         (casinh_test): Likewise.
5285         * sysdeps/i386/fpu/libm-test-ulps: Update.
5286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5287
5288 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5291         (__x86_64_raw_data_cache_size): Likewise.
5292         (__x86_64_data_cache_size_half): Likewise.
5293         (__x86_64_raw_data_cache_size_half): Likewise.
5294         (__x86_64_shared_cache_size): Likewise.
5295         (__x86_64_raw_shared_cache_size): Likewise.
5296         (__x86_64_shared_cache_size_half): Likewise.
5297         (__x86_64_raw_shared_cache_size_half): Likewise.
5298         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5299         to ...
5300         (__x86_data_cache_size): This.
5301         (__x86_64_raw_data_cache_size): Renamed to ...
5302         (__x86_raw_data_cache_size): This.
5303         (__x86_64_data_cache_size_half): Renamed to ...
5304         (__x86_data_cache_size_half): This.
5305         (__x86_64_raw_data_cache_size_half): Renamed to ...
5306         (__x86_raw_data_cache_size_half): This.
5307         (__x86_64_shared_cache_size): Renamed to ...
5308         (__x86_shared_cache_size): This.
5309         (__x86_64_raw_shared_cache_size): Renamed to ...
5310         (__x86_raw_shared_cache_size): This.
5311         (__x86_64_shared_cache_size_half): Renamed to ...
5312         (__x86_shared_cache_size_half): This.
5313         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5314         (__x86_raw_shared_cache_size_half): This.
5315         * sysdeps/x86_64/memcpy.S: Updated.
5316         * sysdeps/x86_64/memset.S: Likewise.
5317         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5318         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5319         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5320
5321 2013-01-04  David S. Miller  <davem@davemloft.net>
5322
5323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5324
5325 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5326
5327         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5328         1 to avoid redefinition warning.
5329         (__USE_GNU): Don't define.
5330         (init_signaling_nan): Protoize.
5331
5332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5333
5334 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5335
5336         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5337         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5338         (__cpymn): Likewise.
5339         (norm): Remove commented code.
5340         (denorm): Likewise.
5341         (__mp_dbl): Likewise.
5342         (__inv): Likewise.
5343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5344         (__cpymn): Likewise.
5345         (norm): Remove commented code.
5346         (denorm): Likewise.
5347         (__mp_dbl): Likewise.
5348         (__inv): Likewise.
5349
5350         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5351         mp_no value for 1.0 and 2.0.
5352         (norm): Use RADIXI instead of radixi.d.
5353         (denorm): Likewise.
5354         (__mul): Use 0.0 instead of zero.d.
5355         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5356         mp_no value for 1.0 and 2.0.
5357         (norm): Use RADIXI instead of radixi.d.
5358         (denorm): Likewise.
5359         (__mul): Use 0.0 instead of zero.d.
5360
5361 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5362
5363         [BZ #14994]
5364         * math/s_casinh.c (__casinh): Reduce finite argument to first
5365         quadrant then set signs of results at the end.
5366         * math/s_casinhf.c (__casinhf): Likewise.
5367         * math/s_casinhl.c (__casinhl): Likewise.
5368         * math/libm-test.inc (casin_test): Add more tests.
5369         (casinh_test): Likewise.
5370         * sysdeps/i386/fpu/libm-test-ulps: Update.
5371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5372
5373 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5374
5375         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5376
5377         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5378
5379         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5380         declarations.
5381         (denorm): Likewise.
5382         (__mp_dbl): Likewise.
5383         (__inv): Likewise.
5384
5385         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5386         and adjust the header comment.
5387
5388         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5389         variable name from declaration.
5390
5391 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5392
5393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5394         Initialize COMMON_CPUID_INDEX_7 element.
5395         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5396         (CPUID_RTM): Likewise.
5397         (HAS_RTM): Likewise.
5398         (COMMON_CPUID_INDEX_7): New enum.
5399
5400 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5401
5402         [BZ #14981]
5403         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5404         size is zero, record memory as freed.
5405
5406 2013-01-03  Andreas Jaeger  <aj@suse.de>
5407
5408         * po/ia.po: Add new Interlingua translation.
5409
5410 2012-01-03  Allan McRae  <allan@archlinux.org>
5411
5412         * locale/programs/localedef.c: Fix description of '--posix' flag.
5413
5414 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5415
5416         * NEWS: Update dates in second copyright notice.
5417         * README: Update copyright dates in example.
5418         * manual/libc.texinfo: Update copyright dates.
5419         * scripts/test-installation.pl: Update copyright date in --version
5420         output.
5421
5422         * hurd/ctty-input.c: Fix copyright notice formatting.
5423         * hurd/ctty-output.c: Likewise.
5424         * hurd/dtable.c: Likewise.
5425         * hurd/hurd-raise.c: Likewise.
5426         * hurd/hurdprio.c: Likewise.
5427         * hurd/msgportdemux.c: Likewise.
5428         * misc/sys/file.h: Likewise.
5429         * misc/sys/ioctl.h: Likewise.
5430         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5431         * sysdeps/mach/hurd/chdir.c: Likewise.
5432         * sysdeps/mach/hurd/fchdir.c: Likewise.
5433         * sysdeps/mach/hurd/rename.c: Likewise.
5434         * sysdeps/mach/hurd/rmdir.c: Likewise.
5435         * sysdeps/mach/hurd/seekdir.c: Likewise.
5436         * sysdeps/mach/hurd/setsid.c: Likewise.
5437         * sysdeps/posix/wait3.c: Likewise.
5438
5439         * All files with FSF copyright notices: Update copyright dates
5440         using scripts/update-copyrights.
5441         * intl/plural.c: Regenerated.
5442         * locale/programs/charmap-kw.h: Likewise.
5443         * locale/programs/locfile-kw.h: Likewise.
5444
5445 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5446
5447         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5448         four values.
5449
5450         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5451         calculation loop and add branch prediction.
5452
5453         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5454         check access beyond bounds of m1np.
5455
5456         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5457         MPTWO.
5458         (__inv): Remove local variable MPTWO to use the global
5459         constant.
5460         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5461         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5462         variable MPTWO.
5463         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5464         MP3HALFS static const.
5465
5466 2013-01-01  David S. Miller  <davem@davemloft.net>
5467
5468         * po/ca.po: Update from translation team.
5469
5470 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5471
5472         * scripts/update-copyrights: New file.
5473         * Makeconfig: Reformat copyright notice.
5474         * ctype/ctype.h: Likewise.
5475         * debug/swprintf_chk.c: Likewise.
5476         * elf/dl-cache.c: Likewise.
5477         * elf/dl-debug.c: Likewise.
5478         * elf/dl-object.c: Likewise.
5479         * grp/initgroups.c: Likewise.
5480         * hurd/Makefile: Likewise.
5481         * hurd/hurd/signal.h: Likewise.
5482         * hurd/hurdfault.c: Likewise.
5483         * hurd/hurdioctl.c: Likewise.
5484         * hurd/hurdlookup.c: Likewise.
5485         * hurd/intr-msg.c: Likewise.
5486         * iconv/gconv_open.c: Likewise.
5487         * libio/swprintf.c: Likewise.
5488         * locale/lc-ctype.c: Likewise.
5489         * locale/nl_langinfo.c: Likewise.
5490         * mach/Machrules: Likewise.
5491         * mach/Makefile: Likewise.
5492         * malloc/obstack.h: Likewise.
5493         * manual/Makefile: Likewise.
5494         * manual/tsort.awk: Likewise.
5495         * misc/bits/stab.def: Likewise.
5496         * nis/nis_print_group_entry.c: Likewise.
5497         * nis/nis_table.c: Likewise.
5498         * nis/nss_compat/compat-pwd.c: Likewise.
5499         * nis/nss_compat/compat-spwd.c: Likewise.
5500         * po/Makefile: Likewise.
5501         * posix/fnmatch.c: Likewise.
5502         * posix/regex.h: Likewise.
5503         * resolv/Makefile: Likewise.
5504         * resolv/nss_dns/dns-network.c: Likewise.
5505         * resolv/res_hconf.c: Likewise.
5506         * scripts/gen-sorted.awk: Likewise.
5507         * soft-fp/soft-fp.h: Likewise.
5508         * stdio-common/printf.h: Likewise.
5509         * stdlib/monetary.h: Likewise.
5510         * stdlib/random.c: Likewise.
5511         * stdlib/random_r.c: Likewise.
5512         * sysdeps/generic/Makefile: Likewise.
5513         * sysdeps/gnu/Makefile: Likewise.
5514         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5515         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5516         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5517         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5518         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5519         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5520         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5521         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5522         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5523         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5524         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5525         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5526         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5527         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5528         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5529         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5530         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5532         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5533         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5534         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5535         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5536         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5539         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5540         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5541         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5542         * sysdeps/mach/hurd/errnos.awk: Likewise.
5543         * sysdeps/mach/hurd/fork.c: Likewise.
5544         * sysdeps/mach/hurd/getcwd.c: Likewise.
5545         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5546         * sysdeps/mach/hurd/mmap.c: Likewise.
5547         * sysdeps/mach/hurd/utimes.c: Likewise.
5548         * sysdeps/mach/hurd/xmknod.c: Likewise.
5549         * sysdeps/posix/profil.c: Likewise.
5550         * sysdeps/posix/readdir_r.c: Likewise.
5551         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5552         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5553         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5554         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5556         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5557         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5558         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5560         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5561         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5562         * sysdeps/pthread/lio_listio.c: Likewise.
5563         * sysdeps/sparc/dl-procinfo.h: Likewise.
5564         * sysdeps/unix/i386/sysdep.S: Likewise.
5565         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5566         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5567         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5568         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5570         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5571         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5572         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5573         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5574         * sysdeps/wordsize-32/divdi3.c: Likewise.
5575         * time/sys/time.h: Likewise.
5576         * wcsmbs/Makefile: Likewise.
5577
5578 2013-01-01  David S. Miller  <davem@davemloft.net>
5579
5580         * po/fr.po: Update from translation team.
5581
5582         * catgets/gencat.c: Update copyright year.
5583         * csu/version.c: Likewise.
5584         * debug/catchsegv.sh: Likewise.
5585         * debug/pcprofiledump.c: Likewise.
5586         * debug/xtrace.sh: Likewise.
5587         * elf/ldconfig.c: Likewise.
5588         * elf/ldd.bash.in: Likewise.
5589         * elf/pldd.c: Likewise.
5590         * elf/sotruss.ksh: Likewise.
5591         * elf/sprof.c: Likewise.
5592         * iconv/iconv_prog.c: Likewise.
5593         * iconv/iconvconfig.c: Likewise.
5594         * locale/programs/locale.c: Likewise.
5595         * locale/programs/localedef.c: Likewise.
5596         * login/programs/pt_chown.c: Likewise.
5597         * malloc/memusage.sh: Likewise.
5598         * malloc/memusagestat.c: Likewise.
5599         * malloc/mtrace.pl: Likewise.
5600         * nscd/nscd.c: Likewise.
5601         * nss/getent.c: Likewise.
5602         * nss/makedb.c: Likewise.
5603         * posix/getconf.c: Likewise.
5604
5605 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5606
5607         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5608         numbers.
5609
5610 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5611
5612         * math/bits/mathcalls.h (modf): Use __nonnull.
5613
5614 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5615
5616         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5617         (split): Use macro CN instead of the bare value.
5618         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5619         could be used.
5620         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5621         instead of the bare value.
5622         (power1): Likewise.
5623
5624 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5625
5626         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5627         __ATAN_TWOM.
5628         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5629
5630         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5631         their values.
5632         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5634         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5635         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5636
5637 2012-12-28  Andreas Jaeger  <aj@suse.de>
5638
5639         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5640         values are from Linux 3.7.
5641
5642         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5643         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5644
5645 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5646
5647         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5648         TRUE case.
5649
5650         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5651         (norm): Likewise.
5652         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5653         variables with preprocessor constants.
5654         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5655         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5656         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5657
5658 2012-12-27  Bruno Haible  <bruno@clisp.org>
5659
5660         [BZ #14317]
5661         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5662         only if needed.
5663
5664 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5665
5666         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5667         and use variable directly.
5668         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5669
5670         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5671         MPONE.
5672         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5674         variable MPONE.
5675         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5676         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5677         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5678         include directive.  Remove local variable MPONE.
5679         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5680         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5681         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5682
5683 2012-12-25  David S. Miller  <davem@davemloft.net>
5684
5685         * version.h (RELEASE): Set to "development".
5686         (VERSION): Set to "2.17.90".
5687         * NEWS: Add 2.18 section.
5688
5689 2012-12-21  David S. Miller  <davem@davemloft.net>
5690
5691         * po/hr.po: Update from translation team.
5692
5693 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5694
5695         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5696
5697 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5698
5699         * NEWS:  Mention new memcpy for MIPS.
5700
5701 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5702
5703         * manual/contrib.texi (Contributors): Spelling correction.
5704
5705 2012-12-15  David S. Miller  <davem@davemloft.net>
5706
5707         * po/ru.po: Update from translation team.
5708
5709 2012-12-13  David S. Miller  <davem@davemloft.net>
5710
5711         * NEWS: Mention IFUNC testsuite enhancements.
5712
5713         * po/pl.po: Update from translation team.
5714         * po/bg.po: Likewise.
5715
5716         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5717         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5718
5719 2012-12-11  David S. Miller  <davem@davemloft.net>
5720
5721         * po/sv.po: Update from translation team.
5722
5723         * po/vi.po: Update from translation team.
5724
5725         * po/cs.po: Update from translation team.
5726
5727         * po/de.po: Update from translation team.
5728         * po/eo.po: Likewise.
5729         * po/nl.po: Likewise.
5730
5731 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5732
5733         [BZ #14246]
5734         * manual/argp.texi (Argp Helper Functions): Move node to follow
5735         Argp Parsing State.
5736
5737         [BZ #14872]
5738         * manual/conf.texi (Limits on File System Capacity): Mention if
5739         terminating null is included in the max size.
5740
5741 2012-12-10  Andreas Jaeger  <aj@suse.de>
5742
5743         * po/cs.po: Update from translation team.
5744
5745 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5746
5747         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5748         void pointer and cast to uintptr_t.
5749         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5750         path.
5751         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5752         * sysdeps/s390/s390-64/memset.S: Likewise.
5753
5754 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5755
5756         [BZ #14833]
5757         * menual/message.texi (Message Translation): Fix typos.
5758         (Helper programs for gettext): Likewise.
5759
5760 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5761
5762         [BZ #14898]
5763         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5764         Change to -1.
5765
5766 2012-12-07  David S. Miller  <davem@davemloft.net>
5767
5768         * po/libc.pot: Update.
5769
5770 2012-12-07  Richard Henderson  <rth@redhat.com>
5771
5772         [BZ #10114]
5773         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5774         normal/normal case to before the switch.
5775         (_FP_DIV): Likewise.
5776
5777 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5778             Mike Frysinger  <vapier@gentoo.org>
5779
5780         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5781         check for __NR_fadvise64_64.
5782
5783 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5784
5785         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5786         0, not just to plain "0" as a statement.
5787         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5788         with cw.
5789
5790 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5791
5792         * NEWS: Use sourceware.org in Bugzilla URL.
5793
5794 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5795
5796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5797         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5798
5799         * stdio-common/tst-put-error.c (do_test): Add newline to the
5800         padded test to ensure flush.
5801
5802 2012-12-05  Jeff Law  <law@redhat.com>
5803
5804         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5805
5806 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5807
5808         * README: Don't refer to ports add-on as distributed separately.
5809         Mention AArch64 in list of systems supported in the ports add-on.
5810
5811         * LICENSES: Add more non-FSF copyright and license notices.
5812
5813         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5814         ((unused)).
5815
5816         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5817
5818         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5819         10000 as width of padded output.
5820
5821 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5822
5823         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5824
5825         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5826         variable LX with __attribute__ ((unused)).
5827         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5828         Likewise.
5829         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5830         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5832         with __attribute__ ((unused)).
5833
5834 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5835
5836         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5837
5838 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5839
5840         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5841         (CFLAGS-nldbl-acos.c): New variable.
5842         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5843         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5844         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5845         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5846         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5847         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5848         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5849         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5850         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5851         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5852         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5853         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5854         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5855         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5856         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5857         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5858         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5859         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5860         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5861         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5862         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5863         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5864         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5865         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5866         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5867         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5868         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5869         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5870         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5871         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5872         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5873         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5874         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5875         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5876         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5877         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5878         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5879         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5880         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5881         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5882         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5883         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5884         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5885         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5886         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5887         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5888         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5889         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5890         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5891         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5892         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5893         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5894         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5895         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5896         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5897         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5898         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5899         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5900         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5901         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5902         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5903         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5904         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5905         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5906         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5907         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5908         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5909         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5910         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5911         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5912         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5913         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5914         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5915         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5916         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5917         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5918         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5919         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5920         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5921         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5922         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5923         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5924         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5925         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5926         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5927         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5928         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5929         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5930         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5931         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5932         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5933         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5934         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5935         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5936         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5937         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5938         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5939
5940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5941         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5942
5943         [BZ #14914]
5944         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5945         whole low double instead of just low 47 bits when splitting values
5946         into two parts.
5947
5948 2012-12-03  Allan McRae  <allan@archlinux.org>
5949
5950         * manual/stdio.texi (Predefined Printf Handlers): Remove
5951         @hsep and @vsep usage.
5952
5953 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5954
5955         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5956         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5957
5958 2012-12-03  Jeff Law  <law@redhat.com>
5959
5960         * time/sys/time.h (settimeofday): Do not mark TV argument
5961         as __nonnull.
5962
5963 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5964
5965         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5966         when currently writing and seek to current position when not.
5967         * libio/Makefile (tests): Remove bug-fclose1.
5968         * libio/bug-fclose1.c: Delete.
5969
5970 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5971
5972         * manual/arith.texi (feenableexcept): Fix typo.
5973         (fedisableexcept): Likewise.
5974
5975 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5976
5977         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5978         second, differently-typed declaration, rather than a cast.
5979
5980 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5981
5982         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5983         * include/rpc/svc.h: ... here.
5984
5985 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5986
5987         [BZ #13013]
5988         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
5989         depending n and resplen2 to catch cases where answer
5990         equals answerp2.
5991
5992 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
5993
5994         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
5995         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
5996
5997 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
5998
5999         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6000
6001 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6002
6003         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6004
6005 2012-11-28  Jeff Law  <law@redhat.com>
6006
6007         [BZ #13761]
6008         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6009         dataset_temporary.  Track alloca usage into alloca_used.
6010         If dataset is large allocate and release it via malloc/free.
6011
6012 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6013
6014         [BZ #14197]
6015         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6016
6017 2012-11-28  David S. Miller  <davem@davemloft.net>
6018
6019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6020
6021 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6022
6023         [BZ #14803]
6024         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6025         of pi/2 rounded to nearest to 64 bits.
6026         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6027         nearest to 64 bits.
6028         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6029         bits.
6030
6031 2012-11-28  Jeff Law <law@redhat.com>
6032             Martin Osvald <mosvald@redhat.com>
6033
6034         [BZ #14889]
6035         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6036         * sunrpc/svc.c: Include time.h.
6037         (__svc_accept_failed): New function.
6038         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6039         any reason other than EINTR, call __svc_accept_failed.
6040         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6041         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6042
6043 2012-11-28  Andreas Schwab  <schwab@suse.de>
6044
6045         * scripts/abilist.awk: Also handle indirect functions in .opd
6046         section.
6047
6048 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6049
6050         [BZ #13881]
6051         * sysdeps/x86/fpu/powl_helper.c: New file.
6052         * sysdeps/x86/fpu/Makefile: Likewise.
6053         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6054         (p3): New object.
6055         (__ieee754_powl): Use __powl_helper for finite arguments except
6056         integer exponents below 8.
6057         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6058         (p3): New object.
6059         (__ieee754_powl): Use __powl_helper for finite arguments except
6060         integer exponents below 8.
6061         * math/libm-test.inc (pow_test): Add more tests and enable some
6062         previously disabled tests.
6063         * sysdeps/i386/fpu/libm-test-ulps: Update.
6064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6065
6066 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6067             Carlos O'Donell  <carlos_odonell@mentor.com>
6068
6069         * nss/makedb.c (is_prime): Assert that input is odd and greater
6070         than 4.  Note that fact in a comment too.
6071         (next_prime): Add 4 to input.
6072
6073 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6074
6075         [BZ #11741]
6076         * libio/Makefile (tests): Add test case tst-fwrite-error.
6077         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6078         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6079         * libio/tst-fwrite-error.c: New test case.
6080
6081 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6082
6083         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6084         before casting to void *.
6085         * include/libc-internal.h (__pointer_type): New macro.
6086         (__integer_if_pointer_type_sub): Likewise.
6087         (__integer_if_pointer_type): Likewise.
6088         (cast_to_integer): Likewise.
6089         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6090         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6091         before casting to atomic64_t.
6092         (atomic_exchange_acq): Likewise.
6093         (__arch_exchange_and_add_body): Likewise.
6094         (__arch_add_body): Likewise.
6095         (atomic_add_negative): Likewise.
6096         (atomic_add_zero): Likewise.
6097
6098 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6099
6100         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6101         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6102         (add_fdes): Likewise.
6103         (linear_search_fdes): Likewise.
6104         (binary_search_unencoded_fdes): Likewise.
6105
6106 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6107
6108         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6109
6110 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6111
6112         * configure.in: Autodetect C++ header directories.
6113         * configure: Regenerated.
6114
6115 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6116
6117         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6118
6119 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6120
6121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6122
6123 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6124
6125         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6126         LDBL_MANT_DIG == 106]: Disable some tests.
6127         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6128         Likewise.
6129         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6130         Likewise.
6131
6132         [BZ #14871]
6133         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6134         input for small inputs.  Return +/- pi/2 for large inputs.
6135         * math/libm-test.inc (atan_test): Add more tests.
6136
6137         * sysdeps/generic/unwind-dw2-fde-glibc.c
6138         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6139         __attribute__ ((unused)).
6140
6141         [BZ #14645]
6142         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6143         x * y if x and y are nonzero and z is zero.
6144
6145         [BZ #14811]
6146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6147         nonzero exponents with absolute value below 0x1p-117 to +/-
6148         0x1p-117.
6149
6150         [BZ #14869]
6151         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6152         up arguments below 2**-450, not just those below 2**-500.
6153         * math/libm-test.inc (hypot_test): Add another test.
6154
6155         [BZ #14868]
6156         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6157         Return a+b for ratio over 2**120, not 2**60.
6158         * math/libm-test.inc (hypot_test): Add another test.
6159
6160         * math/libm-test.inc (clog_test): Use
6161         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6162         (clog10_test): Likewise.
6163
6164         [BZ #6778]
6165         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6166
6167 2012-11-22  Andreas Schwab  <schwab@suse.de>
6168
6169         * sysdeps/i386/fpu/libm-test-ulps: Update.
6170
6171 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6172
6173         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6174         printf output with newline.
6175
6176 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         [BZ #14865]
6179         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6180         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6181         -z nodlopen, -z initfirst and -z execstack support.
6182         * configure: Regenerated.
6183
6184         * elf/elf.h (DF_1_NODIRECT): New macro.
6185         (DF_1_IGNMULDEF): Likewise.
6186         (DF_1_NOKSYMS): Likewise.
6187         (DF_1_NOHDR): Likewise.
6188         (DF_1_EDITED): Likewise.
6189         (DF_1_NORELOC): Likewise.
6190         (DF_1_SYMINTPOSE): Likewise.
6191         (DF_1_GLOBAUDIT): Likewise.
6192         (DF_1_SINGLETON): Likewise.
6193         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6194         DT_1_SUPPORTED_MASK bits.
6195         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6196
6197 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6198
6199         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6200
6201 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6202
6203         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6204         macro.
6205
6206         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6207         (sendmmsg): Move declarations...
6208         * socket/sys/socket.h: ... here.
6209         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6210         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6211         include it from...
6212         * socket/recvmmsg.c: ... this new file.
6213         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6214         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6215         definition of __sendmmsg hidden.
6216         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6217         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6218         Move ENOSYS stub into and include it from...
6219         * socket/sendmmsg.c: ... this new file.
6220         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6221         (sysdep_routines): Move recvmmsg and sendmmsg...
6222         * socket/Makefile (routines): ... here.
6223         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6224         (GLIBC_PRIVATE): Add __sendmmsg.
6225         * include/sys/socket.h (__sendmmsg): Add declarations.
6226         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6227         sendmmsg.
6228
6229 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6230
6231         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6232         variable I1 with __attribute__ ((unused)).
6233         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6234
6235 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6236
6237         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6238         DUMMY variables with __attribute__ ((unused)).
6239
6240         * bits/byteswap.h: Include <bits/types.h>.
6241         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6242
6243 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6244
6245         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6246         string_t.  Do not manually set errno.
6247         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6248         length with __strnlen.  Make sure to both set errno and return it on
6249         failure.
6250
6251 2012-11-19  David S. Miller  <davem@davemloft.net>
6252
6253         With help from Joseph Myers.
6254         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6255         very large arguments properly.
6256         * math/libm-test.inc (atan_test): New tests.
6257         (atan2_test): New tests.
6258         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6260
6261 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6262
6263         [BZ #14856]
6264         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6265         Define to 3.
6266
6267         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6268         [POSIX] (EADDRNOTAVAIL): Likewise.
6269         [POSIX] (EAFNOSUPPORT): Likewise.
6270         [POSIX] (EALREADY): Likewise.
6271         [POSIX] (ECONNABORTED): Likewise.
6272         [POSIX] (ECONNREFUSED): Likewise.
6273         [POSIX] (ECONNRESET): Likewise.
6274         [POSIX] (EDESTADDRREQ): Likewise.
6275         [POSIX] (EDQUOT): Likewise.
6276         [POSIX] (EHOSTUNREACH): Likewise.
6277         [POSIX] (EIDRM): Likewise.
6278         [POSIX] (EISCONN): Likewise.
6279         [POSIX] (ELOOP): Likewise.
6280         [POSIX] (EMULTIHOP): Likewise.
6281         [POSIX] (ENETDOWN): Likewise.
6282         [POSIX] (ENETUNREACH): Likewise.
6283         [POSIX] (ENOBUFS): Likewise.
6284         [POSIX] (ENODATA): Likewise.
6285         [POSIX] (ENOLINK): Likewise.
6286         [POSIX] (ENOMSG): Likewise.
6287         [POSIX] (ENOPROTOOPT): Likewise.
6288         [POSIX] (ENOSR): Likewise.
6289         [POSIX] (ENOSTR): Likewise.
6290         [POSIX] (ENOTCONN): Likewise.
6291         [POSIX] (ENOTSOCK): Likewise.
6292         [POSIX] (EOPNOTSUPP): Likewise.
6293         [POSIX] (EOVERFLOW): Likewise.
6294         [POSIX] (EPROTO): Likewise.
6295         [POSIX] (EPROTONOSUPPORT): Likewise.
6296         [POSIX] (EPROTOTYPE): Likewise.
6297         [POSIX] (ESTALE): Likewise.
6298         [POSIX] (ETIME): Likewise.
6299         [POSIX] (ETXTBSY): Likewise.
6300         [POSIX] (EWOULDBLOCK): Likewise.
6301         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6302         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6303         [POSIX] (SEEK_CUR): Likewise.
6304         [POSIX] (SEEK_END): Likewise.
6305         [POSIX || UNIX98] (mode_t): Do not require.
6306         [POSIX] (off_t): Likewise.
6307         [POSIX] (pid_t): Likewise.
6308         [POSIX] (sys/stat.h): Do not allow header.
6309         [POSIX] (unistd.h): Likewise.
6310         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6311         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6312         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6313         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6314         require.
6315         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6316         sigevent): Specify elements.
6317         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6318         entry.
6319         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6320         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6321
6322         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6323         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6324         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6325         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6326         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6327         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6328         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6329         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6330         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6331         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6332         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6333         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6334         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6335         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6336         Likewise.
6337         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6338         Likewise.
6339         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6340         Likewise.
6341         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6342         Likewise.
6343         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6344         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6345         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6346         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6347         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6348         Specify lower bound on value.
6349         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6350         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6351         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6352         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6353         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6354         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6355         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6356         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6357         value.
6358         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6359         as optional.
6360         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6361         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6362         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6363         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6364         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6365         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6366         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6367         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6368         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6369         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6370         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6371         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6372         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6373         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6374         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6375         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6376         entry.
6377         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6378         optional.
6379         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6380         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6381         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6382         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6383         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6384         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6385         Likewise.
6386         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6387         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6388         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6389         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6390         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6391         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6392         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6393         as optional.
6394         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6395         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6396         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6397         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6398         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6399         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6400         specify as optional.
6401         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6402         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6403         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6404         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6405         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6406         [XPG3] (NL_LANGMAX): Likewise.
6407         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6408         [POSIX || XPG3] (NL_NMAX): Likewise.
6409         [POSIX || XPG3] (NL_SETMAX): Likewise.
6410         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6411         [XPG3] (NZERO): Likewise.
6412         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6413         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6414         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6415         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6416         (REG_ERANGE): Expect.
6417         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6418         optional-constant.
6419         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6420         Use (void) in prototype.
6421         [POSIX] (*_t): Allow.
6422         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6423         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6424         (WRDE_BADVAL): Expect.
6425
6426         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6427         expect.
6428         [XPG3 || XPG4] (O_RSYNC): Likewise.
6429         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6430         Likewise.
6431         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6432         [XPG3 || XPG4] (sigqueue): Likewise.
6433         [XPG3 || XPG4] (sigtimedwait): Likewise.
6434         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6435         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6436         [XPG3 || XPG4] (vsnprintf): Likewise.
6437         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6438         Likewise.
6439         [XPG3 || XPG4] (blksize_t): Likewise.
6440         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6441         Likewise.
6442         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6443         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6444         [XPG3 || XPG4] (struct itimerspec): Likewise.
6445         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6446         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6447         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6448         [XPG3 || XPG4] (clockid_t): Likewise.
6449         [XPG3 || XPG4] (timer_t): Likewise.
6450         [XPG3 || XPG4] (clock_getres): Likewise.
6451         [XPG3 || XPG4] (clock_gettime): Likewise.
6452         [XPG3 || XPG4] (clock_settime): Likewise.
6453         [XPG3 || XPG4] (nanosleep): Likewise.
6454         [XPG3 || XPG4] (timer_create): Likewise.
6455         [XPG3 || XPG4] (timer_delete): Likewise.
6456         [XPG3 || XPG4] (timer_gettime): Likewise.
6457         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6458         [XPG3 || XPG4] (timer_settime): Likewise.
6459         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6460         [XPG3 || XPG4] (getlogin_r): Likewise.
6461         [XPG3 || XPG4] (pread): Likewise.
6462         [XPG3 || XPG4] (pthread_atfork): Likewise.
6463         [XPG3 || XPG4] (pwrite): Likewise.
6464
6465         [BZ #14835]
6466         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6467         <bits/siginfo.h>.
6468
6469 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6470
6471         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6472         finalizing MALLSTREAM.
6473
6474         * sysdeps/mach/hurd/syncfs.c: New file.
6475
6476 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6477
6478         [BZ #14719]
6479         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6480         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6481         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6482         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6483         (_nss_dns_gethostbyname4_r): Likewise.
6484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6485         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6486
6487 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6488
6489         [BZ #13763]
6490         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6491
6492 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6493
6494         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6495         * elf/cache.c (print_entry): Print ",AArch64" for
6496         FLAG_AARCH64_LIB64
6497
6498         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6499         * elf/cache.c (print_entry): Print ",hard-float" for
6500         FLAG_ARM_LIBHF.
6501
6502 2012-11-18  David S. Miller  <davem@davemloft.net>
6503
6504         With help from Joseph Myers.
6505         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6506         cutoff to 2**-13.
6507         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6508         cutoff to 2**-25.
6509         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6510         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6511         small.
6512         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6513         * math/libm-test.inc (y0_test): New tests.
6514         (y1_test): New tests.
6515         * sysdeps/i386/fpu/libm-test-ulps: Update.
6516         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6518
6519 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6520
6521         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6522         64-bit targets.
6523         * configure: Regenerated.
6524
6525 2012-11-17  David S. Miller  <davem@davemloft.net>
6526
6527         [BZ #14811]
6528         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6529         nonzero exponents with absolute value below 0x1p-128 to +/-
6530         0x1p-128.
6531
6532 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6533
6534         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6535
6536         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6537
6538         * posix/getconf-speclist.c: New file.
6539         * posix/posix-envs.def: Likewise.
6540         * posix/confstr.c (START_ENV_GROUP): New macro.
6541         (END_ENV_GROUP): Likewise.
6542         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6543         (KNOWN_PRESENT_ENV_STRING): Likewise.
6544         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6545         (UNKNOWN_ENVIRONMENT): Likewise.
6546         (confstr): Include posix-envs.def instead of handling
6547         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6548         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6549         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6550         (END_ENV_GROUP): Likewise.
6551         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6552         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6553         (UNKNOWN_ENVIRONMENT): Likewise.
6554         (__sysconf): Include posix-envs.def instead of handling associated
6555         cases directly here.
6556         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6557         preprocessing getconf-speclist.c rather than running getconf or
6558         generating empty file.
6559
6560 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6561
6562         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6563
6564 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6565
6566         [BZ #14672]
6567         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6568
6569 2012-11-16  David S. Miller  <davem@davemloft.net>
6570
6571         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6572         smaller than LDBL_EPSILON/2.0L, just return xm1.
6573
6574 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6575
6576         * elf/tst-array1.c (init): Set constructor priority to 1000.
6577         (fini): Set destructor priority to 1000.
6578         * elf/tst-array2dep.c: Likewise.
6579
6580 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6581
6582         [BZ #11741]
6583         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6584         (_IO_new_file_xsputn): Also return EOF if none of the input
6585         data was written when overflow failed.
6586         * libio/iopadn.c (_IO_padn): Likewise.
6587         * libio/iowpadn.c (_IO_wpadn): Likewise.
6588         * stdio-common/tst-put-error.c: Add copyright notice.
6589         (do_test): Add case for printing padded string.
6590         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6591         _IO_padn returned error.
6592         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6593         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6594         return EOF.
6595
6596 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6597
6598         * libio/libioP.h: Add comment note that the references to C++
6599         bits are now obsolete.
6600
6601 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6602
6603         * math/libm-test.inc (check_complex): Use asprintf.
6604
6605 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6606
6607         * debug/pcprofiledump.c (print_version): Update copyright year.
6608         * malloc/memusagestat.c (print_version): Likewise.
6609
6610 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6611
6612         [BZ #14831]
6613         * elf/Makefile (tests): Add tst-audit8.
6614         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6615         ($(objpfx)tst-audit8.out): New target.
6616         (tst-audit8-ENV): New variable.
6617         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6618         audit if l_reloc_result is NULL.
6619         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6620         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6621         * elf/tst-audit8.c: New file.
6622
6623 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6624
6625         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6626         * misc/Makefile (CFLAGS-select.c): Define.
6627         * posix/Makefile (CFLAGS-pause.c): Define.
6628
6629 2012-11-13  David S. Miller  <davem@davemloft.net>
6630
6631         * crypt/Makefile: Move test targets after toplevel Rules
6632         inclusion.  Grab any necessary sysdep routines when linking.
6633         * crypt/md5.c (md5_process_block): Remove define, we will always
6634         name it __md5_process_block.
6635         (md5_finish_ctx): Update md5_process_block call.
6636         (md5_stream): Likewise.
6637         (md5_process_bytes): Likewise.
6638         (md5_process_block): Rename to __md5_process_block and move to ...
6639         * crypt/md5-block.c: ... here.
6640         * crypt/sha256.c (sha256_process_block): Move to ...
6641         * crypt/sha256-block.c: ... here.
6642         * crypt/sha512.c (sha512_process_block): Move to ...
6643         * crypt/sha512-block.c: ... here.
6644         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6645         path.
6646         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6647         * sysdeps/sparc/sparc64/multiarch/Makefile
6648         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6649         crypt subdir.
6650         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6651         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6652         multiarch changes.
6653         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6654         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6655         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6656         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6657         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6658         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6659         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6660         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6661         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6662         file.
6663         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6664         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6665         file.
6666         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6667
6668 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6669
6670         * timezone/tzselect.ksh: Update from tzcode git revision
6671         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6672         * timezone/zdump.c: Likewise.
6673         * timezone/zic.c: Likewise.
6674         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6675         in TZVERSION setting, not $(PKGVERSION).
6676         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6677         REPORT_BUGS_TO settings.
6678
6679         [BZ #14838]
6680         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6681         macro.
6682
6683 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6684
6685         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6686         detection to immediately after _FP_ROUND().
6687         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6688         bits are 0.
6689
6690 2012-11-11  David S. Miller  <davem@davemloft.net>
6691
6692         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6693         inttypes.h
6694         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6695         __close rather than their public counterparts.
6696
6697 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6698
6699         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6700         file.
6701         [UNIX98] (sem_timedwait): Do not expect.
6702         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6703         [XPG4 || UNIX98] (sockatmark): Do not expect.
6704         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6705         (clock_getcpuclockid): Do not expect.
6706         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6707         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6708         Do not expect.
6709         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6710         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6711         [UNIX98] (vwscanf): Likewise.
6712         [UNIX98] (vswscanf): Likewise.
6713
6714 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6715
6716         * timezone/version.h: Remove file.
6717         * timezone/README: Do not refer to version.h.
6718         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6719         $(objpfx)version.h.
6720         ($(objpfx)zdump.o): Likewise.
6721         ($(objpfx)version.h): New target.
6722
6723         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6724         2012i.
6725         * timezone/README: Don't mention modification to tzselect.ksh.
6726         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6727         work on unmodified tzselect.ksh.  Substitute version numbers in
6728         tzselect.ksh.
6729
6730         * Makefile (format-me): Remove.
6731         (INSTALL): Adjust indentation.  Use commands directly instead of
6732         using $(format-me).
6733
6734         * aclocal.m4 (ACX_PKGVERSION): New macro.
6735         (ACX_BUGURL): Likewise.
6736         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6737         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6738         (REPORT_BUGS_TO): Likewise.
6739         * configure: Regenerated.
6740         * config.h.in (PKGVERSION): New macro.
6741         (REPORT_BUGS_TO): Likewise.
6742         * config.make.in (PKGVERSION): New variable.
6743         (PKGVERSION_TEXI): Likewise.
6744         (REPORT_BUGS_TO): Likewise.
6745         (REPORT_BUGS_TEXI): Likewise.
6746         * Makefile (format-me): Use -I$(common-objpfx)manual.
6747         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6748         ($(common-objpfx)manual/%): New target.
6749         (manual/%): Remove target.
6750         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6751         (print_version): Use PKGVERSION.
6752         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6753         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6754         and REPORT_BUGS_TO.
6755         ($(objpfx)xtrace): Likewise.
6756         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6757         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6758         (print_version): Use PKGVERSION.
6759         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6760         (do_version): Use PKGVERSION.
6761         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6762         REPORT_BUGS_TO.
6763         (common-ldd-rewrite): Likewise.
6764         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6765         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6766         (print_version): Use PKGVERSION.
6767         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6768         * elf/pldd.c (argp_program_bug_address): Remove variable.
6769         (more_help): New function.
6770         (argp): Use more_help.
6771         (print_version): Use PKGVERSION.
6772         * elf/sln.c (main): Use PKGVERSION.
6773         (usage): Use REPORT_BUGS_TO.
6774         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6775         (top level): Use PKGVERSION.
6776         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6777         (print_version): Use PKGVERSION.
6778         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6779         (print_version): Use PKGVERSION.
6780         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6781         (print_version): Use PKGVERSION.
6782         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6783         (print_version): Use PKGVERSION.
6784         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6785         (print_version): Use PKGVERSION.
6786         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6787         (print_version): Use PKGVERSION.
6788         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6789         and BUGURL.
6790         ($(objpfx)memusage): Likewise.
6791         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6792         (do_version): Use PKGVERSION.
6793         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6794         (print_version): Use PKGVERSION.
6795         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6796         ($PKGVERSION): New variable.
6797         ($REPORT_BUGS_TO): Likewise.
6798         (usage): Use $REPORT_BUGS_TO.
6799         (top level): Use $PKGVERSION.
6800         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6801         ($(objpfx)pkgvers.texi): New rule.
6802         ($(objpfx)stamp-pkgvers): Likewise.
6803         * manual/install.texi: Include pkgvers.texi.
6804         (--with-pkgversion): Document new configure option.
6805         (--with-bugurl): Likewise.
6806         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6807         than necessarily for this particular distribution.  Use
6808         REPORT_BUGS_TO for where to report bugs.
6809         * INSTALL: Regenerated.
6810         * manual/libc.texinfo: Include pkgvers.texi.
6811         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6812         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6813         (print_version): Use PKGVERSION.
6814         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6815         (print_version): Use PKGVERSION.
6816         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6817         (print_version): Use PKGVERSION.
6818         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6819         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6820         macro.
6821         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6822         (print_version): Use PKGVERSION.
6823         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6824         (print_version): Use PKGVERSION.
6825         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6826         and PKGVERSION.
6827
6828         * timezone/checktab.awk: Update from tzcode 2012i.
6829         * timezone/ialloc.c: Likewise.
6830         * timezone/private.h: Likewise.
6831         * timezone/scheck.c: Likewise.
6832         * timezone/tzfile.h: Likewise.
6833         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6834         (TZVERSION): Hardcode tzcode version number.
6835         * timezone/zdump.c: Update from tzcode 2012i.
6836         * timezone/zic.c: Likewise.
6837         * timezone/version.h: New file.
6838         * timezone/README: Describe version.h.  Update upstream location.
6839
6840         [BZ #14824]
6841         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6842         (mktemp): Enable declaration.
6843         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6844         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6845         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6846         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6847         Likewise.
6848         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6849         Likewise.
6850         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6851         Likewise.
6852         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6853         Likewise.
6854         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6855         Likewise.
6856         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6857         Likewise.
6858
6859         [BZ #14821]
6860         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6861         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6862         for copies of such integer values.
6863         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6864         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6865
6866 2012-11-09  Andreas Jaeger  <aj@suse.de>
6867
6868         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6869         definitions and declarations that are provided by
6870         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6871
6872 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6873
6874         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6875         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6876         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6877         definition.
6878
6879 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6880
6881         * elf/elf.h: Update comment before AArch64 relocations.
6882
6883 2012-11-07  David S. Miller  <davem@davemloft.net>
6884
6885         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6886         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6887         (__start_context): Declare.
6888         (__makecontext_ret): Delete.
6889         (__makecontext): Hook up __start_context instead of
6890         __makecontext_ret.
6891         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6892         (sysdep_routines): Add __start_context when in stdlib.
6893
6894 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6895
6896         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6897         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6898         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6899         hardcoded "nm".
6900         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6901         (READELF): New variable.  Use it instead of hardcoded "readelf".
6902
6903 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6904
6905         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6906         * sysdeps/x86/Makefile: Here.
6907         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6908         * sysdeps/x86/tst-xmmymm.sh: This.
6909
6910 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6911
6912         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6913         expectations.
6914         [UNIX98] (pthread_barrier_t): Do not expect.
6915         [UNIX98] (pthread_barrierattr_t): Likewise.
6916         [UNIX98] (pthread_spinlock_t): Likewise.
6917         [UNIX98] (pthread_barrier_destroy): Likewise.
6918         [UNIX98] (pthread_barrier_init): Likewise.
6919         [UNIX98] (pthread_barrier_wait): Likewise.
6920         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6921         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6922         [UNIX98] (pthread_barrierattr_init): Likewise.
6923         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6924         [UNIX98] (pthread_getcpuclockid): Likewise.
6925         [UNIX98] (pthread_mutex_timedlock): Likewise.
6926         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6927         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6928         [UNIX98] (pthread_sigmask): Likewise.
6929         [UNIX98] (pthread_spin_destroy): Likewise.
6930         [UNIX98] (pthread_spin_init): Likewise.
6931         [UNIX98] (pthread_spin_lock): Likewise.
6932         [UNIX98] (pthread_spin_trylock): Likewise.
6933         [UNIX98] (pthread_spin_unlock): Likewise.
6934         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6935         Do not expect.
6936         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6937         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6938         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6939         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6940         [XPG3 || XPG4] (pthread_key_t): Likewise.
6941         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6942         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6943         [XPG3 || XPG4] (pthread_once_t): Likewise.
6944         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6945         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6946         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6947         [XPG3 || XPG4] (pthread_t): Likewise.
6948
6949         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6950         not expect.
6951         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6952
6953         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6954         Change function return type to int.
6955
6956         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6957         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6958         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6959         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6960         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6961         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6962         [!POSIX] (posix_madvise): Likewise.
6963         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6964         && !UNIX98].
6965         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6966         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6967         (mode_t): Likewise.
6968         (posix_mem_offset): Likewise.
6969         (posix_typed_mem_get_info): Likewise.
6970         (posix_typed_mem_open): Likewise.
6971
6972         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6973         Change condition to [XOPEN2K8].
6974
6975         * conform/conformtest.pl: Preprocess allow-header data with -x c
6976         instead of from stdin.
6977         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6978         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6979         [C99-based standards] (cerfc): Likewise.
6980         [C99-based standards] (cexp2): Likewise.
6981         [C99-based standards] (cexpm1): Likewise.
6982         [C99-based standards] (clog10): Likewise.
6983         [C99-based standards] (clog1p): Likewise.
6984         [C99-based standards] (clog2): Likewise.
6985         [C99-based standards] (clgamma): Likewise.
6986         [C99-based standards] (ctgamma): Likewise.
6987         [C99-based standards] (cerff): Likewise.
6988         [C99-based standards] (cerfcf): Likewise.
6989         [C99-based standards] (cexp2f): Likewise.
6990         [C99-based standards] (cexpm1f): Likewise.
6991         [C99-based standards] (clog10f): Likewise.
6992         [C99-based standards] (clog1pf): Likewise.
6993         [C99-based standards] (clog2f): Likewise.
6994         [C99-based standards] (clgammaf): Likewise.
6995         [C99-based standards] (ctgammaf): Likewise.
6996         [C99-based standards] (cerfl): Likewise.
6997         [C99-based standards] (cerfcl): Likewise.
6998         [C99-based standards] (cexp2l): Likewise.
6999         [C99-based standards] (cexpm1l): Likewise.
7000         [C99-based standards] (clog10l): Likewise.
7001         [C99-based standards] (clog1pl): Likewise.
7002         [C99-based standards] (clog2l): Likewise.
7003         [C99-based standards] (clgammal): Likewise.
7004         [C99-based standards] (ctgammal): Likewise.
7005         * conform/data/inttypes.h-data [C99-based standards]: Include
7006         stdint.h-data.  Remove all expectations for stdint.h contents.
7007         [C99-based standards] (PRI*): Do not allow.
7008         [C99-based standards] (SCN*): Likewise.
7009         [C99-based standards] (*_t): Likewise.
7010         [C99-based-standards] (PRId8): Expect macro.
7011         [C99-based-standards] (PRIi8): Likewise.
7012         [C99-based-standards] (PRIo8): Likewise.
7013         [C99-based-standards] (PRIu8): Likewise.
7014         [C99-based-standards] (PRIx8): Likewise.
7015         [C99-based-standards] (PRIX8): Likewise.
7016         [C99-based-standards] (SCNd8): Likewise.
7017         [C99-based-standards] (SCNi8): Likewise.
7018         [C99-based-standards] (SCNo8): Likewise.
7019         [C99-based-standards] (SCNu8): Likewise.
7020         [C99-based-standards] (SCNx8): Likewise.
7021         [C99-based-standards] (PRIdLEAST8): Likewise.
7022         [C99-based-standards] (PRIiLEAST8): Likewise.
7023         [C99-based-standards] (PRIoLEAST8): Likewise.
7024         [C99-based-standards] (PRIuLEAST8): Likewise.
7025         [C99-based-standards] (PRIxLEAST8): Likewise.
7026         [C99-based-standards] (PRIXLEAST8): Likewise.
7027         [C99-based-standards] (SCNdLEAST8): Likewise.
7028         [C99-based-standards] (SCNiLEAST8): Likewise.
7029         [C99-based-standards] (SCNoLEAST8): Likewise.
7030         [C99-based-standards] (SCNuLEAST8): Likewise.
7031         [C99-based-standards] (SCNxLEAST8): Likewise.
7032         [C99-based-standards] (PRIdFAST8): Likewise.
7033         [C99-based-standards] (PRIiFAST8): Likewise.
7034         [C99-based-standards] (PRIoFAST8): Likewise.
7035         [C99-based-standards] (PRIuFAST8): Likewise.
7036         [C99-based-standards] (PRIxFAST8): Likewise.
7037         [C99-based-standards] (PRIXFAST8): Likewise.
7038         [C99-based-standards] (SCNdFAST8): Likewise.
7039         [C99-based-standards] (SCNiFAST8): Likewise.
7040         [C99-based-standards] (SCNoFAST8): Likewise.
7041         [C99-based-standards] (SCNuFAST8): Likewise.
7042         [C99-based-standards] (SCNxFAST8): Likewise.
7043         [C99-based-standards] (PRId16): Likewise.
7044         [C99-based-standards] (PRIi16): Likewise.
7045         [C99-based-standards] (PRIo16): Likewise.
7046         [C99-based-standards] (PRIu16): Likewise.
7047         [C99-based-standards] (PRIx16): Likewise.
7048         [C99-based-standards] (PRIX16): Likewise.
7049         [C99-based-standards] (SCNd16): Likewise.
7050         [C99-based-standards] (SCNi16): Likewise.
7051         [C99-based-standards] (SCNo16): Likewise.
7052         [C99-based-standards] (SCNu16): Likewise.
7053         [C99-based-standards] (SCNx16): Likewise.
7054         [C99-based-standards] (PRIdLEAST16): Likewise.
7055         [C99-based-standards] (PRIiLEAST16): Likewise.
7056         [C99-based-standards] (PRIoLEAST16): Likewise.
7057         [C99-based-standards] (PRIuLEAST16): Likewise.
7058         [C99-based-standards] (PRIxLEAST16): Likewise.
7059         [C99-based-standards] (PRIXLEAST16): Likewise.
7060         [C99-based-standards] (SCNdLEAST16): Likewise.
7061         [C99-based-standards] (SCNiLEAST16): Likewise.
7062         [C99-based-standards] (SCNoLEAST16): Likewise.
7063         [C99-based-standards] (SCNuLEAST16): Likewise.
7064         [C99-based-standards] (SCNxLEAST16): Likewise.
7065         [C99-based-standards] (PRIdFAST16): Likewise.
7066         [C99-based-standards] (PRIiFAST16): Likewise.
7067         [C99-based-standards] (PRIoFAST16): Likewise.
7068         [C99-based-standards] (PRIuFAST16): Likewise.
7069         [C99-based-standards] (PRIxFAST16): Likewise.
7070         [C99-based-standards] (PRIXFAST16): Likewise.
7071         [C99-based-standards] (SCNdFAST16): Likewise.
7072         [C99-based-standards] (SCNiFAST16): Likewise.
7073         [C99-based-standards] (SCNoFAST16): Likewise.
7074         [C99-based-standards] (SCNuFAST16): Likewise.
7075         [C99-based-standards] (SCNxFAST16): Likewise.
7076         [C99-based-standards] (PRId32): Likewise.
7077         [C99-based-standards] (PRIi32): Likewise.
7078         [C99-based-standards] (PRIo32): Likewise.
7079         [C99-based-standards] (PRIu32): Likewise.
7080         [C99-based-standards] (PRIx32): Likewise.
7081         [C99-based-standards] (PRIX32): Likewise.
7082         [C99-based-standards] (SCNd32): Likewise.
7083         [C99-based-standards] (SCNi32): Likewise.
7084         [C99-based-standards] (SCNo32): Likewise.
7085         [C99-based-standards] (SCNu32): Likewise.
7086         [C99-based-standards] (SCNx32): Likewise.
7087         [C99-based-standards] (PRIdLEAST32): Likewise.
7088         [C99-based-standards] (PRIiLEAST32): Likewise.
7089         [C99-based-standards] (PRIoLEAST32): Likewise.
7090         [C99-based-standards] (PRIuLEAST32): Likewise.
7091         [C99-based-standards] (PRIxLEAST32): Likewise.
7092         [C99-based-standards] (PRIXLEAST32): Likewise.
7093         [C99-based-standards] (SCNdLEAST32): Likewise.
7094         [C99-based-standards] (SCNiLEAST32): Likewise.
7095         [C99-based-standards] (SCNoLEAST32): Likewise.
7096         [C99-based-standards] (SCNuLEAST32): Likewise.
7097         [C99-based-standards] (SCNxLEAST32): Likewise.
7098         [C99-based-standards] (PRIdFAST32): Likewise.
7099         [C99-based-standards] (PRIiFAST32): Likewise.
7100         [C99-based-standards] (PRIoFAST32): Likewise.
7101         [C99-based-standards] (PRIuFAST32): Likewise.
7102         [C99-based-standards] (PRIxFAST32): Likewise.
7103         [C99-based-standards] (PRIXFAST32): Likewise.
7104         [C99-based-standards] (SCNdFAST32): Likewise.
7105         [C99-based-standards] (SCNiFAST32): Likewise.
7106         [C99-based-standards] (SCNoFAST32): Likewise.
7107         [C99-based-standards] (SCNuFAST32): Likewise.
7108         [C99-based-standards] (SCNxFAST32): Likewise.
7109         [C99-based-standards] (PRId64): Likewise.
7110         [C99-based-standards] (PRIi64): Likewise.
7111         [C99-based-standards] (PRIo64): Likewise.
7112         [C99-based-standards] (PRIu64): Likewise.
7113         [C99-based-standards] (PRIx64): Likewise.
7114         [C99-based-standards] (PRIX64): Likewise.
7115         [C99-based-standards] (SCNd64): Likewise.
7116         [C99-based-standards] (SCNi64): Likewise.
7117         [C99-based-standards] (SCNo64): Likewise.
7118         [C99-based-standards] (SCNu64): Likewise.
7119         [C99-based-standards] (SCNx64): Likewise.
7120         [C99-based-standards] (PRIdLEAST64): Likewise.
7121         [C99-based-standards] (PRIiLEAST64): Likewise.
7122         [C99-based-standards] (PRIoLEAST64): Likewise.
7123         [C99-based-standards] (PRIuLEAST64): Likewise.
7124         [C99-based-standards] (PRIxLEAST64): Likewise.
7125         [C99-based-standards] (PRIXLEAST64): Likewise.
7126         [C99-based-standards] (SCNdLEAST64): Likewise.
7127         [C99-based-standards] (SCNiLEAST64): Likewise.
7128         [C99-based-standards] (SCNoLEAST64): Likewise.
7129         [C99-based-standards] (SCNuLEAST64): Likewise.
7130         [C99-based-standards] (SCNxLEAST64): Likewise.
7131         [C99-based-standards] (PRIdFAST64): Likewise.
7132         [C99-based-standards] (PRIiFAST64): Likewise.
7133         [C99-based-standards] (PRIoFAST64): Likewise.
7134         [C99-based-standards] (PRIuFAST64): Likewise.
7135         [C99-based-standards] (PRIxFAST64): Likewise.
7136         [C99-based-standards] (PRIXFAST64): Likewise.
7137         [C99-based-standards] (SCNdFAST64): Likewise.
7138         [C99-based-standards] (SCNiFAST64): Likewise.
7139         [C99-based-standards] (SCNoFAST64): Likewise.
7140         [C99-based-standards] (SCNuFAST64): Likewise.
7141         [C99-based-standards] (SCNxFAST64): Likewise.
7142         [C99-based-standards] (PRIdMAX): Likewise.
7143         [C99-based-standards] (PRIiMAX): Likewise.
7144         [C99-based-standards] (PRIoMAX): Likewise.
7145         [C99-based-standards] (PRIuMAX): Likewise.
7146         [C99-based-standards] (PRIxMAX): Likewise.
7147         [C99-based-standards] (PRIXMAX): Likewise.
7148         [C99-based-standards] (SCNdMAX): Likewise.
7149         [C99-based-standards] (SCNiMAX): Likewise.
7150         [C99-based-standards] (SCNoMAX): Likewise.
7151         [C99-based-standards] (SCNuMAX): Likewise.
7152         [C99-based-standards] (SCNxMAX): Likewise.
7153         [C99-based-standards] (PRIdPTR): Likewise.
7154         [C99-based-standards] (PRIiPTR): Likewise.
7155         [C99-based-standards] (PRIoPTR): Likewise.
7156         [C99-based-standards] (PRIuPTR): Likewise.
7157         [C99-based-standards] (PRIxPTR): Likewise.
7158         [C99-based-standards] (PRIXPTR): Likewise.
7159         [C99-based-standards] (SCNdPTR): Likewise.
7160         [C99-based-standards] (SCNiPTR): Likewise.
7161         [C99-based-standards] (SCNoPTR): Likewise.
7162         [C99-based-standards] (SCNuPTR): Likewise.
7163         [C99-based-standards] (SCNxPTR): Likewise.
7164         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7165         allow.
7166         * conform/data/stdint.h-data: Update comments to clarify
7167         requirements.
7168         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7169         type.
7170         [C99-based standards] (INT8_MAX): Likewise.
7171         [C99-based standards] (INT16_MIN): Likewise.
7172         [C99-based standards] (INT16_MAX): Likewise.
7173         [C99-based standards] (INT32_MIN): Likewise.
7174         [C99-based standards] (INT32_MAX): Likewise.
7175         [C99-based standards] (INT64_MIN): Likewise.
7176         [C99-based standards] (INT64_MAX): Likewise.
7177         [C99-based standards] (UINT8_MAX): Likewise.
7178         [C99-based standards] (UINT16_MAX): Likewise.
7179         [C99-based standards] (UINT32_MAX): Likewise.
7180         [C99-based standards] (UINT64_MAX): Likewise.
7181         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7182         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7183         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7184         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7185         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7186         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7187         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7188         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7189         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7190         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7191         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7192         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7193         [C99-based standards] (INT_FAST8_MIN): Likewise.
7194         [C99-based standards] (INT_FAST8_MAX): Likewise.
7195         [C99-based standards] (INT_FAST16_MIN): Likewise.
7196         [C99-based standards] (INT_FAST16_MAX): Likewise.
7197         [C99-based standards] (INT_FAST32_MIN): Likewise.
7198         [C99-based standards] (INT_FAST32_MAX): Likewise.
7199         [C99-based standards] (INT_FAST64_MIN): Likewise.
7200         [C99-based standards] (INT_FAST64_MAX): Likewise.
7201         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7202         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7203         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7204         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7205         [C99-based standards] (INTPTR_MIN): Likewise.
7206         [C99-based standards] (INTPTR_MAX): Likewise.
7207         [C99-based standards] (UINTPTR_MAX): Likewise.
7208         [C99-based standards] (INTMAX_MIN): Likewise.
7209         [C99-based standards] (INTMAX_MAX): Likewise.
7210         [C99-based standards] (UINTMAX_MAX): Likewise.
7211         [C99-based standards] (PTRDIFF_MIN): Likewise.
7212         [C99-based standards] (PTRDIFF_MAX): Likewise.
7213         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7214         [C99-based standards] (SIZE_MAX): Likewise.
7215         [C99-based standards] (WCHAR_MAX): Likewise.
7216         [C99-based standards] (WINT_MAX): Likewise.
7217         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7218         constraint on value.
7219         [C99-based standards] (WCHAR_MIN): Likewise.
7220         [C99-based standards] (WINT_MIN): Likewise.
7221         [C99-based standards] (*_t): Allow.
7222         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7223         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7224         Include math.h-data and complex.h-data.  Remove all expectations
7225         of math.h and complex.h contents.
7226         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7227         at end of line.
7228         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7229         (struct tm): Expect tag.
7230         [C99-based-standards] (wcstof): Expect function.
7231         [C99-based-standards] (wcstold): Likewise.
7232         [C99-based-standards] (wcstoll): Likewise.
7233         [C99-based-standards] (wcstoull): Likewise.
7234         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7235         macro-int-constant.  Specify type.
7236         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7237         constraint on value.
7238         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7239         Specify type.
7240         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7241         Specify value.
7242         [ISO C standards]: Do not allow headers.
7243         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7244         wcs[abcdefghijklmnopqrstuvwxyz]*.
7245         [ISO C standards] (*_t): Do not allow.
7246         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7247         Expect function.
7248         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7249         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7250         Specify type.
7251         [ISO C standards]: Do not allow headers.
7252         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7253         is[abcdefghijklmnopqrstuvwxyz]*.
7254         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7255         to[abcdefghijklmnopqrstuvwxyz]*.
7256         [ISO C standards] (*_t): Do not allow.
7257         * conform/data/stdalign.h-data: New file.
7258         * conform/data/stdbool.h-data: Likewise.
7259         * conform/data/stdnoreturn.h-data: Likewise.
7260
7261 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7262
7263         [BZ #14815]
7264         * manual/filesys.texi (Directory Entries): Typo fix.
7265         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7266
7267 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7268
7269         * elf/elf.h (EM_AARCH64): New macro.
7270         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7271         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7272         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7273         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7274         (R_AARCH64_TLSDESC): Likewise.
7275         (NT_ARM_TLS): Likewise.
7276         (NT_ARM_HW_BREAK): Likewise.
7277         (NT_ARM_HW_WATCH): Likewise.
7278
7279 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7280
7281         [BZ #14811]
7282         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7283         (__ieee754_powl): Saturate nonzero exponents with absolute value
7284         below 0x1p-79 to +/- 0x1p-79.
7285         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7286         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7287         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7288         nonzero exponents with absolute value below 0x1p-32 to +/-
7289         0x1p-32.
7290         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7291         (__ieee754_powl): Saturate nonzero exponents with absolute value
7292         below 0x1p-79 to +/- 0x1p-79.
7293         * math/libm-test.inc (pow_test): Add more tests.
7294
7295 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7296
7297         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7298         _dl_s390_cap_flags with kernel. Increase string length.
7299         (_dl_s390_platforms): Add z196 and zEC12.
7300
7301 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7302
7303         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7304         Change XOPEN21K to XOPEN2K.
7305
7306 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7307
7308         * string/memmove.c: Use memcpy when possible.
7309
7310 2012-11-06  Andreas Jaeger  <aj@suse.de>
7311
7312         * po/eo.po: Update from translation team.
7313
7314 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7315
7316         [BZ #14793]
7317         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7318         exponent and small x and y exponents, scale x or y up.  Increase
7319         by 2 the exponent used in scaling up.
7320         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7321         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7322         * math/libm-test.inc (fma_test): Add more tests.
7323         (fma_test_towardzero): Likewise.
7324         (fma_test_downward): Likewise.
7325         (fma_test_upward): Likewise.
7326
7327 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7328
7329         [BZ #14805]
7330         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7331         fenv_t *.
7332
7333         [BZ #14801]
7334         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7335         namespace for names of struct fields.
7336         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7337         fenv_t fields.
7338         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7339         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7340
7341 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7342
7343         [BZ #3665]
7344         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7345
7346 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7347
7348         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7349         PTR_DEMANGLE.
7350
7351         [BZ #5246]
7352         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7353         PTR_DEMANGLE.
7354
7355 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7356
7357         [BZ #14797]
7358         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7359         definitely overflow as x * y not x * y + z.
7360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7361         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7362         * math/libm-test.inc (fma_test): Add more tests.
7363         (fma_test_towardzero): Likewise.
7364         (fma_test_downward): Likewise.
7365         (fma_test_upward): Likewise.
7366
7367 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7368
7369         [BZ #157]
7370
7371         * include/stub-tag.h: Remove file.
7372         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7373         '#include' of it.
7374         * manual/maint.texi (Porting): Don't reference it.
7375         * Makerules ($(objpfx)stubs): Likewise.
7376         * dirent/closedir.c: Don't include <stub-tag.h>.
7377         * dirent/dirfd.c: Likewise.
7378         * dirent/fdopendir.c: Likewise.
7379         * dirent/getdents.c: Likewise.
7380         * dirent/getdents64.c: Likewise.
7381         * dirent/opendir.c: Likewise.
7382         * dirent/readdir.c: Likewise.
7383         * dirent/readdir64.c: Likewise.
7384         * dirent/readdir64_r.c: Likewise.
7385         * dirent/readdir_r.c: Likewise.
7386         * dirent/rewinddir.c: Likewise.
7387         * dirent/seekdir.c: Likewise.
7388         * dirent/telldir.c: Likewise.
7389         * gmon/profil.c: Likewise.
7390         * grp/setgroups.c: Likewise.
7391         * inet/if_index.c: Likewise.
7392         * io/access.c: Likewise.
7393         * io/chdir.c: Likewise.
7394         * io/chmod.c: Likewise.
7395         * io/chown.c: Likewise.
7396         * io/close.c: Likewise.
7397         * io/dup.c: Likewise.
7398         * io/dup2.c: Likewise.
7399         * io/dup3.c: Likewise.
7400         * io/euidaccess.c: Likewise.
7401         * io/faccessat.c: Likewise.
7402         * io/fchdir.c: Likewise.
7403         * io/fchmod.c: Likewise.
7404         * io/fchmodat.c: Likewise.
7405         * io/fchown.c: Likewise.
7406         * io/fchownat.c: Likewise.
7407         * io/fcntl.c: Likewise.
7408         * io/flock.c: Likewise.
7409         * io/fstatfs.c: Likewise.
7410         * io/fstatfs64.c: Likewise.
7411         * io/fstatvfs.c: Likewise.
7412         * io/fstatvfs64.c: Likewise.
7413         * io/futimens.c: Likewise.
7414         * io/fxstat.c: Likewise.
7415         * io/fxstat64.c: Likewise.
7416         * io/fxstatat.c: Likewise.
7417         * io/fxstatat64.c: Likewise.
7418         * io/getcwd.c: Likewise.
7419         * io/isatty.c: Likewise.
7420         * io/lchmod.c: Likewise.
7421         * io/lchown.c: Likewise.
7422         * io/link.c: Likewise.
7423         * io/linkat.c: Likewise.
7424         * io/lseek.c: Likewise.
7425         * io/lseek64.c: Likewise.
7426         * io/lxstat64.c: Likewise.
7427         * io/mkdir.c: Likewise.
7428         * io/mkdirat.c: Likewise.
7429         * io/mkfifo.c: Likewise.
7430         * io/mkfifoat.c: Likewise.
7431         * io/open.c: Likewise.
7432         * io/open64.c: Likewise.
7433         * io/openat.c: Likewise.
7434         * io/openat64.c: Likewise.
7435         * io/pipe.c: Likewise.
7436         * io/pipe2.c: Likewise.
7437         * io/poll.c: Likewise.
7438         * io/posix_fadvise.c: Likewise.
7439         * io/posix_fadvise64.c: Likewise.
7440         * io/posix_fallocate.c: Likewise.
7441         * io/posix_fallocate64.c: Likewise.
7442         * io/read.c: Likewise.
7443         * io/readlink.c: Likewise.
7444         * io/readlinkat.c: Likewise.
7445         * io/rmdir.c: Likewise.
7446         * io/sendfile.c: Likewise.
7447         * io/sendfile64.c: Likewise.
7448         * io/statfs.c: Likewise.
7449         * io/statfs64.c: Likewise.
7450         * io/statvfs.c: Likewise.
7451         * io/statvfs64.c: Likewise.
7452         * io/symlink.c: Likewise.
7453         * io/symlinkat.c: Likewise.
7454         * io/ttyname.c: Likewise.
7455         * io/ttyname_r.c: Likewise.
7456         * io/umask.c: Likewise.
7457         * io/unlink.c: Likewise.
7458         * io/unlinkat.c: Likewise.
7459         * io/utime.c: Likewise.
7460         * io/utimensat.c: Likewise.
7461         * io/write.c: Likewise.
7462         * io/xmknod.c: Likewise.
7463         * io/xmknodat.c: Likewise.
7464         * io/xstat.c: Likewise.
7465         * io/xstat64.c: Likewise.
7466         * login/getpt.c: Likewise.
7467         * login/grantpt.c: Likewise.
7468         * login/unlockpt.c: Likewise.
7469         * math/e_acoshl.c: Likewise.
7470         * math/e_acosl.c: Likewise.
7471         * math/e_asinl.c: Likewise.
7472         * math/e_atan2l.c: Likewise.
7473         * math/e_atanhl.c: Likewise.
7474         * math/e_coshl.c: Likewise.
7475         * math/e_expl.c: Likewise.
7476         * math/e_fmodl.c: Likewise.
7477         * math/e_gammal_r.c: Likewise.
7478         * math/e_hypotl.c: Likewise.
7479         * math/e_j0l.c: Likewise.
7480         * math/e_j1l.c: Likewise.
7481         * math/e_jnl.c: Likewise.
7482         * math/e_lgammal_r.c: Likewise.
7483         * math/e_log10l.c: Likewise.
7484         * math/e_log2l.c: Likewise.
7485         * math/e_logl.c: Likewise.
7486         * math/e_powl.c: Likewise.
7487         * math/e_rem_pio2l.c: Likewise.
7488         * math/e_sinhl.c: Likewise.
7489         * math/e_sqrtl.c: Likewise.
7490         * math/fclrexcpt.c: Likewise.
7491         * math/fedisblxcpt.c: Likewise.
7492         * math/feenablxcpt.c: Likewise.
7493         * math/fegetenv.c: Likewise.
7494         * math/fegetexcept.c: Likewise.
7495         * math/fegetround.c: Likewise.
7496         * math/feholdexcpt.c: Likewise.
7497         * math/fesetenv.c: Likewise.
7498         * math/fesetround.c: Likewise.
7499         * math/feupdateenv.c: Likewise.
7500         * math/fgetexcptflg.c: Likewise.
7501         * math/fraiseexcpt.c: Likewise.
7502         * math/fsetexcptflg.c: Likewise.
7503         * math/ftestexcept.c: Likewise.
7504         * math/k_cosl.c: Likewise.
7505         * math/k_rem_pio2l.c: Likewise.
7506         * math/k_sinl.c: Likewise.
7507         * math/k_tanl.c: Likewise.
7508         * math/s_asinhl.c: Likewise.
7509         * math/s_atanl.c: Likewise.
7510         * math/s_cbrtl.c: Likewise.
7511         * math/s_erfl.c: Likewise.
7512         * math/s_expm1l.c: Likewise.
7513         * math/s_log1pl.c: Likewise.
7514         * math/s_tanhl.c: Likewise.
7515         * misc/acct.c: Likewise.
7516         * misc/brk.c: Likewise.
7517         * misc/chflags.c: Likewise.
7518         * misc/chroot.c: Likewise.
7519         * misc/fchflags.c: Likewise.
7520         * misc/fgetxattr.c: Likewise.
7521         * misc/flistxattr.c: Likewise.
7522         * misc/fremovexattr.c: Likewise.
7523         * misc/fsetxattr.c: Likewise.
7524         * misc/fsync.c: Likewise.
7525         * misc/ftruncate.c: Likewise.
7526         * misc/futimes.c: Likewise.
7527         * misc/futimesat.c: Likewise.
7528         * misc/getdomain.c: Likewise.
7529         * misc/getdtsz.c: Likewise.
7530         * misc/gethostid.c: Likewise.
7531         * misc/gethostname.c: Likewise.
7532         * misc/getloadavg.c: Likewise.
7533         * misc/getpagesize.c: Likewise.
7534         * misc/getsysstats.c: Likewise.
7535         * misc/getxattr.c: Likewise.
7536         * misc/gtty.c: Likewise.
7537         * misc/ioctl.c: Likewise.
7538         * misc/lgetxattr.c: Likewise.
7539         * misc/listxattr.c: Likewise.
7540         * misc/llistxattr.c: Likewise.
7541         * misc/lremovexattr.c: Likewise.
7542         * misc/lsetxattr.c: Likewise.
7543         * misc/lutimes.c: Likewise.
7544         * misc/madvise.c: Likewise.
7545         * misc/mincore.c: Likewise.
7546         * misc/mlock.c: Likewise.
7547         * misc/mlockall.c: Likewise.
7548         * misc/mmap.c: Likewise.
7549         * misc/mprotect.c: Likewise.
7550         * misc/msync.c: Likewise.
7551         * misc/munlock.c: Likewise.
7552         * misc/munlockall.c: Likewise.
7553         * misc/munmap.c: Likewise.
7554         * misc/preadv.c: Likewise.
7555         * misc/preadv64.c: Likewise.
7556         * misc/ptrace.c: Likewise.
7557         * misc/pwritev.c: Likewise.
7558         * misc/pwritev64.c: Likewise.
7559         * misc/readv.c: Likewise.
7560         * misc/reboot.c: Likewise.
7561         * misc/remap_file_pages.c: Likewise.
7562         * misc/removexattr.c: Likewise.
7563         * misc/revoke.c: Likewise.
7564         * misc/select.c: Likewise.
7565         * misc/setdomain.c: Likewise.
7566         * misc/setegid.c: Likewise.
7567         * misc/seteuid.c: Likewise.
7568         * misc/sethostid.c: Likewise.
7569         * misc/sethostname.c: Likewise.
7570         * misc/setregid.c: Likewise.
7571         * misc/setreuid.c: Likewise.
7572         * misc/setxattr.c: Likewise.
7573         * misc/sstk.c: Likewise.
7574         * misc/stty.c: Likewise.
7575         * misc/swapoff.c: Likewise.
7576         * misc/swapon.c: Likewise.
7577         * misc/sync.c: Likewise.
7578         * misc/syncfs.c: Likewise.
7579         * misc/syscall.c: Likewise.
7580         * misc/truncate.c: Likewise.
7581         * misc/ualarm.c: Likewise.
7582         * misc/usleep.c: Likewise.
7583         * misc/ustat.c: Likewise.
7584         * misc/utimes.c: Likewise.
7585         * misc/vhangup.c: Likewise.
7586         * misc/writev.c: Likewise.
7587         * posix/_exit.c: Likewise.
7588         * posix/alarm.c: Likewise.
7589         * posix/execve.c: Likewise.
7590         * posix/fexecve.c: Likewise.
7591         * posix/fork.c: Likewise.
7592         * posix/fpathconf.c: Likewise.
7593         * posix/getaddrinfo.c: Likewise.
7594         * posix/getegid.c: Likewise.
7595         * posix/geteuid.c: Likewise.
7596         * posix/getgid.c: Likewise.
7597         * posix/getgroups.c: Likewise.
7598         * posix/getlogin.c: Likewise.
7599         * posix/getlogin_r.c: Likewise.
7600         * posix/getpgid.c: Likewise.
7601         * posix/getpid.c: Likewise.
7602         * posix/getppid.c: Likewise.
7603         * posix/getresgid.c: Likewise.
7604         * posix/getresuid.c: Likewise.
7605         * posix/getsid.c: Likewise.
7606         * posix/getuid.c: Likewise.
7607         * posix/glob64.c: Likewise.
7608         * posix/nanosleep.c: Likewise.
7609         * posix/pathconf.c: Likewise.
7610         * posix/pause.c: Likewise.
7611         * posix/posix_madvise.c: Likewise.
7612         * posix/pread.c: Likewise.
7613         * posix/pread64.c: Likewise.
7614         * posix/pwrite.c: Likewise.
7615         * posix/pwrite64.c: Likewise.
7616         * posix/sched_getaffinity.c: Likewise.
7617         * posix/sched_getp.c: Likewise.
7618         * posix/sched_gets.c: Likewise.
7619         * posix/sched_primax.c: Likewise.
7620         * posix/sched_primin.c: Likewise.
7621         * posix/sched_rr_gi.c: Likewise.
7622         * posix/sched_setaffinity.c: Likewise.
7623         * posix/sched_setp.c: Likewise.
7624         * posix/sched_sets.c: Likewise.
7625         * posix/sched_yield.c: Likewise.
7626         * posix/setgid.c: Likewise.
7627         * posix/setlogin.c: Likewise.
7628         * posix/setpgid.c: Likewise.
7629         * posix/setresgid.c: Likewise.
7630         * posix/setresuid.c: Likewise.
7631         * posix/setsid.c: Likewise.
7632         * posix/setuid.c: Likewise.
7633         * posix/sleep.c: Likewise.
7634         * posix/spawni.c: Likewise.
7635         * posix/sysconf.c: Likewise.
7636         * posix/times.c: Likewise.
7637         * posix/wait.c: Likewise.
7638         * posix/wait3.c: Likewise.
7639         * posix/wait4.c: Likewise.
7640         * posix/waitpid.c: Likewise.
7641         * resolv/gai_sigqueue.c: Likewise.
7642         * resource/getpriority.c: Likewise.
7643         * resource/getrlimit.c: Likewise.
7644         * resource/getrusage.c: Likewise.
7645         * resource/nice.c: Likewise.
7646         * resource/setpriority.c: Likewise.
7647         * resource/setrlimit.c: Likewise.
7648         * resource/ulimit.c: Likewise.
7649         * rt/aio_cancel.c: Likewise.
7650         * rt/aio_fsync.c: Likewise.
7651         * rt/aio_read.c: Likewise.
7652         * rt/aio_sigqueue.c: Likewise.
7653         * rt/aio_suspend.c: Likewise.
7654         * rt/aio_write.c: Likewise.
7655         * rt/clock_getres.c: Likewise.
7656         * rt/clock_gettime.c: Likewise.
7657         * rt/clock_nanosleep.c: Likewise.
7658         * rt/clock_settime.c: Likewise.
7659         * rt/lio_listio.c: Likewise.
7660         * rt/mq_close.c: Likewise.
7661         * rt/mq_getattr.c: Likewise.
7662         * rt/mq_notify.c: Likewise.
7663         * rt/mq_open.c: Likewise.
7664         * rt/mq_receive.c: Likewise.
7665         * rt/mq_send.c: Likewise.
7666         * rt/mq_setattr.c: Likewise.
7667         * rt/mq_timedreceive.c: Likewise.
7668         * rt/mq_timedsend.c: Likewise.
7669         * rt/mq_unlink.c: Likewise.
7670         * rt/shm_open.c: Likewise.
7671         * rt/shm_unlink.c: Likewise.
7672         * rt/timer_create.c: Likewise.
7673         * rt/timer_delete.c: Likewise.
7674         * rt/timer_getoverr.c: Likewise.
7675         * rt/timer_gettime.c: Likewise.
7676         * rt/timer_settime.c: Likewise.
7677         * setjmp/__longjmp.c: Likewise.
7678         * setjmp/setjmp.c: Likewise.
7679         * signal/kill.c: Likewise.
7680         * signal/killpg.c: Likewise.
7681         * signal/raise.c: Likewise.
7682         * signal/sigaction.c: Likewise.
7683         * signal/sigaltstack.c: Likewise.
7684         * signal/sigblock.c: Likewise.
7685         * signal/sigignore.c: Likewise.
7686         * signal/sigintr.c: Likewise.
7687         * signal/signal.c: Likewise.
7688         * signal/sigpause.c: Likewise.
7689         * signal/sigpending.c: Likewise.
7690         * signal/sigqueue.c: Likewise.
7691         * signal/sigreturn.c: Likewise.
7692         * signal/sigset.c: Likewise.
7693         * signal/sigsetmask.c: Likewise.
7694         * signal/sigstack.c: Likewise.
7695         * signal/sigsuspend.c: Likewise.
7696         * signal/sigtimedwait.c: Likewise.
7697         * signal/sigvec.c: Likewise.
7698         * signal/sigwait.c: Likewise.
7699         * signal/sigwaitinfo.c: Likewise.
7700         * signal/sysv_signal.c: Likewise.
7701         * socket/accept.c: Likewise.
7702         * socket/accept4.c: Likewise.
7703         * socket/bind.c: Likewise.
7704         * socket/connect.c: Likewise.
7705         * socket/getpeername.c: Likewise.
7706         * socket/getsockname.c: Likewise.
7707         * socket/getsockopt.c: Likewise.
7708         * socket/isfdtype.c: Likewise.
7709         * socket/listen.c: Likewise.
7710         * socket/recv.c: Likewise.
7711         * socket/recvfrom.c: Likewise.
7712         * socket/recvmsg.c: Likewise.
7713         * socket/send.c: Likewise.
7714         * socket/sendmsg.c: Likewise.
7715         * socket/sendto.c: Likewise.
7716         * socket/setsockopt.c: Likewise.
7717         * socket/shutdown.c: Likewise.
7718         * socket/sockatmark.c: Likewise.
7719         * socket/socket.c: Likewise.
7720         * socket/socketpair.c: Likewise.
7721         * stdio-common/ctermid.c: Likewise.
7722         * stdio-common/cuserid.c: Likewise.
7723         * stdio-common/remove.c: Likewise.
7724         * stdio-common/rename.c: Likewise.
7725         * stdio-common/renameat.c: Likewise.
7726         * stdio-common/tempname.c: Likewise.
7727         * stdlib/getcontext.c: Likewise.
7728         * stdlib/makecontext.c: Likewise.
7729         * stdlib/setcontext.c: Likewise.
7730         * stdlib/swapcontext.c: Likewise.
7731         * stdlib/system.c: Likewise.
7732         * streams/fattach.c: Likewise.
7733         * streams/fdetach.c: Likewise.
7734         * streams/getmsg.c: Likewise.
7735         * streams/getpmsg.c: Likewise.
7736         * streams/putmsg.c: Likewise.
7737         * streams/putpmsg.c: Likewise.
7738         * sysdeps/unix/bsd/getpt.c: Likewise.
7739         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7740         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7741         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7743         Likewise.
7744         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7745         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7746         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7747         * sysvipc/msgctl.c: Likewise.
7748         * sysvipc/msgget.c: Likewise.
7749         * sysvipc/msgrcv.c: Likewise.
7750         * sysvipc/msgsnd.c: Likewise.
7751         * sysvipc/semctl.c: Likewise.
7752         * sysvipc/semget.c: Likewise.
7753         * sysvipc/semop.c: Likewise.
7754         * sysvipc/semtimedop.c: Likewise.
7755         * sysvipc/shmat.c: Likewise.
7756         * sysvipc/shmctl.c: Likewise.
7757         * sysvipc/shmdt.c: Likewise.
7758         * sysvipc/shmget.c: Likewise.
7759         * termios/tcdrain.c: Likewise.
7760         * termios/tcflow.c: Likewise.
7761         * termios/tcflush.c: Likewise.
7762         * termios/tcgetattr.c: Likewise.
7763         * termios/tcgetpgrp.c: Likewise.
7764         * termios/tcsendbrk.c: Likewise.
7765         * termios/tcsetattr.c: Likewise.
7766         * termios/tcsetpgrp.c: Likewise.
7767         * time/adjtime.c: Likewise.
7768         * time/clock.c: Likewise.
7769         * time/getitimer.c: Likewise.
7770         * time/gettimeofday.c: Likewise.
7771         * time/setitimer.c: Likewise.
7772         * time/settimeofday.c: Likewise.
7773         * time/stime.c: Likewise.
7774         * time/time.c: Likewise.
7775
7776 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7777
7778         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7779         /usr/old/bin.
7780
7781         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7782         instead of spaces.
7783         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7784
7785 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7786
7787         [BZ #14796]
7788         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7789         FE_TONEAREST before applying Dekker multiplication and Knuth
7790         addition.  Clear inexact exceptions and check for exact zero
7791         results afterwards.
7792         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7793         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7795         * math/libm-test.inc (fma_test): Add more tests.
7796         (fma_test_towardzero): Likewise.
7797         (fma_test_downward): Likewise.
7798         (fma_test_upward): Likewise.
7799         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7800         function.
7801         (libc_fesetround): New macro.
7802         (libc_fesetroundf): Likewise.
7803         (libc_fesetroundl): Likewise.
7804         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7805         function.
7806         (libc_fesetround_387): Likewise.
7807         (libc_fesetroundf): New macro.
7808         (libc_fesetround): Likewise.
7809         (libc_fesetroundl): Likewise.
7810         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7811         function.
7812         (libc_fesetroundf): New macro.
7813         (libc_fesetround): Likewise.
7814         (libc_fesetroundl): Likewise.
7815         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7816         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7817         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7818         libm_hidden_ver.
7819         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7820         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7821         libm_hidden_def.
7822         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7823         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7824         libm_hidden_ver.
7825         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7826         libm_hidden_def.
7827
7828         [BZ #3439]
7829         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7830         integer constant usable in #if and use that to give value to enum
7831         constant.
7832         (FE_DIVBYZERO): Likewise.
7833         (FE_UNDERFLOW): Likewise.
7834         (FE_OVERFLOW): Likewise.
7835         (FE_INVALID): Likewise.
7836         (FE_INVALID_SNAN): Likewise.
7837         (FE_INVALID_ISI): Likewise.
7838         (FE_INVALID_IDI): Likewise.
7839         (FE_INVALID_ZDZ): Likewise.
7840         (FE_INVALID_IMZ): Likewise.
7841         (FE_INVALID_COMPARE): Likewise.
7842         (FE_INVALID_SOFTWARE): Likewise.
7843         (FE_INVALID_SQRT): Likewise.
7844         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7845         (FE_TONEAREST): Likewise.
7846         (FE_TOWARDZERO): Likewise.
7847         (FE_UPWARD): Likewise.
7848         (FE_DOWNWARD): Likewise.
7849         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7850         (FE_DIVBYZERO): Likewise.
7851         (FE_OVERFLOW): Likewise.
7852         (FE_UNDERFLOW): Likewise.
7853         (FE_INEXACT): Likewise.
7854         (FE_TONEAREST): Likewise.
7855         (FE_DOWNWARD): Likewise.
7856         (FE_UPWARD): Likewise.
7857         (FE_TOWARDZERO): Likewise.
7858         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7859         (FE_UNDERFLOW): Likewise.
7860         (FE_OVERFLOW): Likewise.
7861         (FE_DIVBYZERO): Likewise.
7862         (FE_INVALID): Likewise.
7863         (FE_TONEAREST): Likewise.
7864         (FE_TOWARDZERO): Likewise.
7865         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7866         (FE_OVERFLOW): Likewise.
7867         (FE_UNDERFLOW): Likewise.
7868         (FE_DIVBYZERO): Likewise.
7869         (FE_INEXACT): Likewise.
7870         (FE_TONEAREST): Likewise.
7871         (FE_TOWARDZERO): Likewise.
7872         (FE_UPWARD): Likewise.
7873         (FE_DOWNWARD): Likewise.
7874         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7875         (FE_DIVBYZERO): Likewise.
7876         (FE_OVERFLOW): Likewise.
7877         (FE_UNDERFLOW): Likewise.
7878         (FE_INEXACT): Likewise.
7879         (FE_TONEAREST): Likewise.
7880         (FE_DOWNWARD): Likewise.
7881         (FE_UPWARD): Likewise.
7882         (FE_TOWARDZERO): Likewise.
7883
7884 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7885
7886         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7887
7888 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7889
7890         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7891         commands.  Quote $PWD.
7892         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7893         -x" by "export".
7894         (remove_newlines): Remove.
7895
7896 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7897
7898         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7899         * stdlib/stdlib.h (atof): Moved to ...
7900         * include/bits/stdlib-float.h: Here.  New file.
7901         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7902         * stdlib/bits/stdlib-float.h: New file.
7903         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7904         -mno-sse -mno-mmx.
7905         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7906         <xmmintrin.h>.
7907
7908 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7909
7910         * conform/conformtest.pl (@headers): Add fenv.h.
7911         * conform/data/fenv.h-data: New file.
7912         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7913         include of <math/fenv.h>.
7914
7915         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7916         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7917         && !UNIX98].  Enables tests for XOPEN2K8.
7918         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7919         POSIX2008]: Likewise.
7920
7921         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7922         (struct rusage): Do not expect type or its members.
7923
7924         [BZ #3439]
7925         * math/math.h (FP_NAN): Define macro to integer constant usable in
7926         #if and use that to give value to enum constant.
7927         (FP_INFINITE): Likewise.
7928         (FP_ZERO): Likewise.
7929         (FP_SUBNORMAL): Likewise.
7930         (FP_NORMAL): Likewise.
7931
7932 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7933
7934         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7935         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7936         arguments.
7937
7938 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7939
7940         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7941         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7942         autoconf-time if not.
7943         * configure.in: Remove AC_PREREQ.
7944
7945 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7946
7947         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7948         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7949         of the internal implementation.
7950
7951 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7952
7953         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7954         except include of <misc/sys/syslog.h>.
7955
7956 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7957
7958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7959         function returns with a NULL context exit with zero.
7960
7961 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7962
7963         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7964
7965 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7966
7967         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7968         (run_program_cmd): This.
7969         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7970         (tst_langinfo): New variable.  Use it.
7971
7972 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7973
7974         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7975         floating point opcodes.
7976
7977 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7978
7979         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7980         variable.
7981
7982         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7983
7984         * sysdeps/mach/hurd/powerpc: Remove directory.
7985         * sysdeps/mach/powerpc: Likewise.
7986
7987 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7988
7989         * scripts/check-local-headers.sh: Ignore c++ headers.
7990
7991 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7992
7993         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
7994         __libc_cleanup_region_start argument.
7995
7996 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
7997
7998         [BZ #14784]
7999         [BZ #14785]
8000         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8001         x * y using scaling, not as x * y + z.
8002         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8003         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8004         * math/libm-test.inc (fma_test): Add more tests.
8005         (fma_test_towardzero): Likewise.
8006         (fma_test_downward): Likewise.
8007         (fma_test_upward): Likewise.
8008
8009 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8010
8011         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8012
8013 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8016         New variable.
8017
8018 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8019
8020         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8021
8022 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8023
8024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8025         Fix sort order.
8026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8027         Likewise.
8028
8029 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8030
8031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8032         Fix the order of the list for glibc 2.17.
8033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8034         Likewise.
8035
8036 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8037
8038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8039
8040 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8041
8042         [BZ #14610]
8043         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8044         for low part of x being zero before using __atanl (y).
8045         * math/libm-test.inc (atan2_test): Add another test.
8046
8047         * manual/install.texi (Configuring and compiling): Document
8048         general use of test-wrapper and test-wrapper-env.
8049         * INSTALL: Regenerated.
8050
8051         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8052         (__fma): Do not extract and scale down low bits on after-rounding
8053         systems when result rounded to normal precision would have normal
8054         exponent.
8055         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8056         (__fmal): Do not extract and scale down low bits on after-rounding
8057         systems when result rounded to normal precision would have normal
8058         exponent.
8059         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8060         (__fmal): Do not extract and scale down low bits on after-rounding
8061         systems when result rounded to normal precision would have normal
8062         exponent.
8063         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8064         macro.
8065         (fma_test): Add more tests.
8066         (fma_test_towardzero): Likewise.
8067         (fma_test_downward): Likewise.
8068         (fma_test_upward): Likewise.
8069
8070 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8071
8072         * sysdeps/i386/tininess.h: Renamed to ...
8073         * sysdeps/x86/tininess.h: This.
8074         * sysdeps/x86_64/tininess.h: Removed.
8075
8076 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8077
8078         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8079         input.  Use $(build-program-cmd).
8080         ($(objpfx)tst-array1-static.out): Likewise.
8081         ($(objpfx)tst-array2.out): Likewise.
8082         ($(objpfx)tst-array3.out): Likewise.
8083         ($(objpfx)tst-array4.out): Likewise.
8084         ($(objpfx)tst-array5.out): Likewise.
8085         ($(objpfx)tst-array5-static.out): Likewise.
8086
8087 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8088
8089         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8090         if defined.
8091
8092         * nss/nsswitch.h (nss_interface_function): Provide new
8093         macro for use with NSS functions.
8094         * grp/initgroups.c: Use new macro.
8095         * nss/getXXbyYY.c: Likewise.
8096         * nss/getXXbyYY_r.c: Likewise.
8097         * nss/getXXent.c: Likewise.
8098         * nss/getXXent_r.c: Likewise.
8099         * sysdeps/posix/getaddrinfo.c: Likewise.
8100
8101 2012-10-30  Andreas Jaeger  <aj@suse.de>
8102
8103         * po/ru.po: Update Russion translation from translation project.
8104
8105 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8106
8107         [BZ #14152]
8108         [BZ #14783]
8109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8110         result and shift together with sticky bit instead of replicating
8111         round-to-nearest rounding.
8112         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8113         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8114         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8115         missing underflow exceptions.
8116         (fma_test_towardzero): Add more tests.
8117         (fma_test_downward): Likewise.
8118         (fma_test_upward): Likewise.
8119
8120         [BZ #14047]
8121         * sysdeps/generic/tininess.h: New file.
8122         * sysdeps/i386/tininess.h: Likewise.
8123         * sysdeps/sh/tininess.h: Likewise.
8124         * sysdeps/x86_64/tininess.h: Likewise.
8125         * stdlib/tst-strtod-underflow.c: Likewise.
8126         * stdlib/tst-tininess.c: Likewise.
8127         * stdlib/strtod_l.c: Include <tininess.h>.
8128         (round_and_return): Do not set errno for exact underflow cases.
8129         Force an underflow exception when setting errno for underflow.
8130         Determine underflow based on rounding to normal precision if
8131         TININESS_AFTER_ROUNDING.
8132         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8133         ERANGE for exact underflow cases.
8134         * stdlib/Makefile (tests): Add tst-tininess and
8135         tst-strtod-underflow.
8136         ($(objpfx)tst-tininess): Use $(link-libm).
8137         ($(objpfx)tst-strtod-underflow): Likewise.
8138
8139 2012-10-30  Andreas Jaeger  <aj@suse.de>
8140
8141         [BZ#14767]
8142         * elf/Makefile (tests): Remove conditional for have-initfini-array
8143         since this is now always required and the variable does not exist
8144         anymore.
8145         (tests-static): Likewise.
8146         (modules-names): Likewise.
8147
8148         * po/eo.po: Add Esperanto translation from translation project.
8149
8150         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8151         merged with constructor/destructor.
8152         (init_array): Likewise.
8153         * elf/tst-array2dep.c (fini_array): Likewise.
8154         (init_array): Likewise.
8155
8156 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8157
8158         * manual/message.texi: Delete @cartouche tags.
8159
8160 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8161
8162         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8163         EOPNOTSUPP.
8164         * sysdeps/mach/hurd/fsync.c: Likewise.
8165
8166         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8167         [_POSIX_REALTIME_SIGNALS]: Change condition to
8168         [_POSIX_REALTIME_SIGNALS > 0].
8169
8170 2012-10-27  Andreas Jaeger  <aj@suse.de>
8171
8172         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8173         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8174         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8175         [__WORDSIZE != 64]: Likewise.
8176
8177 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8178
8179         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8180         *  iconvdata/tst-tables.sh: Likewise.
8181
8182 2012-10-25  David S. Miller  <davem@davemloft.net>
8183
8184         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8185         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8186         of strtoull.
8187
8188         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8189         ifunc-impl-list.c
8190         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8191         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8192         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8193         file.
8194
8195 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8196
8197         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8198         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8199         __getdirentries.
8200
8201 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8202             Jim Blandy  <jimb@codesourcery.com>
8203
8204         * scripts/cross-test-ssh.sh: New file.
8205         * manual/install.texi (Configuring and compiling): Document use of
8206         cross-test-ssh.sh.
8207         * INSTALL: Regenerated.
8208
8209 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8210
8211         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8212         EOPNOTSUPP.
8213
8214 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8215
8216         * Makeconfig (run-program-prefix): Fix comment.
8217
8218 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8219             Jim Blandy  <jimb@codesourcery.com>
8220
8221         * Makeconfig (test-wrapper): New variable,
8222         (test-wrapper-env): Likewise.
8223         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8224         (run-built-tests): Define to yes.
8225         (run-program-prefix): Use $(test-wrapper).
8226         (built-program-cmd): Likewise.
8227         * Rules (make-test-out): Use $(test-wrapper-env) and
8228         $(host-built-program-cmd).
8229         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8230         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8231         tst-pathopt.sh.
8232         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8233         $(test-wrapper-env) to tst-rtld-load-self.sh.
8234         ($(objpfx)order2.out): Use $(test-wrapper).
8235         ($(objpfx)tst-initorder.out): Likewise.
8236         ($(objpfx)tst-initorder2.out): Likewise.
8237         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8238         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8239         (test_wrapper_env): New variable.  Use it to run ld.so.
8240         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8241         Use it to run ld.so.
8242         (test_wrapper_env): Likewise.
8243         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8244         $(test-wrapper) to run-iconv-test.sh.
8245         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8246         (ICONV): Use $test_wrapper.
8247         * posix/Makefile ($(objpfx)globtest.out): Pass
8248         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8249         globtest.sh, not $(run-program-prefix).
8250         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8251         (test_wrapper): Likewise.
8252         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8253         set together with run_via_rtld_prefix.
8254         (run_program_prefix): Define in terms of test_wrapper and
8255         run_via_rtld_prefix.
8256
8257 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8258
8259         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8260         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8261         Targets removed.
8262
8263         [BZ #14743]
8264         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8265         Declare __clock_getres, __clock_gettime, __clock_settime,
8266         __clock_nanosleep, and __clock_getcpuclockid.
8267         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8268         Remove librt_hidden_def (clock_gettime).
8269         * sysdeps/unix/clock_gettime.c: Likewise.
8270         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8272         * rt/clock_getres.c: Define __clock_getres as an alias.
8273         * sysdeps/posix/clock_getres.c: Likewise.
8274         * rt/clock_settime.c: Define __clock_settime as an alias.
8275         * sysdeps/unix/clock_settime.c: Likewise.
8276         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8277         * sysdeps/unix/clock_nanosleep.c: Likewise.
8278         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8279         * rt/clock-compat.c: New file.
8280         * rt/Makefile (librt-routines): Add clock-compat and move
8281         $(clock-routines) to ...
8282         (routines): ... here, new variable.
8283         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8284         Don't add get_clockfreq here.
8285         * rt/Versions (libc: GLIBC_2.17): New version set.
8286         Add clock_* symbols here.
8287         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8288         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8289         (GLIBC_2.17): Add clock_* symbols.
8290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8291         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8292         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8294         Likewise.
8295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8296         Likewise.
8297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8300         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8301         * NEWS: Mention the move.
8302
8303         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8304         Use __open, __read, __close rather than their public counterparts.
8305         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8306         (__get_clockfreq_via_cpuinfo): Likewise.
8307         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8308         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8309
8310         * config.h.in (HAVE_IFUNC): New #undef.
8311         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8312         was successful.
8313         * configure: Regenerated.
8314
8315 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8316
8317         * configure.in: Move READELF check to start of file.
8318         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8319         libc_cv_asm_gnu_indirect_function in the process.
8320         * configure: Regenerated.
8321
8322 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8323
8324         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8325         send the output to /dev/null.
8326         (libc_cv_cc_with_libunwind): Likewise.
8327         (libc_cv_as_noexecstack): Likewise.
8328         * configure: Regenerate.
8329
8330 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8331
8332         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8333
8334         * posix/globtest.sh (TMPDIR): Do not set.
8335         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8336         (testout): Likewise.
8337
8338 2012-10-24  Andreas Jaeger  <aj@suse.de>
8339
8340         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8341         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8342         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8343         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8344         posix_fadvise64, posix_fallocate64.
8345
8346         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8347         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8348         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8349         Likewise.
8350         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8351         Likewise.
8352         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8353
8354         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8355         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8356         <bits/fcntl-linux.h>.
8357         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8358
8359         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8360         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8361         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8362         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8363         [__WORDSIZE != 64]: Likewise.
8364
8365 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8366
8367         * Makeconfig (run-built-tests): New variable.
8368         * Rules [$(cross-compiling) = yes]: Change condition to
8369         [$(run-built-tests) = no].
8370         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8371         to [$(run-built-tests) = yes].
8372         * elf/Makefile [$(cross-compiling) = no]: Likewise
8373         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8374         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8375         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8376         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8377         * io/Makefile [$(cross-compiling) = no]: Likewise.
8378         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8379         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8380         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8381         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8382         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8383         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8384         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8385         * string/Makefile [$(cross-compiling) = no]: Likewise.
8386
8387         * posix/Makefile ($(objpfx)globtest.out): Pass
8388         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8389         $(rtld-installed-name).
8390         * posix/globtest.sh (elf_objpfx): Remove variable.
8391         (rtld_installed_name): Likewise.
8392         (library_path): Likewise.
8393         (run_program_prefix): New variable.  Use for running globtest
8394         binary.
8395
8396 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8397             Joseph Myers  <joseph@codesourcery.com>
8398
8399         * Makeconfig (host-built-program-cmd): New variable.
8400         * elf/Makefile (tst-stackguard1-ARGS): Use
8401         $(host-built-program-cmd).
8402         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8403         (tst-spawn-ARGS): Likewise.
8404         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8405
8406 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8407             Jim Blandy  <jimb@codesourcery.com>
8408
8409         * Makeconfig (run-via-rtld-prefix): New variable.
8410         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8411         (built-program-cmd): Likewise.
8412
8413 2012-10-22  Andreas Jaeger  <aj@suse.de>
8414
8415         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8416         __O_RSYNC if it exists, otherwise to O_SYNC.
8417
8418 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8419             Joseph Myers  <joseph@codesourcery.com>
8420
8421         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8422         /dev/null.
8423         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8424         from /dev/null
8425         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8426         /dev/null.
8427
8428 2012-10-22  Andreas Jaeger  <aj@suse.de>
8429
8430         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8431         Define always.
8432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8433
8434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8435         bits/fcntl-linux.h.
8436
8437         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8438         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8439
8440         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8441         to __O_LARGEFILE.
8442         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8443         to __O_LARGEFILE.
8444
8445 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8446             Joseph Myers  <joseph@codesourcery.com>
8447
8448         * config.make.in (NM): New variable.
8449
8450 2012-10-21  Andreas Jaeger  <aj@suse.de>
8451
8452         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8453         definitions and declarations that are provided by
8454         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8455
8456 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8457
8458         [BZ #14683]
8459         * elf/Makefile (tests-static): Add tst-leaks1-static.
8460         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8461         ($(objpfx)tst-leaks1-static): New rule.
8462         ($(objpfx)tst-leaks1-static-mem): Likewise.
8463         (tst-leaks1-static-ENV): New macro.
8464         * elf/dl-open.c (dl_open_worker): Check the main application
8465         only if SHARED is defined.
8466         * elf/tst-leaks1-static.c: New file.
8467
8468 2012-10-20  Andreas Jaeger  <aj@suse.de>
8469
8470         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8471         generic values for Linux.
8472         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8473         and declarations that are provided by <bits/fcntl-linux.h> and
8474         include <bits/fcntl-linux.h>.
8475         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8476         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8477
8478 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8479
8480         * io/fcntl.h: Move include of <bits/types.h> to the top and
8481         include it unconditionally.
8482
8483 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8484
8485         * wcsmbs/Makefile (tests-ifunc): New variable.
8486         (tests): Add $(tests-ifunc).
8487         * wcsmbs/test-wcschr-ifunc.c: New file.
8488         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8489         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8490         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8491         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8492         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8493
8494         * string/Makefile (tests-ifunc): New variable.
8495         (tests): Add $(tests-ifunc).
8496         * string/test-memccpy.c (TEST_NAME): New macro.
8497         * string/test-memchr.c (TEST_NAME): Likewise.
8498         * string/test-memcmp.c (TEST_NAME): Likewise.
8499         * string/test-memcpy.c (TEST_NAME): Likewise.
8500         * string/test-memmem.c (TEST_NAME): Likewise.
8501         * string/test-memmove.c (TEST_NAME): Likewise.
8502         * string/test-memset.c (TEST_NAME): Likewise.
8503         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8504         * string/test-stpcpy.c (TEST_NAME): Likewise.
8505         * string/test-stpncpy.c (TEST_NAME): Likewise.
8506         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8507         * string/test-strcasestr.c (TEST_NAME): Likewise.
8508         * string/test-strcat.c (TEST_NAME): Likewise.
8509         * string/test-strchr.c (TEST_NAME): Likewise.
8510         * string/test-strcmp.c(TEST_NAME): Likewise.
8511         * string/test-strcpy.c (TEST_NAME): Likewise.
8512         * string/test-strcspn.c (TEST_NAME): Likewise.
8513         * string/test-strlen.c (TEST_NAME): Likewise.
8514         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8515         * string/test-strncmp.c (TEST_NAME): Likewise.
8516         * string/test-strncpy.c (TEST_NAME): Likewise.
8517         * string/test-strnlen.c (TEST_NAME): Likewise.
8518         * string/test-strpbrk.c (TEST_NAME): Likewise.
8519         * string/test-strrchr.c (TEST_NAME): Likewise.
8520         * string/test-strspn.c (TEST_NAME): Likewise.
8521         * string/test-strstr.c (TEST_NAME): Likewise.
8522         * string/test-bcopy-ifunc.c: New file.
8523         * string/test-bzero-ifunc.c: Likewise.
8524         * string/test-memccpy-ifunc.c: Likewise.
8525         * string/test-memchr-ifunc.c: Likewise.
8526         * string/test-memcmp-ifunc.c: Likewise.
8527         * string/test-memcpy-ifunc.c: Likewise.
8528         * string/test-memmem-ifunc.c: Likewise.
8529         * string/test-memmove-ifunc.c: Likewise.
8530         * string/test-mempcpy-ifunc.c: Likewise.
8531         * string/test-memset-ifunc.c: Likewise.
8532         * string/test-rawmemchr-ifunc.c: Likewise.
8533         * string/test-stpcpy-ifunc.c: Likewise.
8534         * string/test-stpncpy-ifunc.c: Likewise.
8535         * string/test-strcasecmp-ifunc.c: Likewise.
8536         * string/test-strcasestr-ifunc.c: Likewise.
8537         * string/test-strcat-ifunc.c: Likewise.
8538         * string/test-strchr-ifunc.c: Likewise.
8539         * string/test-strchrnul-ifunc.c: Likewise.
8540         * string/test-strcmp-ifunc.c: Likewise.
8541         * string/test-strcpy-ifunc.c: Likewise.
8542         * string/test-strcspn-ifunc.c: Likewise.
8543         * string/test-strlen-ifunc.c: Likewise.
8544         * string/test-strncasecmp-ifunc.c: Likewise.
8545         * string/test-strncat-ifunc.c: Likewise.
8546         * string/test-strncmp-ifunc.c: Likewise.
8547         * string/test-strncpy-ifunc.c: Likewise.
8548         * string/test-strnlen-ifunc.c: Likewise.
8549         * string/test-strpbrk-ifunc.c: Likewise.
8550         * string/test-strrchr-ifunc.c: Likewise.
8551         * string/test-strspn-ifunc.c: Likewise.
8552         * string/test-strstr-ifunc.c: Likewise.
8553
8554         * debug/Makefile (tests-ifunc): New variable.
8555         (tests): Add $(tests-ifunc).
8556         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8557         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8558         * debug/test-stpcpy_chk-ifunc.c: New file.
8559         * debug/test-strcpy_chk-ifunc.c: Likewise.
8560
8561 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8562
8563         [BZ #13601]
8564         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8565         header is not read in.
8566
8567 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8568
8569         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8570         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8571         directly.  Pass built executable to script as
8572         $(built-program-cmd).
8573         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8574         $testprogram without using LD_LIBRARY_PATH and $ldso.
8575
8576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8577         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8578         $(rtld-installed-name).
8579         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8580         (rtld_installed_name): Likewise.
8581         (library_path): Likewise.
8582         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8583         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8584         $(run-program-prefix) to tst-tables.sh.
8585         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8586         it to run tst-table-from and tst-table-to.
8587         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8588         Pass it to tst-table.sh.
8589         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8590         $(run-program-prefix) to tst-gettext.sh.
8591         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8592         tst-translit.sh.
8593         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8594         tst-gettext2.sh.
8595         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8596         to run tst-gettext.
8597         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8598         to run tst-gettext2.
8599         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8600         to run tst-translit.
8601         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8602         $(run-program-prefix) to tst-mtrace.sh.
8603         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8604         to run tst-mtrace.
8605         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8606         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8607         $(rtld-installed-name).
8608         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8609         (rtld_installed_name): Likewise.
8610         (run_program_prefix): New variable.  Use it to run wordexp-test.
8611
8612         * Makeconfig (ARCH): Remove all definitions.
8613         (machine): Likewise.
8614         [ARCH]: Remove conditional code.
8615         [!objdir]: Give error.
8616         [!objdir] (objpfx): Remove.
8617         [!objdir] (common-objpfx): Likewise.
8618         [!objdir] (common-objdir): Likewise.
8619         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8620         AC_CONFIG_FILES call.
8621         * configure: Regenerated.
8622
8623         [BZ #13888]
8624         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8625         or TMPDIR.
8626         (testout): Likewise.
8627
8628         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8629         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8630         $(rtld-installed-name).
8631         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8632         (rtld_installed_name): Likwise.
8633         (runit): Remove function.
8634         (run_getconf): New variable,  Use it for running getconf binary.
8635
8636 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8637
8638         [BZ #14716]
8639         * string/test-memmem.c (check_result): New function.
8640         (do_one_test): Use it.
8641         (check1): New function.
8642         (test_main): Use it.
8643
8644 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8645
8646         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8647
8648 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8649
8650         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8651         (_G_LSEEK64): Likewise.
8652         (_G_MMAP64): Likewise.
8653         (_G_FSTAT64): Likewise.
8654         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8655         (_G_LSEEK64): Likewise.
8656         (_G_MMAP64): Likewise.
8657         (_G_FSTAT64): Likewise.
8658         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8659         unconditional.  Call __mmap64 directly.
8660         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8661         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8662         __lseek64 directly.
8663         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8664         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8665         __mmap64 directly.
8666         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8667         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8668         __lseek64 directly.
8669         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8670         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8671         __lseek64 directly.
8672         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8673         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8674         __lseek64 directly.
8675         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8676         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8677         __fxstat64 directly.
8678         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8679         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8680         unconditional.
8681         (freopen64) [!_G_OPEN64]: Remove conditional code.
8682         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8683         unconditional.
8684         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8685         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8686         unconditional.
8687         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8688         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8689         unconditional.
8690         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8691         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8692         unconditional.
8693         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8694         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8695         unconditional.
8696         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8697         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8698         unconditional.
8699         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8700         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8701         unconditional.
8702         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8703
8704 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8705
8706         [BZ #12140]
8707         * manual/memory.texi (Malloc Tunable Parameters): Add note
8708         about free list pointers overwriting some perturb bytes.
8709         Wording suggested by Roland McGrath.
8710
8711 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8712
8713         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8714         (lgamma_test): Likewise.
8715         (tgamma_test): Likewise.
8716
8717 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8718
8719         [BZ #14700]
8720         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8721         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8722
8723 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8724
8725         * NEWS: Mention BZ #14716.
8726         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8727         when removing AVAILABLE1_USES_J macro.
8728
8729 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8730
8731         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8732         (__bswap_64): __uint64_t for unsigned 64-bit int.
8733
8734 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8735
8736         * include/string.h (memmem): Declare libc hidden alias.
8737         * string/memmem.c (memmem): Define libc hidden alias.
8738         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8739         __read, __close instead of open, read, close.
8740
8741 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8742
8743         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8744         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8745         global and hidden.
8746         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8747         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8748         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8749         Likewise.
8750         (__rawmemchr_sse2): Likewise.
8751         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8752         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8753         (__strchr_sse2): Likewise.
8754         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8755         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8756         (__strcasecmp_sse2): Likewise.
8757         (__strncasecmp_sse2): Likewise.
8758         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8759         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8760         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8761         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8762         (__strrchr_sse2): Likewise.
8763         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8764         ifunc-impl-list.c.
8765         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8766         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8767         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8768         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8769         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8770         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8771         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8772         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8773         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8774         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8775         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8776         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8777         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8778         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8779         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8780         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8781         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8782         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8783         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8784         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8785         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8786         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8787         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8788         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8789         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8790         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8791         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8792         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8793         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8794         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8795
8796         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8797         global and hidden.
8798         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8799         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8800         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8801         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8802         Likewise.
8803         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8804         Likewise.
8805         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8806         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8807         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8808         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8809         ifunc-impl-list.c.
8810         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8811         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8812         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8813         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8814         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8815         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8816         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8817         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8818         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8819         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8820         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8821         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8822         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8823         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8824         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8825         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8826         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8827         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8828         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8829         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8830         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8831         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8832         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8833         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8834         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8835         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8836         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8837         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8838         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8839         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8840         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8841         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8842         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8843         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8844         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8845         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8846         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8847         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8848         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8849         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8850         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8851
8852         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8853         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8854         * include/ifunc-impl-list.h: New file.
8855         * misc/ifunc-impl-list.c: Likewise.
8856         * misc/Makefile (routines): Add ifunc-impl-list.
8857         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8858         * string/test-string.h: Include <ifunc-impl-list.h>.
8859         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8860         impl_array): New variables.
8861         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8862         are defined.
8863         (test_init): Call __libc_ifunc_impl_list to initialize
8864         func_list if TEST_IFUNC and TEST_NAME are defined.
8865
8866         * string/Makefile (strop-tests): Add bcopy and bzero.
8867         * string/test-bcopy.c: New file.
8868         * string/test-bzero.c: Likewise.
8869         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8870         defined.
8871         * string/test-memset.c: Support bzero test if TEST_BZERO is
8872         defined.
8873         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8874         __libc_memmove.
8875         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8876         __libc_memset.
8877         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8878         of memset.
8879
8880 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8881
8882         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8883         * configure: Regenerated.
8884
8885         * Makeconfig (+link-static-before-libc): Don't include
8886         $(link-static-libc).
8887
8888         * libio/libio.h (_IO_pos_t): Remove.
8889
8890 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8891
8892         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8893         McGrath.
8894
8895 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8896
8897         * crypt/crypt-entry.c: Include fips-private.h.
8898         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8899         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8900         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8901         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8902
8903 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8904
8905         * crypt/crypt-private.h: Include stdbool.h.
8906         (_ufc_setup_salt_r): Return bool.
8907         * crypt/crypt-entry.c: Include errno.h.
8908         (__crypt_r): Return NULL with EINVAL for bad salt.
8909         * crypt/crypt_util.c (bad_for_salt): New.
8910         (_ufc_setup_salt_r): Check that salt is long enough and within
8911         the specified alphabet.
8912         * crypt/badsalttest.c: New file.
8913         * crypt/Makefile (tests): Add it.
8914         ($(objpfx)badsalttest): New.
8915
8916 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8917
8918         * NEWS: Add entry for BZ #14602.
8919
8920 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8921
8922         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8923         type-generic.
8924         * math/libm-test.inc: Update comment listing what functions and
8925         macros are tested.
8926         (isgreater_test): New function.
8927         (isgreaterequal_test): Likewise.
8928         (isless_test): Likewise.
8929         (islessequal_test): Likewise.
8930         (islessgreater_test): Likewise.
8931         (isunordered_test): Likewise.
8932         (main): Call the new functions.
8933
8934 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8935
8936         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8937         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8938         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8939         * sysdeps/i386/configure: Regenerated.
8940         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8941         * sysdeps/mach/configure: Regenerated.
8942         * sysdeps/mach/hurd/configure: Regenerated.
8943         * sysdeps/powerpc/configure: Regenerated.
8944         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8945         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8946         * sysdeps/s390/s390-32/configure: Regenerated.
8947         * sysdeps/s390/s390-64/configure: Regenerated.
8948         * sysdeps/sh/configure: Regenerated.
8949         * sysdeps/sparc/configure: Regenerated.
8950         * sysdeps/unix/sysv/linux/configure: Regenerated.
8951         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8952         * sysdeps/x86_64/configure: Regenerated.
8953
8954         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8955         defined.  Don't check if MAP is NULL.
8956
8957 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8958
8959         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8960         (_G_stat64): Likewise.
8961         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8962         (_G_stat64): Likewise.
8963         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8964         instead of struct _G_stat64.
8965         * libio/fileops.c (mmap_remap_check): Likewise.
8966         (decide_maybe_mmap): Likewise.
8967         (_IO_new_file_seekoff): Likewise.
8968         (_IO_file_stat): Likewise.
8969         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8970         _G_off64_t.
8971         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8972         instead of struct _G_stat64.
8973         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8974
8975 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8976
8977         [BZ #14602]
8978         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8979         Replace with ...
8980         (CHECK_EOL): New macro.
8981         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8982         CHECK_EOL.
8983         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8984         Replace with CHECK_EOL.
8985         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8986         Replace with CHECK_EOL.
8987
8988 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
8989
8990         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
8991         type-generic.
8992         * math/libm-test.inc: Update comment listing what functions and
8993         macros are tested.
8994         (finite_test): New function.
8995         (isinf_test): Likewise.
8996         (isnan_test): Likewise.
8997         (fpclassify_test): Test subnormal input.
8998         (isfinite_test): Likewise.
8999         (isnormal_test): Likewise.
9000         (main): Call the new functions.
9001
9002 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9003
9004         [BZ #14660]
9005         * Makerules (%.dynsym): Force C locale when running
9006         $(OBJDUMP) --dynamic-syms.
9007
9008 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9009
9010         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9011         <stdint.h>.
9012
9013 2012-10-06  David S. Miller  <davem@davemloft.net>
9014
9015         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9016         upper 32-bits of the length value in %o2 since we use branch-on-register
9017         tests which consider the entire 64-bit register.
9018
9019 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9020
9021         * string/test-strstr.c (check2): Add a test for page boundary.
9022
9023 2012-10-05  David S. Miller  <davem@davemloft.net>
9024
9025         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9026         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9027         file.
9028         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9029         sysdep_routines.
9030         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9031         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9032         and bzero when HWCAP_SPARC_CRYPTO is present.
9033
9034 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9035
9036         [BZ #14602]
9037         * string/test-strstr.c (check2): New function.
9038         (test_main): Call check2.
9039
9040         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9041         and bug-strchr1.
9042         * string/bug-strcasestr1.c (do_test): Moved to ...
9043         * string/test-strcasestr.c (check1): Here.  New function.
9044         (do_one_test): Break out result checking code into ...
9045         (check_result): This.  New function.
9046         (do_one_test): Call check_result.
9047         (test_main): Call check1.
9048         * string/bug-strchr1.c (do_test): Moved to ...
9049         * string/test-strchr.c (check1): Here.  New function.
9050         (do_one_test): Break out result checking code into ...
9051         (check_result): This.  New function.
9052         (do_one_test): Call check_result.
9053         (test_main): Call check1.
9054         * string/bug-strstr1.c (main): Moved to ...
9055         * string/test-strstr.c (check1): Here.  New function.
9056         (do_one_test): Break out result checking code into ...
9057         (check_result): This.  New function.
9058         (do_one_test): Call check_result.
9059         (test_main): Call check1.
9060         * string/bug-strcasestr1.c: Removed.
9061         * string/bug-strchr1.c: Likewise.
9062         * string/bug-strstr1.c: Likewise.
9063
9064         * elf/Makefile (dl-routines): Add hwcaps.
9065         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9066         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9067         (_dl_important_hwcaps): Moved to ...
9068         * elf/dl-hwcaps.c: Here.  New file.
9069         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9070
9071         [BZ #14557]
9072         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9073         if IS_IN_rtld isn't defined.
9074
9075         * elf/dl-support.c (_dl_sysinfo_map): New.
9076         Include "get-dynamic-info.h" and "setup-vdso.h".
9077         (_dl_non_dynamic_init): Call setup_vdso.
9078         * elf/dynamic-link.h: Don't include <assert.h>.
9079         (elf_get_dynamic_info): Moved to ...
9080         * elf/get-dynamic-info.h: Here.  New file.
9081         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9082         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9083         * elf/setup-vdso.h: Here.  New file.
9084         * elf/rtld.c: Include "setup-vdso.h".
9085         (dl_main): Call setup_vdso.
9086
9087 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9088
9089         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9090         creal in comment listing functions tested.  List finite, isinf,
9091         isnan, isless, islessequal, isgreater, isgreaterequal,
9092         islessgreater, isunordered, lgamma_r and pow10 as functions and
9093         macros not tested.  Mention which functions not tested are aliases
9094         for other functions.  Fix typo.  Note that signs of NaNs are not
9095         tested.
9096
9097         * scripts/config.guess: Update from config.git.
9098         * scripts/config.sub: Likewise.
9099
9100 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9101
9102         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9103         * misc/madvise.c (madvise): Renamed to __madvise.
9104         Make madvise a weak alias.
9105         * include/sys/mman.h: Declare __madvise.
9106         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9107         * sysdeps/unix/syscalls.list
9108         (madvise): Make __madvise the strong name, and madvise a weak alias.
9109         * sysdeps/unix/sysv/linux/syscalls.list
9110         (madvise, mmap): Remove redundant entries.
9111         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9112         * malloc/malloc.c (mtrim): Likewise.
9113         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9114
9115 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9116
9117         * sysdeps/mach/hurd/dl-cache.c: File removed.
9118         * config.h.in (USE_LDCONFIG): New #undef.
9119         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9120         * configure: Regenerated.
9121         * elf/Makefile (dl-routines): Add dl-cache only under
9122         [$(use-ldconfig) = yes].
9123         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9124         cache on [USE_LDCONFIG].
9125         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9126         [USE_LDCONFIG].
9127         * elf/rtld.c (dl_main): Likewise.
9128
9129 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9130
9131         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9132         _SC_LEVEL4_CACHE_LINESIZE.
9133
9134 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9135
9136         * sysdeps/unix/bsd/confstr.h: File removed.
9137
9138 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9139
9140         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9141         sys/sdt-config.h.
9142
9143 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9144
9145         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9146         Make 'mapoff' field ElfW(Off) rather than off_t.
9147
9148 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9149
9150         * nscd/Makefile: Remove nscd-cflags and all its users.
9151         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9152         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9153
9154         [BZ #10631]
9155         * malloc.c (malloc_printerr): Clarify error message.
9156
9157 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9158
9159         [BZ #14648]
9160         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9161         Set bit_FMA_Usable if FMA is supported.
9162         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9163         macro.
9164         (bit_FMA4_Usable): Updated.
9165         (index_FMA_Usable): New macro.
9166         (CPUID_FMA): Likewise
9167         (HAS_FMA): Defined with bit_FMA_Usable.
9168
9169 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9170
9171         * bits/types.h (__swblk_t): Type removed.
9172         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9173         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9175         (__SWBLK_T_TYPE): Likewise.
9176         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9177         (__SWBLK_T_TYPE): Likewise.
9178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9179         (__SWBLK_T_TYPE): Likewise.
9180         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9181         (__SWBLK_T_TYPE): Likewise.
9182
9183 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9184             Honza Horak <hhorak@redhat.com>
9185
9186         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9187         (xdr_mapname): Use YPMAXMAP as maxsize.
9188         (xdr_peername): Use YPMAXPEER as maxsize.
9189         (xdr_keydat): Use YPAXRECORD as maxsize.
9190         (xdr_valdat): Use YPMAXRECORD as maxsize.
9191
9192 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9193
9194         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9195
9196         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9197         * csu/init-first.c: ... here.
9198         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9199         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9200         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9201         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9202         * sysdeps/i386/init-first.c: File removed.
9203         * sysdeps/sh/init-first.c: File removed.
9204
9205 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9206
9207         [BZ #14645]
9208         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9209         if x * y might underflow to zero and z is zero.
9210         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9211         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9212         * math/libm-test.inc (min_subnorm_value): New variable.
9213         (fma_test): Add more tests.
9214         (fma_test_towardzero): Likewise.
9215         (fma_test_downward): Likewise
9216         (fma_test_upward): Likewise.
9217         (initialize): Set min_subnorm_value.
9218
9219 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9220
9221         [BZ #14638]
9222         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9223         0 + 0.
9224         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9225         mode for addition resulting in exact zero.
9226         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9227         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9228         exact 0 + 0.
9229         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9231         * math/libm-test.inc (fma_test): Add more tests.
9232         (fma_test_towardzero): New function.
9233         (fma_test_downward): Likewise.
9234         (fma_test_upward): Likewise.
9235         (main): Call the new functions.
9236
9237 2012-09-28  David S. Miller  <davem@davemloft.net>
9238
9239         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9240
9241 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9242
9243         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9244         instead of SIGALRM.
9245
9246         * sysdeps/gnu/_G_config.h: Moved to ...
9247         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9248         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9249         * sysdeps/generic/_G_config.h: ... here.
9250
9251         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9252
9253         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9254
9255         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9256         Conditionalize target on [libnss_test1.so-version].
9257
9258         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9259
9260         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9261         (elfobjdir): Move out of conditionals.
9262
9263         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9264         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9265         (__nss_lookup_function): Conditionalize label remove_from_tree on
9266         [!DO_STATIC_NSS || SHARED], matching its only use.
9267
9268 2012-09-28  David S. Miller  <davem@davemloft.net>
9269
9270         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9271         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9272         file.
9273         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9274         sysdep_routines.
9275         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9277         when HWCAP_SPARC_CRYPTO is present.
9278
9279 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9280
9281         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9282
9283 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9284
9285         [BZ #6530]
9286         * stdio-common/vfprintf.c (process_string_arg): Revert
9287         2000-07-22 change.
9288
9289 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9290
9291         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9292         for testcase.
9293         * stdio-common/tst-sprintf.c: Include <locale.h>
9294         (main): Test sprintf's handling of incomplete multibyte
9295         characters.
9296
9297 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9298
9299         * elf/dl-runtime.c (VERSYMIDX): Removed.
9300         * elf/dl-version.c (VERSYMIDX): Likewise.
9301         * elf/do-rel.h (VERSYMIDX): Likewise.
9302         (VALIDX): Likewise.
9303         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9304         * elf/rtld.c (VALIDX): Likewise.
9305         (ADDRIDX): Likewise.
9306         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9307         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9308         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9309         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9310         (VALIDX): Likewise.
9311         (ADDRIDX): Likewise.
9312
9313 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9314
9315         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9316
9317 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9318
9319         [BZ #11438]
9320         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9321         to global scope.
9322         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9323         addresses are in the same scope as 192.0.2/24.
9324         * posix/gai.conf: Document new scope table defaults.
9325
9326 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9327
9328         [BZ #5298]
9329         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9330         for ftell.  Compute offsets from write pointers instead.
9331         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9332
9333 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9334
9335         [BZ #14543]
9336         * libio/Makefile (tests): New test case tst-fseek.
9337         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9338         combination works in wide mode.
9339         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9340         state when the external buffer state changes.
9341
9342 2012-09-27  David S. Miller  <davem@davemloft.net>
9343
9344         [BZ #14376]
9345         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9346         pass reloc->r_addend in as the 'high' argument to
9347         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9348
9349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9350
9351 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9352
9353         * rt/tst-aio2.c: Include <pthread.h>.
9354         * rt/tst-aio3.c: Likewise.
9355
9356 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9357
9358         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9359
9360 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9361
9362         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9363         contents on [SHARED].
9364
9365 2012-09-26  Marek Polacek  <polacek@redhat.com>
9366
9367         [BZ #14530]
9368         [BZ #13741]
9369         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9370         for C++ and GCC <4.3 as well as for non GCC compilers.
9371
9372 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9373
9374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9375
9376 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9377
9378         * Makefile.in (all, install): Declare with .PHONY.
9379         Reported by Michael Hope <michael.hope@linaro.org>.
9380
9381 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9382
9383         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9384         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9385         system header.
9386         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9387         Likewise.
9388         (sydep_routines): Add the new and the internal functions.
9389         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9390         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9392         (GLIBC_2.17): Add the new function.
9393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9394         (GLIBC_2.17): Likewise.
9395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9396         (GLIBC_2.17): Likewise.
9397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9398         (GLIBC_2.17): Likewise.
9399         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9400
9401 2012-09-25  Alan Modra  <amodra@gmail.com>
9402
9403         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9404         Add release barrier before setting once_control to say
9405         initialisation is done.  Add hints on lwarx.  Use macro in
9406         place of isync.
9407         (clear_once_control): Add release barrier.
9408
9409 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9410
9411         [BZ #13629]
9412         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9413         specially.
9414         * math/s_clog10.c (__clog10): Likewise.
9415         * math/s_clog10f.c (__clog10f): Likewise.
9416         * math/s_clog10l.c (__clog10l): Likewise.
9417         * math/s_clogf.c (__clogf): Likewise.
9418         * math/s_clogl.c (__clogl): Likewise.
9419         * math/Makefile (libm-calls): Add x2y2m1.
9420         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9421         (__x2y2m1): Likewise.
9422         (__x2y2m1l): Likewise.
9423         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9424         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9425         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9426         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9427         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9428         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9429         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9430         * sysdeps/i386/fpu/libm-test-ulps: Update.
9431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9432
9433         [BZ #14621]
9434         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9435         int as type of variable DEPTH.
9436         (glob): Use size_t instead of int as type of variables NEWCOUNT
9437         and OLD_PATHC.
9438
9439 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9440
9441         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9442         Add s_sincosf-sse2.
9443         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9444         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9445         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9446         macros for using routine as __sincosf_ia32.
9447         Use macro for function declaration and weak_alias.
9448         * sysdeps/i386/fpu/libm-test-ulps: Update.
9449
9450         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9452
9453         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9454         subnormal argument.
9455         * math/s_cexpf.c (__cexpf): Likewise.
9456         * math/s_csinf.c (__csinf): Likewise.
9457         * math/s_csinhf.c (__csinhf): Likewise.
9458         * math/s_ctanf.c (__ctanf): Likewise.
9459         * math/s_ctanhf.c (__ctanhf): Likewise.
9460         * math/s_ccosh.c (__ccoshf): Likewise.
9461         * math/s_cexp.c (__cexpl): Likewise.
9462         * math/s_csin.c (__csin): Likewise.
9463         * math/s_csinh.c (__csinh): Likewise.
9464         * math/s_ctan.c (__ctan): Likewise.
9465         * math/s_ctanh.c (ctanh): Likewise.
9466         * math/s_ccoshl.c (__ccoshl): Likewise.
9467         * math/s_cexpl.c (__cexpl): Likewise.
9468         * math/s_csinl.c (__csinl): Likewise.
9469         * math/s_csinhl.c (__csinhl): Likewise.
9470         * math/s_ctanl.c (__ctanl): Likewise.
9471         * math/s_ctanhl.c (__ctanhl): Likewise.
9472
9473 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9474
9475         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9476         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9477         (_IO_off_t): Define to __off_t, not _G_off_t.
9478         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9479         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9480         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9481         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9482         type of __dummy and __dummy2 fields.
9483         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9484         (_G_ssize_t): Likewise.
9485         (_G_off_t): Likewise.
9486         (_G_pid_t): Likewise.
9487         (_G_uid_t): Likewise.
9488         (_G_wchar_t): Likewise.
9489         (_G_wint_t): Likewise.
9490         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9491         (_G_ssize_t): Likewise.
9492         (_G_off_t): Likewise.
9493         (_G_pid_t): Likewise.
9494         (_G_uid_t): Likewise.
9495         (_G_wchar_t): Likewise.
9496         (_G_wint_t): Likewise.
9497         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9498         (_G_ssize_t): Likewise.
9499         (_G_off_t): Likewise.
9500         (_G_pid_t): Likewise.
9501         (_G_uid_t): Likewise.
9502         (_G_wchar_t): Likewise.
9503         (_G_wint_t): Likewise.
9504
9505 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9506
9507         * malloc/arena.c: Include malloc-sysdep.h.
9508         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9509         is sufficient to shrink the heap or an unmap is needed.
9510         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9511         new function check_may_shrink_heap.
9512         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9513         new function check_may_shrink_heap.
9514
9515 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9516
9517         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9518         comments.
9519
9520 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9521
9522         * catgets/test-gencat.sh: Add "set -e".
9523         * elf/tst-pathopt.sh: Likewise.
9524         * grp/tst_fgetgrent.sh: Likewise.
9525         * iconvdata/run-iconv-test.sh: Likewise.
9526         * intl/tst-gettext.sh: Likewise.
9527         * intl/tst-gettext2.sh: Likewise.
9528         * intl/tst-gettext4.sh: Likewise.
9529         * intl/tst-gettext6.sh: Likewise.
9530         * intl/tst-translit.sh: Likewise.
9531         * io/ftwtest-sh: Likewise.
9532         * libio/test-freopen.sh: Likewise.
9533         * malloc/tst-mtrace.sh: Likewise.
9534         * posix/globtest.sh: Likewise.
9535         * posix/tst-getconf.sh: Likewise.
9536         * posix/wordexp-tst.sh: Likewise.
9537         * stdio-common/tst-printf.sh: Likewise.
9538         * stdio-common/tst-unbputc.sh: Likewise.
9539         * stdlib/tst-fmtmsg.sh: Likewise.
9540         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9541         * catgets/Makefile: Do not specify -e option when running
9542         testsuite shell scripts.
9543         * elf/Makefile: Likewise.
9544         * grp/Makefile: Likewise.
9545         * iconvdata/Makefile: Likewise.
9546         * intl/Makefile: Likewise.
9547         * io/Makefile: Likewise.
9548         * libio/Makefile: Likewise.
9549         * malloc/Makefile: Likewise.
9550         * posix/Makefile: Likewise.
9551         * stdio-common/Makefile: Likewise.
9552         * stdlib/Makefile: Likewise.
9553         * sysdeps/x86_64/Makefile: Likewise.
9554
9555         * io/ftwtest-sh: Add copyright header.
9556         * posix/globtest.sh: Likewise.
9557         * posix/tst-getconf.sh: Likewise.
9558         * posix/wordexp-tst.sh: Likewise.
9559         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9560
9561 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9562
9563         [BZ #13679]
9564         * Makeconfig (+link): Defined as $(+link-static) if
9565         $(build-shared) isn't yes.
9566         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9567         isn't yes.
9568         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9569
9570         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9571
9572         [BZ #14562]
9573         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9574         new chunk size with MALLOC_ALIGN_MASK.
9575
9576 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9577
9578         [BZ #5044]
9579         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9580         <rounding-mode.h>.
9581         (__printf_fphex): Determine rounding using get_rounding_mode and
9582         round_away.
9583         * stdio-common/tst-printf-round.c (struct hex_test): New
9584         structure.
9585         (hex_tests): New variable.
9586         (test_hex_in_one_mode): New function.
9587         (do_test): Also run tests for hex float output.
9588
9589 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9590
9591         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9592         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9593         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9594         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9595         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9596         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9597         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9598         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9599
9600 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9601
9602         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9603         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9604         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9605         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9606
9607 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9608
9609         [BZ #14579]
9610         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9611         mode only.
9612         * elf/tst-rtld-load-self.sh: New test.
9613         * elf/Makefile: Run it.
9614
9615 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9616
9617         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9618         (tst-writev-ENV): Remove.
9619         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9620
9621 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9622
9623         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9624
9625 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9626
9627         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9628         unconditional.
9629         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9630         Likewise.
9631         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9632         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9633         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9634         Likewise.
9635
9636 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9637
9638         [BZ #14587]
9639         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9640         * config.make.in (have-cpp-asm-debuginfo): Removed.
9641         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9642         * configure: Regenerated.
9643
9644 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9645
9646         [BZ #5044]
9647         * stdio-common/printf_fp.c: Include <stdbool.h> and
9648         <rounding-mode.h>.
9649         (___printf_fp): Determine rounding using get_rounding_mode and
9650         round_away.
9651         * stdio-common/tst-printf-round.c: New file.
9652         * stdio-common/Makefile (tests): Add tst-printf-round.
9653         (link-libm): New variable.
9654         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9655
9656 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9657
9658         [BZ #14576]
9659         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9660         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9661         Likewise.
9662         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9663         Likewise.
9664
9665 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9666
9667         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9668         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9669         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9670         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9671
9672 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9673
9674         [BZ #14518]
9675         * include/rounding-mode.h: New file.
9676         * sysdeps/generic/get-rounding-mode.h: Likewise.
9677         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9678         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9679         (MAX_VALUE): New macro.
9680         (MIN_VALUE): Likewise.
9681         (overflow_value): New function.
9682         (underflow_value): Likewise.
9683         (round_and_return): Use overflow_value and underflow_value to
9684         determine return values in overflow and underflow cases.  Use
9685         round_away to determine rounding depending on rounding mode.
9686         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9687         determine return values in overflow and underflow cases.
9688         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9689         (struct test_results): New structure.
9690         (struct test): Use struct test_results to store expected results
9691         for all rounding modes.
9692         (TEST): Include expected results for all rounding modes.
9693         (test_in_one_mode): New function.
9694         (do_test): Use test_in_one_mode to compute and check results.
9695         Check results for all rounding modes.
9696         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9697         $(link-libm).
9698
9699 2012-12-09  Allan McRae  <allan@archlinux.org>
9700
9701         * sysdeps/i386/fpu/libm-test-ulps: Update
9702
9703 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9704
9705         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9706         (_G_int32_t): Likewise.
9707         (_G_uint16_t): Likewise.
9708         (_G_uint32_t): Likewise.
9709         (_G_HAVE_BOOL): Likewise.
9710         (_G_HAVE_ATEXIT): Likewise.
9711         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9712         (_G_HAVE_IO_FILE_OPEN): Likewise.
9713         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9714         (_G_int32_t): Likewise.
9715         (_G_uint16_t): Likewise.
9716         (_G_uint32_t): Likewise.
9717         (_G_HAVE_BOOL): Likewise.
9718         (_G_HAVE_ATEXIT): Likewise.
9719         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9720         (_G_HAVE_IO_FILE_OPEN): Likewise.
9721         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9722         (_G_int32_t): Likewise.
9723         (_G_uint16_t): Likewise.
9724         (_G_uint32_t): Likewise.
9725         (_G_HAVE_BOOL): Likewise.
9726         (_G_HAVE_ATEXIT): Likewise.
9727         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9728         (_G_HAVE_IO_FILE_OPEN): Likewise.
9729
9730 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9731
9732         * csu/libc-tls.c: Update copyright years.
9733
9734 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9735
9736         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9737         [!_G_USING_THUNKS]: Remove conditional code.
9738         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9739         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9740
9741         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9742         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9743         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9744         (_G_VTABLE_LABEL_PREFIX): Likewise.
9745         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9746         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9747         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9748         (_G_VTABLE_LABEL_PREFIX): Likewise.
9749         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9750         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9751         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9752         (_G_VTABLE_LABEL_PREFIX): Likewise.
9753         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9754
9755 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9756
9757         * libio/Makefile: Include ../Makeconfig before tests.
9758         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9759         only if $(build-shared) is yes.
9760
9761         * iconv/gconv_db.c: Update copyright years.
9762
9763 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9764
9765         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9766         unwind info if defined PIC. Fix special cases description.
9767         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9768
9769         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9770         DP_HI_MASK entry.
9771         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9772
9773 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9774
9775         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9776
9777         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9778         is NULL.
9779
9780         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9781         (LDLIBS-tst-chk4): This.
9782         (LDFLAGS-tst-chk5): Renamed to ...
9783         (LDLIBS-tst-chk5): This.
9784         (LDFLAGS-tst-chk6): Renamed to ...
9785         (LDLIBS-tst-chk6): This.
9786         (LDFLAGS-tst-lfschk4): Renamed to ...
9787         (LDLIBS-tst-lfschk4): This.
9788         (LDFLAGS-tst-lfschk5): Renamed to ...
9789         (LDLIBS-tst-lfschk5): This.
9790         (LDFLAGS-tst-lfschk6): Renamed to ...
9791         (LDLIBS-tst-lfschk6): This.
9792
9793         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9794         on $(common-objpfx)soversions.mk.
9795
9796 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9797
9798         [BZ #10014]
9799         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9800         example host name.
9801
9802 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9803
9804         * malloc/arena.c (arena_get_retry): New function that gets
9805         another arena for the caller to try its request on.
9806         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9807         current arena cannot fulfill the request.
9808         (__libc_memalign): Likewise.
9809         (__libc_memalign): Likewise.
9810         (__libc_pvalloc): Likewise.
9811         (__libc_calloc): Likewise.
9812
9813 2012-09-05  John Tobey  <john.tobey@gmail.com>
9814
9815         [BZ #13542]
9816         * manual/arith.texi (Operations on Complex): Fix description
9817         of carg branch cut.
9818
9819 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9820
9821         [BZ #10014]
9822         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9823         host name.
9824
9825         [BZ #10038]
9826         * manual/memory.texi (Memory): Make order of menu items match
9827         order of sections.
9828
9829 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9830
9831         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9832         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9833         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9834
9835 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9836
9837         * csu/libc-tls.c (static_dtv): Renamed to ...
9838         (_dl_static_dtv): This.  Make it global.
9839         (_dl_initial_dtv): Removed.
9840         (__libc_setup_tls): Updated.
9841         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9842         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9843         DL_INITIAL_DTV.
9844
9845 2012-09-06  Petr Machata  <pmachata@redhat.com>
9846
9847         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9848         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9849         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9850         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9851
9852 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9853
9854         [BZ #14545]
9855         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9856         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9857         freeing dtv[-1].
9858
9859 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9860
9861         [BZ #14544]
9862         * Makeconfig (link-static-before-libc): Replace $(+prector)
9863         with $(+prectorT).
9864         (link-static-after-libc): Replace $(+postctor) with
9865         $(+postctorT).
9866         (link-bounded): Replace $(+prector)/$(+postctor) with
9867         $(+prectorT)/$(+postctorT).
9868         (+prectorT): New macro.
9869         (+postctorT): Likewise.
9870
9871 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9872
9873         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9874         (round_str): Handle values above the maximum for IBM long double
9875         as inexact.
9876         * stdlib/tst-strtod-round.c (tests): Regenerated.
9877
9878 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9879
9880         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9881         assembler flag.
9882         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9883         zarch_nohighgprs around the zarch optimized routines.
9884         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9885         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9886         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9887         for zarch.
9888
9889 2012-09-05  David S. Miller  <davem@davemloft.net>
9890
9891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9892
9893         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9894         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9895         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9896         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9897         entries.
9898
9899 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9900
9901         * malloc/arena.c: Fold copyright years.
9902         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9903
9904 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9905
9906         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9907
9908 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9909
9910         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9911
9912 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9913
9914         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9915         change internal state upon failure.
9916
9917 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9918
9919         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9920         * malloc/memusage.c (mmap): Likewise.
9921         (mmap64, mremap): Likewise.  Adjust name in comment.
9922
9923 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9924
9925         * libio/fileops.c: Fix typos in comments.
9926         * libio/oldfileops.c: Likewise.
9927         * libio/wfileops.c: Likewise.
9928
9929 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9930
9931         [BZ #1349]
9932         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9933         (tst-malloc-usable-ENV): Set environment for test case.
9934         * malloc/hooks.c (malloc_check_get_size): New function to get
9935         requested size.
9936         * malloc/malloc.c (musable): Use malloc_check_get_size.
9937         * malloc/tst-malloc-usable.c: New test case.
9938
9939 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9940
9941         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9942
9943 2012-09-05  Allan McRae  <allan@archlinux.org>
9944
9945         [BZ #13966]
9946         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9947         determine header location.
9948         * configure: Regenerated.
9949
9950 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9951
9952         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9953         float format.
9954         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9955         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9956         format.
9957         (test): Regenerate.
9958
9959 2012-09-04  David S. Miller  <davem@davemloft.net>
9960
9961         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9962         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9963         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9964
9965 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9966
9967         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9968         failures.
9969
9970         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9971
9972 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9973
9974         [BZ #9914]
9975         * libio/iogetdelim.c: Include <limits.h>.
9976         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9977         + len + 1 would overflow.
9978
9979 2012-09-03  Andreas Jaeger  <aj@suse.de>
9980
9981         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9982         * sysdeps/i386/fpu/libm-test-ulps: Update.
9983
9984 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9985
9986         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9987         Add s_sinf-sse2, s_conf-sse2.
9988
9989         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
9990         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
9991         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
9992         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
9993
9994         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
9995         for using routine as __sinf_ia32.
9996         Use macro for function declaration and weak_alias.
9997         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
9998         for using routine as __cosf_ia32.
9999         Use macro for function declaration and weak_alias.
10000
10001         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10002         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10003
10004         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10005         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10007
10008         * math/libm-test.inc (cos_test): Add more test cases.
10009         (sin_test): Likewise.
10010         (sincos_test): Likewise.
10011
10012 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10013
10014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10015         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10016         hidden.
10017         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10018
10019 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10020
10021         [BZ #14538]
10022         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10023         first element of the GOT.
10024         (elf_machine_load_address): Return the difference between
10025         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10026
10027 2012-09-01  Allan McRae  <allan@archlinux.org>
10028
10029         [BZ #13412]
10030         * configure.in (AWK): Require gawk version 3.0 or later.
10031         * configure: Regenerated.
10032
10033 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10034
10035         * sysdeps/unix/sysv/linux/kernel-features.h
10036         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10037         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10038         [__NR_clock_getres]: Make code unconditional.
10039         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10040         (clock_getcpuclockid): Remove code left unreachable by removal of
10041         conditionals.
10042         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10043         code unconditional.
10044         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10045         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10046         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10047         Make code unconditional.
10048         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10049         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10050         * sysdeps/unix/sysv/linux/clock_settime.c
10051         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10052         conditional code.
10053         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10054         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10055
10056 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10057
10058         [BZ #14476]
10059         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10060         scripts/test-installation.pl.
10061
10062         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10063         and $ld_so_version if it is set.
10064
10065 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10066
10067         [BZ #14516]
10068         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10069         failure if reading from procfs failed.
10070         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10071
10072 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10073
10074         * sysdeps/unix/sysv/linux/kernel-features.h
10075         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10076         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10077         Remove conditional code.
10078         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10079         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10080         Remove conditional code.
10081         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10082         * sysdeps/unix/sysv/linux/i386/fxstat.c
10083         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10084         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10085         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10086         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10087         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10088         * sysdeps/unix/sysv/linux/i386/lxstat.c
10089         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10090         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10091         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10092         Remove conditional code.
10093         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10094         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10095         Remove conditional code.
10096         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10097         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10098         <kernel-features.h>.
10099         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10100         Remove.
10101         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10102         Remove conditional code.
10103         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10104         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10105         Remove conditional.
10106
10107 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10108
10109         [BZ #5400]
10110         * NEWS: Add fixed bug number.
10111
10112 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10113
10114         [BZ #14519]
10115         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10116         underflowing exponent in case of negative sign.
10117         * stdlib/tst-strtod-round-data: Add more tests.
10118         * stdlib/tst-strtod-round.c (tests): Regenerated.
10119
10120         [BZ #3479]
10121         * stdlib/strtod_l.c (NDIG): Remove.
10122         (HEXNDIG): Likewise.
10123         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10124         smallest representable value.
10125         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10126         lie within an exact representation of 1/2 ulp of the result.
10127         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10128         unconditionally.
10129         (TENS_P9_IDX): Define unconditionally.
10130         (TENS_P9_SIZE): Likewise.
10131         (TENS_P10_IDX): Likewise.
10132         (TENS_P10_SIZE): Likewise.
10133         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10134         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10135         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10136         entries for 10^2^13 and 10^2^14.
10137         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10138         (TENS_P13_IDX): Define.
10139         (TENS_P13_SIZE): Likewise.
10140         (TENS_P14_IDX): Likewise.
10141         (TENS_P14_SIZE): Likewise.
10142         (_fpioconst_pow10): Change array size to
10143         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10144         unconditional.
10145         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10146         1024]: Add entries for 10^2^13 and 10^2^14.
10147         [LAST_POW10 > _LAST_POW10]: Remove #error.
10148         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10149         (_fpioconst_pow10): Change array size to
10150         FPIOCONST_POW10_ARRAY_SIZE.
10151         * stdlib/gen-fpioconst.c: New file.
10152         * stdlib/gen-tst-strtod-round.c: Likewise.
10153         * stdlib/tst-strtod-round-data: Likewise.
10154         * stdlib/tst-strtod-round.c: Likewise.
10155         * stdlib/Makefile (tests): Add tst-strtod-round.
10156
10157         [BZ #14459]
10158         * stdlib/strtod_l.c: Include <stdint.h>.
10159         (NDEBUG): Do not define.
10160         (round_and_return): Change EXPONENT parameter to type intmax_t.
10161         Rearrange calculations to avoid internal overflow possibilities.
10162         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10163         Rearrange calculations to avoid internal overflow possibilities.
10164         Assert that number fits inside MPNSIZE limbs.
10165         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10166         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10167         calculations and add assertions to avoid internal overflow
10168         possibilities.  Add casts to avoid signed/unsigned operations.
10169         * stdlib/tst-strtod-overflow.c: New file.
10170         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10171
10172 2012-08-25  Marek Polacek  <polacek@redhat.com>
10173
10174         * time/time.h: Fix some typos in comments.
10175
10176 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10177
10178         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10179         * posix/tst-rfc3484-2.c: Likewise.
10180         * posix/tst-rfc3484-3.c: Likewise.
10181
10182 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10183
10184         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10185         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10186
10187 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10188
10189         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10190         #include of fxstatat64.c.
10191
10192 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10193
10194         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10195         * shadow/getspent_r.c: Likewise.
10196         * shadow/getspnam.c: Likewise.
10197         * shadow/getspnam_r.c: Likewise.
10198         * gshadow/getsgent.c: Likewise.
10199         * gshadow/getsgent_r.c: Likewise.
10200         * gshadow/getsgnam.c: Likewise.
10201         * gshadow/getsgnam_r.c: Likewise.
10202         * inet/getnetbyad.c: Likewise.
10203         * inet/getnetbyad_r.c: Likewise.
10204         * inet/getnetbynm.c: Likewise.
10205         * inet/getnetbynm_r.c: Likewise.
10206         * inet/getnetent.c: Likewise.
10207         * inet/getnetent_r.c: Likewise.
10208         * inet/getproto.c: Likewise.
10209         * inet/getproto_r.c: Likewise.
10210         * inet/getprtent.c: Likewise.
10211         * inet/getprtent_r.c: Likewise.
10212         * inet/getprtname.c: Likewise.
10213         * inet/getprtname_r.c: Likewise.
10214         * inet/getrpcbyname.c: Likewise.
10215         * inet/getrpcbyname_r.c: Likewise.
10216         * inet/getrpcbynumber.c: Likewise.
10217         * inet/getrpcbynumber_r.c: Likewise.
10218         * inet/getrpcent.c: Likewise.
10219         * inet/getrpcent_r.c: Likewise.
10220         * inet/getaliasent.c: Likewise.
10221         * inet/getaliasent_r.c: Likewise.
10222         * inet/getaliasname.c: Likewise.
10223         * inet/getaliasname_r.c: Likewise.
10224         * nscd/getgrgid_r.c: Likewise.
10225         * nscd/getgrnam_r.c: Likewise.
10226         * nscd/gethstbyad_r.c: Likewise.
10227         * nscd/gethstbynm3_r.c: Likewise.
10228         * nscd/getpwnam_r.c: Likewise.
10229         * nscd/getpwuid_r.c: Likewise.
10230         * nscd/getsrvbynm_r.c: Likewise.
10231         * nscd/getsrvbypt_r.c: Likewise.
10232         * nscd/gai.c: Likewise.
10233
10234         * configure.in (build_nscd): New substituted variable, set
10235         by --disable-build-nscd and defaults to $use_nscd.
10236         * configure: Regenerated.
10237         * config.make.in (build-nscd): New substituted variable.
10238         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10239         Change conditional to require [$(build-nscd) = yes] as well.
10240         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10241
10242         [BZ# 13696]
10243         * configure.in (use_nscd): New substituted variable, set by
10244         --disable-nscd.  If enabled, define USE_NSCD.
10245         * configure: Regenerated.
10246         * config.h.in: Add USE_NSCD.
10247         * config.make.in (use-nscd): New substituted variable.
10248         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10249         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10250         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10251         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10252         (CFLAGS-getgrnam_r.c): Likewise.
10253         (CFLAGS-initgroups.c): Likewise.
10254         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10255         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10256         Variables removed.
10257         * inet/getnetgrent_r.c
10258         (nscd_setnetgrent): New function, broken out of ...
10259         (setnetgrent): ... here.  Call it.
10260         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10261         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10262         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10263         * nscd/Makefile (routines, aux): Move definitions after include of
10264         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10265         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10266         Conditionalize on [USE_NSCD].
10267         (is_nscd, nscd_init_cb): Likewise.
10268         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10269         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10270         * nss/nss_db/db-init.c: Likewise.
10271         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10272         [USE_NSCD].
10273         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10274         (make_request): Use it.
10275         (cache_valid_p): New function.
10276         (__check_pf): Use it.
10277         * NEWS: Add item for --disable-nscd.
10278
10279 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10280
10281         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10282         to support sed >= 4.2.1-20-ga9bf076.
10283         * configure: Regenerated.
10284
10285 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10286
10287         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10288         Conditionalize whole body on [IREL].
10289
10290 2012-08-22  Jeff Law <law@redhat.com>
10291
10292         [BZ #14505]
10293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10294         if the family is PF_UNSPEC.
10295
10296 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10297
10298         * Makerules (lib-version): Rename from V.
10299         (install-lib-nosubdir): Change V to lib-version.
10300
10301 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10302
10303         [BZ #14252]
10304         * powerpc32/power6/wcschr.c: New file.
10305         * powerpc32/power6/wcscpy.c: New file.
10306         * powerpc32/power6/wcsrchr.c: New file.
10307         * powerpc64/power6/wcschr.c: New file.
10308         * powerpc64/power6/wcscpy.c: New file.
10309         * powerpc64/power6/wcsrchr.c: New file.
10310
10311 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10312
10313         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10314         (two_way_short_needle): Use it.
10315         * string/strstr.c (AVAILABLE1_USES_J): Define.
10316         * string/strcasestr.c: Likewise.
10317
10318         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10319         array references.
10320         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10321
10322         [BZ #11607]
10323         * NEWS: Add an entry.
10324         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10325         define their defaults.
10326         (two_way_short_needle): Detect end-of-string on-the-fly.
10327         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10328         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10329         * string/bug-strcasestr1.c: New test.
10330         * string/Makefile: Run it.
10331
10332 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10333
10334         [BZ #11607]
10335         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10336         the first character.
10337
10338 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10339
10340         * csu/elf-init.c (__libc_csu_irel): Function removed.
10341         * csu/libc-start.c (apply_irel): New function.
10342         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10343
10344 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10345
10346         * sysdeps/unix/sysv/linux/kernel-features.h
10347         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10348         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10349         <kernel-features.h>.
10350         [__NR_fadvise64_64]: Make code unconditional.
10351         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10352         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10353         !__NR_fadvise64_64)]: Likewise.
10354         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10355         !__NR_fadvise64_64))]: Likewise.
10356         [__NR_fadvise64]: Make code unconditional.
10357         [!__NR_fadvise64]: Remove conditional code.
10358         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10359         <kernel-features.h>.
10360         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10361         unconditional.
10362         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10363         conditional code.
10364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10365         not include <kernel-features.h>.
10366         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10367         unconditional.
10368         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10369         conditional code.
10370         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10371         include <kernel-features.h>.
10372         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10373         unconditional.
10374         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10375         conditional code.
10376
10377 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10378
10379         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10380         slight instruction rearrangements per scrollpipe analysis.
10381         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10382
10383 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10384
10385         * manual/syslog.texi (syslog; vsyslog, closelog):
10386         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10387         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10388
10389         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10390         DSOCAPS to match condition on defining it.
10391
10392 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10393
10394         * sysdeps/unix/sysv/linux/kernel-features.h
10395         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10397         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10398         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10400         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10401         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10403         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10404         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10405
10406         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10407         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10408
10409         * sysdeps/unix/sysv/linux/kernel-features.h
10410         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10411         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10412         unconditional.
10413         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10414         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10415         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10416         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10417         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10418         Make code unconditional.
10419         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10420         (__mmap64) [!__NR_mmap2]: Likewise.
10421         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10422         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10423         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10424         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10425         [__NR_mmap2]: Make code unconditional.
10426         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10427         (__mmap64) [!__NR_mmap2]: Likewise.
10428
10429 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10430
10431         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10432
10433 2012-08-18  Andreas Jaeger  <aj@suse.de>
10434
10435         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10436
10437 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10438
10439         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10440         * include/unistd.h (__have_sock_cloexec): Likewise.
10441         (__have_pipe2): Likewise.
10442         (__have_dup3): Likewise.
10443
10444 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10445
10446         [BZ #9685]
10447         * include/unistd.h (__have_pipe2): Change define into an extern int.
10448         (__have_dup3): Likewise.
10449         * socket/have_sock_cloexec.c: Include fcntl.h.
10450         (__have_pipe2): New variable.
10451         (__have_dup3): Likewise.
10452
10453 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10454
10455         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10456
10457 2012-08-17  Marek Polacek  <polacek@redhat.com>
10458
10459         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10460         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10461
10462 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10463
10464         * configure.in: Add AC_SUBST for sysheaders.
10465         * configure: Regenerated.
10466         * config.make.in (sysheaders): New substituted variable.
10467
10468         * sysdeps/unix/mkfifo.c: Moved ...
10469         * sysdeps/posix/mkfifo.c: ... here.
10470         * sysdeps/unix/mkfifoat.c: Moved ...
10471         * sysdeps/posix/mkfifoat.c: ... here.
10472
10473         * sysdeps/unix/utime.c: Moved ...
10474         * sysdeps/posix/utime.c: ... here.
10475
10476         * sysdeps/unix/time.c: Moved ...
10477         * sysdeps/posix/time.c: ... here.
10478         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10479         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10480
10481         * sysdeps/unix/nice.c: Moved ...
10482         * sysdeps/posix/nice.c: ... here.
10483
10484         * sysdeps/unix/alarm.c: Moved ...
10485         * sysdeps/posix/alarm.c: ... here.
10486
10487         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10488
10489 2012-08-17  Jeff Law <law@redhat.com>
10490
10491         * intl/Makefile (codeset_mo): New variable.
10492         ($(codeset_mo)): New target.
10493         (tst-codeset.out): Depend on that.  Remove explicit rule.
10494         (tst-gettext3.out, tst-gettext5.out): Likewise.
10495         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10496         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10497         * intl/tst-codeset.sh: Remove.
10498         * intl/tst-gettext3.sh: Likewise.
10499         * intl/tst-gettext5.sh: Likewise.
10500
10501 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10502
10503         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10504         * sysdeps/unix/syscalls.list: ... here.
10505
10506         * sysdeps/posix/getaddrinfo.c
10507         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10508         (gaiconf_init, gaiconf_reload): Use them.
10509         [!_STATBUF_ST_NSEC]
10510         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10511         Define using time_t rather than struct timespec.
10512
10513         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10514         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10515         Macros removed.
10516         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10517         [!NO_THREADS].
10518         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10519         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10520         Likewise.
10521
10522         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10523         __libc_cleanup_push argument.
10524
10525         * bits/param.h: New file.
10526         * misc/sys/param.h: New file.
10527         * include/sys/param.h: New file.
10528         * misc/Makefile (headers): Add bits/param.h.
10529         * sysdeps/generic/sys/param.h: File removed.
10530         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10531         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10532         * sysdeps/mach/hurd/bits/param.h: New file.
10533         * sysdeps/mach/hurd/sys/param.h: File removed.
10534
10535         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10536         last change.
10537
10538         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10539         [_IO_MTSAFE_IO].
10540         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10541         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10542         New macros.
10543
10544         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10545         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10546         rather than -D_IO_MTSAFE_IO conditionally.
10547         * stdio-common/Makefile (CPPFLAGS): Likewise.
10548         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10549         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10550         Use $(libio-mtsafe).
10551         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10552         of -D_IO_MTSAFE_IO.
10553         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10554         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10555         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10556         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10557         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10558         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10559         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10560         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10561         (CFLAGS-fread_u_chk.c): Likewise.
10562         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10563         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10564         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10565         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10566         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10567         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10568         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10569         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10570         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10571
10572         * libio/Makefile: Test [$(libc-reentrant) = yes]
10573         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10574
10575         * Makeconfig
10576         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10577         * sysdeps/pthread/configure: File removed.
10578         * sysdeps/pthread/Makeconfig: New file.
10579         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10580         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10581
10582 2012-08-16  Gary Benson  <gbenson@redhat.com>
10583
10584         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10585         unmapping the first object in a namespace.
10586
10587 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10588
10589         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10590         (__internal_setnetgrent): ... this.  Add internal_function to
10591         definition.  Add libc_hidden_def.
10592         (setnetgrent): Update caller.
10593         (internal_endnetgrent): Renamed to ...
10594         (__internal_endnetgrent): ... this.  Add internal_function to
10595         definition.  Add libc_hidden_def.
10596         (endnetgrent): Update caller.
10597         (internal_getnetgrent_r): Renamed to ...
10598         (__internal_getnetgrent_r): ... this.  Add internal_function to
10599         definition.  Add libc_hidden_def.
10600         (__getnetgrent_r): Update caller.
10601         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10602
10603 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10604
10605         * stdlib/longlong.h: Update from GCC.
10606
10607 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10608
10609         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10610         on _QL, which is set by umul_ppmm but never used.
10611         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10612         variables, which are set by GMP macros but never used.
10613         * stdio-common/_itowa.c (_itowa): Likewise.
10614         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10615         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10616
10617 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10618
10619         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10620         struct La_sh_regs is not constant.
10621         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10622         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10623         and struct La_sparc64_regs are not constant.
10624
10625 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10626
10627         * sysdeps/unix/sysv/linux/kernel-features.h
10628         (__ASSUME_POSIX_TIMERS): Remove.
10629         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10630         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10631         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10632         Make code unconditional.
10633         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10634         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10635         Make code unconditional.
10636         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10637         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10638         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10639         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10640         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10641         Make code unconditional.
10642         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10643         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10644         (__libc_missing_posix_timers): Remove.
10645
10646 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10647
10648         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10649         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10650
10651         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10652
10653         * elf/dl-sym.c: Include <stdlib.h>.
10654
10655         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10656         constants, which avoids warnings in 32-bit builds.
10657
10658         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10659         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10660
10661         * misc/lseek.c: File moved to ...
10662         * io/lseek.c: ... here.
10663
10664         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10665
10666         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10667         shifting LEN more than 31 bits at once.
10668
10669 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10670
10671         [BZ #14195]
10672         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10673         segmentation fault for a case of two empty input strings.
10674         * string/test-strncasecmp.c (check1): Renamed to...
10675         (bz12205): ...this.
10676         (bz14195): Add new testcase for two empty input strings and N > 0.
10677         (test_main): Call new testcase, adapt for renamed function.
10678
10679 2012-08-15  Andreas Jaeger  <aj@suse.de>
10680
10681         [BZ #14090]
10682         * crypt/md5test2.c: New test, based on test supplied by Serge
10683         Belyshev <belyshev@depni.sinp.msu.ru>.
10684         * crypt/Makefile (xtests): Add md5test-giant..
10685         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10686
10687 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         [BZ #14090]
10690         * crypt/md5.c (md5_process_block): Don't assume the buffer
10691         length is less than 2**32.
10692         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10693         length is less than 2**64.
10694
10695 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10696
10697         * string/str-two-way.h: Include <sys/param.h>.
10698         (MAX): Macro removed.
10699
10700         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10701         Move #define and #undef of memmove to just before and after
10702         including <string.h>.
10703
10704         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10705         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10706         and after including <string.h>.  Move declarations of
10707         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10708         to before #include "string/memmove.c".
10709
10710         * include/dirent.h: Declare __getdirentries.
10711
10712         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10713         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10714
10715 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10716
10717         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10718         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10719         * sysdeps/i386/configure: Regenerated.
10720         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10721         STABS_CURRENT_FILE, and STABS_FUN.
10722         (END): Remove call to STABS_FUN_END.
10723         (STABS_CURRENT_FILE1): Delete.
10724         (STABS_CURRENT_FILE): Likewise.
10725         (STABS_FUN): Likewise.
10726         (STABS_FUN_END): Likewise.
10727         (STABS_FUN2): Likewise.
10728         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10729         * sysdeps/x86_64/configure: Regenerated.
10730
10731 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10732
10733         * elf/dl-open.c: Include <atomic.h>.
10734         * elf/dl-lookup.c: Likewise.
10735
10736 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10737
10738         * sysdeps/unix/sysv/linux/kernel-features.h
10739         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10740         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10741         unconditionally.
10742         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10743         unconditionally.
10744         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10745         condition on __ASSUME_CLONE_THREAD_FLAGS.
10746
10747 2012-08-14  Andreas Jaeger  <aj@suse.de>
10748
10749         * sysdeps/i386/fpu/libm-test-ulps: Update.
10750
10751 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10752
10753         * include/atomic.h (atomic_exchange_and_add): Split into ...
10754         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10755         New atomic macros.
10756
10757 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10758
10759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10760
10761 2012-08-13  Jeff Law <law@redhat.com>
10762
10763         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10764         null byte in the output string.
10765
10766 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10767
10768         * sysdeps/unix/sysv/linux/kernel-features.h
10769         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10770         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10771         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10772         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10773         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10774         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10775         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10776
10777 2012-08-09  Jeff Law <law@redhat.com>
10778
10779         [BZ #13939]
10780         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10781         When avoid_arena is set, don't retry in the that arena.  Pick the
10782         next one, whatever it might be.
10783         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10784         (arena_lock): Pass in new parameter to arena_get2.
10785         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10786         arena_get2.
10787         (__libc_malloc): Unify retrying after main arena failure with
10788         __libc_memalign version.
10789         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10790
10791 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10792
10793         [BZ #14166]
10794         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10795         to __redirect_strstr.
10796         (__strstr_sse42): Use typeof __redirect_strstr.
10797         (__strstr_ia32): Likewise.
10798         (__libc_strstr): New prototype.
10799         (strstr): Renamed to ...
10800         (__libc_strstr): This.
10801         (strstr): New strong alias of __libc_strstr.
10802         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10803         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10804         __redirect_time.
10805         Include <time.h>.
10806         (__libc_time): New prototype.
10807         (time_ifunc): Replace time with __libc_time.
10808         (time): New strong alias and hidden definition of __libc_time.
10809         (__GI_time): Remove strong alias.
10810         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10811         Include <stddef.h>.
10812         (memmove): Redefined to __redirect_memmove.
10813         (__memmove_sse2): Use typeof __redirect_memmove.
10814         (__memmove_ssse3): Likewise.
10815         (__memmove_ssse3_back): Likewise.
10816         (__libc_memmove): New prototype.
10817         (memmove): Renamed to ...
10818         (__libc_memmove): This.
10819         (memmove): New strong alias of __libc_memmove.
10820
10821 2012-08-08  Mark Salter  <msalter@redhat.com>
10822
10823         * elf/elf.h
10824         (R_MN10300_TLS_GD): Define.
10825         (R_MN10300_TLS_LD): Likewise.
10826         (R_MN10300_TLS_LDO): Likewise.
10827         (R_MN10300_TLS_GOTIE): Likewise.
10828         (R_MN10300_TLS_IE): Likewise.
10829         (R_MN10300_TLS_LE): Likewise.
10830         (R_MN10300_TLS_DTPMOD): Likewise.
10831         (R_MN10300_TLS_DTPOFF): Likewise.
10832         (R_MN10300_TLS_TPOFF): Likewise.
10833         (R_MN10300_SYM_DIFF): Likewise.
10834         (R_MN10300_ALIGN): Likewise.
10835         (R_MN10300_NUM): Update.
10836
10837 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10840         Remove.
10841
10842 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10843
10844         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10845
10846         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10847         sysdeps/unix -> sysdeps/posix move.
10848         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10849
10850 2012-08-07      Allan McRae     <allan@archlinux.org>
10851
10852         [BZ #14303]
10853         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10854         (SUNOS_CPP): Likewise.
10855         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10856         not found.
10857         (open_input): Call CPP using execvp.
10858
10859 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10860
10861         * sysdeps/unix/sysv/linux/kernel-features.h
10862         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10863         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10864         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10865         (__ASSUME_WAITID_SYSCALL): Likewise.
10866         * sysdeps/unix/sysv/linux/dl-execstack.c
10867         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10868         code unconditional.
10869         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10870         conditional code.
10871         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10872         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10873         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10874         code.
10875         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10876         unconditional.
10877         [__ASSUME_WAITID_SYSCALL]: Likewise.
10878         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10879
10880 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10881
10882         * sysdeps/unix/closedir.c: Renamed to ...
10883         * sysdeps/posix/closedir.c: ... here.
10884         * sysdeps/unix/dirfd.c: Renamed to ...
10885         * sysdeps/posix/dirfd.c: ... here.
10886         * sysdeps/unix/dirstream.h: Renamed to ...
10887         * sysdeps/posix/dirstream.h: ... here.
10888         * sysdeps/unix/fdopendir.c: Renamed to ...
10889         * sysdeps/posix/fdopendir.c: ... here.
10890         * sysdeps/unix/opendir.c: Renamed to ...
10891         * sysdeps/posix/opendir.c: ... here.
10892         * sysdeps/unix/readdir.c: Renamed to ...
10893         * sysdeps/posix/readdir.c: ... here.
10894         * sysdeps/unix/readdir_r.c: Renamed to ...
10895         * sysdeps/posix/readdir_r.c: ... here.
10896         * sysdeps/unix/rewinddir.c: Renamed to ...
10897         * sysdeps/posix/rewinddir.c: ... here.
10898         * sysdeps/unix/seekdir.c: Renamed to ...
10899         * sysdeps/posix/seekdir.c: ... here.
10900         * sysdeps/unix/telldir.c: Renamed to ...
10901         * sysdeps/posix/telldir.c: ... here.
10902         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10903         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10904         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10905         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10906
10907         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10908         * bits/fcntl.h: ... here.
10909
10910         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10911         not 0.
10912         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10913         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10914         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10915         (struct flock): Move l_start, l_len to the beginning.
10916         Use __pid_t for l_pid.
10917         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10918         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10919         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10920         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10921         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10922         [__USE_LARGEFILE64] (struct flock64): New type.
10923         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10924
10925         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10926         * bits/dirent.h: ... here.
10927
10928         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10929         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10930
10931 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10932
10933         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10934         Change from 2.6.0 to 2.6.16.
10935         * sysdeps/unix/sysv/linux/configure: Regenerated.
10936         * sysdeps/unix/sysv/linux/kernel-features.h
10937         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10938         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10939         version.
10940         (__ASSUME_UTIMES): Likewise.
10941         (__ASSUME_CLONE_STOPPED): Remove.
10942         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10943         architectures, not kernel version.
10944         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10945         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10946         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10947         (__ASSUME_WAITID_SYSCALL): Likewise.
10948         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10949         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10950         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10951         refer to older versions.
10952
10953 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10954
10955         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10956         Define alphasort64 as an alias.
10957         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10958         Define versionsort64 as an alias.
10959         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10960         Define scandir64 as an alias.
10961         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10962         Define scandirat64 as an alias.
10963         * dirent/alphasort64.c (alphasort64):
10964         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10965         * dirent/versionsort64.c: Likewise.
10966         * dirent/scandir64.c: Likewise.
10967         * dirent/scandirat64.c: Likewise.
10968         * sysdeps/wordsize-64/alphasort.c: File removed.
10969         * sysdeps/wordsize-64/alphasort64.c: File removed.
10970         * sysdeps/wordsize-64/scandir.c: File removed.
10971         * sysdeps/wordsize-64/scandir64.c: File removed.
10972         * sysdeps/wordsize-64/scandirat.c: File removed.
10973         * sysdeps/wordsize-64/scandirat64.c: File removed.
10974         * sysdeps/wordsize-64/versionsort.c: File removed.
10975         * sysdeps/wordsize-64/versionsort64.c: File removed.
10976         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10977         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10978         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10979         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10980         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10981         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10982         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10983         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10984
10985         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10987         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10989         [defined __arch64__ || defined __sparcv9]
10990         (__INO_T_MATCHES_INO64_T): New macro.
10991         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10992         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
10993         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
10994         * sysdeps/unix/sysv/linux/bits/dirent.h
10995         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
10996         (_DIRENT_MATCHES_DIRENT64): New macro.
10997
10998         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
10999         Define lockf64 as an alias.
11000         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11001         Define fseeko64 as an alias.
11002         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11003         Define ftello64 as an alias.
11004         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11005         Define _IO_fgetpos64 and fgetpos64 as aliases.
11006         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11007         Define _IO_fsetpos64 and fsetpos64 as aliases.
11008         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11009         Conditionalize body on this.
11010         * libio/fseeko64.c: Likewise.
11011         * libio/ftello64.c: Likewise.
11012         * libio/iofgetpos64.c: Likewise.
11013         * libio/iofsetpos64.c: Likewise.
11014         * sysdeps/wordsize-64/lockf.c: File removed.
11015         * sysdeps/wordsize-64/lockf64.c: File removed.
11016         * sysdeps/wordsize-64/fseeko.c: File removed.
11017         * sysdeps/wordsize-64/fseeko64.c: File removed.
11018         * sysdeps/wordsize-64/ftello.c: File removed.
11019         * sysdeps/wordsize-64/ftello64.c: File removed.
11020         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11021         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11022         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11023         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11024         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11025         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11026         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11027         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11028         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11029         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11030         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11031         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11032         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11033         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11034
11035         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11036         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11037         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11038         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11039         [defined __arch64__ || defined __sparcv9]
11040         (__OFF_T_MATCHES_OFF64_T): New macro.
11041         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11042         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11043         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11044         (__OFF_T_MATCHES_OFF64_T): New macro.
11045
11046 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11047
11048         * stdlib/secure-getenv.c (__secure_getenv): Replace
11049         GLIBC_2_16 with GLIBC_2_17.
11050
11051 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11052
11053         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11054         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11055
11056 2012-08-03  David S. Miller  <davem@davemloft.net>
11057
11058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11059
11060 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11063         Remove.
11064         (__ASSUME_CORRECT_SI_PID): Likewise.
11065         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11066         (__ASSUME_TMPFS_NAME): Likewise.
11067         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11068         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11069         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11070         (HAVE_AUX_SECURE): Make definition unconditional.
11071         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11072         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11073
11074 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11075
11076         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11077         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11078         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11079         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11080         __eloop_threshold instead of SYMLOOP_MAX.
11081
11082         * sysdeps/generic/eloop-threshold.h: New file.
11083         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11084         of MAXSYMLINKS.
11085         * elf/chroot_canon.c (chroot_canon): Likewise.
11086
11087 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11088
11089         [BZ #13717]
11090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11091         Change to 2.6.0 everywhere.
11092         * sysdeps/unix/sysv/linux/configure: Regenerated.
11093         * sysdeps/unix/sysv/linux/kernel-features.h
11094         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11095         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11096         kernel versions.
11097         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11098         (__ASSUME_FUTEX_REQUEUE): Remove.
11099         (__ASSUME_STATFS64): Define unconditionally.
11100         (__ASSUME_AT_SECURE): Likewise.
11101         (__ASSUME_CORRECT_SI_PID): Likewise.
11102         (__ASSUME_TGKILL): Define without depending on kernel version for
11103         i386.
11104         (__ASSUME_UTIMES): Likewise.
11105         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11106         kernel version.
11107         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11108         (__ASSUME_TMPFS_NAME): Likewise.
11109         * README: Update reference to Linux kernel versions.
11110
11111 2012-08-02  Marek Polacek  <polacek@redhat.com>
11112
11113         [BZ# 14150]
11114         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11115         libc_cv_asm_type_prefix with %.
11116         * configure: Regenerated.
11117         * include/libc-symbols.h: Remove comment about
11118         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11119         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11120         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11121         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11122         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11123         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11124         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11125         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11126         * elf/tst-unique2mod1.c: Likewise.
11127         * elf/tst-unique1mod2.c: Likewise.
11128         * elf/tst-unique1mod1.c: Likewise.
11129         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11130         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11131         Replace ASM_TYPE_DIRECTIVE with .type.
11132         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11133         * sysdeps/i386/sysdep.h: Likewise.
11134         * sysdeps/x86_64/sysdep.h: Likewise.
11135         * sysdeps/sh/sysdep.h: Likewise.
11136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11137         Do not define ASM_TYPE_DIRECTIVE.
11138         * sysdeps/powerpc/sysdep.h: Likewise.
11139         * sysdeps/powerpc/powerpc32/sysdep.h:
11140         Replace ASM_TYPE_DIRECTIVE with .type.
11141         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11142         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11143         * sysdeps/i386/fpu/e_powf.S: Likewise.
11144         * sysdeps/i386/fpu/e_expl.S: Likewise.
11145         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11146         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11147         * sysdeps/i386/fpu/e_pow.S: Likewise.
11148         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11149         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11150         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11151         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11152         * sysdeps/i386/fpu/e_log2.S: Likewise.
11153         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11154         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11155         * sysdeps/i386/fpu/e_powl.S: Likewise.
11156         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11157         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11158         * sysdeps/i386/fpu/e_logl.S: Likewise.
11159         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11160         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11161         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11162         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11163         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11164         * sysdeps/i386/fpu/e_log.S: Likewise.
11165         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11166         * sysdeps/i386/fpu/e_logf.S: Likewise.
11167         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11168         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11169         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11170         * sysdeps/i386/fpu/e_log10.S: Likewise.
11171         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11172         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11173         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11174         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11175         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11176         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11177         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11178         * sysdeps/i386/i686/strtok.S: Likewise.
11179         * sysdeps/i386/i386-mcount.S: Likewise.
11180         * sysdeps/i386/strtok.S: Likewise.
11181         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11182         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11183         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11184         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11185         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11186         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11187         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11188         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11189         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11190         * sysdeps/x86_64/_mcount.S: Likewise.
11191         * sysdeps/x86_64/strtok.S: Likewise.
11192         * sysdeps/sh/_mcount.S: Likewise.
11193
11194 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11195
11196         * libio/iofopen.c: Include <fcntl.h>.
11197         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11198         (_IO_fopen64, fopen64): Define as aliases.
11199         * libio/iofopen64.c: Include <fcntl.h>.
11200         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11201         Conditionalize body on this.
11202         * sysdeps/wordsize-64/iofopen.c: File removed.
11203         * sysdeps/wordsize-64/iofopen64.c: File removed.
11204
11205 2012-08-01  Marek Polacek  <polacek@redhat.com>
11206
11207         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11208         Use dlfcn directly instead of a variable.
11209         (binfmt-subdir): Do not define.
11210         (dlfcn): Likewise.
11211
11212 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11213
11214         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11215         Remove all definitions.
11216         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11217         <kernel-features.h>.
11218         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11219         (miss_F_GETOWN_EX): Remove all definitions.
11220         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11221         macro definition.
11222         [!__ASSUME_FCNTL64]: Remove conditional code.
11223         [__ASSUME_FCNTL64]: Make code unconditional.
11224         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11225         <kernel-features.h>.
11226         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11227         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11228         (lockf64) [__NR_fcntl64]: Make code unconditional.
11229         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11230
11231         * sysdeps/unix/sysv/linux/kernel-features.h
11232         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11233         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11234         Make code unconditional.
11235         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11236         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11238         [__NR_vfork]: Make code unconditional.
11239         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11240         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11242         [__NR_vfork]: Make code unconditional.
11243         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11244         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11245
11246 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11247
11248         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11249         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11250
11251         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11252         Define mkstemp64 as an alias.
11253         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11254         Define mkstemps64 as an alias.
11255         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11256         Define mkostemp64 as an alias.
11257         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11258         Define mkostemps64 as an alias.
11259         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11260         Conditionalize body on this.
11261         * misc/mkostemp64.c: Likewise.
11262         * misc/mkostemps64.c: Likewise.
11263         * misc/mkstemps64.c: Likewise.
11264         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11265         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11266         * sysdeps/wordsize-64/mkostemp.c: File removed.
11267         * sysdeps/wordsize-64/mkstemp.c: File removed.
11268         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11269         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11270         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11271         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11272
11273         [BZ #14138]
11274         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11275         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11276         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11277         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11278
11279         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11280         compat_symbol macros from <shlib-compat.h> rather than the underlying
11281         default_symbol_version and symbol_version macros, so that DEFAULT
11282         lines in shlib-versions are respected.
11283         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11284
11285 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11286
11287         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11288         Declare with warn_unused_result.
11289         (setgid, setregid, setegid, setresgid): Likewise.
11290         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11291         Likewise.
11292         * WUR-REPORT: Remove set*id functions.
11293
11294 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11295
11296         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11297
11298 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11299
11300         [BZ #10191]
11301         * include/sys/socket.h (__libc_accept, __libc_accept4):
11302         Add attribute_hidden.
11303         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11304
11305         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11306         use of PTR_MANGLE.
11307         * inet/getnetgrent_r.c (setup): Likewise.
11308
11309         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11310
11311 2012-07-31  David S. Miller  <davem@davemloft.net>
11312
11313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11314
11315 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11316
11317         [BZ #13629]
11318         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11319         value between 1.0 and 2.0 and smaller part has absolute value less
11320         than 1.0.
11321         * math/s_clog10.c (__clog10): Likewise.
11322         * math/s_clog10f.c (__clog10f): Likewise.
11323         * math/s_clog10l.c (__clog10l): Likewise.
11324         * math/s_clogf.c (__clogf): Likewise.
11325         * math/s_clogl.c (__clogl): Likewise.
11326         * math/libm-test.inc (clog_test): Add more tests.
11327         (clog10_test): Likewise.
11328         * sysdeps/i386/fpu/libm-test-ulps: Update.
11329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11330
11331 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11332
11333         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11334         Exit with zero in case no suitable GID is found, and write a
11335         message to standard error.
11336
11337 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11338
11339         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11340         rather than to 1.
11341         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11342         (MAXPATHLEN): Removed.
11343         (NOGROUP, NODEV): New macros.
11344         (setbit, clrbit, isset, isclr): New macros.
11345         (howmany, roundup, powerof2): New macros.
11346         (DEV_BSIZE): New macro.
11347
11348         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11349         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11350
11351         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11352         definition on [!__NO_LONG_DOUBLE_MATH].
11353
11354         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11355         PTR_MANGLE and PTR_DEMANGLE.
11356
11357         * socket/accept4.c (accept4): Rename to __libc_accept4.
11358         Define accept4 as a weak alias.
11359
11360         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11361         on [_DIRENT_HAVE_D_TYPE].
11362         * io/ftw.c (ftw_dir): Likewise.
11363
11364         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11365
11366         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11367
11368         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11369         Use the BSD numbers rather than the arbitrary ones we had.
11370         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11371         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11372         (SIGXCPU, SIGXFSZ): New macros.
11373         (_NSIG): Now 32.
11374
11375         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11376         initializer on [_LIBC_REENTRANT].
11377
11378         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11379         definitions inside [_POSIX_MAPPED_FILES].
11380
11381         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11382
11383         * dirent/opendir.c: Include <fcntl.h>.
11384
11385         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11386         (__libc_getspecific): Likewise.
11387         (__libc_key_create): Likewise.
11388
11389         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11390         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11391         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11392         (tmpfile64): Define as alias.
11393         * sysdeps/wordsize-64/tmpfile.c: File removed.
11394         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11395         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11396         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11397
11398         * stdio-common/vfscanf.c: Include <stdbool.h>.
11399         * nss/makedb.c: Likewise.
11400         * stdio-common/_i18n_number.h: Likewise.
11401         * argp/argp-help.c: Likewise.
11402         * posix/wordexp.c: Likewise.
11403         * sysdeps/posix/spawni.c: Likewise.
11404         * nss/nss_files/files-initgroups.c: Likewise.
11405         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11406         * nss/nss_files/files-initgroups.c: Likewise.
11407         * nss/nss_db/db-netgrp.c: Likewise.
11408         * nss/nss_db/db-initgroups.c: Likewise.
11409         * io/fchmodat.c: Include <sys/stat.h>.
11410
11411         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11412         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11413
11414         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11415         [HAVE_MMAP].
11416
11417         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11418         Add multiple inclusion protection.
11419
11420 2012-07-27  David S. Miller  <davem@davemloft.net>
11421
11422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11423
11424 2012-07-27  Gary Benson  <gbenson@redhat.com>
11425
11426         [BZ #14298]
11427         * elf/rtld.c: Include <stap-probe.h>.
11428         (dl_main): Added static probes "init_start" and "init_complete".
11429         * elf/dl-load.c: Include <stap-probe.h>.
11430         (lose): Take new parameter "nsid".
11431         Added static probe "map_failed".
11432         (_dl_map_object_from_fd): Pass namespace id to lose.
11433         Added static probe "map_start".
11434         (open_verify): Pass namespace id to lose.
11435         * elf/dl-open.c: Include <stap-probe.h>.
11436         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11437         and "reloc_complete".
11438         * elf/dl-close.c: Include <stap-probe.h>.
11439         (_dl_close_worker): Added static probes "unmap_start" and
11440         "unmap_complete".
11441         * elf/rtld-debugger-interface.txt: New file documenting the above.
11442
11443 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11444
11445         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11446         rather than a string variable.
11447         * sunrpc/rpc_main.c (h_output): Likewise.
11448         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11449
11450 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11451
11452         * inet/check_native.c: New file.
11453
11454 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11455
11456         [BZ #13629]
11457         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11458         if larger part has absolute value 1.0.
11459         * math/s_clog10.c (__clog10): Likewise.
11460         * math/s_clog10f.c (__clog10f): Likewise.
11461         * math/s_clog10l.c (__clog10l): Likewise.
11462         * math/s_clogf.c (__clogf): Likewise.
11463         * math/s_clogl.c (__clogl): Likewise.
11464         * math/libm-test.inc (clog_test): Add more tests.
11465         (clog10_test): Likewise.
11466         * sysdeps/i386/fpu/libm-test-ulps: Update.
11467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11468
11469         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11470         (pltexit): Likewise.
11471         (La_regs): Likewise.
11472         (La_retval): Likewise.
11473         (int_retval): Likewise.
11474         Update #error for removed macros to refer only to definitions in
11475         tst-audit.h.
11476         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11477         macro.
11478         (pltexit): Likewise.
11479         (La_regs): Likewise.
11480         (La_retval): Likewise.
11481         (int_retval): Likewise.
11482         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11483         macro.
11484         (pltexit): Likewise.
11485         (La_regs): Likewise.
11486         (La_retval): Likewise.
11487         (int_retval): Likewise.
11488         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11489         macro.
11490         (pltexit): Likewise.
11491         (La_regs): Likewise.
11492         (La_retval): Likewise.
11493         (int_retval): Likewise.
11494         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11495         macro.
11496         (pltexit): Likewise.
11497         (La_regs): Likewise.
11498         (La_retval): Likewise.
11499         (int_retval): Likewise.
11500         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11501         macro.
11502         (pltexit): Likewise.
11503         (La_regs): Likewise.
11504         (La_retval): Likewise.
11505         (int_retval): Likewise.
11506         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11507         macro.
11508         (pltexit): Likewise.
11509         (La_regs): Likewise.
11510         (La_retval): Likewise.
11511         (int_retval): Likewise.
11512         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11513         macro definitions in tst-audit.h.
11514         * sysdeps/i386/tst-audit.h: New file.
11515         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11516         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11517         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11518         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11519         * sysdeps/sh/tst-audit.h: Likewise.
11520         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11521         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11522         * sysdeps/x86_64/tst-audit.h: Likewise.
11523
11524 2012-07-26  Andreas Jaeger  <aj@suse.de>
11525
11526         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11527         ptrace.
11528
11529         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11530         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11531         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11532         PTRACE_O_MASK.
11533         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11534         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11535         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11536
11537         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11538         value.
11539
11540         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11541         _sigsys.
11542         (si_call_addr, si_syscall, si_arch): Define new macro.
11543         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11544         _sigsys.
11545         (si_call_addr, si_syscall, si_arch): Define new marcro.
11546         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11547         _sigsys.
11548         (si_call_addr, si_syscall, si_arch): Define new macro.
11549         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11550         _sigsys.
11551         (si_call_addr, si_syscall, si_arch): Define new macro.
11552
11553 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11554
11555         [BZ #13717]
11556         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11557         Change to 2.4.21 where previously 2.4.1.
11558         * sysdeps/unix/sysv/linux/configure: Regenerated.
11559         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11560         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11561         Linux kernel version.
11562         (__ASSUME_STD_AUXV): Remove.
11563         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11564         kernel version.
11565         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11566         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11567         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11568         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11569         (__ASSUME_NETLINK_SUPPORT): Likewise.
11570         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11571         (__no_netlink_support): Remove conditional definition.
11572         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11573         Remove.
11574         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11575         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11576         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11577         (if_nameindex_ioctl): Remove.
11578         (if_nameindex_netlink): Do not handle __no_netlink_support.
11579         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11580         code.
11581         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11582         Remove conditional code.
11583         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11584         code.
11585         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11586         unconditional.
11587         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11588         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11589         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11590         Remove.
11591         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11592         [!__ASSUME_STD_AUXV]: Remove conditional code.
11593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11594         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11595         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11597         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11598         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11599         code.
11600         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11602         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11603         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11604         conditional code.
11605         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11607         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11608         code.
11609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11610         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11611         conditional code.
11612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11613         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11614         code unconditional.
11615         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11616         conditional code.
11617         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11618         unconditional.
11619         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11620         conditional code.
11621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11622         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11623         unconditional.
11624         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11625         conditional code.
11626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11627         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11628         code unconditional.
11629         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11630         conditional code.
11631         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11632         unconditional.
11633         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11634         conditional code.
11635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11636         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11637         code unconditional.
11638         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11639         conditional code.
11640         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11641         unconditional.
11642         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11643         conditional code.
11644
11645 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11646
11647         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11648         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11649         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11650         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11651         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11652         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11653         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11654         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11655         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11656         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11657         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11658         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11659         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11660         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11661         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11662         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11663         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11664         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11665         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11667         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11668         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11669         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11670
11671 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11672
11673         * Versions.def: Add GLIBC_2.17.
11674         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11675         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11676         Introduce __libc_secure_getenv.
11677         * stdlib/Versions (2.17): Add secure_getenv
11678         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11679         * stdlib/secure-getenv.c: Rename __secure_getenv to
11680         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11681         symbol __secure_getenv for GLIBC_2.0.
11682         * stdlib/tst-secure-getenv.c: New.
11683         * stdlib/Makefile (tests): Add testcase.
11684         * manual/startup.texi (Environment Access): Document
11685         secure_getenv.
11686         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11687         __libc_secure_getenv.
11688         * inet/ruserpass.c (ruserpass): Likewise.
11689         * malloc/mtrace.c (mtrace): Likewise.
11690         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11691         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11692         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11693         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11694         HAVE_SECURE_GETENV.
11695         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11696         __secure_getenv to __libc_secure_getenv.
11697         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11699         Likewise.
11700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11701         Likewise.
11702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11704         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11706         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11709
11710 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11711
11712         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11713         (struct La_i86_retval): Likewise.
11714         (struct La_x86_64_regs): Likewise.
11715         (struct La_x86_64_retval): Likewise.
11716         (struct La_x32_regs): Likewise.
11717         (struct La_x32_retval): Likewise.
11718         (struct La_ppc32_regs): Likewise.
11719         (struct La_ppc32_retval): Likewise.
11720         (struct La_ppc64_regs): Likewise.
11721         (struct La_ppc64_retval): Likewise.
11722         (struct La_sh_regs): Likewise.
11723         (struct La_sh_retval): Likewise.
11724         (struct La_s390_32_regs): Likewise.
11725         (struct La_s390_32_retval): Likewise.
11726         (struct La_s390_64_regs): Likewise.
11727         (struct La_s390_64_retval): Likewise.
11728         (struct La_sparc32_regs): Likewise.
11729         (struct La_sparc32_retval): Likewise.
11730         (struct La_sparc64_regs): Likewise.
11731         (struct La_sparc64_retval): Likewise.
11732         (struct audit_ifaces): Remove architecture-specific pltenter and
11733         pltexit members.
11734         * sysdeps/i386/ldsodefs.h: New file.
11735         * sysdeps/powerpc/ldsodefs.h: Likewise.
11736         * sysdeps/s390/ldsodefs.h: Likewise.
11737         * sysdeps/sh/ldsodefs.h: Likewise.
11738         * sysdeps/sparc/ldsodefs.h: Likewise.
11739         * sysdeps/x86_64/ldsodefs.h: Likewise.
11740
11741 2012-07-25  Marek Polacek  <polacek@redhat.com>
11742
11743         [BZ #6808]
11744         * math/libm-test.inc (yn_test): Add another test.
11745         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11746         to ERANGE when the result is +-Inf.
11747         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11748         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11749         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11750         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11751
11752 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11753
11754         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11755         equal to 0.
11756         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11757         clock_t.
11758         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11759
11760 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11761
11762         * configure.in <sysdeps resolving>: Correct printing
11763         Implies_before.
11764         * configure: Regenerate.
11765
11766 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11767
11768         * math/w_ilogb.c: Include <limits.h>.
11769         * math/w_ilogbl.c: Likewise.
11770
11771 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11772
11773         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11774         va_copy.  Document allowing for unavailable va_copy only as
11775         pre-C99 compatibility.
11776         * manual/string.texi (Copying and Concatenation): Use va_copy
11777         instead of __va_copy in concat example.
11778
11779 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11780
11781         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11782         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11783         it if not null.
11784
11785         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11786         with O_NOLINK passed to __file_name_lookup.
11787
11788         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11789         with O_NOLINK passed to __file_name_lookup.
11790
11791         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11792         negative N or less than NGIDS.
11793
11794         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11795         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11796         enough.  Use memcpy instead of strncpy.
11797
11798 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11799
11800         * elf/Makefile (check-data): Remove.
11801         (localplt.data): New vpath directive.
11802         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11803         instead of $(check-data).
11804         * scripts/data/localplt-generic.data: Move to ...
11805         * sysdeps/generic/localplt.data: ... here.
11806         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11807         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11808         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11810         ... here.
11811         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11813         ... here.
11814         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11816         ... here.
11817         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11819         ... here.
11820         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11822         ... here.
11823         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11825         ... here.
11826
11827 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11828
11829         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11830         PPC32 and PPC64 files.
11831         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11832         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11833
11834 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11835
11836         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11837         __makecontext_ret to ...
11838         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11839         ... here and call exit if uc_link is NULL.  New file.
11840         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11841         __makecontext_ret.S.
11842         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11843         __makecontext_ret to ...
11844         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11845         ... here and call exit if uc_link is NULL.  New file.
11846         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11847         __makecontext_ret.S.
11848
11849 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11850
11851         * elf/elf.h (R_390_IRELATIVE): New definition.
11852         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11853         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11854         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11855         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11856         (elf_machine_lazy_rel): Likewise.
11857         * sysdeps/s390/dl-irel.h: New file.
11858         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11859         * sysdeps/s390/s390-64/memset.S: New asm code.
11860         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11861         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11862         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11863         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11864         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11865         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11866         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11867         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11868         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11869         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11870         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11871         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11872         * sysdeps/s390/s390-32/memset.S: New asm code.
11873         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11874
11875 2012-07-17  Marek Polacek  <polacek@redhat.com>
11876
11877         [BZ #14349]
11878         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11879         * sysdeps/s390/s390-64/configure.in: Likewise.
11880         * sysdeps/sparc/configure.in: Likewise.
11881         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11882         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11883         * sysdeps/i386/configure.in: Likewise.
11884         * sysdeps/x86_64/configure.in: Likewise.
11885         * sysdeps/sh/configure.in: Likewise.
11886         * sysdeps/s390/s390-32/configure: Regenerated.
11887         * sysdeps/s390/s390-64/configure: Likewise.
11888         * sysdeps/x86_64/configure: Likewise.
11889         * sysdeps/sh/configure: Likewise.
11890         * sysdeps/powerpc/powerpc64/configure: Likewise.
11891         * sysdeps/powerpc/powerpc32/configure: Likewise.
11892         * sysdeps/sparc/configure: Likwise.
11893         * sysdeps/i386/configure: Likewise.
11894
11895         * elf/dl-open.c: Comment fixes.
11896
11897 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11898
11899         * Makefile [CXX] (check-data): Remove.
11900         [CXX] (c++-types.data): New vpath directive.
11901         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11902         vpath.  Do not allow for C++ type data being missing.
11903         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11904         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11905         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11906         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11907         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11908         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11909         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11911         ... here.
11912         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11914         ... here.
11915         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11917         ... here.
11918         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11920         ... here.
11921         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11923         ... here.
11924         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11926         ... here.
11927         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11929         ... here.
11930         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11932
11933         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11934         definitions to architecture-specific files.
11935         (TLS_IE): Likewise.
11936         (TLS_LD): Likewise.
11937         (TLS_GD): Likewise.
11938         * sysdeps/i386/tls-macros.h: New file.
11939         * sysdeps/powerpc/tls-macros.h: Likewise.
11940         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11941         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11942         * sysdeps/sh/tls-macros.h: Likewise.
11943         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11944         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11945         * sysdeps/x86_64/tls-macros.h: Likewise.
11946
11947 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11948
11949         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11950         zero value for regular exit case.
11951
11952         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11953         (__start_context): Preserve zero value for regular exit case.
11954
11955 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11956             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11957
11958         * manual/setjmp.texi (setcontext): Clarify normal process
11959         termination when uc_link is the null pointer.
11960         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11961         exit call.
11962
11963 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11964
11965         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11966         preprocessor.  Test for each exception mask separately.
11967
11968 2012-07-16  Andreas Jaeger  <aj@suse.de>
11969
11970         * po/ru.po: Update from translation team.
11971
11972 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11973
11974         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11975         equal to 0.
11976         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11977         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11978         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11979         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11980         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11981
11982 2012-07-13  Andreas Jaeger  <aj@suse.de>
11983
11984         * po/fr.po: Update from translation team.
11985
11986 2012-07-12  Marek Polacek  <polacek@redhat.com>
11987
11988         [BZ #14173]
11989         * math/libm-test.inc (yn_test): Add test for BZ #14173.
11990         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
11991         loop condition.
11992
11993 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
11994
11995         [BZ #13717]
11996         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11997         Change to 2.4.1 where previously 2.4.0.
11998         * sysdeps/unix/sysv/linux/configure: Regenerated.
11999         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12000         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12001         version.
12002         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12003         (__ASSUME_AT_CLKTCK): Remove.
12004         (__ASSUME_AT_PAGESIZE): Likewise.
12005         (__ASSUME_AT_XID): Likewise.
12006         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12007         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12008         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12009         unconditionally.
12010         (HAVE_AUX_PAGESIZE): Likewise.
12011         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12012         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12013         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12014
12015 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12016
12017         [BZ #14307]
12018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12019         the temporary buffer used to invoke __gethostbyname2_r,
12020         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12021         host_data / struct gaih_addrtuple.
12022         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12023         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12024         header file nss/nsswitch.h.
12025         * nss/nsswitch.h (global scope): Add definition of implementation
12026         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12027         resolv/nss_dns/dns-host.c).
12028
12029 2012-07-11  Andreas Jaeger  <aj@suse.de>
12030
12031         * po/fr.po: Update from translation team.
12032
12033         * po/sv.po: Update from translation team
12034         * po/fr.po: Another update from translation team.
12035
12036 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12037
12038         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12039         for subnormals or multiply small sinh result by itself.
12040         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12042
12043 2012-07-11  David S. Miller  <davem@davemloft.net>
12044
12045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12046
12047 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12048
12049         [BZ #14347]
12050         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12051         (INTERNAL_MARK): Shift it here.
12052
12053 2012-07-10  Marek Polacek  <polacek@redhat.com>
12054
12055         [BZ #14151]
12056         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12057         libc_cv_asm_global_directive with .globl.
12058         * configure: Regenerated.
12059         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12060         with .globl.
12061         * sysdeps/i386/configure: Regenerated.
12062         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12063         with .globl.
12064         * sysdeps/x86_64/configure: Regenerated.
12065         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12066         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12067         * elf/tst-unique2mod2.c: Likewise.
12068         * elf/tst-unique2mod1.c: Likewise.
12069         * elf/tst-unique1mod2.c: Likewise.
12070         * elf/tst-unique1mod1.c: Likewise.
12071         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12072         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12073         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12074         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12075         * sysdeps/mach/sysdep.h: Likewise.
12076         * sysdeps/i386/sysdep.h: Likewise.
12077         * sysdeps/i386/i386-mcount.S: Likewise.
12078         * sysdeps/x86_64/_mcount.S: Likewise.
12079         * sysdeps/x86_64/sysdep.h: Likewise.
12080         * sysdeps/sh/_mcount.S: Likewise.
12081         * sysdeps/sh/sysdep.h: Likewise.
12082         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12083         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12084         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12085         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12086         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12087         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12088         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12089         * locale/localeinfo.h: Likewise.
12090         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12091         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12092
12093 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12094
12095         [BZ #14336]
12096         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12097         system".
12098         * manual/message.texi (The Uniforum approach): Likewise.
12099         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12100         (glibc iconv Implementation): Likewise.
12101
12102 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12103
12104         [BZ #14337]
12105         * math/s_clog.c (__clog): Avoid scaling a value down where that
12106         could result in underflow.
12107         * math/s_clog10.c (__clog10): Likewise.
12108         * math/s_clog10f.c (__clog10f): Likewise.
12109         * math/s_clog10l.c (__clog10l): Likewise.
12110         * math/s_clogf.c (__clogf): Likewise.
12111         * math/s_clogl.c (__clogl): Likewise.
12112         * math/libm-test.inc (clog_test): Add more tests.
12113         (clog10_test): Likewise.
12114         * sysdeps/i386/fpu/libm-test-ulps: Update.
12115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12116
12117 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12118
12119         [BZ #14283]
12120         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12121         by 7 not 8 to examine high bit of fractional part.
12122
12123         [BZ #14042]
12124         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12125         for call to __mcount_internal.
12126         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12127         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12128         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12129
12130 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12131
12132         [BZ #14154]
12133         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12134         approximation for values within 0x1p-13f of an odd multiple of
12135         pi/4.
12136         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12137         exception.  Add more tests.
12138         * sysdeps/i386/fpu/libm-test-ulps: Update.
12139
12140         [BZ #6778]
12141         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12142         inputs and return -1 for them.  Do not check for +Inf in case not
12143         reachable for +Inf.
12144         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12145         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12146         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12147         and return -1 for them.  Do not check for +Inf in case not
12148         reachable for +Inf.
12149         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12150         define.
12151         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12152         and return -1 for them.  Do not check for +Inf in case not
12153         reachable for +Inf.
12154         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12155         spurious underflow.
12156         * sysdeps/i386/fpu/libm-test-ulps: Update.
12157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12158
12159 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12160
12161         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12162
12163 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12164
12165         [BZ #14157]
12166         [BZ #14331]
12167         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12168         could result in spurious underflow.  Scale down values above
12169         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12170         * math/s_csqrtf.c (__csqrtf): Likewise.
12171         * math/s_csqrtl.c (__csqrtl): Likewise.
12172         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12173         spurious underflow.
12174         * sysdeps/i386/fpu/libm-test-ulps: Update.
12175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12176
12177 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12178
12179         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12180         xopen-msg.sed.
12181         * catgets/xopen-msg.awk: New file.
12182         * catgets/xopen-msg.sed: Removed.
12183
12184         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12185         po2text.sed.
12186         * intl/po2test.awk: New file.
12187         * intl/po2test.sed: Removed.
12188
12189 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12190
12191         [BZ #14328]
12192         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12193         or multiply small sinh result by itself.
12194         * math/s_ctanf.c (__ctanf): Likewise.
12195         * math/s_ctanh.c (__ctanh): Likewise.
12196         * math/s_ctanhf.c (__ctanhf): Likewise.
12197         * math/s_ctanhl.c (__ctanhl): Likewise.
12198         * math/s_ctanl.c (__ctanl): Likewise.
12199         * math/libm-test.inc (ctan_test_tonearest): New function.
12200         (ctan_test_towardzero): Likewise.
12201         (ctan_test_downward): Likewise.
12202         (ctan_test_upward): Likewise.
12203         (ctanh_test_tonearest): Likewise.
12204         (ctanh_test_towardzero): Likewise.
12205         (ctanh_test_downward): Likewise.
12206         (ctanh_test_upward): Likewise.
12207         (main): Call these new functions.
12208         * sysdeps/i386/fpu/libm-test-ulps: Update.
12209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12210
12211 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12212
12213         * .gitignore: Delete /ports entry.
12214
12215 2012-07-03  Andreas Jaeger  <aj@suse.de>
12216
12217         * po/bg.po: Update from translation team.
12218         * po/cs.po: Likewise.
12219         * po/de.po: Likewise.
12220         * po/hr.po: Likewise.
12221         * po/nl.pl: Likewise.
12222         * po/pl.po: Likewise.
12223         * po/vi.po: Likewise.
12224
12225 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12226
12227         * Makeconfig [!+link] (+link-before-libc): New variable.
12228         [!+link] (+link-after-libc): Likewise.
12229         [!+link] (+link-tests): Likewise.
12230         [!+link] (+link): Define in terms of $(+link-before-libc) and
12231         $(+link-after-libc).
12232         [!+link-static] (+link-static-before-libc): New variable.
12233         [!+link-static] (+link-static-after-libc): Likewise.
12234         [!+link-static] (+link-static-tests): Likewise.
12235         [!+link-static] (+link-static): Define in terms of
12236         $(+link-static-before-libc) and $(+link-static-after-libc).
12237         [build-shared] (link-libc-before-gnulib): New variable.
12238         [build-shared] (link-libc-tests): Likewise.
12239         [build-shared] (link-libc): Define in terms of
12240         $(link-libc-before-gnulib).
12241         [!build-shared] (link-libc-tests): New variable.
12242         (link-libc-static-tests): New variable.
12243         [!gnulib] (gnulib-arch): New variable.
12244         [!gnulib] (gnulib-tests): Likewise.
12245         [!gnulib] (static-gnulib-arch): Likewise.
12246         [!gnulib] (static-gnulib-tests): Likewise.
12247         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12248         Define with "=" instead of ":=".
12249         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12250         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12251         * Rules (binaries-all-notests): New variable.
12252         (binaries-all-tests): Likewise.
12253         (binaries-static-notests): Likewise.
12254         (binaries-static-tests): Likewise.
12255         (binaries-all): Define using $(binaries-all-notests) and
12256         $(binaries-all-tests).
12257         (binaries-static): Define using $(binaries-static-notests) and
12258         $(binaries-static-tests).
12259         (binaries-shared-tests): New variable.
12260         (binaries-shared-notests): Likewise.
12261         (binaries-shared): Remove variable.
12262         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12263         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12264         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12265         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12266         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12267         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12268         * elf/Makefile (sln-modules): New variable.
12269         (extra-objs): Add $(sln-modules:=.o).
12270         (ldconfig-modules): Add static-stubs.
12271         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12272         * elf/static-stubs.c: New file.
12273
12274         [BZ #14283]
12275         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12276         by 7 not 8 to examine high bit of fractional part.  Use volatile
12277         variables when splitting into final array of floats if
12278         __FLT_EVAL_METHOD__ != 0.
12279         * math/libm-test.inc (cos_test): Add another test.
12280         (sin_test): Likewise.
12281         * sysdeps/i386/fpu/libm-test-ulps: Update.
12282
12283         [BZ #14273]
12284         * math/libm-test.inc (cosh_test): Add more tests.
12285
12286         * version.h (RELEASE): Set to "development".
12287         (VERSION): Set to "2.16.90".
12288
12289 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12290
12291         * NEWS: Update copyright. Remove last-updated date.
12292         Mention math library bug fixes and timezone data changes.
12293         * README: Mention GNU/Hurd, x32, and HPPA support status.
12294
12295 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12296
12297         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12298
12299 2012-06-27  Andreas Jaeger  <aj@suse.de>
12300
12301         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12302
12303 2012-06-25  Andreas Jaeger  <aj@suse.de>
12304
12305         * sysdeps/s390/fpu/libm-test-ulps: Update.
12306
12307 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12308             Thomas Schwinge  <thomas@codesourcery.com>
12309
12310         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12311         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12313         fanotify_mark.
12314
12315 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12316
12317         * sysdeps/mach/start.c: Remove file.
12318         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12319         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12320         * sysdeps/sh/init-first.c: Likewise.
12321
12322         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12323         registers for frame unwinding purposes, add CFI directives.
12324         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12325         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12326         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12327         Likewise.
12328
12329         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12330         __fortify_fail returning.
12331         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12332
12333         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12334         sysdeps/sh/____longjmp_chk.S.
12335         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12336         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12337         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12338         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12339
12340         * sysdeps/sh/abort-instr.h: New file.
12341         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12342         process in case exit returns.
12343
12344         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12345         initialize the GOT register before use.
12346
12347         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12348         calculation of ARGC > 4.
12349
12350         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12351         meaningful names to some local labels.
12352
12353 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12354             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12355
12356         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12357         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12358         (__arch_compare_and_exchange_val_16_acq): Likewise.
12359         (__arch_compare_and_exchange_val_32_acq): Likewise.
12360         (atomic_exchange_and_add): Fix gUSA sequence.
12361         (atomic_add): Likewise.
12362         (atomic_add_negative): Likewise.
12363         (atomic_add_zero): Likewise.
12364         (atomic_bit_test_set): Likewise.
12365
12366 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12367
12368         [BZ #13579]
12369         * include/link.h (struct link_map): Add l_free_initfini.
12370         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12371         l_initfini.
12372         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12373         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12374         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12375         set.
12376
12377 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12378
12379         * configure.in: Use AC_LANG_SOURCE.
12380         * configure: Regenerate.
12381
12382 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12383
12384         * configure.in (libc_cv_localstatedir): New substituted variable.
12385         * configure: Regenerated.
12386         * config.make.in (localstatedir): New variable, substituted from
12387         libc_cv_localstatedir.
12388         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12389         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12390         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12391         * sysdeps/gnu/configure: Regenerated.
12392
12393 2012-06-21  Jeff Law  <law@redhat.com>
12394
12395         [BZ #14277]
12396         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12397         free.  Simplify list management for _LIBC case.
12398
12399 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12400
12401         [BZ #14273]
12402         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12403         Clear sign bit of 64-bit integer value before comparing against
12404         overflow value.
12405
12406         * sysdeps/mach/configure: Regenerated.
12407
12408 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12409
12410         [BZ #14278]
12411         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12412
12413 2012-06-21  Jeff Law  <law@redhat.com>
12414
12415         [BZ #13882]
12416         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12417         uint16_t for elements in the "seen" array to avoid char overflows.
12418         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12419         * elf/dl-open.c (dl_open_worker): Likewise.
12420
12421 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12422
12423         * scripts/list-sources.sh: Scan PORTS for translations.
12424         * po/libc.pot: Regenerated.
12425
12426 2012-06-21  Andreas Jaeger  <aj@suse.de>
12427
12428         [BZ #12194]
12429         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12430         warning.
12431         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12432         * bits/byteswap-16.h (__bswap_16): Likewise.
12433         * bits/byteswap.h (__bswap_constant_16): Likewise.
12434
12435 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12436
12437         [BZ #14117]
12438         * sysdeps/i386/fpu_control.h: Removed.
12439         * sysdeps/x86_64/fpu_control.h: Moved to ...
12440         * sysdeps/x86/fpu_control.h: Here.
12441
12442         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12443         (_FPU_SETCW): Likewise.
12444
12445 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12446
12447         [BZ #14117]
12448         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12449         * sysdeps/x86/fpu/bits/mathinline.h: This.
12450         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12451
12452         [BZ #14050]
12453         [BZ #14117]
12454         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12455         functions if __x86_64__ is defined.
12456
12457 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12458
12459         * string/endian.h: Add !__ASSEMBLER__ condition for including
12460         conversion interfaces.
12461
12462 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12463
12464         [BZ #14241]
12465         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12466         of ABS(x) in calculating zero to negative powers other than odd
12467         integers.
12468         * math/libm-test.inc (pow_test): Add more tests.
12469
12470 2012-06-15  Andreas Jaeger  <aj@suse.de>
12471
12472         * manual/contrib.texi (Contributors): Update entry of Liubov
12473         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12474         Machado Filho.
12475
12476 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12477
12478         * string/string.h: Add __wur to GNU version of strerror_r.
12479
12480 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12481
12482         [BZ #14229]
12483         * string/Makefile (tests): Add tst-strtok_r.
12484         * string/tst-strtok_r.c: New file.
12485         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12486         RAX_LP/RDX_LP on SAVE_PTR.
12487
12488 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12489
12490         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12491
12492 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12493
12494         * libm_test.inc (csqrt_test): Allow more spurious underflow
12495         exceptions.
12496         (j0_test): Likewise.
12497         (j1_test): Likewise.
12498         (y0_test): Likewise.
12499         (y1_test): Likewise.
12500
12501 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12502
12503         * po/Makefile (libc.pot): Use UTF-8 charset.
12504
12505 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12506
12507         [BZ #14210]
12508         Suppress sign-conversion warning from FD_SET.
12509         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12510         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12511         not unsigned long int.
12512         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12513
12514 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12515
12516         [BZ #14050]
12517         [BZ #14117]
12518         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12519         __extern_always_inline instead of __extern_inline.
12520         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12521         (__signbit): Likewise.
12522         (__signbitl): Support C++ namespace.
12523         (lrintf): New inline function.
12524         (lrint): Likewise.
12525         (llrintf): Likewise.
12526         (llrint): Likewise.
12527         (fmaxf): Likewise.
12528         (fmax): Likewise.
12529         (fminf): Likewise.
12530         (fmin): Likewise.
12531         (rint): Likewise.
12532         (rintf): Likewise.
12533         (ceil): Likewise.
12534         (ceilf): Likewise.
12535         (floor): Likewise.
12536         (floorf): Likewise.
12537         (nearbyint): Likewise.
12538         (nearbyintf): Likewise.
12539
12540 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12541
12542         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12543         non-default versions.
12544
12545 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12546
12547         [BZ #14218]
12548         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12549
12550 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12551
12552         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12553         (FE_UPWARD, FE_DOWNWARD): Don't define.
12554         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12555         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12556
12557         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12558         reading it.
12559         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12560         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12561
12562 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12563
12564         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12565         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12566         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12567         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12568
12569 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12570
12571         [BZ #14117]
12572         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12573         * sysdeps/i386/fpu/Implies: New file.
12574         * sysdeps/x86_64/fpu/Implies: Likewise.
12575         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12576         * sysdeps/x86/fpu/bits/fenv.h: This.
12577
12578         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12579         __SSE_MATH__.
12580
12581 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12582
12583         [BZ #14134]
12584         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12585         character 0xffff that matches the last element of the
12586         conversion table.
12587
12588 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12589
12590         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12591         fmodl commit.
12592
12593 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12594
12595         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12596         values higher than 25.6283.
12597
12598 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12599
12600         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12601         subnormal exponent extraction and add some __builtin_expect.
12602         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12603         Fix for subnormal mantissa calculation.
12604
12605 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12606
12607         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12608         cpu2 is -1 and errno is not ENOSYS.
12609
12610 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12611
12612         [BZ #14117]
12613         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12614         * sysdeps/x86/bits/string.h: This.
12615         * sysdeps/x86_64/bits/string.h: Removed.
12616
12617         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12618         if not compiling for x86-64, but compiling for >= i486.
12619
12620         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12621         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12622
12623         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12624         New macro from Linux kernel 3.4.0.
12625         (FP_XSTATE_MAGIC2): Likewise.
12626         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12627         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12628         (struct _fpx_sw_bytes): New struct.
12629         (struct _xsave_hdr): Likewise.
12630         (struct _ymmh_state): Likewise.
12631         (struct _xstate): Likewise.
12632
12633         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12634         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12635         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12636         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12637         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12638         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12639
12640         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12641         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12642         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12643         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12644         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12645         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12646
12647 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12648
12649         [BZ #13743]
12650         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12651         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12652         (sysdep_headers): Include sys/platform/ppc.h.
12653         * sysdeps/powerpc/test-gettimebase.c: Test for
12654         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12655         * manual/Makefile (appendices): Include platform.texi.
12656         * manual/contrib.texi (Contributors): Update @node pointers.
12657         * manual/maint.texi (Maintenance): Likewise.
12658         (Platform): New node.
12659         * manual/platform.texi: New file.  Document the new features.
12660
12661 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12662             Jakub Jelinek  <jakub@redhat.com>
12663
12664         [BZ #14188]
12665         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12666         where __builtin_expect is unavailable.
12667
12668 2012-06-03  David S. Miller  <davem@davemloft.net>
12669
12670         * stdlib/longlong.h: Updated from GCC.
12671
12672 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12673
12674         [BZ #14042]
12675         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12676         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12677         __mcount_internal.
12678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12679         (GLIBC_2.16): Likewise.
12680
12681 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12682
12683         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12684
12685 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12686
12687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12688         (default-abi): New variable.
12689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12690         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12691         variable.
12692         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12693         Likewise.
12694         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12695         Likewise.
12696         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12697         Likewise.
12698
12699         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12700         definition.  Document in comment.
12701
12702 2012-06-01  David S. Miller  <davem@davemloft.net>
12703
12704         * stdlib/longlong.h: Updated from GCC.
12705
12706 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12707
12708         [BZ #14117]
12709         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12710         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12711         sys/debugreg.h sys/io.h here.
12712         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12713         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12714         sys/io.h.
12715         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12716         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12717         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12718         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12719         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12720         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12721
12722         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12723         Define only if __x86_64__ is defined.
12724
12725 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12726
12727         [BZ #14048]
12728         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12729         Use int64_t for variable i.
12730         * math/libm-test.inc (fmod_test): Add more tests.
12731
12732         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12733         z computation is not scheduled after fetestexcept.
12734         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12735         Use math_force_eval instead of asm to ensure calculation scheduled
12736         before exception test.
12737         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12738         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12739
12740 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12741
12742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12743         computation is not scheduled after fetestexcept.
12744
12745 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12746
12747         [BZ #14117]
12748         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12749         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12750
12751 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12752
12753         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12754         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12755
12756 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12757
12758         [BZ #14117]
12759         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12760         <bits/wordsize.h>.
12761         (__WCHAR_MIN): Support __WORDSIZE == 64.
12762         (__WCHAR_MAX): Likewise.
12763
12764         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12765         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12766
12767         [BZ #14183]
12768         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12769         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12770
12771         [BZ #14117]
12772         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12773         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12774
12775         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12776         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12777
12778         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12779         Defined to 1 if __x86_64__ isn't defined.
12780         (_STAT_VER_LINUX_OLD): New.
12781         (st_atime): Remove duplicate.
12782         (st_mtime): Likewise.
12783         (st_ctime): Likewise.
12784
12785 2012-05-31  David S. Miller  <davem@davemloft.net>
12786
12787         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12788         entries.
12789
12790 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12791
12792         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12793         gen-libm-test.pl.
12794
12795         [BZ #14132]
12796         * elf/dl-reloc.c: Include <_itoa.h>.
12797         (_dl_reloc_bad_type): Remove use of INTUSE.
12798         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12799         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12800         * stdio-common/psiginfo.c (psiginfo): Likewise.
12801         * stdio-common/psignal.c (psignal): Likewise.
12802         * string/strsignal.c (strsignal): Likewise.
12803         * include/signal.h (_sys_siglist): Declare hidden proto.
12804         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12805         INTVARDEF with libc_hidden_data_def.
12806         * stdio-common/itoa-udigits.c: Likewise.
12807         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12808         (_itoa_lower_digits_internal): Remove declaration.
12809         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12810         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12811         (_sys_sigabbrev_internal): Remove aliases.
12812         (_sys_siglist): Define hidden alias.
12813
12814 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12815
12816         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12817         bits/sysctl.h.
12818
12819 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12820
12821         [BZ #14117]
12822         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12823         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12824
12825         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12826         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12827         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12828         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12829         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12830         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12831
12832         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12833         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12834         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12835
12836         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12837         with __addr.
12838         (insw): Likewise.
12839         (insl): Likewise.
12840         (outsb): Likewise.
12841         (outsw): Likewise.
12842         (outsl): Likewise.
12843
12844         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12845         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12846         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12847
12848         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12849         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12850         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12851         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12852         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12853         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12854
12855         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12856         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12857
12858         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12859         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12860
12861         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12863         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12864
12865         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12866         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12867         to ...
12868         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12869
12870         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12871         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12872         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12873
12874         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12875         for x86-64.
12876         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12877
12878 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12879
12880         * math/math.h (M_El): Use two more decimal places.
12881         (M_LOG2El): Likewise.
12882         (M_LOG10El): Likewise.
12883         (M_LN2l): Likewise.
12884         (M_LN10l): Likewise.
12885         (M_PIl): Likewise.
12886         (M_PI_2l): Likewise.
12887         (M_PI_4l): Likewise.
12888         (M_1_PIl): Likewise.
12889         (M_2_PIl): Likewise.
12890         (M_2_SQRTPIl): Likewise.
12891         (M_SQRT2l): Likewise.
12892         (M_SQRT1_2l): Likewise.
12893
12894 2012-05-31  David S. Miller  <davem@davemloft.net>
12895
12896         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12897         values between float registers.
12898         * sysdeps/sparc/sparc64/memset.S: Likewise.
12899         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12900
12901 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12902
12903         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12904         -D_FORTIFY_SOURCE=1.
12905         (CPPFLAGS-tst-longjmp_chk.c): Define.
12906         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12907         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12908         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12909         CFLAGS-tst-wchar-h.c.
12910
12911 2012-05-31  Marek Polacek  <polacek@redhat.com>
12912
12913         [BZ #14132]
12914         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12915         __endmntent_internal): Remove declaration.
12916         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12917         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12918         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12919
12920 2012-05-30  David S. Miller  <davem@davemloft.net>
12921
12922         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12923         (___Q_simulate_exceptions): Use real FP ops rather than writing
12924         into the %fsr.
12925         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12926         Likewise.
12927
12928 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12929
12930         [BZ #14117]
12931         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12932         * sysdeps/x86/bits/xtitypes.h: This.
12933
12934         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12935         * sysdeps/x86/bits/wordsize.h: This.
12936
12937         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12938         * sysdeps/x86/bits/huge_vall.h: This.
12939
12940         * sysdeps/i386/bits/select.h: Removed.
12941         * sysdeps/x86_64/bits/select.h: Renamed to ...
12942         * sysdeps/x86/bits/select.h: This.
12943
12944         * sysdeps/i386/bits/setjmp.h: Removed.
12945         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12946         * sysdeps/x86/bits/setjmp.h: This.
12947
12948         * sysdeps/i386/bits/mathdef.h: Removed.
12949         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12950         * sysdeps/x86/bits/mathdef.h: This.
12951
12952 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12953
12954         [BZ #14132]
12955         * include/sys/socket.h (__connect_internal)
12956         (__libc_sa_len_internal): Remove declaration.
12957         (__connect, __libc_sa_len): Declare hidden_proto.
12958         (SA_LEN): Remove use of INTUSE.
12959         * socket/connect.c: Add libc_hidden_def.
12960         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12961         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12962         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12963         alias.
12964         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12965         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12966         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12967         of adding _internal alias.
12968
12969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12970
12971         [BZ #14117]
12972         * sysdeps/i386/bits/link.h: Removed.
12973         * sysdeps/i386/bits/linkmap.h: Likewise.
12974         * sysdeps/x86_64/bits/link.h: Renamed to ...
12975         * sysdeps/x86/bits/link.h: This.
12976         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12977         * sysdeps/x86/bits/linkmap.h: This.
12978
12979         * sysdeps/i386/bits/endian.h: Removed.
12980         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12981         * sysdeps/x86/bits/endian.h: This.
12982
12983         * sysdeps/i386/bits/byteswap.h: Removed.
12984         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12985         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12986         * sysdeps/x86/bits/byteswap.h: This.
12987         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12988         * sysdeps/x86/bits/byteswap-16.h: This.
12989         * sysdeps/i386/Implies: Add x86.
12990         * sysdeps/x86_64/Implies: Likewise.
12991
12992 2012-05-30  David S. Miller  <davem@davemloft.net>
12993
12994         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
12995         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
12996         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
12997         (FP_TRAPPING_EXCEPTIONS): Define.
12998         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
12999         (FP_TRAPPING_EXCEPTIONS): Define.
13000         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13001         subnormals only when inexact has been signalled or underflow
13002         exceptions are enabled.
13003         (_FP_PACK_CANONICAL): Likewise.
13004
13005 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13006
13007         [BZ #14183]
13008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13009         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13010
13011 2012-05-30  Richard Henderson  <rth@twiddle.net>
13012
13013         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13014         with #ifndef NOT_IN_libc.
13015
13016         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13017         marked to avoid plt entry.
13018
13019 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13020
13021         [BZ #14112]
13022         * Makeconfig (default-abi): New macro.
13023         (abi-includes): Likewise.
13024         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13025         $(abi-$(default-abi)-lib-soname) for soname if defined.
13026         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13027         abi-variants.
13028         * Makefile (installed-stubs): Likewise.
13029         * include/stubs-biarch.h: Removed.
13030         * scripts/lib-names.awk: Only handle one library at a time.
13031         * scripts/soversions.awk: Remove WORDSIZE support.
13032         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13033         entries.
13034         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13035         Removed.
13036         (syscall-list-default-condition): Likewise.
13037         (syscall-list-default-condition): Likewise.
13038         (syscall-list-includes): Likewise.
13039         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13040         syscall-list-* with abi-*.  Handle undefined abi-variants.
13041         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13042         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13043         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13044         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13045         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13046         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13047         Removed.
13048         (syscall-list-32-options): Likewise.
13049         (syscall-list-32-condition): Likewise.
13050         (syscall-list-64-options): Likewise.
13051         (syscall-list-64-condition): Likewise.
13052         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13053         macro.
13054         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13055         Renamed to ...
13056         (abi-*): This.
13057         (abi-64-ld-soname): New macro.
13058         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13059         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13060         Renamed to ...
13061         (abi-*): This.
13062         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13063         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13064
13065 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13066
13067         * sysdeps/unix/sysv/linux/kernel-features.h
13068         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13069         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13070         include <kernel-features.h>.
13071         [!__NR_ftruncate64]: Remove conditional code.
13072         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13073         [__NR_ftruncate64]: Make code unconditional.
13074         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13075         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13076         include <kernel-features.h>.
13077         [!__NR_ftruncate64]: Remove conditional code.
13078         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13079         [__NR_ftruncate64]: Make code unconditional.
13080         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13082         include <kernel-features.h>.
13083         [!__NR_ftruncate64]: Remove conditional code.
13084         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13085         [__NR_ftruncate64]: Make code unconditional.
13086         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13088         include <kernel-features.h>.
13089         [!__NR_ftruncate64]: Remove conditional code.
13090         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13091         [__NR_ftruncate64]: Make code unconditional.
13092         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13093
13094         * configure.in (libc_cv_fpie): Weaken to a compile test using
13095         LIBC_TRY_CC_OPTION.
13096         * configure: Regenerated.
13097
13098 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13099
13100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13102         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13104         Refreshed.
13105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13111         Refreshed.
13112
13113 2012-05-27  David S. Miller  <davem@davemloft.net>
13114
13115         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13116         (___Q_zero): New.
13117         (__Q_simulate_exceptions): Return void.  Change to simulate
13118         exceptions by writing into the %fsr.
13119         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13120         (__Qp_handle_exceptions): Likewise.
13121         (numbers): Delete.
13122         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13123         __Qp_handle_exceptions.
13124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13125         __Qp_handle_exceptions.
13126         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13127         as unused and give dummy FP_RND_NEAREST initializer.
13128         (FP_INHIBIT_RESULTS): Define.
13129         (___Q_simulate_exceptions): Update declaration.
13130         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13131         formatting.
13132         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13133         as unused and give dummy FP_RND_NEAREST initializer.
13134         (__Qp_handle_exceptions): Update declaration.
13135         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13136         formatting.
13137
13138 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13139
13140         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13141         the temporary FPU control word.
13142         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13143         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13144         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13145         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13146         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13147         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13148         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13149         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13150         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13151         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13152         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13153
13154 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13155
13156         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13157         fields.
13158
13159 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13160
13161         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13162         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13163         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13164         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13165         Likewise.
13166         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13167         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13168         Likewise.
13169
13170 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13171
13172         * po/h.po: Update from translation team.
13173
13174 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13175
13176         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13177
13178         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13179         handling of denormals.
13180         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13181         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13182         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13183         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13184         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13185         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13186         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13187         Likewise.
13188
13189 2012-05-26  Marek Polacek  <polacek@redhat.com>
13190
13191         [BZ #14152]
13192         * math/libm-test.inc (fma_test): Don't always expect underflow
13193         exception.
13194
13195 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13196
13197         [BZ #12416]
13198         * elf/tst-execstack.c: Include stackinfo.h.
13199         (do_test): Adjust test case to ensure that pthread_getattr_np
13200         behaviour remains the same after marking stack executable.
13201
13202 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13203
13204         * sysdeps/unix/sysv/linux/kernel-features.h
13205         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13206         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13207         kernel-features.h.
13208         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13209         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13210         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13211         kernel-features.h.
13212         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13213         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13214
13215 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13216
13217         * configure.in: Define the default includes to being none.
13218         * configure: Regenerated.
13219
13220 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13221
13222         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13223         * sysdeps/x86_64/setjmp.S: Likewise.
13224         * sysdeps/i386/bsd-setjmp.S: Likewise.
13225         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13226         * sysdeps/i386/setjmp.S: Likewise.
13227         * sysdeps/i386/__longjmp.S: Likewise.
13228         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13229         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13230
13231         * include/stap-probe.h: New file.
13232         * configure.in: Handle --enable-systemtap.
13233         * configure: Regenerated.
13234         * config.h.in (USE_STAP_PROBE): New #undef.
13235         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13236         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13237         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13238
13239 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13240
13241         [BZ #13717]
13242         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13243         to 2.4.0 where earlier.
13244         * sysdeps/unix/sysv/linux/configure: Regenerated.
13245         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13246         <kernel-features.h>.
13247         [__ASSUME_32BITUIDS]: Make code unconditional.
13248         [!__ASSUME_32BITUIDS]: Remove conditional code.
13249         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13250         <kernel-features.h>.
13251         [__ASSUME_32BITUIDS]: Make code unconditional.
13252         [!__ASSUME_32BITUIDS]: Remove conditional code.
13253         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13254         [__ASSUME_32BITUIDS]: Make code unconditional.
13255         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13256         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13257         <kernel-features.h>.
13258         [__ASSUME_32BITUIDS]: Make code unconditional.
13259         [!__ASSUME_32BITUIDS]: Remove conditional code.
13260         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13261         <kernel-features.h>.
13262         [__ASSUME_32BITUIDS]: Make code unconditional.
13263         [!__ASSUME_32BITUIDS]: Remove conditional code.
13264         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13265         <kernel-features.h>.
13266         [__ASSUME_32BITUIDS]: Make code unconditional.
13267         [!__ASSUME_32BITUIDS]: Remove conditional code.
13268         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13269         <kernel-features.h>.
13270         [__ASSUME_32BITUIDS]: Make code unconditional.
13271         [!__ASSUME_32BITUIDS]: Remove conditional code.
13272         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13273         <kernel-features.h>.
13274         [__ASSUME_32BITUIDS]: Make code unconditional.
13275         [!__ASSUME_32BITUIDS]: Remove conditional code.
13276         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13277         <kernel-features.h>.
13278         [__ASSUME_32BITUIDS]: Make code unconditional.
13279         [!__ASSUME_32BITUIDS]: Remove conditional code.
13280         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13281         <kernel-features.h>.
13282         [__ASSUME_32BITUIDS]: Make code unconditional.
13283         [!__ASSUME_32BITUIDS]: Remove conditional code.
13284         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13285         <kernel-features.h>.
13286         [__ASSUME_32BITUIDS]: Make code unconditional.
13287         [!__ASSUME_32BITUIDS]: Remove conditional code.
13288         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13289         <kernel-features.h>.
13290         [__ASSUME_32BITUIDS]: Make code unconditional.
13291         [!__ASSUME_32BITUIDS]: Remove conditional code.
13292         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13293         <kernel-features.h>.
13294         [__ASSUME_32BITUIDS]: Make code unconditional.
13295         [!__ASSUME_32BITUIDS]: Remove conditional code.
13296         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13297         <kernel-features.h>.
13298         [__NR_setresgid] (__setresgid): Do not declare.
13299         [__ASSUME_32BITUIDS]: Make code unconditional.
13300         [!__ASSUME_32BITUIDS]: Remove conditional code.
13301         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13302         <kernel-features.h>.
13303         [__NR_setresuid] (__setresuid): Do not declare.
13304         [__ASSUME_32BITUIDS]: Make code unconditional.
13305         [!__ASSUME_32BITUIDS]: Remove conditional code.
13306         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13307         <kernel-features.h>.
13308         [__ASSUME_32BITUIDS]: Make code unconditional.
13309         [!__ASSUME_32BITUIDS]: Remove conditional code.
13310         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13311         <kernel-features.h>.
13312         [__ASSUME_32BITUIDS]: Make code unconditional.
13313         [!__ASSUME_32BITUIDS]: Remove conditional code.
13314         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13315         <kernel-features.h>.
13316         [__ASSUME_32BITUIDS]: Make code unconditional.
13317         [!__ASSUME_32BITUIDS]: Remove conditional code.
13318         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13319         <kernel-features.h>.
13320         [__ASSUME_32BITUIDS]: Make code unconditional.
13321         [!__ASSUME_32BITUIDS]: Remove conditional code.
13322         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13323         <kernel-features.h>.
13324         [__ASSUME_32BITUIDS]: Make code unconditional.
13325         [!__ASSUME_32BITUIDS]: Remove conditional code.
13326         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13327         <kernel-features.h>.
13328         [__ASSUME_32BITUIDS]: Make code unconditional.
13329         [!__ASSUME_32BITUIDS]: Remove conditional code.
13330         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13331         <kernel-features.h>.
13332         [__ASSUME_32BITUIDS]: Make code unconditional.
13333         [!__ASSUME_32BITUIDS]: Remove conditional code.
13334         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13335         <kernel-features.h>.
13336         [__ASSUME_32BITUIDS]: Make code unconditional.
13337         [!__ASSUME_32BITUIDS]: Remove conditional code.
13338         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13339         <kernel-features.h>.
13340         [__ASSUME_32BITUIDS]: Make code unconditional.
13341         [!__ASSUME_32BITUIDS]: Remove conditional code.
13342         * sysdeps/unix/sysv/linux/i386/shmctl.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/kernel-features.h
13347         (__ASSUME_SETRESUID_SYSCALL): Remove.
13348         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13349         (__ASSUME_32BITUIDS): Likewise.
13350         (__ASSUME_LDT_WORKS): Likewise.
13351         (__ASSUME_O_DIRECTORY): Likewise.
13352         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13353         architecture but not kernel version.
13354         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13355         (__ASSUME_MMAP2_SYSCALL): Likewise.
13356         (__ASSUME_STAT64_SYSCALL): Likewise.
13357         (__ASSUME_IPC64): Likewise.
13358         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13359         <kernel-features.h>.
13360         [__ASSUME_32BITUIDS]: Make code unconditional.
13361         [!__ASSUME_32BITUIDS]: Remove conditional code.
13362         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13363         <kernel-features.h>.
13364         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13365         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13366         132096]: Remove conditional code.
13367         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13368         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13369         <kernel-features.h>.
13370         [__ASSUME_32BITUIDS]: Make code unconditional.
13371         [!__ASSUME_32BITUIDS]: Remove conditional code.
13372         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13373         <kernel-features.h>.
13374         [__ASSUME_32BITUIDS]: Make code unconditional.
13375         [!__ASSUME_32BITUIDS]: Remove conditional code.
13376         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13377         <kernel-features.h>.
13378         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13379         unconditional.
13380         (__setresgid): Do not declare.
13381         [__ASSUME_32BITUIDS]: Make code unconditional.
13382         [!__ASSUME_32BITUIDS]: Remove conditional code.
13383         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13384         <kernel-features.h>.
13385         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13386         unconditional.
13387         (__setresuid): Do not declare.
13388         [__ASSUME_32BITUIDS]: Make code unconditional.
13389         [!__ASSUME_32BITUIDS]: Remove conditional code.
13390         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13391         <kernel-features.h>.
13392         [__ASSUME_32BITUIDS]: Make code unconditional.
13393         [!__ASSUME_32BITUIDS]: Remove conditional code.
13394         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13395         <kernel-features.h>.
13396         [__ASSUME_32BITUIDS]: Make code unconditional.
13397         [!__ASSUME_32BITUIDS]: Remove conditional code.
13398
13399 2012-05-25  Richard Henderson  <rth@twiddle.net>
13400
13401         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13402         dl_hwcap to ifunc resolver.
13403         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13404         elf_ifunc_invoke.
13405         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13406         dl_hwcap to ifunc resolver.
13407         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13408
13409 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13410
13411         [BZ #14153]
13412         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13413         for |x| <= 2**-26, not 2**-57.
13414         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13415         exception.
13416
13417 2012-05-24  Jeff Law  <law@redhat.com>
13418
13419         * stdio-common/Makefile (tests): Add bug25.
13420         * stdio-common/bug25.c: New test.
13421
13422 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13423
13424         [BZ #13576]
13425         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13426         multiple of MALLOC_ALIGNMENT in size.
13427         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13428
13429 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13430
13431         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13432         Require >= 256.
13433         (FILENAME_MAX): Use macro-int-constant.
13434         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13435         (_IOFBF): Use macro-int-constant.
13436         (_IOLBF): Likewise.
13437         (_IONBF): Likewise.
13438         (SEEK_CUR): Likewise.
13439         (SEEK_END): Likewise.
13440         (SEEK_SET): Likewise.
13441         (TMP_MAX): Likewise.
13442         (EOF): Use macro-int-constant.  Require < 0.
13443         (NULL): Use macro-constant.  Require == 0.
13444         (stdin): Require type to be FILE *.
13445         (stdout): Likewise.
13446         (stderr): Likewise.
13447         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13448         macro-int-constant.
13449         (EXIT_SUCCESS): Likewise.
13450         (NULL): Use macro-constant.  Require == 0.
13451         (RAND_MAX): Use macro-int-constant.
13452         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13453         [C99-based standards] (strtof): Require function.
13454         [C99-based standards] (strtold): Likewise.
13455         [C99-based standards] (strtoll): Likewise.
13456         [C99-based standards] (strtoull): Likewise.
13457         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13458         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13459         [ISO || ISO99 || ISO11] (math.h): Likewise.
13460         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13461         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13462         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13463
13464 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13465
13466         [BZ #14132]
13467         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13468         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13469         * intl/dgettext.c (DCGETTEXT): Likewise.
13470         * intl/gettext.c (DCGETTEXT): Likewise.
13471         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13472         * posix/regex_internal.h (gettext): Likewise.
13473         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13474         Remove declaration.
13475         * include/argz.h (__argz_count_internal)
13476         (__argz_stringify_internal): Remove declaration.
13477         (__argz_count, __argz_stringify): Declare hidden proto.
13478         * intl/dcgettext.c: Remove use of INTDEF.
13479         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13480         * string/argz-stringify.c: Likewise.
13481         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13482         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13483         Declare hidden proto.
13484         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13485         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13486         Declare hidden proto.
13487         * include/stdio.h (__asprintf_internal): Don't declare.
13488         (__asprintf): Don't define as macro.  Declare hidden proto.
13489         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13490         (__fsetlocking): Declare hidden proto.
13491         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13492         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13493         hidden proto.
13494         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13495         (_IO_setlinebuf): Remove use of INTUSE.
13496         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13497         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13498         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13499         Remove declaration.
13500         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13501         (_IO_do_flush): Remove use of INTUSE.
13502         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13503         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13504         (_IO_adjust_column, _IO_least_wmarker)
13505         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13506         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13507         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13508         (_IO_default_doallocate, _IO_wdefault_doallocate)
13509         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13510         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13511         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13512         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13513         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13514         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13515         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13516         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13517         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13518         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13519         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13520         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13521         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13522         proto.
13523         (_IO_flush_all_internal, _IO_adjust_column_internal)
13524         (_IO_default_uflow_internal, _IO_default_finish_internal)
13525         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13526         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13527         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13528         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13529         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13530         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13531         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13532         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13533         (_IO_file_close_internal, _IO_file_close_it_internal)
13534         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13535         (_IO_file_init_internal, _IO_file_attach_internal)
13536         (_IO_file_fopen_internal, _IO_file_read_internal)
13537         (_IO_file_sync_internal, _IO_file_seek_internal)
13538         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13539         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13540         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13541         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13542         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13543         (_IO_list_all_internal, _IO_link_in_internal)
13544         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13545         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13546         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13547         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13548         (_IO_do_write_internal, _IO_padn_internal)
13549         (_IO_getline_info_internal, _IO_getline_internal)
13550         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13551         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13552         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13553         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13554         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13555         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13556         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13557         with libc_hidden_ver, remove use of INTUSE.
13558         * libio/genops.c: Likewise.
13559         * libio/freopen.c: Likewise.
13560         * libio/freopen64.c: Likewise.
13561         * libio/iofclose.c: Likewise.
13562         * libio/iofdopen.c: Likewise.
13563         * libio/iofflush.c: Likewise.
13564         * libio/iofflush_u.c: Likewise.
13565         * libio/iofgets.c: Likewise.
13566         * libio/iofgets_u.c: Likewise.
13567         * libio/iofopen.c: Likewise.
13568         * libio/iofopncook.c: Likewise.
13569         * libio/iofread.c: Likewise.
13570         * libio/iofread_u.c: Likewise.
13571         * libio/ioftell.c: Likewise.
13572         * libio/iofwrite.c: Likewise.
13573         * libio/iogetline.c: Likewise.
13574         * libio/iogets.c: Likewise.
13575         * libio/iogetwline.c: Likewise.
13576         * libio/iopadn.c: Likewise.
13577         * libio/iopopen.c: Likewise.
13578         * libio/ioseekoff.c: Likewise.
13579         * libio/ioseekpos.c: Likewise.
13580         * libio/iosetbuffer.c: Likewise.
13581         * libio/iosetvbuf.c: Likewise.
13582         * libio/ioungetc.c: Likewise.
13583         * libio/ioungetwc.c: Likewise.
13584         * libio/iovdprintf.c: Likewise.
13585         * libio/iovsprintf.c: Likewise.
13586         * libio/iovsscanf.c: Likewise.
13587         * libio/memstream.c: Likewise.
13588         * libio/obprintf.c: Likewise.
13589         * libio/oldfileops.c: Likewise.
13590         * libio/oldiofclose.c: Likewise.
13591         * libio/oldiofdopen.c: Likewise.
13592         * libio/oldiofopen.c: Likewise.
13593         * libio/oldiopopen.c: Likewise.
13594         * libio/oldstdfiles.c: Likewise.
13595         * libio/putc.c: Likewise.
13596         * libio/setbuf.c: Likewise.
13597         * libio/setlinebuf.c: Likewise.
13598         * libio/stdfiles.c: Likewise.
13599         * libio/strops.c: Likewise.
13600         * libio/vasprintf.c: Likewise.
13601         * libio/vscanf.c: Likewise.
13602         * libio/vsnprintf.c: Likewise.
13603         * libio/vswprintf.c: Likewise.
13604         * libio/wfiledoalloc.c: Likewise.
13605         * libio/wfileops.c: Likewise.
13606         * libio/wgenops.c: Likewise.
13607         * libio/wmemstream.c: Likewise.
13608         * libio/wstrops.c: Likewise.
13609         * libio/__fpurge.c: Likewise.
13610         * libio/__fsetlocking.c: Likewise.
13611         * assert/assert.c: Likewise.
13612         * debug/fgets_chk.c: Likewise.
13613         * debug/fgets_u_chk.c: Likewise.
13614         * debug/fread_chk.c: Likewise.
13615         * debug/fread_u_chk.c: Likewise.
13616         * debug/gets_chk.c: Likewise.
13617         * debug/obprintf_chk.c: Likewise.
13618         * debug/vasprintf_chk.c: Likewise.
13619         * debug/vdprintf_chk.c: Likewise.
13620         * debug/vsnprintf_chk.c: Likewise.
13621         * debug/vsprintf_chk.c: Likewise.
13622         * malloc/mtrace.c: Likewise.
13623         * misc/error.c: Likewise.
13624         * misc/syslog.c: Likewise.
13625         * stdio-common/asprintf.c: Likewise.
13626         * stdio-common/fxprintf.c: Likewise.
13627         * stdio-common/getw.c: Likewise.
13628         * stdio-common/isoc99_fscanf.c: Likewise.
13629         * stdio-common/isoc99_scanf.c: Likewise.
13630         * stdio-common/isoc99_vfscanf.c: Likewise.
13631         * stdio-common/isoc99_vscanf.c: Likewise.
13632         * stdio-common/isoc99_vsscanf.c: Likewise.
13633         * stdio-common/printf-prs.c: Likewise.
13634         * stdio-common/printf_fp.c: Likewise.
13635         * stdio-common/printf_fphex.c: Likewise.
13636         * stdio-common/printf_size.c: Likewise.
13637         * stdio-common/putw.c: Likewise.
13638         * stdio-common/scanf.c: Likewise.
13639         * stdio-common/sprintf.c: Likewise.
13640         * stdio-common/tmpfile.c: Likewise.
13641         * stdio-common/vfprintf.c: Likewise.
13642         * stdio-common/vfscanf.c: Likewise.
13643         * stdlib/strfmon_l.c: Likewise.
13644         * sunrpc/openchild.c: Likewise.
13645         * sunrpc/xdr_stdio.c: Likewise.
13646         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13647         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13648
13649 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13650
13651         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13652
13653         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13654         in the third column, to generate for the shared library an IFUNC
13655         that uses _dl_vdso_vsym.
13656         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13657         * Makeconfig (object-suffixes-noshared): New variable.
13658
13659         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13660         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13661         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13662         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13663
13664         [BZ #14132]
13665         * include/sys/time.h (__gettimeofday): Remove macro.
13666         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13667         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13668         Remove INTDEF.
13669         (__gettimeofday): Add libc_hidden_def.
13670         (gettimeofday): Add libc_hidden_weak.
13671         * sysdeps/mach/gettimeofday.c: Likewise.
13672         * sysdeps/posix/gettimeofday.c: Likewise.
13673         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13674         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13675         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13676         (__gettimeofday_internal): Remove strong_alias.
13677         (__gettimeofday): Add libc_hidden_def.
13678         (gettimeofday): Add libc_hidden_weak.
13679         * sysdeps/unix/syscalls.list (gettimeofday):
13680         Remove __gettimeofday_internal alias.
13681
13682 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13683             H.J. Lu  <hongjiu.lu@intel.com>
13684
13685         [BZ #12495]
13686         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13687         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13688         (largebin_index_32_big): New.
13689         (largebin_index): Use it for 16-byte alignment.
13690         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13691         correction with front_misalign.
13692
13693 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13694
13695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13696         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13697         Likewise.
13698         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13699         Likewise.
13700         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13701         Likewise.
13702         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13703         Likewise.
13704         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13705         Likewise.
13706         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13707         Likewise.
13708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13709         Likewise.
13710         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13711         Likewise.
13712         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13713         Likewise.
13714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13715         Likewise.
13716         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13717         Likewise.
13718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13719         Likewise.
13720
13721         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13722         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13723
13724 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13725
13726         [BZ #10846]
13727         [BZ #14036]
13728         * math/libm-test.inc (exp_test): Add test from bug 14036.
13729         (pow_test): Add test from bug 10846.
13730
13731         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13732         and other flags.
13733         (special_function): Do not include flags in test name.
13734         (parse_args): Likewise.
13735         * sysdeps/i386/fpu/libm-test-ulps: Update.
13736         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13737         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13738         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13740
13741         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13742         exceptions.
13743         * math/libm-test.inc ("Philosophy"): Update comment about
13744         exception testing.
13745         (UNDERFLOW_EXCEPTION): New macro.
13746         (UNDERFLOW_EXCEPTION_OK): Likewise.
13747         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13748         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13749         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13750         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13751         (INVALID_EXCEPTION_OK): Update value.
13752         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13753         (OVERFLOW_EXCEPTION_OK): Likewise.
13754         (IGNORE_ZERO_INF_SIGN): Likewise.
13755         (test_exceptions): Handle underflow exceptions.
13756         (acos_test): Update for underflow exception expectations.
13757         (cexp_test): Likewise.
13758         (clog_test): Likewise.
13759         (clog10_test): Likewise.
13760         (csqrt_test): Likewise.
13761         (ctan_test): Likewise.
13762         (ctanh_test): Likewise.
13763         (exp_test): Likewise.
13764         (exp10_test): Likewise.
13765         (exp2_test): Likewise.
13766         (expm1_test): Likewise.
13767         (fma_test): Likewise.
13768         (j0_test): Likewise.
13769         (jn_test): Likewise.
13770         (nexttoward_test): Likewise.
13771         (pow_test): Likewise.
13772         (scalbn_test): Likewise.
13773         (scalbln_test): Likewise.
13774         (tan_test): Likewise.
13775         (y1_test): Likewise.
13776         * sysdeps/i386/fpu/libm-test-ulps: Update.
13777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13778
13779 2012-05-23  David S. Miller  <davem@davemloft.net>
13780
13781         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13782         (__libc_sigaction): Remove unused local variables.
13783
13784 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13785
13786         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13787
13788 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         mktime: avoid signed integer overflow
13791         * time/mktime.c (__mktime_internal): Do not mishandle the case
13792         where diff == INT_MIN.
13793
13794         mktime: simplify computation of average
13795         * time/mktime.c (ranged_convert): Use new time_t_avg function
13796         instead of rolling our own (probably-slower) code.
13797
13798         mktime: do not assume signed right shift propagates sign bit
13799         * time/mktime.c (isdst_differ): New static function.
13800         (__mktime_internal): No need to normalize tm_isdst now.
13801         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13802         tm_isdst values.
13803
13804         mktime: merge another wrapv change from gnulib
13805         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13806         from some compilers.
13807
13808         mktime: remove incorrect attempt at unusual arithmetics
13809         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13810         The code didn't really work on such machines anyway.
13811         (TYPE_MINIMUM): Assume two's complement.
13812         (twos_complement_arithmetic): Verify that long_int and time_t
13813         are two's complement (or unsigned, in the latter case).
13814
13815         mktime: check signed shifts on long_int and time_t, too
13816         * time/mktime.c (SHR): Check that shifts work as desired
13817         on the types long_int and time_t too, as SHR is used on
13818         such types.
13819
13820         mktime: do not assume 'long' is wide enough
13821         * time/mktime.c (verify): Move decl up.
13822         (long_int): New type.
13823         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13824         to remove assumption in the code that 'long' is wide enough to
13825         store year values.  This assumption is not true on x32 and on
13826         some non-glibc platforms.
13827
13828         mktime: merge wrapv change from gnulib
13829         * time/mktime.c (WRAPV): New macro.
13830         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13831         (guess_time_tm, __mktime_internal): Do not assume that signed
13832         integer overflow wraps around; modern compilers generate code
13833         where this assumption is no longer valid.
13834
13835 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13836
13837         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13838         Replace "jmp L(pseudo_end)" with "ret".
13839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13840         Likewise.
13841
13842 2012-05-23  Andreas Jaeger  <aj@suse.de>
13843
13844         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13845         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13846
13847 2012-05-23  Andreas Jaeger  <aj@suse.de>
13848             Maximilian Attems  <max@stro.at>
13849
13850         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13851         New macros.
13852
13853 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13854
13855         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13856         code so that pseudo_end is just ret and the stack pointer is
13857         correct also for static library in error case.
13858
13859 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13860
13861         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13862         move to syscalls.list.
13863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13867
13868         * manual/install.texi (Running make install): Do not mention Linux
13869         kernel version for which pt_chown is not needed.
13870         (Linux): Do not mention problems with nscd with 2.0 kernels.
13871         * INSTALL: Regenerated.
13872
13873 2012-05-23  Andreas Jaeger  <aj@suse.de>
13874
13875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13876         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13877         macro.
13878         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13879         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13880         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13881         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13882         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13883         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13884         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13885         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13886         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13887         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13888         * sysdeps/unix/sysv/linux/bits/in.h
13889         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13890
13891 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13892
13893         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13894         (PREPARE_VERSION): Just use assert instead, it will be elided
13895         under [NDEBUG] anyway.
13896
13897 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13898
13899         * sysdeps/unix/sysv/linux/Makefile: Include
13900         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13901         (sysdep_routines): Remove sysctl.
13902         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13903         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13904         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13905         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13906         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13907
13908 2012-05-22  Andreas Jaeger  <aj@suse.de>
13909
13910         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13911         that pseudo_end is just ret and the stack pointer is correct also
13912         for static library in error case.
13913
13914 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13915
13916         [BZ #14122]
13917         * nss/nsswitch.c (defconfig_entries): New variable.
13918         (__nss_database_lookup): Don't leak defconfig entries.
13919         (nss_parse_service_list): Don't leak on error paths.
13920         (free_database_entries): New function.
13921         (free_defconfig): New function.
13922         (free_mem): Move common code to free_database_entries.
13923
13924 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13925
13926         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13927         Add arch_prctl.
13928         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13929
13930         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13931         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13933         New macro.
13934         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13935         (INTERNAL_SYSCALL_TYPES): Likewise.
13936         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13937         (LOAD_REGS_TYPES_[1-6]): Likewise.
13938         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13939         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13940
13941 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13942
13943         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13944         copysignl for GLIBC_2_0.
13945         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13946         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13947         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13948         logbl for GLIBC_2_0.
13949         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13950         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13951
13952 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13953
13954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13955         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13956
13957         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13958         Use "neg %eax".
13959
13960         * time/mktime.c: Update copyright years.
13961
13962 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         mktime: merge comment-quoting-style change from gnulib
13965         * time/mktime.c: Quote 'like this' in comments.
13966         The GNU coding standards suggest that we no longer quote `like this',
13967         as "`" and "'" are typically rendered asymmetrically nowadays.
13968         The typical gnulib style is to quote 'like this' when quoting
13969         code, and "like this" when quoting English.
13970
13971         * time/mktime.c (compile-command): Add "-I.".
13972
13973         mktime: merge mktime-internal.h change from gnulib
13974         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13975
13976         mktime: merge time_r change from gnulib
13977         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13978
13979         mktime: merge DEBUG change from gnulib
13980         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13981         case system <time.h> has a #define.
13982
13983         mktime: merge <sys/types.h> change from gnulib
13984         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13985         since <time.t> is now guaranteed to define time_t.
13986
13987         mktime: merge HAVE_CONFIG_H change from gnulib
13988         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
13989
13990 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13991
13992         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13993         Use "neg %eax".
13994
13995         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
13996         __rlim_t cast.
13997         (struct rusage): Use anonymous union to pad each field to
13998         __syscall_slong_t.
13999
14000 2012-05-21  David S. Miller  <davem@davemloft.net>
14001
14002         * Makefules (o-iterator): Remove .s cases.
14003         (compile-command.s): Delete.
14004         (COMPILE.s): Delete.
14005         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14006
14007 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14008
14009         * configure.in (libc_cv_predef_stack_protector): Only consider
14010         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14011         * configure: Regenerated.
14012
14013 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14014
14015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14016         New macro.  Use R*LP on int and pointer.
14017         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14018         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14019         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14020         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14021
14022         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14023         [__WORDSIZE_TIME64_COMPAT32] instead of
14024         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14025         (struct utmp): Likewise.
14026         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14027         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14028         Renamed to ...
14029         (__WORDSIZE_TIME64_COMPAT32): This.
14030         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14031         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14032         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14033         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14034         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14035         (__WORDSIZE_TIME64_COMPAT32): New macro.
14036
14037 2012-05-21  Andreas Jaeger  <aj@suse.de>
14038
14039         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14040         only if [SHARED]. Add prototype for __wcschr_ia32.
14041
14042 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14043
14044         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14045         of %rbp unmolested in the jmp_buf while mangling the low bits.
14046         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14047         unmolested high bits of %rbp while demangling the low bits.
14048         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14049
14050 2012-05-21  Andreas Jaeger  <aj@suse.de>
14051
14052         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14053         * sunrpc/svc_simple.c: Use it for registerrpc.
14054         * sunrpc/xcrypt.c: Use it for passwd2des.
14055
14056         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14057
14058 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14059
14060         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14061         Don't define if [__SYSCALL_WORDSIZE != 32].
14062         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14063         New macro.
14064
14065 2012-05-21  Bruno Haible  <bruno@clisp.org>
14066             Andreas Jaeger  <aj@suse.de>
14067
14068         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14069         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14070         inptr and inend for must_buffer_ch.
14071         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14072         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14073         * stdio-common/Makefile (tests): Remove bug15.
14074         (bug15-ENV): Remove macro.
14075         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14076         anymore.
14077
14078 2012-05-19  Andreas Jaeger  <aj@suse.de>
14079             Roland McGrath  <roland@hack.frob.com>
14080
14081         * manual/contrib.texi: Completely rewritten. It contains now an
14082         alphabetical list of contributors and their contributions.
14083
14084 2012-05-21  Richard Henderson  <rth@twiddle.net>
14085
14086         * misc/getauxval.c (__getauxval): Use unsigned long int.
14087         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14088         (getauxval): Use unsigned long int.
14089
14090 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14091
14092         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14093
14094 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14095
14096         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14097         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14098         __alignof__ (long double).
14099
14100 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14101
14102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14103
14104 2012-05-20  Richard Henderson  <rth@twiddle.net>
14105
14106         * misc/getauxval.c: New file.
14107         * misc/sys/auxv.h: New file.
14108         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14109         (routines): Add getauxval.
14110         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14111         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14112         * elf/dl-sysdep.c (_dl_auxv): Remove.
14113         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14114         * elf/dl-support.c (_dl_auxv): New variable.
14115         (_dl_aux_init): Initialize it.
14116         * manual/startup.texi (Auxiliary Vector): New node.
14117         * sysdeps/generic/bits/hwcap.h: New file.
14118         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14119         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14120         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14121         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14122         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14123         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14125         Update.
14126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14129         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14131         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14134
14135 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14136
14137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14138
14139 2012-05-19  David S. Miller  <davem@davemloft.net>
14140
14141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14142
14143 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14144
14145         [BZ #14123]
14146         * math/s_ccosh.c: Include <float.h>
14147         (__ccosh): Avoid internal overflow calculating sinh and cosh
14148         values before multiplying by sin and cos values.
14149         * math/s_ccoshf.c: Likewise.
14150         * math/s_ccoshl.c: Likewise.
14151         * math/s_csin.c: Likewise.
14152         * math/s_csinf.c: Likewise.
14153         * math/s_csinl.c: Likewise.
14154         * math/s_csinh.c: Likewise.
14155         * math/s_csinhf.c: Likewise.
14156         * math/s_csinhl.c: Likewise.
14157         * math/libm-test.inc (ccos_test): Add more tests.
14158         (ccosh_test): Likewise.
14159         (csin_test): Likewise.
14160         (csinh_test): Likewise.
14161         * sysdeps/i386/fpu/libm-test-ulps: Update.
14162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14163
14164 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14165
14166         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14167         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14168
14169         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14170
14171 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14172
14173         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14174         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14175         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14176         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14177         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14178         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14179         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14180         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14181         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14182         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14183         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14184         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14185         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14186         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14187         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14188         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14189         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14190         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14191         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14192         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14193         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14194         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14195         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14196         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14197         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14198         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14199         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14200         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14201         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14202         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14203         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14204
14205 2012-05-18  Andreas Jaeger  <aj@suse.de>
14206
14207         * csu/.gitignore: Delete.
14208
14209 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14210
14211         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14212         (timex): Use __syscall_slong_t.
14213
14214 2012-05-18  Andreas Jaeger  <aj@suse.de>
14215             Carlos O'Donell  <carlos_odonell@mentor.com>
14216
14217         * manual/install.texi (Configuring and compiling): Update
14218         description about files modified in the source directory.
14219         * INSTALL: Regenerated.
14220
14221 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14222
14223         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14224         value.  Use "or" to set return value to -1.
14225         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14226         negate return value.
14227
14228 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14229
14230         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14231         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14232         failure if the compiler has Graphite support disabled.
14233         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14234         Likewise.
14235         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14236         CFLAGS-memmove.c): Likewise.
14237         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14238         Likewise.
14239
14240 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14241
14242         * sysdeps/x86_64/x32/_itoa.h: New file.
14243
14244         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14245         getdents system call only if kernel and user dirents have the
14246         same d_ino and d_off.
14247
14248         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14249         LLONG_MAX != LONG_MAX.
14250         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14251         (_fitoa_word): Likewise.
14252
14253         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14254         years.
14255         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14256         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14257         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14258
14259         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14260         include <bits/wordsize.h>.  Check __x86_64__ instead of
14261         __WORDSIZE.
14262         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14263         if __x86_64__ is defined.  Use anonymous union on fpstate.
14264
14265         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14266         anonymous union.
14267
14268 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14269
14270         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14271         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14272         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14273         Refer to _rtld_local_ro instead of _rtld_global_ro.
14274         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14275         Likewise.
14276         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14277         Likewise.
14278         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14279         Likewise.
14280         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14281         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14282         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14283
14284         * sysdeps/powerpc/powerpc32/dl-machine.c
14285         (__elf_machine_runtime_setup) [PROF]: Don't reference
14286         _dl_prof_resolve.
14287
14288 2012-05-18  Andreas Jaeger  <aj@suse.de>
14289
14290         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14291         function only available for GCCs before 3.4 since GCC 3.4
14292         introduced a builtin.
14293         (lrint): Likewise.
14294         (llrintf): Likewise.
14295         (llrint): Likewise.
14296         (fmaxf): Likewise.
14297         (fmax): Likewise.
14298         (fminf): Likewise.
14299         (fmin): Likewise.
14300         (rint): Likewise.
14301         (rintf): Likewise.
14302         (nearbyint): Likewise.
14303         (nearbyintf): Likewise.
14304         (ceil): Likewise.
14305         (ceilf): Likewise.
14306         (floor): Likewise.
14307         (floorf): Likewise.
14308
14309 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14310
14311         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14312         on both fields and cast pointer to __syscall_ulong_t.
14313
14314         * bits/types.h (__fsword_t): New type.
14315         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14316         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14317         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14318         (__FSWORD_T_TYPE): Likewise.
14319         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14320         (__FSWORD_T_TYPE): Likewise.
14321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14322         (__FSWORD_T_TYPE): Likewise.
14323         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14324         (__FSWORD_T_TYPE): Likewise.
14325         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14326         __SWORD_TYPE with __fsword_t.
14327         (statfs64): Likewise.
14328
14329 2012-05-17  David S. Miller  <davem@davemloft.net>
14330
14331         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14332
14333 2012-05-17  Andreas Jaeger  <aj@suse.de>
14334
14335         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14336         warning.
14337
14338 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14339
14340         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14341
14342 2012-05-17  Andreas Jaeger  <aj@suse.de>
14343
14344         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14345         when it is used.
14346
14347 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14348
14349         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14350
14351 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14352
14353         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14354         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14355
14356 2012-05-17  Andreas Jaeger  <aj@suse.de>
14357             Carlos O'Donell  <carlos_odonell@mentor.com>
14358
14359         [BZ #14059]
14360         * sysdeps/x86_64/multiarch/init-arch.h
14361         (bit_YMM_Usable): Rename to...
14362         (bit_AVX_Usable): ... this.
14363         (bit_FMA4_Usable): New macro.
14364         (bit_XMM_state): New macro.
14365         (bit_YMM_state): New macro.
14366         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14367         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14368         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14369         (CPUID_OSXSAVE): New macro.
14370         (CPUID_AVX): New macro.
14371         (CPUID_FMA4): New macro.
14372         (index_YMM_Usable): Rename to...
14373         (index_AVX_Usable): ... this.
14374         (HAS_AVX): Use HAS_ARCH_FEATURE.
14375         (HAS_FMA4): Likewise.
14376         (HAS_YMM_USABLE): Remove.
14377         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14378         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14379         are present.
14380         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14381         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14382         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14383         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14384         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14385
14386 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14387
14388         * math/libm-test.c: Support platforms without multiple rounding modes.
14389         * math/bug-nextafter.c: Support platforms without FP exceptions.
14390         * math/bug-nexttoward.c: Likewise.
14391         * math/test-fenv.c: Likewise.
14392         * math/test-misc.c: Likewise.
14393         * stdlib/bug-getcontext.c: Likewise.
14394
14395 2012-05-17  Andreas Jaeger  <aj@suse.de>
14396
14397         * manual/examples/search.c (critter_cmp): Change signature to
14398         avoid warnings.
14399         * manual/string.texi (Collation Functions): Likewise.
14400
14401 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14402
14403         * bits/types.h: Fold copyright years.
14404         * bits/typesizes.h: Likewise.
14405         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14406         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14407         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14408         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14409         * time/time.h: Likewise.
14410
14411 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14412
14413         [BZ #208]
14414         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14415         in instead of returning them.  Return void.
14416         (__libc_mallinfo): Accumulate over all arenas.
14417         (__malloc_stats): Adjust for change in int_mallinfo interface.
14418
14419 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14420
14421         [BZ #10375]
14422         * configure.in (NM): Add AC_CHECK_TOOL for it.
14423         (libc_extra_cflags): New substituted variable.
14424         Check for -fstack-protector being used implicitly.
14425         * configure: Regenerated.
14426         * config.make.in (config-extra-cflags): New variable,
14427         gets @libc_extra_cflags@.
14428         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14429
14430         [BZ #10375]
14431         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14432         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14433         * configure: Regenerated.
14434         * config.make.in (CPPUNDEFS): New substituted variable.
14435         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14436         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14437         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14438
14439 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14440
14441         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14442         (mq_attr): Use __syscall_slong_t.
14443
14444 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14445
14446         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14447         Check __x86_64__ instead of __WORDSIZE.
14448         (_STAT_VER_LINUX): Likewise.
14449         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14450         __syscall_ulong_t and __syscall_slong_t.
14451         (stat64): Likewise.
14452
14453 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14454
14455         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14456
14457 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14458
14459         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14460
14461 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14462
14463         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14464         __syscall_ulong_t.
14465
14466         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14467         include <bits/wordsize.h>.  Check __x86_64__ instead of
14468         __WORDSIZE.
14469         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14470         defined.
14471         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14472
14473         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14474         include <bits/wordsize.h>.  Check __x86_64__ instead of
14475         __WORDSIZE.
14476         (user_regs_struct): Use "__extension__ unsigned long long"
14477         instead of "unsigned long" if __x86_64__ is defined.
14478         (user): Likewise.  Pad after pointer field if __ILP32__ is
14479         defined.
14480
14481 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14482
14483         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14484         versions 5 to 9.
14485         * configure: Regenerated.
14486         * manual/install.texi (texinfo): Increase version requirement to
14487         4.5 or later.
14488         * INSTALL: Regenerated.
14489
14490         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14491
14492 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14493
14494         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14495
14496         * sysdeps/x86_64/x32/ffs.c: New file.
14497
14498         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14499         __syscall_ulong_t.
14500         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14501         defined.  Use __syscall_ulong_t.
14502         (shminfo): Use __syscall_ulong_t.
14503         (shm_info): Likewise.
14504
14505         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14506         __syscall_ulong_t.
14507
14508         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14509         <bits/wordsize.h>.
14510         (msgqnum_t): Use __syscall_ulong_t.
14511         (msglen_t): Likewise.
14512         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14513         __syscall_ulong_t.
14514
14515         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14516         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14517
14518         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14519
14520         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14521         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14522
14523         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14524         __syscall_slong_t.
14525
14526         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14527         include <bits/wordsize.h>.  Check __x86_64__ instead of
14528         __WORDSIZE.
14529
14530         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14531         "unsigned long long int" if __x86_64__ is defined.
14532         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14533
14534         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14535         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14536         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14537
14538         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14539         <stdint.h>.
14540         (GET_PC): Cast to uintptr_t first.
14541         (GET_FRAME): Likewise.
14542         (GET_STACK): Likewise.
14543
14544         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14545         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14546         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14547         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14548         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14549         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14550         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14551         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14552         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14553         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14554         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14555         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14556         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14557         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14558         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14559         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14560         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14561         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14562         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14563         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14564         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14565         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14566         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14567         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14568         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14569         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14570         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14571         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14572         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14573
14574 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14575
14576         * Makerules (+depfiles): Also collect depfiles from .oS in
14577         $(extra-objs).
14578         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14579         .oS, $(libnldbl-routines)).
14580
14581         * Makerules (native-compile-mkdep-flags): Define.
14582         * sunrpc/Makefile (extra-objs): Add $(addprefix
14583         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14584         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14585         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14586         calling $(make-target-directory).
14587
14588 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14589
14590         * bits/types.h (__snseconds_t): Removed.
14591         * time/time.h (struct timespec): Replace __snseconds_t with
14592         __syscall_slong_t.
14593         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14594         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14595         Likewise.
14596         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14597         (__SNSECONDS_T_TYPE): Likewise.
14598         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14599         (__SNSECONDS_T_TYPE): Likewise.
14600         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14601         (__SNSECONDS_T_TYPE): Likewise.
14602
14603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14604
14605         * sysdeps/mach/hurd/bits/typesizes.h
14606         (__SYSCALL_SLONG_TYPE): New macro.
14607         (__SYSCALL_ULONG_TYPE): Likewise.
14608
14609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14610
14611         * bits/types.h (__syscall_slong_t): New type.
14612         (__syscall_ulong_t): Likewise.
14613
14614         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14615         (__SYSCALL_ULONG_TYPE): Likewise.
14616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14617         (__SYSCALL_SLONG_TYPE): Likewise.
14618         (__SYSCALL_ULONG_TYPE): Likewise.
14619         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14620         (__SYSCALL_SLONG_TYPE): Likewise.
14621         (__SYSCALL_ULONG_TYPE): Likewise.
14622         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14623         (__SYSCALL_SLONG_TYPE): Likewise.
14624         (__SYSCALL_ULONG_TYPE): Likewise.
14625
14626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14627
14628         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14629         Add sigaltstack-offsets.sym.
14630         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14631         <sigaltstack-offsets.h>.
14632         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14633         longjmp_msg pointer.
14634         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14635         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14636         signal stack.
14637         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14638
14639 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14640
14641         * elf/stackguard-macros.h: Remove file.
14642         * sysdeps/generic/stackguard-macros.h: New file.
14643         * sysdeps/i386/stackguard-macros.h: Likewise.
14644         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14645         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14646         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14647         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14648         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14649         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14650         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14651         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14652         <elf/stackguard-macros.h>.
14653
14654         [BZ #14109]
14655         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14656         __aligned__ in attribute.
14657         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14658         (gregset_t): Likewise.
14659
14660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14661
14662         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14663         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14664         * sysdeps/x86_64/x32/Implies-after: New file.
14665
14666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14667
14668         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14669         and access return value for _dl_profile_fixup.  Use R10_LP to
14670         load frame size.
14671
14672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14673
14674         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14675
14676 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14677
14678         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14679         * sysdeps/x86_64/x32/sysdep.h: New file.
14680
14681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14682
14683         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14684         * sysdeps/x86_64/setjmp.S: Likewise.
14685
14686 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14687
14688         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14689         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14690         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14691         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14692         remove unused global constant.
14693
14694 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14695
14696         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14697         include of <not-cancel.h>.
14698
14699 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14700
14701         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14702
14703 2012-05-15  Jeff Law  <law@redhat.com>
14704             Andreas Jaeger  <aj@suse.de>
14705
14706         [BZ #13594]
14707         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14708         out from...
14709         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14710         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14711         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14712         code changing __hst_map_handle.map.
14713
14714 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14715
14716         * configure.in (sysnames): Look for Implies-before and Implies-after
14717         files.
14718         * configure: Regenerated.
14719
14720 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14721
14722         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14723         8-byte data alignment with LP_SIZE alignment.
14724
14725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14726
14727         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14728         into R10_LP.
14729
14730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14731
14732         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14733
14734 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14735
14736         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14737         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14738         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14739         Likewise.
14740         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14741
14742 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14743
14744         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14745         (stackinfo_sub_sp): Likewise.
14746
14747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14748
14749         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14750         RAX_LP.
14751
14752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14753
14754         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14755         into R*_LP.
14756
14757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14758
14759         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14760         sizes into R*_LP.
14761
14762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14763
14764         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14765
14766 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14769         into R11_LP and load __x86_64_shared_cache_size_half into
14770         R8_LP.
14771
14772 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14773
14774         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14775         R8_LP.
14776
14777 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14778
14779         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14780         logb for POWER7.
14781         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14782         logbf for POWER7.
14783         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14784         logbl for POWER7.
14785         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14786         powerpc32/power7/fpu/s_logb.c via #include.
14787         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14788         powerpc32/power7/fpu/s_logbf.c via #include.
14789         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14790         powerpc32/power7/fpu/s_logbl.c via #include.
14791
14792 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14793
14794         * README.libm: Remove file.
14795
14796 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14797
14798         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14799         count for x32.  Use R*_LP and omit operand-size suffix.
14800
14801 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14802
14803         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14804         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14805         * sysdeps/x86_64/x32/shlib-versions: New file.
14806
14807 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14808
14809         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14810         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14811         Use _dl_fatal_printf instead.
14812
14813 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14814
14815         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14816         set if not set by the user.  Do not allow for being unset.
14817         * sysdeps/unix/sysv/linux/configure: Regenerated.
14818
14819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14820
14821         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14822         the `q' suffix from lea and replace .quad with ASM_ADDR.
14823
14824 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14825
14826         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14827         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14828         instead of $17.
14829         (PTR_DEMANGLE): Likewise.
14830
14831 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14832
14833         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14834         (LP_OP): Likewise.
14835         (ASM_ADDR): Likewise.
14836         (RAX_LP): Likewise.
14837         (RBP_LP): Likewise.
14838         (RBX_LP): Likewise.
14839         (RCX_LP): Likewise.
14840         (RDI_LP): Likewise.
14841         (RSI_LP): Likewise.
14842         (RSP_LP): Likewise.
14843         (R8_LP): Likewise.
14844         (R9_LP): Likewise.
14845         (R10_LP): Likewise.
14846         (R10_LP): Likewise.
14847         (R11_LP): Likewise.
14848         (R12_LP): Likewise.
14849         (R13_LP): Likewise.
14850         (R14_LP): Likewise.
14851         (R15_LP): Likewise.
14852
14853 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14854
14855         * sysdeps/x86_64/x32/dl-machine.h: New file.
14856
14857 2012-05-14  Andreas Jaeger  <aj@suse.de>
14858
14859         * manual/Makefile (subdir): Remove export of subdir.
14860         (all): Remove target.
14861         (.PHONY): Remove all from list.
14862         (mkinstalldirs): Remove.
14863         (.PHONY): Remove installdirs from list.
14864         ($(inst_infodir)/libc.info): Use make-target-directory.
14865         (installdirs): Remove.
14866         (subdir_%): Remove.
14867         (glibc-targets): Remove.
14868         (lib): Remove.
14869         (stubs): Remove.
14870         ($(objpfx)stubs ../po/manual.pot): Remove.
14871         ($(objpfx)stamp%): Remove.
14872         (make-target-directory): Remove.
14873         (subdir_install): Remove.
14874         (routines): Remove.
14875         (aux): Remove.
14876         (sources): Remove.
14877         (objects): Remove.
14878         (headers): Remove.
14879
14880         [BZ #13750]
14881         * manual/.gitignore: Remove, it's not needed anymore.
14882         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14883         all files in it.
14884         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14885         directory.
14886         (texis): Renamed to $(objpfx)texis.
14887         (texis-path): New, contains path to generated files.
14888         (chapters.%): Use texis-path for complete path, add extra argument
14889         libc-texinfo.sh.
14890         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14891         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14892         (summary,texi, stamp-summary): Use complete path of
14893         files. Generate files in build dir.
14894         (dir-add.texi): Build in build dir.
14895         (libm-err.texi,stamp-libm-err): Likewise.
14896         (version.texi, stamp-version): Likewise.
14897         (.%c.texi): Likewise.
14898         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14899         (mostlyclean): Remove target.
14900         (realclean): Remove target.
14901         (generated): Add new variable with contents from mostlyclean and
14902         realclean, remove entries duplicated in common-mostlyclean, add
14903         stamp-libm-err and stamp-version.
14904         (generated-dirs): Add libc directory.
14905         ($(inst_infodir)/libc.info): Install files from build dir.
14906
14907         * manual/install.texi (Configuring and compiling): Adjust since
14908         the info files are not part of the tar ball anymore.
14909
14910 2012-05-14  Andreas Jaeger  <aj@suse.de>
14911
14912         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14913         variable.
14914
14915 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14916
14917         [BZ #13717]
14918         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14919         to 2.2.0 where earlier.
14920         * sysdeps/unix/sysv/linux/configure: Regenerated.
14921         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14922         Remove conditional code.
14923         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14924         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14925         Remove conditional code.
14926         [!__NR_lchown]: Likewise.
14927         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14928         [__NR_lchown]: Likewise.
14929         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14930         comment referencing __ASSUME_LCHOWN_SYSCALL.
14931         * sysdeps/unix/sysv/linux/i386/sigaction.c
14932         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14933         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14934         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14935         Remove conditional code.
14936         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14937         (__protocol_available): Remove #if 0 code.
14938         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14939         conditional code.
14940         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14941         * sysdeps/unix/sysv/linux/kernel-features.h
14942         (__ASSUME_GETCWD_SYSCALL): Don't define.
14943         (__ASSUME_REALTIME_SIGNALS): Likewise.
14944         (__ASSUME_PREAD_SYSCALL): Likewise.
14945         (__ASSUME_PWRITE_SYSCALL): Likewise.
14946         (__ASSUME_POLL_SYSCALL): Likewise.
14947         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14948         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14949         non-SPARC.
14950         (__ASSUME_SIOCGIFNAME): Don't define.
14951         (__ASSUME_MSG_NOSIGNAL): Likewise.
14952         (__ASSUME_SENDFILE): Define unconditionally.
14953         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14954         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14955         conditional code.
14956         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14957         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14958         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14959         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14960         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14961         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14962         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14964         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14965         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14967         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14968         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14970         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14971         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14973         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14974         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14976         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14977         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14979         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14980         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14982         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14983         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14985         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14986         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14987         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14988         Remove conditional code.
14989         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14990         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14991         Remove conditional code.
14992         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14993         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
14994         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
14995         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14996         Remove conditional code.
14997         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14998         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
14999         Remove conditional code.
15000         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15001         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15002         Remove conditional code.
15003         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15004         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15005         Remove conditional code.
15006         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15007         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15008         Remove conditional code.
15009         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15010         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15011         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15012         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15013         * sysdeps/unix/sysv/linux/sigaction.c
15014         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15015         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15016         * sysdeps/unix/sysv/linux/sigpending.c
15017         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15018         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15019         * sysdeps/unix/sysv/linux/sigprocmask.c
15020         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15021         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15022         * sysdeps/unix/sysv/linux/sigsuspend.c
15023         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15024         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15025         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15026         (__libc_missing_rt_sigs): Remove.
15027         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15028         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15029         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15030         Remove conditional code.
15031         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15032         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15033         return 1.
15034         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15035         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15036         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15037         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15038
15039 2012-05-14  Andreas Jaeger  <aj@suse.de>
15040
15041         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15042         it's not used in glibc.
15043         (__coshm1): Likewise.
15044         (__acosh1p): Likewise.
15045         (__sgn): Likewise.
15046
15047         * manual/string.texi (Copying and Concatenation): Add missing
15048         variable in concat example.
15049         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15050
15051 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15052
15053         [BZ #14103]
15054         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15055         __builtin_clzl with __builtin_clzll.
15056
15057 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15058
15059         [BZ #14104]
15060         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15061         libc_freeres_ptr.
15062
15063 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15064
15065         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15066         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15067         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15068         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15069
15070 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15071
15072         * NEWS: Update ia64 info.
15073
15074 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15075
15076         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15077         used as bcopy.
15078
15079 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15080
15081         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15082         * sysdeps/unix/syscalls.list (dup3): Likewise.
15083         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15084         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15085
15086 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15087
15088         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15089         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15090
15091 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15092
15093         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15094         thread pointer.
15095         (TLS_IE): Use mov/add instead of movq/addq to load thread
15096         pointer.
15097         (TLS_GD_PREFIX): New.
15098         (TLS_GD): Use it.
15099
15100 2012-05-11  David S. Miller  <davem@davemloft.net>
15101
15102         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15103         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15104         (_FPU_SETCW): Likewise.
15105
15106 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15107
15108         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15109         is 32-byte aligned.
15110
15111 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15112
15113         [BZ #11837]
15114         * iconvdata/gb18030.c: Update tables.
15115         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15116         characters specially.
15117         (BODY for TO_LOOP): Add encoding of missing ranges.
15118
15119 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15120
15121         [BZ #13673]
15122         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15123         * sysdeps/mach/hurd/dup3.c: Likewise.
15124         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15125         * sysdeps/powerpc/memmove.c:: Likewise.
15126
15127 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15128
15129         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15130         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15131
15132 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15133
15134         * elf/elf.h (R_X86_64_RELATIVE64): New.
15135         (R_X86_64_NUM): Updated.
15136         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15137         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15138         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15139         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15140         tst-quad1pie tst-quad2pie
15141         (modules-names): Add tst-quadmod1 tst-quadmod2.
15142         ($(objpfx)tst-quad1): New dependency.
15143         ($(objpfx)tst-quad2): Likewise.
15144         ($(objpfx)tst-quad1pie): Likewise.
15145         ($(objpfx)tst-quad2pie): Likewise.
15146         * sysdeps/x86_64/tst-quad1.c: New file.
15147         * sysdeps/x86_64/tst-quad1pie.c: New file.
15148         * sysdeps/x86_64/tst-quad2.c: Likewise.
15149         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15150         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15151         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15152         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15153         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15154
15155 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15156
15157         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15158         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15159         * streams/stropts.h (t_scalar_t): Define type.
15160
15161         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15162         (_PATH_PRESERVE): Set to "/var/lib".
15163         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15164
15165         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15166         instead of int.
15167
15168         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15169         if __dir_mkfile succeeded.
15170
15171         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15172         checking for _hurd_dtablesize.  Unlock it right after having
15173         finished _hurd_dtable allocation.
15174
15175 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15176
15177         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15178         * sysdeps/mach/hurd/configure: Regenerated.
15179         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15180         special-casing to...
15181         * sysdeps/gnu/configure.in: ... this new file.
15182         * sysdeps/unix/sysv/linux/configure: Regenerated.
15183         * sysdeps/gnu/configure: New generated file.
15184
15185         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15186         for Linux: use nsec instead of usec, as well as:
15187         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15188         members of type struct timespec.
15189         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15190         New macros.
15191         (struct stat64): Likewise.
15192         (_STATBUF_ST_NSEC): New macro.
15193         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15194
15195         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15196         __strtoul_internal rather than strtoul.
15197
15198 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15199
15200         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15201         and reject them.
15202
15203 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15204
15205         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15206         which preserves existing values.
15207         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15208
15209 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15210
15211         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15212         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15213         greater than FD_SETSIZE.
15214
15215 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15216
15217         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15218         allocated, call __vm_protect to finish enabling the existing space, and
15219         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15220         allocate the remainder.
15221
15222 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15223
15224         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15225         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15226
15227 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15228
15229         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15230         sysdeps/mach/hurd/readlink.c.
15231
15232         * posix/tst-sysconf.c (posix_options): Only use
15233         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15234         _POSIX_SYNCHRONIZED_IO when they are defined
15235         * sysdeps/mach/hurd/bits/posix_opt.h:
15236         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15237         (_XOPEN_REALTIME): Undefine macro.
15238         (_XOPEN_REALTIME_THREADS): Undefine macro.
15239         (_XOPEN_SHM): Undefine macro.
15240         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15241         macro to -1.
15242         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15243         macro to -1.
15244         (_POSIX_ASYNC_IO): Undefine macro.
15245         (_POSIX_PRIORITIZED_IO): Undefine macro.
15246         (_POSIX_SPIN_LOCKS): Define macro to -1.
15247
15248         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15249         SA_NODEFER, SA_RESETHAND.
15250         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15251         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15252         F_DUPFD_CLOEXEC.
15253
15254 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15255
15256         * elf/Makefile (pldd-modules): Define unconditionally.
15257
15258 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15259
15260         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15261
15262 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15263
15264         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15265         Return ENOENT when name is empty.
15266         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15267
15268 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15269
15270         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15271
15272         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15273
15274 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15275
15276         Fix mlock in all cases except non-readable pages.
15277         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15278         instead of VM_PROT_ALL as parameter to __vm_wire function.
15279
15280         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15281         (__mkdir): When path is `/', just fail with EEXIST.
15282         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15283
15284 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15285
15286         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15287         <sys/uio.h> (for writev).
15288         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15289         and <sys/param.h> (for MIN).
15290
15291 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15292
15293         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15294         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15295         if interrupted.
15296
15297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15298
15299         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15300         Depend on against $(link-rpcuserlibs).
15301
15302 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15303
15304         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15305         (__libc_stack_end): Do not use attribute_relro.
15306         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15307         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15308         to libthread-provided value.
15309         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15310         attribute_relro.
15311
15312 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15313
15314         [BZ #3748]
15315         * bits/libc-lock.h (__libc_once_get): New macro.
15316         * sysdeps/mach/bits/libc-lock.h: Likewise.
15317         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15318         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15319         instead of using implementation details.
15320
15321         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15322         * libio/freopen.c: Likewise.
15323         * libio/freopen64.c: Likewise.
15324         * misc/syslog.c: Likewise.
15325         * nscd/connections.c: Likewise.
15326         * nscd/netgroupcache.c: Likewise.
15327         * sysdeps/posix/getcwd.c: Likewise.
15328
15329 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15330
15331         * math/w_ilogbf.c: Add #include <limits.h>.
15332
15333 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15334
15335         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15336         path instead of returning without unlocking.
15337
15338         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15339         immediate-write ioctls.
15340         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15341
15342 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15343
15344         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15345         __builtin_frame_address instead of making assumptions about the
15346         location of the return address relative to DATA.  Force early load of
15347         the return address.
15348         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15349         __builtin_frame_address.
15350
15351         dup3 for GNU Hurd.
15352         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15353         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15354         implement dup3 and do some further code clean-ups.
15355         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15356         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15357
15358 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15359
15360         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15361
15362         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15363         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15364         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15365         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15366         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15367         d->port.lock.
15368
15369         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15370         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15371         when handler == SIG_ERR, not when handler != SIG_ERR.
15372
15373 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15374
15375         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15376         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15377         definitions.
15378
15379         accept4 for GNU Hurd.
15380         * include/sys/socket.h (__libc_accept4): New prototype.
15381         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15382         to implement __libc_accept4.
15383         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15384         __libc_accept4.
15385         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15386
15387         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15388         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15389         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15390         signal-defines.sym.
15391
15392 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15393
15394         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15395
15396 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15397
15398         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15399         assertion on O_CLOEXEC flag.
15400         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15401         * hurd/intern-fd.c: Likewise.
15402         * hurd/port2fd.c: Likewise.
15403
15404 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15405
15406         [BZ #3906]
15407         * bits/in.h (IPV6_PKTINFO): Define new macro.
15408         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15409
15410 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15411
15412         [BZ #13954]
15413         [BZ #13955]
15414         [BZ #13956]
15415         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15416         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15417         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15418         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15419         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15420         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15421         * math/libm-test.inc (logb_test) : Additional logb tests.
15422
15423 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15424             Andreas Jaeger  <aj@suse.de>
15425
15426         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15427         * configure: Regenerated.
15428         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15429         * config.make.in (link-obsolete-rpc): New substituted variable.
15430         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15431         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15432         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15433         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15434         so that libc.a contains the symbols.
15435         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15436         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15437         * sunrpc/auth_none.c: Likewise.
15438         * sunrpc/auth_unix.c: Likewise.
15439         * sunrpc/authdes_prot.c: Likewise.
15440         * sunrpc/authuxprot.c: Likewise.
15441         * sunrpc/clnt_gen.c: Likewise.
15442         * sunrpc/clnt_perr.c: Likewise.
15443         * sunrpc/clnt_raw.c: Likewise.
15444         * sunrpc/clnt_simp.c: Likewise.
15445         * sunrpc/clnt_tcp.c: Likewise.
15446         * sunrpc/clnt_udp.c: Likewise.
15447         * sunrpc/clnt_unix.c: Likewise.
15448         * sunrpc/des_crypt.c: Likewise.
15449         * sunrpc/des_soft.c: Likewise.
15450         * sunrpc/get_myaddr.c: Likewise.
15451         * sunrpc/key_call.c: Likewise.
15452         * sunrpc/key_prot.c: Likewise.
15453         * sunrpc/netname.c: Likewise.
15454         * sunrpc/pm_getmaps.c: Likewise.
15455         * sunrpc/pm_getport.c: Likewise.
15456         * sunrpc/pmap_clnt.c: Likewise.
15457         * sunrpc/pmap_prot.c: Likewise.
15458         * sunrpc/pmap_prot2.c: Likewise.
15459         * sunrpc/pmap_rmt.c: Likewise.
15460         * sunrpc/publickey.c: Likewise.
15461         * sunrpc/rpc_cmsg.c: Likewise.
15462         * sunrpc/rpc_common.c: Likewise.
15463         * sunrpc/rpc_dtable.c: Likewise.
15464         * sunrpc/rpc_prot.c: Likewise.
15465         * sunrpc/rpc_thread.c: Likewise.
15466         * sunrpc/rtime.c: Likewise.
15467         * sunrpc/svc.c: Likewise.
15468         * sunrpc/svc_auth.c: Likewise.
15469         * sunrpc/svc_raw.c: Likewise.
15470         * sunrpc/svc_run.c: Likewise.
15471         * sunrpc/svc_tcp.c: Likewise.
15472         * sunrpc/svc_udp.c: Likewise.
15473         * sunrpc/svc_unix.c: Likewise.
15474         * sunrpc/svcauth_des.c: Likewise.
15475         * sunrpc/xcrypt.c: Likewise.
15476         * sunrpc/xdr.c: Likewise.
15477         * sunrpc/xdr_array.c: Likewise.
15478         * sunrpc/xdr_float.c: Likewise.
15479         * sunrpc/xdr_intXX_t.c: Likewise.
15480         * sunrpc/xdr_mem.c: Likewise.
15481         * sunrpc/xdr_rec.c: Likewise.
15482         * sunrpc/xdr_ref.c: Likewise.
15483         * sunrpc/xdr_sizeof.c: Likewise.
15484         * sunrpc/xdr_stdio.c: Likewise.
15485
15486 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15487
15488         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15489         change.  Update copyright years.
15490
15491 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15492
15493         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15494
15495 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15496             Joseph Myers  <joseph@codesourcery.com>
15497             Paul Pluzhnikov  <ppluzhnikov@google.com>
15498
15499         [BZ #14012]
15500         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15501         requiring rpcgen.
15502         [cross-compiling] (extra-libs): Likewise.
15503         [cross-compiling] (extra-libs-others): Likewise.
15504         [cross-compiling] (librpcsvc-routines): Likewise.
15505         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15506         [cross-compiling] (omit-deps): Likewise.
15507         (sunrpc-CPPFLAGS): New variable.
15508         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15509         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15510         (cross-rpcgen-objs): New variable.
15511         (extra-objs): Append $(cross-rpcgen-objs).
15512         ($(cross-rpcgen-objs)): New rule.
15513         ($(objpfx)cross-rpcgen): Likewise.
15514         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15515         comment.
15516         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15517         ($(objpfx)x%.stmp): Likewise.
15518         * sunrpc/proto.h [IS_IN_build] (_): Define.
15519         [IS_IN_build] (_libc_intl_domainname): Likewise.
15520
15521 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15522
15523         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15524         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15525         and R_X86_64_TPOFF64.
15526
15527 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15528
15529         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15530         sysdeps/unix/sysv/syscalls.list.
15531         (stime): Likewise.
15532         (utime): Likewise.
15533         * sysdeps/unix/sysv/syscalls.list: Remove file.
15534
15535 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15536
15537         [BZ #3440]
15538         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15539         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15540         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15541         (__LC_IDENTIFICATION): Make these macros useful in #if
15542         expressions, as required by C99.
15543
15544 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15545
15546         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15547         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15548         after this.
15549
15550 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15551
15552         * stdlib/longlong.h: Updated from GCC.
15553
15554 2012-05-09  Andreas Jaeger  <aj@suse.de>
15555
15556         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15557         default is first entry.
15558         (run_mode): Set type.
15559         (main): Remove informal message about syslog.
15560         (options): Fix typo.
15561
15562         [BZ #14053]
15563         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15564         to asm.
15565         (lrint): Likewise.
15566         (llrintf): Likewise.
15567         (llrint): Likewise.
15568         (rint): Likewise.
15569         (rintf): Likewise.
15570         (nearbyint): Likewise.
15571         (nearbyintf): Likewise.
15572
15573 2012-05-09  Andreas Jaeger  <aj@suse.de>
15574             Pedro Alves  <palves@redhat.com>
15575
15576         * nscd/nscd.c (run_mode): Use enum.
15577         (main): Cleanup coding style issue.
15578
15579 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15580             Andreas Jaeger  <aj@suse.de>
15581
15582         * nscd/nscd.c (go_background): Replaced with...
15583         (run_mode): ... this.
15584         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15585         (options): Add -F --foreground.
15586         (main): Implement it.
15587         (parse_opt): Parse it.
15588
15589 2012-05-09  Andreas Jaeger  <aj@suse.de>
15590
15591         [BZ #14083]
15592         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15593         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15594         -Wconversion warning.
15595         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15596         Likewise.
15597
15598 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15599
15600         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15601         == 0.
15602         (LC_ALL): Use macro-int-constant.
15603         (LC_COLLATE): Likewise.
15604         (LC_CTYPE): Likewise.
15605         (LC_MESSAGES): Likewise.
15606         (LC_MONETARY): Likewise.
15607         (LC_NUMERIC): Likewise.
15608         (LC_TIME): Likewise.
15609         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15610         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15611         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15612         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15613         Specify type.
15614         [C99-based standards] (float_t): Expect type.
15615         [C99-based standards] (double_t): Expect type.
15616         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15617         type.
15618         [C99-based standards] (HUGE_VALL): Likewise.
15619         [C99-based standards] (INFINITY): Likewise.
15620         [C99-based standards] (NAN): Likewise.
15621         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15622         [C99-based standards] (FP_NAN): Likewise.
15623         [C99-based standards] (FP_NORMAL): Likewise.
15624         [C99-based standards] (FP_SUBNORMAL): Likewise.
15625         [C99-based standards] (FP_ZERO): Likewise.
15626         [C99-based standards] (FP_FAST_FMA): Use
15627         optional-macro-int-constant.  Specify type.  Require == 1.
15628         [C99-based standards] (FP_FAST_FMAF): Likewise.
15629         [C99-based standards] (FP_FAST_FMAL): Likewise.
15630         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15631         [C99-based standards] (FP_ILOGBNAN): Likewise.
15632         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15633         Specify type.
15634         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15635         [C99-based standards] (math_errhandling): Specify type.
15636         [ISO99 || ISO11] (signgam): Do not allow.
15637         [non-C99-based standards] (copysignf): Do not allow.
15638         [non-C99-based standards] (exp2f): Likewise.
15639         [non-C99-based standards] (log2f): Likewise.
15640         [non-C99-based standards] (modff): Allow.
15641         [non-C99-based standards] (erff): Do not allow.
15642         [non-C99-based standards] (erfcf): Likewise.
15643         [non-C99-based standards] (gammaf): Likewise.
15644         [non-C99-based standards] (hypotf): Likewise.
15645         [non-C99-based standards] (j0f): Likewise.
15646         [non-C99-based standards] (j1f): Likewise.
15647         [non-C99-based standards] (jnf): Likewise.
15648         [non-C99-based standards] (lgammaf): Likewise.
15649         [non-C99-based standards] (tgammaf): Likewise.
15650         [non-C99-based standards] (y0f): Likewise.
15651         [non-C99-based standards] (y1f): Likewise.
15652         [non-C99-based standards] (ynf): Likewise.
15653         [non-C99-based standards] (isnanf): Likewise.
15654         [non-C99-based standards] (acoshf): Likewise.
15655         [non-C99-based standards] (asinhf): Likewise.
15656         [non-C99-based standards] (atanhf): Likewise.
15657         [non-C99-based standards] (cbrtf): Likewise.
15658         [non-C99-based standards] (expm1f): Likewise.
15659         [non-C99-based standards] (ilogbf): Likewise.
15660         [non-C99-based standards] (log1pf): Likewise.
15661         [non-C99-based standards] (logbf): Likewise.
15662         [non-C99-based standards] (nextafterf): Likewise.
15663         [non-C99-based standards] (remainderf): Likewise.
15664         [non-C99-based standards] (rintf): Likewise.
15665         [non-C99-based standards] (scalbf): Likewise.
15666         [non-C99-based standards] (copysignl): Likewise.
15667         [non-C99-based standards] (exp2l): Likewise.
15668         [non-C99-based standards] (log2l): Likewise.
15669         [non-C99-based standards] (modfl): Allow.
15670         [non-C99-based standards] (erfl): Do not allow.
15671         [non-C99-based standards] (erfcl): Likewise.
15672         [non-C99-based standards] (gammal): Likewise.
15673         [non-C99-based standards] (hypotl): Likewise.
15674         [non-C99-based standards] (j0l): Likewise.
15675         [non-C99-based standards] (j1l): Likewise.
15676         [non-C99-based standards] (jnl): Likewise.
15677         [non-C99-based standards] (lgammal): Likewise.
15678         [non-C99-based standards] (tgammal): Likewise.
15679         [non-C99-based standards] (y0l): Likewise.
15680         [non-C99-based standards] (y1l): Likewise.
15681         [non-C99-based standards] (ynl): Likewise.
15682         [non-C99-based standards] (isnanl): Likewise.
15683         [non-C99-based standards] (acoshl): Likewise.
15684         [non-C99-based standards] (asinhl): Likewise.
15685         [non-C99-based standards] (atanhl): Likewise.
15686         [non-C99-based standards] (cbrtl): Likewise.
15687         [non-C99-based standards] (expm1l): Likewise.
15688         [non-C99-based standards] (ilogbl): Likewise.
15689         [non-C99-based standards] (log1pl): Likewise.
15690         [non-C99-based standards] (logbl): Likewise.
15691         [non-C99-based standards] (nextafterl): Likewise.
15692         [non-C99-based standards] (remainderl): Likewise.
15693         [non-C99-based standards] (rintl): Likewise.
15694         [non-C99-based standards] (scalbl): Likewise.
15695         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15696         [non-C99-based standards] (FP_*): Do not allow.
15697         [C99-based standards] (FP_*): Change to
15698         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15699         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15700         allow.
15701         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15702         (SIG_ERR): Likewise.
15703         [X/Open-based standards] (SIG_HOLD): Likewise.
15704         (SIG_IGN): Likewise.
15705         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15706         positive value.
15707         (SIGFPE): Likewise.
15708         (SIGILL): Likewise.
15709         (SIGINT): Likewise.
15710         (SIGSEGV): Likewise.
15711         (SIGTER): Likewise.
15712         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15713         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15714         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15715         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15716         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15717         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15718         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15719         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15720         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15721         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15722         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15723         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15724         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15725         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15726         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15727         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15728         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15729         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15730         [X/Open-based standards] (SIGTRAP): Likewise.
15731         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15732         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15733         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15734         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15735         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15736         allow.
15737
15738 2012-05-08  Ian Wienand  <ianw@vmware.com>
15739
15740         [BZ #14080]
15741         * time/tzset.c (__tzset_parse_tz): Update default rules for
15742         daylight time changes in the Energy Policy Act of 2005.
15743
15744 2012-05-09  Andreas Jaeger  <aj@suse.de>
15745
15746         [BZ #13983]
15747         * elf/ldconfig.c (parse_conf): Change string to make clear that
15748         ldconfig only issued a warning if ld.so.conf does not exist.
15749
15750 2012-05-08  David S. Miller  <davem@davemloft.net>
15751
15752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15753         movxtod instead of popping the value on the stack.
15754
15755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15756
15757 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15758
15759         * config.h.in: Add HAVE_ARM_PCS_VFP.
15760
15761 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15762
15763         [BZ #13979]
15764         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15765         checking but the checks are disabled for any reason.
15766
15767 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15768
15769         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15770         and ELF64_R_TYPE with ELFW(R_TYPE).
15771
15772 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15775         (ulimit): Likewise.
15776
15777         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15778         (settimeofday): Likewise.
15779
15780 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15781
15782         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15783         a struct th_u2 inside the union, and move tu_block/tu_code into
15784         a new th_u3 union of tu_block/tu_code inside of that.  Move
15785         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15786         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15787         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15788         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15789         (th_stuff): Change to th_u1.tu_stuff.
15790         (th_data): Define.
15791         (th_msg): Change to th_u1.th_u2.tu_data.
15792
15793 2012-05-07  David S. Miller  <davem@davemloft.net>
15794
15795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15796
15797         [BZ #14074]
15798         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15799         (SETUP_PIC_REG): Use it.
15800         (SETUP_PIC_REG_LEAF): Use it.
15801
15802 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15803
15804         [BZ #13885]
15805         [BZ #13923]
15806         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15807         USE_AS_EXPM1L.
15808         (EXPL_FINITE): Likewise.
15809         (FLDLOG): Likewise.
15810         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15811         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15812         e_expl.S.
15813         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15814         USE_AS_EXPM1L.
15815         (EXPL_FINITE): Likewise.
15816         (FLDLOG): Likewise.
15817         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15818         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15819         e_expl.S.
15820         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15821         test of -max_value argument for long double.
15822         * sysdeps/i386/fpu/libm-test-ulps: Update.
15823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15824
15825 2012-05-06  David S. Miller  <davem@davemloft.net>
15826
15827         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15828         quad soft-float symbols whose references which are compiler
15829         generated.
15830         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15831
15832 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15833
15834         [BZ #13884]
15835         [BZ #13914]
15836         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15837         USE_AS_EXP10L.
15838         (EXPL_FINITE): Likewise.
15839         (FLDLOG): Likewise.
15840         (c0): Likewise.
15841         (c1): Likewise.
15842         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15843         Adjust comments for base varying.
15844         (__expl_finite): Change alias to EXPL_FINITE.
15845         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15846         e_expl.S.
15847         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15848         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15849         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15850         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15851         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15852         USE_AS_EXP10L.
15853         (EXPL_FINITE): Likewise.
15854         (FLDLOG): Likewise.
15855         (c0): Likewise.
15856         (c1): Likewise.
15857         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15858         Adjust comments for base varying.
15859         (__expl_finite): Change alias to EXPL_FINITE.
15860         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15861         tests for bugs.
15862         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15863
15864         [BZ #14064]
15865         * math/libm-test.inc (check_float_internal): Correct ulp
15866         calculation for subnormal expected results.
15867
15868 2012-05-06  Andreas Jaeger  <aj@suse.de>
15869
15870         * Makeconfig (+math-flags): New, set to -frounding-math.
15871         (+cflags): Add +math-flags so that all of glibc gets compiled with
15872         it.
15873
15874         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15875
15876 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15877
15878         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15879         Disable one test.
15880
15881         [BZ #13787]
15882         [BZ #13922]
15883         [BZ #14036]
15884         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15885         (__ieee754_expl): Allow for and saturate large arguments.
15886         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15887         (u_threshold): Likewise.
15888         (__exp): Call __ieee754_exp before checking for overflow and
15889         underflow.
15890         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15891         (u_threshold): Likewise.
15892         (__expf): Call __ieee754_expf before checking for overflow and
15893         underflow.
15894         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15895         (u_threshold): Likewise.
15896         (__expl): Call __ieee754_expl before checking for overflow and
15897         underflow.
15898         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15899         (__ieee754_expl): Allow for and saturate large arguments.
15900         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15901         missing overflow exception on overflow.
15902         (expm1_test): Do not allow missing overflow exception on overflow.
15903
15904         * sysdeps/i386/fpu/e_expl.c: Move to ...
15905         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15906         rather than using inline asm.
15907         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15908         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15909         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15910
15911         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15912         (nice): Likewise.
15913         (poll): Likewise.
15914         (signal): Likewise.
15915         (time): Likewise.
15916         (times): Likewise.
15917
15918 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15919
15920         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15921         sysdeps/unix/common/syscalls.list.
15922         (fchmod): Likewise.
15923         (fchown): Likewise.
15924         (ftruncate): Likewise.
15925         (getrusage): Likewise.
15926         (gettimeofday): Likewise.
15927         (setpgid): Likewise.
15928         (setregid): Likewise.
15929         (setreuid): Likewise.
15930         (sigaction): Likewise.
15931         (truncate): Likewise.
15932         (vhangup): Likewise.
15933         * sysdeps/unix/common/syscalls.list: Remove file.
15934         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15935         * sysdeps/unix/sysv/linux/Implies: Likewise.
15936
15937 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15938
15939         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15941         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15942         Moved to ...
15943         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15944         Here.
15945         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15946         to ...
15947         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15948         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15949         to ...
15950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15951         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15952         to ...
15953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15954         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15955         to ...
15956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15957         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15958         to ...
15959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15960         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15961         to ...
15962         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15963         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15964         to ...
15965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15966         Here.
15967         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15968         to ...
15969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15970         Here.
15971         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15972         to ...
15973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15974         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15975         Moved to ...
15976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15977         Here.
15978         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15979         to ...
15980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15981
15982 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15983
15984         * sysdeps/unix/common/bits/dirent.h: Remove file.
15985         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15986
15987         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15988         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
15989         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
15990         * sysdeps/unix/bsd/isatty.c: Likewise.
15991         * sysdeps/unix/bsd/tcdrain.c: Likewise.
15992         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
15993         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
15994
15995 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15996
15997         [BZ #13563]
15998         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
15999         long double comparison inaccuracies.
16000         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16002
16003 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16004
16005         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16006         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16007
16008 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16009
16010         [BZ #14049]
16011         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16012         nonzero digits before rounding a hex value.
16013         * stdlib/tst-strtod.c (tests): Add another test.
16014
16015 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16016
16017         * sysdeps/s390/fpu/libm-test-ulps: Update.
16018
16019 2012-05-03  Andreas Jaeger  <aj@suse.de>
16020
16021         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16022         does not get optimized out.
16023         (malloc_opt_barrier): New.
16024
16025 2012-05-03  Andreas Jaeger  <aj@suse.de>
16026             Roland McGrath  <roland@hack.frob.com>
16027
16028         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16029         intermediate file deletion.
16030         (generated): Add .symlist files.
16031
16032 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16033
16034         [BZ #13775]
16035         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16036         Redirect under this condition.
16037         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16038         [__USE_GNU] (__dprintf_chk): Not under this condition.
16039         [__USE_GNU] (__vdprintf_chk): Likewise.
16040         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16041         under this condition.
16042         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16043         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16044         [__USE_XOPEN2K8] (vdprintf): Likewise.
16045         [__USE_GNU] (__dprintf_chk): Not under this condition.
16046         [__USE_GNU] (__vdprintf_chk): Likewise.
16047         [__USE_GNU] (dprintf): Likewise.
16048         [__USE_GNU] (vdprintf): Likewise.
16049
16050 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16051
16052         * elf/Makefile (common-generated): Set this instead of generated for
16053         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16054         $(all-built-dso)-derived lists.
16055
16056 2012-05-03  Andreas Jaeger  <aj@suse.de>
16057
16058         * sysdeps/i386/fpu/libm-test-ulps: Update.
16059
16060         * FAQ: Removed.
16061         * FAQ.in: Likewise.
16062         * scripts/gen-FAQ.pl: Likewise.
16063         * manual/install.texi (Installation): Point to online location of
16064         FAQ.
16065         * Makefile (files-for-dist): Remove FAQ.
16066         (FAQ): Remove.
16067
16068 2012-05-02  Allan McRae  <allan@archlinux.org>
16069
16070         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16071         (LDFLAGS-reldepmod5.so): Likewise.
16072         (LDFLAGS-reldep6mod1.so): Likewise.
16073         (LDFLAGS-reldep6mod4.so): Likewise.
16074         (LDFLAGS-reldep8mod3.so): Likewise.
16075         (LDFLAGS-unload4mod1.so): Likewise.
16076         (LDFLAGS-unload4mod2.so): Likewise.
16077         (LDFLAGS-tst-initorder): Likewise.
16078         (LDFLAGS-tst-initordera2.so): Likewise.
16079         (LDFLAGS-tst-initordera3.so): Likewise.
16080         (LDFLAGS-tst-initordera4.so): Likewise.
16081         (LDFLAGS-tst-initorderb2.so): Likewise.
16082         (LDFLAGS-noload): Likewise.
16083         (LDFLAGS-next): Likewise.
16084         (LDFLAGS-order2mod1.so): Likewise.
16085         (LDFLAGS-order2mod2.so): Likewise.
16086         (LDFLAGS-tst-initorder2): Likewise.
16087         (LDFLAGS-tst-initorder2a.so): Likewise.
16088         (LDFLAGS-tst-initorder2b.so): Likewise.
16089         (LDFLAGS-tst-initorder2c.so): Likewise.
16090         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16091
16092 2012-05-02  David S. Miller  <davem@davemloft.net>
16093
16094         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16095
16096 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16097
16098         [BZ #14055]
16099         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16100
16101 2012-05-02  Andreas Jaeger  <aj@suse.de>
16102
16103         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16104         since we manipulate rounding mode.
16105         (CPPFLAGS-test-idouble.c): Likewise.
16106         (CPPFLAGS-test-ifloat.c): Likewise.
16107         (CFLAGS-test-ldouble.c): Likewise.
16108         (CFLAGS-test-double.c): Likewise.
16109         (CFLAGS-test-float.c): Likewise.
16110         (CFLAGS-test-misc.c): Likewise.
16111         (CFLAGS-test-test-fenv.c): Likewise.
16112
16113 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16114
16115         [BZ #2550]
16116         [BZ #2570]
16117         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16118         comparisons to determine direction to adjust input.
16119
16120 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16121
16122         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16123         output to the target.
16124
16125         * scripts/localplt.awk: New file.
16126         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16127         (check-localplt-CFLAGS): Variable removed.
16128         ($(all-built-dso:=.jmprel)): New static pattern rule.
16129         (generated): Add those targets.
16130         (localplt-built-dso): New variable.
16131         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16132
16133         * elf/check-localplt.c: File removed.
16134
16135         * scripts/check-execstack.awk: New file.
16136         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16137         (check-execstack-CFLAGS): Variable removed.
16138         ($(objpfx)check-execstack.h): Target removed.
16139         ($(objpfx)execstack-default): New target.
16140         (generated): Add that instead of check-execstack.h.
16141         ($(all-built-dso:=.phdr)): New static pattern rule.
16142         (generated): Add those targets.
16143         * elf/check-execstack.c: File removed.
16144
16145         * scripts/check-textrel.awk: New file.
16146         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16147         (check-textrel-CFLAGS): Variable removed.
16148         (all-built-dso): Use := to define.o
16149         ($(all-built-dso:=.dyn)): New static pattern rule.
16150         (generated): Add those targets.
16151         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16152         * config.make.in (READELF): New substituted variable.
16153         * elf/check-textrel.c: File removed.
16154
16155 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16156
16157         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16158         allow.
16159         * conform/data/ctype.h-data [C99-based standards] (isblank):
16160         Expect function.
16161         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16162         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16163         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16164         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16165         Specify type.  Require positive value.
16166         (EILSEQ): Likewise.
16167         (ERANGE): Likewise.
16168         [ISO || POSIX] (EILSEQ): Do not expect.
16169         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16170         Specify type.  Require positive value.
16171         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16172         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16173         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16174         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16175         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16176         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16177         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16178         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16179         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16180         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16181         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16182         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16183         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16184         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16185         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16186         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16187         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16188         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16189         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16190         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16191         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16192         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16193         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16194         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16195         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16196         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16197         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16198         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16199         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16200         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16201         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16202         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16203         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16204         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16205         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16206         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16207         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16208         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16209         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16210         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16211         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16212         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16213         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16214         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16215         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16216         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16217         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16218         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16219         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16220         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16221         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16222         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16223         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16224         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16225         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16226         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16227         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16228         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16229         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16230         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16231         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16232         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16233         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16234         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16235         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16236         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16237         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16238         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16239         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16240         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16241         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16242         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16243         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16244         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16245         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16246         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16247         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16248         Require >= 2.
16249         (FLT_ROUNDS): Expect as macro, not constant.
16250         (FLT_MANT_DIG): Use macro-int-constant.
16251         (DBL_MANT_DIG): Likewise.
16252         (LDBL_MANT_DIG): Likewise.
16253         (FLT_DIG): Likewise.
16254         (DBL_DIG): Likewise.
16255         (LDBL_DIG): Likewise.
16256         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16257         (DBL_MIN_EXP): Likewise.
16258         (LDBL_MIN_EXP): Likewise.
16259         (FLT_MAX_EXP): Use macro-int-constant.
16260         (DBL_MAX_EXP): Likewise.
16261         (LDBL_MAX_EXP): Likewise.
16262         (FLT_MAX_10_EXP): Likewise.
16263         (DBL_MAX_10_EXP): Likewise.
16264         (LDBL_MAX_10_EXP): Likewise.
16265         (FLT_MAX): Use macro-constant.
16266         (DBL_MAX): Likewise.
16267         (LDBL_MAX): Likewise.
16268         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16269         (DBL_EPSILON): Likewise.
16270         (LDBL_EPSILON): Likewise.
16271         (FLT_MIN): Likewise.
16272         (DBL_MIN): Likewise.
16273         (LDBL_MIN): Likewise.
16274         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16275         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16276         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16277         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16278         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16279         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16280         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16281         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16282         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16283         [ISO11] (FLT_TRUE_MIN): Likewise.
16284         [ISO11] (LDBL_TRUE_MIN): Likewise.
16285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16286         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16287         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16288         (SCHAR_MAX): Likewise.
16289         (UCHAR_MAX): Likewise.
16290         (CHAR_MIN): Likewise.
16291         (CHAR_MAX): Likewise.
16292         (MB_LEN_MAX): Use macro-int-constant.
16293         (SHRT_MIN): Use macro-int-constant.  Specify type.
16294         (SHRT_MAX): Likewise.
16295         (USHRT_MAX): Likewise.
16296         (INT_MAX): Likewise.
16297         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16298         bound negative.
16299         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16300         bound with "U".
16301         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16302         bound with "L".
16303         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16304         bound negative.  Suffix upper bound with "L".
16305         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16306         bound with "UL".
16307         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16308         Specify type.
16309         [C99-based standards] (LLONG_MAX): Likewise.
16310         [C99-based standards] (ULLONG_MAX): Likewise.
16311         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16312         == 0.
16313         [ISO11] (max_align_t): Require type.
16314         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16315
16316         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16317         from $CFLAGS, without defining away __attribute__ calls.
16318         (checknamespace): Use $CFLAGS_namespace.
16319
16320         * conform/conformtest.pl (@keywords): Only include C99 keywords
16321         for standards based on C99 or C11.
16322
16323         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16324         Disable tests.
16325         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16326         UNIX98]: Likewise.
16327
16328         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16329         usability of symbols in #if.
16330
16331         * conform/conformtest.pl: If macro or constant types start
16332         "promoted:", expect the symbol to be of the following type
16333         promoted by the integer promotions.
16334
16335         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16336         in one place.  Also handle "macro-constant".
16337
16338         * conform/conformtest.pl: Only accept expected macro values with
16339         "==".  Parse all "macro" lines in one place.
16340         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16341
16342         * conform/conformtest.pl: Handle braced types on "constant" lines
16343         instead of handling "typed-constant".
16344         * conform/data/signal.h-data: Use "constant" instead of
16345         "typed-constant".
16346
16347         * conform/conformtest.pl: Handle "optional-" at start of lines in
16348         one place rather than duplicating several cases.  Handle each
16349         format of "macro" line with initial "optional-".
16350
16351         * conform/conformtest.pl: Only accept expected constant or
16352         optional-constant values with "==".  Parse all "constant" lines in
16353         one place.  Parse all "optional-constant" lines in one place.
16354         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16355         * conform/data/fmtmsg.h-data: Likewise.
16356         * conform/data/netinet/in.h-data: Likewise.
16357         * conform/data/tar.h-data: Likewise.
16358         * conform/data/limits.h-data: Use "==" form on "constant" and
16359         "optional-constant" lines.
16360
16361         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16362         Use -std=c99 for XOPEN2K.
16363         (@knownproblems): Remove.
16364         (newtoken): Don't check %isknown.
16365
16366         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16367         Do not expect macro.
16368         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16369         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16370         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16371         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16372         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16373         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16374         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16375         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16376         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16377         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16378         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16379         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16380         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16381         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16382         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16383         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16384         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16385         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16386         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16387         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16388         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16389         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16390         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16391         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16392         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16393         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16394         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16395         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16396         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16397         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16398         [XPG3] (acosh): Likewise.
16399         [XPG3] (asinh): Likewise.
16400         [XPG3] (atanh): Likewise.
16401         [XPG3] (cbrt): Likewise.
16402         [XPG3] (expm1): Likewise.
16403         [XPG3] (ilogb): Likewise.
16404         [XPG3] (log1p): Likewise.
16405         [XPG3] (logb): Likewise.
16406         [XPG3] (nextafter): Likewise.
16407         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16408         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16409         [XPG3] (remainder): Likewise.
16410         [XPG3] (rint): Likewise.
16411         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16412         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16413         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16414         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16415         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16416         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16417         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16418         [UNIX98 || XOPEN2K] (scalb): Expect.
16419         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16420         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16421         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16422         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16423         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16424         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16425         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16426         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16427         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16428         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16429         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16430         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16431         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16432         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16433         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16434         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16435         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16436         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16437         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16438         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16439         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16440         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16441         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16442         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16443         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16444         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16445         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16446         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16447         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16448         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16449         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16450         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16451         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16452         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16453         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16454         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16455         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16456         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16457         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16458         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16459         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16460         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16461         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16462         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16463         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16464         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16465         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16466         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16467         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16468         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16469         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16470         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16471         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16472         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16473         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16474         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16475         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16476         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16477         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16478         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16479         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16480         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16481         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16482         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16483         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16484         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16485         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16486         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16487         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16488         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16489         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16490         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16491         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16492         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16493         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16494         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16495         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16496         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16497         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16498         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16499         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16500         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16501         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16502         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16503         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16504         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16505         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16506         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16507         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16508         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16509         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16510         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16511         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16512         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16513         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16514         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16515         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16516         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16517         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16518         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16519         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16520         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16521         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16522         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16523         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16524         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16525         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16526         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16527         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16528         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16529         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16530         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16531         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16532         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16533         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16534         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16535         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16536         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16537         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16538         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16539         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16540         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16541         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16542         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16543         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16544         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16545         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16546         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16547         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16548         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16549         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16550         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16551         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16552         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16553         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16554         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16555         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16556
16557         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16558         _XOPEN_SOURCE_EXTENDED for XPG4.
16559
16560         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16561
16562         * Makeconfig (localtime): Remove variable.
16563         (inst_localtime-file): Likewise.
16564
16565 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16566
16567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16568         Update.
16569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16570         Update.
16571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16572         Update.
16573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16574         Update.
16575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16576         Update.
16577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16578         Update.
16579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16580         Update.
16581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16582         Update.
16583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16584         Update.
16585
16586 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16587
16588         [BZ #2550]
16589         [BZ #2570]
16590         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16591         comparisons to determine direction to adjust input.
16592         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16593         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16594         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16595         Likewise.
16596         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16597         Likewise.
16598         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16599         Likewise.
16600         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16601         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16602         Likewise.
16603         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16604         Likewise.
16605         * math/libm-test.inc (nexttoward_test): Add more tests.
16606
16607 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16608
16609         [BZ #14040]
16610         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16611         in version GLIBC_2.1, not GLIBC_2.0.
16612         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16613         Likewise.
16614
16615 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16616
16617         [BZ #13942]
16618         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16619         (1 - x) * (1 + x).
16620         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16621         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16622         * math/libm-test.inc (acos_test): Add more tests.
16623         (asin_test): Likewise.
16624         * sysdeps/i386/fpu/libm-test-ulps: Update.
16625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16626
16627         [BZ #14034]
16628         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16629         of square root.
16630         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16631         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16632         * math/libm-test.inc (acos_test_tonearest): New function.
16633         (acos_test_towardzero): Likewise.
16634         (acos_test_downward): Likewise.
16635         (acos_test_upward): Likewise.
16636         (asin_test_tonearest): Likewise.
16637         (asin_test_towardzero): Likewise.
16638         (asin_test_downward): Likewise.
16639         (asin_test_upward): Likewise.
16640         (main): Call the new functions.
16641         * sysdeps/i386/fpu/libm-test-ulps: Update.
16642         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16643
16644         [BZ #13884]
16645         [BZ #13924]
16646         * math/e_exp10.c: Include <float.h>.
16647         (__ieee754_exp10): Handle underflow here rather than multiplying
16648         large negative argument by M_LN10.
16649         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16650         of __ieee754_expf.
16651         * math/e_exp10l.c: Include <float.h>.
16652         (__ieee754_exp10l): Handle underflow here rather than multiplying
16653         large negative argument by M_LN10l.
16654         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16655         spurious overflow exception on underflow.
16656
16657 2012-04-29  Marek Polacek  <polacek@redhat.com>
16658
16659         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16660         (__fortify_function): New macro.
16661         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16662         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16663         __extern_always_inline.
16664         * libio/bits/stdio2.h: Likewise.
16665         * libio/bits/stdio.h: Likewise.
16666         * string/string.h: Likewise.
16667         * string/bits/string3.h: Likewise.
16668         * include/stdio.h: Likewise.
16669         * stdlib/bits/stdlib.h: Likewise.
16670         * stdlib/stdlib.h: Likewise.
16671         * rt/bits/mqueue2.h: Likewise.
16672         * rt/mqueue.h: Likewise.
16673         * posix/bits/unistd.h: Likewise.
16674         * posix/unistd.h: Likewise.
16675         * io/bits/poll2.h: Likewise.
16676         * io/bits/fcntl2.h: Likewise.
16677         * io/fcntl.h: Likewise.
16678         * io/sys/poll.h: Likewise.
16679         * misc/bits/syslog.h: Likewise.
16680         * misc/bits/syslog-ldbl.h: Likewise.
16681         * misc/sys/syslog.h: Likewise.
16682         * socket/bits/socket2.h: Likewise.
16683         * socket/sys/socket.h: Likewise.
16684         * debug/tst-chk1.c: Likewise.
16685         * wcsmbs/bits/wchar2.h: Likewise.
16686         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16687         * wcsmbs/wchar.h: Likewise.
16688
16689 2012-04-29  Andreas Jaeger  <aj@suse.de>
16690
16691         * Makerules (tests): Remove enable-check-abi protection.
16692         (check-abi-warn): Remove.
16693         (check-abi-%): Remove check-abi-warn usage.
16694
16695         * configure.in: Remove check-abi configure option.
16696         * configure: Regenerated.
16697         * config.make.in (enable-check-abi): Remove.
16698
16699 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16700
16701         [BZ #14033]
16702         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16703         double functions to double *_finite functions.
16704
16705         [BZ #13941]
16706         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16707         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16708         LDBL_MIN_EXP.
16709         * stdio-common/Makefile (tests): Add tst-sprintf3.
16710         * stdio-common/tst-sprintf3.c: New file.
16711
16712         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16713         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16714
16715 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16716
16717         * conform/conformtest.pl: Remove duplicate typed-constant
16718         handling.
16719
16720 2012-04-28  David S. Miller  <davem@davemloft.net>
16721
16722         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16723         (check-abi-%): Remove AWK script prerequisite and explicit
16724         abilist directory.
16725         (check-abi): Rewrite to just diff the symlist with the abilist.
16726         (config-tls, config-abi-config): Delete, no longer used.
16727         (update-abi-%): Remove AWK script and explicit abilist directory.
16728         (update-abi): Rewrite to simply compare and conditionally copy the
16729         symlist and the sysdep abilist file.  Remove update-abi-config
16730         checks.
16731         * abilist/ld.abilist: Remove.
16732         * abilist/libBrokenLocale.abilist: Remove.
16733         * abilist/libanl.abilist: Remove.
16734         * abilist/libcrypt.abilist: Remove.
16735         * abilist/libdl.abilist: Remove.
16736         * abilist/librt.abilist: Remove.
16737         * abilist/libthread_db.abilist: Remove.
16738         * abilist/libutil.abilist: Remove.
16739         * scripts/extract-abilist.awk: Remove.
16740         * scripts/merge-abilist.awk: Remove.
16741         * sysdeps/generic/libcidn.abilist: New file.
16742         * sysdeps/generic/libnss_compat.abilist: New file.
16743         * sysdeps/generic/libnss_db.abilist: New file.
16744         * sysdeps/generic/libnss_dns.abilist: New file.
16745         * sysdeps/generic/libnss_files.abilist: New file.
16746         * sysdeps/generic/libnss_hesiod.abilist: New file.
16747         * sysdeps/generic/libnss_nis.abilist: New file.
16748         * sysdeps/generic/libnss_nisplus.abilist: New file.
16749         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16750         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16751         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16752         file.
16753         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16754         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16755         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16756         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16757         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16758         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16759         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16760         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16761         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16762         file.
16763         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16764         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16765         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16766         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16767         file.
16768         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16769         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16770         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16771         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16772         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16773         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16774         file.
16775         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16776         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16777         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16778         file.
16779         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16780         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16781         New file.
16782         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16783         New file.
16784         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16785         New file.
16786         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16787         New file.
16788         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16789         New file.
16790         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16791         New file.
16792         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16793         New file.
16794         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16795         New file.
16796         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16797         New file.
16798         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16799         New file.
16800         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16801         New file.
16802         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16803         New file.
16804         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16805         New file.
16806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16807         file.
16808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16809         New file.
16810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16811         New file.
16812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16813         file.
16814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16815         New file.
16816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16817         New file.
16818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16819         file.
16820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16821         New file.
16822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16823         New file.
16824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16825         New file.
16826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16827         New file.
16828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16829         New file.
16830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16831         New file.
16832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16834         file.
16835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16836         New file.
16837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16838         file.
16839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16840         file.
16841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16842         file.
16843         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16844         file.
16845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16846         file.
16847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16848         New file.
16849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16850         file.
16851         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16852         file.
16853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16854         New file.
16855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16856         file.
16857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16858         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16859         file.
16860         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16861         New file.
16862         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16863         file.
16864         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16865         file.
16866         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16867         file.
16868         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16869         file.
16870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16871         file.
16872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16873         New file.
16874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16875         file.
16876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16877         file.
16878         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16879         New file.
16880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16881         file.
16882         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16883         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16884         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16885         file.
16886         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16887         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16888         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16889         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16890         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16891         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16892         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16893         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16894         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16895         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16897         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16898         file.
16899         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16900         New file.
16901         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16902         file.
16903         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16904         file.
16905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16906         file.
16907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16908         file.
16909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16910         file.
16911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16912         New file.
16913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16914         New file.
16915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16916         file.
16917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16918         New file.
16919         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16920         file.
16921         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16922         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16923         file.
16924         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16925         New file.
16926         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16927         file.
16928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16929         file.
16930         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16931         file.
16932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16933         file.
16934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16935         file.
16936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16937         New file.
16938         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16939         New file.
16940         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16941         file.
16942         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16943         New file.
16944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16945         file.
16946
16947 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16948
16949         * conform/conformtest.pl: Fix typo in handling typed-constant from
16950         allow-header.
16951
16952 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16953
16954         * README: Cut down references to pre-2.6 Linux kernels and
16955         Linuxthreads.  Update lists of configurations in libc and ports
16956         and sort alphabetically.  Say "or newer" with Linux kernel version
16957         requirements.
16958
16959         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16960
16961 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16962
16963         [BZ #887]
16964         * math/libm-test.inc (logb_test_downward): New test to expose
16965         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16966         rounding mode.
16967
16968 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16969
16970         [BZ #14027]
16971         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16972         to be done.
16973         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16974         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16975
16976 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16977
16978         * sysdeps/unix/i386/brk.S: Remove file.
16979         * sysdeps/unix/i386/dl-brk.S: Likewise.
16980         * sysdeps/unix/i386/pipe.S: Likewise.
16981         * sysdeps/unix/i386/sigreturn.S: Likewise.
16982         * sysdeps/unix/i386/syscall.S: Likewise.
16983         * sysdeps/unix/i386/vfork.S: Likewise.
16984         * sysdeps/unix/i386/wait.S: Likewise.
16985
16986         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16987         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16988
16989         * configure.in (arm*-none*): Do not allow without
16990         --enable-hacker-mode.
16991         (netbsd*): Remove case setting base_os.
16992         (386bsd*): Likewise.
16993         (freebsd*): Likewise.
16994         (bsdi*): Likewise.
16995         (osf*): Likewise.
16996         (sunos*): Likewise.
16997         (ultrix*): Likewise.
16998         (newsos*): Likewise.
16999         (dynix*): Likewise.
17000         (*bsd*): Likewise.
17001         (sysv*): Likewise.
17002         (isc*): Likewise.
17003         (esix*): Likewise.
17004         (sco*): Likewise.
17005         (minix*): Likewise.
17006         (irix4*): Likewise.
17007         (irix6*): Likewise.
17008         (solaris[2-9]*): Likewise.
17009         (none): Likewise.
17010         * configure: Regenerated.
17011
17012 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17013
17014         [BZ #11521]
17015         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17016         overflow or cancellation in calculating denominator.
17017         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17018         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17019         down expression to avoid unexpected rounding in newer GCCs.
17020         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17021
17022 2012-04-26  David S. Miller  <davem@davemloft.net>
17023
17024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17025         long-double compat symbols.
17026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17039
17040 2012-04-25  David S. Miller  <davem@davemloft.net>
17041
17042         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17043         HWCAP_* values only after the memory barriers have been defined.
17044         (atomic_full_barrier): Define.
17045         (atomic_read_barrier): Define.
17046         (atomic_write_barrier): Define.
17047
17048 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17049
17050         * shlib-versions: Add libgcc_s version information.
17051         * sysdeps/generic/libgcc_s.h: Remove.
17052         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17053         libgcc_s.h.
17054         * sysdeps/gnu/unwind-resume.c: Likewise.
17055         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17056
17057 2012-04-25  David S. Miller  <davem@davemloft.net>
17058
17059         * sysdeps/unix/sparc/brk.S: Delete.
17060         * sysdeps/unix/sparc/dl-brk.S: Delete.
17061         * sysdeps/unix/sparc/pipe.S: Delete.
17062         * sysdeps/unix/sparc/sysdep.S: Delete.
17063         * sysdeps/unix/sparc/sysdep.h: Delete.
17064         * sysdeps/unix/sparc/vfork.S: Delete.
17065         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17066         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17067         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17068         ret_ERRVAL, r0, r1, MOVE): Define.
17069         (JUMPTARGET): Remove.
17070         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17071         sysdeps/unix/sparc/sysdep.h
17072         (ENTRY, END): Remove.
17073         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17074
17075 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17076
17077         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17078         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17079         -DIS_IN_build.
17080
17081         * timezone/README: Update upstream location and email address for
17082         tzcode and tzdata.
17083         * timezone/zdump.c: Update from tzcode 2012b.
17084         * timezone/zic.c: Likewise.
17085
17086         * configure.in (libc_cv_as_needed): Remove test.
17087         * configure: Regenerated.
17088         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17089         conditional definition.
17090         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17091         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17092         * config.make.in (have-as-needed): Remove variable.
17093
17094 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17095             Paul Pluzhnikov  <ppluzhnikov@google.com>
17096
17097         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17098         strings correctly.
17099
17100 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17101
17102         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17103         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17104         * sysdeps/sh/strlen.S: Likewise.
17105
17106 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17107
17108         * sysdeps/unix/fork.S: Remove file.
17109         * sysdeps/unix/i386/fork.S: Likewise.
17110         * sysdeps/unix/sparc/fork.S: Likewise.
17111
17112         * sysdeps/unix/system.c: Remove file.
17113         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17114
17115         * sysdeps/unix/getegid.S: Remove file.
17116         * sysdeps/unix/geteuid.S: Likewise.
17117
17118 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17119
17120         * scripts/check-localplt.awk: New file.
17121         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17122         of diff.
17123         * scripts/data/localplt-generic.data: Add a comment.
17124
17125         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17126         NODE when __dir_mkfile failed.
17127         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17128         Reported by Ludovic Courtès <ludo@gnu.org>.
17129
17130 2012-04-24  Andreas Jaeger  <aj@suse.de>
17131
17132         * Makerules (common-clean): Also remove gen-as-const-headers
17133         files.
17134
17135 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17136
17137         * Makerules (native-compile): Do not change working directory for
17138         build.  Use $(OUTPUT_OPTION) in command.
17139         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17140
17141 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17142
17143         [BZ #13886]
17144         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17145         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17146         * math/libm-test.inc (floor_test): Add more tests.
17147         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17148
17149 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17150
17151         * sysdeps/unix/getdents.c: Remove file.
17152         * sysdeps/unix/sysv/getdents.c: Likewise.
17153         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17154
17155         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17156         sysdeps/unix/mman/syscalls.list.
17157         (mmap): Likewise.
17158         (mprotect): Likewise.
17159         (msync): Likewise.
17160         (munmap): Likewise.
17161         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17162         * sysdeps/unix/mman/syscalls.list: Remove.
17163         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17164
17165         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17166         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17167         * configure: Regenerated.
17168         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17169         $(libgcc_s_suffix).
17170         * config.make.in (libgcc_s_suffix): Remove variable.
17171
17172 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17173
17174         * sysdeps/unix/sysv/gethostname.c: Move to ...
17175         * sysdeps/posix/gethostname.c: ... here.
17176
17177         * sysdeps/unix/execve.S: Remove file.
17178
17179         * sysdeps/unix/_exit.S: Remove file.
17180
17181 2012-04-23  Andreas Jaeger  <aj@suse.de>
17182
17183         [BZ #13739]
17184         * manual/Makefile: Remove make dist support, there's no
17185         need for a stand-alone documentation tar ball.
17186         (TEXI2DVI): Define always, it's not in Makeconfig.
17187         (dist): Removed.
17188         (tar-it): Removed.
17189         (edition): Removed.
17190         (glibc-doc-$(edition).tar): Removed
17191         (%.Z): Removed.
17192         (%.gz): Removed.
17193         (%.uu): Removed.
17194         (ETAGS): Remove, it's in Makeconfig.
17195         (move-if-change): Remove, it's in Makeconfig.
17196
17197 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17198
17199         [BZ #13970]
17200         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17201         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17202         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17203         (strtod_l, strtof_l, strtold_l): Remove __wur.
17204         It is not necessarily an error to ignore strtol's return value.
17205         One can reliably look at the stored endptr to decide whether
17206         the number had valid syntax.
17207
17208 2012-04-21  Andreas Jaeger  <aj@suse.de>
17209
17210         [BZ #13739]
17211         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17212
17213 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17214
17215         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17216         * sysdeps/unix/sysv/Versions: Remove file.
17217
17218 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17219
17220         [BZ #13927]
17221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17222
17223 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17224
17225         [BZ #7064]
17226         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17227         version from __vm86.
17228
17229 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17230
17231         * sysdeps/unix/common/lxstat.c: Remove file.
17232         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17233
17234         * sysdeps/unix/sysv/Makefile: Remove file.
17235
17236         * sysdeps/unix/sysv/direct.h: Remove file.
17237
17238         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17239         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17240         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17241         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17242         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17243         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17244         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17245
17246         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17247
17248         * sysdeps/unix/xmknod.c: Remove file.
17249         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17250
17251         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17252
17253         * sysdeps/unix/sysv/i386/time.S: Remove file.
17254
17255         * sysdeps/unix/fxstat.c: Remove file.
17256         * sysdeps/unix/xstat.c: Likewise.
17257         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17258
17259         * sysdeps/unix/sysv/sigaction.c: Remove file.
17260
17261         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17262         (sysdep_headers): Remove variable.
17263         [termio.h not in sysdep_headers] (generated): Likewise.
17264         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17265         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17266         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17267         * sysdeps/unix/sysv/tcflow.c: Likewise.
17268         * sysdeps/unix/sysv/tcflush.c: Likewise.
17269         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17270         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17271         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17272         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17273         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17274
17275         * sysdeps/unix/siglist.c: Remove file.
17276
17277         * sysdeps/unix/getppid.S: Remove file.
17278
17279         * sysdeps/unix/mkdir.c: Remove file.
17280         * sysdeps/unix/rmdir.c: Likewise.
17281
17282 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17283
17284         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17285         ERR_MAX value.
17286         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17287         errlist-compat value.
17288
17289 2012-04-18  David S. Miller  <davem@davemloft.net>
17290
17291         * sysdeps/generic/memcopy.h (reg_char): Delete.
17292         * debug/strcat_chk.c: Use char, not reg_char.
17293         * debug/strcpy_chk.c: Likewise.
17294         * debug/strncat_chk.c: Likewise.
17295         * debug/strncpy_chk.c: Likewise.
17296         * string/memchr.c: Likewise.
17297         * string/memrchr.c: Likewise.
17298         * string/rawmemchr.c: Likewise.
17299         * string/strcat.c: Likewise.
17300         * string/strchr.c: Likewise.
17301         * string/strchrnul.c: Likewise.
17302         * string/strcmp.c: Likewise.
17303         * string/strcpy.c: Likewise.
17304         * string/strncat.c: Likewise.
17305         * string/strncmp.c: Likewise.
17306         * string/strncpy.c: Likewise.
17307
17308 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17309
17310         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17311         __builtin_memcopy is called when src and dest ranges are known to not
17312         overlap.
17313
17314 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17315
17316         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17317         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17318         fwd_align_merge macro call.
17319         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17320         bwd_align_merge macro call.
17321         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17322
17323 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17324
17325         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17326         bwd_align_merge macros.
17327         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17328         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17329         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17330
17331 2012-04-18  David S. Miller  <davem@davemloft.net>
17332
17333         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17334
17335 2012-04-18  Andreas Jaeger  <aj@suse.de>
17336
17337         [BZ# 6794]
17338         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17339         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17340         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17341
17342         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17343         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17344         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17345
17346         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17347         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17348         Adjust for changed ldbl-128 files.
17349
17350         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17351         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17352         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17353
17354 2012-04-17  David S. Miller  <davem@davemloft.net>
17355
17356         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17357
17358 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17359
17360         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17361         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17362         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17363         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17364         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17365         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17366
17367 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17368
17369         [BZ #6794]
17370         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17371         * math/libm-test.inc: Add ilogb errno and exception tests.
17372         * math/w_ilogb.c: New file: ilogb wrapper.
17373         * math/w_ilogbf.c: New file: ilogbf wrapper.
17374         * math/w_ilogbl.c: New file: ilogbl wrapper.
17375         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17376         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17377         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17378         exception being thrown with 0.0 as argument.
17379         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17380         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17381         exception being thrown with 0.0 as argument.
17382         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17383         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17384         exception being thrown with 0.0 as argument.
17385         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17386         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17387         exception being thrown with 0.0 as argument.
17388         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17389         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17390         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17391         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17392         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17393         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17394         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17395         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17396         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17397
17398 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17399
17400         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17401         with altivec.
17402
17403 2012-04-16  Marek Polacek  <polacek@redhat.com>
17404
17405         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17406
17407 2012-04-16  Marek Polacek  <polacek@redhat.com>
17408
17409         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17410         operands of fdivp instruction.
17411
17412 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17413
17414         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17415         * elf/tst-auditmod3b.c: Likewise.
17416         * elf/tst-auditmod4b.c: Likewise.
17417         * elf/tst-auditmod5b.c: Likewise.
17418         * elf/tst-auditmod6b.c: Likewise.
17419         * elf/tst-auditmod6c.c: Likewise.
17420         * elf/tst-auditmod7b.c: Likewise.
17421         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17422         * sysdeps/x86_64/preconfigure.in: Likewise.
17423         * sysdeps/x86_64/preconfigure: Regenerated.
17424
17425 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17426
17427         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17428         __ILP32__.
17429
17430 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17431
17432         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17433         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17434
17435 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17436
17437         [BZ #13973]
17438         * locale/iso-639.def: Fix gl language name. Spotted by
17439         Yaron Shahrabani.
17440
17441 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17442
17443         [BZ #2074]
17444         * libio/libio.h (__io_write_fn): Update comment.
17445
17446 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17447
17448         [BZ #2074]
17449         * stdio.texi (Hook Functions): The user provided writer function
17450         is not allowed to return -1.
17451
17452 2012-04-11  David S. Miller  <davem@davemloft.net>
17453
17454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17455
17456 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17457
17458         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17459         Add a leading slash to rtkaio.
17460
17461 2012-04-11  Jim Meyering  <meyering@redhat.com>
17462
17463         [BZ #11959]
17464         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17465         It is not necessarily an error to ignore fwrite's return
17466         value.  One can reliably use ferror to test for errors after
17467         the fact.
17468
17469 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17470
17471         * bits/types.h (__snseconds_t): New type.
17472         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17473
17474         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17475         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17476         (__SNSECONDS_T_TYPE): Likewise.
17477         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17478         (__SNSECONDS_T_TYPE): Likewise.
17479         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17480         (__SNSECONDS_T_TYPE): Likewise.
17481
17482 2012-04-10  Andreas Jaeger  <aj@suse.de>
17483
17484         [BZ #2636]
17485         * manual/time.texi (Processor Time): Return type of times is
17486         elapsed real time since an arbitrary point in the past.
17487         (CPU Time): Move CLK_TCK from here...
17488         (Processor Time): ...to here.  Correct description.
17489         * manual/conf.texi (Constants for Sysconf): Correct description of
17490         _SC_CLK_TCK.
17491
17492 2012-04-10  David S. Miller  <davem@davemloft.net>
17493
17494         [BZ #13967]
17495         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17496         where the is a gap between DT_REL(A) and DT_JMPREL.
17497
17498 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17499
17500         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17501         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17502         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17503
17504 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17505
17506         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17507         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17508         (dl_main): Handle --inhibit-cache.
17509         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17510         _dl_inhibit_cache.
17511         * elf/dl-load.c (_dl_map_object): Use it.
17512         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17513
17514 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17515
17516         [BZ #13872]
17517         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17518         (__ieee754_powl): Saturate large exponents rather than testing for
17519         overflow of y*log2(x).
17520         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17521         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17522         exceptions.
17523
17524         [BZ #11521]
17525         * math/s_ctan.c: Include <float.h>.
17526         (__ctan): Avoid internal overflow or cancellation in calculating
17527         denominator.
17528         * math/s_ctanf.c: Likewise.
17529         * math/s_ctanl.c: Likewise.
17530         * math/s_ctanh.c: Likewise.
17531         * math/s_ctanhf.c: Likewise.
17532         * math/s_ctanhl.c: Likewise.
17533         * math/libm-test.inc (ctan_test): Add more tests.
17534         (ctanh_test): Likewise.
17535         * sysdeps/i386/fpu/libm-test-ulps: Update.
17536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17537
17538 2012-04-09  Andreas Jaeger  <aj@suse.de>
17539
17540         [BZ #6894]
17541         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17542         is an optional BSD extension.
17543
17544         [BZ #10254]
17545         * manual/stdio.texi (Opening Streams): Document additional fopen
17546         parameters.
17547
17548 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17549
17550         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17551         %eax without telling the compiler.
17552
17553 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17554
17555         [BZ # 13963]
17556         * manual/install.texi: Use sourceware.org.
17557
17558 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17559
17560         [BZ #13873]
17561         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17562         (__ieee754_pow): Generate overflow and underflow using huge*huge
17563         and tiny*tiny rather than just returning constant infinity or zero
17564         for large exponents.
17565         * math/libm-test.inc (pow_test): Require overflow exceptions for
17566         applicable cases of large exponents.
17567
17568         [BZ #706]
17569         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17570         (__ieee754_pow): Use iterative multiplication algorithm only for
17571         integer exponents with absolute value below 1024.  Check for odd
17572         integer exponents when using algorithm for real exponents.
17573         * math/libm-test.inc (pow_test): Add more tests.
17574         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17575
17576 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17577
17578         [BZ #13705]
17579         * math/libm-test.inc (exp_test): Do not allow overflow exception
17580         on underflow test.
17581
17582 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17583
17584         [BZ #13705]
17585         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17586         instead of __kernel_standard_f.
17587
17588 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17589
17590         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17591         * sysdeps/x86_64/memset_chk.S: Likewise.
17592
17593 2012-04-08  Andreas Jaeger  <aj@suse.de>
17594
17595         [BZ #10153]
17596         * manual/startup.texi (Environment Access): Describe return value
17597         for putenv and setenv.
17598
17599         [BZ #6895]
17600         * manual/filesys.texi (Directory Entries): Add description for
17601         DT_LNK.
17602
17603         [BZ #6890]
17604         * manual/filesys.texi (Directory Entries): Clarify that it's file
17605         system not operating system in the description of DT_UNKNOWN.
17606
17607         [BZ #6578]
17608         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17609
17610 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17611
17612         [BZ #6649]
17613         * manual/llio.texi (Opening and Closing Files): Add cross
17614         reference to explain mode argument.
17615
17616 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17617
17618         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17619         * sysdeps/x86_64/memset_chk.S: Likewise.
17620
17621 2012-04-07  David S. Miller  <davem@davemloft.net>
17622
17623         * elf/elf.h (R_SPARC_WDISP10): Define.
17624         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17625         R_SPARC_SIZE32.
17626         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17627         R_SPARC_SIZE64 and R_SPARC_H34.
17628
17629 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17630
17631         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17632         conditions and remove no longer applicable assertion.
17633
17634 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17635
17636         * bits/byteswap.h: Include <features.h>.
17637         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17638         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17639
17640 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17641
17642         * bits/byteswap.h (__bswap_16): Removed.
17643         Include <bits/byteswap-16.h> to get __bswap_16.
17644         * sysdeps/i386/bits/byteswap.h: Likewise.
17645         * sysdeps/s390/bits/byteswap.h: Likewise.
17646         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17647         * bits/byteswap-16.h: New file.
17648         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17649         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17650         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17651         * string/Makefile (headers): Add bits/byteswap-16.h.
17652
17653 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17654
17655         [BZ #13895]
17656         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17657         extra indirection.
17658         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17659         * nss/tst-nss-static.c: New.
17660
17661 2012-04-06  Robert Millan  <rmh@gnu.org>
17662
17663         [BZ #6486]
17664         * manual/llio.texi (File Position Primitive): lseek
17665         refers to WHENCE when it really means OFFSET.
17666
17667 2012-04-06  Andreas Jaeger  <aj@suse.de>
17668
17669         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17670         strncmp declarations.
17671
17672         * abilist/libc.abilist: Add __poll and __ppoll.
17673
17674 2012-04-05  David S. Miller  <davem@davemloft.net>
17675
17676         * scripts/check-local-headers.sh: Accept a host triplet in the
17677         path matched by the exclude regexp.
17678
17679         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17680         definition.
17681         * sysdeps/powerpc/powerpc32/dl-machine.h
17682         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17683         * sysdeps/s390/s390-32/dl-machine.h
17684         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17685         * sysdeps/sparc/sparc32/dl-machine.h
17686         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17687         * sysdeps/sparc/sparc64/dl-machine.h
17688         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17689
17690         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17691         lazy binding.
17692         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17693         undefined symbol errors.
17694
17695         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17696         DT_NEEDED entries.
17697
17698 2012-04-05  Michael Matz  <matz@suse.de>
17699
17700         [BZ #13592]
17701         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17702
17703 2012-04-05  Andreas Jaeger  <aj@suse.de>
17704
17705         [BZ #13908]
17706         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17707         comment.
17708
17709 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17710
17711         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17712         which ROUND is no valid rounding mode.
17713
17714 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17715
17716         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17717         read again.
17718         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17719
17720 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17721
17722         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17723         an exception using FPU order intentionally.
17724
17725 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17726
17727         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17728         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17729         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17730         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17731
17732 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17733
17734         [BZ #12340]
17735         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17736         EINVAL when BUFLEN is too smal.
17737
17738 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17739
17740         [BZ #13553]
17741         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17742         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17743
17744 2012-04-03  Andreas Jaeger  <aj@suse.de>
17745
17746         [BZ #13938]
17747         * manual/setjmp.texi (System V contexts): Fix sentence.
17748
17749         [BZ #13926]
17750         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17751         New macro for this case.
17752         [!__GNUC__] (__bswap_64): New inline function for this case.
17753         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17754         * bits/byteswap.h: Likewise.
17755         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17756         ull, guard with __GLIBC_HAVE_LONG_LONG.
17757
17758         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17759         __GLIBC_HAVE_LONG_LONG.
17760
17761         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17762         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17763
17764 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17765
17766         [BZ #13691]
17767         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17768         inptr and inend, rather than using last_ch.
17769
17770 2012-04-02  David S. Miller  <davem@davemloft.net>
17771
17772         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17773         * stdio-common/printf-parse.h (read_int): Change return type to
17774         'int', return -1 on INT_MAX overflow.
17775         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17776         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17777         overflows INT_MAX.  Check for overflow of in-format-string precision
17778         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17779         SIZE_MAX not INT_MAX for integer overflow test.
17780         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17781         skip the construct in the format string but do not record anything.
17782         * stdio-common/bug22.c: Adjust to test both width/prevision
17783         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17784         explicitly for proper errno values.
17785
17786 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17787
17788         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17789         CHAR_MAX.
17790         * string/test-strcmp.c [! WIDE]: Likewise.
17791         * time/tst-mktime2.c: Likewise for INT_MAX.
17792         * string/test-string.h: #include <sys/param.h> for MIN.
17793
17794         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17795         * sysdeps/i386/init-first.c (init): Likewise.
17796         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17797         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17798         * sysdeps/sh/init-first.c (init): Likewise.
17799
17800 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17801
17802         * po/ru.po: Update from translation team.
17803         * po/vi.po: Likewise.
17804
17805 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17806
17807         * resolv/nss_dns/dns-host.c: Merge copyright years.
17808
17809 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17810
17811         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17812         Optimize memcpy with prefetch if
17813         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17814         src, dst pointers have unequal 16 byte alignments.
17815
17816 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17817
17818         [BZ #13928]
17819         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17820         from a CNAME entry and return the minimum ttl for the query.
17821         (gaih_getanswer_slice): Likewise.
17822
17823 2012-03-30  Jeff Law  <law@redhat.com>
17824
17825         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17826         due to long keys.
17827         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17828         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17829
17830         * resolv/nss_dns/dns-host.c: Update copyright year.
17831
17832 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17833
17834         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17835         requests to save a system call.  Fix check that all bytes are sent.
17836
17837         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17838         comments for sendmmsg.
17839
17840 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17841
17842         [BZ #13691]
17843         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17844         with only 1 character between 0x0041 and 0x01b0.
17845         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17846         * wcsmbs/tst-mbsnrtowcs.c: New file.
17847
17848 2012-03-29  David S. Miller  <davem@davemloft.net>
17849
17850         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17851         small copies by hand.
17852
17853 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17854
17855         [BZ #13761]
17856         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17857         _nss_compat_initgroups_dyn): Fall back to malloc/free
17858         for large group memberships.
17859
17860 2012-03-28  David S. Miller  <davem@davemloft.net>
17861
17862         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17863         that branches into memcpy.
17864         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17865         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17866         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17867         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17868         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17869         bits.
17870         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17871         implementation too.
17872         * sysdeps/sparc/mempcpy.S: New file.
17873
17874         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17875         the IFUNC routine in the libc case.
17876         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17877
17878         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17879         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17880         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17881         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17882         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17883         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17884         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17885         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17886
17887         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17888         loop to 256 bytes instead of 64 bytes and fix test signedness.
17889
17890         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17891         * sysdeps/sparc/sparc32/Makefile: rather than here...
17892         * sysdeps/sparc/sparc64/Makefile: and here.
17893
17894 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17895
17896         * malloc/mallocbug.c: Avoid warnings about unused variables.
17897
17898 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17899
17900         [BZ #13760]
17901         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17902         in the right place. Discard and retry query if response is
17903         larger than input buffer size.
17904
17905 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17906
17907         [BZ #369]
17908         [BZ #2678]
17909         [BZ #3866]
17910         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17911         x for large integer exponent.
17912         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17913         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17914         sign of result as needed afterwards.
17915         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17916         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17917         result for underflowing pow the same as for overflow.
17918         (__kernel_standard_l): Handle powl overflow and underflow here
17919         rather than calling __kernel_standard.
17920         * math/libm-test.inc (pow_test): Add more tests.
17921
17922         [BZ #3868]
17923         [BZ #13879]
17924         [BZ #13910]
17925         [BZ #13911]
17926         [BZ #13912]
17927         [BZ #13913]
17928         [BZ #13915]
17929         [BZ #13916]
17930         [BZ #13917]
17931         [BZ #13918]
17932         [BZ #13919]
17933         [BZ #13920]
17934         [BZ #13921]
17935         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17936         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17937         (__kernel_standard_l): New function.
17938         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17939         __kernel_standard.
17940         * math/w_acosl.c (__acosl): Likewise.
17941         * math/w_asinl.c (__asinl): Likewise.
17942         * math/w_atan2l.c (__atan2l): Likewise.
17943         * math/w_atanhl.c (__atanhl): Likewise.
17944         * math/w_coshl.c (__coshl): Likewise.
17945         * math/w_exp10l.c (__exp10l): Likewise.
17946         * math/w_exp2l.c (__exp2l): Likewise.
17947         * math/w_fmodl.c (__fmodl): Likewise.
17948         * math/w_hypotl.c (__hypotl): Likewise.
17949         * math/w_j0l.c (__j0l, __y0l): Likewise.
17950         * math/w_j1l.c (__j1l, __y1l): Likewise.
17951         * math/w_jnl.c (__jnl, __ynl): Likewise.
17952         * math/w_lgammal.c (__lgammal): Likewise.
17953         * math/w_log10l.c (__log10l): Likewise.
17954         * math/w_log2l.c (__log2l): Likewise.
17955         * math/w_logl.c (__logl): Likewise.
17956         * math/w_powl.c (__powl): Likewise.
17957         * math/w_remainderl.c (__remainderl): Likewise.
17958         * math/w_scalbl.c (sysv_scalbl): Likewise.
17959         * math/w_sinhl.c (__sinhl): Likewise.
17960         * math/w_sqrtl.c (__sqrtl): Likewise.
17961         * math/w_tgammal.c (__tgammal): Likewise.
17962         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17963         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17964         * math/libm-test.inc (acos_test): Add more tests.
17965         (acosh_test): Likewise.
17966         (asin_test): Likewise.
17967         (atanh_test): Likewise.
17968         (exp_test): Likewise.
17969         (exp10_test): Likewise.
17970         (exp2_test): Likewise.
17971         (expm1_test): Likewise.
17972         (lgamma_test): Likewise.
17973         (log_test): Likewise.
17974         (log10_test): Likewise.
17975         (log1p_test): Likewise.
17976         (log2_test): Likewise.
17977         (pow_test): Do not allow some spurious overflow exceptions.
17978         (sqrt_test): Add more tests.
17979         (tgamma_test): Likewise.
17980         (y0_test): Likewise.
17981         (y1_test): Likewise.
17982         (yn_test): Likewise.
17983
17984 2012-03-27  Anton Blanchard  <anton@samba.org>
17985
17986         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17987         MAP_HUGETLB.
17988         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17989         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17990         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17991
17992 2012-03-27  David S. Miller  <davem@davemloft.net>
17993
17994         * conform/Makefile: Run run-conformtest.sh using $(BASH).
17995
17996         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
17997         have-as-vis3 check.
17998
17999 2012-03-27  Andreas Jaeger  <aj@suse.de>
18000
18001         * sysdeps/x86_64/elf/configure.in: Moved to ...
18002         * sysdeps/x86_64/configure.in: ... here.
18003         * sysdeps/x86_64/elf/start.S: Moved to ...
18004         * sysdeps/x86_64/start.S: ... here.
18005         * sysdeps/x86_64/elf/configure: Delete.
18006
18007         * sysdeps/x86_64/configure.in: Merge contents from
18008         sysdeps/i386/configure.in (without i686 check).
18009
18010         * sysdeps/i386/elf/Versions: Merge into ...
18011         * sysdeps/i386/Versions: ... this.
18012         * sysdeps/i386/elf/Versions: Delete file.
18013         * sysdeps/i386/elf/start.S: Moved to ...
18014         * sysdeps/i386/start.S: ...here.
18015         * sysdeps/i386/elf/configure.in: Merge into...
18016         * sysdeps/i386/configure.in: ...here.
18017         * sysdeps/i386/elf/configure.in: Delete file.
18018         * sysdeps/i386/elf/configure: Delete file.
18019
18020         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18021         * debug/backtracesyms.c: ... here.
18022         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18023         * debug/backtracesymsfd.c: ... here.
18024         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18025         * sysdeps/generic/ifunc-sel.h: ... here.
18026
18027         * sysdeps/unix/i386/start.c: Delete file.
18028         * sysdeps/unix/sparc/start.c: Delete file.
18029         * sysdeps/unix/start.c: Delete file.
18030
18031         * sysdeps/sh/elf/configure.in: Moved to ...
18032         * sysdeps/sh/configure.in: ... here.
18033         * sysdeps/sh/elf/start.S: Moved to ...
18034         * sysdeps/sh/start.S: ... here.
18035         * sysdeps/sh/elf/configure: Delete file.
18036
18037         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18038         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18039         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18040         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18041         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18042         * sysdeps/powerpc/powerpc64/start.S: here.
18043         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18044         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18045         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18046         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18047         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18048
18049         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18050         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18051         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18052         * sysdeps/powerpc/powerpc32/start.S: ... here.
18053         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18054         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18055         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18056
18057         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18058         * sysdeps/powerpc/ifunc-sel.h: ... here.
18059         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18060         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18061
18062         * sysdeps/sparc/elf/configure.in: Moved to ...
18063         * sysdeps/sparc/configure.in: ... here.
18064         * sysdeps/sparc/elf/configure: Delete file.
18065         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18066         * sysdeps/sparc/sparc32/start.S: ... here.
18067         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18068         * sysdeps/sparc/sparc64/start.S: ... here.
18069         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18070         * sysdeps/sparc/sparc32/Makefile: ... this.
18071         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18072         * sysdeps/sparc/sparc64/Makefile: ... this.
18073
18074         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18075         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18076         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18077         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18078         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18079         * sysdeps/s390/s390-32/setjmp.S: ... here.
18080         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18081         * sysdeps/s390/s390-32/configure.in: ... here.
18082         * sysdeps/s390/s390-32/elf/configure: Delete file.
18083         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18084         * sysdeps/s390/s390-32/start.S: ... here.
18085
18086         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18087         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18088         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18089         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18090         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18091         * sysdeps/s390/s390-64/setjmp.S: ... here.
18092         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18093         * sysdeps/s390/s390-64/configure.in: ... here
18094         * sysdeps/s390/s390-64/elf/configure: Delete file.
18095         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18096         * sysdeps/s390/s390-64/start.S: ... here.
18097         * sysdeps/s390/s390-64/elf/configure: Delete.
18098
18099         * configure.in: Remove support for elf directories in sysdeps.
18100
18101         * configure: Regenerated.
18102         * sysdeps/i386/configure: Regenerated.
18103         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18104         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18105         * sysdeps/s390/s390-32/configure: Regenerated.
18106         * sysdeps/s390/s390-64/configure: Regenerated.
18107         * sysdeps/sh/configure: Regenerated.
18108         * sysdeps/sparc/configure: Regenerated.
18109         * sysdeps/x86_64/configure: Regenerated.
18110
18111 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18112
18113         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18114
18115         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18116         denormal result into account.
18117
18118 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18119
18120         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18121         Reported by Allan McRae <allan@archlinux.org>.
18122
18123 2012-03-23  Jeff Law  <law@redhat.com>
18124
18125         * nss/getnssent.c (__nss_getent): Fix typo.
18126
18127 2012-03-23  David S. Miller  <davem@davemloft.net>
18128
18129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18130
18131 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18132
18133         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18134         to pad to uint64_t for each field.
18135         (dl_tls_index): Replace unsigned long with uint64_t.
18136
18137 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18138         Paul Pluzhnikov  <ppluzhnikov@google.com>
18139
18140         [BZ #6528]
18141         * grp/Makefile (otherlibs): Don't set it.
18142         * inet/Makefile (otherlibs): Likewise.
18143         * login/Makefile (otherlibs): Likewise.
18144         * nscd/Makefile (otherlibs): Likewise.
18145         * posix/Makefile (otherlibs): Likewise.
18146         * pwd/Makefile (otherlibs): Likewise.
18147         * rt/Makefile (otherlibs): Likewise.
18148         * sunrpc/Makefile (otherlibs): Likewise.
18149         * nss/Makefile (otherlibs): Likewise.
18150         Add libnss_files to routines and static-only-routines.
18151         ($(objpfx)getent): Remove rule.
18152         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18153         static-only-routines.
18154
18155 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18156
18157         [BZ #13892]
18158         * math/s_cexp.c: Include <float.h>.
18159         (__cexp): Handle exp result overflowing not necessarily
18160         overflowing both real and imaginary parts of result.
18161         * math/s_cexpf.c: Likewise.
18162         * math/s_cexpl.c: Likewise.
18163         * math/libm-test.inc (cexp_test): Add more tests.
18164         * sysdeps/i386/fpu/libm-test-ulps: Update.
18165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18166
18167 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18168
18169         * include/link.h (ELFW): New macro.
18170         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18171         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18172
18173 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18174
18175         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18176         with uint64_t.
18177
18178 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18179
18180         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18181         declaration.
18182         (struct La_x32_retval): Likewise.
18183
18184 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18185
18186         * sysdeps/x86_64/preconfigure.in: New file.
18187         * sysdeps/x86_64/preconfigure: New generated file.
18188
18189 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18190
18191         [BZ #13824]
18192         * math/e_exp2l.c: Include <float.h>.
18193         (__ieee754_exp2l): Handle overflow and underflow cases
18194         separately.  Only pass fractional part of argument to
18195         __ieee754_expl.
18196         * math/libm-test.inc (exp2_test): Add more tests.
18197
18198         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18199         negating x to take absolute value.
18200         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18201         Likewise.
18202         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18203         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18204         Likewise.
18205         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18206         computing low part if x was negated.
18207         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18208
18209 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18210
18211         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18212         la_x32_gnu_pltexit.
18213         (pltexit): Cast int_retval to ptrdiff_t.
18214         * elf/tst-auditmod3b.c: Likewise.
18215         * elf/tst-auditmod4b.c: Likewise.
18216         * elf/tst-auditmod5b.c: Likewise.
18217         * elf/tst-auditmod6b.c: Likewise.
18218         * elf/tst-auditmod6c.c: Likewise.
18219         * elf/tst-auditmod7b.c: Likewise.
18220
18221         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18222         and x32_gnu_pltexit.
18223
18224         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18225         __ELF_NATIVE_CLASS.
18226         (La_x32_regs): New macro.
18227         (La_x32_retval): Likewise.
18228         (la_x32_gnu_pltenter): New function prototype.
18229         (la_x32_gnu_pltexit): Likewise.
18230
18231 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18232
18233         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18234         exponent.
18235
18236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18237
18238         * configure.in (libc_cv_cc_nofma): Check for option to disable
18239         generation of FMA instructions.
18240         * configure: Regenerate.
18241         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18242         * sysdeps/ieee754/dbl-64/Makefile: New file.
18243         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18244         Remove brandred-fma4.
18245         (CFLAGS-brandred-fma4.c): Remove.
18246         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18247         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18248         define.
18249         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18250         define.
18251
18252 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18253
18254         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18255         LLONG_MAX != LONG_MAX.
18256         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18257         (_fitoa_word): Likewise.
18258         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18259         LLONG_MAX != LONG_MAX.
18260         * stdio-common/_itowa.h: Include <_itoa.h>.
18261         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18262         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18263         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18264         only if not defined.
18265         (_ITOA_WORD_TYPE): Likewise.
18266         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18267         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18268
18269 2012-03-21  David S. Miller  <davem@davemloft.net>
18270
18271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18272
18273 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18274
18275         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18276         of x86_64 when setting libc_cv_slibdir, libdir and
18277         libc_cv_localedir.
18278         * sysdeps/unix/sysv/linux/configure: Regenerated.
18279
18280 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18281
18282         * manual/lang.texi (Old Varargs): Remove section.
18283         (How Variadic): Update menu.
18284         (va_start): Do not mention varargs.h.
18285
18286 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18287             Joseph Myers  <joseph@codesourcery.com>
18288
18289         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18290         link test.
18291         * configure: Regenerated.
18292
18293 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18294
18295         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18296         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18297         conformtest.pl
18298
18299 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18300
18301         * NOTES: Remove.
18302         * Makefile (files-for-dist): Remove NOTES.
18303         (NOTES): Remove rule.
18304         * README: Don't refer to NOTES.
18305         * manual/creature.texi: Don't include macros.texi.
18306         * manual/intro.texi (creature.texi): Remove comment referring to
18307         NOTES.
18308
18309         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18310         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18311         * configure: Regenerated.
18312         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18313         LIBC_TRY_CC_OPTION.
18314         (libc_cv_as_i686): Likewise.
18315         (libc_cv_cc_avx): Likewise.
18316         (libc_cv_cc_sse2avx): Likewise.
18317         (libc_cv_cc_fma4): Likewise.
18318         (libc_cv_cc_novzeroupper): Likewise.
18319         * sysdeps/i386/configure: Regenerated.
18320
18321         [BZ #13883]
18322         * sysdeps/i386/fpu/s_cexp.S: Remove.
18323         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18324         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18325         * math/libm-test.inc (cexp_test): Add more tests.
18326         * sysdeps/i386/fpu/libm-test-ulps: Update.
18327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18328
18329 2012-03-21  Allan McRae  <allan@archlinux.org>
18330
18331         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18332
18333 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18334
18335         [BZ #13871]
18336         * math/w_exp2.c: Do not include <float.h>.
18337         (o_threshold, u_threshold): Remove.
18338         (__exp2): Calculate result before checking finiteness and calling
18339         __kernel_standard.
18340         * math/w_exp2f.c: Likewise.
18341         * math/w_exp2l.c: Likewise.
18342         * math/libm-test.inc (exp2_test): Require overflow exception for
18343         1e6 input.
18344
18345         [BZ #3866]
18346         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18347         range of signed 64-bit integers before using fistpll.  Remove
18348         checks for whether integers fit in mantissa bits.
18349         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18350         the range of signed 32-bit integers before using fistpl.  Remove
18351         checks for whether integers fit in mantissa bits.
18352         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18353         (__ieee754_powl): Test for y outside the range of signed 64-bit
18354         integers before using fistpll.  Reduce 64-bit values to 63-bit
18355         ones as needed.
18356         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18357         divide-by-zero is raised for zero to large negative powers.
18358         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18359         (__ieee754_powl): Test for y outside the range of signed 64-bit
18360         integers before using fistpll.  Reduce 64-bit values to 63-bit
18361         ones as needed.
18362         * math/libm-test.inc (pow_test): Add more tests.
18363
18364 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18365
18366         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18367         <stdio-common/_itoa.h>.
18368         * debug/segfault.c: Likewise.
18369         * elf/dl-cache.c: Likewise.
18370         * elf/dl-minimal.c: Likewise.
18371         * elf/dl-misc.c: Likewise.
18372         * elf/dl-sysdep.c: Likewise.
18373         * elf/dl-version.c: Likewise.
18374         * elf/rtld.c: Likewise.
18375         * hurd/hurdsock.c: Likewise.
18376         * hurd/lookup-retry.c: Likewise.
18377         * malloc/malloc.c: Likewise.
18378         * malloc/mtrace.c: Likewise.
18379         * nscd/nscd_getgr_r.c: Likewise.
18380         * nscd/nscd_getpw_r.c: Likewise.
18381         * nscd/nscd_getserv_r.c: Likewise.
18382         * posix/getopt_init.c: Likewise.
18383         * posix/wordexp.c: Likewise.
18384         * stdio-common/_itoa.c: Likewise.
18385         * stdio-common/printf_fphex.c: Likewise.
18386         * stdio-common/vfprintf.c: Likewise.
18387         * string/_strerror.c: Likewise.
18388         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18389         * sysdeps/i386/i686/hp-timing.h: Likewise.
18390         * sysdeps/mach/_strerror.c: Likewise.
18391         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18392         * sysdeps/mach/hurd/sethostid.c: Likewise.
18393         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18394         * sysdeps/mach/xpg-strerror.c: Likewise.
18395         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18396         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18397         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18398         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18399         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18400         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18401         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18402         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18403         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18404         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18405         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18406         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18407         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18408         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18409         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18410         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18411         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18412         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18413         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18414         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18415         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18416
18417         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18418
18419         * stdio-common/_itoa.h: Moved to ...
18420         * sysdeps/generic/_itoa.h: Here.
18421
18422         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18423
18424         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18425         instead of "_itoa.h" and "_itowa.h".
18426         * stdio-common/vfprintf.: Likewise.
18427
18428 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18429
18430         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18431         <bits/wordsize.h>.
18432         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18433         (__signbit): Likwise.
18434         (llrintf): Likwise.
18435         (llrint): Likwise.
18436
18437 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18438
18439         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18440         __WORDSIZE != 64.
18441
18442 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18443
18444         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18445         OVERFLOW_EXCEPTION_OK.
18446         * math/libm-test.inc ("Philosophy"): Update comment about
18447         exception testing.
18448         (OVERFLOW_EXCEPTION): Define.
18449         (OVERFLOW_EXCEPTION_OK): Likewise.
18450         (INVALID_EXCEPTION_OK): Renumber.
18451         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18452         (IGNORE_ZERO_INF_SIGN): Likewise.
18453         (test_exceptions): Handle FE_OVERFLOW.
18454         (exp10_test): Expect overflow exceptions.
18455         (exp2_test): Likewise.
18456         (expm1_test): Likewise.
18457         (nextafter_test): Likewise.
18458         (pow_test): Likewise.
18459         (scalbn_test): Likewise.
18460         (scalbln_test): Likewise.
18461
18462 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18463
18464         * sysdeps/x86_64/bits/atomic.h
18465         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18466         64bit integer.
18467         (atomic_exchange_acq): Likewise.
18468         (__arch_exchange_and_add_body): Likewise.
18469         (__arch_add_body): Likewise.
18470         (atomic_add_negative): Likewise.
18471         (atomic_add_zero): Likewise.
18472
18473 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18474
18475         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18476         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18477
18478 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18479
18480         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18481         Check __x86_64__ instead of __WORDSIZE.
18482
18483 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18484
18485         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18486
18487 2012-03-19  David S. Miller  <davem@davemloft.net>
18488
18489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18490
18491         * sysdeps/sparc/fpu/fenv_private.h: New file.
18492         * sysdeps/sparc/fpu/math_private.h: Use it.
18493         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18494         Remove.
18495         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18496         (libc_feholdexcept_setroundl): Remove.
18497         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18498         Remove.
18499         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18500         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18501
18502 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18503
18504         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18505         int64_t instead of long int.
18506         (INSERT_WORDS64): Likwise.
18507
18508 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18509
18510         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18511         _Unwind_GetCFA return to _Unwind_Ptr first.
18512
18513 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18514
18515         [BZ #13629]
18516         * math/s_clog.c: Include <float.h>.
18517         (__clog): Scale large or subnormal inputs.
18518         * math/s_clogf.c: Likewise.
18519         * math/s_clogl.c: Likewise.
18520         * math/s_clog10.c: Include <float.h>.
18521         (M_LOG10_2): Define.
18522         (__clog10): Scale large or subnormal inputs.
18523         * math/s_clog10f.c: Likewise.
18524         * math/s_clog10l.c: Likewise.
18525         * math/libm-test.inc (clog_test): Add more tests.
18526         (clog10_test): Likewise.
18527         * sysdeps/i386/fpu/libm-test-ulps: Update.
18528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18529
18530         [BZ #11451]
18531         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18532         x and y.
18533         * math/libm-test.inc (atan2_test): Add another test.
18534
18535         * Makerules (common-objdir-compile): Remove.
18536         * sysdeps/unix/Makefile (config-generated): Do not add
18537         $(unix-generated) to variable.
18538         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18539         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18540         Remove rule.
18541         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18542         Likewise.
18543         [generic bits/local_lim.h] (before-compile): Do not append to
18544         variable.
18545         [generic bits/local_lim.h] (common-generated): Likewise.
18546         [generic sys/param.h] (before-compile): Do not append to variable.
18547         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18548         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18549         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18550         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18551         include.
18552         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18553         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18554         [generic sys/param.h] ($(addprefix
18555         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18556         [generic sys/param.h] (common-generated): Do not append to
18557         variable.
18558         [generic sys/param.h] (sysdep_headers): Likewise.
18559         [generic bits/errno.h] (before-compile): Do not append to
18560         variable.
18561         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18562         rule.
18563         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18564         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18565         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18566         [generic bits/errno.h] (common-generated): Do not append to
18567         variable.
18568         [generic bits/ioctls.h] (before-compile): Do not append to
18569         variable.
18570         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18571         rule.
18572         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18573         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18574         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18575         rule.
18576         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18577         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18578         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18579         [generic bits/ioctls.h] (common-generated): Do not append to
18580         variable.
18581         [generic sys/syscall.h] (syscall.h): Remove variable.
18582         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18583         rule.
18584         [generic sys/syscall.h] (before-compile): Do not append to
18585         variable.
18586         [generic sys/syscall.h] (common-generated): Likewise.
18587         * sysdeps/unix/errnos-tmpl.c: Remove file.
18588         * sysdeps/unix/errnos.awk: Likewise.
18589         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18590         * sysdeps/unix/ioctls.awk: Likewise.
18591         * sysdeps/unix/mk-local_lim.c: Likewise.
18592         * sysdeps/unix/snarf-ioctls: Likewise.
18593
18594 2012-03-19  Richard Henderson  <rth@twiddle.net>
18595
18596         * sysdeps/i386/fpu/fenv_private.h: New file.
18597         * sysdeps/i386/fpu/math_private.h: Use it.
18598         (math_opt_barrier, math_force_eval): Remove.
18599         (libc_feholdexcept_setround_53bit): Remove.
18600         (libc_feupdateenv_53bit): Remove.
18601         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18602         (math_opt_barrier, math_force_eval): Remove.
18603         (libc_feholdexcept): Remove.
18604         (libc_feholdexcept_setround): Remove.
18605         (libc_fetestexcept, libc_fesetenv): Remove.
18606         (libc_feupdateenv_test): Remove.
18607         (libc_feupdateenv, libc_feholdsetround): Remove.
18608         (libc_feresetround): Remove.
18609
18610         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18611         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18612
18613         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18614         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18615         (libc_feupdateenv_testl): New.
18616         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18617         (libc_feupdateenv_testf): New.
18618         (libc_feupdateenv): Use libc_feupdateenv_test.
18619         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18620         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18621
18622         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18623         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18624         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18625         (libc_feresetround_noex): New.
18626         (libc_feresetround_noexf): New.
18627         (libc_feresetround_noexl): New.
18628         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18629         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18630         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18631         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18632         SET_RESTORE_ROUND.
18633         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18634         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18635         (__cos): Likewise.
18636         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18637         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18638         SET_RESTORE_ROUND_NOEX.
18639         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18640         SET_RESTORE_ROUND_NOEXF.
18641         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18642         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18643         (libc_feholdsetroundf): New.
18644         (libc_feresetround, libc_feresetroundf): New.
18645
18646         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18647         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18648         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18649
18650         * sysdeps/generic/math_private.h: Include <fenv.h>.
18651         (default_libc_feholdexcept): New.
18652         (default_libc_feholdexcept_setround): New.
18653         (default_libc_fesetenv, default_libc_feupdateenv): New.
18654         (libc_feholdexcept): Only define if undefined.
18655         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18656         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18657         (libc_feholdexcept_setroundl): Likewise.
18658         (libc_feholdexcept_setround_53bit): Likewise.
18659         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18660         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18661         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18662         (libc_feupdateenv_53bit): Likewise.
18663         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18664         (libc_feholdexcept): Convert from macro to inline function.
18665         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18666         (libc_fesetenv, libc_feupdateenv): Likewise.
18667
18668         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18669         not previously defined.
18670         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18671         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18672         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18673         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18674         * sysdeps/ieee754/flt-32/math_private.h: New file.
18675         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18676         math_private.h below SET_FLOAT_WORD.
18677         (__isnan, __isinf_ns, __finite): Remove.
18678         (__isnanf, __isinf_nsf, __finitef): Remove.
18679
18680 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18681
18682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18683
18684 2012-03-17  David S. Miller  <davem@davemloft.net>
18685
18686         [BZ #6471]
18687         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18688         for 2.16.
18689
18690 2012-03-16  David S. Miller  <davem@davemloft.net>
18691
18692         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18693         warnings.
18694
18695         [BZ #6471]
18696         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18697         properly.
18698         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18699         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18700         sysdep_routines when subdir is sysvipc.
18701         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18702         __getshmlba helper.
18703
18704         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18705
18706 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18707
18708         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18709         [__LP64__].
18710
18711 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18712
18713         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18714         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18715         (__lround): Renamed to ...
18716         (__llround): This.  Replace long int with long long int.
18717         Define lround functions as aliases of llround functions.
18718         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18719
18720 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18721
18722         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18723         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18724         adresses to uintptr_t.  Replace "long int" and "unsigned long
18725         int" with "greg_t" on va_arg.
18726
18727 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18728
18729         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18730         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18731
18732         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18733         Move e_machine check before EI_CLASS check.  Handle x32
18734         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18735         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18736         SKIP_EM_IA_64 and include
18737         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18738
18739         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18740         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18741         (add_system_dir): New macro.
18742
18743         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18744         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18745
18746 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18747
18748         [BZ #2551]
18749         [BZ #2552]
18750         [BZ #2553]
18751         [BZ #2554]
18752         [BZ #2562]
18753         [BZ #2563]
18754         [BZ #2565]
18755         [BZ #2566]
18756         [BZ #2576]
18757         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18758         (y0): Likewise.
18759         * math/w_j0f.c (j0f): Likewise.
18760         (y0f): Likewise.
18761         * math/w_j0l.c (__j0l): Likewise.
18762         (__y0l): Likewise.
18763         * math/w_j1.c (j1): Likewise.
18764         (y1): Likewise.
18765         * math/w_j1f.c (j1f): Likewise.
18766         (y1f): Likewise.
18767         * math/w_j1l.c (__j1l): Likewise.
18768         (__y1l): Likewise.
18769         * math/w_jn.c (jn): Likewise.
18770         (yn): Likewise.
18771         * math/w_jnf.c (jnf): Likewise.
18772         (ynf): Likewise.
18773         * math/w_jnl.c (__jnl): Likewise.
18774         (__ynl): Likewise.
18775         * math/libm-test.inc (j0_test): Add more tests.
18776         (j1_test): Likewise.
18777         (jn_test): Likewise.  Add trailing semicolon to existing test.
18778         (y0_test): Likewise.
18779         (y1_test): Likewise.
18780         * sysdeps/i386/fpu/libm-test-ulps: Update.
18781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18782
18783         [BZ #13851]
18784         [BZ #13854]
18785         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18786         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18787         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18788         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18789         (__tanl): Set errno for infinite argument.
18790         * sysdeps/i386/fpu/mptan.c: Remove.
18791         * sysdeps/i386/fpu/s_tan.S: Likewise.
18792         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18793         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18794         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18795         * math/libm-test.inc (tan_test): Add more tests and enable more
18796         tests for double and long double.
18797         * sysdeps/i386/fpu/libm-test-ulps: Update.
18798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18799
18800 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18801
18802         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18803         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18804
18805 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18806
18807         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18808         * configure.in: Use it for both main tree and add-ons.
18809         * configure: Regenerated.
18810
18811 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18812
18813         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18814
18815 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18816
18817         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18818         in comment.
18819
18820         [BZ #13851]
18821         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18822         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18823         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18824         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18825         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18826         infinite argument.
18827         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18828         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18829         != 0 for prec == 2.
18830         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18831         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18832         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18833         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18834         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18835         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18836         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18837         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18838         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18839         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18840         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18841         * math/libm-test.inc (cos_test): Add more tests and enable more
18842         tests for long double.
18843         (sin_test): Likewise.
18844         (sincos_test): Likewise.
18845         * sysdeps/i386/fpu/libm-test-ulps: Update.
18846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18847
18848 2012-03-16  David S. Miller  <davem@davemloft.net>
18849
18850         * sysdeps/sparc/fpu/math_private.h: New file.
18851
18852 2012-03-15  David S. Miller  <davem@davemloft.net>
18853
18854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18855         file.
18856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18858         file.
18859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18860         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18861         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18864         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18865         sysdep routines.
18866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18867
18868         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18869         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18870
18871         * sysdeps/sparc/sparc-ifunc.h: New file.
18872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18873         sparc-ifunc.h
18874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18876         Likewise.
18877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18878         Likewise.
18879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18883         Likewise.
18884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18889         Likewise.
18890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18891         Likewise.
18892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18896         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18897         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18898         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18899         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18900         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18901         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18906         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18907         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18908         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18909         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18910         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18911         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18912         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18913         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18914         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18915         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18916
18917 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18918
18919         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18920         scaling.
18921         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18922
18923 2012-03-15  Andreas Jaeger  <aj@suse.de>
18924
18925         [BZ #13852]
18926         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18927         ieee754/flt-32 implementation for sin, cos and sincos.
18928         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18929         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18930         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18931         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18932         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18933         ieee754/flt-32 implementation for tan.
18934
18935         * math/libm-test.inc (cos_test): Enable some large input tests for
18936         float as well
18937         (sin_test): Likewise.
18938         (sincos_test): Likewise.
18939         (tan_test): Add tests for large input.
18940
18941         * sysdeps/i386/fpu/libm-test-ulps: Update.
18942
18943 2012-03-15  Andreas Jaeger  <aj@suse.de>
18944
18945         [BZ #13658]
18946         * math/libm-test.inc (cos_test): Add more test cases.
18947         (sin_test): Likewise.
18948         (sincos_test): Likewise.
18949
18950 2012-03-15  Andreas Jaeger  <aj@suse.de>
18951
18952         [BZ #13837]
18953         * math/libm-test.inc (cos_test): Add a test case for large input
18954         value.
18955         (sin_test): Likewise.
18956         (sincos_test): Likewise.
18957
18958 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18959         Joseph Myers  <joseph@codesourcery.com>
18960
18961         [BZ #13658]
18962         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18963         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18964         * sysdeps/i386/fpu/branred.c: Likewise.
18965         * sysdeps/i386/fpu/dosincos.c: Likewise.
18966         * sysdeps/i386/fpu/mpa.c: Likewise.
18967         * sysdeps/i386/fpu/s_cos.S: Likewise.
18968         * sysdeps/i386/fpu/s_sin.S: Likewise.
18969         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18970         * sysdeps/i386/fpu/sincos32.c: Likewise.
18971
18972         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18973         Define.
18974         (libc_feupdateenv_53bit): Define.
18975         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18976         Define.
18977         (libc_feupdateenv_53bit): Define.
18978
18979         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18980         53 bit (without extend i386 double precision).
18981
18982         * math/libm-test.inc (sincos_test): Add tests for large input.
18983         (sin): Likewise.
18984         (cos): Likewise.
18985
18986         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18987
18988 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18989
18990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18991
18992 2012-03-15  David S. Miller  <davem@davemloft.net>
18993
18994         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
18995         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
18996         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
18997         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
18998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
18999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19002         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19003         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19004         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19005         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19006         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19010         file.
19011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19013         file.
19014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19016         file.
19017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19019         file.
19020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19021         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19022         fmin/fmax sysdep routines.
19023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19024
19025 2012-03-14  David S. Miller  <davem@davemloft.net>
19026
19027         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19028         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19029         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19030         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19031         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19032         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19033         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19034         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19035         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19036         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19037         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19038         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19039         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19040         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19041         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19042         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19043         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19044         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19045         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19046         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19047         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19048         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19049         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19050         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19051         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19052         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19053         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19054         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19055         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19056         routines.
19057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19058         file.
19059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19061         file.
19062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19064         file.
19065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19067         file.
19068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19070         file.
19071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19073         file.
19074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19075         file.
19076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19077         file.
19078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19079         file.
19080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19081         New file.
19082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19083         file.
19084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19085         file.
19086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19088         file.
19089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19091         file.
19092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19094         file.
19095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19097         VIS3 routines.
19098
19099         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19100         New file.
19101
19102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19103
19104         * sysdeps/sparc/configure.in: New file.
19105         * sysdeps/sparc/configure: Generate.
19106         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19107         * configure: Regenerate.
19108         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19109         * config.make.in (have-as-vis3): New.
19110         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19111         available use -Av9d instead of -Av9a.
19112         * sysdeps/sparc/sparc64/Makefile: Likewise.
19113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19115         New file.
19116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19117         file.
19118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19119         New file.
19120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19121         file.
19122         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19123         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19124         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19125         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19126         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19127
19128         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19129         fzeros/fnegs to load 0x80000000 into a float register instead of
19130         using the stack.
19131         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19132
19133 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19134
19135         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19136         bits/syscall.h.
19137         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19138         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19139         ($(inst_includedir)/bits/syscall.h): Remove rule.
19140         ($(objpfx)bits/syscall.d): Include instead of
19141         $(objpfx)syscall-list.d.
19142         (generated): Change syscall-list.h and syscall-list.d to
19143         bits/syscall.h and bits/syscall.d.
19144
19145 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19146
19147         [BZ #13846]
19148         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19149
19150 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19151
19152         [BZ #13841]
19153         * math/s_csqrt.c: Include <float.h>.
19154         (__csqrt): Scale large or subnormal inputs.
19155         * math/s_csqrtf.c: Likewise.
19156         * math/s_csqrtl.c: Likewise.
19157         * math/libm-test.inc (csqrt_test): Add more tests.
19158         * sysdeps/i386/fpu/libm-test-ulps: Update.
19159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19160
19161         [BZ #13840]
19162         * math/libm-test.inc (hypot_test): Add more tests.
19163
19164 2012-03-13  David S. Miller  <davem@davemloft.net>
19165
19166         [BZ #13840]
19167         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19168         double-precision for the calculation instead of scaling.
19169
19170 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19171
19172         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19173         manipulate bits before adding and subtracting TWO52[sx].
19174         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19175         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19176         Likewise.
19177         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19178
19179 2012-03-13  David S. Miller  <davem@davemloft.net>
19180
19181         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19182         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19183         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19184         rtld-global-offsets.h
19185         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19186
19187         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19188         large parameters.
19189
19190         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19191
19192         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19193         'err' in the ifdef scope in which it is actually used.
19194
19195         * nss/nss_db/db-init.c: Include string.h
19196
19197 2012-03-12  David S. Miller  <davem@davemloft.net>
19198
19199         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19200         masking out of the most significant byte of random value used.
19201         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19202         Fix coding style in previous change.
19203
19204         * sysdeps/unix/sysv/linux/kernel-features.h
19205         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19206         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19207         expression.
19208         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19209         later.
19210
19211 2012-03-11  David S. Miller  <davem@davemloft.net>
19212
19213         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19214         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19215         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19216         for 'resultvar' otherwise things get truncated on 64-bit.
19217
19218         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19219         Fix masking out of the most significant byte of random value used.
19220
19221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19222
19223 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19224
19225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19226
19227 2012-03-09  David S. Miller  <davem@davemloft.net>
19228
19229         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19230         variables with appropriate CPP guards.
19231         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19232         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19233         on resulting framesize and the management of the outregs buffer for pltexit.
19234         Preserve floating point return values across _dl_call_pltexit call.
19235         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19236         framesize and the management of the outregs buffer for pltexit.
19237         Preserve floating point return values across _dl_call_pltexit
19238         call.
19239         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19240         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19241         (print_exit): Fix format string for return register value.
19242
19243 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19244
19245         * sunrpc/Makefile (others): Add rpcgen.
19246         ($(objpfx)rpcgen): Remove special build rule and dependency on
19247         libc.
19248         * sunrpc/rpcgen.c: New file.
19249
19250 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19251
19252         [BZ #13673]
19253         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19254         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19255         * sysdeps/i386/crti.S: Likewise.
19256         * sysdeps/i386/crtn.S: Likewise.
19257         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19258         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19259         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19260         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19261         * sysdeps/sh/crti.S: Likewise.
19262         * sysdeps/sh/crtn.S: Likewise.
19263         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19264
19265         [BZ #13673]
19266         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19267         with URL.
19268         * locale/programs/locfile-kw.gperf: Likewise.
19269         * locale/programs/charmap-kw.h: Regenerated.
19270         * locale/programs/locfile-kw.h: Likewise.
19271
19272         [BZ #13673]
19273         * intl/plural.y: Replace FSF snail mail address with URL.
19274         * intl/plural.c: Regenerated.
19275
19276 2012-03-09  Richard Henderson  <rth@twiddle.net>
19277
19278         * include/math_private.h: Remove file.
19279         * math/math_private.h: Move file ...
19280         * sysdeps/generic/math_private.h: ... here.
19281
19282         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19283         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19284         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19285
19286         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19287         and <math_private.h>.
19288         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19289         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19290         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19291         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19292         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19293         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19294         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19295         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19296         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19297         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19298         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19299         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19300         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19301         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19302         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19303         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19304         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19305         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19306         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19307         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19308         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19309         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19310         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19311         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19312         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19313         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19314         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19315         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19317         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19318         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19319         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19320         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19321         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19322         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19323         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19324         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19325         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19326         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19327         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19328         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19329         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19330         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19331         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19332         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19333         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19334         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19335         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19336         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19337         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19338         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19339         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19340         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19341         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19342         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19343         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19344         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19345         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19346         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19347         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19348         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19349         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19350         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19351         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19352         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19353         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19354         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19355         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19356         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19357         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19358         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19359         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19360         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19361         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19362         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19363         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19364         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19365         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19366         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19367         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19368         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19369         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19370         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19371         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19372         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19374         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19375         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19376         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19377         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19378         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19379         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19380         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19381         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19382         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19383         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19384         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19385         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19386         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19387         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19388         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19389         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19390         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19391         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19392         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19393         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19394         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19395         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19396         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19397         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19398         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19399         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19400         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19401         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19402         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19403         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19404         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19405         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19406         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19407         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19408         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19409         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19410         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19411         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19412         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19413         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19414         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19415         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19416         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19417         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19418         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19419         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19420         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19421         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19422         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19423         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19424         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19425         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19426         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19427         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19428         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19429         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19430         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19431         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19432         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19433         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19434         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19435         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19436         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19437         * sysdeps/ieee754/k_standard.c: Likewise.
19438         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19439         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19440         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19441         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19442         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19443         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19444         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19445         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19446         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19447         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19448         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19449         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19450         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19451         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19452         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19453         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19454         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19455         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19456         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19457         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19458         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19459         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19460         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19461         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19462         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19463         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19464         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19465         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19466         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19467         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19468         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19469         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19470         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19471         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19472         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19473         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19474         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19475         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19476         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19477         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19478         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19479         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19480         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19481         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19482         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19483         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19484         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19485         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19486         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19487         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19488         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19489         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19490         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19491         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19492         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19493         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19494         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19495         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19496         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19497         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19498         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19499         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19500         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19501         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19502         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19503         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19504         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19505         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19506         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19507         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19508         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19509         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19510         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19511         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19512         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19513         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19514         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19515         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19516         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19517         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19518         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19519         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19520         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19521         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19522         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19523         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19524         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19525         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19526         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19527         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19528         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19529         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19530         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19531         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19533         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19534         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19535         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19536         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19537         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19538         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19539         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19540         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19541         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19542         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19543         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19544         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19545         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19546         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19547         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19548         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19549         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19550         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19551         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19552         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19553         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19554         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19555         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19556         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19557         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19558         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19559         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19560         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19561         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19562         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19563         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19564         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19565         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19566         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19567         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19568         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19569         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19570         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19571         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19572         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19573         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19574         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19575         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19576         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19577         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19578         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19579         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19580         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19581         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19582         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19583         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19584         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19585         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19586         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19587         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19588         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19589         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19590         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19591         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19592         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19593         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19594         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19595         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19596         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19597         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19598         * sysdeps/ieee754/s_lib_version.c: Likewise.
19599         * sysdeps/ieee754/s_matherr.c: Likewise.
19600         * sysdeps/ieee754/s_signgam.c: Likewise.
19601         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19602         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19603         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19604         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19605         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19606         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19607         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19608         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19609         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19610         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19611         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19612         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19613         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19614         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19615         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19616         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19617         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19618         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19619         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19620         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19621         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19622
19623 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19624
19625         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19626         * sunrpc/rpc_main.c: Likewise.
19627         * sunrpc/rpc_svcout.c: Likewise.
19628
19629 2012-03-09  David S. Miller  <davem@davemloft.net>
19630
19631         * include/math_private.h: New file.
19632
19633 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19634
19635         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19636         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19637         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19638         from <bits/socket_type.h>.
19639         (enum __socket_type): Don't define here.
19640         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19641         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19642         bits/socket_type.h.
19643
19644         [BZ #13566]
19645         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19646         checking __USE_GNU.
19647
19648         * Makerules ($(inst_includedir)/%.h): New rule.
19649         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19650         (install-others): Remove variable setting.
19651         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19652
19653 2012-03-08  Richard Henderson  <rth@twiddle.net>
19654
19655         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19656         from macro to inline function; merge with the
19657         !__LIBC_INTERNAL_MATH_INLINES version.
19658         (__ieee754_sqrtf): Likewise.
19659
19660         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19661         to inline function.
19662         (__rintf, __floor, __floorf): Likewise.
19663
19664         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19665         macro to inline function.
19666         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19667
19668         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19669         not <math/math_private.h>.
19670
19671 2012-03-08  David S. Miller  <davem@davemloft.net>
19672
19673         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19674         copyright year.
19675         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19676
19677 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19678
19679         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19680         normalization.
19681         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19682         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19683
19684 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19685
19686         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19687         be defined individually, they must be defined as a block.  Define
19688         S for printing a string instead of hidint the different by using a
19689         macro for adding the 'l'.
19690         * stdio-common/tst-fphex-wide.c: Adjust.
19691
19692 2012-03-07  Marek Polacek  <polacek@redhat.com>
19693
19694         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19695
19696 2012-03-08  Marek Polacek  <polacek@redhat.com>
19697
19698         [BZ #13806]
19699         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19700         * stdio-common/tst-fphex.c: Define a few macros to make the
19701         test reusable.  Use them.
19702         * stdio-common/tst-fphex-wide.c: New file.
19703
19704 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19705
19706         [BZ #6911]
19707         * manual/macros.texi (gnusystems): New macro.
19708         (nongnusystems): Likewise.
19709         (gnulinuxhurdsystems): Likewise.
19710         (gnuhurdsystems): Likewise..
19711         (gnulinuxsystems): Likewise.
19712         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19713         variants of the GNU system, not "GNU system".
19714         * manual/conf.texi: Likewise.
19715         * manual/errno.texi: Likewise.  Update example of errno macro
19716         expansion.
19717         * manual/filesys.texi: Likewise.
19718         (getumask): Document as specific to GNU/Hurd.
19719         * manual/install.texi: Likewise.  Reword some references to
19720         GNU/Linux.
19721         * manual/intro.texi: Likewise.
19722         * manual/io.texi: Likewise.
19723         (File Name Portability): Detail which constraints are inapplicable
19724         to all GNU systems and which are only inapplicable to GNU/Hurd.
19725         * manual/job.texi: Likewise.
19726         * manual/llio.texi: Likewise.
19727         (O_NOCTTY): Document as present on GNU/Linux.
19728         * manual/maint.texi: Likewise.
19729         * manual/memory.texi: Likewise.
19730         * manual/pattern.texi: Likewise.
19731         * manual/pipe.texi: Likewise.
19732         * manual/process.texi: Likewise.
19733         * manual/resource.texi: Likewise.
19734         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19735         child on GNU/Hurd.
19736         * manual/setjmp.texi: Likewise.
19737         * manual/signal.texi: Likewise.
19738         * manual/startup.texi: Likewise.
19739         * manual/stdio.texi: Likewise.
19740         * manual/terminal.texi: Likewise.
19741         (ONLCR): Document as POSIX.
19742         (OXTABS): Document availability on GNU/Linux as XTABS.
19743         (ONOEOT): Document availability separately from other bits.
19744         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19745         * manual/time.texi: Likewise.
19746         * manual/users.texi: Likewise.
19747         * INSTALL: Regenerated.
19748         * sysdeps/gnu/errlist.c: Regenerated.
19749
19750         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19751         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19752         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19753         puts.
19754         * configure: Regenerated.
19755
19756 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19757
19758         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19759         default includes instead of AC_HEADER_CHECK.
19760         * sysdeps/i386/configure: Regenerated.
19761
19762         [BZ #10716]
19763         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19764         * math/s_cacoshf.c (__cacoshf): Likewise.
19765         * math/s_cacoshl.c (__cacoshl): Likewise.
19766         * math/s_casinh.c (__casinh): Set signs of result from argument.
19767         * math/s_casinhf.c (__casinhf): Likewise.
19768         * math/s_casinhl.c (__casinhl): Likewise.
19769         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19770         (casinh_test): Add more tests.
19771         * sysdeps/i386/fpu/libm-test-ulps: Update.
19772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19773
19774 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19775
19776         * po/zh_TW.po: Update from translation team.
19777
19778         * login/Makefile (distribute): Remove variable.
19779         * catgets/Makefile: Likewise.
19780         * mach/Makefile: Likewise.
19781         * malloc/Makefile: Likewise.
19782         * misc/Makefile: Likewise.
19783         * iconv/Makefile: Likewise.
19784         * nscd/Makefile: Likewise.
19785         * hurd/Makefile: Likewise.
19786         * manual/Makefile: Likewise.
19787         * locale/Makefile: Likewise.
19788         * intl/Makefile: Likewise.
19789         * conform/Makefile: Likewise.
19790         * nss/Makefile: Likewise.
19791         * time/Makefile: Likewise.
19792         * soft-fp/Makefile: Likewise.
19793         * dirent/Makefile: Likewise.
19794         * gmon/Makefile: Likewise.
19795         * po/Makefile: Likewise.
19796         * rt/Makefile: Likewise.
19797         * socket/Makefile: Likewise.
19798         * math/Makefile: Likewise.
19799         * signal/Makefile: Likewise.
19800         * debug/Makefile: Likewise.
19801         * elf/Makefile: Likewise.
19802         * timezone/Makefile: Likewise.
19803         * stdlib/Makefile: Likewise.
19804         * iconvdata/Makefile: Likewise.
19805         * sunrpc/Makefile: Likewise.
19806         * io/Makefile: Likewise.
19807         * argp/Makefile: Likewise.
19808         * inet/Makefile: Likewise.
19809         * hesiod/Makefile: Likewise.
19810         * grp/Makefile: Likewise.
19811         * csu/Makefile: Likewise.
19812         * wctype/Makefile: Likewise.
19813         * crypt/Makefile: Likewise.
19814         * libio/Makefile: Likewise.
19815         * string/Makefile: Likewise.
19816         * nis/Makefile: Likewise.
19817         * resolv/Makefile: Likewise.
19818         * stdio-common/Makefile: Likewise.
19819         * wcsmbs/Makefile: Likewise.
19820         * dlfcn/Makefile: Likewise.
19821         * posix/Makefile: Likewise.
19822
19823         [BZ #6959]
19824         * timezone/Makefile: Don't install timezone files, just the programs
19825         and scripts.
19826
19827 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19828
19829         * nss/databases.def: Add missing gshadow entry.
19830
19831         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19832
19833 2012-03-06  Marek Polacek  <polacek@redhat.com>
19834
19835         [BZ #13726]
19836         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19837         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19838         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19839         * stdio-common/tst-long-dbl-fphex.c: New file.
19840
19841 2012-03-06  David S. Miller  <davem@davemloft.net>
19842
19843         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19844         (set_obp_int): New function.
19845         (get_obp_int): New function.
19846         (__get_clockfreq_via_dev_openprom): Likewise.
19847         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19848         Avoid unused variable warnings on 'val' and use builtin_expect.
19849         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19850         __builtin_expect.
19851         (INLINE_CLONE_SYSCALL): Likewise.
19852
19853 2012-03-05  David S. Miller  <davem@davemloft.net>
19854
19855         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19856
19857 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19858
19859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19860
19861         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19862         only for |x| >= 40.
19863         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19864
19865 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19868         Replace gettimeofday with __vdso_gettimeofday.
19869
19870         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19871         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19872         __vdso_clock_gettime and __vdso_getcpu.
19873
19874         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19875         time with __vdso_time.
19876
19877 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19878
19879         * manual/lang.texi (size_t): Note types to which size_t may be
19880         equivalent with the GNU C Library, but do not describe when
19881         differences between them are significant.
19882
19883 2012-03-05  Andreas Jaeger  <aj@suse.de>
19884
19885         * sysdeps/i386/fpu/libm-test-ulps: Update.
19886
19887 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19888
19889         [BZ #3976]
19890         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19891         (__ieee754_pow): Save and restore rounding mode and use
19892         round-to-nearest for main computations.
19893         * math/libm-test.inc (pow_test_tonearest): New function.
19894         (pow_test_towardzero): Likewise.
19895         (pow_test_downward): Likewise.
19896         (pow_test_upward): Likewise.
19897         (main): Call the new functions.
19898         * sysdeps/i386/fpu/libm-test-ulps: Update.
19899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19900
19901         [BZ #3976]
19902         * math/libm-test.inc (cosh_test_tonearest): New function.
19903         (cosh_test_towardzero): Likewise.
19904         (cosh_test_downward): Likewise.
19905         (cosh_test_upward): Likewise.
19906         (sinh_test_tonearest): Likewise.
19907         (sinh_test_towardzero): Likewise.
19908         (sinh_test_downward): Likewise.
19909         (sinh_test_upward): Likewise.
19910         (main): Call the new functions.
19911         * sysdeps/i386/fpu/libm-test-ulps: Update.
19912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19913
19914 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19915
19916         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19917         default stack guard is set in last bytes.
19918         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19919
19920 2012-03-05  Kees Cook  <keescook@chromium.org>
19921
19922         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19923
19924         [BZ #13656]
19925         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19926         possibly allocate from heap instead of stack.
19927         * stdio-common/bug-vfprintf-nargs.c: New file.
19928         * stdio-common/Makefile (tests): Add nargs overflow test.
19929
19930 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19931
19932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19933
19934 2012-03-03  Marek Polacek  <polacek@redhat.com>
19935
19936         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19937         * math/math_private.h: Likewise.
19938         * stdlib/tst-strtod.c: Likewise.
19939         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19940         * sysdeps/x86_64/bits/atomic.h: Likewise.
19941
19942 2012-03-02  David S. Miller  <davem@davemloft.net>
19943
19944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19948         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19949         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19950         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19951         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19952
19953 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19954
19955         [BZ #13792]
19956         * manual/examples/README: New file, says the example source files
19957         can be used under GPL>=2.
19958         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19959         line containing just "*/".
19960         * manual/examples/add.c: Add copyright header (GPL>=2).
19961         * manual/examples/argp-ex1.c: Likewise.
19962         * manual/examples/argp-ex2.c: Likewise.
19963         * manual/examples/argp-ex3.c: Likewise.
19964         * manual/examples/argp-ex4.c: Likewise.
19965         * manual/examples/atexit.c: Likewise.
19966         * manual/examples/db.c: Likewise.
19967         * manual/examples/dir.c: Likewise.
19968         * manual/examples/dir2.c: Likewise.
19969         * manual/examples/execinfo.c: Likewise.
19970         * manual/examples/filecli.c: Likewise.
19971         * manual/examples/filesrv.c: Likewise.
19972         * manual/examples/fmtmsgexpl.c: Likewise.
19973         * manual/examples/genpass.c: Likewise.
19974         * manual/examples/inetcli.c: Likewise.
19975         * manual/examples/inetsrv.c: Likewise.
19976         * manual/examples/isockad.c: Likewise.
19977         * manual/examples/longopt.c: Likewise.
19978         * manual/examples/memopen.c: Likewise.
19979         * manual/examples/memstrm.c: Likewise.
19980         * manual/examples/mkfsock.c: Likewise.
19981         * manual/examples/mkisock.c: Likewise.
19982         * manual/examples/mygetpass.c: Likewise.
19983         * manual/examples/pipe.c: Likewise.
19984         * manual/examples/popen.c: Likewise.
19985         * manual/examples/rprintf.c: Likewise.
19986         * manual/examples/search.c: Likewise.
19987         * manual/examples/select.c: Likewise.
19988         * manual/examples/setjmp.c: Likewise.
19989         * manual/examples/sigh1.c: Likewise.
19990         * manual/examples/sigusr.c: Likewise.
19991         * manual/examples/stpcpy.c: Likewise.
19992         * manual/examples/strdupa.c: Likewise.
19993         * manual/examples/strftim.c: Likewise.
19994         * manual/examples/strncat.c: Likewise.
19995         * manual/examples/subopt.c: Likewise.
19996         * manual/examples/swapcontext.c: Likewise.
19997         * manual/examples/termios.c: Likewise.
19998         * manual/examples/testopt.c: Likewise.
19999         * manual/examples/testpass.c: Likewise.
20000         * manual/examples/timeval_subtract.c: Likewise.
20001
20002         [BZ #13792]
20003         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20004         function to ...
20005         * manual/timeval_subtract.c.texi: ... here, new file.
20006
20007 2012-03-02  David S. Miller  <davem@davemloft.net>
20008
20009         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20010
20011 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20012
20013         [BZ #3976]
20014         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20015         (__sin): Save and restore rounding mode and use round-to-nearest
20016         for all computations.
20017         (__cos): Save and restore rounding mode and use round-to-nearest
20018         for all computations.
20019         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20020         <fenv.h>.
20021         (tan): Save and restore rounding mode and use round-to-nearest for
20022         all computations.
20023         * math/libm-test.inc (cos_test_tonearest): New function.
20024         (cos_test_towardzero): Likewise.
20025         (cos_test_downward): Likewise.
20026         (cos_test_upward): Likewise.
20027         (sin_test_tonearest): Likewise.
20028         (sin_test_towardzero): Likewise.
20029         (sin_test_downward): Likewise.
20030         (sin_test_upward): Likewise.
20031         (tan_test_tonearest): Likewise.
20032         (tan_test_towardzero): Likewise.
20033         (tan_test_downward): Likewise.
20034         (tan_test_upward): Likewise.
20035         (main): Call the new functions.
20036         * sysdeps/i386/fpu/libm-test-ulps: Update.
20037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20038
20039         [BZ #10135]
20040         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20041         small n, then large n, before computing and testing k+n.
20042         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20043         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20044         Likewise.
20045         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20046         Likewise.
20047         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20048         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20049         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20050         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20051         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20052         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20053         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20054         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20055         * math/libm-test.inc (scalbn_test): Add more tests.
20056         (scalbln_test): Likewise.
20057
20058         * manual/filesys.texi (mode_t): Describe constraints on size and
20059         signedness, not exact equivalence to a particular type.
20060         (ino_t): Likewise.
20061         (ino64_t): Likewise.
20062         (dev_t): Likewise.
20063         (nlink_t): Likewise.
20064         (blkcnt_t): Likewise.
20065         (blkcnt64_t): Likewise.
20066         * manual/llio.texi (off_t): Likewise.
20067
20068         [BZ #3976]
20069         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20070         (__ieee754_exp): Save and restore rounding mode and use
20071         round-to-nearest for all computations.
20072         * math/libm-test.inc (exp_test_tonearest): New function.
20073         (exp_test_towardzero): Likewise.
20074         (exp_test_downward): Likewise.
20075         (exp_test_upward): Likewise.
20076         (main): Call the new functions.
20077         * sysdeps/i386/fpu/libm-test-ulps: Update.
20078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20079
20080 2012-03-01  Chris Demetriou  <cgd@google.com>
20081
20082         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20083         have predictable order.
20084
20085 2012-03-01  David S. Miller  <davem@davemloft.net>
20086
20087         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20088
20089         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20090         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20091         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20092         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20093
20094         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20095         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20096         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20098         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20099         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20100         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20101         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20102         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20103
20104         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20105
20106         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20107         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20108         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20109
20110         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20111         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20112         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20113         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20114         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20115         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20116         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20117         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20118         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20119         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20120         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20121         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20122         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20123         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20124         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20125         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20126         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20127         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20128         * sysdeps/sparc/elf/configure: Regenerated.
20129
20130 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20131
20132         * configure.in (AS, LD): Require binutils 2.20 or later.
20133         * configure: Regenerated.
20134         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20135         as required minimum version.
20136         * INSTALL: Regenerated.
20137
20138         [BZ #2541]
20139         [BZ #4108]
20140         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20141         before squaring exponent.
20142         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20143         bottom long double and 27 bits of top long double before squaring
20144         exponent.
20145         * math/libm-test.inc (erfc_test): Add more tests.
20146         * sysdeps/i386/fpu/libm-test-ulps: Update.
20147         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20149
20150 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20151
20152         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20153         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20154         containing bit-fields.
20155         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20156         * soft-fp/single.h (_FP_UNION_S): Likewise.
20157         * soft-fp/double.h (_FP_UNION_D): Likewise.
20158
20159 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20160
20161         [BZ #13786]
20162         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20163         not include ../strcmp.S.
20164         [USE_AS_STRNCASECMP_L]: Likewise.
20165         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20166         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20167         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20168         (__strncasecmp_l_ia32): Define as alias to
20169         __strncasecmp_l_nonascii.
20170
20171         [BZ #5794]
20172         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20173         * sysdeps/i386/fpu/libm-test-ulps: Update.
20174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20175
20176         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20178
20179 2012-02-29  Jeff Law  <law@redhat.com>
20180
20181         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20182         out of bounds read.
20183
20184 2012-02-29  Marek Polacek  <polacek@redhat.com>
20185
20186         [BZ #13706]
20187         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20188         * elf/Makefile: Add rules to run tst-unused-dep.out.
20189
20190 2012-02-28  David S. Miller  <davem@davemloft.net>
20191
20192         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20193         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20194         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20195         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20196         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20197         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20198
20199 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20200
20201         * math/libm-test.inc (llround_test): Move one test from
20202         lround_test.  Use TEST_f_L in moved test.
20203         (lround_test): Move misplaced test to llround_test.  Add testcase
20204         from bug 2561.
20205
20206 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20207
20208         * sysdeps/x86_64/fpu/e_expf.S: New file.
20209         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20210
20211 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20212
20213         [BZ #13637]
20214         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20215         of remain_len that may cause incomplete multi-byte character and
20216         false match.
20217         * posix/bug-regex33.c: New file.
20218         * posix/Makefile (tests): Add bug-regex33.
20219
20220 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20221
20222         * manual/macros.texi: New file.
20223         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20224         * manual/libc.texinfo: Include macros.texi.
20225         * manual/creatute.texi: Likewise.
20226         * manual/install.texi: Likewise.
20227         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20228         @glibcadj{} in references to the GNU C Library.
20229         * manual/charset.texi: Likewise.
20230         * manual/conf.texi: Likewise.
20231         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20232         when not using those macros.
20233         * manual/creature.texi: Likewise.
20234         * manual/crypt.texi: Likewise.
20235         * manual/errno.texi: Likewise.
20236         * manual/filesys.texi: Likewise.
20237         * manual/header.texi: Likewise.
20238         * manual/install.texi: Likewise.
20239         * manual/intro.texi: Likewise.
20240         * manual/io.texi: Likewise.
20241         * manual/job.texi: Likewise.
20242         * manual/lang.texi: Likewise.
20243         * manual/libc.texiinfo: Likewise.
20244         * manual/llio.texi: Likewise.
20245         * manual/locale.texi: Likewise.
20246         * manual/maint.texi: Likewise.
20247         * manual/math.texi: Likewise.
20248         * manual/memory.texi: Likewise.
20249         * manual/message.texi: Likewise.
20250         * manual/nss.texi: Likewise.
20251         * manual/pattern.texi: Likewise.
20252         * manual/process.texi: Likewise.
20253         * manual/resource.texi: Likewise.
20254         * manual/search.texi: Likewise.
20255         * manual/setjmp.texi: Likewise.
20256         * manual/signal.texi: Likewise.
20257         * manual/socket.texi: Likewise.
20258         * manual/startup.texi: Likewise.
20259         * manual/stdio.texi: Likewise.
20260         * manual/string.texi: Likewise.
20261         * manual/sysinfo.texi: Likewise.
20262         * manual/syslog.texi: Likewise.
20263         * manual/terminal.texi: Likewise.
20264         * manual/time.texi: Likewise.
20265         * manual/users.texi: Likewise.
20266         * INSTALL: Regenerated.
20267         * NOTES: Regenerated.
20268         * sysdeps/gnu/errlist.c: Regenerated.
20269
20270 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20271
20272         * include/dirent.h: Include <dirstream.h> before
20273         <dirent/dirent.h>.
20274
20275 2012-02-28  David S. Miller  <davem@davemloft.net>
20276
20277         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20278         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20279         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20280         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20281
20282 2012-02-27  David S. Miller  <davem@davemloft.net>
20283
20284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20286         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20287         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20288
20289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20290         frame pointer instead of stack pointer relative arg slot.
20291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20292         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20293         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20294
20295 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20296
20297         [BZ #3992]
20298         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20299
20300 2012-02-27  David S. Miller  <davem@davemloft.net>
20301
20302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20306         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20307         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20308         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20309         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20310
20311 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20312
20313         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20314         later.  Allow versions 5-9.
20315         * configure: Regenerated.
20316         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20317         required minimum version and 4.6 as recommended version.  Do not
20318         mention bugs in GCC 2.7 and 2.8.
20319         * INSTALL: Regenerated.
20320
20321 2012-02-27  David S. Miller  <davem@davemloft.net>
20322
20323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20327         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20328         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20329         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20330         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20331
20332         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20333         manipulate bits before adding and subtracting TWO112[sx].
20334         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20335
20336 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20337
20338         [BZ #13775]
20339         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20340         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20341         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20342         being in POSIX, because they are in 1003.1-2008.
20343
20344         * rt/tst-aio.c: Include <fcntl.h>.
20345         * rt/tst-aio7.c: Likewise.
20346         * rt/tst-aio64.c: Likewise.
20347
20348         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20349
20350 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20351
20352         * manual/install.texi (--with-headers): Describe headers as
20353         interface headers, not private headers.
20354         (Specific advice for GNU/Linux systems): Describe use of headers
20355         from "make headers_install", not private headers from older
20356         kernels.
20357         * INSTALL: Regenerated.
20358         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20359         Change to 2.6.19.
20360         * sysdeps/unix/sysv/linux/configure: Regenerated.
20361
20362         * manual/llio.texi (fclean): Remove documentation.
20363
20364         * manual/Makefile (libc-texi-generated): New variable.  Include
20365         version.texi.
20366         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20367         $(libc-texi-generated), not duplicated list of files.
20368         (version.texi, stamp-version): New rules.
20369         (realclean): Remove $(libc-texi-generated), not individual files
20370         from that list.  Do not remove dir-add.texinfo.
20371         * manual/libc.texinfo: Comment out uses of edition numbers and
20372         references to printed manual.  Remove last-updated dates.
20373         (EDITION): Comment out.
20374         (ISBN): Likewise.
20375         (VERSION, UPDATED): Remove.
20376         (version.texi): Include.
20377
20378 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20379
20380         * sysdeps/posix/spawni.c: Include <signal.h>.
20381         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20382         * sysdeps/pthread/aio_fsync.c: Likewise.
20383
20384 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20385
20386         * conform/Makefile (tests): Run only when not cross-compiling and
20387         when fast-check is not defined.
20388
20389         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20390         * conform/data/limits.h-data: Fixes for POSIX2008.
20391         * conform/run-conformtest.sh: Run all tests.
20392         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20393         headers.
20394         * include/bits/dlfcn.h: Likewise.
20395         * include/langinfo.h: Likewise.
20396         * include/monetary.h: Likewise.
20397         * include/sys/poll.h: Likewise.
20398
20399         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20400         for __USE_GNU.
20401         * posix/spawn.h: Define __need_sigset_t.
20402         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20403         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20404         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20405         to get sigevent_t only.
20406         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20407         only for __USE_GNU.
20408         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20409         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20410         process_vm_writev only for __USE_GNU.
20411         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20412
20413         * conform/Makefile: For now ignore errors from run-conformtest.
20414         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20415         POSIX to avoid namespace pollution.  Don't prepend headers.
20416         * conform/data/aio.h-data: Fixes for POSIX testing.
20417         * conform/data/fcntl.h-data: Likewise.
20418         * conform/data/glob.h-data: Likewise.
20419         * conform/data/grp.h-data: Likewise.
20420         * conform/data/pthread.h-data: Likewise.
20421         * conform/data/pwd.h-data: Likewise.
20422         * conform/data/signal.h-data: Likewise.
20423         * conform/data/spawn.h-data: Likewise.
20424         * conform/data/stdio.h-data: Likewise.
20425         * conform/data/stdlib.h-data: Likewise.
20426         * conform/data/stropts.h-data: Likewise.
20427         * conform/data/sys/mman.h-data: Likewise.
20428         * conform/data/sys/stat.h-data: Likewise.
20429         * conform/data/sys/types.h-data: Likewise.
20430         * conform/data/sys/wait.h-data: Likewise.
20431         * conform/data/time.h-data: Likewise.
20432         * conform/data/unistd.h-data: Likewise.
20433         * conform/data/utime.h-data: Likewise.
20434
20435         * io/sys/stat.h: fchmod was always in POSIX.
20436         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20437         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20438         * rt/aio.h: Define __need_timespec before including <time.h>.
20439         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20440         struct.  Add forward declaration of pthread_attr_t and use it in
20441         sigevent.
20442         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20443         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20444         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20445         always remove CLK_TCK definition.
20446
20447 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20448
20449         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20450
20451 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20452
20453         * conform/run-conformtest.sh: New file.
20454         * conform/Makefile: Run run-conformtest for tests.
20455         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20456         support.
20457
20458         * conform/data/uchar.h-data: New file.
20459         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20460         * conform/data/arpa/inet.h-data: Likewise.
20461         * conform/data/assert.h-data: Likewise.
20462         * conform/data/complex.h-data: Likewise.
20463         * conform/data/cpio.h-data: Likewise.
20464         * conform/data/ctype.h-data: Likewise.
20465         * conform/data/dirent.h-data: Likewise.
20466         * conform/data/dlfcn.h-data: Likewise.
20467         * conform/data/errno.h-data: Likewise.
20468         * conform/data/fcntl.h-data: Likewise.
20469         * conform/data/float.h-data: Likewise.
20470         * conform/data/fmtmsg.h-data: Likewise.
20471         * conform/data/fnmatch.h-data: Likewise.
20472         * conform/data/ftw.h-data: Likewise.
20473         * conform/data/glob.h-data: Likewise.
20474         * conform/data/grp.h-data: Likewise.
20475         * conform/data/iconv.h-data: Likewise.
20476         * conform/data/inttypes.h-data: Likewise.
20477         * conform/data/langinfo.h-data: Likewise.
20478         * conform/data/libgen.h-data: Likewise.
20479         * conform/data/limits.h-data: Likewise.
20480         * conform/data/locale.h-data: Likewise.
20481         * conform/data/math.h-data: Likewise.
20482         * conform/data/monetary.h-data: Likewise.
20483         * conform/data/mqueue.h-data: Likewise.
20484         * conform/data/ndbm.h-data: Likewise.
20485         * conform/data/net/if.h-data: Likewise.
20486         * conform/data/netdb.h-data: Likewise.
20487         * conform/data/netinet/in.h-data: Likewise.
20488         * conform/data/nl_types.h-data: Likewise.
20489         * conform/data/poll.h-data: Likewise.
20490         * conform/data/pthread.h-data: Likewise.
20491         * conform/data/pwd.h-data: Likewise.
20492         * conform/data/regex.h-data: Likewise.
20493         * conform/data/sched.h-data: Likewise.
20494         * conform/data/search.h-data: Likewise.
20495         * conform/data/semaphore.h-data: Likewise.
20496         * conform/data/setjmp.h-data: Likewise.
20497         * conform/data/signal.h-data: Likewise.
20498         * conform/data/spawn.h-data: Likewise.
20499         * conform/data/stdarg.h-data: Likewise.
20500         * conform/data/stdio.h-data: Likewise.
20501         * conform/data/stdlib.h-data: Likewise.
20502         * conform/data/string.h-data: Likewise.
20503         * conform/data/strings.h-data: Likewise.
20504         * conform/data/stropts.h-data: Likewise.
20505         * conform/data/sys/ipc.h-data: Likewise.
20506         * conform/data/sys/mman.h-data: Likewise.
20507         * conform/data/sys/msg.h-data: Likewise.
20508         * conform/data/sys/resource.h-data: Likewise.
20509         * conform/data/sys/select.h-data: Likewise.
20510         * conform/data/sys/sem.h-data: Likewise.
20511         * conform/data/sys/shm.h-data: Likewise.
20512         * conform/data/sys/socket.h-data: Likewise.
20513         * conform/data/sys/stat.h-data: Likewise.
20514         * conform/data/sys/statvfs.h-data: Likewise.
20515         * conform/data/sys/time.h-data: Likewise.
20516         * conform/data/sys/timeb.h-data: Likewise.
20517         * conform/data/sys/times.h-data: Likewise.
20518         * conform/data/sys/types.h-data: Likewise.
20519         * conform/data/sys/uio.h-data: Likewise.
20520         * conform/data/sys/un.h-data: Likewise.
20521         * conform/data/sys/utsname.h-data: Likewise.
20522         * conform/data/sys/wait.h-data: Likewise.
20523         * conform/data/syslog.h-data: Likewise.
20524         * conform/data/tar.h-data: Likewise.
20525         * conform/data/termios.h-data: Likewise.
20526         * conform/data/utime.h-data: Likewise.
20527         * conform/data/utmpx.h-data: Likewise.
20528         * conform/data/varargs.h-data: Likewise.
20529         * conform/data/wchar.h-data: Likewise.
20530         * conform/data/wctype.h-data: Likewise.
20531         * conform/data/wordexp.h-data: Likewise.
20532
20533         * include/stropts.h: New file.
20534         * include/uchar.h: New file.
20535         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20536         * include/assert.h: Likewise.
20537         * include/ctype.h: Likewise.
20538         * include/dirent.h: Likewise.
20539         * include/dlfcn.h: Likewise.
20540         * include/fcntl.h: Likewise.
20541         * include/fnmatch.h: Likewise.
20542         * include/glob.h: Likewise.
20543         * include/grp.h: Likewise.
20544         * include/libio.h: Likewise.
20545         * include/locale.h: Likewise.
20546         * include/math.h: Likewise.
20547         * include/net/if.h: Likewise.
20548         * include/netdb.h: Likewise.
20549         * include/netinet/in.h: Likewise.
20550         * include/pthread.h: Likewise.
20551         * include/pwd.h: Likewise.
20552         * include/regex.h: Likewise.
20553         * include/sched.h: Likewise.
20554         * include/search.h: Likewise.
20555         * include/setjmp.h: Likewise.
20556         * include/signal.h: Likewise.
20557         * include/stdio.h: Likewise.
20558         * include/stdlib.h: Likewise.
20559         * include/string.h: Likewise.
20560         * include/sys/cdefs.h: Likewise.
20561         * include/sys/mman.h: Likewise.
20562         * include/sys/msg.h: Likewise.
20563         * include/sys/resource.h: Likewise.
20564         * include/sys/select.h: Likewise.
20565         * include/sys/socket.h: Likewise.
20566         * include/sys/stat.h: Likewise.
20567         * include/sys/statvfs.h: Likewise.
20568         * include/sys/time.h: Likewise.
20569         * include/sys/times.h: Likewise.
20570         * include/sys/uio.h: Likewise.
20571         * include/sys/utsname.h: Likewise.
20572         * include/sys/wait.h: Likewise.
20573         * include/termios.h: Likewise.
20574         * include/time.h: Likewise.
20575         * include/ulimit.h: Likewise.
20576         * include/unistd.h: Likewise.
20577         * include/utime.h: Likewise.
20578         * include/wchar.h: Likewise.
20579         * include/wctype.h: Likewise.
20580         * include/wordexp.h: Likewise.
20581
20582         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20583
20584         * time/time.h: TIME_UTC must be a macro.
20585         Make timespec_get available for ISO C11 only as well.
20586
20587 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20588
20589         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20590         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20591
20592 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20593
20594         * configure.in: Use -o not -a in test for unsupported multi-arch.
20595
20596 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20597
20598         * manual/texinfo.tex: Update to version 2012-01-19.16.
20599
20600 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20601
20602         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20603
20604 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20605
20606         [BZ #13738]
20607         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20608         * manual/fdl-1.3.texi: New file.
20609         * manual/fdl-1.1.texi: File removed.
20610
20611         [BZ #13738]
20612         * manual/libc.texinfo (FDL_VERSION): New @set.
20613         Use it for mention of FDL in cover text.
20614         (Documentation License): Use it in @include file name.
20615
20616 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20617             Roland McGrath  <roland@hack.frob.com>
20618
20619         [BZ #5461]
20620         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20621         not LONG_LONG_MAX and LONG_LONG_MIN.
20622         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20623         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20624         name.
20625         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20626
20627 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20628
20629         [BZ #2547]
20630         [BZ #11365]
20631         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20632         manipulate bits before adding and subtracting TWO23[sx].
20633         * math/libm-test.inc (nearbyint_test): Add more tests.
20634
20635 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20636
20637         [BZ #2548]
20638         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20639         bits before adding and subtracting TWO23[sx].
20640         * math/libm-test.inc (rint_test): Add more tests.
20641         (rint_test_tonearest): Likewise.
20642         (rint_test_towardzero): Likewise.
20643         (rint_test_downward): Likewise.
20644         (rint_test_upward: Likewise.
20645
20646 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20647
20648         [BZ #10110]
20649         * include/stdc-predef.h: New file.  Extracted from features.h.
20650         * include/features.h: Include stdc-predef.h.
20651         * Makefile (headers): Add stdc-predef.h.
20652         * CONFORMANCE (Compiler limitations): Update.
20653
20654 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20655
20656         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20657
20658 2012-02-21  David S. Miller  <davem@davemloft.net>
20659
20660         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20661         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20662
20663 2012-02-20  David S. Miller  <davem@davemloft.net>
20664
20665         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20666         using a normal save/restore sequence, rather than allocating a
20667         dummy stack frame just to store a frame pointer and restore.
20668         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20669
20670 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20671
20672         * manual/install.texi: Fix stray word in line-wrapped comment.
20673
20674 2012-02-20  David S. Miller  <davem@davemloft.net>
20675
20676         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20677         both binutils and gcc support GOTDATA.
20678
20679         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20680         "rd %pc" in the PIC register setup sequences.
20681
20682         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20683         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20684         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20685         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20686         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20687         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20688         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20689         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20690         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20691         (SYSCALL_ERROR_HANDLER): Likewise.
20692         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20693         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20694         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20695         (SYSCALL_ERROR_HANDLER): Likewise.
20696
20697         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20698         (HAVE_GCC_GOTDATA): New.
20699         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20700         relocation support in both binutils and gcc.
20701         * sysdeps/sparc/elf/configure: Regenerate.
20702
20703         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20704         * sysdeps/sparc/sparc32/elf/configure: Delete.
20705         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20706         * sysdeps/sparc/sparc64/elf/configure: Delete.
20707         * sysdeps/sparc/elf/configure.in: New file.
20708         * sysdeps/sparc/elf/configure: Generate.
20709
20710         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20711         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20712         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20713         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20714         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20715
20716 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20717
20718         * manual/install.texi: Do not mention specific glibc version
20719         numbers.
20720         * manual/libc.texinfo (VERSION, UPDATED): Update.
20721         (@copying): Use @copyright{} and range of years.
20722
20723 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20724
20725         [BZ #13695]
20726         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20727         [crti.S not in sysdirs] (generated): Do not append.
20728         [crti.S not in sysdirs] (omit-deps): Likewise.
20729         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20730         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20731         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20732         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20733         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20734         Likewise.
20735         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20736         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20737         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20738         * csu/defs.awk: Remove file.
20739         * sysdeps/generic/initfini.c: Likewise.
20740         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20741         variable.
20742         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20743         Likewise.
20744
20745 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20746
20747         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20748         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20749         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20750         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20751         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20752         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20753         <bits/epoll.h>.
20754         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20755         (__EPOLL_PACKED): Define to empty if not defined by
20756         <bits/epoll.h>.
20757         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20758         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20759         bits/epoll.h.
20760
20761 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20762
20763         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20764         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20765         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20766         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20767         <bits/timerfd.h>.
20768         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20769         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20770         bits/timerfd.h.
20771
20772 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20773
20774         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20775         in C locale.
20776         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20777         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20778         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20780
20781 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20782
20783         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20784         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20785
20786 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20787
20788         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20789         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20790         defined.
20791         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20792         Likewise.
20793         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20794         entry for 2.16.
20795
20796 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20797
20798         * math/w_acos.c: Use non-signaling floating-point comparisons.
20799         * math/w_acosf.c: Likewise.
20800         * math/w_acosh.c: Likewise.
20801         * math/w_acoshf.c: Likewise.
20802         * math/w_acoshl.c: Likewise.
20803         * math/w_acosl.c: Likewise.
20804         * math/w_asin.c: Likewise.
20805         * math/w_asinf.c: Likewise.
20806         * math/w_asinl.c: Likewise.
20807         * math/w_atanh.c: Likewise.
20808         * math/w_atanhf.c: Likewise.
20809         * math/w_atanhl.c: Likewise.
20810         * math/w_exp2.c: Likewise.
20811         * math/w_exp2f.c: Likewise.
20812         * math/w_exp2l.c: Likewise.
20813         * math/w_j0.c: Likewise.
20814         * math/w_j0f.c: Likewise.
20815         * math/w_j0l.c: Likewise.
20816         * math/w_j1.c: Likewise.
20817         * math/w_j1f.c: Likewise.
20818         * math/w_j1l.c: Likewise.
20819         * math/w_jn.c: Likewise.
20820         * math/w_jnf.c: Likewise.
20821         * math/w_log.c: Likewise.
20822         * math/w_log10.c: Likewise.
20823         * math/w_log10f.c: Likewise.
20824         * math/w_log10l.c: Likewise.
20825         * math/w_log2.c: Likewise.
20826         * math/w_log2f.c: Likewise.
20827         * math/w_log2l.c: Likewise.
20828         * math/w_logf.c: Likewise.
20829         * math/w_logl.c: Likewise.
20830         * math/w_sqrt.c: Likewise.
20831         * math/w_sqrtf.c: Likewise.
20832         * math/w_sqrtl.c: Likewise.
20833         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20834         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20835         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20836         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20837         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20838
20839 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20840
20841         [BZ #9739]
20842         * manual/string.texi (strnlen): Use correct parameter name in
20843         equivalent expression.
20844
20845 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20846
20847         [BZ #11174]
20848         * manual/users.texi (seteuid): Consistently use neweuid for
20849         argument name.
20850
20851 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20852
20853         [BZ #13704]
20854         * manual/nss.texi (Services in the NSS configuration): Correct
20855         list of services in example configuration file.
20856
20857 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20858
20859         [BZ #11322]
20860         * manual/arith.texi: Remove statements about negative zero
20861         behaving identically to zero.
20862
20863 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20864
20865         [BZ #5993]
20866         * manual/install.texi: Do not document upgrading from libc5.
20867
20868 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20869
20870         [BZ #4596]
20871         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20872
20873 2012-02-18  David S. Miller  <davem@davemloft.net>
20874
20875         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20876         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20877         %o7 across the call.
20878         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20879         instead.
20880         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20881         SETUP_PIC_REG_LEAF.
20882         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20883         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20884         * sysdeps/sparc/crtn.S: Likewise.
20885
20886 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20887
20888         * aout/Makefile: Remove.
20889
20890 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20891
20892         [BZ #13058]
20893         * manual/examples/argp-ex1.c (main): Format definition in GNU
20894         style.
20895         * manual/examples/argp-ex2.c (main): Likewise.
20896         * manual/examples/argp-ex3.c (main): Likewise.
20897         * manual/examples/argp-ex4.c (main): Likewise.
20898         * manual/examples/longopt.c (main): Use new-style prototype
20899         definition.
20900         * manual/examples/strncat.c (main): Specify return type and use
20901         (void) for arguments.
20902         * manual/examples/subopt.c (main): Use char **argv argument.
20903
20904 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20905
20906         [BZ #5077]
20907         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20908         rounding modes.
20909
20910 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20911
20912         [BZ #6907]
20913         * manual/string.texi (strchr): Change when strchrnul is
20914         recommended.
20915
20916 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20917
20918         [BZ #174]
20919         * manual/locale.texi (setlocale): Document LOCPATH.
20920
20921 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20922
20923         [BZ #10210]
20924         * manual/process.texi (execle): Move @dots{} before last argument.
20925
20926 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20927
20928         [BZ #12047]
20929         * manual/charset.texi (Generic Charset Conversion): Fix typo
20930         (LC_TYPE -> LC_CTYPE).
20931
20932 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20933
20934         [BZ #5805]
20935         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20936         (scalbnf): Likewise.
20937         (scalbnl): Likewise.
20938         (scalbln): Likewise.
20939         (scalblnf): Likewise.
20940         (scalblnl): Likewise.
20941         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20942         (vwarnx): Likewise.
20943         (verr): Likewise.
20944         (verrx): Likewise.
20945         * manual/filesys.texi (telldir): Use braces around return type.
20946         * manual/llio.texi (mmap): Add space after comma.
20947         (mmap64): Likewise.
20948         * manual/math.texi (jn): Use @var{} on parameter names.
20949         (jnf): Likewise.
20950         (jnl): Likewise.
20951         (yn): Likewise.
20952         (ynf): Likewise.
20953         (ynl): Likewise.
20954         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20955         line.
20956         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20957         "...".
20958         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20959         (sched_get_priority_max): Likewise.
20960         * manual/signal.texi (sigvec): Add space after comma.
20961         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20962         names.
20963         (if_indextoname): Likewise.
20964         (if_freenameindex): Likewise.
20965         (sendto): Use ',' instead of '.' in prototype.
20966         * manual/startup.texi (syscall): Use @dots{} instead of literal
20967         "...".
20968         * manual/stdio.texi (__fpending): Separate initial words of
20969         paragraph from @deftypefun line.
20970         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20971         "...".
20972         (vsyslog): Use @var{} on parameter names.
20973         * manual/terminal.texi (stty): Use @var{} on parameter names.
20974         * manual/users.texi (getutmp): Use @var{} on parameter names.
20975         (getutmpx): Likewise.
20976
20977 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20978
20979         [BZ #6884]
20980         * manual/stdio.texi (fopen): Fix typos in description of
20981         ",ccs=STRING".
20982
20983 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20984
20985         [BZ #4026]
20986         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20987         get clock_id definition.
20988
20989 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
20990
20991         [BZ #4822]
20992         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
20993         (madvise): Cast every argument to void on its own.
20994
20995 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20996
20997         [BZ #9902]
20998         * manual/startup.texi (Exit Status): Fix typo.
20999
21000 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21001
21002         [BZ #10140]
21003         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21004         * manual/examples/argp-ex2.c: Likewise.
21005         * manual/examples/argp-ex3.c: Likewise.
21006
21007 2012-02-16  Richard Henderson  <rth@redhat.com>
21008
21009         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21010         * sysdeps/s390/s390-32/initfini.c: Remove.
21011         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21012         * sysdeps/s390/s390-64/initfini.c: Remove.
21013
21014 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21015
21016         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21017         compiler output for sysdeps/generic/initfini.c.
21018         * sysdeps/sh/elf/initfini.c: Remove file.
21019
21020 2012-02-16  David S. Miller  <davem@davemloft.net>
21021
21022         [BZ #11494]
21023         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21024
21025         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21026         * sysdeps/sparc/crti.S: New file.
21027         * sysdeps/sparc/crtn.S: New file.
21028         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21029         * sysdeps/sparc/sparc64/Makefile: Likewise.
21030
21031 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21032
21033         [BZ #3335]
21034         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21035
21036 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21037
21038         [BZ #4822]
21039         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21040
21041         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21042         (write, read, close): Likewise.
21043         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21044
21045 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21046
21047         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21048         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21049         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21050         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21051         <bits/signalfd.h>.
21052         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21053         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21054         bits/signalfd.h.
21055
21056 2012-02-14  Marek Polacek  <polacek@redhat.com>
21057
21058         * sysdeps/x86_64/crti.S: New file.
21059         * sysdeps/x86_64/crtn.S: New file.
21060         * sysdeps/x86_64/elf/initfini.c: Remove file.
21061
21062 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21063
21064         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21065         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21066         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21067         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21068         <bits/inotify.h>.
21069         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21070         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21071         bits/inotify.h.
21072
21073 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21074
21075         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21076         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21077         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21078         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21079         <bits/eventfd.h>.
21080         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21081         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21082         bits/eventfd.h.
21083
21084 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21085
21086         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21087         __feraiseexcept instead of feraiseexcept.
21088
21089         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21090         nanosleep invocations.
21091         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21092         strings, and add error checking for a nanosleep invocations.
21093
21094 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21095
21096         Replace FSF snail mail address with URLs, as per GNU coding standards.
21097         Most of the snail mail addresses were wrong anyway, and omitting
21098         them makes the source code easier to maintain.  Almost all of the
21099         changes are to license notices and to locale LC_IDENTIFICATION
21100         addresses, except for this one:
21101         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21102         not its snail mail address.
21103
21104 2012-02-09  Richard Henderson  <rth@twiddle.net>
21105
21106         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21107         of kernel-features.h.
21108
21109         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21110
21111 2012-02-08  Marek Polacek  <polacek@redhat.com>
21112
21113         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21114         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21115         * sysdeps/gnu/_G_config.h: Likewise.
21116         * sysdeps/generic/_G_config.h: Likewise.
21117
21118 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21119
21120         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21121         tests.
21122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21123
21124         * sysdeps/powerpc/powerpc32/crti.S: New file.
21125         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21126         * sysdeps/powerpc/powerpc64/crti.S: New file.
21127         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21128
21129         * Makeconfig (have-initfini): Don't set.
21130         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21131         * configure.in (nopic_initfini): Don't substitute.
21132         * config.h.in (HAVE_INITFINI): Don't #undef.
21133         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21134         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21135
21136 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21137
21138         Support crti.S and crtn.S provided directly by architectures.
21139         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21140         [crti.S in sysdirs] (omit-deps): Likewise.
21141         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21142         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21143         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21144         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21145         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21146         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21147         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21148         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21149         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21150         compiler output for sysdeps/generic/initfini.c.
21151         * sysdeps/i386/elf/Makefile: Remove file.
21152         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21153
21154 2012-02-07  Marek Polacek  <polacek@redhat.com>
21155
21156         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21157         * sysdeps/gnu/_G_config.h: Likewise.
21158         * sysdeps/mach/hurd/_G_config.h: Likewise.
21159
21160 2012-02-07  Marek Polacek  <polacek@redhat.com>
21161
21162         * math/Makefile (tests): Add tst-CMPLX2.
21163         * math/tst-CMPLX2.c: New file.
21164
21165 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21166
21167         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21168
21169         * math/libm-test.inc (jn_test): Add missing L suffix.
21170
21171 2012-02-06  Marek Polacek  <polacek@redhat.com>
21172
21173         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21174         * sysdeps/i386/fpu/e_powf.S: Likewise.
21175         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21176         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21177         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21178         * sysdeps/i386/fpu/e_pow.S: Likewise.
21179         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21180         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21181         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21182         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21183         * sysdeps/i386/fpu/e_log2.S: Likewise.
21184         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21185         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21186         * sysdeps/i386/fpu/e_powl.S: Likewise.
21187         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21188         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21189         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21190         * sysdeps/i386/fpu/e_logl.S: Likewise.
21191         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21192         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21193         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21194         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21195         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21196         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21197         * sysdeps/i386/fpu/e_log.S: Likewise.
21198         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21199         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21200         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21201         * sysdeps/i386/fpu/e_logf.S: Likewise.
21202         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21203         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21204         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21205         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21206         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21207         * sysdeps/i386/fpu/e_log10.S: Likewise.
21208         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21209         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21210         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21211         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21212         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21213         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21214         * sysdeps/i386/asm-syntax.h: Likewise.
21215         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21216         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21217         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21218         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21219         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21220         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21221         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21222         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21223         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21224         * sysdeps/powerpc/sysdep.h: Likewise.
21225         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21226         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21227
21228 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21229
21230         [BZ #411]
21231         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21232
21233 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21234
21235         * sysdeps/i386/sysdep.h: Include <features.h>.
21236         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21237         version.
21238
21239 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21240
21241         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21242         Define.
21243         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21244         LOAD_PIC_REG_STR.
21245
21246 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21247
21248         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21249         (SETUP_PIC_REG): Use GET_PC_THUNK.
21250         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21251         macro.
21252
21253 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21254
21255         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21256         for non-PIC compilation.
21257         (SETUP_PIC_REG): Add .p2align directive.
21258         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21259         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21260         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21261         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21262         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21263         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21264         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21265         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21266         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21267         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21268         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21269         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21270         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21271         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21272         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21273         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21274         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21275         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21276         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21277         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21278         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21279         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21280         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21281         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21282         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21283         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21284         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21285         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21286         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21287         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21288         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21289         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21290         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21291         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21292         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21293         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21294         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21295         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21296         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21297         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21298         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21299
21300 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21301
21302         * math/tst-CMPLX.c: Include <stdio.h>.
21303
21304 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21305
21306         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21307         float.
21308         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21309         * sysdeps/sparc/bits/mathdef.h: Likewise.
21310
21311 2012-01-31  Marek Polacek  <polacek@redhat.com>
21312
21313         * libio/libio.h: Don't define _PARAMS.
21314         * locale/programs/config.h: Don't define PARAMS.
21315         * stdlib/strtol_l.c: Likewise.
21316         (__strtol_l): Remove PARAMS from the prototype.
21317
21318 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21319
21320         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21321         names.  Just use the correct names.  Remove unnecessary wrapper
21322         functions.
21323         * malloc/arena.c: Likewise.
21324         * malloc/hooks.c: Likewise.
21325
21326         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21327         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21328         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21329
21330 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21331
21332         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21333         into tail calls.
21334         (update_get_addr): New function.
21335         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21336         GET_ADDR_MODULE parameter.
21337
21338 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21339
21340         * crypt/cert.c: Remove __STDC__ conditionals.
21341         * crypt/crypt-entry.c: Likewise.
21342         * crypt/crypt_util.c: Likewise.
21343         * libio/filedoalloc.c: Likewise.
21344         * libio/fileops.c: Likewise.
21345         * libio/genops.c: Likewise.
21346         * libio/iofclose.c: Likewise.
21347         * libio/iofdopen.c: Likewise.
21348         * libio/iofopen.c: Likewise.
21349         * libio/iofopen64.c: Likewise.
21350         * libio/iogetdelim.c: Likewise.
21351         * libio/iopopen.c: Likewise.
21352         * libio/obprintf.c: Likewise.
21353         * libio/oldfileops.c: Likewise.
21354         * libio/oldiofclose.c: Likewise.
21355         * libio/oldiofdopen.c: Likewise.
21356         * libio/oldiofopen.c: Likewise.
21357         * libio/oldiopopen.c: Likewise.
21358         * libio/wfiledoalloc.c: Likewise.
21359         * libio/wgenops.c: Likewise.
21360         * locale/programs/xmalloc.c: Likewise.
21361         * misc/syslog.c: Likewise.
21362         * stdio-common/xbug.c: Likewise.
21363         * string/memchr.c: Likewise.
21364         * string/memcmp.c: Likewise.
21365         * string/memrchr.c: Likewise.
21366         * string/rawmemchr.c: Likewise.
21367         * sysdeps/posix/getcwd.c: Likewise.
21368         * time/strftime_l.c: Likewise.
21369
21370 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21371
21372         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21373         * config.make.in (config-cflags-sse2avx): Define.
21374         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21375         Fix typo.
21376
21377 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21378
21379         * scripts/config.guess: Update from upstream config git repository.
21380         * scripts/config.sub: Likewise.
21381
21382 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21383
21384         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21385         (EM_NUM): Update.
21386         (R_TILEPRO_*, R_TILEGX_*): New macros.
21387
21388         * scripts/firstversions.awk: Fix bug in version range handling.
21389
21390         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21391
21392         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21393
21394         * include/sys/epoll.h: New file.
21395         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21396         libc_hidden_def.
21397
21398 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21399
21400         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21401         Avoid unnecessary __WORDSIZE == 64 test.
21402         (fmaxf): Use VEX format if possible.
21403         (fmax): Likewise.
21404         (fminf): Likewise.
21405         (fmin): Likewise.
21406
21407         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21408         * math/math_private.h: Remove libc_fegetround* and
21409         libc_fesetround*.
21410         * sysdeps/i386/configure.in: Check for -msse2avx.
21411         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21412         also if SSE2AVX is defined.
21413         Remove libc_fegetround* and libc_fesetround*.
21414         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21415         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21416         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21417         of HAS_YMM_USABLE.
21418         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21419         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21420         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21421         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21422         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21423
21424         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21425
21426 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21427
21428         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21429         size is not set.
21430         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21431
21432 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21433
21434         [BZ #13618]
21435         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21436         relocation.
21437         * Makeconfig (libm): Define.
21438         * elf/Makefile: Add rules to build and run tst-relsort1.
21439         * elf/tst-relsort1.c: New file.
21440         * elf/tst-relsort1mod1.c: New file.
21441         * elf/tst-relsort1mod2.c: New file.
21442
21443 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21444
21445         * math/s_ldexp.c: Remove __STDC__ conditionals.
21446         * math/s_ldexpf.c: Likewise.
21447         * math/s_ldexpl.c: Likewise.
21448         * math/s_nextafter.c: Likewise.
21449         * math/s_nexttowardf.c: Likewise.
21450         * math/s_significand.c: Likewise.
21451         * math/s_significandf.c: Likewise.
21452         * math/s_significandl.c: Likewise.
21453         * math/w_jnl.c: Likewise.
21454         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21455         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21456         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21457         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21458         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21459         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21460         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21461         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21462         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21463         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21464         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21465         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21466         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21467         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21468         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21469         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21470         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21471         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21472         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21473         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21474         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21475         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21476         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21477         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21478         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21479         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21480         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21481         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21482         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21483         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21484         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21485         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21486         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21487         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21488         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21489         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21490         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21491         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21492         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21493         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21494         * sysdeps/ieee754/k_standard.c: Likewise.
21495         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21496         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21497         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21498         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21499         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21500         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21501         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21502         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21503         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21504         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21505         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21506         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21507         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21508         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21509         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21510         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21511         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21512         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21513         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21514         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21515         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21516         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21517         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21518         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21519         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21520         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21521         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21522         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21523         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21524         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21525         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21526         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21527         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21528         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21529         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21530         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21531         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21532         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21533         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21534         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21535         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21536         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21537         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21538         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21539         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21540         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21541         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21542         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21543         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21544         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21545         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21546         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21547         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21548         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21549         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21550         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21551         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21552         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21553         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21554         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21555         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21556         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21557         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21558         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21559         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21560         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21561         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21562         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21563         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21564         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21565         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21566         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21567         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21568         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21569         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21570         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21571         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21572         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21573         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21574         * sysdeps/ieee754/s_matherr.c: Likewise.
21575         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21576         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21577         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21578         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21579
21580 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21581
21582         * crypt/md5.h: Remove __STDC__ conditionals.
21583         * libio/libioP.h: Likewise.
21584         * locale/programs/config.h: Likewise.
21585         * sysdeps/generic/sysdep.h: Likewise.
21586         * sysdeps/i386/asm-syntax.h: Likewise.
21587         * sysdeps/s390/asm-syntax.h: Likewise.
21588         * sysdeps/unix/sysdep.h: Likewise.
21589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21591
21592 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21593
21594         * libio/libio.h: Remove __STDC__ conditionals.
21595         * malloc/obstack.h: Likewise.
21596         * math/complex.h: Likewise.
21597         * math/math.h: Likewise.
21598         * sysdeps/generic/_G_config.h: Likewise.
21599         * sysdeps/gnu/_G_config.h: Likewise.
21600         * sysdeps/mach/hurd/_G_config.h: Likewise.
21601         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21602         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21603         * sysdeps/sparc/bits/mathdef.h: Likewise.
21604
21605 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21606
21607         [BZ #13583]
21608         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21609         Clean up HAS_* macros.
21610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21611         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21612         possible.
21613         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21614         HAS_AVX.
21615         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21616         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21617         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21618         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21619         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21620
21621 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21622
21623         * elf/tst-unique3.cc (gets): Remove declaration.
21624         * elf/tst-unique3lib.cc (gets): Likewise.
21625         * elf/tst-unique3lib2.cc (gets): Likewise.
21626         * elf/tst-unique4.cc (gets): Likewise.
21627
21628 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21629
21630         * include/stdio.h: Add C++ protection.  Add gets declarations and
21631         definitions.
21632         * debug/tst-chk1.c: Don't declare gets here.
21633         * stdio-common/tst-gets.c: Likewise.
21634
21635 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21636
21637         * posix/glob: Remove directory.
21638
21639 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21640
21641         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21642
21643 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21644
21645         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21646         of the non-standard EPFNOSUPPORT.
21647
21648 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21649
21650         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21651         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21652         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21653
21654 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21655
21656         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21657
21658 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21659
21660         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21661         transient errors.
21662         * nscd/grpcache.c (cache_addgr): Likewise.
21663         * nscd/hstcache.c (cache_addhst): Likewise.
21664         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21665         * nscd/pwdcache.c (cache_addpw): Likewise.
21666         * nscd/servicescache.c (cache_addserv): Likewise.
21667
21668 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21669
21670         * malloc/malloc.c: Various cleanups.
21671         * malloc/hooks.c: Likewise.
21672
21673         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21674         * stdlib/bug-fmtmsg1.c: New file.
21675
21676         * stdlib/fmtmsg.c (init): Add missing unlock.
21677         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21678
21679 2012-01-12  Marek Polacek  <polacek@redhat.com>
21680
21681         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21682         and _GNU_SOURCE.
21683
21684 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21685
21686         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21687         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21688         macro to ensure uniqueness of label name.
21689         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21690         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21691
21692 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21693
21694         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21695
21696         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21697         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21698         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21699         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21700
21701 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21702
21703         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21704
21705         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21706         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21707         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21708
21709         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21710
21711         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21712         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21713         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21714         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21715
21716         * math/bits/math-finite.h: Add ldexp support.
21717
21718 2012-01-10  Marek Polacek  <polacek@redhat.com>
21719
21720         * locale/programs/localedef.h (show_archive_content): Add noreturn
21721         attribute.
21722
21723 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21724
21725         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21726
21727 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21728
21729         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21730
21731         * io/Makefile (headers): Add bits/poll2.h.
21732
21733 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21734
21735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21736         typo #include statement.
21737
21738 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21739
21740         * include/sys/cdefs.h: Define __attribute_alloc_size.
21741         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21742         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21743         * elf/pldd.c: Likewise.
21744         * iconv/iconv_charmap.c: Likewise.
21745         * iconv/iconvconfig.c: Likewise.
21746         * iconv/strtab.c: Likewise.
21747         * locale/programs/locale.c: Likewise.
21748         * locale/programs/localedef.h: Likewise.
21749         * locale/programs/simple-hash.c: Likewise.
21750         * nscd/nscd.h: Likewise.
21751         * nss/makedb.c: Likewise.
21752         * sysdeps/generic/ldconfig.h: Likewise.
21753         * locale/programs/localedef.c: Remove xmalloc prototype.
21754         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21755
21756 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21757
21758         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21759         appropriate.
21760
21761 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21762
21763         * math/Makefile (tests): Add tst-CMPLX.
21764         * math/tst-CMPLX.c: New file.
21765
21766         * math/complex.h (CMPLXL): Fix typo.
21767
21768         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21769         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21770         GLIBC_2.16.
21771         * debug/tst-chk1.c: Add poll and ppoll tests.
21772         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21773         * include/sys/poll.h: Add hidden proto for ppoll.
21774         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21775         * sysdeps/mach/hurd/ppoll.c: Likewise.
21776         * io/ppoll.c: Likewise.
21777         * debug/poll_chk.c: New file.
21778         * debug/ppoll_chk.c: New file.
21779         * include/bits/poll2.h: New file.
21780         * io/bits/poll2.h: New file.
21781
21782         [BZ #1350]
21783         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21784
21785         * configure.in: static is always set to yes.  Remove.
21786         * config.make.in: Don't set build-static.
21787         * Makeconfig: Remove use of build-static.
21788         * dlfcn/Makefile: Likewise.
21789         * elf/Makefile: Likewise.
21790         * math/Makefile: Likewise.
21791         * misc/Makefile: Likewise.
21792         * nptl/Makefile: Likewise.
21793         * sysdeps/mach/hurd/Makefile: Likewise.
21794
21795         * configure.in: PWD_P is not used anymore.
21796         * config.make.in: Remove PWD_P entry.
21797
21798         * configure.in: Remove last remnants of RANLIB.
21799         No need to check for signed size_t anymore.
21800         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21801         and IA-64.
21802         Remove __builtin_expect test because we require at least gcc 3.4.
21803         * aclocal.m4: Likewise.
21804
21805         * wcsmbs/mbrtoc16.c: Implement using towc function.
21806         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21807         * wcsmbs/wcsmbsload.c: Likewise.
21808         * iconv/gconv_simple.c: Likewise.
21809         * iconv/gconv_int.h: Likewise.
21810         * iconv/gconv_builtin.h: Likewise.
21811         * iconv/iconv_prog.c: Remove CHAR16 handling.
21812
21813         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21814
21815         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21816
21817         * configure.in: Remove --with-elf and --enable-bounded options.
21818         Dont set base_machine for ia64.  More non-ELF conditions removed.
21819         Remove testing and setting of leading underscore information.
21820         * config.make.in (build-bounded): Set to no.
21821         * config.h.in: Remove NO_UNDERSCORES entry.
21822         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21823         them.
21824         * csu/start.c: Remove !NO_UNDERSCORE code.
21825         * locale/localeinfo.h: Likewise.
21826         * sysdeps/generic/machine-gmon.h: Likewise.
21827         * sysdeps/generic/sysdep.h: Likewise.
21828         * sysdeps/i386/sysdep.h: Likewise.
21829         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21830         * sysdeps/mach/sysdep.h: Likewise.
21831         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21832         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21833         * sysdeps/sh/sysdep.h: Likewise.
21834         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21835         * sysdeps/unix/i386/sysdep.S: Likewise.
21836         * sysdeps/unix/sparc/start.c: Likewise.
21837         * sysdeps/unix/sparc/sysdep.S: Likewise.
21838         * sysdeps/unix/sparc/sysdep.h: Likewise.
21839         * sysdeps/unix/start.c: Likewise.
21840         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21841         * sysdeps/x86_64/sysdep.h: Likewise.
21842
21843 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21844
21845         [BZ #13553]
21846         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21847         for non-gcc.
21848         * argp/argp-fmtstream.h: Use const instead __const.
21849         * argp/argp.h: Likewise.
21850         * assert/assert.h: Likewise.
21851         * bits/fenv.h: Likewise.
21852         * bits/sched.h: Likewise.
21853         * bits/sigset.h: Likewise.
21854         * bits/sigthread.h: Likewise.
21855         * catgets/nl_types.h: Likewise.
21856         * conform/data/pthread.h-data: Likewise.
21857         * crypt/crypt-private.h: Likewise.
21858         * crypt/crypt.h: Likewise.
21859         * crypt/crypt_util.c: Likewise.
21860         * ctype/ctype.h: Likewise.
21861         * debug/execinfo.h: Likewise.
21862         * debug/mbsnrtowcs_chk.c: Likewise.
21863         * debug/mbsrtowcs_chk.c: Likewise.
21864         * debug/wcsnrtombs_chk.c: Likewise.
21865         * debug/wcsrtombs_chk.c: Likewise.
21866         * debug/wcstombs_chk.c: Likewise.
21867         * dirent/dirent.h: Likewise.
21868         * dlfcn/dlfcn.h: Likewise.
21869         * elf/neededtest4.c: Likewise.
21870         * grp/grp.h: Likewise.
21871         * gshadow/gshadow.h: Likewise.
21872         * iconv/gconv.h: Likewise.
21873         * iconv/gconv_int.h: Likewise.
21874         * iconv/gconv_simple.c: Likewise.
21875         * iconv/iconv.h: Likewise.
21876         * iconv/loop.c: Likewise.
21877         * iconv/skeleton.c: Likewise.
21878         * include/aio.h: Likewise.
21879         * include/aliases.h: Likewise.
21880         * include/argz.h: Likewise.
21881         * include/arpa/inet.h: Likewise.
21882         * include/assert.h: Likewise.
21883         * include/dirent.h: Likewise.
21884         * include/dlfcn.h: Likewise.
21885         * include/execinfo.h: Likewise.
21886         * include/fcntl.h: Likewise.
21887         * include/fenv.h: Likewise.
21888         * include/glob.h: Likewise.
21889         * include/grp.h: Likewise.
21890         * include/libintl.h: Likewise.
21891         * include/mntent.h: Likewise.
21892         * include/netdb.h: Likewise.
21893         * include/pwd.h: Likewise.
21894         * include/rpc/netdb.h: Likewise.
21895         * include/sched.h: Likewise.
21896         * include/search.h: Likewise.
21897         * include/shadow.h: Likewise.
21898         * include/signal.h: Likewise.
21899         * include/stdio.h: Likewise.
21900         * include/stdlib.h: Likewise.
21901         * include/string.h: Likewise.
21902         * include/sys/socket.h: Likewise.
21903         * include/sys/stat.h: Likewise.
21904         * include/sys/statfs.h: Likewise.
21905         * include/sys/statvfs.h: Likewise.
21906         * include/sys/syslog.h: Likewise.
21907         * include/sys/time.h: Likewise.
21908         * include/sys/uio.h: Likewise.
21909         * include/time.h: Likewise.
21910         * include/unistd.h: Likewise.
21911         * include/utmp.h: Likewise.
21912         * include/wchar.h: Likewise.
21913         * include/wctype.h: Likewise.
21914         * inet/aliases.h: Likewise.
21915         * inet/arpa/inet.h: Likewise.
21916         * inet/netinet/ether.h: Likewise.
21917         * inet/netinet/in.h: Likewise.
21918         * intl/libintl.h: Likewise.
21919         * io/bits/fcntl2.h: Likewise.
21920         * io/fcntl.h: Likewise.
21921         * io/ftw.h: Likewise.
21922         * io/sys/poll.h: Likewise.
21923         * io/sys/stat.h: Likewise.
21924         * io/sys/statfs.h: Likewise.
21925         * io/sys/statvfs.h: Likewise.
21926         * io/utime.h: Likewise.
21927         * libio/bits/stdio.h: Likewise.
21928         * libio/bits/stdio2.h: Likewise.
21929         * libio/libio.h: Likewise.
21930         * libio/libioP.h: Likewise.
21931         * libio/stdio.h: Likewise.
21932         * locale/lc-ctype.c: Likewise.
21933         * locale/locale.h: Likewise.
21934         * login/utmp.h: Likewise.
21935         * malloc/arena.c: Likewise.
21936         * malloc/malloc.c: Likewise.
21937         * malloc/malloc.h: Likewise.
21938         * malloc/mcheck.c: Likewise.
21939         * malloc/mtrace.c: Likewise.
21940         * math/bits/mathcalls.h: Likewise.
21941         * math/fenv.h: Likewise.
21942         * math/math_private.h: Likewise.
21943         * misc/bits/error.h: Likewise.
21944         * misc/bits/syslog.h: Likewise.
21945         * misc/err.h: Likewise.
21946         * misc/error.h: Likewise.
21947         * misc/fstab.h: Likewise.
21948         * misc/mntent.h: Likewise.
21949         * misc/regexp.h: Likewise.
21950         * misc/search.h: Likewise.
21951         * misc/sgtty.h: Likewise.
21952         * misc/sys/mman.h: Likewise.
21953         * misc/sys/syslog.h: Likewise.
21954         * misc/sys/uio.h: Likewise.
21955         * misc/sys/xattr.h: Likewise.
21956         * misc/ttyent.h: Likewise.
21957         * nis/rpcsvc/ypclnt.h: Likewise.
21958         * nss/nss.h: Likewise.
21959         * posix/bits/unistd.h: Likewise.
21960         * posix/fnmatch.h: Likewise.
21961         * posix/glob.h: Likewise.
21962         * posix/sched.h: Likewise.
21963         * posix/spawn.h: Likewise.
21964         * posix/sys/wait.h: Likewise.
21965         * posix/unistd.h: Likewise.
21966         * posix/wordexp.h: Likewise.
21967         * pwd/pwd.h: Likewise.
21968         * resolv/netdb.h: Likewise.
21969         * resource/sys/resource.h: Likewise.
21970         * rt/aio.h: Likewise.
21971         * rt/bits/mqueue2.h: Likewise.
21972         * rt/mqueue.h: Likewise.
21973         * shadow/shadow.h: Likewise.
21974         * signal/signal.h: Likewise.
21975         * socket/send.c: Likewise.
21976         * socket/sendto.c: Likewise.
21977         * socket/sys/socket.h: Likewise.
21978         * stdio-common/printf.h: Likewise.
21979         * stdlib/bits/stdlib.h: Likewise.
21980         * stdlib/fmtmsg.h: Likewise.
21981         * stdlib/monetary.h: Likewise.
21982         * stdlib/stdlib.h: Likewise.
21983         * stdlib/ucontext.h: Likewise.
21984         * streams/stropts.h: Likewise.
21985         * string/argz.h: Likewise.
21986         * string/bits/string2.h: Likewise.
21987         * string/string.h: Likewise.
21988         * string/strings.h: Likewise.
21989         * sunrpc/rpc/auth.h: Likewise.
21990         * sunrpc/rpc/auth_des.h: Likewise.
21991         * sunrpc/rpc/clnt.h: Likewise.
21992         * sunrpc/rpc/netdb.h: Likewise.
21993         * sunrpc/rpc/pmap_clnt.h: Likewise.
21994         * sunrpc/rpc/xdr.h: Likewise.
21995         * sysdeps/generic/inttypes.h: Likewise.
21996         * sysdeps/generic/net/if.h: Likewise.
21997         * sysdeps/generic/sys/swap.h: Likewise.
21998         * sysdeps/gnu/net/if.h: Likewise.
21999         * sysdeps/gnu/utmpx.h: Likewise.
22000         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22001         * sysdeps/i386/i486/bits/string.h: Likewise.
22002         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22003         * sysdeps/s390/bits/string.h: Likewise.
22004         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22005         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22006         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22007         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22008         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22009         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22010         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22011         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22012         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22013         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22014         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22015         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22016         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22017         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22018         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22019         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22020         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22021         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22022         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22023         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22024         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22025         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22026         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22027         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22028         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22029         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22030         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22031         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22032         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22033         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22034         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22035         * sysvipc/sys/ipc.h: Likewise.
22036         * sysvipc/sys/msg.h: Likewise.
22037         * sysvipc/sys/sem.h: Likewise.
22038         * sysvipc/sys/shm.h: Likewise.
22039         * termios/termios.h: Likewise.
22040         * time/sys/time.h: Likewise.
22041         * time/time.h: Likewise.
22042         * wcsmbs/bits/wchar2.h: Likewise.
22043         * wcsmbs/uchar.h: Likewise.
22044         * wcsmbs/wchar.h: Likewise.
22045         * wctype/wctype.h: Likewise.
22046
22047         [BZ #13551]
22048         * Makeconfig: Remove all but ELF support including AIX support.
22049         * Makerules: Likewise.
22050         * config.h.in: Likewise.
22051         * config.make.in: Likewise.
22052         * configure: Likewise.
22053         * configure.in: Likewise.
22054         * csu/Makefile: Likewise.
22055         * csu/version.c: Likewise.
22056         * debug/Makefile: Likewise.
22057         * dlfcn/Makefile: Likewise.
22058         * elf/Makefile: Likewise.
22059         * extra-lib.mk: Likewise.
22060         * iconv/Makefile: Likewise.
22061         * include/libc-symbols.h: Likewise.
22062         * include/shlib-compat.h: Likewise.
22063         * resolv/Makefile: Likewise.
22064         * resolv/res_libc.c: Likewise.
22065         * rt/Makefile: Likewise.
22066         * sysdeps/i386/asm-syntax.h: Likewise.
22067         * sysdeps/i386/sysdep.h: Likewise.
22068         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22069         * sysdeps/mach/sysdep.h: Likewise.
22070         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22071         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22072         * sysdeps/s390/asm-syntax.h: Likewise.
22073         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22074         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22075         * sysdeps/sh/sysdep.h: Likewise.
22076         * sysdeps/unix/sparc/sysdep.h: Likewise.
22077         * sysdeps/wordsize-32/divdi3.c: Likewise.
22078         * sysdeps/x86_64/sysdep.h: Likewise.
22079
22080         * argp/Versions: Remove _argp_unlock_xxx.
22081
22082         [BZ #13559]
22083         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22084         * abilist/libBrokenLocale.abilist: Likewise.
22085         * abilist/libanl.abilist: Likewise.
22086         * abilist/libc.abilist: Likewise.
22087         * abilist/libcrypt.abilist: Likewise.
22088         * abilist/libdl.abilist: Likewise.
22089         * abilist/libm.abilist: Likewise.
22090         * abilist/libnsl.abilist: Likewise.
22091         * abilist/libpthread.abilist: Likewise.
22092         * abilist/libresolv.abilist: Likewise.
22093         * abilist/librt.abilist: Likewise.
22094         * abilist/libthread_db.abilist: Likewise.
22095         * abilist/libutil.abilist: Likewise.
22096         * abilist/libnss_db.abilist: New file.
22097
22098         * scripts/abilist.awk: Add support for indirect functions.
22099
22100         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22101
22102         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22103
22104         * shlib-versions: Remove entries for ports architectures.
22105
22106         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22107         files in ports.
22108         * elf/stackguard-macros.h: Remove support for IA-64.
22109         * elf/tst-auditmod1.c: Likewise.
22110         * sysdeps/generic/ldsodefs.h: Likewise.
22111
22112         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22113         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22114         configure files.
22115
22116         [BZ #13552]
22117         * configure.in: Remove --enable-omitfp support.
22118         * FAQ.in: Adjust.
22119         * config.make.in: Likewise.
22120         * Makeconfig: Likewise.
22121         * manual/install.texi: Likewise.
22122
22123         In case anyone cares, the IA-64 architecture could move to ports.
22124         * sysdeps/ia64/*: Removed.
22125         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22126         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22127
22128         [BZ #13555]
22129         * configure.in: Remove entries for unsupported architectures.
22130
22131         [BZ #13533]
22132         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22133         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22134         routines.
22135         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22136         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22137         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22138         fall back to using wcrtomb.
22139         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22140         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22141         renaming.
22142         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22143         * wcsmbs/tst-c16c32-1.c: New file.
22144
22145         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22146         local variable.
22147
22148         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22149
22150         * elf/tst-unique3.cc: Add explicit declaration of gets.
22151         * elf/tst-unique3lib.cc: Likewise.
22152         * elf/tst-unique3lib2.cc: Likewise.
22153         * elf/tst-unique4.cc: Likewise.
22154
22155         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22156
22157 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22158
22159         [BZ #13566]
22160         * assert/assert.h (static_assert): Don't define for C++.
22161         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22162         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22163
22164 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22165
22166         * iconv/loop.c (single loop): Fix assertion in storing of
22167         remaining bytes.
22168
22169         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22170
22171 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22172
22173         * posix/getconf.c: Update copyright year.
22174         * nss/getent.c: Likewise.
22175         * nss/makedb.c: Likewise.
22176         * iconv/iconvconfig.c: Likewise.
22177         * iconv/iconv_prog.c: Likewise.
22178         * elf/ldconfig.c: Likewise.
22179         * elf/pldd.c: Likewise.
22180         * elf/sotruss.ksh: Likewise.
22181         * catgets/gencat.c: Likewise.
22182         * csu/version.c: Likewise.
22183         * elf/ldd.bash.in: Likewise.
22184         * elf/sprof.c (print_version): Likewise.
22185         * locale/programs/locale.c: Likewise.
22186         * locale/programs/localedef.c: Likewise.
22187         * login/programs/pt_chown.c: Likewise.
22188         * nscd/nscd.c (print_version): Likewise.
22189         * debug/xtrace.sh: Likewise.
22190         * malloc/memusage.sh: Likewise.
22191         * malloc/mtrace.pl: Likewise.
22192         * debug/catchsegv.sh: Likewise.
22193
22194 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22195
22196         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22197         pure attribute.
22198
22199 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22200
22201         [BZ #13533]
22202         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22203         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22204         transformations.
22205         * iconv/gconv_int.h: Likewise.
22206         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22207         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22208         from libc for GLIBC_2.16.
22209         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22210         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22211         * wcsmbs/uchar.h: Really define mbstate_t.
22212         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22213         * wcsmbs/c16rtomb.c: New file.
22214         * wcsmbs/mbrtoc16.c: New file.
22215         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22216         for C/POSIX locale.
22217         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22218         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22219
22220         * wcsmbs/wchar.h: Add missing __restrict.
22221
22222 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22223
22224         [BZ #13532]
22225         * time/Makefile (routines): Add timespec_get.
22226         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22227         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22228         timespec for ISO C11.
22229         * time/timespec_get.c: New file.
22230         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22231         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22232
22233         [BZ #13531]
22234         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22235         * stdlib/stdlib.h: Declare aligned_alloc.
22236         * Versions.def: Add GLIBC_2.16 for libc.
22237         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22238
22239         [BZ 13527]
22240         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22241         ISO C11.
22242
22243         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22244         code.
22245
22246         [BZ #13528]
22247         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22248
22249         [BZ #13529]
22250         * assert/assert.h (static_assert): Define.
22251
22252         * version.h: Update for 2.16 development version.
22253
22254         [BZ #13526]
22255         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22256         _ISOC11_SOURCE.
22257
22258         * version.h (RELEASE): Bump for 2.15 release.
22259         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22260
22261         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22262         Patch by Marek Polacek <mpolacek@redhat.com>.
22263
22264         * bits/byteswap.h: Protect long long constants with __extension__.
22265         * sysdeps/i386/bits/byteswap.h: Likewise.
22266         * sysdeps/ia64/bits/byteswap.h: Likewise.
22267         * sysdeps/s390/bits/byteswap.h: Likewise.
22268         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22269
22270 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22271
22272         [BZ #13540]
22273         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22274         destination buffer.
22275         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22276
22277 2011-12-23  Marek Polacek  <polacek@redhat.com>
22278
22279         * elf/dl-addr.c (determine_info): Add inline keyword.
22280         * elf/tst-auditmod4b.c (check_avx): Likewise.
22281         * elf/tst-auditmod6b.c (check_avx): Likewise.
22282         * elf/tst-auditmod6c.c (check_avx): Likewise.
22283         * elf/tst-auditmod7b.c (check_avx): Likewise.
22284
22285 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22286
22287         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22288         !__SSE_MATH__.
22289
22290 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22291
22292         [BZ #13540]
22293         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22294         processing for last bytes.
22295
22296 2011-08-06  Bruno Haible  <bruno@clisp.org>
22297
22298         [BZ #13061]
22299         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22300         U+0385, not to U+1FEE.
22301
22302         [BZ #13062]
22303         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22304         entry for U+00A5 U+0301.
22305
22306 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22307
22308         [BZ #13166]
22309         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22310         buffer for the output is too small.
22311
22312         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22313         optimization.
22314
22315         [BZ #13185]
22316         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22317         SSE flags if possible.
22318
22319 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22320
22321         [BZ #13540]
22322         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22323         processing for last bytes.
22324
22325 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22326
22327         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22328         (syscall-list-default-options, syscall-list-default-condition)
22329         (syscall-list-includes): Define.
22330         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22331         list of ABIs and options and #if conditions for each ABI.  Do not
22332         handle common syscalls between ABIs specially.
22333         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22334         Remove.
22335         (syscall-list-variants, syscall-list-32bit-options)
22336         (syscall-list-32bit-condition, syscall-list-64bit-options)
22337         (syscall-list-64bit-condition): Define.
22338         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22339         (syscall-list-variants, syscall-list-32bit-options)
22340         (syscall-list-32bit-condition, syscall-list-64bit-options)
22341         (syscall-list-64bit-condition): Define.
22342         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22343         Remove.
22344         (syscall-list-variants, syscall-list-32bit-options)
22345         (syscall-list-32bit-condition, syscall-list-64bit-options)
22346         (syscall-list-64bit-condition): Define.
22347         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22348         Remove.
22349         (syscall-list-variants, syscall-list-32bit-options)
22350         (syscall-list-32bit-condition, syscall-list-64bit-options)
22351         (syscall-list-64bit-condition): Define.
22352
22353 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22354
22355         * locale/iso-639.def: Add brx entry.
22356
22357         [BZ #13328]
22358         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22359         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22360
22361         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22362         __feraiseexcept_renamed.
22363
22364 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22365
22366         [BZ #13538]
22367         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22368         EPOLLET with unsigned values.
22369         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22370         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22371
22372         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22373         to large cancellation.
22374         * math/s_cacoshf.c: Likewise.
22375         * math/s_cacoshl.c: Likewise.
22376
22377 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22378
22379         [BZ #13305]
22380         [BZ #12786]
22381         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22382         * math/s_cacoshf.c: Likewise.
22383         * math/s_cacoshl.c: Likewise.
22384
22385 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22386
22387         [BZ #13439]
22388         * iconv/gconv.h: Define __GCONV_SWAP.
22389         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22390         * iconvdata/utf-16.c: Likewise.
22391         * iconvdata/utf-32.c: Likewise.
22392
22393 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22394
22395         [BZ #13524]
22396         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22397         numerator after shifting it by one limb.
22398
22399 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22400
22401         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22402         under [__USE_EXTERN_INLINES].
22403
22404 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22405
22406         [BZ #13446]
22407         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22408
22409 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22410
22411         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22412         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22413         optimized code.
22414         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22415         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22416         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22417         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22418         for strncasecmp/strncasecmp_l compilation.
22419         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22420         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22421
22422 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22423
22424         [BZ #13484]
22425         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22426         of __asm__.
22427
22428 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22429
22430         [BZ #13506]
22431         * time/tzfile.c (__tzfile_read): Check values from file header.
22432
22433 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22434
22435         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22436         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22437         * powerpc/powerpc32/dl-start.S: Likewise.
22438         * powerpc/powerpc32/elf/start.S: Likewise.
22439         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22440         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22441         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22442         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22443         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22444         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22445         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22446         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22447         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22448         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22449         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22450         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22451         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22452         * powerpc/powerpc32/memset.S: Likewise.
22453         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22454         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22455         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22456         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22457         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22458         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22459         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22460         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22461         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22462         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22463         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22464         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22465         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22466
22467 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22468
22469         * math/libm-test.inc: Added more nearbyint tests.
22470         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22471         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22472         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22473         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22474
22475 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22476
22477         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22478         FD_CLOEXEC.
22479
22480 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22481
22482         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22483         Add wcscpy-ssse3 wcscpy-c.
22484         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22485         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22486         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22487         * sysdeps/x86_64/wcschr.S: New file.
22488         * sysdeps/x86_64/wcsrchr.S: New file.
22489         * string/test-strcmp.c: Remove checking of wcscmp function for
22490         wrong alignments.
22491         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22492         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22493         wcsrchr-sse2 wcsrchr-c.
22494         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22495         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22496         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22497         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22498         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22499         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22500         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22501         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22502         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22503         * wcsmbc/wcschr.c (WCSCHR): New macro.
22504
22505 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22506
22507         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22508         * wcsmbs/test-wcsrchr.c: New file.
22509         * string/test-strrchr.c: Add wcsrchr support.
22510         (WIDE): New macro.
22511         * wcsmbs/test-wcscpy.c: New file.
22512         * string/test-strcpy.c: Add wcscpy support.
22513         (WIDE): New macro.
22514
22515 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22516
22517         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22518         the inner loop.
22519
22520 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22521
22522         [BZ #13472]
22523         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22524
22525 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22526
22527         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22528         Minor optimizations.
22529
22530         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22531         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22532         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22533
22534 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22535
22536         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22537         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22538         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22539         for gcc to avoid warnings.
22540         * inet/Makefile (tests): Add tst-checks.
22541         * inet/tst-checks.c: New file.
22542
22543         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22544         warning.
22545
22546         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22547         __wmemcmp_sse2.
22548
22549         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22550         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22551
22552         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22553
22554 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22555
22556         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22557         problem.
22558
22559         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22560
22561 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22562
22563         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22564         conditional on GCC version.
22565         (__arch_compare_and_exchange_val_8_acq)
22566         (__arch_compare_and_exchange_val_16_acq)
22567         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22568         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22569         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22570
22571 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22572
22573         * sysdeps/sh/backtrace.c: New file.
22574
22575 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22576
22577         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22578         parenthesis.
22579
22580 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22581
22582         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22583         falling back to utime.
22584
22585 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22586
22587         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22588         expectations for float.
22589
22590 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22591
22592         * locale/weight.h (findidx): Add parameter len.
22593         * locale/weightwc.h (findidx): Likewise.
22594         * posix/fnmatch_loop.c (FCT): Adjust caller.
22595         * posix/regcomp.c (build_equiv_class): Likewise.
22596         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22597         * posix/regexec.c (check_node_accept_bytes): Likewise.
22598         * string/strcoll_l.c (STRCOLL): Likewise.
22599         * string/strxfrm_l.c (STRXFRM): Likewise.
22600
22601 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22602
22603         * Makefile.in: Remove CVSOPT handling.
22604         * configure.in: Remove use of AC_REVISION.
22605         * iconvdata/Makefile (distribute): No need to filter out CVS.
22606         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22607         handling.
22608
22609 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22610
22611         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22612         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22613         [USE_AS_STRNCASECMP_L]: Likewise.
22614         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22615         NO_TLS_DIRECT_SEG_REFS.
22616         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22617         Fix argument offsets for non-PIC.
22618         [USE_AS_STRNCASECMP_L]: Likewise.
22619         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22620         NO_TLS_DIRECT_SEG_REFS.
22621
22622 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22623
22624         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22625         O_CLOEXEC.
22626         * locale/loadlocale.c (_nl_load_locale): Likewise.
22627
22628 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22629
22630         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22631         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22632         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22633         (SYSCALL_GETTIME): Set errno on error.
22634
22635         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22636         count references to noai6ai_cached.
22637
22638 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22639
22640         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22641
22642         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22643         FD_CLOEXEC for /proc/self/maps.
22644
22645         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22646         FD_CLOEXEC for /proc/meminfo.
22647
22648         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22649         gai.conf.
22650
22651         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22652         FD_CLOEXEC for given file.
22653
22654         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22655
22656         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22657         FD_CLOEXEC for /etc/hosts.
22658         (_gethtent): Likewise.
22659
22660         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22661
22662         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22663         cancellation and set FD_CLOEXEC for /etc/netgroup.
22664
22665         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22666         reading /etc/publickey.
22667
22668         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22669         allow cancellation when reading /etc/group.
22670
22671         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22672         cancellation.
22673         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22674
22675         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22676         when using data file.
22677
22678         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22679
22680         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22681         (write_nis_obj): Use "c" and "e" in fopen.
22682
22683         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22684
22685         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22686
22687         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22688
22689         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22690
22691         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22692         locale.alias.
22693
22694         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22695
22696         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22697
22698         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22699
22700         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22701         file parsing and set FD_CLOEXEC.
22702
22703 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22704
22705         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22706
22707 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22708
22709         * malloc/arena.c (arena_get2): Don't call reused_arena when
22710         _int_new_arena failed.
22711
22712 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22713
22714         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22715         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22716         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22717         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22718         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22719         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22720         to compile strcasecmp and strncasecmp.
22721         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22722         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22723
22724         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22725
22726 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22727
22728         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22729         locale-defines.sym to gen-as-const-headers.
22730         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22731         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22732         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22733         to compile strcasecmp and strncasecmp.
22734         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22735         strcasecmp_l and strncasecmp_l.
22736         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22737         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22738         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22739         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22740         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22741         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22742         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22743         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22744         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22745         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22746         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22747
22748 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22749
22750         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22751         result of SYSDEP_GETTIME_CPU to retval.
22752         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22753         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22754
22755         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22756         variable.
22757
22758         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22759         mantissa words.
22760         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22761
22762         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22763         from unused variable.
22764
22765         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22766         DWARF definitions.
22767         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22768         for assembling.
22769
22770         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22771         over namespaces.
22772
22773         * sunrpc/rpc_prot.c (rejected): Fix case value.
22774
22775         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22776         unsigned long long int to avoid warnings in shift.
22777
22778         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22779         of use of trans.
22780         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22781         variable tmp.
22782
22783         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22784         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22785         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22786
22787         * nis/nis_table.c (nis_list): Use variable of correct type for
22788         result of __follow_path call.
22789
22790 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22791
22792         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22793         of math functions ceil, trunc, floor, round, and sqrt, when
22794         avaliable on the platform.
22795         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22796         name clash.
22797         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22798         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22799         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22800
22801 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22802
22803         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22804         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22805
22806 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22807
22808         * include/unistd.h: Fix __readlink return type.
22809         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22810
22811 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22812
22813         * stdlib/ucontext.h: Undo last change for makecontext.
22814
22815 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22816
22817         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22818
22819         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22820         * setjmp/setjmp.h: Mark functions as non-leaf.
22821         * setjmp/bits/setjmp2.h: Likewise.
22822         * stdlib/ucontext.h: Likewise.
22823
22824 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22825
22826         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22827         (reused_arena): Don't check arena limit.
22828         (arena_get2): Atomically check arena limit.
22829
22830 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22831
22832         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22833         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22834
22835         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22836         instructions.
22837
22838 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22839
22840         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22841         handler when locking.
22842
22843         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22844         Fix size of allocated buffer.
22845
22846 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22847
22848         [BZ #10103]
22849         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22850         declarations for long double functions.
22851         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22852
22853         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22854
22855 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22856
22857         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22858         installed.
22859
22860         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22861         is disabled.
22862
22863 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22864
22865         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22866
22867 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22868
22869         * include/alloca.h (stackinfo_alloca_round): Define.
22870         (extend_alloca): Use it.
22871         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22872         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22873         here.
22874
22875         * scripts/check-local-headers.sh: Ignore libaudit.h.
22876
22877         * nscd/Makefile (extra-objs): Make recursively expanded.
22878
22879 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22880
22881         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22882         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22883
22884         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22885         * posix/tst-rfc3484-2.c: Likewise.
22886         * posix/tst-rfc3484-3.c: Likewise.
22887
22888         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22889         process_vm_writev.
22890         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22891         process_vm_writev.
22892         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22893         process_vm_writev from libc using GLIBC_2.15 version.
22894
22895         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22896
22897 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22898
22899         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22900         stack usage.
22901
22902 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22903
22904         [BZ #13367]
22905         * nss/getent.c (initgroups_keys): Show error message in case no group
22906         names are given.
22907
22908         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22909         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22910         __bump_nl_timestamp.
22911         * nscd/connections (nscd_init): When host database is served open
22912         netlink socket and request notification about configuration changes.
22913         (main_loop_poll): Track netlink file descriptor and bump timestamp
22914         in case data becomes available.
22915         (main_loop_epoll): Likewise.
22916         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22917         (database_pers_head): Add extra_data fileds.
22918         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22919         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22920         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22921         Adjust caller.
22922         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22923         in6ai data, call __free_in6ai.
22924         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22925         Add -DHAVE_NETLINK.
22926         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22927         interface information.  Reuse previous data if netlink timestamp
22928         is not changed.
22929         (__bump_nl_timestamp): New function.
22930         (__free_in6ai): New function.
22931
22932 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22933
22934         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22935         close_not_cancel_no_status here.
22936         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22937
22938 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22939
22940         [BZ #13276]
22941         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22942         return value.
22943
22944         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22945         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22946         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22947
22948 2011-07-03  Andreas Jaeger  <aj@suse.de>
22949
22950         [BZ #10709]
22951         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22952         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22953         * math/libm-test.inc (sin_test): Add test case.
22954
22955 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22956
22957         [BZ #13337]
22958         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22959         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22960
22961         * elf/chroot_canon.c (chroot_canon): Cleanups.
22962
22963         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22964
22965         [BZ #13335]
22966         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22967         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22968
22969         * string/test-strchr.c: Make usable for strchrnul testing.
22970         * string/test-strchrnul.c: New file.
22971         * string/Makefile (strop-tests): Add strchrnul.
22972
22973         * po/it.po: Update from translation team.
22974         * po/es.po: Likewise.
22975
22976 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22977
22978         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22979         the three constants needed as parameters.  Drop the others.
22980         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22981         __m128i_strloadu_tolower.
22982         Create and initialize variable zero and use it in all the places
22983         where _mm_setzero_si128 was used.
22984
22985         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22986         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22987         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22988         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
22989         anymore.
22990         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
22991         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
22992         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
22993         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
22994         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
22995         __mpranred, __mptan.
22996         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
22997         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
22998         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
22999         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23000         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23001         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23002         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23003         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23004         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23005
23006 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23007
23008         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23009         redefine if SHARED.
23010         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23011
23012         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23013         wide char related routines to wcsmbs subdir.
23014
23015 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23016
23017         [BZ #13344]
23018         * misc/sys/cdefs.h (__THROWNL): Define.
23019         * posix/unistd.h: Use __THREADNL instead of __THREAD
23020         for memory synchronization functions.
23021
23022 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23023
23024         [BZ #13349]
23025         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23026         doesn't exist.
23027         * manual/stdio.texi (Obstack Streams): Node removed.
23028
23029 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23030
23031         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23032         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23033         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23034
23035         * math/math_private.h (math_force_eval): Allow non-addressable
23036         arguments.
23037         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23038
23039 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23040
23041         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23042         file is not needed.
23043
23044         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23045         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23046         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23047         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23048         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23049         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23050         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23051         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23052         Add AVX variants.
23053         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23054         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23055         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23056         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23057         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23058         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23059         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23060         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23061         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23062         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23063         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23064         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23065         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23066         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23067         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23068         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23069         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23070         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23071         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23072
23073         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23074         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23075
23076         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23077         place.  Use VEX encoding when compiling for AVX.
23078
23079 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23080
23081         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23082         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23083
23084         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23085
23086 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23087
23088         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23089         useless if() expression.
23090         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23091         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23092         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23093         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23094         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23095         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23096         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23097         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23098         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23099         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23100         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23101         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23102         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23103         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23104         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23105         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23106         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23107         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23108         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23109
23110         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23111
23112 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23113
23114         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23115         condition.
23116         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23117
23118 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23119
23120         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23121         .text section.  Avoid duplicate constants.
23122         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23123         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23124         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23125         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23126         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23127         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23128         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23129         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23130         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23131         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23132         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23133         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23134         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23135         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23136         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23137         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23138         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23139         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23140         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23141         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23142         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23143         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23144         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23145         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23146         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23147         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23148         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23149         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23150         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23151         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23152         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23153         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23154         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23155         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23156         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23157         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23158         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23159         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23160         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23161         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23162         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23163         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23164         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23165         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23166         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23167
23168 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23169
23170         * sysdeps/x86_64/dla.h: Move to ...
23171         * sysdeps/x86_64/fpu/dla.h: ...here.
23172         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23173         situations.  Use __builtin_fma only for gcc 4.6 and up.
23174
23175         * config.make.in: Add have-mfma4 entry.
23176         * configure.in: Substitute libc_cv_cc_fma4.
23177         * math/Makefile (dbl-only-routines): Add sincostab.
23178         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23179         Use __sincostab not sincos.
23180         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23181         name is a macro.
23182         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23183         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23184         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23185         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23186         using __copysign.
23187         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23188         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23189         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23190         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23191         and __inv.
23192         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23193         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23194         __copysign.
23195         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23196         define aliases when function name is a macro.
23197         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23198         sysdeps/ieee754/dbl-64/sincos.tbl.
23199         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23200         fma4-enabled routines.
23201         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23202         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23203         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23204         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23205         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23206         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23207         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23208         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23209         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23210         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23211         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23212         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23213         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23214         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23215         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23216         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23217         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23218         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23219         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23220         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23221         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23222         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23223         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23224         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23225         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23226         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23227         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23228         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23229         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23230         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23231
23232         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23233         rename.
23234         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23235         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23236         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23237         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23238         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23239         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23240         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23241         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23242
23243 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23244
23245         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23246
23247 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23248
23249         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23250
23251         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23252         prediction.
23253         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23254
23255         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23256         Remove unused variable magic_bits.
23257         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23258
23259         * string/strnlen.c: Define and use STRNLEN macro.
23260         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23261         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23262         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23263         * wcsmbs/wcslen.c: Define and use WCSLEN.
23264         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23265         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23266         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23267         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23268         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23269         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23270         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23271
23272 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23273
23274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23275         strnlen-sse2-no-bsf.
23276         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23277         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23278         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23279         Add strnlen support.
23280         (USE_AS_STRNLEN): New macro.
23281         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23282         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23283         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23284         * sysdeps/x86_64/wcslen.S: New file.
23285
23286 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23287
23288         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23289         XMM-moves are used for copying on small sizes.
23290
23291 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23292
23293         * wcsmbs/Makefile (strop-tests): Add wcschr.
23294         * wcsmbs/test-wcschr.c: New file.
23295         * string/test-strchr.c: Update.
23296         Add wcschr support.
23297         (WIDE): New macro.
23298
23299 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23300
23301         * wcsmbs/Makefile (strop-tests): Add wcslen.
23302         * wcsmbs/test-wcslen.c: New file.
23303         * string/test-strlen.c: Update.
23304         Add wcslen support.
23305         (WIDE): New macro.
23306
23307 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23308
23309         * po/it.po: Update from translation team.
23310
23311 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23312
23313         * sysdeps/x86_64/wcscmp.S: Update.
23314         Fix wrong comparison semantics.
23315         wcscmp shall use signed comparison not unsigned.
23316         Don't use substraction to avoid overflow bug.
23317         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23318         * wcsmbc/wcscmp.c: Likewise.
23319         * string/test-strcmp.c: Likewise.
23320         Add new tests to check cases with negative values.
23321
23322 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23323
23324         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23325         * sysdeps/x86_64/dla.h: ...here.  New file.
23326         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23328         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23329         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23330         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23331         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23332         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23333         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23334         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23335
23336 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23337
23338         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23339         __ynl_finite aliases.
23340
23341 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23342
23343         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23344
23345         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23346         define DLA_FMA.
23347         [DLA_FMA] (EMULV): Use DLA_FMA.
23348         [DLA_FMA] (MUL12): Use EMULV.
23349         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23350         that are not needed.
23351         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23352         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23353         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23354         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23356         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23358
23359 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23360
23361         * math/s_nan.c: Undef __nan.
23362         * math/s_nanf.c: Undef __nanf.
23363         * math/s_nanl.c: Undef __nanl.
23364         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23365         "math_private.h".
23366
23367 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23368
23369         * math/s_catan.c: Add branch predictions.
23370         * math/s_catanf.c: Likewise.
23371         * math/s_catanh.c: Likewise.
23372         * math/s_catanhf.c: Likewise.
23373         * math/s_catanhl.c: Likewise.
23374         * math/s_catanl.c: Likewise.
23375         * math/s_cexp.c: Likewise.
23376         * math/s_cexpf.c: Likewise.
23377         * math/s_cexpl.c: Likewise.
23378         * math/s_clog.c: Likewise.
23379         * math/s_clog10.c: Likewise.
23380         * math/s_clog10f.c: Likewise.
23381         * math/s_clog10l.c: Likewise.
23382         * math/s_clogf.c: Likewise.
23383         * math/s_clogl.c: Likewise.
23384         * math/s_csqrt.c: Likewise.
23385         * math/s_csqrtf.c: Likewise.
23386         * math/s_csqrtl.c: Likewise.
23387         * math/s_ctanf.c: Likewise.
23388         * math/s_ctanh.c: Likewise.
23389         * math/s_ctanhf.c: Likewise.
23390         * math/s_ctanhl.c: Likewise.
23391         * math/s_ctanl.c: Likewise.
23392
23393         * math/math_private.h: Define __nan, __nanf, __nanl.
23394         * math/s_cacosh.c: Include <math_private.h>.
23395         * math/s_cacoshl.c: Likewise.
23396         * math/s_casinh.c: Likewise.
23397         * math/s_casinhf.c: Likewise.
23398         * math/s_casinhl.c: Likewise.
23399         * math/s_ccos.c: Rely entire on ccosh.
23400         * math/s_ccosf.c: Rely entire on ccoshf.
23401         * math/s_ccosl.c: Rely entirely on ccoshl.
23402         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23403         Remove tests for FE_INVALID.
23404         * math/s_ccoshf.c: Likewise.
23405         * math/s_ccoshl.c: Likewise.
23406         * math/s_csin.c: Likewise.
23407         * math/s_csinf.c: Likewise.
23408         * math/s_csinh.c Likewise.
23409         * math/s_csinhf.c: Likewise.
23410         * math/s_csinhl.c: Likewise.
23411         * math/s_csinl.c: Likewise.
23412         * math/s_ctan.c: Likewise.
23413         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23414         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23415         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23416
23417 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23418
23419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23420         compilation problems.
23421
23422         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23423         __builtin_expect.
23424
23425 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23426
23427         * sysdeps/i386/configure.in: Test for -mfma4 option.
23428         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23429         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23430         COMMON_CPUID_INDEX_80000001.
23431         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23432         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23433         use it if FMA3 is not supported.
23434         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23435
23436         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23437         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23438
23439 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23440
23441         [BZ #12892]
23442         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23443         it would create a cycle with a link time dependency.
23444
23445 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23446
23447         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23448         instruction.
23449         * string/Makefile (strop-tests): Add rawmemchr.
23450         * string/test-rawmemchr.c: New file.
23451
23452         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23453         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23454         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23455         when compiling str{,n}casecmp and when AVX is available.  Hook up
23456         new optimized code in initializers.
23457
23458 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23459
23460         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23461         __feraiseexcept instead of feraiseexcept.
23462
23463 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23464
23465         * math/math_private.h: Define defaults for libc_fetestexcept and
23466         libc_feupdateenv.
23467         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23468         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23469         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23470         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23471         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23472         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23473         libc_fetestexcept and libc_feupdateenv.
23474
23475         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23476         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23477         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23478         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23479         libc_feholdexcept_setround.
23480
23481         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23482         Add s_nearbyint-c and s_nearbyintf-c.
23483         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23484         nearbyintf inlines.
23485         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23486         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23487         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23488         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23489
23490         * math/math_private.h: Define defaults for libc_fegetround,
23491         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23492         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23493         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23494         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23495         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23496         standard functions.
23497         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23498         Remove comments and hacks for old compiler versions.
23499         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23500         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23501         libc_feholdexceptl.
23502
23503 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23504
23505         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23506         (__feraiseexcept_renamed): Add __NTH.
23507         (feraiseexcept): Add __NTH.  Rename local variables to fix
23508         namespace violations.
23509
23510 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23511
23512         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23513
23514         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23515
23516         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23517         recently added interfaces.
23518         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23519
23520         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23521         about macro parameter expansion.
23522
23523         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23524         __NO_MATH_INLINES is defined.  Cleanups.
23525
23526         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23527         and __floorf is target has SSE4.1.
23528         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23529         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23530         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23531         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23532
23533         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23534         name.
23535         (floorf): Likewise.
23536
23537         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23538
23539 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23540
23541         * misc/sys/cdefs.h: Fix last change.
23542
23543         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23544         database lookup.
23545
23546 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23547
23548         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23549
23550         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23551         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23552         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23553         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23554         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23555         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23556         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23557         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23558         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23559         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23560         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23561         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23562         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23563         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23564         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23565         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23566         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23567         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23568         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23569         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23570         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23571         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23572
23573         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23574         ceil, ceilf, floor, floorf.
23575
23576         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23577         Perform IRELATIVE relocations last.
23578
23579         * elf/do-rel.h: Add another parameter nrelative, replacing the
23580         local variable with the same name.  Change name of the function
23581         to end in Rel or Rela (uppercase).
23582         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23583         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23584         elf_dynamic_do_##reloc function.
23585
23586 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23587
23588         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23589         is sufficient, at least on modern CPUs.
23590
23591         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23592
23593         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23594         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23595
23596         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23597         __expl_finite.
23598         * math/bits/math-finite.h: Add entries for exp.
23599         * math/e_expl.c: Add __*_finite alias.
23600         * sysdeps/i386/fpu/e_exp.S: Likewise.
23601         * sysdeps/i386/fpu/e_expf.S: Likewise.
23602         * sysdeps/i386/fpu/e_expl.c: Likewise.
23603         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23604         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23605         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23606         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23607         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23608         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23609         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23610
23611         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23612         is sufficient, at least on modern CPUs.
23613
23614         * ctype/ctype-info.c (__ctype_init): Define.
23615         * include/ctype.h (__ctype_init): Declare.
23616         (__ctype_b_loc): The variable is always initialized.
23617         (__ctype_toupper_loc): Likewise.
23618         (__ctype_tolower_loc): Likewise.
23619         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23620         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23621
23622 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23623
23624         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23625
23626         * configure.in: Also look in $cxxmachine/include for C++ system
23627         headers.
23628
23629 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23630
23631         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23632         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23633         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23634         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23635         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23636         (USE_AS_WMEMCMP): New macro.
23637         Fixing indents.
23638         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23639         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23640         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23641         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23642         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23643         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23644         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23645         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23646         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23647         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23648         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23649         (USE_AS_WMEMCMP): New macro.
23650         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23651         * sysdeps/string/test-memcmp.c: Update.
23652         Fix simple_wmemcmp.
23653         Add new tests.
23654         * wcsmbs/wmemcmp.c: Update.
23655         (WMEMCMP): New macro.
23656         Fix overflow bug.
23657
23658 2011-10-12  Andreas Jaeger  <aj@suse.de>
23659
23660         [BZ #13268]
23661         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23662
23663 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23664
23665         * libio/iofwide.c (do_length): Avoid warning.
23666
23667         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23668
23669 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23670
23671         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23672
23673         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23674         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23675         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23676         * sysdeps/i386/i686/fpu/e_log.S: New file.
23677         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23678         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23679
23680         * ctype/ctype.h: Add support for inlined isXXX functions when
23681         compiling C++ code.
23682
23683 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23684
23685         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23686
23687         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23688
23689 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23690
23691         [BZ #13291]
23692         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23693
23694 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23695
23696         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23697         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23698         feraiseexcept.
23699
23700         * sysdeps/x86_64/memrchr.S: Check for zero size.
23701
23702         * string/stratcliff.c: Add memrchr tests.
23703
23704 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23705
23706         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23707         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23708         rawmemchr-sse2 rawmemchr-sse2-bsf.
23709         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23710         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23711         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23712         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23713         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23714         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23715         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23716         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23717         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23718         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23719         * string/memrchr.c (MEMRCHR): New macro.
23720
23721 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23722
23723         Add integration with gcc's -ffinite-math-only and optimize wrapper
23724         functions in libm.
23725         * Versions.def: Define GLIBC_2.15 version for libm.
23726         * math/Makefile (headers): Add bits/math-finite.h.
23727         * math/bits/math-finite.h: New file.
23728         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23729         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23730         * math/e_acoshl.c: Add __*_finite alias.
23731         * math/e_acosl.c: Likewise.
23732         * math/e_asinl.c: Likewise.
23733         * math/e_atan2l.c: Likewise.
23734         * math/e_atanhl.c: Likewise.
23735         * math/e_coshl.c: Likewise.
23736         * math/e_exp10.c: Likewise.
23737         * math/e_exp10f.c: Likewise.
23738         * math/e_exp10l.c: Likewise.
23739         * math/e_exp2l.c: Likewise.
23740         * math/e_fmodl.c: Likewise.
23741         * math/e_gammal_r.c: Likewise.
23742         * math/e_hypotl.c: Likewise.
23743         * math/e_j0l.c: Likewise.
23744         * math/e_j1l.c: Likewise.
23745         * math/e_jnl.c: Likewise.
23746         * math/e_lgammal_r.c: Likewise.
23747         * math/e_log10l.c: Likewise.
23748         * math/e_log2l.c: Likewise.
23749         * math/e_logl.c: Likewise.
23750         * math/e_powl.c: Likewise.
23751         * math/e_sinhl.c: Likewise.
23752         * math/e_sqrtl.c: Likewise.
23753         * math/e_scalb.c: Completely rewritten and optimized.
23754         * math/e_scalbf.c: Likewise.
23755         * math/e_scalbl.c: Likewise.
23756         * math/w_acos.c: Likewise.
23757         * math/w_acosf.c: Likewise.
23758         * math/w_acosl.c: Likewise.
23759         * math/w_acosh.c: Likewise.
23760         * math/w_acoshf.c: Likewise.
23761         * math/w_acoshl.c: Likewise.
23762         * math/w_asin.c: Likewise.
23763         * math/w_asinf.c: Likewise.
23764         * math/w_asinl.c: Likewise.
23765         * math/w_atan2.c: Likewise.
23766         * math/w_atan2f.c: Likewise.
23767         * math/w_atan2l.c: Likewise.
23768         * math/w_atanh.c: Likewise.
23769         * math/w_atanhf.c: Likewise.
23770         * math/w_atanhl.c: Likewise.
23771         * math/w_exp10.c: Likewise.
23772         * math/w_exp10f.c: Likewise.
23773         * math/w_exp10l.c: Likewise.
23774         * math/w_fmod.c: Likewise.
23775         * math/w_fmodf.c: Likewise.
23776         * math/w_fmodl.c: Likewise.
23777         * math/w_j0.c: Likewise.
23778         * math/w_j0f.c: Likewise.
23779         * math/w_j0l.c: Likewise.
23780         * math/w_j1.c: Likewise.
23781         * math/w_j1f.c: Likewise.
23782         * math/w_j1l.c: Likewise.
23783         * math/w_jn.c: Likewise.
23784         * math/w_jnf.c: Likewise.
23785         * math/w_log.c: Likewise.
23786         * math/w_logf.c: Likewise.
23787         * math/w_logl.c: Likewise.
23788         * math/w_log10.c: Likewise.
23789         * math/w_log10f.c: Likewise.
23790         * math/w_log10l.c: Likewise.
23791         * math/w_log2.c: Likewise.
23792         * math/w_log2f.c: Likewise.
23793         * math/w_log2l.c: Likewise.
23794         * math/w_pow.c: Likewise.
23795         * math/w_powf.c: Likewise.
23796         * math/w_powl.c: Likewise.
23797         * math/w_remainder.c: Likewise.
23798         * math/w_remainderf.c: Likewise.
23799         * math/w_remainderl.c: Likewise.
23800         * math/w_scalb.c: Likewise.
23801         * math/w_scalbf.c: Likewise.
23802         * math/w_scalbl.c: Likewise.
23803         * math/w_sqrt.c: Likewise.
23804         * math/w_sqrtf.c: Likewise.
23805         * math/w_sqrtl.c: Likewise.
23806         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23807         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23808         used.
23809         * math/math_private.h: Declare __kernel_standard_f.
23810         * math/w_cosh.c: Remove cruft and optimize a bit.
23811         * math/w_coshf.c: Likewise.
23812         * math/w_coshl.c: Likewise.
23813         * math/w_exp2.c: Likewise.
23814         * math/w_exp2f.c: Likewise.
23815         * math/w_exp2l.c: Likewise.
23816         * math/w_hypot.c: Likewise.
23817         * math/w_hypotf.c: Likewise.
23818         * math/w_hypotl.c: Likewise.
23819         * math/w_lgamma.c: Likewise.
23820         * math/w_lgamma_r.c: Likewise.
23821         * math/w_lgammaf.c: Likewise.
23822         * math/w_lgammaf_r.c: Likewise.
23823         * math/w_lgammal.c: Likewise.
23824         * math/w_lgammal_r.c: Likewise.
23825         * math/w_sinh.c: Likewise.
23826         * math/w_sinhf.c: Likewise.
23827         * math/w_sinhl.c: Likewise.
23828         * math/w_tgamma.c: Likewise.
23829         * math/w_tgammaf.c: Likewise.
23830         * math/w_tgammal.c: Likewise.
23831         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23832         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23833         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23834         Minor optimizations.  Pretty printing.  Remove cruft.
23835         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23836         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23837         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23838         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23839         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23840         * sysdeps/i386/fpu/e_asin.S: Likewise.
23841         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23842         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23843         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23844         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23845         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23846         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23847         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23848         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23849         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23850         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23851         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23852         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23853         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23854         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23855         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23856         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23857         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23858         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23859         * sysdeps/i386/fpu/e_log.S: Likewise.
23860         * sysdeps/i386/fpu/e_log10.S: Likewise.
23861         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23862         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23863         * sysdeps/i386/fpu/e_log2.S: Likewise.
23864         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23865         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23866         * sysdeps/i386/fpu/e_logf.S: Likewise.
23867         * sysdeps/i386/fpu/e_logl.S: Likewise.
23868         * sysdeps/i386/fpu/e_pow.S: Likewise.
23869         * sysdeps/i386/fpu/e_powf.S: Likewise.
23870         * sysdeps/i386/fpu/e_powl.S: Likewise.
23871         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23872         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23873         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23874         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23875         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23876         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23877         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23878         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23879         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23880         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23881         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23882         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23883         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23884         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23885         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23886         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23887         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23888         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23889         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23890         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23891         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23892         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23893         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23894         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23895         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23896         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23897         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23898         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23899         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23900         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23901         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23902         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23903         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23904         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23905         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23906         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23907         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23908         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23909         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23910         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23911         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23912         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23913         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23914         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23915         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23916         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23917         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23918         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23919         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23920         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23921         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23922         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23923         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23924         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23925         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23926         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23927         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23928         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23929         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23930         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23931         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23932         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23933         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23934         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23935         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23936         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23937         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23938         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23939         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23940         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23941         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23942         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23943         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23944         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23945         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23946         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23947         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23948         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23949         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23950         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23951         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23952         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23953         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23954         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23956         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23957         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23958         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23959         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23960         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23961         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23962         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23963         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23964         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23965         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23966         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23967         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23968         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23969         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23970         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23971         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23972         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23973         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23974         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23975         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23976         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23977         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23978         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23979         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23980         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23981         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23982         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23983         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23984         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23985         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23986         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23987         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23988         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
23989         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
23990         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
23991         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
23992         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
23993         (__isnanf): Likewise.
23994         (__isinf_ns): Likewise.
23995         (__isinf_nsf): Likewise.
23996         (__finite): Likewise.
23997         (__finitef): Likewise.
23998         (__ieee754_sqrt): Define as macro.
23999         (__ieee754_sqrtf): Define as macro.
24000         (__ieee754_sqrtl): Define as macro.
24001         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24002         inlined copy.
24003         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24004         __FINITE_MATH_ONLY__ consistent.
24005         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24006
24007 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24008
24009         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24010         of rawmemchr.
24011
24012         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24013
24014 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24015
24016         * po/ja.po: Update from translation team.
24017
24018 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24019
24020         * locale/programs/locarchive.c (prepare_address_space): New function.
24021         (create_archive, enlarge_archive, open_archive): Use it.
24022
24023         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24024         inside [SHARED], where it is used.
24025
24026         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24027
24028         * nss/getent.c (netgroup_keys): Remove unused variable.
24029         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24030
24031 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24032
24033         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24034         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24035         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24036         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24037         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24038         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24039         * math/Makefile (libm-calls): Add s_isinf_ns.
24040         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24041         * math/multc3.c: Likewise.
24042         * math/s_casin.c: Likewise.
24043         * math/s_casinf.c: Likewise.
24044         * math/s_casinl.c: Likewise.
24045         * math/s_ccos.c: Likewise.
24046         * math/s_ccosf.c: Likewise.
24047         * math/s_ccosl.c: Likewise.
24048         * math/s_ctan.c: Likewise.
24049         * math/s_ctanf.c: Likewise.
24050         * math/s_ctanh.c: Likewise.
24051         * math/s_ctanhf.c: Likewise.
24052         * math/s_ctanhl.c: Likewise.
24053         * math/s_ctanl.c: Likewise.
24054         * math/w_fmod.c: Likewise.
24055         * math/w_fmodf.c: Likewise.
24056         * math/w_fmodl.c: Likewise.
24057         * math/w_remainder.c: Likewise.
24058         * math/w_remainderf.c: Likewise.
24059         * math/w_remainderl.c: Likewise.
24060         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24061         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24062         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24063         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24064         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24065         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24066         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24067         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24068
24069         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24070         of the number.
24071         * stdio-common/printf_fphex.c: Likewise.
24072         * stdio-common/printf_size.c: Likewise.
24073
24074         * math/e_exp10.c: Include math_private.h using <...> not "...".
24075         * math/e_exp10f.c: Likewise.
24076         * math/e_exp10l.c: Likewise.
24077         * math/e_exp2l.c: Likewise.
24078         * math/e_j0l.c: Likewise.
24079         * math/e_j1l.c: Likewise.
24080         * math/e_jnl.c: Likewise.
24081         * math/e_lgammal_r.c: Likewise.
24082         * math/e_rem_pio2l.c: Likewise.
24083         * math/e_scalb.c: Likewise.
24084         * math/e_scalbf.c: Likewise.
24085         * math/e_scalbl.c: Likewise.
24086         * math/k_cosl.c: Likewise.
24087         * math/k_sinl.c: Likewise.
24088         * math/k_tanl.c: Likewise.
24089         * math/s_cacoshf.c: Likewise.
24090         * math/s_catan.c: Likewise.
24091         * math/s_catanf.c: Likewise.
24092         * math/s_catanh.c: Likewise.
24093         * math/s_catanhf.c: Likewise.
24094         * math/s_catanhl.c: Likewise.
24095         * math/s_catanl.c: Likewise.
24096         * math/s_ccosh.c: Likewise.
24097         * math/s_ccoshf.c: Likewise.
24098         * math/s_ccoshl.c: Likewise.
24099         * math/s_cexp.c: Likewise.
24100         * math/s_cexpf.c: Likewise.
24101         * math/s_cexpl.c: Likewise.
24102         * math/s_clog.c: Likewise.
24103         * math/s_clog10.c: Likewise.
24104         * math/s_clog10f.c: Likewise.
24105         * math/s_clog10l.c: Likewise.
24106         * math/s_clogf.c: Likewise.
24107         * math/s_clogl.c: Likewise.
24108         * math/s_csin.c: Likewise.
24109         * math/s_csinf.c: Likewise.
24110         * math/s_csinh.c: Likewise.
24111         * math/s_csinhf.c: Likewise.
24112         * math/s_csinhl.c: Likewise.
24113         * math/s_csinl.c: Likewise.
24114         * math/s_csqrt.c: Likewise.
24115         * math/s_csqrtf.c: Likewise.
24116         * math/s_csqrtl.c: Likewise.
24117         * math/s_ctan.c: Likewise.
24118         * math/s_ctanf.c: Likewise.
24119         * math/s_ctanh.c: Likewise.
24120         * math/s_ctanhf.c: Likewise.
24121         * math/s_ctanhl.c: Likewise.
24122         * math/s_ctanl.c: Likewise.
24123         * math/s_ldexp.c: Likewise.
24124         * math/s_ldexpf.c: Likewise.
24125         * math/s_ldexpl.c: Likewise.
24126         * math/s_significand.c: Likewise.
24127         * math/s_significandf.c: Likewise.
24128         * math/s_significandl.c: Likewise.
24129         * math/w_acos.c: Likewise.
24130         * math/w_acosf.c: Likewise.
24131         * math/w_acosh.c: Likewise.
24132         * math/w_acoshf.c: Likewise.
24133         * math/w_acoshl.c: Likewise.
24134         * math/w_acosl.c: Likewise.
24135         * math/w_asin.c: Likewise.
24136         * math/w_asinf.c: Likewise.
24137         * math/w_asinl.c: Likewise.
24138         * math/w_atan2.c: Likewise.
24139         * math/w_atan2f.c: Likewise.
24140         * math/w_atan2l.c: Likewise.
24141         * math/w_atanh.c: Likewise.
24142         * math/w_atanhf.c: Likewise.
24143         * math/w_atanhl.c: Likewise.
24144         * math/w_cosh.c: Likewise.
24145         * math/w_coshf.c: Likewise.
24146         * math/w_coshl.c: Likewise.
24147         * math/w_dremf.c: Likewise.
24148         * math/w_exp10.c: Likewise.
24149         * math/w_exp10f.c: Likewise.
24150         * math/w_exp10l.c: Likewise.
24151         * math/w_exp2.c: Likewise.
24152         * math/w_exp2f.c: Likewise.
24153         * math/w_fmod.c: Likewise.
24154         * math/w_fmodf.c: Likewise.
24155         * math/w_fmodl.c: Likewise.
24156         * math/w_hypot.c: Likewise.
24157         * math/w_hypotf.c: Likewise.
24158         * math/w_hypotl.c: Likewise.
24159         * math/w_j0.c: Likewise.
24160         * math/w_j0f.c: Likewise.
24161         * math/w_j0l.c: Likewise.
24162         * math/w_j1.c: Likewise.
24163         * math/w_j1f.c: Likewise.
24164         * math/w_j1l.c: Likewise.
24165         * math/w_jn.c: Likewise.
24166         * math/w_jnf.c: Likewise.
24167         * math/w_jnl.c: Likewise.
24168         * math/w_lgamma.c: Likewise.
24169         * math/w_lgamma_r.c: Likewise.
24170         * math/w_lgammaf.c: Likewise.
24171         * math/w_lgammaf_r.c: Likewise.
24172         * math/w_lgammal.c: Likewise.
24173         * math/w_lgammal_r.c: Likewise.
24174         * math/w_log.c: Likewise.
24175         * math/w_log10.c: Likewise.
24176         * math/w_log10f.c: Likewise.
24177         * math/w_log10l.c: Likewise.
24178         * math/w_log2.c: Likewise.
24179         * math/w_log2f.c: Likewise.
24180         * math/w_log2l.c: Likewise.
24181         * math/w_logf.c: Likewise.
24182         * math/w_logl.c: Likewise.
24183         * math/w_pow.c: Likewise.
24184         * math/w_powf.c: Likewise.
24185         * math/w_powl.c: Likewise.
24186         * math/w_remainder.c: Likewise.
24187         * math/w_remainderf.c: Likewise.
24188         * math/w_remainderl.c: Likewise.
24189         * math/w_scalb.c: Likewise.
24190         * math/w_scalbf.c: Likewise.
24191         * math/w_scalbl.c: Likewise.
24192         * math/w_sinh.c: Likewise.
24193         * math/w_sinhf.c: Likewise.
24194         * math/w_sinhl.c: Likewise.
24195         * math/w_sqrt.c: Likewise.
24196         * math/w_sqrtf.c: Likewise.
24197         * math/w_sqrtl.c: Likewise.
24198         * math/w_tgamma.c: Likewise.
24199         * math/w_tgammaf.c: Likewise.
24200         * math/w_tgammal.c: Likewise.
24201
24202         * po/ja.po: Update from translation team.
24203
24204 2011-09-29  Andreas Jaeger  <aj@suse.de>
24205
24206         [BZ #13179]
24207         * sunrpc/netname.c (netname2host): Fix logic.
24208
24209         [BZ #6779]
24210         [BZ #6783]
24211         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24212         correctly.
24213         * math/w_remainder.c (__remainder): Likewise.
24214         * math/w_remainderf.c (__remainderf): Likewise.
24215         * math/libm-test.inc (remainder_test): Add test cases.
24216
24217 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24218
24219         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24220         sdiv_qrnnd.
24221
24222 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24223
24224         * string/test-memcmp.c: Avoid unncessary #defines.
24225         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24226
24227 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24228
24229         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24230         Use new sse2 version for core i3 - i7 as it's faster
24231         than sse42 version.
24232         (bit_Prefer_PMINUB_for_stringop): New.
24233         * sysdeps/x86_64/rawmemchr.S: Update.
24234         Replace with faster SSE2 version.
24235         * sysdeps/x86_64/memrchr.S: New file.
24236         * sysdeps/x86_64/memchr.S: Update.
24237         Replace with faster SSE2 version.
24238
24239 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24240
24241         * elf/dl-load.c (lose): Add cast to avoid warning.
24242
24243 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24244
24245         * po/ca.po: Update from translation team.
24246
24247         * inet/getnetgrent_r.c: Hook up nscd.
24248         * nscd/Makefile (routines): Add nscd_netgroup.
24249         (nscd-modules): Add netgroupcache.
24250         (CFLAGS-netgroupcache.c): Define.
24251         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24252         (cache_search): Add const to second parameter.
24253         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24254         INNETGR.
24255         (dbs): Add netgrdb entry.
24256         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24257         (verify_persistent_db): Handle netgrdb.
24258         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24259         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24260         GETFDNETGR.
24261         (netgroup_response_header): Define.
24262         (innetgroup_response_header): Define.
24263         (datahead): Add netgroup_response_header and innetgroup_response_header
24264         elements.
24265         * nscd/nscd.conf: Add entries for netgroup cache.
24266         * nscd/nscd.h (dbtype): Add netgrdb.
24267         (_PATH_NSCD_NETGROUP_DB): Define.
24268         (netgroup_iov_disabled): Declare.
24269         (xmalloc, xcalloc, xrealloc): Move declarations here.
24270         (cache_search): Adjust prototype.
24271         Add netgroup-related prototypes.
24272         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24273         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24274         (__nscd_innetgr): Declare.
24275         * nscd/selinux.c (perms): Use access_vector_t as element type and
24276         add netgroup-related initializers.
24277         * nscd/netgroupcache.c: New file.
24278         * nscd/nscd_netgroup.c: New file.
24279         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24280         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24281         For four parameters use innetgr.
24282         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24283         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24284         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24285         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24286
24287         * nscd/connections.c (register_traced_file): Don't register file
24288         for disabled databases.
24289
24290 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24291
24292         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24293
24294         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24295         from tree and freeing node.
24296
24297 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24298
24299         * nss/nsswitch.c (__nss_database_lookup): Handle
24300         nss_parse_service_list out of memory case.
24301
24302 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24303
24304         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24305         out of memory case.
24306
24307 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24308
24309         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24310         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24311         pass it down.
24312         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24313         elf_machine_rela, elf_machine_lazy_rel.
24314         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24315         (ELF_DYNAMIC_DO_REL): Likewise.
24316         (ELF_DYNAMIC_DO_RELA): Likewise.
24317         (ELF_DYNAMIC_RELOCATE): Likewise.
24318         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24319         to ELF_DYNAMIC_DO_REL.
24320         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24321         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24322         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24323         elf_machine_rela.
24324         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24325         skip_ifunc, don't call ifunc function if non-zero.
24326         (elf_machine_rela): Likewise.
24327         (elf_machine_lazy_rel): Likewise.
24328         (elf_machine_lazy_rela): Likewise.
24329         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24330         (elf_machine_lazy_rel): Likewise.
24331         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24332         Likewise.
24333         (elf_machine_lazy_rel): Likewise.
24334         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24335         Likewise.
24336         (elf_machine_lazy_rel): Likewise.
24337         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24338         (elf_machine_lazy_rel): Likewise.
24339         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24340         (elf_machine_lazy_rel): Likewise.
24341         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24342         (elf_machine_lazy_rel): Likewise.
24343         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24344         (elf_machine_lazy_rel): Likewise.
24345         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24346         (elf_machine_lazy_rel): Likewise.
24347         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24348         (elf_machine_lazy_rel): Likewise.
24349
24350 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24351
24352         * nss/nss_files/files-init.c (_nss_files_init): Use static
24353         initialization for all the *_traced_file variables.
24354
24355 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24356
24357         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24358
24359 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24360
24361         [BZ #13226]
24362         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24363
24364 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24365
24366         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24367         Reread the line before reparsing it.
24368
24369 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24370
24371         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24372
24373 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24374             Maxim Kuvyrkov  <maxim@codesourcery.com>
24375             Joseph Myers  <joseph@codesourcery.com>
24376
24377         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24378         if needed for __stack_chk_guard.
24379
24380 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24381
24382         * sysdeps/posix/spawni.c (script_execute): Always define it.
24383         It will be optimized away if unused.
24384         (maybe_script_execute): New function.
24385         (__spawni): Call it.
24386
24387         * Makerules: Don't include tls.make.
24388         (config-tls): Always set to thread.
24389         * tls.make.c: File removed.
24390
24391 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24392
24393         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24394         * config.make.in (CPPFLAGS-config): New substituted variable.
24395
24396 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24397
24398         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24399
24400         [BZ #13192]
24401         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24402         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24403
24404 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24405
24406         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24407         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24408         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24409         (CALL_FAIL): Likewise.
24410         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24411         (CALL_FAIL): Macro removed.
24412         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24413
24414 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24415
24416         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24417         for __FINITE_MATH_ONLY__ == 1.
24418
24419 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24420
24421         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24422         __ieee754_sqrt instead of sqrt.
24423         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24424         __ieee754_sqrtf instead of sqrtf.
24425         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24426         __floorf instead of floorf.
24427         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24428         __floorf, __truncf instead of floorf, truncf.
24429
24430 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24431
24432         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24433
24434         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24435         __extern_always_inline.
24436         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24437         32-bit.
24438
24439 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24440
24441         * elf/rtld.c (dl_main): Also relocate in dependency order when
24442         doing symbol dependency testing.
24443
24444 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24445
24446         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24447         Always define `refsym'.
24448
24449 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24450
24451         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24452         (__FD_ELT): Renamed from __FDELT.
24453         * misc/bits/select2.h (__FD_ELT): Likewise.
24454         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24455         __FD_MASK instead of __FDELT, __FDMASK.
24456         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24457         Likewise.
24458         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24459         Likewise.
24460
24461         * elf/Makefile (gen-ldd): Fix pattern.
24462
24463         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24464         (init_tls): Likewise.
24465
24466 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24467
24468         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24469
24470 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24471
24472         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24473         `struct cmsghdr *' instead of `void *'.
24474         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24475         Likewise.
24476
24477 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24478
24479         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24480         if non-absolute.
24481         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24482         ldd_rewrite_script.
24483
24484 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24485
24486         * configure.in: Remove --with-tls option.
24487         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24488         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24489         out in case it is missing.
24490         * sysdeps/ia64/elf/configure.in: Likewise.
24491         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24492         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24493         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24494         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24495         * sysdeps/sh/elf/configure.in: Likewise.
24496         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24497         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24498         * sysdeps/x86_64/elf/configure.in: Likewise.
24499         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24500         * sysdeps/mach/hurd/tls.h: Likewise.
24501
24502         [BZ #13067]
24503         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24504
24505         [BZ #13090]
24506         * configure.in: Fix use of AC_INIT.
24507
24508         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24509
24510 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24511
24512         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24513         __set_errno.
24514         * malloc/hooks.c: Likewise.
24515
24516         [BZ #11929]
24517         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24518         variables statically.
24519         (narenas): Initialize.
24520         (list_lock): Initialize.
24521         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24522         initializtion of main_arena and list_lock.  Small cleanups.
24523         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24524         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24525         Add initializers to main_arena and mp_.
24526         (malloc_state): Remove pagesize member.  Change all users to use
24527         GLRO(dl_pagesize).
24528
24529         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24530         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24531         is always initialized.
24532
24533         * malloc/malloc.c: Removed unused configurations and dead code.
24534         * malloc/arena.c: Likewise.
24535         * malloc/hooks.c: Likewise.
24536         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24537
24538         * include/tls.h: Removed.  USE___THREAD must always be defined.
24539         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24540         * elf/dl-libc.c: Likewise.
24541         * elf/dl-tsd.c: Likewise.
24542         * include/errno.h: Likewise.
24543         * include/netdb.h: Likewise.
24544         * include/resolv.h: Likewise.
24545         * inet/herrno-loc.c: Likewise.
24546         * inet/herrno.c: Likewise.
24547         * malloc/arena.c: Likewise.
24548         * malloc/hooks.c: Likewise.
24549         * malloc/malloc.c: Likewise.
24550         * resolv/res-state.c: Likewise.
24551         * resolv/res_libc.c: Likewise.
24552         * sysdeps/i386/dl-machine.h: Likewise.
24553         * sysdeps/ia64/dl-machine.h: Likewise.
24554         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24555         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24556         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24557         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24558         * sysdeps/sh/dl-machine.h: Likewise.
24559         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24560         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24561         * sysdeps/unix/i386/sysdep.S: Likewise.
24562         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24563         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24564         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24565         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24566         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24567         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24568         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24569         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24570         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24572         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24573         * sysdeps/x86_64/dl-machine.h: Likewise.
24574         * tls.make.c: Likewise.
24575
24576         * configure.in: Remove --with-__thread option.  Make tests for
24577         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24578         tls_model attribute fail if no support is available.  Remove
24579         USE_IN_LIBIO.
24580         * Makeconfig: Adjust for dropped configure option.  All features are
24581         now mandatory.
24582         * Makerules: Likewise.
24583         * Versions.def: Likewise.
24584         * argp/argp-fmtstream.c: Likewise.
24585         * argp/argp-fmtstream.h: Likewise.
24586         * argp/argp-help.c: Likewise.
24587         * assert/assert.c: Likewise.
24588         * config.h.in: Likewise.
24589         * config.make.in: Likewise.
24590         * configure: Likewise.
24591         * configure.in: Likewise.
24592         * csu/Versions: Likewise.
24593         * csu/init.c: Likewise.
24594         * elf/tst-audit2.c: Likewise.
24595         * elf/tst-tls10.c: Likewise.
24596         * elf/tst-tls10.h: Likewise.
24597         * elf/tst-tls11.c: Likewise.
24598         * elf/tst-tls12.c: Likewise.
24599         * elf/tst-tls14.c: Likewise.
24600         * elf/tst-tlsmod11.c: Likewise.
24601         * elf/tst-tlsmod12.c: Likewise.
24602         * elf/tst-tlsmod13.c: Likewise.
24603         * elf/tst-tlsmod13a.c: Likewise.
24604         * elf/tst-tlsmod14a.c: Likewise.
24605         * elf/tst-tlsmod15b.c: Likewise.
24606         * elf/tst-tlsmod16a.c: Likewise.
24607         * elf/tst-tlsmod16b.c: Likewise.
24608         * elf/tst-tlsmod7.c: Likewise.
24609         * elf/tst-tlsmod8.c: Likewise.
24610         * elf/tst-tlsmod9.c: Likewise.
24611         * gmon/gmon.c: Likewise.
24612         * grp/fgetgrent_r.c: Likewise.
24613         * grp/putgrent.c: Likewise.
24614         * hurd/fopenport.c: Likewise.
24615         * include/libc-symbols.h: Likewise.
24616         * include/tls.h: Likewise.
24617         * intl/gettextP.h: Likewise.
24618         * intl/loadinfo.h: Likewise.
24619         * locale/global-locale.c: Likewise.
24620         * locale/localeinfo.h: Likewise.
24621         * mach/devstream.c: Likewise.
24622         * malloc/arena.c: Likewise.
24623         * malloc/set-freeres.c: Likewise.
24624         * misc/err.c: Likewise.
24625         * misc/getttyent.c: Likewise.
24626         * misc/mntent_r.c: Likewise.
24627         * posix/getopt.c: Likewise.
24628         * posix/wordexp.c: Likewise.
24629         * pwd/fgetpwent_r.c: Likewise.
24630         * resolv/Versions: Likewise.
24631         * resolv/res_hconf.c: Likewise.
24632         * shadow/fgetspent_r.c: Likewise.
24633         * shadow/putspent.c: Likewise.
24634         * stdio-common/printf_fphex.c: Likewise.
24635         * stdio-common/tmpfile.c: Likewise.
24636         * stdlib/abort.c: Likewise.
24637         * stdlib/fmtmsg.c: Likewise.
24638         * sunrpc/auth_unix.c: Likewise.
24639         * sunrpc/clnt_perr.c: Likewise.
24640         * sunrpc/clnt_tcp.c: Likewise.
24641         * sunrpc/clnt_udp.c: Likewise.
24642         * sunrpc/clnt_unix.c: Likewise.
24643         * sunrpc/openchild.c: Likewise.
24644         * sunrpc/svc_simple.c: Likewise.
24645         * sunrpc/svc_tcp.c: Likewise.
24646         * sunrpc/svc_udp.c: Likewise.
24647         * sunrpc/svc_unix.c: Likewise.
24648         * sunrpc/xdr.c: Likewise.
24649         * sunrpc/xdr_array.c: Likewise.
24650         * sunrpc/xdr_rec.c: Likewise.
24651         * sunrpc/xdr_ref.c: Likewise.
24652         * sunrpc/xdr_stdio.c: Likewise.
24653
24654 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24655
24656         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24657
24658 2011-07-03  Andreas Jaeger  <aj@suse.de>
24659
24660         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24661         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24662         regenerate with gen-libm-tests.pl.
24663
24664 2010-05-12  Petr Baudis  <pasky@suse.cz>
24665
24666         [BZ #11589]
24667         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24668         around j0() zero points by switching to j1().
24669         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24670         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24671         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24672         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24673
24674 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24675
24676         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24677         instead of 0.
24678         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24679         instead of 0.
24680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24681         Patch in part by Pavel Roskin <proski@gnu.org>.
24682
24683         [BZ #13138]
24684         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24685         realloc.
24686         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24687         Free memory block if necessary.
24688
24689         [BZ #12847]
24690         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24691         be NULL.  Don't lock in this case.
24692
24693 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24694
24695         * elf/elf.h (ELFOSABI_GNU): New macro.
24696         (ELFOSABI_LINUX): Define to that.
24697
24698 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24699
24700         * string/strncat.c (strncat): Undef the symbol in case it has been
24701         defined in bits/string.h.
24702
24703 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24704
24705         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24706
24707         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24708         link map.
24709
24710 2011-08-17  Andreas Jaeger  <aj@suse.de>
24711
24712         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24713
24714 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24715             Ian Lance Taylor  <iant@google.com>
24716
24717         * math/libm-test.inc (lround_test): New testcase.
24718         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24719
24720 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24721
24722         * Makefile: Remove support for automatic cvs check-ins.
24723         * Makerules: Likewise.
24724         * config.make.in: Likewise.
24725         * configure.in: Likewise.
24726         * intl/Makefile: Likewise.
24727         * locale/Makefile: Likewise.
24728         * po/Makefile: Likewise.
24729         * posix/Makefile: Likewise.
24730         * sysdeps/gnu/Makefile: Likewise.
24731         * sysdeps/mach/hurd/Makefile: Likewise.
24732         * sysdeps/sparc/sparc32/Makefile: Likewise.
24733
24734         [BZ #13118]
24735         * posix/Makefile (bug-regex32-ENV): Define.
24736         Patch by John Stanley <jpsinthemix@verizon.net>.
24737
24738         * misc/Makefile (headers): Add bits/select2.h.
24739         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24740         * misc/bits/select2.h: New file.
24741         * include/bits/select2.h: New file.
24742         * debug/Makefile (routines): Add fdelt_chk.
24743         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24744         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24745         FD_ISSET.
24746         * debug/fdelt_chk.c: New file.
24747
24748         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24749         * wcsmbs/test-wmemcmp.c: Likewise.
24750         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24751         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24752
24753 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24754
24755         * string/Makefile (strop-tests): Add memcmp.
24756         * string/test-wmemcmp.c: New file.
24757         * string/test-memcmp.c: Add wmemcmp support.
24758
24759 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24760
24761         [BZ #13153]
24762         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24763         2011-07-19 change.
24764
24765         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24766         garbage value in a __mach_port_mod_refs call in the cases of the
24767         task-self and thread-self ports.
24768
24769 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24770
24771         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24772
24773 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24774
24775         * elf/dl-load.c (lose): Check for non-null L.
24776
24777 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24778
24779         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24780
24781         * elf/dl-libc.c (dlerror_run): Pass back error code from
24782         dl_catch_error.
24783
24784         [BZ #13123]
24785         * elf/dl-load.c (lose): Free l_origin if it is valid.
24786
24787         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24788         names.
24789         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24790         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24791         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24792         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24793         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24794         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24795
24796 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24797
24798         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24799         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24800         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24801         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24802         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24803         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24804         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24805         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24806         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24807         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24808
24809 2011-08-15  Alan Modra  <amodra@gmail.com>
24810
24811         [BZ #13092]
24812         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24813         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24814         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24815         ppc_mcount to static-only-routines.
24816         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24817         __mcount_internal.
24818         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24819         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24820
24821 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24822
24823         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24824         for finite and infinity parameters.
24825
24826 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24827
24828         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24829         and add nop instructions for throughput optimization.
24830         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24831
24832 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24833
24834         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24835         aligned copy for power7 with vector-scalar instructions.
24836         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24837
24838 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24839
24840         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24841         AVX check.
24842
24843 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24844
24845         [BZ #13144]
24846         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24847         last change.
24848
24849 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24850
24851         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24852         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24853         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24854         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24855         clock_gettime.
24856
24857 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24858
24859         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24860         Forgot to demangle the pointer.
24861
24862         * sysdeps/i386/sysdep.h: Define atom_text_section.
24863         * sysdeps/x86_64/sysdep.h: Likewise.
24864         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24865         section with atom_text_section.
24866         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24867         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24868         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24869         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24870         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24871
24872         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24873         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24874         already be defined.  Change to take two parameters and don't assign
24875         result to variable.  Adjust all users.
24876         Define INTERNAL_GETTIME if not already defined.
24877         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24878         call.
24879         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24880         HAVE_CLOCK_GETTIME_VSYSCALL.
24881         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24882
24883         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24884         gettimeofday vsyscall, just use time.
24885
24886 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24887
24888         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24889         <errno.h>.
24890
24891 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24892
24893         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24894         syscall on x86-64.
24895         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24896         syscall.
24897         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24898         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24899         syscall if possible.
24900
24901 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24902
24903         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24904         e_ident.  Don't pass to find_mapsXX.
24905         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24906
24907 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24908
24909         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24910         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24911         * sysdeps/x86_64/multiarch/strchr.S: Update.
24912         Check bit_slow_BSF bit.
24913         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24914         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24915         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24916
24917 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24918
24919         [BZ #13134]
24920         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24921         before glibc 2.15.
24922         (tryshell): Define.
24923         (__spawni): Change last parameter to be flag.  Test
24924         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24925         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24926         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24927         * posix/spawni.c: Likewise.
24928         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24929         * posix/spawnp.c: Likewise.  Change normal version to use
24930         SPAWN_XFLAGS_USE_PATH.
24931         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24932         SPAWN_XFLAGS_TRY_SHELL.
24933
24934         [BZ #13150]
24935         * posix/glob.h: Remove gcc 1.x support.
24936
24937         [BZ #13068]
24938         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24939
24940 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24941
24942         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24943         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24944         strrchr-sse2-bsf
24945         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24946         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24947         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24948         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24949         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24950         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24951
24952 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24953
24954         * sysdeps/x86_64/wcscmp.S: New file.
24955
24956         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24957         wcscmp-c wcscmp-sse2
24958         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24959         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24960         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24961         * wcsmbs/wcscmp.c: Allow renaming.
24962
24963 2011-09-05  David S. Miller  <davem@davemloft.net>
24964
24965         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24966         stack slot, rather than the struct return pointer slot.
24967         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24968         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24970         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24971
24972 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24973
24974         * po/ja.po: Update from translation team.
24975
24976         [BZ #13144]
24977         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24978         kernel in 64-bit binaries.
24979
24980 2011-09-01  David S. Miller  <davem@davemloft.net>
24981
24982         * elf/elf.h (HWCAP_SPARC_*): Move to..
24983         * sysdeps/sparc/sysdep.h: this new file and add new values.
24984         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24985         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24986         _DL_HWCAP_COUNT to 24.
24987         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24988         entries.
24989         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
24990         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
24991         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
24992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
24993         instead of magic constants.
24994         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24995
24996 2011-08-31  David S. Miller  <davem@davemloft.net>
24997
24998         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
24999         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25000         Reimplement to do errno handling inline.
25001         (SYSCALL_ERROR_HANDLER): New macro.
25002         (__SYSCALL_STRING): Do not do errno handling in asm.
25003         (__CLONE_SYSCALL_STRING): Delete.
25004         (__INTERNAL_SYSCALL_STRING): Delete.
25005         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25006         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25007         (PSEUDO): Reimplement to do errno handling inline.
25008         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25009         (SYSCALL_ERROR_HANDLER): New macro.
25010         (__SYSCALL_STRING): Do not do errno handling in asm.
25011         (__CLONE_SYSCALL_STRING): Delete.
25012         (__INTERNAL_SYSCALL_STRING): Delete.
25013         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25014         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25015         i386.
25016         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25017         (inline_syscall*): Add 'err' argument.
25018         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25019         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25020         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25021         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25022
25023         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25024         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25025
25026 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25027
25028         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25029
25030 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25031
25032         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25033         directive.
25034
25035 2011-08-24  David S. Miller  <davem@davemloft.net>
25036
25037         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25038
25039 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25040
25041         * elf/Makefile: Add rules to build and run unload8 test.
25042         * elf/unload8.c: New file.
25043         * elf/unload8mod1.c: New file.
25044         * elf/unload8mod1x.c: New file.
25045         * elf/unload8mod2.c: New file.
25046         * elf/unload8mod3.c: New file.
25047
25048         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25049         it wasn't used.
25050
25051 2011-08-23  David S. Miller  <davem@davemloft.net>
25052
25053         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25054         subtract stack bias.
25055         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25056         %sp not %fp in calculations.
25057         (_JMPBUF_UNWINDS_ADJ): Likewise.
25058
25059         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25060         (aio_suspend): Call it to force an exception region around the
25061         AIO_MISC_WAIT() invocation.
25062
25063 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25064
25065         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25066         backslash.
25067
25068 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25069
25070         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25071         protection macro.
25072         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25073         and <dl-machine.h>.
25074         (Elf64_FuncDesc): Remove.
25075
25076 2011-08-22  David S. Miller  <davem@davemloft.net>
25077
25078         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25079         sigaltstack check, add missing cfi directives.
25080         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25081         missing cfi directives, and sigaltstack handling.
25082
25083 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25084
25085         [BZ #11724]
25086         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25087         object is seen twice.
25088         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25089
25090         * elf/Makefile (distribute): Add tst-initorder2.c.
25091         (tests): Add tst-initorder2.
25092         (modules-names): Add tst-initorder2a tst-initorder2b
25093         tst-initorder2c tst-initorder2d.  Add rules to build them.
25094         ($(objpfx)tst-initorder2.out): New rule.
25095         * elf/tst-initorder2.c: New file.
25096         * elf/tst-initorder2.exp: New file.
25097
25098 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25099
25100         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25101
25102         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25103         dependencies back to end of function.
25104
25105         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25106         $(elfobjdir)/ld.so.
25107
25108 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25109
25110         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25111         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25112         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25113         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25114         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25115         of __vdso_gettimeofday.
25116         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25117         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25118         attribute_hidden.
25119         (_libc_vdso_platform_setup): Remove initialization of
25120         __vdso_gettimeofday and __vdso_time.
25121
25122 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25123
25124         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25125         and fgetc_unlocked.
25126         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25127         getc_unlocked.
25128
25129         * elf/dl-open.c (add_to_global): Report additions to the global scope
25130         for LD_DEBUG=scopes.
25131         (dl_open_worker): Also print scope of newly loaded dependencies.
25132         (_dl_show_scope): Indicate if there is no scope.
25133
25134         [BZ #13114]
25135         * stdio-common/Makefile (tests): Add bug24.
25136         * stdio-common/bug24.c: New file.
25137
25138 2011-08-19  Andreas Jaeger  <aj@suse.de>
25139
25140         [BZ #13114]
25141         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25142         non-existant file when using close-on-exec mode.
25143
25144 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25145
25146         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25147         the very first instruction.
25148
25149         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25150         the CFI state in the end.
25151         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25152         inclusion of dl-trampoline.h.
25153         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25154
25155 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25156
25157         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25158         expectations for long double.
25159
25160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25161         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25162
25163 2011-08-14  David S. Miller  <davem@davemloft.net>
25164
25165         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25166         artificual limit depends upon the system page size.
25167
25168 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25169
25170         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25171         * resolv/Makefile: Define CFLAGS-libresolv.
25172
25173 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25174
25175         * nss/makedb.c (compute_tables): Make variables used in nested
25176         function static.
25177
25178 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25179
25180         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25181         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25182         if buffer was too small.
25183
25184         * elf/pldd.c (main): Attach to all threads in the process.
25185         Rewrite /proc handling to use *at functions.
25186
25187 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25188
25189         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25190         specifies first scope to show.
25191         (dl_open_worker): Update callers.  Move printing scope of new
25192         object to before the relocation.
25193         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25194         * sysdeps/generic/ldsodefs.h: Update declaration.
25195
25196         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25197         string for the scope number.
25198
25199 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25200
25201         * nscd/servicescache.c (cache_addserv): Make sure written is always
25202         initialized.
25203
25204 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25205
25206         * sysdeps/i386/i486/bits/atomic.h
25207         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25208         statement expression, so as to suppress "set but not used" warning.
25209         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25210
25211         * string/strncat.c (STRNCAT): Use prototype definition.
25212
25213         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25214         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25215         -Iprograms here.
25216         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25217         (localedef-modules): Add localedef.
25218         (locale-modules): Add locale.
25219
25220         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25221         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25222         to avoid a warning.
25223
25224 2011-08-14  David S. Miller  <davem@davemloft.net>
25225
25226         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25227         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25228
25229 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25230
25231         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25232         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25233         * elf/rtld.c (dl_main): Set l_name of vDSO.
25234         Call _dl_show_scope when DL_DEBUG_SCOPES.
25235         (process_dl_debug): Recognize scopes flag and also set it for all.
25236         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25237         Declare _dl_show_scope.
25238
25239         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25240         (do_dlopen): Pass caller_dlopen to dl_open.
25241         (__libc_dlopen_mode): Initialize caller_dlopen.
25242
25243         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25244         of libc.  Make tolower call locale-independent.  Optimize a bit by
25245         using isdigit instead of isalnum.
25246         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25247
25248 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25249
25250         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25251         was a dependency or dynamically loaded.
25252
25253 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25254
25255         * intl/l10nflist.c: Allow architecture-specific pop function.
25256         * sysdeps/x86_64/l10nflist.c: New file.
25257
25258         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25259         classification.
25260
25261 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25262
25263         * include/dirent.h: Add libc_hidden_proto for scandirat and
25264         scandirat64.  Don't declare __scandirat64.
25265         * dirent/scandirat.c: Add libc_hidden_def.
25266         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25267         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25268
25269 2011-08-10  David S. Miller  <davem@davemloft.net>
25270
25271         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25272         enum.
25273         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25274         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25275         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25276
25277 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25278
25279         * Versions.def [libc]: Add GLIBC_2.15.
25280         * dirent/Makefile (routines): Add scandirat and scandirat64.
25281         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25282         GLIBC_2.15.
25283         * dirent/dirent.h: Declare scandirat and scandirat64.
25284         * dirent/scandirat.c: New file.
25285         * dirent/scandirat64.c: New file.
25286         * sysdeps/wordsize-64/scandirat.c: New file.
25287         * sysdeps/wordsize-64/scandirat64.c: New file.
25288         * dirent/opendir.c: Define opendirat.
25289         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25290         using scandirat.
25291         * dirent/scandir64.c: Adjust for scandir.c change.
25292         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25293         __scandirat64, and __scandir_cancel_handler.
25294         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25295         additional parameter and use openat instead of open (outside of ld.so).
25296         Add new __opendir as wrapper around __opendirat.
25297         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25298         here without requiring old scandirat implementation.
25299
25300 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25301
25302         * dirent/scandir.c (cancel_handler): Renamed to
25303         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25304         defined.  Adjust users.
25305         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25306         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25307
25308 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25309
25310         * string/test-string.h (IMPL): Use __STRING to expand name and then
25311         stringify it.
25312
25313         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25314         of cleanups.
25315
25316 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25317
25318         * string/Makefile: Update.
25319         (strop-tests): Append strncat.
25320         * string/test-wcscmp.c: New file.
25321         New comprehensive test for wcscmp.
25322         * string/test-strcmp.c: Update.
25323         (WIDE): New define.
25324
25325 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25326
25327         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25328         line.
25329
25330 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25331
25332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25333         encoding to ACE if AI_IDN.
25334
25335 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25336
25337         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25338         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25339
25340 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25341
25342         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25343         Fix overflow bug in strncat.
25344         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25345
25346         * string/test-strncat.c: Update.
25347         Add new tests for checking overflow bugs.
25348
25349 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25350
25351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25352         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25353         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25354         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25355         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25356         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25357         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25358         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25359         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25360
25361         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25362         (USE_AS_STRCAT): Define.
25363         Add strcat and strncat support.
25364         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25365
25366 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25367
25368         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25369         __n bigger than INT_MAX+1.
25370         (__strncmp_g): Likewise.
25371
25372 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25373
25374         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25375         * libio/stido.h: Likewise.
25376
25377         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25378         (AF_NFC): Define.
25379         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25380         (AF_NFC): Define.
25381
25382         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25383         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25384         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25385         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25386         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25387
25388         [BZ #13021]
25389         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25390         installed.
25391
25392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25393         typo.
25394         (_dl_x86_64_save_sse): Likewise.
25395
25396 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25397
25398         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25399         OSXSAVE.
25400         (_dl_x86_64_save_sse): Likewise.
25401
25402         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25403
25404         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25405
25406 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25407
25408         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25409         change.
25410         (_dl_x86_64_save_sse): Use correct AVX check.
25411
25412 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25413
25414         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25415         bug in strncpy/strncat.
25416         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25417
25418 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25419
25420         * string/tester.c (test_strcat): Add tests for different alignments
25421         of source and destination.
25422         (test_strncat): Likewise.
25423
25424 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25425
25426         [BZ #12852]
25427         * posix/glob.c (glob): Check passed in values before using them in
25428         expressions to avoid some overflows.
25429         (glob_in_dir): Likewise.
25430
25431         [BZ #13007]
25432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25433         check for AVX enablement so that we don't crash with old kernels and
25434         new hardware.
25435         * elf/tst-audit4.c: Add same checks here.
25436         * elf/tst-audit6.c: Likewise.
25437
25438         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25439
25440 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25441
25442         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25443
25444 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25445
25446         * po/cs.po: Update from translation team.
25447         * po/bg.po: Likewise.
25448
25449 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25450
25451         * misc/sys/cdefs.h: Add support for const attribute.
25452         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25453         to gnu_dev_{major,minor,makedev} functions.
25454
25455 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25456
25457         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25458
25459 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25460
25461         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25462         strlen results.
25463
25464 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25465
25466         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25467         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25468         register in order to avoid conflicts with the soft frame pointer
25469         being held in r11 when necessary.
25470         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25471         (INTERNAL_VSYSCALL_NCS): Likewise.
25472
25473 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25474
25475         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25476         * elf/dl-fini.c (_dl_fini): Adjust caller.
25477         * elf/dl-close.c (_dl_close_worker): Likewise.
25478         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25479
25480 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25481
25482         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25483         "aux_cache->nlibs < 0".
25484
25485         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25486         in the reload-count case.
25487
25488 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25489
25490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25491         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25492         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25493         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25494         * sysdeps/x86_64/multiarch/strcat.S: New file.
25495         * sysdeps/x86_64/multiarch/strncat.S: New file.
25496         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25497         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25498         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25499         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25500         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25501         (USE_AS_STRCAT): Define.
25502         Add strcat and strncat support.
25503         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25504         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25505         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25506         * string/strncat.c: Update.
25507         (USE_AS_STRNCAT): Define.
25508         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25509         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25510         and i7.
25511         * sysdeps/x86_64/multiarch/init-arch.h
25512         (bit_Prefer_PMINUB_for_stringop): New.
25513         (index_Prefer_PMINUB_for_stringop): Likewise.
25514         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25515         bit_Prefer_PMINUB_for_stringop.
25516
25517 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25518
25519         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25520         buffer64.
25521         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25522         of casting of buffer.
25523         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25524         buffer32 and buffer64.
25525         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25526         writes instead of casting of buffer.
25527         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25528         buffer32.
25529         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25530         casting of buffer.
25531
25532 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25533
25534         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25535
25536 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25537
25538         * nscd/nscd.c (termination_handler): Don't do anything for a database
25539         if it has not yet been initialized.
25540
25541 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25542
25543         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25544
25545 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25546
25547         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25548
25549 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25550
25551         * po/nl.po: Update from translation team.
25552         * po/sv.po: Likewise.
25553
25554 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25555
25556         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25557         now disallowed by GCC.
25558
25559         * configure.in (use-default-link): Default to yes if a test -shared
25560         link meets our qualifications.
25561         * configure: Regenerated.
25562
25563         * config.make.in (output-format): New variable.
25564         * configure.in: Check for ld --print-output-format support.
25565         * configure: Regenerated.
25566         * Makerules ($(common-objpfx)format.lds)
25567         [$(output-format) != unknown]: Just use $(output-format),
25568         instead of the linker-script munging.
25569
25570 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25571
25572         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25573         of $(common-objpfx)shlib.lds.
25574         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25575
25576         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25577         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25578
25579         * configure.in (-z relro check): Adjust test code to add a large
25580         writable data section after it.
25581         * configure: Regenerated.
25582
25583 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25584
25585         * configure.in (-z relro check): Fix test code to make the variable
25586         truly const.
25587         * configure: Regenerated.
25588
25589 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25590
25591         * nscd/nscd.h (struct traced_file): Define.
25592         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25593         elements.  Add traced_files.
25594         (inotify_fd): Declare.
25595         (register_traced_file): Declare.
25596         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25597         (inotify_fd): Export.
25598         (resolv_conf_descr): Remove.
25599         (nscd_init): Move inotify descriptor creation to main.
25600         Don't register files for notification here.
25601         (register_traced_file): New function.
25602         (invalidate_cache): Don't use reset_res to determine whether to call
25603         res_init, go through the list of registered files.
25604         (main_loop_poll): The inotify descriptors are now stored in the
25605         structures for the traced files.
25606         (main_loop_epoll): Likewise
25607         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25608         to __nss_disable_nscd.
25609         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25610         for a database anymore.  Check the records for all the registered
25611         files instead.
25612         * nss/Makefile (libnss_files-routines): Add files-init.
25613         (libnss_db-routines): Add db-init.
25614         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25615         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25616         * nss/nss_db/db-init.c: New file.
25617         * nss/nss_files/files-init.c: New file.
25618         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25619         __nss_lookup_function.
25620         (__nss_lookup_function): Call nss_load_library.
25621         (nss_load_all_libraries): New function.
25622         (__nss_disable_nscd): Take parameter with callback function for files
25623         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25624         used for the cached services.
25625         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25626         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25627         options for features to all the files in nscd.
25628
25629         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25630
25631 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25632
25633         * csu/elf-init.c (__libc_csu_init): Comment typo.
25634
25635 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25636
25637         * po/pl.po: Update from translation team.
25638         * po/ja.po: Likewise.
25639         * po/ru.po: Likewise.
25640         * po/ko.po: Likewise.
25641         * po/fr.po: Likewise.
25642
25643 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25644
25645         * configure.in (.ctors/.dtors header and trailer check):
25646         Use an empirical test on a built program.
25647         * configure: Regenerated.
25648
25649         * configure.in (-z relro check): Use an empirical test on a built DSO.
25650         Detect, but do not require, on ia64.
25651         * configure: Regenerated.
25652
25653         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25654         Update tests that use readelf to use $READELF instead.
25655         * configure: Regenerated.
25656
25657 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25658
25659         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25660         if the result is not used.
25661
25662 2011-07-05  Andreas Jaeger  <aj@suse.de>
25663
25664         [BZ#9696]
25665         * stdlib/tst-strtod.c: Add testcase.
25666
25667 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25668
25669         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25670         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25671         The latter has a higher limit.  Take additional parameter to pass to
25672         the new function.
25673         (__pathconf): Pass file to __statfs_link_max.
25674         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25675         __statfs_link_max.
25676         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25677         __statfs_link_max.
25678
25679         [BZ #12868]
25680         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25681         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25682         Handle Lustre.
25683         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25684         (__statfs_filesize_max): Likewise.
25685         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25686
25687 2011-07-05  Andreas Jaeger  <aj@suse.de>
25688
25689         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25690
25691 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25692
25693         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25694         `status' variable.
25695         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25696         Likewise.
25697
25698 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25699
25700         * Makefile (strop-tests): Add strncat.
25701         * string/test-strncat.c: New file.
25702
25703 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25704
25705         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25706
25707 2011-06-21  Andreas Jaeger  <aj@suse.de>
25708
25709         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25710         Copy rule from iconvdata/Makefile.
25711
25712 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25713
25714         [BZ #12922]
25715         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25716         but no long options are defined, just return 'W'.
25717
25718 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25719
25720         [BZ #9696]
25721         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25722
25723 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25724
25725         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25726         netgroups to read.
25727         (innetgr): Likewise.
25728
25729 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25730
25731         * config.make.in (install_root): Default to $(DESTDIR).
25732
25733 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25734
25735         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25736
25737 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25738
25739         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25740
25741         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25742         containing directory rather than embedding absolute directory names.
25743
25744         * scripts/check-local-headers.sh: Rewritten using awk.
25745         Match by word, not by line.  Print error messages for matches.
25746         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25747
25748         * Makerules [shlib-lds-flags empty]:
25749         ($(common-objpfx)libc_pic.opts): New target.
25750         ($(common-objpfx)libc_pic.os.clean): New target.
25751         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25752
25753         * config.make.in (OBJCOPY): New variable.
25754         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25755         * configure: Regenerated.
25756
25757         * config.make.in (use-default-link): New variable.
25758         * configure.in (use_default_link): Grok --with-default-link to set it.
25759         * configure: Regenerated.
25760         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25761         (shlib-lds, shlib-lds-flags): Define to empty.
25762
25763         * Makerules (shlib-lds): New variable.
25764         (shlib-lds-flags): New variable.
25765         (build-shlib, build-moduile, build-module-asneeded): Use it.
25766         ($(common-objpfx)libc.so): Use $(shlib-lds).
25767         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25768         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25769
25770         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25771         DT_FLAGS/DT_FLAGS_1 with zero flags.
25772
25773         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25774         linker script munging.
25775
25776 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25777
25778         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25779         as 128-bit value.
25780         * crypt/sha512.c (sha512_process_block): Perform total addition using
25781         128-bit if possible.
25782         (__sha512_finish_ctx): Likewise.
25783         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25784         as 64-bit value.
25785         * crypt/sha256.c (SWAP64): Define.
25786         (sha256_process_block): Perform total addition using 64-bit if
25787         possible.
25788         (__sha256_finish_ctx): Likewise.
25789
25790 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25791
25792         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25793         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25794         * nscd/hstcache.c (cache_addhst): Likewise.
25795         * nscd/grpcache.c (cache_addgr): Likewise.
25796         * nscd/aicache.c (addhstaiX): Likewise
25797         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25798
25799 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25800
25801         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25802         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25803         * nscd/hstcache.c (cache_addhst): Likewise.
25804         * nscd/grpcache.c (cache_addgr): Likewise.
25805         * nscd/aicache.c (addhstaiX): Likewise
25806
25807 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25808
25809         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25810         domain only when needed.
25811
25812 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25813
25814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25815         is always restored.
25816
25817 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25818
25819         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25820         are re-adding the entry.
25821         * nscd/servicescache.c (cache_addserv): Likewise.
25822
25823 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25824
25825         * sysdeps/generic/dl-irel.h: fix protection against multiple
25826         inclusions.
25827         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25828
25829 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25830
25831         [BZ #12935]
25832         * malloc/memusage.sh: Fix quoting in message.
25833         * debug/xtrace.sh: Likewise.
25834
25835         * configure.in: Remove support for --experimental-malloc option, make
25836         it the default.
25837         * config.make.in: Likewise.
25838         * malloc/Makefile: Likewise.
25839
25840 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25841
25842         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25843         two-byte characters.
25844
25845 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25846
25847         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25848         AC_CACHE_CHECK invocation.
25849         * configure: Regenerated.
25850
25851         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25852
25853 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25854
25855         [BZ #12350]
25856         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25857         bit from old_res_options.
25858
25859         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25860
25861         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25862         value type for setfct.
25863
25864 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25865
25866         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25867         __gettimeofday instead of gettimeofday.
25868
25869 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25870
25871         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25872
25873 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25874
25875         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25876
25877         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25878         info.
25879
25880 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25881
25882         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25883         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25884         strcpy-sse2-unaligned strncpy-sse2-unaligned
25885         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25886         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25887         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25888         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25889         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25890         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25891         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25892         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25893         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25894         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25895         (STRCPY): Support SSE2 and SSSE3 versions.
25896
25897 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25898
25899         [BZ #12874]
25900         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25901         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25902         kernels which artificially limit size of requests.
25903
25904 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25905
25906         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25907         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25908         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25909         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25910         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25911         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25912         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25913         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25914         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25916         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25917         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25918         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25919         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25920         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25922         Enable unaligned load optimization for Intel Core i3, i5 and i7
25923         processors.
25924         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25925         Define.
25926         (index_Fast_Unaligned_Load): Define.
25927         (HAS_FAST_UNALIGNED_LOAD): Define.
25928
25929 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25930
25931         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25932
25933 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25934
25935         [BZ #12907]
25936         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25937         until it is clear that the information is realy needed.
25938         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25939
25940 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25941
25942         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25943
25944 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25945
25946         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25947         /sys/devices/system/cpu/online if it is usable.
25948
25949         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25950         reading the information from the /proc filesystem to once a second.
25951
25952 2011-06-21  Andreas Jaeger  <aj@suse.de>
25953
25954         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25955         NULL after inclusion of kernel headers.
25956
25957 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25958
25959         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25960         calls to internal_setent.
25961
25962         [BZ #12885]
25963         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25964         addresses using gethostbyname4_r ignore IPv4 addresses.
25965
25966         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25967         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25968
25969         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25970
25971 2011-06-20  David S. Miller  <davem@davemloft.net>
25972
25973         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25974         inclusions.
25975         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25976
25977         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25978         (elf_irel): Use it.
25979         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25980         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25981         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25982         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25983         * sysdeps/x86_64/dl-irel.h: Likewise.
25984
25985         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25986         * elf/dl-sym.c: Likewise.
25987
25988 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25989
25990         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
25991         need to dereference resplen2.
25992
25993 2011-06-14  Andreas Schwab  <schwab@redhat.com>
25994
25995         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
25996
25997 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25998
25999         * Makeconfig: Define vardbdir and inst_vardbdir.
26000         * nss/Makefile: Add rules to install db-Makefile.
26001
26002         * nss/nss_db/db-XXX.c: Cleanup.
26003
26004         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26005         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26006         GLIBC_PRIVATE.
26007         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26008         * nss/makedb.c: Implement -g option to specify that value strings
26009         are generated and should not be added to table iterated over for
26010         get*ent calls.
26011         * nss/nss_db/db-initgroups.c: New file.
26012
26013         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26014         interface.
26015
26016         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26017         (internal_getgrouplist): Adjust to name change.
26018         Update use_initgroups_entry if this is not the first call.
26019         * nss/databases.def: Add initgroups entry.
26020
26021         * nss/makedb.c (compute_tables): Check result of multiple hash table
26022         sizes to minimize maximum chain length.
26023
26024 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26025
26026         * Versions.def: Add entry for libnss_db.
26027         * shlib-versions: Likewise.
26028         * nss/Makefile: Add rules to build libnss_db.
26029         * nss/Versions: Add libnss_db information.  Organize libnss_files
26030         entries better.
26031         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26032         makedb progra.  Some minor improvements to generate smaller files.
26033         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26034         here from...
26035         * nss/makedb.c: ...here.
26036         Improve database format to be smaller and require less memory at
26037         runtime.
26038         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26039         db anymore.
26040         * nss/nss_db/db-netgrp.c: Likewise.
26041         * nss/nss_db/db-open.c: Likewise.
26042         * nss/nss_files/flies-XXX.x: Adjust comments.
26043         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26044         * nss/nss_files/files-grp.c: Likewise.
26045         * nss/nss_files/files-hosts.c: Likewise.
26046         * nss/nss_files/files-network.c: Likewise.
26047         * nss/nss_files/files-proto.c: Likewise.
26048         * nss/nss_files/files-pwd.c: Likewise.
26049         * nss/nss_files/files-rpc.c: Likewise.
26050         * nss/nss_files/files-service.c: Likewise.
26051         * nss/nss_files/files-sgrp.c: Likewise.
26052         * nss/nss_files/files-spwd.c: Likewise.
26053         * nss/nss_db/db-alias.c: Removed.
26054         * nss/nss_db/dummy-db.h: Removed.
26055
26056 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26057
26058         * nss/makedb.c: Rewritten to not use database library.
26059         * nss/Makefile: Update to build new makedb program.
26060
26061 2011-06-14  Andreas Jaeger  <aj@suse.de>
26062
26063         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26064         memset declaration.
26065
26066 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26067
26068         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26069         tmpbuf.
26070
26071 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26072
26073         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26074         * elf/Makefile ($(objpfx)ld.so): Likewise.
26075
26076         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26077         Don't list ld.so twice in dependencies.
26078
26079         * posix/bug-regex31.c: Include <stdlib.h>.
26080
26081         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26082
26083         * nis/nss_compat/compat-spwd.c
26084         (getspent_next_nss_netgr): Remove unused variable.
26085         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26086
26087         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26088         nonmembers" output to use the right array.
26089
26090         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26091
26092         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26093
26094         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26095         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26096         * catgets/gencat.c (read_input_file): Likewise.
26097         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26098
26099         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26100         variable definition inside #if's controlling its use.
26101
26102         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26103
26104         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26105
26106         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26107
26108         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26109         unreachable code.
26110
26111         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26112
26113         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26114         * configure: Regenerated.
26115
26116         * Makerules: Revert last change.
26117         * elf/Makefile: Likewise.
26118
26119 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26120
26121         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26122         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26123         (reloc-link): Likewise.
26124
26125 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26126
26127         * elf/Makefile: Add rules to build pldd.
26128         * elf/pldd.c: New file.
26129         * elf/pldd-xx.c: New file.
26130
26131 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26132
26133         * version.h: Update for 2.15 development version.
26134
26135 2011-06-07  David S. Miller  <davem@davemloft.net>
26136
26137         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26138         ifuncs.
26139         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26140         elf_machine_lazy_rel): Likewise.
26141         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26142         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26143         elf_machine_lazy_rel): Likewise.
26144         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26145         dl_hwcap via passed in argument.
26146         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26147         Likewise.
26148
26149 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26150
26151         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26152
26153 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26154
26155         [BZ #12849]
26156         * manual/fdl-1.1.texi: New file, verbatim from:
26157         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26158         * manual/lgpl-2.1.texi: New file, verbatim from:
26159         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26160         * manual/Makefile (licenses): New variable, list those new file names.
26161         (texis): Use it.
26162         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26163
26164         * manual/fdl.texi: File removed.
26165         * manual/lesser.texi: File removed.
26166         * manual/libc.texinfo (Copying, Documentation License):
26167         Use new @include file names, put @appendix directive before @include.
26168
26169 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26170
26171         [BZ #12841]
26172         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26173         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26174         (mq_open): Add __NTH.
26175
26176 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26177
26178         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26179         Assume Intel Core i3/i5/i7 processor if AVX is available.
26180
26181 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26182
26183         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26184         typo.
26185
26186 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26187
26188         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26189         memory.  Use alloca_account.  Fix memory leak when retrying.
26190
26191 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26192
26193         * version.h (RELEASE): Bump for 2.14 release.
26194         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26195
26196         * config.make.in (RANLIB): Remove entry.
26197
26198 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26199
26200         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26201         (libc.pot): Work around missing support for .ksh extension in xgettext.
26202
26203         [BZ #12684]
26204         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26205         if both request failed.
26206         (send_dg): In case of server errors clear resplen or *resplen2.
26207
26208         [BZ #12454]
26209         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26210         when there are multiple maps.
26211         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26212         (_dl_fini): Remove test here.
26213
26214         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26215
26216 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26217
26218         [BZ #12350]
26219         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26220         bit from old_res_options.
26221         (gaih_inet): Likewise.
26222
26223         [BZ #11099]
26224         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26225         as signed.
26226
26227         * resolv/res_init.c (res_setoptions): Make the code more compact.
26228
26229         [BZ #11558]
26230         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26231         set RES_USEVC.
26232
26233         [BZ #11634]
26234         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26235
26236         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26237
26238         [BZ #11781]
26239         * malloc/malloc.h: Declare malloc hook variables as volatile.
26240
26241         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26242         in last patch.
26243
26244         [BZ #11799]
26245         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26246         raise in the comment.
26247         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26248         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26249         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26250
26251 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26252
26253         [BZ #12811]
26254         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26255         grow the buffers more if it already has to be sufficient.
26256         (build_wcs_upper_buffer): Likewise.
26257         * posix/regexec.c (check_matching): Likewise.
26258         (clean_state_log_if_needed): Likewise.
26259         (extend_buffers): Don't enlarge buffers beyond size of the input
26260         buffer.
26261         Patches mostly by Emil Wojak <emil@wojak.eu>.
26262         * posix/bug-regex32.c: New file.
26263         * posix/Makefile (tests): Add bug-regex32.
26264
26265         * locale/findlocale.c (_nl_find_locale): Return right away if
26266         _nl_explode_name failed.
26267         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26268
26269         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26270
26271         * debug/xtrace.sh: Unify messages.
26272         * malloc/memusage.sh: Likewise.
26273
26274         [BZ #12813]
26275         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26276         time symbol from vDSO.  Substitute with vsyscall if not available.
26277         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26278         __vdso_time.
26279
26280         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26281         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26282         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26283         Add sendmmsg and internal_sendmmsg.
26284         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26285         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26286         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26287
26288         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26289         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26290         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26291
26292 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26293
26294         [BZ #12813]
26295         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26296         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26297         available.
26298         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26299         __vdso_getcpu.
26300
26301         [BZ #12814]
26302         * iconvdata/Makefile (tests): Add bug-iconv9.
26303         * iconvdata/bug-iconv9.c: New file.
26304
26305 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26306
26307         [BZ #12814]
26308         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26309
26310 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26311
26312         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26313         (struct user_regs_struct): Change intcs field back to cs.
26314
26315 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26316
26317         * po/ja.po: Update from translation team.
26318
26319 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26320
26321         [BZ #12795]
26322         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26323         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26324
26325 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26326
26327         * stdlib/longlong.h: Update from GCC.
26328
26329 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26330
26331         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26332         parameter name.
26333         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26334         Add parameter name.
26335         (__sysconf): Pass it down.
26336
26337 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26338
26339         [BZ #12671]
26340         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26341         some situations.
26342         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26343         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26344         add in in __libc_use_alloca calls.  Adjust callers.
26345         (glob): Use malloc in some situations.
26346
26347         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26348         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26349         pltexit.
26350
26351 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26352
26353         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26354         and CLOCK_BOOTTIME_ALARM.
26355
26356         [BZ #12782]
26357         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26358         is returned.
26359
26360         * string/_strerror.c (__strerror_r): Print negative errors as signed
26361         numbers.
26362
26363         [BZ #12777]
26364         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26365         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26366         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26367
26368         * configure.in: Fix typo in redirection and correct removal of test
26369         files in two cases.
26370
26371         [BZ #12788]
26372         * locale/setlocale.c (new_composite_name): Fix test to check for
26373         identical name of all categories.
26374
26375         [BZ #12792]
26376         * libio/filedoalloc.c (local_isatty): New function.
26377         (_IO_file_doallocate): Use local_isatty.
26378         * stdio-common/perror.c (perror): In case a new stream is used
26379         forward the stream error.
26380         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26381         error flag.
26382
26383 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26384
26385         [BZ #11869]
26386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26387         alloca.
26388         * include/alloca.h (extend_alloca_account): Define.
26389
26390         [BZ #11857]
26391         * posix/regex.h: Fix comments with documentation of user-accessible
26392         fields after compilation and describe correct free'ing of pattern
26393         after re_compile_pattern.
26394         Patch by Reuben Thomas <rrt@sc3d.org>.
26395
26396 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26397
26398         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26399         and -mno-altivec to prevent the compiler from using Altivec and/or
26400         VSX instructions when the corresponding registers are not available.
26401
26402 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26403
26404         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26405
26406 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26407
26408         * libio/freopen.c (freopen): Use __dup2, not dup2.
26409         * libio/freopen64.c (freopen64): Likewise.
26410
26411 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26412
26413         [BZ #12775]
26414         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26415         * math/Makefile (tests): Add test-powl.
26416         (CFLAGS-test-powl.c): Define.
26417         * math/test-powl.c: New file.
26418
26419 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26420
26421         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26422
26423 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26424
26425         [BZ #11837]
26426         * iconvdata/gb18030.c: Update to GB18020-2005.
26427
26428 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26429
26430         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26431         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26432         Patch by Aharon Robbins <arnold@skeeve.com>.
26433
26434         [BZ #11892]
26435         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26436         on the stack.
26437
26438         [BZ #11895]
26439         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26440         through underflows.
26441
26442         [BZ #12766]
26443         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26444         point to strings before performing equality test for error_one_per_line
26445         mode.
26446
26447         [BZ #11697]
26448         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26449
26450         [BZ #11820]
26451         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26452         (struct user_fpregs_struct): Avoid __uint*_t types.
26453
26454         [BZ #6420]
26455         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26456         symbol info.  Use it instead of calling _dl_addr locally.
26457         (lock_and_info): New function.
26458         (tr_freehook): Call lock_and_info and pass symbol info as additional
26459         parameter to tr_where.
26460         (tr_mallochook): Likewise.
26461         (tr_reallochook): Likewise.
26462         (tr_memalignhook): Likewise.
26463
26464         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26465         used and couldn't be at all thread-safe.
26466
26467 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26468
26469         * libio/freopen.c (freopen): Don't close old file descriptor
26470         before the new one is opened.  Instead dup the new file descriptor
26471         to the old one after the new stream is created.
26472         * libio/freopen64.c (freopen64): Likewise.
26473         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26474         * libio/fileops.c (_IO_new_file_close_it): Handle new
26475         _IO_FLAGS2_NOCLOSE flag.
26476         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26477         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26478         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26479         _IO_FLAGS2_NOCLOSE flag.
26480         * include/unistd.h: Add hidden_proto for dup3.
26481         Define __have_dup3.
26482         * io/dup3.c: Define hidden symbol.
26483         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26484
26485         [BZ #7101]
26486         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26487         when an incomplete long option is used.
26488         * posix/tst-getopt_long1.c: New file.
26489         * posix/Makefile (tests): Add tst-getopt_long1.
26490
26491         [BZ #10138]
26492         * scripts/config.guess: Update from autoconf-2.68.
26493         * scripts/config.sub: Likewise.
26494
26495         [BZ #10157]
26496         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26497         tests into ...
26498         (has_cpuclock): ...this.  New function.
26499         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26500         macro here based on has_cpuclock code.
26501
26502         [BZ #10149]
26503         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26504         First byte (not low byte) is now always NUL.
26505         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26506
26507         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26508         Use non-cancelable interfaces.
26509
26510         [BZ #9809]
26511         * locale/iso-639.def: Add entry for Sorani.
26512
26513         [BZ #11901]
26514         * include/stdlib.h: Move include protection to the right place.
26515         Define abort_msg_s.  Declare __abort_msg with it.
26516         * stdlib/abort.c (__abort_msg): Adjust type.
26517         * assert/assert.c (__assert_fail_base): New function.  Majority
26518         of code from __assert_fail.  Allocate memory for __abort_msg with
26519         mmap.
26520         (__assert_fail): Now call __assert_fail_base.
26521         * assert/assert-perr.c: Remove bulk of implementation.  Use
26522         __assert_fail_base.
26523         * include/assert.hL Declare __assert_fail_base.
26524         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26525         mmap.
26526         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26527
26528 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26529
26530         [BZ #11952]
26531         [BZ #12453]
26532         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26533         until all modules are registered in the DTV.
26534         * elf/Makefile: Add rules to build and run tst-tls19.
26535         * elf/tst-tls19.c: New file.
26536         * elf/tst-tls19mod1.c: New file.
26537         * elf/tst-tls19mod2.c: New file.
26538         * elf/tst-tls19mod3.c: New file.
26539         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26540
26541         [BZ #12083]
26542         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26543         correctly.
26544
26545         [BZ #12601]
26546         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26547         two-byte sequence errors.
26548         * iconvdata/Makefile (tests): Add bug-iconv8.
26549         * iconvdata/bug-iconv8.c: New file.
26550
26551         [BZ #12626]
26552         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26553         buf2 definition.
26554
26555         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26556
26557         [BZ #12432]
26558         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26559         (dummy_getcfa): New function.
26560         (init): Get _Unwind_GetCFA address, use dummy if not found.
26561         (backtrace_helper): In recursion check, also check whether CFA changes.
26562         (__backtrace): Completely initialize arg.
26563
26564         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26565         storing incomplete byte sequence in state object.  Avoid testing for
26566         guaranteed too small input if we know there is enough data available.
26567
26568 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26569
26570         * Makeconfig (+link-pie): Indent.
26571         * Rules (binaries-pie): Define if $(have-fpie) and
26572         $(build-shared).
26573         (binaries-shared): Also filter out $(binaries-pie).
26574         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26575         * nscd/Makefile (others-pie): Add nscd.
26576         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26577         ($(objpfx)nscd): Remove command override.
26578         * login/Makefile (others-pie): Add pt_chown.
26579         ($(objpfx)pt_chown): Remove command override.
26580         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26581         remove command overrides.
26582
26583 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26584
26585         * libio/tst_putwc.c: Fix error messages.
26586
26587         [BZ #12724]
26588         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26589         currently writing and seek to current position when not.
26590         * libio/Makefile (tests): Add bug-fclose1.
26591         * libio/bug-fclose1.c: New file.
26592
26593 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26594
26595         [BZ #12511]
26596         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26597         don't set DF_1_NODELETE here.
26598         (do_lookup_x): When entering new entry test for copy relocation
26599         and if necessary set DF_1_NODELETE flag.
26600         * elf/tst-unique4.cc: New file.
26601         * elf/tst-unique4.h: New file.
26602         * elf/tst-unique4lib.cc: New file.
26603         * elf/Makefile: Add rules to build and run tst-unique4.
26604         Patch by Piotr Bury <pbury@goahead.com>.
26605
26606 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26607
26608         [BZ #12052]
26609         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26610
26611         [BZ #12625]
26612         * misc/mntent_r.c (addmntent): Flush the stream after the output
26613
26614         [BZ #12393]
26615         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26616         (is_trusted_path_normalize): Skip initial colon.  Append slash
26617         to empty buffer.  Duplicate is_trusted_path code but allow
26618         constructed patch to be prefix.
26619         (is_dst): Allow $ORIGIN followed by /.
26620         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26621         Correct testing of result of is_trusted_path_normalize
26622         (decompose_rpath): Fix warning.
26623
26624 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26625
26626         [BZ #11257]
26627         * grp/initgroups.c (internal_getgrouplist): When we found the service
26628         list through the initgroups entry in nsswitch.conf do not always
26629         continue on a successful lookup.  Don't always use the
26630         __nss_group_database value if it is set.
26631         * nss/nsswitch.conf (initgroups): Change action for successful db
26632         lookup to continue for compatibility.
26633
26634 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26635
26636         [BZ #11532]
26637         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26638         and CP774 modules.
26639         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26640         and CP774 modules.
26641         * iconvdata/tst-tables.sh: Likewise.
26642         * iconvdata/cp770.c: New file.
26643         * iconvdata/cp771.c: New file.
26644         * iconvdata/cp772.c: New file.
26645         * iconvdata/cp773.c: New file.
26646         * iconvdata/cp774.c: New file.
26647         * iconvdata/testdata/CP770: New file.
26648         * iconvdata/testdata/CP770..UTF8: New file.
26649         * iconvdata/testdata/CP771: New file.
26650         * iconvdata/testdata/CP771..UTF8: New file.
26651         * iconvdata/testdata/CP772: New file.
26652         * iconvdata/testdata/CP772..UTF8: New file.
26653         * iconvdata/testdata/CP773: New file.
26654         * iconvdata/testdata/CP773..UTF8: New file.
26655         * iconvdata/testdata/CP774: New file.
26656         * iconvdata/testdata/CP774..UTF8: New file.
26657
26658         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26659         END CHARMAP line.
26660         * iconvdata/gen-8bit-gap.sh: Likewise.
26661         * iconvdata/gen-8bit.sh: Likewise.
26662
26663         * locale/iso-639.def: Add ary entry.
26664
26665         [BZ #11258]
26666         * locale/C-translit.h.in: Add U20A1 transliteration.
26667
26668         [BZ #12178]
26669         * locale/iso-639.def: Add wae entry.
26670         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26671
26672         [BZ #12545]
26673         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26674         for n.
26675
26676         [BZ #12711]
26677         * locale/C-translit.h.in: Add entry for U20B9.
26678         Patch by pravin.d.s@gmail.com.
26679
26680 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26681
26682         [BZ #12713]
26683         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26684         ENAMETOOLONG use generic getcwd.
26685         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26686         in rtld.  Use *stat64.
26687         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26688         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26689         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26690         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26691         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26692         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26693         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26694         __fstatat64 macros.
26695         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26696         * dirent/rewinddir.c: Add libc_hidden_def.
26697         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26698         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26699
26700         * include/dirent.h (__alloc_dir): Add flags parameter.
26701         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26702         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26703         __alloc_dir.
26704         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26705         from fdopendir if O_CLOEXEC is already set.
26706
26707 2011-03-15  Alan Modra  <amodra@gmail.com>
26708
26709         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26710         l_tls_firstbyte_offset non-zero.  Save padding offset in
26711         l_tls_firstbyte_offset for later use.
26712         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26713         freeing static tls block.
26714
26715 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26716
26717         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26718         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26719         being defined by the kernel headers.
26720
26721 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26722
26723         [BZ #12734]
26724         * resolv/resolv.h: Define RES_NOTLDQUERY.
26725         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26726         no-tld-query and set RES_NOTLDQUERY.
26727         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26728         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26729         modern BIND to search name as TLD unless forbidden.
26730
26731 2011-05-07  Petr Baudis  <pasky@suse.cz>
26732             Ulrich Drepper  <drepper@gmail.com>
26733
26734         [BZ #12393]
26735         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26736         (is_trusted_path): ...to here.
26737         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26738         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26739         using is_trusted_path_normalize() in setuid scripts.
26740
26741 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26742
26743         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26744         __BEGIN/__END_DECLS.
26745
26746 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26747
26748         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26749         NSS_STATUS_NOTFOUND if no record was found.
26750
26751 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26752
26753         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26754         (headers-not-in-tirpc): Remove rpc/netdb.h
26755         * resolv/netdb.h: Revert last change.
26756
26757 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26758
26759         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26760         circular dependency between libgcc.a and libc.a.
26761
26762 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26763
26764         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26765         * nis/Makefile: Don't install rpcsvc/*.
26766         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26767         instead of <rpc/types.h>.
26768         (MAXHOSTNAMELEN): Define.
26769
26770 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26771
26772         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26773
26774 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26775
26776         [BZ #12714]
26777         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26778         gethostbyname4_r when IPv6 results are possible.
26779
26780 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26781
26782         [BZ #12723]
26783         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26784         _PC_PIPE_BUF handling.
26785
26786 2011-04-30  Bruno Haible  <bruno@clisp.org>
26787
26788         [BZ #12717]
26789         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26790         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26791         to 'int'.
26792         * inet/getnameinfo.c (getnameinfo): Likewise.
26793
26794 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26795
26796         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26797         to groups setting in database lookup.
26798         * nss/nsswitch.conf: Add initgroups entry.
26799
26800 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26801
26802         [BZ #12685]
26803         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26804         mode string.
26805         Patch by Eric Blake <eblake@redhat.com>.
26806
26807 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26808
26809         * sunrpc/Makefile (need-export-routines): Add svc_run.
26810         (routines): Remove svc_run.
26811         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26812         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26813         * sunrpc/svc_run.c (svc_run): Likewise.
26814         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26815
26816 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26817
26818         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26819         problem in reallocation in last patch.
26820
26821 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26822
26823         * sunrpc/Makefile: Move inclusion of Rules.
26824
26825 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26826
26827         * nss/nss_files/files-initgroups.c: New file.
26828         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26829         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26830         _nss_files_initgroups_dyn.
26831
26832 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26833
26834         * elf/elf.h (R_ARM_IRELATIVE): Define.
26835
26836 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26837
26838         * po/ru.po: Update from translation team.
26839
26840 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26841
26842         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26843         dependencies.
26844
26845 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26846
26847         [BZ #12653]
26848         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26849         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26850         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26851         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26852         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26853
26854 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26855
26856         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26857         differing bytes.
26858         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26859         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26860         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26861
26862 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26863
26864         [BZ #12420]
26865         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26866         storing it.
26867         * stdlib/bug-getcontext.c: New file.
26868         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26869
26870 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26871
26872         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26873         instructions into .machine "z9-109".
26874         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26875         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26876
26877 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26878
26879         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26880         between environment variables and auxiliary vector.
26881
26882 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26883
26884         * Makefile: Add rules to build linkobj/libc.so.
26885         * include/libc-symbols.h: Define libc_hidden_nolink.
26886         * include/rpc/auth.h: Mark functions which are to be hidden.
26887         * include/rpc/auth_des.h: Likewise.
26888         * include/rpc/auth_unix.h: Likewise.
26889         * include/rpc/clnt.h: Likewise.
26890         * include/rpc/des_crypt.h: Likewise.
26891         * include/rpc/key_prot.h: Likewise.
26892         * include/rpc/pmap_clnt.h: Likewise.
26893         * include/rpc/pmap_prot.h: Likewise.
26894         * include/rpc/pmap_rmt.h: Likewise.
26895         * include/rpc/rpc_msg.h: Likewise.
26896         * include/rpc/svc.h: Likewise.
26897         * include/rpc/svc_auth.h: Likewise.
26898         * include/rpc/xdr.h: Likewise.
26899         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26900         * nss/Makefile: Likewise.
26901         * sunrpc/Makefile: Don't install headers.  Build library with normal
26902         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26903         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26904         for the compat linking library.  Remove use of INTDEF/INTUSE.
26905         * sunrpc/auth_none.c: Likewise.
26906         * sunrpc/auth_unix.c: Likewise.
26907         * sunrpc/authdes_prot.c: Likewise.
26908         * sunrpc/authuxprot.c: Likewise.
26909         * sunrpc/clnt_gen.c: Likewise.
26910         * sunrpc/clnt_perr.c: Likewise.
26911         * sunrpc/clnt_raw.c: Likewise.
26912         * sunrpc/clnt_simp.c: Likewise.
26913         * sunrpc/clnt_tcp.c: Likewise.
26914         * sunrpc/clnt_udp.c: Likewise.
26915         * sunrpc/clnt_unix.c: Likewise.
26916         * sunrpc/des_crypt.c: Likewise.
26917         * sunrpc/des_soft.c: Likewise.
26918         * sunrpc/get_myaddr.c: Likewise.
26919         * sunrpc/key_call.c: Likewise.
26920         * sunrpc/key_prot.c: Likewise.
26921         * sunrpc/netname.c: Likewise.
26922         * sunrpc/pm_getmaps.c: Likewise.
26923         * sunrpc/pm_getport.c: Likewise.
26924         * sunrpc/pmap_clnt.c: Likewise.
26925         * sunrpc/pmap_prot.c: Likewise.
26926         * sunrpc/pmap_prot2.c: Likewise.
26927         * sunrpc/pmap_rmt.c: Likewise.
26928         * sunrpc/publickey.c: Likewise.
26929         * sunrpc/rpc_cmsg.c: Likewise.
26930         * sunrpc/rpc_common.c: Likewise.
26931         * sunrpc/rpc_dtable.c: Likewise.
26932         * sunrpc/rpc_prot.c: Likewise.
26933         * sunrpc/rpc_thread.c: Likewise.
26934         * sunrpc/rtime.c: Likewise.
26935         * sunrpc/svc.c: Likewise.
26936         * sunrpc/svc_auth.c: Likewise.
26937         * sunrpc/svc_authux.c: Likewise.
26938         * sunrpc/svc_raw.c: Likewise.
26939         * sunrpc/svc_run.c: Likewise.
26940         * sunrpc/svc_simple.c: Likewise.
26941         * sunrpc/svc_tcp.c: Likewise.
26942         * sunrpc/svc_udp.c: Likewise.
26943         * sunrpc/svc_unix.c: Likewise.
26944         * sunrpc/svcauth_des.c: Likewise.
26945         * sunrpc/xcrypt.c: Likewise.
26946         * sunrpc/xdr.c: Likewise.
26947         * sunrpc/xdr_array.c: Likewise.
26948         * sunrpc/xdr_float.c: Likewise.
26949         * sunrpc/xdr_intXX_t.c: Likewise.
26950         * sunrpc/xdr_mem.c: Likewise.
26951         * sunrpc/xdr_rec.c: Likewise.
26952         * sunrpc/xdr_ref.c: Likewise.
26953         * sunrpc/xdr_sizeof.c: Likewise.
26954         * sunrpc/xdr_stdio.c: Likewise.
26955
26956 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26957
26958         [BZ #12650]
26959         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26960         * sysdeps/ia64/dl-tls.h: Likewise.
26961         * sysdeps/powerpc/dl-tls.h: Likewise.
26962         * sysdeps/s390/dl-tls.h: Likewise.
26963         * sysdeps/sh/dl-tls.h: Likewise.
26964         * sysdeps/sparc/dl-tls.h: Likewise.
26965         * sysdeps/x86_64/dl-tls.h: Likewise.
26966         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26967
26968 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26969
26970         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26971         rpath element also skip the following colon.
26972         (expand_dynamic_string_token): Add is_path parameter and pass
26973         down to DL_DST_REQUIRED and _dl_dst_substitute.
26974         (decompose_rpath): Call expand_dynamic_string_token with
26975         non-zero is_path.  Ignore empty rpaths.
26976         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26977         with zero is_path.
26978
26979 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26980
26981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26982         Make cancelable.
26983
26984 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26985
26986         [BZ #12655]
26987         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26988         Patch by Filipe David Manana <fdmanana@apache.org>.
26989
26990 2011-04-07  Andreas Schwab  <schwab@redhat.com>
26991
26992         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
26993         Maintain aligned stack.
26994         (CHECK_RSP): Remove unused macro.
26995
26996 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
26997
26998         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
26999         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27000
27001 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27002
27003         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27004
27005         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27006
27007 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27008
27009         [BZ #12518]
27010         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27011         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27012         * sysdeps/x86_64/memmove.c: New file.
27013         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27014         (memcpy): Renamed to ...
27015         (__new_memcpy): This.
27016         (memcpy): Provide GLIBC_2_14 memcpy.
27017         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27018         (memcpy): Provide GLIBC_2_2_5 memcpy.
27019
27020 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27021
27022         [BZ #12631]
27023         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27024
27025 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27026
27027         * misc/syncfs.c: New file.
27028         * misc/Makefile (routines): Add syncfs.
27029         * posix/unistd.h: Declare syncfs.
27030         * sysdeps/unix/syscalls.list: Add syncfs.
27031
27032 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27033
27034         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27035         open_by_handle_at.
27036         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27037         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27038         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27039         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27040         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27041         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27042         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27043
27044 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27045
27046         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27047         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27048         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27049         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27050         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27051         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27053
27054         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27055         sync_file_range.c with -fexceptions.
27056         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27057         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27058         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27059         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27060         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27061         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27062         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27063         sync_file_range as cancellation point
27064         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27065         now a wrapper around __call_sync_file_range with cancellation handling.
27066         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27067         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27068         function name to __call_sync_file_range.
27069         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27070         Add call_sync_file_range.
27071
27072 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27073
27074         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27075         bits/timex.h.
27076
27077 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27078
27079         * iconv/iconv.h: Fix typo in comment.
27080         * io/fcntl.h: Likewise.
27081         * libio/stdio.h: Likewise.
27082         * posix/spawn.h: Likewise.
27083         * posix/unistd.h: Likewise.
27084         * stdlib/stdlib.h: Likewise.
27085         * time/time.h: Likewise.
27086         * wcsmbs/wchar.h: Likewise.
27087
27088         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27089         open_by_handle): Add.
27090         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27091         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27092         Augment a few comments.
27093         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27094         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27095         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27096         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27097         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27098         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27099         open_by_handle.
27100
27101         * io/fcntl.h (AT_EMPTY_PATH): Define.
27102
27103 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27104
27105         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27106         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27107         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27108         to...
27109         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27110         * Versions.def: Add GLIBC_2.14.
27111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27112         Export.
27113
27114 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27115
27116         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27117         round counter.
27118         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27119
27120 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27121
27122         [BZ #12597]
27123         * string/test-strncmp.c (do_page_test): New function.
27124         (check2): Likewise.
27125         (test_main): Call check2.
27126         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27127
27128 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27129
27130         [BZ #12587]
27131         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27132         Handle cache information in CPU leaf 4.
27133         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27134
27135 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27136
27137         [BZ #12583]
27138         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27139         character representation.
27140         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27141
27142 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27143
27144         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27145         END(__isnan) to END(__isnanf) to match function entry point/label
27146         EALIGN(__isnanf,...).
27147
27148 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27149
27150         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27151
27152 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27153
27154         [BZ #12510]
27155         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27156         copy from the symbol referenced in the relocation to initialize the
27157         used variable.
27158         Patch by Piotr Bury <pbury@goahead.com>.
27159         * elf/Makefile: Add rules to build and tst-unique3.
27160         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27161         * elf/tst-unique3.cc: New file.
27162         * elf/tst-unique3.h: New file.
27163         * elf/tst-unique3lib.cc: New file.
27164         * elf/tst-unique3lib2.cc: New file.
27165
27166         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27167
27168 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27169
27170         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27171         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27172         to _start.
27173
27174 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27175
27176         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27177         to-be-loaded object along a path to loader is ld.so.
27178
27179 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27180             Ulrich Drepper  <drepper@gmail.com>
27181
27182         * sysdeps/x86_64/memset.S: After aligning destination, code
27183         branches to different locations depending on the value of
27184         misalignment, when multiarch is enabled. Fix this.
27185
27186 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27187
27188         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27189         Set _x86_64_preferred_memory_instruction for AMD processsors.
27190         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27191         Set bit_Prefer_SSE_for_memop for AMD processors.
27192
27193 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27194
27195         * libio/fmemopen.c (fmemopen): Optimize a bit.
27196
27197 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27198
27199         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27200
27201 2011-03-03  Roland McGrath  <roland@redhat.com>
27202
27203         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27204
27205 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27206
27207         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27208         __bzero_ultra1 instead of __memset_ultra1.
27209
27210 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27211             Ulrich Drepper  <drepper@gmail.com>
27212
27213         [BZ #12509]
27214         * include/link.h (struct link_map): Add l_orig_initfini.
27215         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27216         returning unsuccessfully.
27217         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27218         close of a file loaded at startup, restore the original l_initfini
27219         list.
27220         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27221         list, store the pointer.
27222         * elf/Makefile ($(objpfx)noload-mem): New rule.
27223         (noload-ENV): Define.
27224         (tests): Add $(objpfx)noload-mem.
27225         * elf/noload.c: Include <memcheck.h>.
27226         (main): Call mtrace.  Close all opened handles.
27227
27228 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27229
27230         [BZ #12454]
27231         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27232         dependencies are missing.
27233
27234 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27235
27236         Fix __if_freereq crash: Unlike the generic version which uses free,
27237         Hurd needs munmap.
27238         * sysdeps/mach/hurd/ifreq.h: New file.
27239
27240 2011-01-27  Petr Baudis  <pasky@suse.cz>
27241             Ulrich Drepper  <drepper@gmail.com>
27242
27243         [BZ 12445]#
27244         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27245         to extend_alloca().
27246         * stdio-common/bug23.c: New file.
27247         * stdio-common/Makefile (tests): Add bug23.
27248
27249 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27250             Ulrich Drepper  <drepper@gmail.com>
27251
27252         [BZ #12489]
27253         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27254         before performing relro protection.  At old place add assertion
27255         to make sure nothing changed.
27256
27257 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27258             Glauber de Oliveira Costa  <glommer@gmail.com>
27259
27260         * elf/elf.h: Add new ARM TLS relocs.
27261
27262 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27263
27264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27265         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27266         cast from r3.
27267         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27268         'tests' variable.
27269         * sysdeps/wordsize-64/tst-writev.c: New file.
27270
27271 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27272
27273         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27274         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27275         insns in _dl_start to prevent a TOC reference before relocs are
27276         resolved.
27277
27278 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27279
27280         [BZ #12469]
27281         * Makeconfig: Remove RANLIB definition.
27282         * Makerules: Don't use RANLIB.
27283         * aclocal.m4: Remove ranlib test.
27284         * configure.in: No need to check for ranlib.
27285         * elf/rtld-Rules: Don't use RANLIB.
27286
27287 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27288
27289         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27290         protection macro.
27291         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27292         inclusion protection macro.
27293
27294         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27295         SIGRTMIN and SIGRTMAX and print information in that case only when
27296         SIGRTMIN is defined.
27297
27298 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27299
27300         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27301         arginfo fn returning -1.
27302
27303         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27304         and thousands string is zero terminated.
27305
27306 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27307
27308         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27309         sysdeps/unix/sysv/linux/bits/socket.h.
27310
27311 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27312
27313         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27314         (__CPU_COUNT): Remove old macros.
27315         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27316         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27317         (__CPU_ALLOC, __CPU_FREE): Add macros.
27318         (__sched_cpualloc, __sched_cpufree): Add declarations.
27319
27320 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27321
27322         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27323         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27324         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27325         (readdhstai): Return value of addhstaiX call.
27326         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27327         (addgrbyX): Return value returned by cache_addgr.
27328         (readdgrbyname): Return value returned by addgrbyX.
27329         (readdgrbygid): Likewise.
27330         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27331         (addpwbyX): Return value returned by cache_addpw.
27332         (readdpwbyname): Return value returned by addhstbyX.
27333         (readdpwbyuid): Likewise.
27334         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27335         (addservbyX): Return value returned by cache_addserv.
27336         (readdservbyname): Return value returned by addservbyX:
27337         (readdservbyport): Likewise.
27338         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27339         (addhstbyX): Return value returned by cache_addhst.
27340         (readdhstbyname): Return value returned by addhstbyX.
27341         (readdhstbyaddr): Likewise.
27342         (readdhstbynamev6): Likewise.
27343         (readdhstbyaddrv6): Likewise.
27344         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27345         (readdinitgroups): Return value returned by addinitgroupsX.
27346         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27347         (prune_cache): Keep track of timeout value of re-added entries.
27348         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27349         * nscd/nscd.h: Adjust prototypes of readd* functions.
27350
27351 2011-02-04  Roland McGrath  <roland@redhat.com>
27352
27353         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27354         (nis_stats): Likewise.
27355         * nis/nis_modify.c (nis_modify): Likewise.
27356         * nis/nis_remove.c (nis_remove): Likewise.
27357         * nis/nis_add.c (nis_add): Likewise.
27358
27359         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27360
27361         * posix/fnmatch_loop.c: Add some consts.
27362
27363         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27364
27365 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27366
27367         [BZ #12460]
27368         * config.make.in (config-cflags-novzeroupper): Define.
27369         * configure.in: Substitute libc_cv_cc_novzeroupper.
27370         * elf/Makefile (AVX-CFLAGS): Define.
27371         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27372         (CFLAGS-tst-auditmod4a.c): Likewise.
27373         (CFLAGS-tst-auditmod4b.c): Likewise.
27374         (CFLAGS-tst-auditmod6b.c): Likewise.
27375         (CFLAGS-tst-auditmod6c.c): Likewise.
27376         (CFLAGS-tst-auditmod7b.c): Likewise.
27377         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27378
27379 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27380
27381         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27382         function to the callback.
27383         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27384
27385 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27386
27387         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27388         of errno.
27389
27390 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27391
27392         [BZ #11724]
27393         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27394         of constructors.
27395         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27396         of destructors.
27397         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27398
27399         [BZ #11724]
27400         * elf/Makefile: Add rules to build and run new test.
27401         * elf/tst-initorder.c: New file.
27402         * elf/tst-initorder.exp: New file.
27403         * elf/tst-initordera1.c: New file.
27404         * elf/tst-initordera2.c: New file.
27405         * elf/tst-initordera3.c: New file.
27406         * elf/tst-initordera4.c: New file.
27407         * elf/tst-initorderb1.c: New file.
27408         * elf/tst-initorderb2.c: New file.
27409         * elf/tst-order-a1.c: New file.
27410         * elf/tst-order-a2.c: New file.
27411         * elf/tst-order-a3.c: New file.
27412         * elf/tst-order-a4.c: New file.
27413         * elf/tst-order-b1.c: New file.
27414         * elf/tst-order-b2.c: New file.
27415         * elf/tst-order-main.c: New file.
27416         New test case by George Gensure <werkt0@gmail.com>.
27417
27418 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27419
27420         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27421         decoding ACE if AI_CANONIDN.
27422
27423 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27424
27425         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27426
27427 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27428
27429         * version.h (RELEASE): Bump for 2.13 release.
27430         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27431
27432         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27433
27434         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27435         MADV_NOHUGEPAGE.
27436         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27437         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27438         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27439         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27440         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27441         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27442
27443         * posix/getconf.c: Update copyright year.
27444         * catgets/gencat.c: Likewise.
27445         * csu/version.c: Likewise.
27446         * debug/catchsegv.sh: Likewise.
27447         * debug/xtrace.sh: Likewise.
27448         * elf/ldconfig.c: Likewise.
27449         * elf/ldd.bash.in: Likewise.
27450         * elf/sprof.c (print_version): Likewise.
27451         * iconv/iconv_prog.c: Likewise.
27452         * iconv/iconvconfig.c: Likewise.
27453         * locale/programs/locale.c: Likewise.
27454         * locale/programs/localedef.c: Likewise.
27455         * malloc/memusage.sh: Likewise.
27456         * malloc/mtrace.pl: Likewise.
27457         * nscd/nscd.c (print_version): Likewise.
27458         * nss/getent.c: Likewise.
27459
27460         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27461         PF_CAIF, and PF_ALG.
27462         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27463
27464 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27465
27466         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27467         (modules-names): Use them.
27468         (ifunc-test-modules, ifunc-pie-tests): Define.
27469         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27470         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27471         (test-extras): Likewise.
27472         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27473         $(compile-command.c).
27474         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27475         (all-built-dso): Define.
27476         (check-textrel.out, check-execstack.out): Depend on it.
27477
27478         * configure.in: Don't override --enable-multi-arch.
27479
27480 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27481
27482         [BZ #6812]
27483         * nscd/hstcache.c (tryagain): Define.
27484         (cache_addhst): Return tryagain not notfound for temporary errors.
27485         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27486         failed.
27487
27488 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27489
27490         [BZ #10563]
27491         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27492         to make the syscall.
27493         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27494
27495         [BZ #12378]
27496         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27497         and fall back to matching as normal character if the string ends before
27498         the matching ']' is found.  This is what POSIX requires.
27499         * posix/testfnm.c: Adjust test result.
27500         * posix/globtest.sh: Adjust test result.  Add new test.
27501         * posix/tst-fnmatch.input: Likewise.
27502         * posix/tst-fnmatch2.c: Add new test.
27503
27504 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27505
27506         * elf/Makefile (check-execstack): Revert last change.  Depend on
27507         check-execstack.h.
27508         (check-execstack.h): New target.
27509         (generated): Add check-execstack.h.
27510         * elf/check-execstack.c: Include "check-execstack.h".
27511         (main): Revert last change.
27512         (handle_file): Return zero if GNU_STACK is absent and
27513         DEFAULT_STACK_PERMS doesn't include PF_X.
27514
27515 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27516
27517         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27518         in child fails because the descriptor is already closed.
27519         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27520         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27521         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27522
27523         [BZ #12397]
27524         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27525         syscall.
27526
27527         [BZ #10484]
27528         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27529         temporary buffer used to handle multi lookups locally.
27530         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27531
27532 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27533
27534         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27535         loader is ld.so.
27536
27537 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27538
27539         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27540         alignment for SSE2.
27541
27542 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27543
27544         [BZ #12394]
27545         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27546         characters.  When rounding increased number of integer digits recompute
27547         number of groups.
27548         * stdio-common/tst-grouping.c: New file.
27549         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27550
27551 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27552
27553         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27554         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27555
27556         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27557         void.
27558         * bits/select.h: Likewise.
27559
27560 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27561
27562         * po/ja.po: Update from translation team.
27563
27564 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27565
27566         [BZ #11155]
27567         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27568         implementation just like for lxstat, fxstatat, et al.
27569
27570 2010-12-27  Jim Meyering  <meyering@redhat.com>
27571
27572         [BZ #12348]
27573         * posix/regexec.c (build_trtable): Return failure indication upon
27574         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27575
27576 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27577
27578         [BZ #12201]
27579         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27580         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27581         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27582         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27583
27584         [BZ #12207]
27585         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27586
27587         [BZ #12204]
27588         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27589         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27590
27591 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27592
27593         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27594         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27595         script has SORT_BY_INIT_PRIORITY.
27596         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27597         NO_CTORS_DTORS_SECTIONS is defined.
27598         * elf/soinit.c: Likewise.
27599         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27600         NO_CTORS_DTORS_SECTIONS is defined.
27601         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27602         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27603         * sysdeps/sh/init-first.c: Likewise.
27604         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27605
27606 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27607
27608         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27609         always use the slow path.
27610
27611 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27612
27613         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27614         similar rule which adds the sysdep directories to the header search in
27615         order to pick up the correct platform stackinfo.h.
27616         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27617         perform test if it is, otherwise return successfully without testing.
27618         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27619         DEFAULT_STACK_PERMS define in stackinfo.h.
27620         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27621         defined in stackinfo.h.
27622         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27623         DEFAULT_STACK_PERMS defined in stackinfo.h.
27624         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27625         * sysdeps/ia64/stackinfo.h: Likewise.
27626         * sysdeps/s390/stackinfo.h: Likewise.
27627         * sysdeps/sh/stackinfo.h: Likewise.
27628         * sysdeps/sparc/stackinfo.h: Likewise.
27629         * sysdeps/x86_64/stackinfo.h: Likewise.
27630         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27631         PF_X for powerpc64.  Retain PF_X for powerpc32.
27632
27633 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27634
27635         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27636         accurately.
27637         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27638         GETDENTS_64BIT_ALIGNED.
27639
27640 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27641
27642         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27643
27644 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27645
27646         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27647         _GNU_SOURCE.
27648
27649         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27650         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27651         Remove __restrict.
27652         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27653         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27654
27655 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27656
27657         [BZ #11655]
27658         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27659         are initialized.
27660
27661 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27662
27663         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27664
27665 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27666
27667         * po/it.po: Update from translation team.
27668
27669 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27670
27671         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27672         unused codes.
27673
27674 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27675
27676         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27677
27678 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27679
27680         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27681         specially.
27682         (gaih_getanswer_slice): Likewise.
27683
27684 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27685
27686         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27687
27688 2010-05-31  Petr Baudis  <pasky@suse.cz>
27689
27690         [BZ #11149]
27691         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27692         silently even in the chroot mode.
27693
27694 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27695
27696         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27697         last patch a bit.  Pretty printing
27698
27699 2010-05-31  Petr Baudis <pasky@suse.cz>
27700
27701         [BZ #10085]
27702         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27703         initialization of skip_initgroups_dyn.
27704
27705 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27706
27707         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27708         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27709
27710 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27711
27712         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27713
27714 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27715
27716         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27717         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27718         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27719         ($(objpfx)tst-fnmatch-mem): New rule.
27720         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27721         * posix/tst-fnmatch.c (main): Call mtrace.
27722
27723 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27724
27725         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27726         Support Intel processor model 6 and model 0x2c.
27727
27728 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27729
27730         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27731           signed comparison.
27732
27733 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27734
27735         [BZ #12205]
27736         * string/test-strncasecmp.c (check_result): New function.
27737         (do_one_test): Use it.
27738         (check1): New function.
27739         (test_main): Use it.
27740         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27741         Support strcasecmp and strncasecmp.
27742
27743 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27744
27745         [BZ #12194]
27746         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27747         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27748
27749 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27750
27751         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27752         IFUNC support.
27753         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27754         memset-x86-64.
27755         * sysdeps/x86_64/multiarch/bzero.S: New file.
27756         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27757         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27758         * sysdeps/x86_64/multiarch/memset.S: New file.
27759         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27760         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27761         Set bit_Prefer_SSE_for_memop for Intel processors.
27762         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27763         Define.
27764         (index_Prefer_SSE_for_memop): Define.
27765         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27766
27767 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27768
27769         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27770         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27771
27772 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27773
27774         [BZ #12191]
27775         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27776         (__x86_64_raw_data_cache_size_half): Likewise.
27777         (__x86_64_raw_shared_cache_size): Likewise.
27778         (__x86_64_raw_shared_cache_size_half): Likewise.
27779
27780         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27781         (__x86_64_raw_data_cache_size_half): Likewise.
27782         (__x86_64_raw_shared_cache_size): Likewise.
27783         (__x86_64_raw_shared_cache_size_half): Likewise.
27784         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27785         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27786         and __x86_64_raw_shared_cache_size_half.  Round
27787         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27788         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27789         to multiple of 256 bytes.
27790
27791 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27792
27793         [BZ #12167]
27794         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27795         of inacessible symlinks.  Verify result of symlink before returning it.
27796         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27797         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27798
27799 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27800
27801         * math/math.h (isinf): Fix typo in comment.
27802
27803 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27804
27805         * po/da.po: Update from translation team.
27806
27807 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27808
27809         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27810         is added to the list.
27811
27812 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27813             Ulrich Drepper  <drepper@gmail.com>
27814
27815         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27816         the global list here.  Move code to...
27817         (_dl_add_to_namespace_list): ...here.  New function.
27818         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27819         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27820         * elf/dl-load.c (lose): Don't remove the element from the list.
27821         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27822         (_dl_map_object): Likewise.
27823
27824 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27825
27826         [BZ #12159]
27827         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27828         into all bytes of SSE register.
27829         Patch by Richard Li <richardpku@gmail.com>.
27830
27831 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27832
27833         [BZ #12140]
27834         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27835         perturbing.
27836
27837 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27838
27839         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27840         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27841         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27842         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27844         submachine.
27845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27846
27847 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27848
27849         * include/dlfcn.h (__RTLD_SECURE): Define.
27850         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27851         mode & __RTLD_SECURE instead.
27852         (open_path): Rename preloaded parameter to secure.
27853         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27854         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27855         * elf/dl-deps.c (openaux): Likewise.
27856         * elf/rtld.c (struct map_args): Remove is_preloaded.
27857         (map_doit): Don't use it.
27858         (dl_main): Likewise.
27859         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27860         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27861
27862 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27863
27864         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27865         (sysd-rules-targets): Remove duplicates.
27866         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27867         rtld-%.$o dependency.
27868
27869 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27870
27871         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27872         _dl_map_object do it.
27873
27874 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27875
27876         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27877         fast fma builtins, define the macros in the C99 standard.
27878         (FP_FAST_FMAF): Likewise.
27879         (FP_FAST_FMAL): Likewise.
27880         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27881
27882         * bits/mathdef.h: Update copyright year.
27883         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27884
27885 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27886
27887         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27888         builtins, define the macros in the C99 standard.
27889         (FP_FAST_FMAF): Likewise.
27890         (FP_FAST_FMAL): Likewise.
27891         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27892         multiply/add.
27893         (FP_FAST_FMAF): Likewise.
27894
27895 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27896
27897         [BZ #3268]
27898         * math/libm-test.inc (fma_test): Some new testcases.
27899         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27900         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27901         y and infinite z.  Do multiplication by C already in long double.
27902         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27904         y and infinite z.  Do bitwise or of inexact bit into u.d.
27905         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27906         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27907         * sysdeps/i386/fpu/s_fma.S: Removed.
27908         * sysdeps/i386/fpu/s_fmal.S: Removed.
27909
27910 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27911
27912         [BZ #3268]
27913         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27914         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27915         computation is not scheduled after fetestexcept.  Fix value
27916         of minimum denormal long double.
27917
27918 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27919
27920         [BZ #3268]
27921         * math/libm-test.inc (fma_test): Add some more tests.
27922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27923         correctly.
27924
27925 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27926
27927         * scripts/data/localplt-s390-linux-gnu.data: New file.
27928         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27929
27930 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27931
27932         [BZ #3268]
27933         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27934         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27935         instead of dbl-64.
27936         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27937         inlines.
27938         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27939         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27940         if one of x and y is very large and the other is subnormal.
27941         * sysdeps/s390/fpu/s_fmaf.c: New file.
27942         * sysdeps/s390/fpu/s_fma.c: New file.
27943         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27944         * sysdeps/powerpc/fpu/s_fma.S: New file.
27945         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27946         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27947         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27948
27949 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27950
27951         [BZ #3268]
27952         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27953         fma tests.
27954         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27955         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27956         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27957         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27958         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27959         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27960         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27961
27962 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27963
27964         [BZ #12078]
27965         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27966         * posix/bug-regex31.input: Add test case.
27967
27968 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27969
27970         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27971         * posix/bug-regex31.input: New file.
27972
27973         [BZ #12078]
27974         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27975         (parse_sub_exp): Fix last change, use postorder.
27976
27977         * posix/bug-regex31.c: New file.
27978         * posix/Makefile: Add rules to build and run bug-regex31.
27979
27980         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27981
27982         [BZ #12078]
27983         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27984
27985         [BZ #12108]
27986         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27987         to have entries in sys_siglist.
27988
27989         [BZ #12093]
27990         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
27991         be NULL.
27992
27993 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
27994
27995         [BZ #3268]
27996         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
27997         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
27998         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27999         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28000         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28001         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28002         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28003         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28004         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28005         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28006         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28007         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28008         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28009         * math/ftestexcept.c (fetestexcept): Likewise.
28010         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28011         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28012         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28013         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28014         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28015         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28016         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28017
28018 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28019
28020         [BZ #12107]
28021         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28022         newline.
28023
28024 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28025
28026         * string/bug-strstr1.c: New file.
28027         * string/Makefile: Add rules to build and run bug-strstr1.
28028
28029 2010-10-05  Eric Blake  <eblake@redhat.com>
28030
28031         [BZ #12092]
28032         * string/str-two-way.h (two_way_long_needle): Always clear memory
28033         when skipping input due to the shift table.
28034
28035 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28036
28037         [BZ #12005]
28038         * malloc/mcheck.c: Handle large requests.
28039
28040         [BZ #12077]
28041         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28042         for strncmp and strncasecmp.
28043         * string/stratcliff.c: Add tests for strcmp and strncmp.
28044         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28045
28046 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28047
28048         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28049         __set_fpscr.
28050
28051 2010-09-30  Andreas Jaeger  <aj@suse.de>
28052
28053         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28054         (CGROUP_SUPER_MAGIC): Define.
28055         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28056         Handle btrfs and cgroup file systems.
28057         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28058         Likewise.
28059
28060 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28061
28062         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28063         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28064
28065 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28066
28067         [BZ #12067]
28068         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28069         trying to locate the ELF header.
28070
28071 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28072
28073         [BZ #11611]
28074         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28075         Mask out sign-bit copies when constructing f_fsid.
28076
28077 2010-09-24  Petr Baudis <pasky@suse.cz>
28078
28079         * debug/stack_chk_fail_local.c: Add missing licence exception.
28080         * debug/warning-nop.c: Likewise.
28081
28082 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28083
28084         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28085         implementing getdents64 using getdents syscall, set d_type if
28086         __ASSUME_GETDENTS32_D_TYPE.
28087
28088 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28089
28090         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28091         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28092
28093 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28094
28095         [BZ #12037]
28096         * posix/unistd.h: Undo change of feature selection for ftruncate from
28097         2010-01-11.
28098
28099 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28100
28101         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28102         detection.
28103
28104 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28105
28106         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28107         fanotify_mark.
28108         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28109
28110 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28111
28112         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28113         variables after CHECK_SP call.
28114         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28115
28116 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28117             Ulrich Drepper  <drepper@redhat.com>
28118
28119         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28120         re-relocationg ld.so.
28121         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28122         _dl_init_paths call.
28123         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28124         here anymore.
28125
28126 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28127
28128         * resolv/res_init.c (__res_vinit): Count the default server we added.
28129
28130 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28131             Ulrich Drepper  <drepper@redhat.com>
28132
28133         [BZ #11968]
28134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28135         (____longjmp_chk): Use %ebx for saving value across system call.
28136         Add unwind info.
28137
28138 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28139
28140         * manual/Makefile: Don't mix pattern rules with normal rules.
28141
28142 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28143
28144         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28145         operation.
28146         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28147         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28148         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28149         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28150         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28151         Likewise.
28152
28153 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28154
28155         [BZ #11979]
28156         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28157         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28158
28159 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28160
28161         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28162         * sysdeps/x86_64/addmul_1.S: Likewise.
28163         * sysdeps/x86_64/lshift.S: Likewise.
28164         * sysdeps/x86_64/mul_1.S: Likewise.
28165         * sysdeps/x86_64/rshift.S: Likewise.
28166         * sysdeps/x86_64/sub_n.S: Likewise.
28167         * sysdeps/x86_64/submul_1.S: Likewise.
28168
28169 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28170
28171         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28172         Define __sched_param instead of SCHED_* and sched_param when
28173         <bits/sched.h> is included with __need_schedparam defined.
28174         * bits/sched.h [__need_schedparam]
28175         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28176         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28177         (__defined_schedparam): Define to 1.
28178         (__sched_param): New structure, identical to sched_param.
28179         (__need_schedparam): Undefine.
28180
28181 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28182
28183         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28184         (epoll_create1): Declare.
28185
28186         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28187
28188 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28189
28190         [BZ #7066]
28191         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28192         shifting retval into place.
28193
28194 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28195
28196         * nis/rpcsvc/nis.h: Update copyright notice.
28197         * nis/rpcsvc/nis.x: Likewise.
28198         * nis/rpcsvc/nis_callback.h: Likewise.
28199         * nis/rpcsvc/nis_callback.x: Likewise.
28200         * nis/rpcsvc/nis_object.x: Likewise.
28201         * nis/rpcsvc/nis_tags.h: Likewise.
28202         * nis/rpcsvc/yp.h: Likewise.
28203         * nis/rpcsvc/yp.x: Likewise.
28204         * nis/rpcsvc/ypupd.h: Likewise.
28205         * nis/yp_xdr.c: Likewise.
28206         * nis/ypupdate_xdr.c: Likewise.
28207
28208         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28209         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28210         (pmap_getport): Use __libc_rpc_getport.
28211         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28212         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28213         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28214
28215 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28216
28217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28218         fanotify_mark.
28219
28220 2010-08-27  Roland McGrath  <roland@redhat.com>
28221
28222         * sysdeps/i386/i686/multiarch/Makefile
28223         (CFLAGS-varshift.c): New variable.
28224
28225 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28226
28227         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28228         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28229
28230         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28231
28232         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28233
28234 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28235
28236         * sysdeps/x86_64/strlen.S: Unroll the loop.
28237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28238         strlen-sse2 strlen-sse2-bsf.
28239         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28240         __strlen_no_bsf if bit_Slow_BSF is set.
28241         (__strlen_sse42): Removed.
28242         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28243         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28244
28245 2010-08-25  Roland McGrath  <roland@redhat.com>
28246
28247         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28248         * sysdeps/x86_64/multiarch/varshift.c: New file.
28249         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28250         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28251         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28252         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28253
28254 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28255
28256         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28257         strlen-sse2 strlen-sse2-bsf.
28258         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28259         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28260         (__strlen_sse2): Removed.
28261         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28262         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28263         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28264         bit_Slow_BSF for Atom.
28265         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28266         (index_Slow_BSF): Define.
28267         (HAS_SLOW_BSF): Define.
28268
28269 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28270
28271         [BZ #10851]
28272         * resolv/res_init.c (__res_vinit): When no server address at all
28273         is given default to loopback.
28274
28275 2010-08-24  Roland McGrath  <roland@redhat.com>
28276
28277         * configure.in: Remove config-name.h generation.
28278         * configure: Regenerated.
28279         * config-name.in: File removed.
28280         * scripts/config-uname.sh: New file.
28281         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28282         ($(objdir)config-name.h): New target.
28283
28284         * sunrpc/rpc_parse.h: Avoid nested comment.
28285
28286 2010-08-24  Richard Henderson  <rth@redhat.com>
28287             Ulrich Drepper  <drepper@redhat.com>
28288             H.J. Lu  <hongjiu.lu@intel.com>
28289
28290         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28291         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28292         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28293         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28294         _mm_alignr_epi8 with _mm_loadu_si128.
28295         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28296         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28297         (__m128i_shift_right): Removed.
28298         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28299         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28300         * sysdeps/x86_64/multiarch/varshift.h: New file.
28301         * sysdeps/x86_64/multiarch/varshift.S: New file.
28302
28303 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28304
28305         * configure.in: Move assembler checks to before sysdep dir checking.
28306
28307 2010-08-20  Petr Baudis  <pasky@suse.cz>
28308
28309         * LICENSES: Sync the sunrpc license.
28310
28311 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28312
28313         * sunrpc/auth_des.c: Update copyright notice once again.
28314         * sunrpc/auth_none.c: Likewise.
28315         * sunrpc/auth_unix.c: Likewise.
28316         * sunrpc/authdes_prot.c: Likewise.
28317         * sunrpc/authuxprot.c: Likewise.
28318         * sunrpc/bindrsvprt.c: Likewise.
28319         * sunrpc/clnt_gen.c: Likewise.
28320         * sunrpc/clnt_perr.c: Likewise.
28321         * sunrpc/clnt_raw.c: Likewise.
28322         * sunrpc/clnt_simp.c: Likewise.
28323         * sunrpc/clnt_tcp.c: Likewise.
28324         * sunrpc/clnt_udp.c: Likewise.
28325         * sunrpc/clnt_unix.c: Likewise.
28326         * sunrpc/des_crypt.c: Likewise.
28327         * sunrpc/des_soft.c: Likewise.
28328         * sunrpc/get_myaddr.c: Likewise.
28329         * sunrpc/getrpcport.c: Likewise.
28330         * sunrpc/key_call.c: Likewise.
28331         * sunrpc/key_prot.c: Likewise.
28332         * sunrpc/openchild.c: Likewise.
28333         * sunrpc/pm_getmaps.c: Likewise.
28334         * sunrpc/pm_getport.c: Likewise.
28335         * sunrpc/pmap_clnt.c: Likewise.
28336         * sunrpc/pmap_prot.c: Likewise.
28337         * sunrpc/pmap_prot2.c: Likewise.
28338         * sunrpc/pmap_rmt.c: Likewise.
28339         * sunrpc/rpc/auth.h: Likewise.
28340         * sunrpc/rpc/auth_unix.h: Likewise.
28341         * sunrpc/rpc/clnt.h: Likewise.
28342         * sunrpc/rpc/des_crypt.h: Likewise.
28343         * sunrpc/rpc/key_prot.h: Likewise.
28344         * sunrpc/rpc/netdb.h: Likewise.
28345         * sunrpc/rpc/pmap_clnt.h: Likewise.
28346         * sunrpc/rpc/pmap_prot.h: Likewise.
28347         * sunrpc/rpc/pmap_rmt.h: Likewise.
28348         * sunrpc/rpc/rpc.h: Likewise.
28349         * sunrpc/rpc/rpc_des.h: Likewise.
28350         * sunrpc/rpc/rpc_msg.h: Likewise.
28351         * sunrpc/rpc/svc.h: Likewise.
28352         * sunrpc/rpc/svc_auth.h: Likewise.
28353         * sunrpc/rpc/types.h: Likewise.
28354         * sunrpc/rpc/xdr.h: Likewise.
28355         * sunrpc/rpc_clntout.c: Likewise.
28356         * sunrpc/rpc_cmsg.c: Likewise.
28357         * sunrpc/rpc_common.c: Likewise.
28358         * sunrpc/rpc_cout.c: Likewise.
28359         * sunrpc/rpc_dtable.c: Likewise.
28360         * sunrpc/rpc_hout.c: Likewise.
28361         * sunrpc/rpc_main.c: Likewise.
28362         * sunrpc/rpc_parse.c: Likewise.
28363         * sunrpc/rpc_parse.h: Likewise.
28364         * sunrpc/rpc_prot.c: Likewise.
28365         * sunrpc/rpc_sample.c: Likewise.
28366         * sunrpc/rpc_scan.c: Likewise.
28367         * sunrpc/rpc_scan.h: Likewise.
28368         * sunrpc/rpc_svcout.c: Likewise.
28369         * sunrpc/rpc_tblout.c: Likewise.
28370         * sunrpc/rpc_util.c: Likewise.
28371         * sunrpc/rpc_util.h: Likewise.
28372         * sunrpc/rpcinfo.c: Likewise.
28373         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28374         * sunrpc/rpcsvc/key_prot.x: Likewise.
28375         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28376         * sunrpc/rpcsvc/mount.x: Likewise.
28377         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28378         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28379         * sunrpc/rpcsvc/rex.x: Likewise.
28380         * sunrpc/rpcsvc/rstat.x: Likewise.
28381         * sunrpc/rpcsvc/rusers.x: Likewise.
28382         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28383         * sunrpc/rpcsvc/spray.x: Likewise.
28384         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28385         * sunrpc/rtime.c: Likewise.
28386         * sunrpc/svc.c: Likewise.
28387         * sunrpc/svc_auth.c: Likewise.
28388         * sunrpc/svc_authux.c: Likewise.
28389         * sunrpc/svc_raw.c: Likewise.
28390         * sunrpc/svc_run.c: Likewise.
28391         * sunrpc/svc_simple.c: Likewise.
28392         * sunrpc/svc_tcp.c: Likewise.
28393         * sunrpc/svc_udp.c: Likewise.
28394         * sunrpc/svc_unix.c: Likewise.
28395         * sunrpc/svcauth_des.c: Likewise.
28396         * sunrpc/xcrypt.c: Likewise.
28397         * sunrpc/xdr.c: Likewise.
28398         * sunrpc/xdr_array.c: Likewise.
28399         * sunrpc/xdr_float.c: Likewise.
28400         * sunrpc/xdr_mem.c: Likewise.
28401         * sunrpc/xdr_rec.c: Likewise.
28402         * sunrpc/xdr_ref.c: Likewise.
28403         * sunrpc/xdr_sizeof.c: Likewise.
28404         * sunrpc/xdr_stdio.c: Likewise.
28405
28406         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28407         handling.
28408
28409 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28410
28411         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28412
28413 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28414
28415         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28416         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28417         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28418         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28419         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28420         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28421         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28422         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28423         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28424         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28425         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28426         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28427         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28428         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28429
28430 2010-07-26  Anton Blanchard  <anton@samba.org>
28431
28432         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28433         * malloc/arena.c (heap_trim): Likewise.
28434
28435 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28436
28437         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28438         here.  Not...
28439         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28440         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28441
28442 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28443
28444         * sysdeps/i386/elf/Makefile: New file.
28445
28446 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28447
28448         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28449         from fanotify_init.
28450         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28451         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28452
28453 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28454
28455         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28456         of strncasecmp_l.
28457         * sysdeps/multiarch/strcmp.S: Likewise.
28458
28459 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28460
28461         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28462         strncase_l-nonascii.
28463         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28464         Add strncase_l-ssse3.
28465         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28466         * sysdeps/x86_64/strcmp.S: Likewise.
28467         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28468         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28469         * sysdeps/x86_64/strncase.S: New file.
28470         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28471         * sysdeps/x86_64/strncase_l.S: New file.
28472         * string/Makefile (strop-tests): Add strncasecmp.
28473         * string/test-strncasecmp.c: New file.
28474
28475         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28476         warning.
28477
28478         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28479         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28480
28481 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28482
28483         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28484
28485 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28486
28487         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28488         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28489         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28490
28491 2010-05-01  Alan Modra  <amodra@gmail.com>
28492
28493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28494         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28495         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28496         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28497         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28498         tidying.  Don't tail-call __sigjmp_save for static lib.
28499         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28500         save location.
28501         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28502         (CALL_MCOUNT): Add eh info, and nop after bl.
28503         (TAIL_CALL_SYSCALL_ERROR): New macro.
28504         (PSEUDO_RET): Use it.
28505         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28506         Correct save location of integer regs and cr.
28507         (_dl_profile_resolve): Correct cr save location.  Delete nops
28508         after bl when SHARED.  Reduce cfi size a little by better
28509         placement of cfi directives.
28510         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28511         make a stack frame.  Instead use parm save area as a temp.
28512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28513         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28515         Don't make a stack frame for parent, use parm save area.
28516         Increase child stack frame to 112 bytes.  Don't save unused reg,
28517         and adjust reg usage.  Set up cfi on error recovery and
28518         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28520         (__makecontext): Add dummy nop after jump to exit.
28521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28522         Use correct parm save area and cr save, reduce stack frame.
28523         Correct cfi for possible PSEUDO_RET frame setup.
28524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28525         Branch to local label emitted by PSEUDO_RET rather than
28526         __syscall_error.
28527
28528 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28529
28530         [BZ #11904]
28531         * locale/programs/locale.c (print_assignment): New function.
28532         (show_locale_vars): Use it.
28533
28534 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28535
28536         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28537         field.
28538         (struct statfs64): Likewise.
28539         (_STATFS_F_FLAGS): Define.
28540         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28541         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28542         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28543         (ST_VALID): Define locally.
28544         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28545         __statvfs_getflags, use the provided value.
28546         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28547         __ASSUME_STATFS_F_FLAGS.
28548
28549         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28550
28551         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28552         Add sys/fanotify.h.
28553         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28554         fanotify_mask for GLIBC_2.13.
28555         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28556         fanotify_init and fanotify_mark.
28557         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28558         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28559
28560         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28561         Add prlimit.
28562         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28563         prlimit64 for GLIBC_2.13.
28564         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28565         prlimit64.
28566         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28567         syscall.
28568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28569         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28570         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28571         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28572         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28573         add prlimit alias.
28574         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28575
28576         [BZ #11903]
28577         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28578         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28579
28580         * nss/Makefile: Add rules to build and run tst-nss-test1.
28581         * shlib-versions: Add entry for libnss_test1.
28582         * nss/nss_test1.c: New file.
28583         * nss/tst-nss-test1.c: New file.
28584
28585         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28586         (__nss_configure_lookup): Set appropriate entry in
28587         __nss_configure_lookup to true.
28588         * nss/nsswitch.h: Define enum with indeces of databases in
28589         databases and __nss_database_custom arrays.  Declare
28590         __nss_database_custom.
28591         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28592         to avoid using nscd when custom rules are installed.
28593         * nss/getXXbyYY_r.c: Likewise.
28594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28595
28596         * nss/nss_files/files-parse.c: Whitespace fixes.
28597
28598 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28599
28600         [BZ #11883]
28601         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28602         * posix/fnmatch_loop.c: Likewise.
28603
28604 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28605
28606         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28607         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28608         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28609         * Versions.def [GLIBC_2.13]: Add.
28610
28611 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28612
28613         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28614         Also fail if tpwd after pwuid call is NULL.
28615
28616 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28617
28618         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28619         when converting to ms.
28620
28621 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28622
28623         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28624         EOPNOTSUPP errors with ENOTTY.
28625         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28626         EOPNOTSUPP errors with ENOTTY.
28627
28628 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28629
28630         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28631         Add strcasecmp_l-ssse3.
28632         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28633         strcasecmp.
28634         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28635         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28636         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28637
28638 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28639
28640         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28641
28642         * string/Makefile (strop-tests): Add strcasecmp.
28643         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28644         strcasecmp_l-nonascii.
28645         (gen-as-const-headers): Add locale-defines.sym.
28646         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28647         * sysdeps/x86_64/strcasecmp.S: New file.
28648         * sysdeps/x86_64/strcasecmp_l.S: New file.
28649         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28650         * sysdeps/x86_64/locale-defines.sym: New file.
28651         * string/test-strcasecmp.c: New file.
28652
28653         * string/test-strcasestr.c: Test both ends of the range of characters.
28654         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28655
28656 2010-07-29  Roland McGrath  <roland@redhat.com>
28657
28658         [BZ #11856]
28659         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28660
28661 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28662
28663         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28664         for ld.so.
28665
28666 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28667
28668         * manual/memory.texi (Malloc Tunable Parameters): Document
28669         M_PERTURB.
28670
28671 2010-07-26  Roland McGrath  <roland@redhat.com>
28672
28673         [BZ #11840]
28674         * configure.in (-fgnu89-inline check): Set and substitute
28675         gnu89_inline, not libc_cv_gnu89_inline.
28676         * configure: Regenerated.
28677         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28678
28679 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28680
28681         * string/test-strnlen.c: New file.
28682         * string/Makefile (strop-tests): Add strnlen.
28683         * string/tester.c (test_strnlen): Add a few more test cases.
28684         * string/tst-strlen.c: Better error reporting.
28685
28686         * sysdeps/x86_64/strnlen.S: New file.
28687
28688 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28689
28690         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28691         lower-latency instructions.
28692
28693 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28694
28695         * string/test-strcasestr.c: New file.
28696         * string/test-strstr.c: New file.
28697         * string/Makefile (strop-tests): Add strstr and strcasestr.
28698         * string/str-two-way.h: Don't undefine MAX.
28699         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28700
28701 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28702
28703         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28704         strcasestr-nonascii.
28705         (CFLAGS-strcasestr-nonascii.c): Define.
28706         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28707         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28708         Remove unused attribute.
28709
28710 2010-07-20  Roland McGrath  <roland@redhat.com>
28711
28712         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28713         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28714         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28715         like LD_HWCAP_MASK can disable hwcaps.
28716
28717 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28718
28719         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28720
28721 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28722
28723         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28724         call in strcasestr.
28725         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28726         __strcasestr_sse42_nonascii.
28727         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28728         strcasestr-nonascii.c.
28729         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28730
28731 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28732
28733         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28734         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28735         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28736         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28737
28738 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28739
28740         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28741         fcntl.
28742
28743 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28744
28745         [BZ #11577]
28746         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28747         dl_signal_cerror.
28748
28749 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28750
28751         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28752         _PC_PIPE_BUF using F_GETPIPE_SZ.
28753
28754 2010-07-05  Roland McGrath  <roland@redhat.com>
28755
28756         * manual/arith.texi (Rounding Functions): Fix rint description
28757         implicit in round description.
28758
28759 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28760
28761         * elf/Makefile: Fix linking for a few tests to make recent linker
28762         happy.
28763
28764 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28765
28766         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28767         $(common-objpfx)libc_nonshared.a.
28768
28769 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28770
28771         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28772         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28773         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28774         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28775         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28776         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28777         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28778         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28793         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28794         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28795         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28796         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28797         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28798         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28799         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28800         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28801         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28802         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28803         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28804         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28819
28820 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28821
28822         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28823         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28824         * string/memmove.c (memmove): Renamed to ...
28825         (MEMMOVE): ...this.  Default to memmove.
28826         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28827         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28828         (END_CHK): Define.
28829         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28830         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28831         mempcpy-ssse3-back memmove-ssse3-back.
28832         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28833         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28834         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28835         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28836         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28837         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28838         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28839         * sysdeps/x86_64/multiarch/memmove.c: New file.
28840         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28841         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28842         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28843         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28844         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28845         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28846         Define.
28847         (index_Fast_Copy_Backward): Define.
28848         (HAS_ARCH_FEATURE): Define.
28849         (HAS_FAST_REP_STRING): Define.
28850         (HAS_FAST_COPY_BACKWARD): Define.
28851
28852 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28853
28854         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28855         Restore proper fallback handling.
28856
28857 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28858
28859         [BZ #11701]
28860         * posix/group_member.c (__group_member): Correct checking loop.
28861
28862         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28863         OOM in getpwuid_r correctly.  Return error number when the caller
28864         should return, otherwise -1.
28865         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28866         call returning > 0 value.
28867         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28868
28869 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28870
28871         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28872         libc_nonshared.a from targets in modules-names.
28873
28874 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28875
28876         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28877         requires it.
28878
28879 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28880
28881         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28882         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28883         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28884         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28885
28886 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28887
28888         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28889
28890 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28891
28892         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28893         and F_GETPIPE_SZ.
28894         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28895         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28897         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28899         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28900
28901 2010-06-14  Roland McGrath  <roland@redhat.com>
28902
28903         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28904
28905 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28906
28907         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28908         __REDIRECT followed by __THROW.
28909         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28910         * posix/getopt.h (getopt): Likewise.
28911
28912 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28913
28914         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28915         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28916         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28917         in AT_FLAGS.
28918         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28919         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28920
28921 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28922
28923         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28924
28925 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28926
28927         [BZ #11640]
28928         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28929         Properly check family and model.
28930
28931 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28932
28933         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28934
28935 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28936
28937         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28938
28939 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28940
28941         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28942         symbol reference.
28943
28944 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28945
28946         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28947         symbol reference.
28948
28949 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28950
28951         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28952         and internal_recvmmsg.
28953         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28954         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28955         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28956         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28957
28958         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28959         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28960         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28961
28962 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28963
28964         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28965
28966 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28967
28968         POWER7 optimizations.
28969         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28970         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28971
28972 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28973
28974         * version.h: Update for 2.13 development version.
28975
28976 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28977
28978         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28979         exceptions.  Return 0.
28980
28981 2010-05-07  Roland McGrath  <roland@redhat.com>
28982
28983         * elf/ldconfig.c (main): Add a const.
28984
28985 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28986
28987         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28988         (args_options): Add no-idn option.
28989         (ahosts_keys_int): Add idn_flags to ai_flags.
28990         (parse_option): Handle 'i' option to clear idn_flags.
28991
28992         * malloc/malloc.c (_int_free): Possible race in the most recently
28993         added check.  Only act on the data if no current modification
28994         happened.
28995
28996 See ChangeLog.17 for earlier changes.