Convert TEST_if_f tests from code to data.
[jlayton/glibc.git] / ChangeLog
1 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/libm-test.inc (struct test_if_f_data): New type.
4         (RUN_TEST_LOOP_if_f): New macro.
5         (jn_test_data): New variable.
6         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
7         (yn_test_data): New variable.
8         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9
10         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
11
12 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13
14         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
15         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
16
17 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18
19         * benchtests/Makefile (CPPFLAGS-nonlib): Add
20         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
21         (bench-deps): Add bench-timing.h.
22         * benchtests-bench-skeleton.c: Include bench-timing.h.
23         (main): Use TIMING_* macros instead of clock_gettime.
24         * benchtests/bench-timing.h: New file.
25
26         [BZ #14582]
27         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
28         Renamed from _LIB_VERSION.
29         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
30
31 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
32
33         * math/libm-test.inc (struct test_fff_f_data): New type.
34         (RUN_TEST_LOOP_fff_f): New macro.
35         (fma_test_data): New variable.
36         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
37         (fma_towardzero_test_data): New variable.
38         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
39         (fma_downward_test_data): New variable.
40         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
41         (fma_upward_test_data): New variable.
42         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
43
44         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
45         (struct test_c_c_data): New type.
46         (RUN_TEST_LOOP_c_c): New macro.
47         (cacos_test_data): New variable.
48         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
49         (cacosh_test_data): New variable.
50         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
51         (casin_test_data): New variable.
52         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
53         (casinh_test_data): New variable.
54         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
55         (catan_test_data): New variable.
56         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
57         (catanh_test_data): New variable.
58         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
59         (ccos_test_data): New variable.
60         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
61         (ccosh_test_data): New variable.
62         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
63         (cexp_test_data): New variable.
64         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
65         (clog_test_data): New variable.
66         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
67         (clog10_test_data): New variable.
68         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
69         (conj_test_data): New variable.
70         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
71         (cproj_test_data): New variable.
72         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
73         (csin_test_data): New variable.
74         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
75         (csinh_test_data): New variable.
76         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
77         (csqrt_test_data): New variable.
78         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
79         (ctan_test_data): New variable.
80         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
81         (ctan_tonearest_test_data): New variable.
82         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
83         (ctan_towardzero_test_data): New variable.
84         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
85         (ctan_downward_test_data): New variable.
86         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
87         (ctan_upward_test_data): New variable.
88         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
89         (ctanh_test_data): New variable.
90         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
91         (ctanh_tonearest_test_data): New variable.
92         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
93         (ctanh_towardzero_test_data): New variable.
94         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
95         (ctanh_downward_test_data): New variable.
96         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
97         (ctanh_upward_test_data): New variable.
98         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
99         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
100         of BUILD_COMPLEX.
101
102         * math/libm-test.inc (struct test_ff_f_data): New type.
103         (struct test_ff_f_data_nexttoward): Likewise.
104         (RUN_TEST_LOOP_2_f): New macro.
105         (RUN_TEST_LOOP_ff_f): Likewise.
106         (atan2_test_data): New variable.
107         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
108         (copysign_test_data): New variable.
109         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
110         (fdim_test_data): New variable.
111         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
112         (fmax_test_data): New variable.
113         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
114         (fmin_test_data): New variable.
115         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
116         (fmod_test_data): New variable.
117         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
118         (hypot_test_data): New variable.
119         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
120         (nextafter_test_data): New variable.
121         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
122         (nexttoward_test_data): New variable.
123         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
124         (pow_test_data): New variable.
125         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
126         (pow_tonearest_test_data): New variable.
127         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
128         (pow_towardzero_test_data): New variable.
129         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
130         (pow_downward_test_data): New variable.
131         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
132         (pow_upward_test_data): New variable.
133         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
134         (remainder_test_data): New variable.
135         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
136         (scalb_test_data): New variable.
137         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
138         * sysdeps/i386/fpu/libm-test-ulps: Update.
139
140 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
141
142         * math/libm-test.inc (fma_test): Use max_value instead of local
143         variable fltmax.
144         (nextafter_test): Likewise.
145
146         * math/libm-test.inc (acos_towardzero_test_data): New variable.
147         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
148         (acos_downward_test_data): New variable.
149         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
150         (acos_upward_test_data): New variable.
151         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
152         (acosh_test_data): New variable.
153         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
154         (asin_test_data): New variable.
155         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
156         (asin_tonearest_test_data): New variable.
157         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
158         (asin_towardzero_test_data): New variable.
159         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
160         (asin_downward_test_data): New variable.
161         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
162         (asin_upward_test_data): New variable.
163         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
164         (asinh_test_data): New variable.
165         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
166         (atan_test_data): New variable.
167         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
168         (atanh_test_data): New variable.
169         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
170         (cbrt_test_data): New variable.
171         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
172         (ceil_test_data): New variable.
173         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
174         (cos_test_data): New variable.
175         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
176         (cos_tonearest_test_data): New variable.
177         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
178         (cos_towardzero_test_data): New variable.
179         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
180         (cos_downward_test_data): New variable.
181         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
182         (cos_upward_test_data): New variable.
183         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
184         (cosh_test_data): New variable.
185         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
186         (cosh_tonearest_test_data): New variable.
187         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
188         (cosh_towardzero_test_data): New variable.
189         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
190         (cosh_downward_test_data): New variable.
191         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
192         (cosh_upward_test_data): New variable.
193         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
194         (erf_test_data): New variable.
195         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
196         (erfc_test_data): New variable.
197         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
198         (exp_test_data): New variable.
199         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
200         (exp_tonearest_test_data): New variable.
201         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
202         (exp_towardzero_test_data): New variable.
203         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
204         (exp_downward_test_data): New variable.
205         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
206         (exp_upward_test_data): New variable.
207         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
208         (exp10_test_data): New variable.
209         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
210         (exp2_test_data): New variable.
211         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
212         (expm1_test_data): New variable.
213         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
214         (fabs_test_data): New variable.
215         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
216         (floor_test_data): New variable.
217         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
218         (j0_test_data): New variable.
219         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
220         (j1_test_data): New variable.
221         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
222         (log_test_data): New variable.
223         (log_test): Run tests with RUN_TEST_LOOP_f_f.
224         (log10_test_data): New variable.
225         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
226         (log1p_test_data): New variable.
227         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
228         (log2_test_data): New variable.
229         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
230         (logb_test_data): New variable.
231         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
232         (logb_downward_test_data): New variable.
233         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
234         (nearbyint_test_data): New variable.
235         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
236         (rint_test_data): New variable.
237         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
238         (rint_tonearest_test_data): New variable.
239         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
240         (rint_towardzero_test_data): New variable.
241         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
242         (rint_downward_test_data): New variable.
243         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
244         (rint_upward_test_data): New variable.
245         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
246         (round_test_data): New variable.
247         (round_test): Run tests with RUN_TEST_LOOP_f_f.
248         (sin_test_data): New variable.
249         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
250         (sin_tonearest_test_data): New variable.
251         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
252         (sin_towardzero_test_data): New variable.
253         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
254         (sin_downward_test_data): New variable.
255         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
256         (sin_upward_test_data): New variable.
257         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
258         (sinh_test_data): New variable.
259         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
260         (sinh_tonearest_test_data): New variable.
261         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
262         (sinh_towardzero_test_data): New variable.
263         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
264         (sinh_downward_test_data): New variable.
265         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
266         (sinh_upward_test_data): New variable.
267         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
268         (sqrt_test_data): New variable.
269         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
270         (tan_test_data): New variable.
271         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
272         (tan_tonearest_test_data): New variable.
273         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
274         (tan_towardzero_test_data): New variable.
275         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
276         (tan_downward_test_data): New variable.
277         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
278         (tan_upward_test_data): New variable.
279         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
280         (tanh_test_data): New variable.
281         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
282         (tgamma_test_data): New variable.
283         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
284         (trunc_test_data): New variable.
285         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
286         (y0_test_data): New variable.
287         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
288         (y1_test_data): New variable.
289         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
290         (significand_test_data): New variable.
291         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
292
293 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
294
295         [BZ #12387]
296         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
297
298 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
299
300         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
301
302 2013-05-10  Andreas Jaeger  <aj@suse.de>
303
304         [BZ #15448]
305         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
306         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
307
308 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
309
310         * math/gen-libm-test.pl (adjust_arg): New function.
311         (special_functions): Handle generating output in both functions
312         and arrays.
313         (parse_args): Likewise.
314         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
315         $in_func argument to parse_args.
316         * math/libm-test.inc (struct test_f_f_data): New type.
317         (IF_ROUND_INIT_): New macro.
318         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
319         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
320         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
321         (IF_ROUND_INIT_FE_UPWARD): Likewise.
322         (ROUND_RESTORE_): Likewise.
323         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
324         (ROUND_RESTORE_FE_TONEAREST): Likewise.
325         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
326         (ROUND_RESTORE_FE_UPWARD): Likewise.
327         (RUN_TEST_LOOP_f_f): New macro.
328         (acos_test_data): New variable.
329         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
330         (acos_tonearest_test_data): New variable.
331         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
332
333 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
334
335         * benchtests/bench-skeleton.c (startup): Fix coding style.
336
337 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
338
339         [BZ #6809]
340         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
341         negative infinity argument.
342         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
343         negative infinity argument.
344         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
345         negative infinity argument.
346         * math/libm-test.inc (tgamma_test): Expect errno to be set for
347         domain errors.
348
349 2013-05-10  Florian Weimer  <fweimer@redhat.com>
350
351         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
352         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
353         * iconv/iconv_prog.c (main): Likewise.
354         * locale/programs/charmap-dir.c (charmap_readdir)
355         (fopen_uncompressed): Likewise.
356         * locale/programs/locfile.c (siblings_uncached)
357         (write_locale_data): Use lstat64 instead of lstat.
358         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
359         stat.
360
361 2013-05-10  Andreas Jaeger  <aj@suse.de>
362
363         [BZ #15395]
364         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
365         localization.
366         Include <locale.h>.
367
368 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
369
370         * elf/dl-close.c (_dl_close_worker): Add comments.
371
372 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
373
374         [BZ #15359]
375         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
376         high part of pi/2.
377         (__ieee754_rem_pio2l): Update comments.
378
379         [BZ #15429]
380         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
381         high part of pi/2.
382         (__ieee754_rem_pio2l): Update comments.
383
384         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
385         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
386
387         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
388         M_PI_4l.
389
390         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
391         (M_PI_34_LOG10El): Likewise.
392         (M_PI2_LOG10El): Likewise.
393         (M_PI4_LOG10El): Likewise.
394         (M_PI_LOG10El): Likewise.
395
396 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
397
398         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
399
400 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
401
402         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
403         (MINUS_ZERO_INIT): Likewise.
404         (PLUS_INFTY_INIT): Likewise.
405         (MINUS_INFTY_INIT): Likewise.
406         (QNAN_VALUE_INIT): Likewise.
407         (MAX_VALUE_INIT): Likewise.
408         (MIN_VALUE_INIT): Likewise.
409         (MIN_SUBNORM_VALUE_INIT): Likewise.
410         (plus_zero): Initialize with PLUS_ZERO_INIT.
411         (minus_zero): Initialize with MINUS_ZERO_INIT.
412         (plus_infty): Initialize with PLUS_INFTY_INIT.
413         (minus_infty): Initialize with MINUS_INFTY_INIT.
414         (qnan_value): Initialize with QNAN_VALUE_INIT.
415         (max_value): Initialize with MAX_VALUE_INIT.
416         (min_value): Initialize with MIN_VALUE_INIT.
417         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
418
419         * math/libm-test.inc (RUN_TEST_if_f): New macro.
420         (jn_test): Use TEST_if_f instead of TEST_ff_f.
421         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
422         (yn_test): Use TEST_if_f instead of TEST_ff_f.
423
424         * math/libm-test.inc (RUN_TEST_f_f): New macro.
425         (RUN_TEST_2_f): Likewise.
426         (RUN_TEST_ff_f): Likewise.
427         (RUN_TEST_fi_f): Likewise.
428         (RUN_TEST_fl_f): Likewise.
429         (RUN_TEST_fff_f): Likewise.
430         (RUN_TEST_c_f): Likewise.
431         (RUN_TEST_f_f1): Likewise.
432         (RUN_TEST_fF_f1): Likewise.
433         (RUN_TEST_fI_f1): Likewise.
434         (RUN_TEST_ffI_f1): Likewise.
435         (RUN_TEST_c_c): Likewise.
436         (RUN_TEST_cc_c): Likewise.
437         (RUN_TEST_f_i): Likewise.
438         (RUN_TEST_f_i_tg): Likewise.
439         (RUN_TEST_ff_i_tg): Likewise.
440         (RUN_TEST_f_b): Likewise.
441         (RUN_TEST_f_b_tg): Likewise.
442         (RUN_TEST_f_l): Likewise.
443         (RUN_TEST_f_L): Likewise.
444         (RUN_TEST_sincos): Likewise.
445         * math/gen-libm-test.pl (new_test): Take new argument to indicate
446         whether to show exceptions.  Do not include ");\n" in return
447         value.
448         (special_functions): Output call to RUN_TEST_sincos instead of
449         check_float calls.  Update calls to new_test.
450         (parse_args): Output call to single RUN_TEST_* macro instead of
451         check_* calls and other assignments.  Update calls to new_test.
452
453         [BZ #2546]
454         [BZ #2560]
455         [BZ #5159]
456         [BZ #15426]
457         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
458         input to result for tgamma overflow.
459         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
460         (gamma_coeff): New variable.
461         (NCOEFF): New macro.
462         (gamma_positive): New function.
463         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
464         underflow here.  Use gamma_positive instead of exp (lgamma) for
465         other arguments.
466         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
467         (gamma_coeff): New variable.
468         (NCOEFF): New macro.
469         (gammaf_positive): New function.
470         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
471         underflow here.  Use gamma_positive instead of exp (lgamma) for
472         other arguments.
473         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
474         (gamma_coeff): New variable.
475         (NCOEFF): New macro.
476         (gammal_positive): New function.
477         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
478         underflow here.  Use gamma_positive instead of exp (lgamma) for
479         other arguments.
480         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
481         (gamma_coeff): New variable.
482         (NCOEFF): New macro.
483         (gammal_positive): New function.
484         (__ieee754_gammal_r): Handle positive infinity, overflow and
485         underflow here.  Handle NaN the same as positive infinity.  Remove
486         check x < 0xffffffff for negative integers.  Use gamma_positive
487         instead of exp (lgamma) for other arguments.
488         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
489         (gamma_coeff): New variable.
490         (NCOEFF): New macro.
491         (gammal_positive): New function.
492         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
493         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
494         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
495         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
496         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
497         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
498         * sysdeps/generic/math_private.h (__gamma_productf): New
499         prototype.
500         (__gamma_product): Likewise.
501         (__gamma_productl): Likewise.
502         * math/Makefile (libm-calls): Add gamma_product.
503         * math/libm-test.inc (tgamma_test): Add more tests.
504         * sysdeps/i386/fpu/libm-test-ulps: Update.
505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
506
507 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
508
509         * benchtests/bench-skeleton.c (main): Preheat CPU.
510
511 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
512
513         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
514
515 2013-05-07  Roland McGrath  <roland@hack.frob.com>
516
517         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
518         and _dl_skip_args_internal.
519
520 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
521
522         * manual/message.texi (Message Translation): Talk about users.
523         Message to key mapping impacts design.
524
525 2013-05-06  Roland McGrath  <roland@hack.frob.com>
526
527         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
528
529         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
530
531         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
532         * sysdeps/wordsize-64/glob64.c: ... here.
533
534         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
535         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
536         New macros.
537
538         * debug/getlogin_r_chk.c: Moved to ...
539         * login/getlogin_r_chk.c: ... here.
540         * debug/Makefile (routines): Move getlogin_r_chk to ...
541         * login/Makefile (routines): ... here.
542         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
543         * login/Versions (libc: GLIBC_2.4): ... here.
544
545         * io/poll.c (__poll): Renamed from poll.
546         Add libc_hidden_def.
547         (poll): Define as weak alias.
548
549         * debug/ptsname_r_chk.c: Moved to ...
550         * login/ptsname_r_chk.c: ... here.
551         * debug/Makefile (routines): Move ptsname_r_chk to ...
552         * login/Makefile (routines): ... here.
553         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
554         * login/Versions (libc: GLIBC_2.4): ... here.
555
556         * posix/getlogin.c: Moved to ...
557         * login/getlogin.c: ... here.
558         * posix/getlogin_r.c: Moved to ...
559         * login/getlogin_r.c: ... here.
560         * posix/getlogin_r.c: Moved to ...
561         * login/getlogin_r.c: ... here.
562         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
563         * login/Makefile (routines): ... here.
564         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
565         * login/Versions (libc: GLIBC_2.0): ... here.
566
567         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
568         (setrlimit): Define as weak alias.
569
570         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
571         Call __ names for open, ftruncate, and close.
572         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
573         (truncate): Define as weak alias.
574
575 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
576
577         * math/gen-libm-test.pl (parse_args): Initialize x before each
578         test of frexp, modf and remquo.
579
580         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
581         test signgam value.
582
583 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
584
585         [BZ #15418]
586         [BZ #15419]
587         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
588         internal tests.
589         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
590
591 2013-05-06  Roland McGrath  <roland@hack.frob.com>
592
593         * elf/dl-writev.h: New file.
594         * elf/dl-misc.c: Include it.
595         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
596         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
597
598 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
599
600         * math/libm-test.inc (noXFails): Remove variable.
601         (noXPasses): Likewise.
602         (BUILD_COMPLEX_INT): Remove macro.
603         (print_screen): Remove xfail argument.
604         (print_screen_max_error): Likewise.
605         (update_stats): Likewise.
606         (print_max_error): Likewise.  Update calls to other affected
607         functions.
608         (print_complex_max_error): Likewise.
609         (test_single_exception): Update calls to print_screen.
610         (test_single_errno): Likewise.
611         (check_float_internal): Remove xfail argument.  Update calls to
612         other affected functions.
613         (check_float): Likewise.
614         (check_complex): Likewise.
615         (check_int): Likewise.
616         (check_long): Likewise.
617         (check_bool): Likewise.
618         (check_longlong): Likewise.
619         (main): Don't print noXFails and noXPasses.
620         * math/gen-libm-test.pl (top level): Don't mention expected
621         failure handling in comment.
622         (new_test): Don't handle expected failures.
623         (parse_args): Don't mention expected failure handling in comment.
624         (generate_testfile): Don't handle expected failures.
625         (parse_ulps): Likewise.
626         (print_ulps_file): Likewise.
627         (get_failure): Remove function.
628         (output_test): Don't handle expected failures.
629         * make/README.libm-test: Don't mention expected failure handling.
630
631         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
632         (minus_zero): Likewise.
633         (plus_infty): Likewise.
634         (minus_infty): Likewise.
635         (qnan_value): Likewise.
636         (max_value): Likewise.
637         (min_value): Likewise.
638         (min_subnorm_value): Likewise.
639         (initialize): Do not initialize those variables dynamically.
640
641 2013-05-03  Roland McGrath  <roland@hack.frob.com>
642
643         * io/open.c (__open_2): Moved to ...
644         * io/open_2.c: ... this new file.
645         * io/open64.c (__open64_2): Moved to ...
646         * io/open64_2.c: ... this new file.
647         * io/openat.c (__openat_2): Moved to ...
648         * io/openat_2.c: ... this new file.
649         * io/openat64.c (__openat64_2): Moved to ...
650         * io/openat64_2.c: ... this new file.
651         * io/Makefile (routines): Add them.
652         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
653         * sysdeps/unix/sysv/linux/open_2.c: File removed.
654         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
655         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
656         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
657         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
658         (__openat64): Add hidden_ver.
659         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
660         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
661
662         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
663         Separately conditionalize setting of GLRO(dl_sysinfo) so
664         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
665         as well, but the actual setting is only under [NEED_DL_SYSINFO].
666
667 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
668
669         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
670         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
671         definition.
672         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
673         * sysdeps/unix/sysv/linux/powerpc/init-first.c
674         (_libc_vdso_platform_setup): Add __vdso_time initialization.
675         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
676         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
677
678 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
679
680         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
681         test signgam value.
682
683         * math/libm-test.inc (hypot_test): Do not use
684         IGNORE_ZERO_INF_SIGN.
685
686 2013-05-03  Andreas Jaeger  <aj@suse.de>
687
688         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
689         Linux 3.9.
690         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
691         (PF_MAX): Adjust for VSOCK change.
692
693 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
694
695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
696
697 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
698
699         [BZ #15264]
700         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
701         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
702         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
703
704 2013-05-02  David S. Miller  <davem@davemloft.net>
705
706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
707
708 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
709
710         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
711
712 2013-05-01  Roland McGrath  <roland@hack.frob.com>
713
714         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
715
716 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
717
718         [BZ #14952]
719         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
720         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
721         Use __attribute__ ((__gnu_inline__)).
722         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
723         Don't use __attribute__ ((__gnu_inline__)).
724
725 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
726
727         [BZ #15423]
728         * math/s_catan.c (__catan): Handle small real or imaginary part of
729         input specially to avoid spurious underflow.
730         * math/s_catanf.c (__catanf): Likewise.
731         * math/s_catanh.c (__catanh): Likewise.
732         * math/s_catanhf.c (__catanhf): Likewise.
733         * math/s_catanhl.c (__catanhl): Likewise.
734         * math/s_catanl.c (__catanl): Likewise.
735         * math/libm-test.inc (catan_test): Add more tests.
736         (catanh_test): Likewise.
737         * sysdeps/i386/fpu/libm-test-ulps: Update.
738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
739
740 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
741
742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
743
744 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
745
746         [BZ #15416]
747         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
748         accurately for denominator in atan2.
749         * math/s_catanf.c (__catanf): Likewise.
750         * math/s_catanh.c (__catanh): Likewise.
751         * math/s_catanhf.c (__catanhf): Likewise.
752         * math/s_catanhl.c (__catanhl): Likewise.
753         * math/s_catanl.c (__catanl): Likewise.
754         * math/libm-test.inc (catan_test): Add more tests.
755         (catanh_test): Likewise.
756         * sysdeps/i386/fpu/libm-test-ulps: Update.
757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
758
759 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
760
761         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
762
763         * benchtests/Makefile (bench): Remove slow benchmarks.
764         * benchtests/atan-inputs: Add slow benchmark inputs.
765         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
766         (BENCH_FUNC): Accept variant offset.
767         (VARIANT): Define.
768         * benchtests/bench-skeleton.c (main): Run benchmark for each
769         variant.
770         * benchtests/cos-inputs: Add slow benchmark inputs.
771         * benchtests/exp-inputs: Likewise.
772         * benchtests/pow-inputs: Likewise.
773         * benchtests/sin-inputs: Likewise.
774         * benchtests/slowatan-inputs: Remove.
775         * benchtests/slowatan.c: Remove.
776         * benchtests/slowcos-inputs: Remove.
777         * benchtests/slowcos.c: Remove.
778         * benchtests/slowexp-inputs: Remove.
779         * benchtests/slowexp.c: Remove.
780         * benchtests/slowpow-inputs: Remove.
781         * benchtests/slowpow.c: Remove.
782         * benchtests/slowsin-inputs: Remove.
783         * benchtests/slowsin.c: Remove.
784         * benchtests/slowtan-inputs: Remove.
785         * benchtests/slowtan.c: Remove.
786         * benchtests/tan-inputs: Add slow benchmark inputs.
787         * scripts/bench.pl: Parse comments and directives.
788
789         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
790         in CPPFLAGS.
791         ($(objpfx)bench-%.c): Remove *-ITER.
792         * benchtests/bench-modf.c: Remove definition of ITER.
793         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
794         (main): Loop for DURATION seconds instead of fixed number of
795         iterations.
796         * scripts/bench.pl: Don't expect iterations in parameters.
797
798 2013-04-29  Roland McGrath  <roland@hack.frob.com>
799
800         * io/fchdir.c (__fchdir): Renamed from fchdir.
801         (fchdir): Define as weak alias.
802
803 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
804
805         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
806         (ERRNO_EDOM): Likewise.
807         (ERRNO_ERANGE): Likewise.
808         (noErrnoTests): New variable.
809         (init_max_error): Set errno to 0.
810         (test_single_errno): New function.
811         (test_errno): Likewise.
812         (check_float_internal): Call test_errno.  Set errno to 0.
813         (check_complex): Refer to errno tests in comment.
814         (check_int): Call test_errno.  Set errno to 0.
815         (check_long): Likewise.
816         (check_bool): Likewise.
817         (check_longlong): Likewise.
818         (cos_test): Use ERRNO_* flags for errno tests instead of
819         check_int.
820         (expm1_test): Likewise.
821         (fmod_test): Likewise.
822         (ilogb_test): Likewise.
823         (lgamma_test): Likewise.
824         (pow_test): Likewise.
825         (remainder_test): Likewise.
826         (sin_test): Likewise.
827         (tan_test): Likewise.
828         (yn_test): Likewise.
829         (initialize): Set errno to 0.
830         (main): Print number of errno tests.
831         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
832
833 2013-04-29  Andreas Jaeger  <aj@suse.de>
834
835         [BZ #15084]
836         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
837         and RES_USEVC.
838
839         [BZ #15085]
840         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
841         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
842         unimplemented.
843
844         [BZ #15380]
845         * stdlib/random.c (__initstate): Return NULL if
846         __initstate fails.
847
848         [BZ #15086]
849         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
850         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
851         RES_SNGLKUPREOP.
852
853 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
854
855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
856
857 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
858
859         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
860         of individual tests.
861         (casin_test): Likewise.
862         (casinh_test): Likewise.
863
864 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
865
866         [BZ #15409]
867         * math/s_catan.c (__catan): Handle arguments with large real or
868         imaginary part separately without squaring.
869         * math/s_catanf.c (__catanf): Likewise.
870         * math/s_catanh.c (__catanh): Likewise.
871         * math/s_catanhf.c (__catanhf): Likewise.
872         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
873         and redefine.
874         (__catanhl): Handle arguments with large real or imaginary part
875         separately without squaring.
876         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
877         and redefine.
878         (__catanl): Handle arguments with large real or imaginary part
879         separately without squaring.
880         * math/libm-test.inc (catan_test): Add more tests.
881         (catanh_test): Likewise.
882         * sysdeps/i386/fpu/libm-test-ulps: Update.
883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
884
885 2013-04-27  Andreas Jaeger  <aj@suse.de>
886
887         [BZ #15007]
888         * stdlib/stdlib.h: Update guards for qecvt.
889         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
890         <stdlib.h>.
891
892 2013-04-27  Allan McRae  <allan@archlinux.org>
893
894         * sysdeps/i386/fpu/libm-test-ulps: Update.
895
896 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
897
898         [BZ #15406]
899         * math/s_catan.c: Include <float.h>.
900         (__catan): Ensure underflow exception occurs for underflowed
901         result.
902         * math/s_catanf.c: Include <float.h>.
903         (__catanf): Ensure underflow exception occurs for underflowed
904         result.
905         * math/s_catanh.c: Include <float.h>.
906         (__catanh): Ensure underflow exception occurs for underflowed
907         result.
908         * math/s_catanhf.c: Include <float.h>.
909         (__catanhf): Ensure underflow exception occurs for underflowed
910         result.
911         * math/s_catanhl.c: Include <float.h>.
912         (__catanhl): Ensure underflow exception occurs for underflowed
913         result.
914         * math/s_catanl.c: Include <float.h>.
915         (__catanl): Ensure underflow exception occurs for underflowed
916         result.
917         * math/libm-test.inc (catan_test): Add more tests.
918         (catanh_test): Likewise.
919
920         [BZ #15405]
921         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
922         underflowed result.
923         * math/s_ccoshf.c (__ccoshf): Likewise.
924         * math/s_ccoshl.c (__ccoshl): Likewise.
925         * math/s_csin.c (__csin): Likewise.
926         * math/s_csinf.c (__csinf): Likewise.
927         * math/s_csinh.c (__csinh): Likewise.
928         * math/s_csinhf.c (__csinhf): Likewise.
929         * math/s_csinhl.c (__csinhl): Likewise.
930         * math/s_csinl.c (__csinl): Likewise.
931         * math/libm-test.inc (ccos_test): Add more tests.
932         (ccosh_test): Likewise.
933         (csin_test): Likewise.
934         (csinh_test): Likewise.
935
936 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
937
938         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
939         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
940         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
941         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
942         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
943         powerpc/power5+/fpu folders.
944         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
945
946
947 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
948
949         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
950
951 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
952
953         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
954         additions to variable.
955         [$(config-machine) = x86_64] (modules-names): Likewise.
956         ($(objpfx)tst-audit3): Remove dependency.
957         ($(objpfx)tst-audit3.out): Likewise.
958         ($(objpfx)tst-audit4): Likewise.
959         ($(objpfx)tst-audit4.out): Likewise.
960         ($(objpfx)tst-audit5): Likewise.
961         ($(objpfx)tst-audit5.out): Likewise.
962         ($(objpfx)tst-audit6): Likewise.
963         ($(objpfx)tst-audit6.out): Likewise.
964         ($(objpfx)tst-audit7): Likewise.
965         ($(objpfx)tst-audit7.out): Likewise.
966         (tst-audit3-ENV): Remove variable.
967         (tst-audit4-ENV): Likewise.
968         (tst-audit5-ENV): Likewise.
969         (tst-audit6-ENV): Likewise.
970         (tst-audit7-ENV): Likewise.
971         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
972         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
973         addition to variable.
974         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
975         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
976         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
977         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
978         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
979         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
980         tst-audit3, tst-audit4 and tst-audit5.
981         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
982         tst-audit6 and tst-audit7.
983         [$(subdir) = elf] (modules-names): Add audit modules for those
984         tests.
985         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
986         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
987         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
988         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
989         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
990         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
991         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
992         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
993         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
994         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
995         [$(subdir) = elf] (tst-audit3-ENV): New variable.
996         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
997         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
998         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
999         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1000         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1001         Likewise.
1002         [$(subdir) = elf && $(config-cflags-avx) = yes]
1003         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1004         [$(subdir) = elf && $(config-cflags-avx) = yes]
1005         (CFLAGS-tst-auditmod4a.c): Likewise.
1006         [$(subdir) = elf && $(config-cflags-avx) = yes]
1007         (CFLAGS-tst-auditmod4b.c): Likewise.
1008         [$(subdir) = elf && $(config-cflags-avx) = yes]
1009         (CFLAGS-tst-auditmod6b.c): Likewise.
1010         [$(subdir) = elf && $(config-cflags-avx) = yes]
1011         (CFLAGS-tst-auditmod6c.c): Likewise.
1012         [$(subdir) = elf && $(config-cflags-avx) = yes]
1013         (CFLAGS-tst-auditmod7b.c): Likewise.
1014         * elf/tst-audit3.c: Move to ...
1015         * sysdeps/x86_64/tst-audit3.c: ... here.
1016         * elf/tst-audit4.c: Move to ...
1017         * sysdeps/x86_64/tst-audit4.c: ... here.
1018         * elf/tst-audit5.c: Move to ...
1019         * sysdeps/x86_64/tst-audit5.c: ... here.
1020         * elf/tst-audit6.c: Move to ...
1021         * sysdeps/x86_64/tst-audit6.c: ... here.
1022         * elf/tst-audit7.c: Move to ...
1023         * sysdeps/x86_64/tst-audit7.c: ... here.
1024         * elf/tst-auditmod3a.c: Move to ...
1025         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1026         * elf/tst-auditmod3b.c: Move to ...
1027         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1028         * elf/tst-auditmod4a.c: Move to ...
1029         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1030         * elf/tst-auditmod4b.c: Move to ...
1031         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1032         * elf/tst-auditmod5a.c: Move to ...
1033         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1034         * elf/tst-auditmod5b.c: Move to ...
1035         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1036         * elf/tst-auditmod6a.c: Move to ...
1037         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1038         * elf/tst-auditmod6b.c: Move to ...
1039         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1040         * elf/tst-auditmod6c.c: Move to ...
1041         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1042         * elf/tst-auditmod7a.c: Move to ...
1043         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1044         * elf/tst-auditmod7b.c: Move to ...
1045         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1046
1047 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1048
1049         [BZ #15366]
1050         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1051         define unconditionally.
1052         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1053         define unconditionally.
1054         (INT8_C, INT16_C, etc.): Likewise.
1055
1056 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1057
1058         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1059         __ehdr_start with hidden visibility.
1060
1061         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1062
1063 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1064
1065         * math/libm-test.inc (cos_test): Use accurate hex constants.
1066         (sincost_test): Likewise.
1067
1068 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1069
1070         * math/libm-test.inc (catan_test): Add more tests.
1071         (catanh_test): Likewise.
1072
1073         * math/s_catanf.c (__catanf): Use suffixed floating-point
1074         constants.
1075         * math/s_catanhf.c (__catanhf): Likewise.
1076         * math/s_catanhl.c (__catanhl): Likewise.
1077         * math/s_catanl.c (__catanl): Likewise.
1078
1079         [BZ #15394]
1080         * math/s_catan.c (__catan): Calculate imaginary part of result
1081         with log1p not log unless computing log of number close to 0.
1082         * math/s_catanf.c (__catanf): Likewise.
1083         * math/s_catanl.c (__catanl): Likewise.
1084         * math/s_catanh.c (__catanh): Calculate real part of result with
1085         log1p not log unless computing log of number close to 0.
1086         * math/s_catanhf.c (__catanhf): Likewise.
1087         * math/s_catanhl.c (__catanhl): Likewise.
1088         * math/libm-test.inc (catan_test): Add more tests.
1089         (catanh_test): Likewise.
1090         * sysdeps/i386/fpu/libm-test-ulps: Update.
1091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1092
1093 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1094
1095         * benchtests/Makefile: Mention files in which fast and slow
1096         paths of math functions are implemented.
1097
1098 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1099
1100         * sysdeps/posix/timespec_get.c: New file.
1101
1102 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1103
1104         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1105         POWER.
1106         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1107         for POWER.
1108         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1109         powerpc/power5/fpu folders.
1110         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1111         * benchtests/Makefile: Add modf testcase.
1112         * benchtests/bench-modf.c: New file: Benchmark test for mo
1113
1114 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1115
1116         [BZ #14888]
1117         * time/Makefile (tests): Add tst-strptime-whitespace.
1118         * time/strptime_l.c (get_number): Use ISSPACE.
1119         (__strptime_internal): Likewise.
1120         * time/tst-strptime-whitespace.c: New test case.
1121
1122 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1123
1124         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1125         member.
1126         (_nss_files_init): Set it here.
1127
1128 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1129
1130         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1131         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1132         unsigned.
1133
1134 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1135
1136         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1137
1138 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1139
1140         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1141         size just once.
1142
1143 2013-04-21  David S. Miller  <davem@davemloft.net>
1144
1145         * po/ru.po: Update Russion translation from translation project.
1146
1147 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1148
1149         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1150         and setfsgid.
1151
1152 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1153
1154         * configure.in: Remove i386 configure warning. Remove i386 case.
1155         * configure: Regenerate.
1156         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1157         Add example to error message.
1158         * sysdeps/i386/configure: Regenerate.
1159
1160 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1161
1162         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1163         slowtan.
1164         * benchtests/cos-inputs: New file.
1165         * benchtests/slowcos-inputs: New file.
1166         * benchtests/slowcos.c: New file.
1167         * benchtests/slowtan-inputs: New file.
1168         * benchtests/slowtan.c: New file.
1169         * benchtests/tan-inputs: New file.
1170
1171 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1172
1173         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1174         considered kosher.
1175
1176 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1177
1178         * benchtests/Makefile: Include cppflags-iterator.mk to add
1179         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1180
1181         * Makefile.in (bench-clean): New target.
1182         * benchtests/Makefile (bench-clean): Likewise.
1183
1184 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1185
1186         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1187
1188 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1189
1190         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1191
1192 2013-04-15  Andreas Schwab  <schwab@suse.de>
1193
1194         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1195         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1196         * nscd/pwdcache.c (cache_addpw): Likewise.
1197         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1198         more than recsize.
1199
1200 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1201
1202         * benchtests/Makefile (bench): Write all output to
1203         bench-out.tmp together.
1204
1205 2013-04-15  Andreas Schwab  <schwab@suse.de>
1206
1207         * nscd/nscd.c (main): Don't fork again after closing files.
1208
1209 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1210
1211         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1212
1213         * benchtests/Rules (bench-deps): Collect dependencies into a
1214         single variable.  Add Makefile to dependencies.
1215         ($(objpfx)bench-%.c): Depend on bench-deps.
1216
1217 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1218             Xavier Roche  <roche+kml2@exalead.com>
1219
1220         [BZ #15361]
1221         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1222         just that it's a file descriptor.
1223         * manual/llio.texi (Synchronizing AIO Operations): Update description
1224         for EBADF error from aio_fsync.
1225
1226 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1227
1228         * Rules (bench): Move target definition...
1229         * benchtests/Makefile: ... here.
1230
1231 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1232
1233         * math/libm-test.inc (cos_test): Fix PI/2 test.
1234         (sincos_test): Likewise.
1235         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1236         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1237
1238 2013-04-11  Andreas Schwab  <schwab@suse.de>
1239
1240         [BZ #13988]
1241         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1242         accept exponent character only when digits were seen.
1243         * stdio-common/Makefile (tests): Add bug26.
1244         * stdio-common/bug26.c: New file.
1245
1246         [BZ #14293]
1247         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1248         non-freeable.
1249
1250 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1251
1252         * Makeconfig (rtld-prefix): Define built linker prefix.
1253         * Rules (run-bench): Use it.
1254         * math/Makefile (run-regen-ulps): Likewise.
1255
1256         * Rules (bench): Remove eval.
1257
1258 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1259             Roland McGrath  <roland@hack.frob.com>
1260             Ondrej Bilka  <neleai@seznam.cz>
1261
1262         [BZ #15346]
1263         * time/getdate.c: Include ctype.h and alloca.h.
1264         (__getdate_r): Trim leading and trailing spaces of input.
1265         * time/tst-getdate.c (tests): Add tests with leading and
1266         trailing spaces.
1267
1268 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1269
1270         [BZ #14280]
1271         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1272         when computing value.
1273
1274 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1275
1276         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1277         Use testrun.sh to run libm tests.
1278
1279         [BZ #15309]
1280         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1281
1282 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1283
1284         [BZ #15264]
1285         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1286
1287 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1288
1289         * Makefile.in (regen-ulps): New target.
1290         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1291         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1292         [ifneq (no,$(PERL)] (regen-ulps): New target.
1293         [ifeq (no,$(PERL)] (regen-ulps): New target.
1294         * math/libm-test.inc (ulps_file_name): Define.
1295         (output_dir): New variable.
1296         (options): Add "output-dir" option.
1297         (parse_opt): Handle 'o' case.
1298         (main): If output_dir is non-NULL use it as a prefix
1299         otherwise use "".
1300         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1301
1302 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1303
1304         [BZ #10060, #10062]
1305         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1306         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1307         fail configure if __sync_val_compare_and_swap is not inlined.
1308         * sysdeps/i386/configure: Regenerate.
1309         * configure.in: Build for i686 when configured for i386.
1310         * configure: Regenerate.
1311         * README: Remove i386 reference.
1312
1313 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1314
1315         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1316         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1317
1318 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1319
1320         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1321         (lmsnanval): New variables.
1322         (F): Add conversion tests.
1323         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1324         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1325
1326         * stdio-common/tstdiomisc.c (F): Properly collect individual
1327         tests' results.
1328
1329         [BZ #14686, #15336]
1330         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1331         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1332         Instead, use input NaN values or generate a qNaN by arithmetic
1333         operation.  Also fix bugs to comply with the standard.
1334         * math/libm-test.inc (remainder_test): Add more tests.
1335
1336         [BZ #15335, #15342]
1337         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1338         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1339         input NaN values or generate a qNaN by arithmetic operation.
1340
1341         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1342         unreachable code.
1343
1344         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1345         definitions.
1346
1347 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1348
1349         [BZ #14478]
1350         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1351         underflowed result.
1352         * math/s_cexpf.c (__cexpf): Likewise.
1353         * math/s_cexpl.c (__cexpl): Likewise.
1354         * math/libm-test.inc (cexp_test): Add more tests.
1355
1356 2013-04-03  Andreas Schwab  <schwab@suse.de>
1357
1358         [BZ #15330]
1359         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1360         order arrays from heap if bigger than alloca cutoff.
1361
1362 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1363
1364         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1365         (SNAN_TESTS_double): Refer to GCC PR56831.
1366         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1367         GCC PR56828.
1368
1369 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1370
1371         * Rules (bench): Move bench.out after the run is complete.
1372
1373         * Rules (bench): Echo currently running benchmark.
1374
1375         * benchtests/Makefile (bench): Add atan and slowatan.
1376         * benchtests/atan-inputs: New file.
1377         * benchtests/slowatan-inputs: New file.
1378         * benchtests/slowatan.c: New file.
1379
1380         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1381         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1382         its value.
1383
1384         [BZ #15305]
1385         * sysdeps/unix/sysv/linux/kernel-features.h
1386         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1387         __ASSUME_XFS_RESTRICTED_CHOWN.
1388         * sysdeps/unix/sysv/linux/pathconf.c
1389         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1390         Save and restore errno.
1391
1392 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1393
1394         [BZ #15327]
1395         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1396         arguments using __kernel_casinh.
1397         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1398         arguments using __kernel_casinhf.
1399         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1400         arguments using __kernel_casinhl.
1401         * math/libm-test.inc (cacosh_test): Add more tests.
1402         * sysdeps/i386/fpu/libm-test-ulps: Update.
1403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1404
1405 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1406
1407         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1408         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1409
1410         * bench/Makefile (bench): Add sin and slowsin.
1411         * benchtests/sin-inputs: New file.
1412         * benchtests/slowsin-inputs: New file.
1413         * benchtests/slowsin.c: New file.
1414
1415         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1416         (bench): Add slowexp and slowpow.
1417         (exp-ITER): Increase iterations.
1418         (pow-ITER): Likewise.
1419         * benchtests/exp-inputs: Change input.
1420         * benchtests/pow-inputs: Likewise.
1421         * benchtests/slowexp-inputs: New file.
1422         * benchtests/slowexp.c: New file.
1423         * benchtests/slowpow-inputs: New file.
1424         * benchtests/slowpow.c: New file.
1425
1426 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1427
1428         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1429         instructions.
1430         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1431         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1432         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1433         * benchtests/Makefile: Add rint benchtest.
1434         * benchtests/rint-inputs: Input for rint benchtest.
1435
1436 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1437
1438         * Versions.def (libm): Add GLIBC_2.18.
1439         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1440         hidden libm prototypes.
1441         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1442         * math/Makefile (libm-calls): Add s_issignaling.
1443         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1444         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1445         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1446         declaration.
1447         * math/math.h [__USE_GNU] (issignaling): New macro.
1448         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1449         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1450         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1451         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1452         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1453         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1454         * manual/arith.texi (issignaling): New section.
1455         * manual/libm-err-tab.pl (@all_functions): Update comment.
1456         * math/gen-libm-test.pl (parse_args): Apply special handling for
1457         issignaling.
1458         * math/libm-test.inc (print_float, issignaling_test): New
1459         functions.
1460         (check_float_internal): Add issignaling checks.
1461         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1462         default definition.
1463         * sysdeps/powerpc/math-tests.h: New file.
1464         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1465         tests.
1466         * math/test-snan.c (TEST_FUNC): Likewise.
1467
1468 2013-03-30  David S. Miller  <davem@davemloft.net>
1469
1470         * po/de.po: Update from translation team.
1471
1472 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1473
1474         [BZ #10357]
1475         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1476         imaginary part less than 1.0 and real part less than 0.5
1477         specially.
1478         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1479         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1480         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1481         (cacos_test): Add more tests.
1482         (casin_test): Likewise.
1483         (casinh_test): Likewise.
1484         * sysdeps/i386/fpu/libm-test-ulps: Update.
1485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1486
1487 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1488
1489         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1490         ONE with its value.
1491
1492         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1493         (__pow_mp): Replace ONE and MONE with their values.
1494         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1495         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1496         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1497         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1498         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1499         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1500
1501         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1502
1503         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1504         (__pow_mp): Replace ZERO and MZERO with their values.
1505         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1506         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1507         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1508         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1509         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1510         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1511         (__sqr): Likewise.
1512
1513         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1514
1515         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1516
1517 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1518
1519         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1520         Declare with __attribute__ ((weak)).
1521         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1522         Call __call_tls_dtors only if it's not NULL.
1523
1524 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1525
1526         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1527         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1528         magic __ehdr_start linker symbol if it's defined.
1529         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1530         them up here if it was already done.
1531
1532         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1533         (_dl_aux_init): Use const in cast when setting it.
1534         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1535         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1536         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1537
1538         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1539         Declare them here.
1540         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1541         * csu/libc-tls.c: Nor here.
1542         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1543
1544         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1545         (__libc_message): Never call vsyslog.
1546
1547 2013-03-28  Alan Modra  <amodra@gmail.com>
1548
1549         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1550         Define as empty.
1551         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1552         Likewise.
1553
1554 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1555
1556         [BZ #15214]
1557         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1558         underflow.
1559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1560
1561 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1562
1563         [BZ #15304]
1564         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1565         Don't add gid passed as argument.
1566
1567         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1568
1569 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1570
1571         [BZ #15307]
1572         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1573         imaginary part between 1.0 and 1.5 and real part less than 0.5
1574         specially.
1575         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1576         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1577         * math/libm-test.inc (cacos_test): Add more tests.
1578         (casin_test): Likewise.
1579         (casinh_test): Likewise.
1580         * sysdeps/i386/fpu/libm-test-ulps: Update.
1581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1582
1583 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1584
1585         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1586         constants.
1587         (norm): Likewise.
1588         (denorm): Likewise.
1589         (__dbl_mp): Likewise.
1590         (add_magnitudes): Likewise.
1591         (sub_magnitudes): Likewise.
1592         (__add): Likewise.
1593         (__sub): Likewise.
1594         (__mul): Likewise.
1595         (__sqr): Likewise.
1596         (__inv): Likewise.
1597         (__dvd): Likewise.
1598
1599         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1600         commented code.
1601         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1602         (__dubcos): Likewise.
1603         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1604         (__ieee754_acos): Likewise.
1605         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1606         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1607         (__exp1): Likewise.
1608         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1609         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1610         (log1): Likewise.
1611         (my_log2): Likewise.
1612         (checkint): Likewise.
1613         * sysdeps/ieee754/dbl-64/e_remainder.c
1614         (__ieee754_remainder): Likewise.
1615         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1616         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1617         (bsloww): Likewise.
1618         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1619
1620         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1621         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1622         MANTISSA_STORE_T to store computations on mantissa.  Use
1623         macros for rounding and division.
1624         (denorm): Likewise.
1625         (__dbl_mp): Likewise.
1626         (add_magnitudes): Likewise.
1627         (sub_magnitudes): Likewise.
1628         (__mul): Likewise.
1629         (__sqr): Likewise.
1630         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1631         powers of two in terms of TWOPOW macro.
1632         (mp_no): Make type of mantissa as MANTISSA_T.
1633         [!RADIXI]: Define RADIXI.
1634         [!TWO52]: Define TWO52.
1635         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1636
1637 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1638
1639         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1640         llroundl symbol when building for PPC32.
1641
1642 2013-03-24  Mark H Weaver  <mhw@netris.org>
1643
1644         * manual/arith.texi (Normalization Functions): Fix prototypes for
1645         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1646
1647 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1648
1649         [BZ #13889]
1650         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1651         high value to check if expl overflow.
1652         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1653         to check for underflow and overflow.
1654         * math/libm-test.inc: Add exp test.
1655
1656 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1657
1658         [BZ #11120]
1659         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1660         with NOT_IN_libc.
1661
1662 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1663
1664         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1665         symbol.
1666
1667 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1668
1669         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1670         wrap blocks consisting of several statements.
1671
1672         * sysdeps/generic/math-tests.h: New file.
1673         * sysdeps/i386/fpu/math-tests.h: Likewise.
1674         * math/test-snan.c: Include it.
1675         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1676
1677 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1678
1679         [BZ #15285]
1680         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1681         (__ieee754_j0l): Do not improve calculations using cos of twice
1682         input for inputs above LDBL_MAX / 2.0L.
1683         (__ieee754_y0l): Likewise.
1684         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1685         (__ieee754_j1l): Do not improve calculations using cos of twice
1686         input for inputs above LDBL_MAX / 2.0L.
1687         (__ieee754_y1l): Likewise.
1688         * math/libm-test.inc (j0_test): Add another test.
1689         (j1_test): Likewise.
1690         (y0_test): Likewise.
1691         (y1_test): Likewise.
1692         * sysdeps/i386/fpu/libm-test-ulps: Update.
1693
1694 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1695
1696         * Rules ($(objpfx)bench-%.c): Include code from a C source
1697         file.
1698
1699 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1700
1701         [BZ #15287]
1702         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1703         imaginary part 1.0 and real part less than 0.5 specially.
1704         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1705         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1706         * math/libm-test.inc (cacos_test): Add more tests.
1707         (casin_test): Likewise.
1708         (casinh_test): Likewise.
1709         * sysdeps/i386/fpu/libm-test-ulps: Update.
1710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1711
1712 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1713
1714         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1715         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1716
1717 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1720         * config.make.in (config-cflags-sse4): Remove variable.
1721         (config-cflags-avx): Likewise.
1722         (config-cflags-sse2avx): Likewise.
1723         (config-cflags-novzeroupper): Likewise.
1724         (config-asflags-i686): Likewise.
1725         (have-mfma4): Likewise.
1726         (have-as-vis3): Likewise.
1727         (MIG): Likewise.
1728         * configure.in (MIG): Do not AC_SUBST.
1729         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1730         (libc_cv_cc_sse4): Do not AC_SUBST.
1731         (libc_cv_cc_avx): Likewise.
1732         (libc_cv_cc_sse2avx): Likewise.
1733         (libc_cv_cc_novzeroupper): Likewise.
1734         (libc_cv_cc_fma4): Likewise.
1735         (libc_cv_as_i686): Likewise.
1736         (libc_cv_sparc_as_vis3): Likewise.
1737         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1738         LIBC_CONFIG_VAR.
1739         (config-asflags-i686): Likewise.
1740         (config-cflags-avx): Likewise.
1741         (config-cflags-sse2avx): Likewise.
1742         (have-mfma4): Likewise.
1743         (config-cflags-novzeroupper): Likewise.
1744         * sysdeps/mach/configure.in (MIG): Likewise.
1745         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1746         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1747         LIBC_CONFIG_VAR.
1748         (config-cflags-avx): Likewise.
1749         (config-cflags-sse2avx): Likewise.
1750         (have-mfma4): Likewise.
1751         (config-cflags-novzeroupper): Likewise.
1752         * configure: Regenerated.
1753         * sysdeps/i386/configure: Likewise.
1754         * sysdeps/mach/configure: Likewise.
1755         * sysdeps/sparc/configure: Likewise.
1756         * sysdeps/x86_64/configure: Likewise.
1757
1758 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1759
1760         [BZ #14812]
1761         * locale/programs/localedef.c (options): Put N_ translation marker
1762         on argument names, not just descriptions.
1763
1764 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1765
1766         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1767
1768 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1769
1770         [BZ #14176]
1771         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1772
1773 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1774
1775         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1776         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1777         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1778         [!BEFORE_ABORT] (before_abort): New function.
1779         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1780         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1781         (writev_for_fatal): New function.
1782         (WRITEV_FOR_FATAL): New macro; call that.
1783         (backtrace_and_maps): New function.
1784         (BEFORE_ABORT): New macro; call that.
1785         (struct str_list): Type removed.
1786         (__libc_message, __libc_fatal): Functions removed.
1787         Include <sysdeps/posix/libc_fatal.c> instead.
1788
1789 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1790
1791         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1792         constants.
1793         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1794         double constants.
1795
1796 2013-03-19  Andreas Schwab  <schwab@suse.de>
1797
1798         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1799         * sysdeps/gnu/configure: Regenerate.
1800
1801         * configure.in: Substitute libc_cv_rtlddir.
1802         * configure: Regenerate.
1803         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1804         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1805         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1806         * elf/Makefile (install-others, CFLAGS-interp.c)
1807         (ldso_install, common-ldd-rewrite): Likewise.
1808         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1809         $(inst_slibdir)/$(rtld-installed-name).
1810         * scripts/rellns-sh: Add -p option.
1811         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1812         for source.
1813
1814 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1815
1816         * manual/nptl.texi: Renamed to ...
1817         * manual/threads.texi: ... this.
1818         * manual/Makefile (chapters): Update.
1819
1820 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1821
1822         [BZ #14812]
1823         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1824         on argument names, not just descriptions.
1825         * malloc/memusagestat.c (options): Likewise.
1826         * nss/getent.c (options): Likewise.
1827
1828 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1829
1830         [BZ #14812]
1831         * iconv/iconv_prog.c (options): Put N_ translation marker
1832         on argument names, not just descriptions.
1833         * iconv/iconvconfig.c (options): Likewise.
1834
1835 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1836
1837         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1838         implementation which is faster on all x86_64 architectures.
1839         Tested on AMD, Intel Nehalem, SNB, IVB.
1840         * sysdeps/x86_64/strnlen.S: Likewise.
1841
1842         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1843         Remove all multiarch strlen and strnlen versions.
1844         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1845         Remove strlen and strnlen related parts.
1846
1847         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1848         Inline strlen part.
1849         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1850
1851         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1852         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1853         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1854         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1855         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1856         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1857
1858 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1859
1860         * manual/memory.texi (Malloc Tunable Parameters):
1861         Sort parameters alphabetically. Add comments for missing entries.
1862
1863 2013-03-17  David S. Miller  <davem@davemloft.net>
1864
1865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1866
1867 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1868
1869         [BZ #15283]
1870         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1871         for arguments at most half maximum finite value.
1872         * math/libm-test.inc (j0_test): Add more tests.
1873         (j1_test): Likewise.
1874         (y0_test): Likewise.
1875         (y1_test): Likewise.
1876         * sysdeps/i386/fpu/libm-test-ulps: Update.
1877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1878
1879         [BZ #14155]
1880         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1881         1 / x and functions P and Q for arguments above 0x1p256L.
1882         (__ieee754_y0l): Likewise.
1883         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1884         (__ieee754_y1l): Likewise.
1885         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1886         (j1_test): Likewise.
1887         (y0_test): Likewise.
1888         (y1_test): Likewise.
1889
1890 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1891
1892         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1893         variable.
1894
1895 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1896
1897         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1898         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1899         zero since it's initialized to EXEC_PAGESIZE.
1900
1901         * sysdeps/unix/sysv/linux/ldsodefs.h
1902         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1903         * sysdeps/generic/ldsodefs.h: ... here.
1904
1905 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1906
1907         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1908
1909         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1910         math/test-snan.c.
1911         * math/test-snan.c: Renamed from
1912         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1913         * math/Makefile (tests): Add test-snan.
1914         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1915         test-powerpc-snan.
1916
1917         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1918         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1919         functions.
1920         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1921         __builtin_nan family of functions.
1922         * math/libm-test.inc (initialize): Initialize qnan_value with
1923         __builtin_nan family of functions.
1924         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1925         Remove variables.
1926         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1927         Remove functions.
1928         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1929         storage class.  Initialize qNaN_var and sNaN_var with
1930         __builtin_nan and __builtin_nans families of functions,
1931         respectively.
1932
1933         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1934         (sqrt_test): Remove duplicate test with qNaN input.
1935         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1936         (round_test, signbit_test, significand_test): Note missing +/-Inf
1937         as well as qNaN tests.
1938
1939         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1940         qNaN_var.  Fix a few strings, too.
1941         * math/libm-test.inc (nan_value): Rename to qnan_value.
1942         * math/gen-libm-test.pl (%beautify): Adjust to that.
1943         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1944         * math/test-misc.c (main): Likewise.
1945         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1946         to __qnan_bytes, and __qnan_union, respectively.
1947         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1948         Likewise.
1949         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1950         and lqnanval, respectively.
1951         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1952         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1953         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1954         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1955
1956         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1957         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1958         doubles.
1959
1960         * math/test-misc.c (main): Fix copy'n'pastos.
1961         * misc/tst-efgcvt.c (special): Likewise.
1962
1963         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1964         Remove declarations.
1965
1966 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1967
1968         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1969         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1970         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1971         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1972
1973 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1974
1975         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1976         macro to return vdso values correctly in IFUNC implementations.
1977         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1978         Optimization by using IFUNC.
1979
1980 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1981             Richard Henderson  <rth@redhat.com>
1982             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1983
1984         * Makefile.in (bench): New target.
1985         * NEWS: Mention the benchmark framework.
1986         * Rules (bench): Likewise.
1987         (binaries-bench): Generate binaries for functions to
1988         benchmark.
1989         * benchtests/Makefile: New makefile for benchmark tests.
1990         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1991         programs.
1992         * benchtests/exp-inputs: New input file for EXP function.
1993         * benchtests/pow-inputs: New input file for POW function.
1994         * scripts/bench.pl: New script to generate source files for
1995         benchmark programs.
1996
1997 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1998
1999         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2000         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2001         computations on mantissa.  Use macros for rounding and
2002         division.
2003         (denorm): Likewise.
2004         (__dbl_mp): Likewise.
2005         (add_magnitudes): Likewise.
2006         (sub_magnitudes): Likewise.
2007         (__mul): Likewise.
2008         (__sqr): Likewise.
2009         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2010         powers of two in terms of TWOPOW macro.
2011         (mp_no): Make type of mantissa as MANTISSA_T.
2012         [!RADIXI]: Define RADIXI.
2013         [!TWO52]: Define TWO52.
2014         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2015
2016         * manual/nptl.texi (cindex): Modify threads to pthreads.
2017
2018 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2019
2020         * sysdeps/x86_64/preconfigure: Regenerated.
2021
2022 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2023
2024         [BZ #14155]
2025         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2026         0x1p28 and above.
2027         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2028         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2029         0x1p28 and above.
2030         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2031         * math/libm-test.inc (j0_test): Do not allow one spurious
2032         underflow exception.
2033         (y1_test): Likewise.
2034
2035 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2036
2037         * manual/Makefile (chapters): Add nptl.
2038         * manual/debug.texi (Debugging Support): Add link to Threads
2039         chapter.
2040         * manual/nptl.texi: New file.
2041
2042         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2043
2044 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2045
2046         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2047         for non-NULL pointer before the memory validity test. Pointed
2048         out by Holger Brunck <holger.brunck@keymile.com>.
2049
2050 2013-03-13  Andreas Schwab  <schwab@suse.de>
2051
2052         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2053         instead of .os.
2054
2055 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2056
2057         * timezone/zic.c: Update from tzcode 2013b.
2058
2059 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2060
2061         * manual/install.texi (Configuring and compiling):
2062         Mention i686 and i586.
2063         * INSTALL: Regenerate.
2064
2065 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2066
2067         * sysdeps/init_array/elf-init.c: New file.
2068         * csu/elf-init.c
2069         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2070         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2071
2072         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2073         __gmon_start__ as global, but as static with a .preinit_array pointer.
2074         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2075         * sysdeps/init_array/crti.S: New file, empty except for comments.
2076         * sysdeps/init_array/crtn.S: Likewise.
2077
2078 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2079
2080         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2081         definining bcopy.
2082         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2083         Remove Prefer_SSE_for_memop.
2084         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2085         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2086         HAS_PREFER_SSE_FOR_MEMOP.
2087         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2088         memset-x86-64.
2089         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2090         Remove bzero, memset ifunc support.
2091         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2092         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2093         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2094         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2095
2096 2013-03-11  Andreas Schwab  <schwab@suse.de>
2097
2098         [BZ #15234]
2099         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2100         by SHLIB_COMPAT.
2101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2102         (GLIBC_2.16): Remove pthread_atfork.
2103
2104 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2105
2106         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2107         (ptestcases.h): Likewise.
2108
2109 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2110
2111         * Makeconfig ($(common-objpfx)config.status): Depend on
2112         sysdeps/*/preconfigure{,.in} too.
2113
2114 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2115
2116         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2117         (__free_hook): Use void * instead of __malloc_ptr_t.
2118         (__malloc_hook): Likewise.
2119         (__realloc_hook): Likewise.
2120         (__memalign_hook): Likewise.
2121         (__after_morecore_hook): Likewise.
2122         * malloc/arena.c (save_malloc_hook): Likewise.
2123         (save_free_hook): Likewise.
2124         * malloc/hooks.c (malloc_hook_ini): Likewise.
2125         (realloc_hook_ini): Likewise.
2126         (memalign_hook_ini): Likewise.
2127         * malloc/malloc.c (malloc_hook_ini): Likewise.
2128         (realloc_hook_ini): Likewise.
2129         (memalign_hook_ini): Likewise.
2130         (__free_hook): Likewise.
2131         (__malloc_hook): Likewise.
2132         (__realloc_hook): Likewise.
2133         (__memalign_hook): Likewise.
2134         (__libc_malloc): Likewise.
2135         (__libc_free): Likewise.
2136         (__libc_realloc): Likewise.
2137         (__libc_memalign): Likewise.
2138         (__libc_valloc): Likewise.
2139         (__libc_pvalloc): Likewise.
2140         (__libc_calloc): Likewise.
2141         (__posix_memalign): Likewise.
2142         * malloc/morecore.c (__sbrk): Likewise.
2143         (__default_morecore): Likewise.
2144
2145         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2146
2147         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2148         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2149         __malloc_ptrdiff_t.
2150
2151         * malloc/malloc.h (__malloc_size_t): Remove macro.
2152         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2153         __malloc_size_t.
2154         (old_memalign_hook): Likewise.
2155         (old_realloc_hook): Likewise.
2156         (struct hdr): Likewise.
2157         (flood): Likewise.
2158         (mallochook): Likewise.
2159         (memalignhook): Likewise.
2160         (reallochook): Likewise.
2161         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2162         (tr_old_realloc_hook): Likewise.
2163         (tr_old_memalign_hook): Likewise.
2164         (tr_mallochook): Likewise.
2165         (tr_reallochook): Likewise.
2166         (tr_memalignhook): Likewise.
2167
2168 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2169
2170         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2171         default_ldbl_pack and using as default implementation.
2172         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2173         implementation.
2174         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2175         redundant definition.
2176         (ldbl_insert_mantissa): Likewise.
2177         (ldbl_canonicalize): Likewise.
2178         (ldbl_nearbyint): Likewise.
2179         (ldbl_pack): Rename to ldbl_pack_ppc.
2180         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2181         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2182         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2183
2184 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2185
2186         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2187         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2188         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2189         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2190         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2191         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2192         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2193         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2194
2195 2013-03-07  Andreas Jaeger  <aj@suse.de>
2196
2197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2198         bits/mman-linux.h.
2199
2200 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2201
2202         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2203         Include mpa.h and declare __MPEXP.
2204         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2205         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2206         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2207         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2208         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2209         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2210         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2211
2212         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2213         (__slowpow): Use long double EXPL and LOGL functions to
2214         compute POW.
2215         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2216         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2217         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2218         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2219         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2220         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2221
2222         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2223         intermediate variable to calculate exponent.
2224         (__sqr): Likewise.
2225         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2226         Likewise.
2227         (__sqr): Likewise.
2228
2229         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2230         [!NO__SQR]: Define __sqr.
2231         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2232         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2233         sysdeps/ieee754/dbl-64/mpa.c.
2234         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2235
2236         [BZ #12723]
2237         * posix/Makefile (tests): Add tst-pathconf.
2238         * posix/tst-pathconf.c: New test case.
2239         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2240         _PC_PIPE_BUF.
2241         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2242
2243 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2244
2245         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2246
2247 2013-03-06  Andreas Jaeger  <aj@suse.de>
2248
2249         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2250         definition via __MAP_ANONYMOUS.
2251
2252         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2253         it's not part of Linux headers.
2254
2255         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2256         (MAP_HUGE_MASK): Define.
2257
2258         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2259         Define.
2260         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2261         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2262         Define.
2263         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2264         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2265         Define.
2266         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2267         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2268         Define.
2269         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2270
2271         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2272         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2273         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2274         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2275         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2276         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2277
2278         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2279         Handle f2fs.
2280
2281         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2282         Handle f2fs and efivarfs.
2283
2284         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2285         f2fs.
2286
2287         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2288         (EFIVARFS_MAGIC): Add.
2289         (F2FS_LINK_MAX): Add.
2290
2291 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2292
2293         * stdio-common/vfprintf.c: Replace __builtin_expect with
2294         __glibc_unlikely.
2295
2296 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2297
2298         [BZ #13550]
2299         * sysdeps/generic/bp-sym.h: Remove file.
2300         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2301         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2302         <bp-sym.h> and <bp-asm.h>.
2303         (__longjmp): Don't use BP_SYM.
2304         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2305         and <bp-asm.h>.
2306         (memcpy): Don't use BP_SYM.
2307         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2308         <bp-sym.h> and <bp-asm.h>.
2309         (memcpy): Don't use BP_SYM.
2310         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2311         <bp-asm.h>.
2312         (memcpy): Don't use BP_SYM.
2313         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2314         <bp-asm.h>.
2315         (memset): Don't use BP_SYM.
2316         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2317         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2318         (__bzero): Don't use BP_SYM.
2319         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2320         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2321         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2322         <bp-sym.h> and <bp-asm.h>.
2323         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2324         pointers.
2325         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2326         <bp-sym.h> and <bp-asm.h>.
2327         (memcpy): Don't use BP_SYM.
2328         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2329         <bp-sym.h> and <bp-asm.h>.
2330         (memset): Don't use BP_SYM.
2331         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2332         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2333         (__bzero): Don't use BP_SYM.
2334         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2335         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2336         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2337         <bp-sym.h> and <bp-asm.h>.
2338         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2339         pointers.
2340         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2341         <bp-sym.h> and <bp-asm.h>.
2342         (memcpy): Don't use BP_SYM.
2343         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2344         <bp-sym.h> and <bp-asm.h>.
2345         (memset): Don't use BP_SYM.
2346         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2347         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2348         (__bzero): Don't use BP_SYM.
2349         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2350         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2351         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2352         <bp-sym.h> and <bp-asm.h>.
2353         (__memchr): Don't use BP_SYM.
2354         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2355         <bp-sym.h> and <bp-asm.h>.
2356         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2357         pointers.
2358         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2359         <bp-sym.h> and <bp-asm.h>.
2360         (memcpy): Don't use BP_SYM.
2361         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2362         <bp-sym.h> and <bp-asm.h>.
2363         (__mempcpy): Don't use BP_SYM.
2364         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2365         <bp-sym.h> and <bp-asm.h>.
2366         (__memrchr): Don't use BP_SYM.
2367         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2368         <bp-sym.h> and <bp-asm.h>.
2369         (memset): Don't use BP_SYM.
2370         (__bzero): Likewise.
2371         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2372         <bp-sym.h> and <bp-asm.h>.
2373         (__rawmemchr): Don't use BP_SYM.
2374         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2375         <bp-sym.h> and <bp-asm.h>.
2376         (__STRCMP): Don't use BP_SYM.
2377         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2378         <bp-sym.h> and <bp-asm.h>.
2379         (strchr): Don't use BP_SYM.
2380         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2381         <bp-sym.h> and <bp-asm.h>.
2382         (__strchrnul): Don't use BP_SYM.
2383         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2384         <bp-sym.h> and <bp-asm.h>.
2385         (strlen): Don't use BP_SYM.
2386         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2387         <bp-sym.h> and <bp-asm.h>.
2388         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2389         pointers.
2390         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2391         <bp-sym.h> and <bp-asm.h>.
2392         (__strnlen): Don't use BP_SYM.
2393         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2394         <bp-sym.h> and <bp-asm.h>.
2395         (__GI__setjmp): Don't use BP_SYM.
2396         (_setjmp): Likewise.
2397         (__sigsetjmp): Likewise.
2398         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2399         (L(start_addresses)): Don't use BP_SYM.
2400         (_start): Likewise.
2401         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2402         <bp-asm.h>.
2403         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2404         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2405         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2406         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2407         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2408         <bp-asm.h>.
2409         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2410         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2411         about bounded pointers.
2412         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2413         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2414         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2415         <bp-asm.h>.
2416         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2417         about bounded pointers.  Remove GKM FIXME comments.
2418         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2419         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2420         <bp-asm.h>.
2421         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2422         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2423         Remove GKM FIXME comments.
2424         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2425         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2426         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2427         <bp-asm.h>.
2428         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2429         about bounded pointers.  Remove GKM FIXME comment.
2430         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2431         and <bp-asm.h>.
2432         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2433         pointers.
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2435         <bp-sym.h> and <bp-asm.h>.
2436         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2438         <bp-sym.h> and <bp-asm.h>.
2439         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2440         comment.
2441
2442 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2443
2444         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2445         call free(NULL).
2446
2447 2013-03-05  David S. Miller  <davem@davemloft.net>
2448
2449         * po/es.po: Update from translation team.
2450
2451 2013-03-05  Andreas Jaeger  <aj@suse.de>
2452
2453         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2454         <bits/mman-linux.h>.
2455         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2456         is fine.
2457         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2458         <bits/mman-linux.h> to end of file.
2459         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2460         is fine.
2461         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2462         <bits/mman-linux.h> to end of file.
2463         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2464         is fine.
2465         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2466         <bits/mman-linux.h> to end of file.
2467
2468         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2469         (MCL_CURRENT, MCL_FUTURE): Define here.
2470
2471 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2472
2473         [BZ #15232]
2474         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2475         attribute_hidden.
2476         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2477
2478 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2479
2480         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2481         fourth parameter needed for rt_sigprocmask syscall.
2482         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2483         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2484         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2485         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2486         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2487         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2488
2489 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2490
2491         [BZ #13550]
2492         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2493         comment about bounded pointers.
2494         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2495         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2496
2497 2013-03-04  Andreas Jaeger  <aj@suse.de>
2498
2499         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2500         common definitions.
2501
2502         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2503         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2504         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2505         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2506         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2507         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2508
2509 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2510
2511         [BZ #15055]
2512         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2513         __ieee754_sqrl instead of __sqrl.
2514
2515 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2516
2517         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2518         * sysdeps/powerpc/fpu_control.h: ... here.
2519         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2520         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2521         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2522         * sysdeps/powerpc/bits/mathinline.h: ... here.
2523
2524 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2525
2526         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2527         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2528         to just [NEED_DL_SYSINFO_DSO].
2529         * elf/dl-support.c: Likewise.
2530         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2531         * elf/rtld.c (dl_main): Likewise.
2532         * elf/setup-vdso.h (setup_vdso): Likewise.
2533         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2534         * sysdeps/unix/sysv/linux/dl-sysdep.c
2535         (_dl_discover_osversion): Likewise.
2536
2537 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2538
2539         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2540         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2541
2542 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2543
2544         * NEWS: Mention libm performance improvements and non-x86 PI
2545         futex support.
2546
2547         * csu/libc-start.c (__pthread_initialize_minimal): Change
2548         function arguments.
2549         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2550
2551 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2552
2553         [BZ #13550]
2554         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2555         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2556         <bp-sym.h> and <bp-asm.h>.
2557         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2558         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2559         and <bp-asm.h>.
2560         (memcpy): Don't use BP_SYM.
2561         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2562         <bp-asm.h>.
2563         (__mpn_add_n): Don't use BP_SYM.
2564         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2565         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2566         and <bp-asm.h>.
2567         (__mpn_addmul_1): Don't use BP_SYM.
2568         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2569         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2570         <bp-sym.h>.
2571         (_setjmp): Don't use BP_SYM.
2572         (__novmx_setjmp): Likewise.
2573         (__GI__setjmp): Likewise.
2574         (__vmx_setjmp): Likewise.
2575         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2576         <bp-sym.h>.
2577         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2578         (__bzero): Don't use BP_SYM.
2579         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2580         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2581         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2582         <bp-sym.h> and <bp-asm.h>.
2583         (memcpy): Don't use BP_SYM.
2584         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2585         <bp-sym.h> and <bp-asm.h>.
2586         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2587         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2588         <bp-sym.h> and <bp-asm.h>.
2589         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2590         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2591         <bp-asm.h>.
2592         (__mpn_lshift): Don't use BP_SYM.
2593         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2594         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2595         <bp-asm.h>.
2596         (memset): Don't use BP_SYM.
2597         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2598         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2599         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2600         <bp-asm.h>.
2601         (__mpn_mul_1): Don't use BP_SYM.
2602         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2603         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2604         <bp-sym.h> and <bp-asm.h>.
2605         (memcmp): Don't use BP_SYM.
2606         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2607         <bp-sym.h> and <bp-asm.h>.
2608         (memcpy): Don't use BP_SYM.
2609         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2610         <bp-sym.h> and <bp-asm.h>.
2611         (memset): Don't use BP_SYM.
2612         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2613         <bp-sym.h> and <bp-asm.h>.
2614         (strncmp): Don't use BP_SYM.
2615         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2616         <bp-sym.h> and <bp-asm.h>.
2617         (memcpy): Don't use BP_SYM.
2618         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2619         <bp-sym.h> and <bp-asm.h>.
2620         (memset): Don't use BP_SYM.
2621         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2622         <bp-sym.h> and <bp-asm.h>.
2623         (__memchr): Don't use BP_SYM.
2624         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2625         <bp-sym.h> and <bp-asm.h>.
2626         (memcmp): Don't use BP_SYM.
2627         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2628         <bp-sym.h> and <bp-asm.h>.
2629         (memcpy): Don't use BP_SYM.
2630         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2631         <bp-sym.h> and <bp-asm.h>.
2632         (__mempcpy): Don't use BP_SYM.
2633         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2634         <bp-sym.h> and <bp-asm.h>.
2635         (__memrchr): Don't use BP_SYM.
2636         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2637         <bp-sym.h> and <bp-asm.h>.
2638         (memset): Don't use BP_SYM.
2639         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2640         <bp-sym.h> and <bp-asm.h>.
2641         (__rawmemchr): Don't use BP_SYM.
2642         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2643         <bp-sym.h> and <bp-asm.h>.
2644         (__STRCMP): Don't use BP_SYM.
2645         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2646         <bp-sym.h> and <bp-asm.h>.
2647         (strchr): Don't use BP_SYM.
2648         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2649         <bp-sym.h> and <bp-asm.h>.
2650         (__strchrnul): Don't use BP_SYM.
2651         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2652         <bp-sym.h> and <bp-asm.h>.
2653         (strlen): Don't use BP_SYM.
2654         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2655         <bp-sym.h> and <bp-asm.h>.
2656         (strncmp): Don't use BP_SYM.
2657         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2658         <bp-sym.h> and <bp-asm.h>.
2659         (__strnlen): Don't use BP_SYM.
2660         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2661         <bp-asm.h>.
2662         (__mpn_rshift): Don't use BP_SYM.
2663         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2664         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2665         <bp-sym.h> and <bp-asm.h>.
2666         (__sigsetjmp): Don't use BP_SYM.
2667         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2668         (L(start_addresses)): Don't use BP_SYM.
2669         (_start): Likewise.
2670         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2671         <bp-asm.h>.
2672         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2673         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2674         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2675         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2676         <bp-asm.h>.
2677         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2678         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2679         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2680         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2681         <bp-asm.h>.
2682         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2683         comments.
2684         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2685         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2686         <bp-asm.h>.
2687         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2688         FIXME comments.
2689         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2690         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2691         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2692         <bp-asm.h>.
2693         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2694         comment.
2695         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2696         and <bp-asm.h>.
2697         (strncmp): Don't use BP_SYM,
2698         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2699         <bp-asm.h>.
2700         (__mpn_sub_n): Don't use BP_SYM.
2701         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2702         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2703         and <bp-asm.h>.
2704         (__mpn_submul_1): Don't use BP_SYM.
2705         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2707         <bp-sym.h> and <bp-asm.h>.
2708         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2710         <bp-sym.h> and <bp-asm.h>.
2711         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2712         comment.
2713
2714 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2715
2716         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2717         Use ZK to minimize writes to Z.
2718         (sub_magnitudes): Simplify code a bit.
2719         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2720         Use ZK to minimize writes to Z.
2721         (sub_magnitudes): Simplify code a bit.
2722
2723 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2724
2725         * csu/gmon-start.c: Add special exception to license text.
2726
2727 2013-02-27  Richard Henderson  <rth@redhat.com>
2728
2729         * scripts/config.guess: Update from config.git.
2730         * scripts/config.sub: Likewise.
2731
2732 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2733
2734         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2735
2736         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2737
2738         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2739
2740         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2741
2742         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2743
2744 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2745
2746         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2747         [$(build-shared = yes].
2748
2749 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2750
2751         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2752         (__mul): Reduce iterations for calculating mantissa.
2753
2754         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2755         MPTWO.
2756         (__mpranred): Likewise.
2757
2758         [BZ #15160]
2759         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2760         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2761
2762 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2763
2764         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2765         Define __attribute__.
2766
2767 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2768
2769         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2770         unused.
2771         * posix/regex_internal.h (__attribute): Remove.
2772         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2773         (re_string_context_at): Likewise.
2774         (bitset_not): Use __attribute__ and mark function as possibly
2775         unused.
2776         (bitset_merge): Likewise.
2777         (bitset_mask): Likewise.
2778         (re_string_char_size_at): Likewise.
2779         (re_string_wchar_at): Likewise.
2780         (re_string_elem_size_at): Likewise.
2781
2782 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2783
2784         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2785         code.
2786         (cc32): Likewise.
2787
2788         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2789         (__acr): Likewise.
2790         (__cpy): Likewise.
2791         (norm): Likewise.
2792         (denorm): Likewise.
2793         (__dbl_mp): Likewise.
2794         (add_magnitudes): Likewise.
2795         (sub_magnitudes): Likewise.
2796         (__mul): Likewise.
2797         (__inv): Likewise.
2798
2799         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2800         style.
2801
2802         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2803         style.
2804
2805         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2806         code.
2807
2808         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2809         up changes with default code.
2810         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2811         Likewise.
2812
2813 2013-02-24  Allan McRae  <allan@archlinux.org>
2814
2815         * manual/socket.texi (The Internet Namespace): Order menu items
2816         to match that in the file.
2817
2818         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2819         node listing of the info page menu.
2820
2821 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2822
2823         [BZ #13550]
2824         * sysdeps/i386/bp-asm.h: Remove file.
2825         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2826         (PARMS): Do not use macros from bp-asm.h.
2827         (S1): Likewise.
2828         (S2): Likewise.
2829         (SIZE): Likewise.
2830         (__mpn_add_n): Do not use BP_SYM
2831         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2832         "bp-asm.h".
2833         (PARMS): Do not use macros from bp-asm.h.
2834         (S1): Likewise.
2835         (SIZE): Likewise.
2836         (__mpn_addmul_1): Do not use BP_SYM
2837         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2838         "bp-asm.h".
2839         (PARMS): Do not use macros from bp-asm.h.
2840         (SIGMSK): Likewise.
2841         (_setjmp): Likewise.  Do not use BP_SYM.
2842         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2843         "bp-asm.h".
2844         (PARMS): Do not use macros from bp-asm.h.
2845         (SIGMSK): Likewise.
2846         (setjmp): Likewise.  Do not use BP_SYM.
2847         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2848         "bp-asm.h".
2849         (PARMS): Do not use macros from bp-asm.h.
2850         (__frexp): Do not use BP_SYM.
2851         (frexp): Likewise.
2852         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2853         "bp-asm.h".
2854         (PARMS): Do not use macros from bp-asm.h.
2855         (__frexpf): Do not use BP_SYM.
2856         (frexpf): Likewise.
2857         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2858         "bp-asm.h".
2859         (PARMS): Do not use macros from bp-asm.h.
2860         (__frexpl): Do not use BP_SYM.
2861         (frexpl): Likewise.
2862         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2863         "bp-asm.h".
2864         (PARMS): Do not use macros from bp-asm.h.
2865         (__remquo): Do not use BP_SYM.
2866         (remquo): Likewise.
2867         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2868         "bp-asm.h".
2869         (PARMS): Do not use macros from bp-asm.h.
2870         (__remquof): Do not use BP_SYM.
2871         (remquof): Likewise.
2872         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2873         "bp-asm.h".
2874         (PARMS): Do not use macros from bp-asm.h.
2875         (__remquol): Do not use BP_SYM.
2876         (remquol): Likewise.
2877         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2878         "bp-asm.h".
2879         (PARMS): Do not use macros from bp-asm.h.
2880         (DEST): Likewise.
2881         (SRC): Likewise.
2882         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2883         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2884         "bp-asm.h".
2885         (PARMS): Do not use macros from bp-asm.h.
2886         (strlen): Do not use BP_SYM.
2887         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2888         "bp-asm.h".
2889         (PARMS): Do not use macros from bp-asm.h.
2890         (S1): Likewise.
2891         (S2): Likewise.
2892         (SIZE): Likewise.
2893         (__mpn_add_n): Do not use BP_SYM.
2894         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2895         "bp-asm.h".
2896         (PARMS): Do not use macros from bp-asm.h.
2897         (S1): Likewise.
2898         (SIZE): Likewise.
2899         (__mpn_addmul_1): Do not use BP_SYM.
2900         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2901         weak_alias.
2902         (bzero): Likewise.
2903         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2904         "bp-asm.h".
2905         (PARMS): Do not use macros from bp-asm.h.
2906         (S): Likewise.
2907         (SIZE): Likewise.
2908         (__mpn_lshift): Do not use BP_SYM.
2909         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2910         "bp-asm.h".
2911         (PARMS): Do not use macros from bp-asm.h.
2912         (DEST): Likewise.
2913         (SRC): Likewise.
2914         (LEN): Likewise.
2915         (memcpy): Likewise.  Do not use BP_SYM.
2916         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2917         libc_hidden_def and weak_alias.
2918         (mempcpy): Do not use BP_SYM in weak_alias.
2919         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2920         "bp-asm.h".
2921         (PARMS): Do not use macros from bp-asm.h.
2922         (DEST): Likewise.
2923         (LEN): Likewise.
2924         [!BZERO_P] (CHR): Likewise.
2925         (memset): Likewise.  Do not use BP_SYM.
2926         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2927         "bp-asm.h".
2928         (PARMS): Do not use macros from bp-asm.h.
2929         (S1): Likewise.
2930         (SIZE): Likewise.
2931         (__mpn_mul_1): Do not use BP_SYM.
2932         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2933         "bp-asm.h".
2934         (PARMS): Do not use macros from bp-asm.h.
2935         (S): Likewise.
2936         (SIZE): Likewise.
2937         (__mpn_rshift): Do not use BP_SYM.
2938         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2939         "bp-asm.h".
2940         (PARMS): Do not use macros from bp-asm.h.
2941         (STR): Likewise.
2942         (CHR): Likewise.
2943         (strchr): Likewise.  Do not use BP_SYM.
2944         (index): Do not use BP_SYM in weak_alias.
2945         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2946         "bp-asm.h".
2947         (PARMS): Do not use macros from bp-asm.h.
2948         (DEST): Likewise.
2949         (SRC): Likewise.
2950         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2951         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2952         "bp-asm.h".
2953         (PARMS): Do not use macros from bp-asm.h.
2954         (strlen): Do not use BP_SYM.
2955         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2956         "bp-asm.h".
2957         (PARMS): Do not use macros from bp-asm.h.
2958         (S1): Likewise.
2959         (S2): Likewise.
2960         (SIZE): Likewise.
2961         (__mpn_sub_n): Do not use BP_SYM.
2962         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2963         "bp-asm.h".
2964         (PARMS): Do not use macros from bp-asm.h.
2965         (S1): Likewise.
2966         (SIZE): Likewise.
2967         (__mpn_submul_1): Do not use BP_SYM.
2968         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2969         "bp-asm.h".
2970         (PARMS): Do not use macros from bp-asm.h.
2971         (S1): Likewise.
2972         (S2): Likewise.
2973         (SIZE): Likewise.
2974         (__mpn_add_n): Do not use BP_SYM.
2975         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2976         weak_alias.
2977         (bzero): Likewise.
2978         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2979         "bp-asm.h".
2980         (PARMS): Do not use macros from bp-asm.h.
2981         (BLK2): Likewise.
2982         (LEN): Likewise.
2983         (memcmp): Do not use BP_SYM.
2984         (bcmp): Do not use BP_SYM in weak_alias.
2985         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2986         "bp-asm.h".
2987         (PARMS): Do not use macros from bp-asm.h.
2988         (DEST): Likewise.
2989         (SRC): Likewise.
2990         (LEN): Likewise.
2991         (memcpy): Likewise.  Do not use BP_SYM.
2992         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2993         "bp-asm.h".
2994         (PARMS): Do not use macros from bp-asm.h.
2995         (DEST): Likewise.
2996         (SRC): Likewise.
2997         (LEN): Likewise.
2998         (memmove): Likewise.  Do not use BP_SYM.
2999         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3000         "bp-asm.h".
3001         (PARMS): Do not use macros from bp-asm.h.
3002         (DEST): Likewise.
3003         (SRC): Likewise.
3004         (LEN): Likewise.
3005         (__mempcpy): Likewise.  Do not use BP_SYM.
3006         (mempcpy): Do not use BP_SYM in weak_alias.
3007         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3008         "bp-asm.h".
3009         (PARMS): Do not use macros from bp-asm.h.
3010         (DEST): Likewise.
3011         (LEN): Likewise.
3012         [!BZERO_P] (CHR): Likewise.
3013         (memset): Likewise.  Do not use BP_SYM.
3014         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3015         "bp-asm.h".
3016         (PARMS): Do not use macros from bp-asm.h.
3017         (STR2): Likewise.
3018         (strcmp): Do not use BP_SYM.
3019         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3020         "bp-asm.h".
3021         (PARMS): Do not use macros from bp-asm.h.
3022         (STR): Likewise.
3023         (DELIM): Likewise.
3024         [USE_AS_STRTOK_R] (SAVE): Likewise.
3025         (FUNCTION): Likewise.  Do not use BP_SYM.
3026         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3027         aliases.
3028         (strtok_r): Likewise.
3029         (__GI___strtok_r): Likewise.
3030         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3031         (PARMS): Do not use macros from bp-asm.h.
3032         (S): Likewise.
3033         (SIZE): Likewise.
3034         (__mpn_lshift): Do not use BP_SYM.
3035         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3036         (PARMS): Do not use macros from bp-asm.h.
3037         (STR): Likewise.
3038         (CHR): Likewise.
3039         (__memchr): Do not use BP_SYM.
3040         (memchr): Do not use BP_SYM in weak_alias.
3041         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3042         (PARMS): Do not use macros from bp-asm.h.
3043         (BLK2): Likewise.
3044         (LEN): Likewise.
3045         (memcmp): Do not use BP_SYM.
3046         (bcmp): Do not use BP_SYM in weak_alias.
3047         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3048         (PARMS): Do not use macros from bp-asm.h.
3049         (S1): Likewise.
3050         (SIZE): Likewise.
3051         (__mpn_mul_1): Do not use BP_SYM.
3052         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3053         "bp-asm.h".
3054         (PARMS): Do not use macros from bp-asm.h.
3055         (STR): Likewise.
3056         (CHR): Likewise.
3057         (__rawmemchr): Do not use BP_SYM.
3058         (rawmemchr): Do not use BP_SYM in weak_alias.
3059         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3060         (PARMS): Do not use macros from bp-asm.h.
3061         (S): Likewise.
3062         (SIZE): Likewise.
3063         (__mpn_rshift): Do not use BP_SYM.
3064         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3065         (PARMS): Do not use macros from bp-asm.h.
3066         (SIGMSK): Likewise.
3067         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3068         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3069         (_start): Do not use BP_SYM.
3070         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3071         (PARMS): Do not use macros from bp-asm.h.
3072         (DEST): Likewise.
3073         (SRC): Likewise.
3074         (__stpcpy): Likewise.  Do not use BP_SYM.
3075         (stpcpy): Do not use BP_SYM in weak_alias.
3076         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3077         "bp-asm.h".
3078         (PARMS): Do not use macros from bp-asm.h.
3079         (DEST): Likewise.
3080         (SRC): Likewise.
3081         (LEN): Likewise.
3082         (__stpncpy): Likewise.  Do not use BP_SYM.
3083         (stpncpy): Do not use BP_SYM in weak_alias.
3084         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3085         (PARMS): Do not use macros from bp-asm.h.
3086         (STR): Likewise.
3087         (CHR): Likewise.
3088         (strchr): Likewise.  Do not use BP_SYM.
3089         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3090         "bp-asm.h".
3091         (PARMS): Do not use macros from bp-asm.h.
3092         (STR): Likewise.
3093         (CHR): Likewise.
3094         (__strchrnul): Likewise.  Do not use BP_SYM.
3095         (strchrnul): Do not use BP_SYM in weak_alias.
3096         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3097         "bp-asm.h".
3098         (PARMS): Do not use macros from bp-asm.h.
3099         (STOP): Likewise.
3100         (strcspn): Do not use BP_SYM.
3101         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3102         "bp-asm.h".
3103         (PARMS): Do not use macros from bp-asm.h.
3104         (STR): Likewise.
3105         (STOP): Likewise.
3106         (strpbrk): Likewise.  Do not use BP_SYM.
3107         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3108         "bp-asm.h".
3109         (PARMS): Do not use macros from bp-asm.h.
3110         (STR): Likewise.
3111         (CHR): Likewise.
3112         (strrchr): Likewise.  Do not use BP_SYM.
3113         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3114         (PARMS): Do not use macros from bp-asm.h.
3115         (SKIP): Likewise.
3116         (strspn): Do not use BP_SYM.
3117         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3118         (PARMS): Do not use macros from bp-asm.h.
3119         (STR): Likewise.
3120         (DELIM): Likewise.
3121         (SAVE): Likewise.
3122         (FUNCTION): Likewise.  Do not use BP_SYM.
3123         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3124         aliases.
3125         (strtok_r): Likewise.
3126         (__GI___strtok_r): Likewise.
3127         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3128         (PARMS): Do not use macros from bp-asm.h.
3129         (S1): Likewise.
3130         (S2): Likewise.
3131         (SIZE): Likewise.
3132         (__mpn_sub_n): Do not use BP_SYM.
3133         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3134         "bp-asm.h".
3135         (PARMS): Do not use macros from bp-asm.h.
3136         (S1): Likewise.
3137         (SIZE): Likewise.
3138         (__mpn_submul_1): Do not use BP_SYM.
3139         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3140         <bp-sym.h>.
3141         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3142         and <bp-asm.h>.
3143         (PARMS): Do not use macros from bp-asm.h.
3144         (FLAGS): Likewise.
3145         (PTID): Likewise.
3146         (TLS): Likewise.
3147         (CTID): Likewise.
3148         (__clone): Do not use BP_SYM.
3149         (clone): Do not use BP_SYM in weak_alias.
3150         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3151         and <bp-asm.h>.
3152         (PARMS): Do not use macros from bp-asm.h.
3153         (LEN): Likewise.
3154         (__mmap64): Do not use BP_SYM.
3155         (mmap64): Do not use BP_SYM in weak_alias.
3156         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3157         <bp-sym.h> and <bp-asm.h>.
3158         (PARMS): Do not use macros from bp-asm.h.
3159         (__posix_fadvise64_l64): Do not use BP_SYM.
3160         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3161         (PARMS): Do not use macros from bp-asm.h.
3162         (NSOPS): Likewise.
3163         (semtimedop): Do not use BP_SYM.
3164         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3165         and <bp-asm.h>.
3166
3167 2013-02-21  Allan McRae  <allan@archlinux.org>
3168
3169         * manual/message.texi (Charset conversion in gettext):
3170         Move @end statement to beginning of line.
3171
3172 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3173
3174         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3175         static.
3176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3177         Likewise.
3178
3179         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3180         (denorm): Likewise.
3181         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3183
3184 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3185
3186         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3187         tail-call to the resolved function if pltexit isn't needed.
3188
3189 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3190
3191         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3192         or Y being zero as being unlikely.
3193         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3194         Likewise.
3195
3196 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3197
3198         * manual/nss.texi (System Databases and Name Service Switch):
3199         Remove frobnicate @pxref.
3200
3201 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3202
3203         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3204         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3205
3206 2013-02-20  Petr Machata  <pmachata@redhat.com>
3207
3208         * elf/elf.h (R_ARM_TARGET1): New macro.
3209         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3210         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3211         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3212         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3213         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3214         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3215         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3216         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3217         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3218         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3219         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3220         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3221         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3222         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3223         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3224         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3225         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3226         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3227         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3228         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3229         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3230         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3231         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3232         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3233         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3234         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3235         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3236         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3237         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3238         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3239         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3240         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3241         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3242         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3243         (R_ARM_THM_GOT_BREL12): Likewise.
3244         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3245         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3246         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3247         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3248         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3249         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3250         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3251         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3252         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3253
3254 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3255
3256         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3257         __attribute_used__ to __attribute__ ((unused)).
3258
3259 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3260
3261         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3262         powerpc mpa.c.
3263         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3264         comment formatting.
3265         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3266
3267 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3268
3269         [BZ #13550]
3270         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3271         Remove macro.
3272         (ENTER): Remove both macro definitions.
3273         (LEAVE): Likewise.
3274         (CHECK_BOUNDS_LOW): Likewise.
3275         (CHECK_BOUNDS_HIGH): Likewise.
3276         (CHECK_BOUNDS_BOTH): Likewise.
3277         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3278         (RETURN_BOUNDED_POINTER): Likewise.
3279         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3280         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3281         (POP_ERRNO_LOCATION_RETURN): Likewise.
3282         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3283         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3284         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3285         macros.
3286         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3287         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3288         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3289         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3290         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3291         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3292         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3293         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3294         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3295         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3296         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3297         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3298         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3299         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3300         removed macros.
3301         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3302         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3303         macros.
3304         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3305         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3306         * sysdeps/i386/i586/memset.S (memset): Likewise.
3307         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3308         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3309         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3310         macros.
3311         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3312         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3313         Change uses of L(2) to L(out).
3314         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3315         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3316         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3317         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3318         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3319         removed macros.
3320         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3321         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3322         macros.
3323         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3324         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3325         (RETURN): Do not use macro LEAVE.
3326         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3327         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3328         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3329         * sysdeps/i386/i686/memset.S (memset): Likewise.
3330         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3331         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3332         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3333         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3334         Likewise.
3335         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3336         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3337         L(1_2) and L(1_3) into L(1).
3338         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3339         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3340         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3341         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3342         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3343         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3344         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3345         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3346         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3347         macros.
3348         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3349         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3350         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3351         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3352         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3353         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3354         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3355         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3356         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3357         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3358         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3359         * sysdeps/i386/strspn.S (strspn): Likewise.
3360         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3361         conditional code.
3362         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3363         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3364         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3365         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3366         L(1_3) into L(1_1).
3367         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3368         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3369         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3370         macros.
3371         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3372
3373 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3374
3375         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3376         macro.
3377
3378 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3379
3380         * math/atest-exp.c (exp_mpn): Remove ROUND.
3381         * math/atest-exp2.c (exp_mpn): Likewise.
3382         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3383
3384         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3385         * stdlib/tst-tls-atexit-lib.c: Likewise.
3386         * stdlib/tst-tls-atexit.c: Likewise.
3387
3388 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3389
3390         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3391         and __attribute_alloc_size__.
3392
3393 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3394
3395         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3396         __attribute_alloc_size__.
3397         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3398         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3399
3400 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3401
3402         * include/programs/xmalloc.h: New file.
3403         * catgets/gencat.c: Include it.
3404         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3405         * elf/pldd.c: Likewise.
3406         * iconv/iconv_charmap.c: Likewise.
3407         * iconv/iconvconfig.c: Likewise.
3408         * iconv/strtab.c: Likewise.
3409         * locale/programs/locale.c: Likewise.
3410         * locale/programs/localedef.h: Likewise.
3411         * locale/programs/simple-hash.c: Likewise.
3412         * nscd/nscd.h: Likewise.
3413         * nss/makedb.c: Likewise.
3414         * sysdeps/generic/ldconfig.h: Likewise.
3415
3416 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3417
3418         * Versions.def: Add GLIBC_2.18.
3419         * include/link.h (struct link_map): New member l_tls_dtor_count.
3420         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3421         (__call_tls_dtors): Likewise.
3422         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3423         __cxa_thread_atexit_impl.
3424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3425         Likewise.
3426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3427         Likewise.
3428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3429         Likewise.
3430         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3431         Likewise.
3432         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3434         Likewise.
3435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3436         Likewise.
3437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3438         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3439         Likewise.
3440         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3441         (tests): Add test case tst-tls-atexit.
3442         (modules-names): Add shared library for tst-tls-atexit.
3443         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3444         (GLIBC_PRIVATE): Add __call_tls_dtors.
3445         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3446         for libstdc++.
3447         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3448         * stdlib/tst-tls-atexit.c: New test case.
3449         * stdlib/tst-tls-atexit-lib.c: New test case.
3450
3451         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3452
3453         * elf/Versions (ld): Add _dl_find_dso_for_object.
3454         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3455         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3456         (dl_open_worker): Use _dl_find_dso_for_object.
3457         * elf/dl-sym.c (do_sym): Likewise.
3458         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3459
3460 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3461
3462         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3463         Syntactic changes only.
3464         (_dl_runtime_profile): Do a tail-call to the resolved function.
3465
3466 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3467
3468         [BZ #13550]
3469         * sysdeps/x86_64/bp-asm.h: Remove file.
3470         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3471         <bp-sym.h> and <bp-asm.h>.
3472         (__clone): Do not use BP_SYM.
3473         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3474         <bp-sym.h> and <bp-asm.h>.
3475         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3476         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3477         "bp-asm.h".
3478         (_setjmp): Do not use BP_SYM.
3479         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3480         "bp-asm.h".
3481         (setjmp): Do not use BP_SYM.
3482         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3483         libc_hidden_def.
3484         (mempcpy): Do not use BP_SYM in weak_alias.
3485         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3486         "bp-asm.h".
3487         (strchr): Do not use BP_SYM.
3488         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3489         "bp-asm.h".
3490         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3491         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3492         (_start): Do not use BP_SYM.
3493         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3494         "bp-asm.h".
3495         (strcat): Do not use BP_SYM.
3496         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3497         "bp-asm.h".
3498         (STRCMP): Do not use BP_SYM.
3499         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3500         "bp-asm.h".
3501         (STRCPY): Do not use BP_SYM.
3502         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3503         "bp-asm.h".
3504         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3505         "bp-asm.h".
3506         (FUNCTION): Do not use BP_SYM.
3507         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3508         weak_alias.
3509         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3510
3511 2013-02-17  Andreas Jaeger  <aj@suse.de>
3512
3513         * time/Versions: Sort entries.
3514         * string/Versions: Likewise.
3515         * resolv/Versions: Likewise.
3516         * posix/Versions: Likewise.
3517         * iconv/Versions: Likewise.
3518         * elf/Versions: Likewise.
3519         * wcsmbs/Versions: Likewise.
3520
3521 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3522
3523         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3524         loop termination condition.
3525
3526         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3527         variable to calculate EZ.
3528         (__sqr): Likewise.
3529
3530         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3531         the lower precision input.
3532
3533 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3534
3535         [BZ #13550]
3536         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3537         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3538         (run-via-rtld-prefix): Do not handle %-bp tests.
3539         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3540         (all-object-suffixes): Remove .ob.
3541         (bppfx): Remove variable.
3542         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3543         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3544         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3545         [$(build-bounded) = yes] (libtype.ob): Likewise.
3546         * Makerules (elide-routines.ob): Remove variable.
3547         (do-tests-clean): Do not handle *-bp.out.
3548         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3549         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3550         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3551         (tests): Do not include $(tests-bp.out).
3552         (xtests): Do not include $(xtests-bp.out).
3553         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3554         [$(build-bounded) = yes] ($(addprefix
3555         $(objpfx),$(binaries-bounded))): Remove rule.
3556         ($(objpfx)%-bp.out): Remove rule.
3557         * config.make.in (build-bounded): Remove variable.
3558         * crypt/Makefile [$(build-bounded) = yes]
3559         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3560         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3561         append to variable.
3562         [$(build-bounded) = yes] (install-lib): Likewise.
3563         [$(build-bounded) = yes] (generated): Likewise.
3564         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3565         Remove rule.
3566         * intl/Makefile [$(build-bounded) = yes]
3567         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3568         * math/Makefile [$(build-bounded) = yes]
3569         ($(tests:%=$(objpfx)%-bp): Likewise.
3570         * misc/Makefile [$(build-bounded) = yes]
3571         ($(objpfx)tst-tsearch-bp): Likewise.
3572         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3573         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3574         Remove dependency.
3575         * string/Makefile (o-objects.ob): Remove variable.
3576         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3577         (CFLAGS-.ob): Remove variable.
3578         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3579         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3580         both definitions of variable.
3581         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3582         (ASFLAGS-.ob): Remove variable.
3583
3584 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3585
3586         [BZ #13550]
3587         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3588         Remove __BOUNDED_POINTERS__ from condition.
3589         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3590         * string/bits/string2.h [!__NO_STRING_INLINES &&
3591         !__BOUNDED_POINTERS__]: Likewise.
3592         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3595         Remove conditional code.
3596         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3597         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3598         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3599         condition.
3600
3601         [BZ #13550]
3602         * csu/libc-start.c: Do not include <bp-sym.h>.
3603         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3604         * elf/dl-open.c: Do not include <bp-sym.h>.
3605         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3606         * math/fegetenv.c: Do not include <bp-sym.h>.
3607         (fegetenv): Do not use BP_SYM in versioned symbols.
3608         * nptl/sysdeps/pthread/bits/libc-lockP.h
3609         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3610         <bp-sym.h>.
3611         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3612         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3613         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3614         (__pthread_mutex_destroy): Likewise.
3615         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3616         (__pthread_mutex_lock): Likewise.
3617         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3618         (__pthread_mutex_trylock): Likewise.
3619         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3620         (__pthread_mutex_unlock): Likewise.
3621         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3622         (__pthread_mutexattr_init): Likewise.
3623         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3624         (__pthread_mutexattr_destroy): Likewise.
3625         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3626         (__pthread_mutexattr_settype): Likewise.
3627         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3628         (__pthread_rwlock_init): Likewise.
3629         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3630         (__pthread_rwlock_destroy): Likewise.
3631         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3632         (__pthread_rwlock_rdlock): Likewise.
3633         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3634         (__pthread_rwlock_tryrdlock): Likewise.
3635         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3636         (__pthread_rwlock_wrlock): Likewise.
3637         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3638         (__pthread_rwlock_trywrlock): Likewise.
3639         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3640         (__pthread_rwlock_unlock): Likewise.
3641         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3642         (__pthread_key_create): Likewise.
3643         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3644         (__pthread_setspecific): Likewise.
3645         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3646         (__pthread_getspecific): Likewise.
3647         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3648         Likewise.
3649         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3650         (_pthread_cleanup_push_defer): Likewise.
3651         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3652         (_pthread_cleanup_pop_restore): Likewise.
3653         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3654         (pthread_setcancelstate): Likewise.
3655         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3656         <bp-sym.h>.
3657         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3658         (memchr): Do not use BP_SYM in weak_alias.
3659         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3660         (fegetenv): Do not use BP_SYM in versioned symbols.
3661         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3662         (fesetenv): Do not use BP_SYM in versioned symbols.
3663         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3664         (feupdateenv): Do not use BP_SYM in versioned symbols.
3665         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3666         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3667         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3668         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3669         (open64): Do not use BP_SYM in weak_alias.
3670         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3671         (fegetenv): Do not use BP_SYM in versioned symbols.
3672         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3673         (fesetenv): Do not use BP_SYM in versioned symbols.
3674         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3675         (feupdateenv): Do not use BP_SYM in versioned symbols.
3676         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3677         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3678         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3679         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3680         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3681         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3682         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3683         <bp-sym.h>.
3684         (__libc_start_main): Do not use BP_SYM.
3685
3686 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3687
3688         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3689         redundant return line.
3690         (norm): Likewise.
3691         (denorm): Likewise.
3692         (dbl_mp): Likewise.
3693         (sub_magnitudes): Likewise.
3694         (__add): Likewise.
3695         (__sub): Likewise.
3696         (__mul): Likewise.
3697         (__inv): Likewise.
3698         (__dvd): Likewise.
3699         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3700         (norm): Likewise.
3701         (denorm): Likewise.
3702         (dbl_mp): Likewise.
3703         (sub_magnitudes): Likewise.
3704         (__add): Likewise.
3705         (__sub): Likewise.
3706         (__mul): Likewise.
3707         (__inv): Likewise.
3708         (__dvd): Likewise.
3709
3710         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3711         instead of __mul.
3712         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3713         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3714         (cc32): Likewise.
3715
3716         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3717         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3718         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3719         of __mul for squares.
3720         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3721         function
3722         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3723         Likewise.
3724         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3725         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3726
3727 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3728
3729         [BZ #13550]
3730         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3731         code.
3732         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3733         prototype or function definition.  Rename ubp_* variables and
3734         parameters.  Remove argv definitions conditional on
3735         [__BOUNDED_POINTERS__].
3736         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3737         * elf/dl-runtime.c (_dl_fixup): Likewise.
3738         * include/set-hooks.h (RUN_HOOK): Likewise.
3739         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3740         definition.
3741         * string/strcpy.c (strcpy): Do not use __unbounded.
3742         * sysdeps/generic/frame.h (struct layout): Likewise.
3743         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3744         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3745         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3746         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3747         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3748         (__backtrace): Likewise.
3749         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3750         use __ptrvalue.
3751         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3752         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3753         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3754         Likewise.
3755         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3756         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3757         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3758         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3759         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3760         Do not use __unbounded.
3761         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3762         Rename __unboundedrlimits parameter to rlimits in prototype.
3763         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3764         Do not use __unbounded.
3765         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3766         not use __ptrvalue.
3767         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3768         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3769         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3770         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3771         __ptrvalue or __unbounded.
3772         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3773         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3774         use __unbounded.
3775         (__new_msgctl): Do not use __ptrvalue.
3776         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3777         __unbounded.
3778         (__libc_msgrcv): Do not use __ptrvalue.
3779         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3780         startup_info): Do not use __unbounded.
3781         (__libc_start_main): Likewise.  Rename ubp_* variables and
3782         parameters.  Remove argv definitions conditional on
3783         [__BOUNDED_POINTERS__].
3784         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3785         __ptrvalue.
3786         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3787         use __unbounded.
3788         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3789         or __ptrvalue.
3790         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3791         use __unbounded.
3792         (__new_shmctl): Do not use __ptrvalue.
3793         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3794         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3795         Likewise.
3796         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3797         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3798         (__libc_sigaction): Likewise.
3799         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3800         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3801         Likewise.
3802         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3803
3804 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3805
3806         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3807
3808         * string/mempcpy.c: Implement by calling memcpy.
3809
3810 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3811
3812         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3813
3814         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3815         evaluation.
3816
3817         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3818         values in the mantissa.
3819
3820         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3821         minimize writes to Z.
3822         (sub_magnitudes): Simplify code a bit.
3823
3824 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3825
3826         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3827         from the message.  The linker prefixes all warnings with that already.
3828
3829 2013-02-12  Andreas Schwab  <schwab@suse.de>
3830
3831         [BZ #15078]
3832         * posix/regexec.c (extend_buffers): Add parameter min_len.
3833         (check_matching): Pass minimum needed length.
3834         (clean_state_log_if_needed): Likewise.
3835         (get_subexp): Likewise.
3836         * posix/Makefile (tests): Add bug-regex34.
3837         (bug-regex34-ENV): Define.
3838         * posix/bug-regex34.c: New file.
3839
3840         [BZ #11561]
3841         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3842         elements compare against the byte sequence of it, not its name.
3843         * posix/Makefile (tests): Add bug-regex35.
3844         (bug-regex35-ENV): Define.
3845         * posix/bug-regex35.c: New file.
3846
3847 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3848
3849         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3850         comment.
3851         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3852         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3853         (CHECK_EOL): Add undef.
3854
3855 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3856
3857         * bits/stdlib-bsearch.h: New file.
3858         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3859         * stdlib/stdlib.h: Likewise.
3860
3861 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3862
3863         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3864         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3865         declaration.
3866         * manual/search.texi (Array Search Function): Add missing const in
3867         lfind prototype.
3868         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3869         declaration to use rlim_t.
3870         (Basic Scheduling Functions): Remove erroneous const from
3871         sched_getparam prototype.  Remove erroneous * from
3872         sched_get_priority_max and sched_get_priority_min prototypes.
3873         (Resource Usage): Fix summary @comment on vtimes to refer to
3874         sys/vtimes.h rather than vtimes.h.
3875         Add missing *s in vtimes prototype.
3876         (Limits on Resources): Fix ulimit prototype to return long int.
3877         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3878         prototypes to use long int rather than double.
3879         (BSD Random): Fix initstate and setstate to use char *, not void *.
3880         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3881         prototype to make second argument 'struct aiocb64 *const[]'.
3882         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3883         (Status of AIO Operations): Remove erroneous const in aio_return and
3884         aio_return64 prototypes.
3885         (Synchronizing I/O): Fix sync prototype to return void.
3886         * manual/startup.texi (Suboptions): Remove an erroneous const in
3887         getsubopt prototype.
3888         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3889         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3890         use size_t rather than int.
3891         (Scanning All Users): Likewise for getpwent_r.
3892         (Setting Groups): Add missing const to setgroups prototype.
3893         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3894         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3895         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3896         'const void *' rather than 'const char *'.
3897         (Host Address Functions): Likewise for inet_ntop.
3898         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3899         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3900         ssize_t for return value.
3901         (Sending Data): Likewise for send, sendto, sendmsg.
3902         (Socket Option Functions): Add a missing const in setsockopt prototype.
3903         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3904         use wchar_t for the argument.
3905         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3906         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3907         take no arguments.
3908         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3909         double/float/long double for second argument.
3910         Fix return types of significand, significandf, significandl.
3911         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3912         argument in fchmod prototype.
3913         (File Owner): Use uid_t and gid_t in fchown prototype.
3914         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3915         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3916         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3917         use 'const struct dirent **' as argument types to CMP function pointer
3918         argument.
3919         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3920         (File Times): Fix summary magic @comment for struct utimbuf and utime
3921         to refer to utime.h, not time.h.
3922         * manual/string.texi (Argz Functions): Add missing const in
3923         argz_extract and argz_next prototypes.
3924         (Finding Tokens in a String): Likewise for basename.
3925         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3926         (Copying and Concatenation): Fix typo in wmemmove prototype.
3927         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3928         (Signal Stack): Remove erroneous const in sigstack prototype.
3929         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3930         prototype.
3931         (Simple Calendar Time): Likewise for stime.
3932         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3933         prototype.
3934         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3935         say sys/sysctl.h instead.
3936         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3937         and vsyslog prototypes.
3938
3939 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3940
3941         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3942         Remove.
3943
3944 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3945
3946         * misc/sys/mman.h: Fix typo in mremap comment.
3947
3948 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3949
3950         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3951         the '\0' terminator.
3952
3953 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3954
3955         [BZ #13550]
3956         * debug/segfault.c: Don't include <bp-checks.h>.
3957         * sysdeps/generic/bp-checks.h: Remove file.
3958         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3959         (__GETDENTS): Don't use CHECK_N.
3960         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3961         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3962         (__getgroups): Don't use CHECK_N.
3963         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3964         (setgroups): Don't use CHECK_N.
3965         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3966         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3967         (__libc_msgrcv): Don't use CHECK_N.
3968         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3969         (__libc_msgsnd): Don't use CHECK_N.
3970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3971         <bp-checks.h>.
3972         (__libc_pread): Don't use CHECK_N.
3973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3974         include <bp-checks.h>.
3975         (__libc_pread64): Don't use CHECK_N.
3976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3977         include <bp-checks.h>.
3978         (__libc_pwrite): Don't use CHECK_N.
3979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3980         include <bp-checks.h>.
3981         (__libc_pwrite64): Don't use CHECK_N.
3982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3983         <bp-checks.h>.
3984         (__libc_pread): Don't use CHECK_N.
3985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3986         include <bp-checks.h>.
3987         (__libc_pread64): Don't use CHECK_N.
3988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3989         include <bp-checks.h>.
3990         (__libc_pwrite): Don't use CHECK_N.
3991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3992         include <bp-checks.h>.
3993         (__libc_pwrite64): Don't use CHECK_N.
3994         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3995         (do_pread): Don't use CHECK_N.
3996         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3997         (do_pread64): Don't use CHECK_N.
3998         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3999         (do_pwrite): Don't use CHECK_N.
4000         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4001         (do_pwrite64): Don't use CHECK_N.
4002         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4003         (__libc_readv): Don't use CHECK_N.
4004         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4005         (semop): Don't use CHECK_N.
4006         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4007         <bp-checks.h>.
4008         (semtimedop): Don't use CHECK_N.
4009         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4010         (__libc_pread): Don't use CHECK_N.
4011         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4012         <bp-checks.h>.
4013         (__libc_pread64): Don't use CHECK_N.
4014         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4015         <bp-checks.h>.
4016         (__libc_pwrite): Don't use CHECK_N.
4017         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4018         <bp-checks.h>.
4019         (__libc_pwrite64): Don't use CHECK_N.
4020         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4021         <bp-checks.h>.
4022         (__libc_msgrcv): Don't use CHECK_N.
4023         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4024         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4025         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4026         (__libc_writev): Don't use CHECK_N.
4027
4028 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4029
4030         * string/strcpy.c: Removed unused variable.
4031
4032         * Makeconfig (+sysdep-includes): Define with := rather than =.
4033         Use an existing include/ subdir of each sysdeps dir before it.
4034
4035 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4036
4037         * nscd/connection.c (register_traced_file): Comment function.
4038         [HAVE_INOTIFY] (union __inev): Define.
4039         [HAVE_INOTIFY] (inotify_check_files): New function.
4040         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4041         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4042         clear_db_cache.
4043         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4044
4045 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4046
4047         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4048         loaded if not already and that a failure is permanent.
4049
4050 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4051
4052         [BZ #15006]
4053         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4054         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4055
4056 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4057
4058         [BZ #13550]
4059         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4060         (CHECK_1_NULL_OK): Likewise.
4061         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4062         (__fxstat): Do not use CHECK_1.
4063         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4064         <bp-checks.h>.
4065         (___fxstat64): Do not use CHECK_1.
4066         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4067         <bp-checks.h>.
4068         (__fxstatat): Do not use CHECK_1.
4069         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4070         <bp-checks.h>.
4071         (__fxstatat64): Do not use CHECK_1.
4072         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4073         <bp-checks.h>.
4074         (__fxstat): Do not use CHECK_1.
4075         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4076         <bp-checks.h>.
4077         (__fxstatat): Do not use CHECK_1.
4078         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4079         <bp-checks.h>.
4080         (__getresgid): Do not use CHECK_1.
4081         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4082         <bp-checks.h>.
4083         (__getresuid): Do not use CHECK_1.
4084         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4085         <bp-checks.h>.
4086         (__lxstat): Do not use CHECK_1.
4087         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4088         <bp-checks.h>.
4089         (__old_msgctl): Do not use CHECK_1.
4090         (__new_msgctl): Likewise.
4091         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4092         <bp-checks.h>.
4093         (__new_setrlimit): Do not use CHECK_1.
4094         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4095         <bp-checks.h>.
4096         (__old_shmctl): Do not use CHECK_1.
4097         (__new_shmctl): Likewise.
4098         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4099         <bp-checks.h>.
4100         (__xstat): Do not use CHECK_1.
4101         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4102         (__lxstat): Do not use CHECK_1.
4103         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4104         <bp-checks.h>.
4105         (___lxstat64): Do not use CHECK_1.
4106         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4107         (__old_msgctl): Do not use CHECK_1.
4108         (__new_msgctl): Likewise.
4109         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4110         <bp-checks.h>.
4111         (__gettimeofday): Do not use CHECK_1.
4112         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4113         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4114         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4115         <bp-checks.h>.
4116         (__gettimeofday): Do not use CHECK_1.
4117         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4118         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4119         (__new_shmctl): Do not use CHECK_1.
4120         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4121         <bp-checks.h>.
4122         (do_sigtimedwait): Do not use CHECK_1.
4123         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4124         <bp-checks.h>.
4125         (do_sigwaitinfo): Do not use CHECK_1.
4126         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4127         <bp-checks.h>.
4128         (msgctl): Do not use CHECK_1.
4129         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4130         <bp-checks.h>.
4131         (shmctl): Do not use CHECK_1.
4132         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4133         (ustat): Do not use CHECK_1.
4134         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4135         <bp-checks.h>.
4136         (__fxstat): Do not use CHECK_1.
4137         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4138         <bp-checks.h>.
4139         (__fxstatat): Do not use CHECK_1.
4140         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4141         <bp-checks.h>.
4142         (__lxstat): Do not use CHECK_1.
4143         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4144         <bp-checks.h>.
4145         (__xstat): Do not use CHECK_1.
4146         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4147         (__xstat): Do not use CHECK_1.
4148         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4149         (___xstat64): Do not use CHECK_1.
4150
4151         [BZ #13550]
4152         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4153         definitions.
4154         (CHECK_BOUNDS_HIGH): Likewise.
4155         * string/strcpy.c: Do not include <bp-checks.h>.
4156         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4157
4158 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4159
4160         * nscd/nscd-client.h (__nscd_drop_map_ref):
4161         Add __attribute__ ((unused)).
4162         * nis/nss-nisplus.h (niserr2nss): Likewise.
4163
4164         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4165         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4166
4167         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4168         Remove inline keyword.
4169         * include/rounding-mode.h (round_away): Likewise.
4170         * libio/wfileops.c (adjust_wide_data): Likewise.
4171         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4172         (__m128i_strloadu_tolower): Likewise.
4173         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4174         (__m128i_strloadu_tolower): Likewise.
4175         * time/mktime.c (ydhms_diff): Likewise.
4176         * locale/elem-hash.h (elem_hash): Likewise.
4177         * locale/setlocale.c (setdata): Likewise.
4178         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4179         (re_string_wchar_at): Likewise.
4180         (bitset_not, bitset_merge, bitset_mask): Likewise.
4181         [!(__GNUC__ > 3)] (inline): Remove macro.
4182         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4183         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4184         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4185         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4186         * string/memcmp.c (memcmp_bytes): Likewise.
4187         * locale/programs/locarchive.c (compute_hashval): Likewise.
4188         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4189         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4190         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4191         * nss/getent.c (print_rpc, print_protocols): Likewise.
4192         (print_passwd, print_group, print_aliases): Likewise.
4193         * nis/nss-nisplus.h (niserr2nss): Likewise.
4194         * nscd/connections.c (restart_p): Likewise.
4195         Change return type to bool.
4196
4197 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4198
4199         * Makeconfig (all-Depend-files): Add existing
4200         $(sorted-subdirs:=/Depend) files.
4201         (all-subdirs): Remove nss.
4202         * sysdeps/unix/inet/Subdirs: Add it here instead.
4203         * hesiod/Depend: New file.
4204
4205         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4206         instead of calling alloca.
4207
4208         * io/lseek.c (__lseek): Rename to __libc_lseek.
4209         Define __lseek as an alias.
4210
4211         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4212
4213 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4214
4215         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4216         else clause and remove check for non-standard endianness.
4217
4218 2013-02-04  David S. Miller  <davem@davemloft.net>
4219
4220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4221
4222 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4223
4224         [BZ #13550]
4225         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4226         (__ubp_memchr): Remove prototype.
4227         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4228         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4229         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4230         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4231         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4232         Remove alias.
4233         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4234         (__ubp_memchr): Likewise.
4235         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4236         (__ubp_memchr): Likewise.
4237         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4238         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4239         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4240         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4241         CHECK_STRING.
4242         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4243         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4244         (__getcwd): Do not use CHECK_STRING.
4245         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4246         <bp-checks.h>.
4247         (__real_chown): Do not use CHECK_STRING.
4248         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4249         <bp-checks.h>.
4250         (fchownat): Do not use CHECK_STRING.
4251         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4252         CHECK_STRING.
4253         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4254         <bp-checks.h>.
4255         (__lchown): Do not use CHECK_STRING.
4256         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4257         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4258         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4259         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4261         include <bp-checks.h>.
4262         (truncate64): Do not use CHECK_STRING.
4263         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4264         <bp-checks.h>.
4265         (__real_chown): Do not use CHECK_STRING.
4266         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4267         <bp-checks.h>.
4268         (__lchown): Do not use CHECK_STRING.
4269         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4270         <bp-checks.h>.
4271         (__chown): Do not use CHECK_STRING.
4272         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4273         <bp-checks.h>.
4274         (truncate64): Do not use CHECK_STRING.
4275         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4276         Likewise.
4277         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4278         (__xmknod): Do not use CHECK_STRING.
4279         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4280         <bp-checks.h>.
4281         (__xmknodat): Do not use CHECK_STRING.
4282         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4283         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4284
4285 2013-02-04  Andreas Schwab  <schwab@suse.de>
4286
4287         [BZ #14142]
4288         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4289         * include/netdb.h: Likewise for h_errno.
4290         * elf/tst-stackguard1.c: Include <tls.h>.
4291
4292 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4293
4294         * elf/link.h (struct link_map): Extend the l_addr comment.
4295         * include/link.h (struct link_map): Likewise.
4296
4297 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4298
4299         [BZ #13550]
4300         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4301         (BOUNDED_1): Remove macro.
4302         * debug/backtrace.c: Don't include <bp-checks.h>.
4303         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4304         (__backtrace): Likewise.
4305         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4306         <bp-checks.h>.
4307         (__backtrace): Don't use BOUNDED_1.
4308         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4309         <bp-checks.h>.
4310         (__backtrace): Don't use BOUNDED_1.
4311         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4312         (__backtrace): Don't use BOUNDED_1.
4313         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4314         (shmat): Don't use BOUNDED_N.
4315
4316 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4317
4318         [BZ #13550]
4319         * sysdeps/generic/bp-start.h: Remove file.
4320         * csu/libc-start.c: Don't include <bp-start.h>.
4321         (LIBC_START_MAIN): Set up __environ directly instead of using
4322         INIT_ARGV_and_ENVIRON.
4323         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4324         <bp-start.h>.
4325
4326         [BZ #13550]
4327         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4328         definitions.
4329         (CHECK_FCNTL): Likewise.
4330         (CHECK_N_PAGES): Likewise.
4331
4332         [BZ #13550]
4333         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4334         definitions.
4335         (CHECK_SIGSET_NULL_OK): Likewise.
4336         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4337         <bp-checks.h>.
4338         (sigpending): Don't use CHECK_SIGSET.
4339         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4340         <bp-checks.h>.
4341         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4342         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4343         <bp-checks.h>.
4344         (do_sigsuspend): Don't use CHECK_SIGSET.
4345         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4346         use CHECK_SIGSET.
4347         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4348         (do_sigwait): Don't use CHECK_SIGSET.
4349         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4350         use CHECK_SIGSET.
4351         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4352         include <bp-checks.h>.
4353         (sigpending): Don't use CHECK_SIGSET.
4354         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4355         include <bp-checks.h>.
4356         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4357         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4358         <bp-checks.h>.
4359         (sigpending): Don't use CHECK_SIGSET.
4360         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4361         <bp-checks.h>.
4362         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4363
4364         [BZ #13550]
4365         * sysdeps/generic/bp-semctl.h: Remove file.
4366         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4367         <bp-checks.h> and <bp-semctl.h>.
4368         (__old_semctl): Don't use CHECK_SEMCTL.
4369         (__new_semctl): Likewise.
4370         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4371         and <bp-semctl.h>.
4372         (__old_semctl): Don't use CHECK_SEMCTL.
4373         (__new_semctl): Likewise.
4374         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4375         <bp-checks.h> and <bp-semctl.h>.
4376         (__old_semctl): Don't use CHECK_SEMCTL.
4377         (__new_semctl): Likewise.
4378         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4379         <bp-checks.h> and <bp-semctl.h>.
4380         (semctl): Don't use CHECK_SEMCTL.
4381
4382         [BZ #13550]
4383         * Makerules (elide-bp-thunks): Remove variable.
4384         (elide-routines.oS): Don't use $(elide-bp-thunks).
4385         (elide-routines.os): Likewise.
4386         (elide-routines.o): Likewise.
4387         (elide-routines.op): Likewise.
4388         (elide-routines.og): Likewise.
4389         (objects): Don't use $(bp-thunks).
4390         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4391         include.
4392         (common-generated): Do not add s-proto-bp.d.
4393         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4394         (int): Likewise.
4395         (typ): Likewise.
4396         Do not generate makefile rules for bounded-pointer thunks.
4397         * sysdeps/generic/bp-thunks.h: Remove file.
4398         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4399         * sysdeps/unix/s-proto-bp.S: Likewise.
4400
4401         [BZ #15062]
4402         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4403         parts of result separately when argument is not close to line from
4404         -i to i and one part of argument is small.
4405         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4406         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4407         * math/libm-test.inc (cacos_test): Add more tests.
4408         (casin_test): Likewise.
4409         (casinh_test): Likewise.
4410         * sysdeps/i386/fpu/libm-test-ulps: Update.
4411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4412
4413 2013-01-31  David S. Miller  <davem@davemloft.net>
4414
4415         * po/de.po: Update from translation team.
4416
4417 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4418
4419         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4420
4421 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4422
4423         * configure.in (_AC_PROG_CC_C89): New definition.
4424         * configure: Regenerate.
4425
4426         * configure.in (AC_PROG_CPP): New definition.
4427         * configure: Regenerate.
4428
4429 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4430
4431         * debug/tst-backtrace.h: New file.
4432         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4433         (ret): Remove variable.
4434         (x): Likewise.
4435         (FAIL): Remove macro.
4436         (NO_INLINE): Likewise.
4437         (fn1): Use match function instead of strstr.
4438         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4439         (ret): Remove variable.
4440         (x): Likewise.
4441         (FAIL): Remove macro.
4442         (NO_INLINE): Likewise.
4443         (fn): Use match function instead of strstr.
4444         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4445         (ret): Remove variable.
4446         (x): Likewise.
4447         (FAIL): Remove macro.
4448         (NO_INLINE): Likewise.
4449         (handle_signal): Use match function instead of strstr.
4450         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4451         (ret): Remove variable.
4452         (x): Likewise.
4453         (FAIL): Remove macro.
4454         (NO_INLINE): Likewise.
4455         (handle_signal): Use match function instead of strstr.
4456
4457 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4458
4459         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4460
4461 2013-01-23  David S. Miller  <davem@davemloft.net>
4462
4463         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4464         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4465         argument of CAS if possible.
4466         * sysdeps/sparc/sparc64/bits/atomic.h
4467         (__arch_compare_and_exchange_val_32_acq): Likewise.
4468         (__arch_compare_and_exchange_val_64_acq): Likewise.
4469
4470 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4471
4472         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4473         * sysdeps/posix/ulimit.c: ... this.
4474         Include <limits.h>.
4475         * sysdeps/unix/bsd/ulimit.c: Remove file.
4476
4477 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4478
4479         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4480         (LDFLAGS-tst-array5): Likewise.
4481
4482 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4483
4484         [BZ #15036]
4485         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4486         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4487         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4488         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4489
4490 2013-01-21  David S. Miller  <davem@davemloft.net>
4491
4492         * sysdeps/sparc/backtrace.c: New file.
4493         * sysdeps/sparc/sparc32/backtrace.h: New file.
4494         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4495         * sysdeps/sparc/sparc64/backtrace.h: New file.
4496         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4497         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4498         -funwind-tables.
4499
4500 2013-01-21  Andreas Schwab  <schwab@suse.de>
4501
4502         [BZ #15020]
4503         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4504         closed its stdout.
4505
4506 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4507
4508         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4509         "mpa2.h".
4510         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4511
4512 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4513             Mark Mitchell  <mark@codesourcery.com>
4514             Tom de Vries  <tom@codesourcery.com>
4515             Paul Pluzhnikov  <ppluzhnikov@google.com>
4516
4517         * debug/tst-backtrace2.c: New file.
4518         * debug/tst-backtrace3.c: Likewise.
4519         * debug/tst-backtrace4.c: Likewise.
4520         * debug/tst-backtrace5.c: Likewise.
4521         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4522         (CFLAGS-tst-backtrace3.c): Likewise.
4523         (CFLAGS-tst-backtrace4.c): Likewise.
4524         (CFLAGS-tst-backtrace5.c): Likewise.
4525         (LDFLAGS-tst-backtrace2): Likewise.
4526         (LDFLAGS-tst-backtrace3): Likewise.
4527         (LDFLAGS-tst-backtrace4): Likewise.
4528         (LDFLAGS-tst-backtrace5): Likewise.
4529         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4530         tst-backtrace4 and tst-backtrace5.
4531
4532 2013-01-18  Anton Blanchard  <anton@samba.org>
4533             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4534
4535         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4536         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4537         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4538         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4540         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4541         "+r" and remove output regs list as redundant.  Add explicit inline
4542         asm to specify register of return val to work around compiler codegen
4543         bug.  Remove (int) cast on return value.  Add return type parameter to
4544         use in macro so that this macro does not truncate return value for
4545         64-bit values.
4546         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4547         pass to INTERNAL_VSYSCALL_NCS.
4548         (INLINE_VSYSCALL): Add 'long int' as return type to
4549         INTERNAL_VSYSCALL_NCS macro invocation.
4550         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4551         INTERNAL_VSYSCALL_NCS macro invocation.
4552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4553
4554 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4555
4556         [BZ #14496]
4557         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4558         Fix application of SIMD FP exception mask.
4559
4560         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4561         mp_no from a power of two.
4562         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4563         __mpexp_twomm1.  Use __pow_mp.
4564
4565         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4566         multiplication.
4567
4568 2013-01-17  David S. Miller  <davem@davemloft.net>
4569
4570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4571
4572 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4573
4574         [BZ #15023]
4575         * include/complex.h: Condition contents on [!_COMPLEX_H].
4576         (__kernel_casinhf): New prototype.
4577         (__kernel_casinh): Likewise.
4578         (__kernel_casinhl): Likewise.
4579         * math/Makefile (libm_calls): Add k_casinh.
4580         * math/k_casinh.c: New file.
4581         * math/k_casinhf.c: Likewise.
4582         * math/k_casinhl.c: Likewise.
4583         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4584         finite nonzero arguments.
4585         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4586         finite nonzero arguments.
4587         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4588         finite nonzero arguments.
4589         * math/s_casinh.c: Do not include <float.h>.
4590         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4591         * math/s_casinhf.c: Do not include <float.h>.
4592         (__casinhf): Move code for finite nonzero arguments to
4593         k_casinhf.c.
4594         * math/s_casinhl.c: Do not include <float.h>.
4595         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4596         redefine.
4597         (__casinhl): Move code for finite nonzero arguments to
4598         k_casinhl.c.
4599         * math/libm-test.inc (cacos_test): Add more tests.
4600         * sysdeps/i386/fpu/libm-test-ulps: Update.
4601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4602
4603 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4604
4605         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4606         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4607         [!HAVE_MREMAP]: Remove [defined linux] case.
4608         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4609
4610 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4611
4612         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4613
4614 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4615
4616         * elf/elf.h (R_386_SIZE32): New relocation.
4617         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4618         R_386_SIZE32.
4619         (elf_machine_rela): Likewise.
4620         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4621         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4622
4623 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4624
4625         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4626         (FP_FAST_FMA): Do not define.
4627         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4628         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4629         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4630         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4631         !_SOFT_FLOAT]: Likewise.
4632         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4633         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4634         value.
4635         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4636         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4637         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4638         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4639         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4640         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4641         file.
4642
4643 2013-01-16  Andreas Schwab  <schwab@suse.de>
4644
4645         [BZ #14327]
4646         * include/stdlib.h (__mktemp): Add declaration.
4647         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4648         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4649
4650 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4651
4652         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4653         definitions.
4654         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4655         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4656         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4657         definitions here.
4658         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4659         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4660         definitions.
4661         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4662         and ONE.
4663         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4664         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4665         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4666         definitions.
4667         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4668         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4669         definitions.
4670         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4671
4672         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4673
4674 2013-01-15  David S. Miller  <davem@davemloft.net>
4675
4676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4677         trunc{,f} to libm-sysdep_routes.
4678         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4680         file.
4681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4683         file.
4684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4685         file.
4686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4688         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4689         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4690         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4691         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4692         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4693         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4694
4695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4696         nearbyint{,f} to libm-sysdep_routes.
4697         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4699         New file.
4700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4701         file.
4702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4703         New file.
4704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4705         file.
4706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4708         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4709         file.
4710         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4711         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4712         file.
4713         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4714         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4715         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4716
4717         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4718         libc_feholdexcept and libc_fesetenv.
4719
4720 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4721
4722         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4723
4724 2013-01-14  David S. Miller  <davem@davemloft.net>
4725
4726         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4727         (SPARC_ASM_VIS2_IFUNC): Likewise.
4728         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4730         use of 'siam' instruction.
4731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4732         Likewise.
4733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4734         Likewise.
4735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4736         Likewise.
4737         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4739         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4742         file.
4743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4744         file.
4745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4746         file.
4747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4748         file.
4749         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4750         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4751         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4752         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4754         new VIS2 routines.
4755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4758         Likewise.
4759         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4760         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4761         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4762         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4764         routines to libm-sysdep_routines.
4765         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4766
4767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4768         fdim/fdimf to libm-sysdep_routines.
4769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4770         file.
4771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4773         file.
4774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4777         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4778         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4779         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4780         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4781
4782 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4783
4784         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4785         to optimize copies.
4786
4787         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4788         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4789         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4790
4791         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4792         local variable MPTWO.
4793         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4794         Likewise.
4795
4796 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4797
4798         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4799         GLOB_NOESCAPE.
4800
4801 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4802
4803         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4804
4805 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4806
4807         * manual/pattern.texi (glob_t): Document gl_flags.
4808         (glob64_t): Likewise.
4809
4810 2013-01-11  David S. Miller  <davem@davemloft.net>
4811
4812         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4813         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4814         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4815         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4816         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4817         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4818         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4819         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4820         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4821         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4822         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4823         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4824         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4825
4826         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4827         sparc V9 rather than using V8 code.
4828         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4829         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4830
4831         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4832         Move to...
4833         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4834         Here.
4835
4836 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4837
4838         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4839         not in the main loop.
4840         * configure: Regenerated.
4841
4842 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4843
4844         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4845         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4846         to just #else.
4847         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4848         [!__GLIBC_HAVE_LONG_LONG] case.
4849         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4850         condition to just #else.
4851         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4852         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4853         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4854         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4855         unconditional.
4856         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4857         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4858         #elif condition to just #else.
4859         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4860         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4861         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4862         #elif condition to just #else.
4863
4864 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4865
4866         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4867         (EF_MIPS_ARCH_64): Fix value.
4868         (EF_MIPS_ARCH_32R2): New.
4869         (EF_MIPS_ARCH_64R2): New.
4870
4871 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4872
4873         * Makeconfig (+link-pie-before-libc): New.
4874         (+link-pie-after-libc): Likewise.
4875         (+link-pie-tests): Likewise.
4876         (+link-pie): Rewritten.
4877         (link-before-libc): Remove $(config-LDFLAGS).
4878         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4879         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4880         (config-LDFLAGS): Renamed to ...
4881         (rtld-LDFLAGS): This.
4882         (rtld-tests-LDFLAGS): New macro.
4883         (link-libc-rpath-link): Likewise.
4884         (link-libc-tests-rpath-link): Likewise.
4885         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4886         (link-libc): Prepand $(link-libc-rpath-link).
4887         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4888         (test-program-prefix): New macro.
4889         (test-via-rtld-prefix): Likewise.
4890         (test-program-cmd): Likewise.
4891         (host-test-program-cmd): Likewise.
4892         * Makefile ($(common-objpfx)testrun.sh): Replace
4893         $(run-program-prefix) with $(test-program-prefix).
4894         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4895         $(rtld-LDFLAGS).
4896         ($(common-objpfx)shlib.lds): Likewise.
4897         (build-module-helper): Likewise.
4898         ($(common-objpfx)format.lds): Likewise.
4899         * Rules (binaries-pie-tests): New.
4900         (binaries-pie-notests): Likewise.
4901         (binaries-pie): Rewritten.
4902         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4903         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4904         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4905         (make-test-out): Replace $(host-built-program-cmd) with
4906         $(host-test-program-cmd).
4907         * config.make.in (build-hardcoded-path-in-tests): New variable.
4908         * configure.in (--enable-hardcoded-path-in-tests): New configure
4909         option.
4910         (hardcoded_path_in_tests): New AC_SUBST.
4911         * configure: Regenerated.
4912         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4913         $(built-program-cmd) with $(test-program-cmd).
4914         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4915         (test_program_cmd): This.
4916         * elf/Makefile ($(objpfx)order.out): Run test with
4917         $(test-program-prefix).
4918         ($(objpfx)order2.out): Likewise.
4919         ($(objpfx)tst-initorder.out): Likewise.
4920         ($(objpfx)tst-initorder2.out): Likewise.
4921         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4922         $(test-program-cmd).
4923         ($(objpfx)tst-array1-static.out): Likewise.
4924         ($(objpfx)tst-array2.out): Likewise.
4925         ($(objpfx)tst-array3.out): Likewise.
4926         ($(objpfx)tst-array4.out): Likewise.
4927         ($(objpfx)tst-array5.out): Likewise.
4928         ($(objpfx)tst-array5-static.out): Likewise.
4929         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4930         $(test-program-cmd).
4931         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4932         $(run-program-prefix) with $(test-program-prefix).
4933         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4934         (test_program_prefix): This.
4935         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4936         $(run-program-prefix) with $(test-program-prefix).
4937         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4938         (test_program_prefix): This.
4939         * iconvdata/tst-tables.sh: Likewise.
4940         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4941         $(run-program-prefix) with $(test-program-prefix).
4942         ($(objpfx)tst-translit.out): Likewise.
4943         ($(objpfx)tst-gettext2.out): Likewise.
4944         ($(objpfx)tst-gettext4.out): Likewise.
4945         ($(objpfx)tst-gettext6.out): Likewise.
4946         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4947         (test_program_prefix): This.
4948         * intl/tst-gettext2.sh: Likewise.
4949         * intl/tst-gettext4.sh  Likewise.
4950         * intl/tst-gettext6.sh: Likewise.
4951         * intl/tst-translit.sh: Likewise.
4952         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4953         with $(test-program-cmd).
4954         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4955         $(run-program-prefix) with $(test-program-prefix).
4956         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4957         (test_program_prefix): This.
4958         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4959         $(run-program-prefix) with $(test-program-prefix).
4960         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4961         (test_program_prefix): This.
4962         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4963         * posix/Makefile ($(objpfx)globtest.out): Replace
4964         $(run-via-rtld-prefix) and $(test-wrapper) with
4965         $(test-program-prefix) and $(test-via-rtld-prefix).
4966         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4967         $(test-program-prefix).
4968         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4969         $(host-test-program-cmd).
4970         (tst-spawn-ARGS): Likewise.
4971         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4972         $(test-program-prefix).
4973         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4974         (test_via_rtld_prefix): This.
4975         (test_wrapper): Renamed to ...
4976         (test_program_prefix): This.
4977         (run_program_prefix): Replaced by test_program_prefix.
4978         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4979         (test_program_prefix): This.
4980         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4981         with $(host-test-program-cmd).
4982         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4983         $(run-program-prefix) with $(test-program-prefix).
4984         ($(objpfx)tst-printf.out): Likewise.
4985         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4986         $(test-program-cmd).
4987         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4988         (test_program_prefix): This.
4989         * stdio-common/tst-unbputc.sh: Likewise.
4990         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4991         $(run-program-prefix) with $(test-program-prefix).
4992         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4993         (test_program_prefix): This.
4994         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4995         $(built-program-cmd) with $(test-program-cmd).
4996
4997 2013-01-11  Andreas Jaeger  <aj@suse.de>
4998
4999         [BZ #15003]
5000         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5001         value. Sync with Linux 3.7.
5002
5003 2013-01-10  David S. Miller  <davem@davemloft.net>
5004
5005         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5006         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5007         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5008
5009 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5010
5011         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5012         never set.
5013         * configure: Regenerated.
5014
5015 2013-01-10  David S. Miller  <davem@davemloft.net>
5016
5017         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5018         sparc V9 rather than using V8 code.
5019         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5020         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5021
5022 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5023
5024         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5025         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5026         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5027         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5028         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5029         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5030         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5031         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5032         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5033         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5034         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5035         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5036         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5037         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5038         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5039         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5040         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5041         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5042         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5043         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5044         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5045         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5046         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5047         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5048         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5049         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5050         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5051
5052 2013-01-10  David S. Miller  <davem@davemloft.net>
5053
5054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5055
5056 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         * posix/Makefile (tests-static): New variable.
5059         (tests): Add $(tests-static).
5060         (tst-exec-static-ARGS): New variable.
5061         (tst-spawn-static-ARGS): Likewise.
5062         * posix/tst-exec-static.c: New file.
5063         * posix/tst-spawn-static.c: Likewise.
5064         * posix/tst-exec.c: Support run directly.
5065         * posix/tst-spawn.c: Likewise.
5066
5067 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5068
5069         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5070         long.
5071         * math/bits/mathcalls.h (llrint): Likewise.
5072         (llround): Likewise.
5073         * stdlib/stdlib.h (struct drand48_data): Likewise.
5074         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5075         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5076         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5077         Likewise.
5078         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5079         Likewise.
5080         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5081         (elf_greg_t): Likewise.
5082         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5083         (__jmp_buf): Likewise.
5084         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5085         definitions.
5086         (llrint): Likewise, for all definitions.
5087         (llrintl): Likewise.
5088
5089         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5090         Remove [__GNUC__] condition.
5091         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5092         condition to just [__USE_ISOC99].
5093         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5094
5095 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5096
5097         [BZ #14200]
5098         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5099         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5100         defined.
5101         (_POSIX_V6_ILP32_OFF32): Likewise.
5102         (_XBS5_ILP32_OFF32): Likewise.
5103         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5104         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5105
5106 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5107
5108         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5109
5110         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5111         doubles __mpexp_twomm1.  Adjust usage.
5112         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5113         Remove.
5114
5115 2013-01-10  Andreas Schwab  <schwab@suse.de>
5116
5117         [BZ #14964]
5118         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5119         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5120
5121 2013-01-09  David S. Miller  <davem@davemloft.net>
5122
5123         [BZ #15003]
5124         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5125         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5126         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5127         TCP_FASTOPEN): Define.
5128         (tcp_repair_opt): New structure.
5129         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5130         enum values.
5131         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5132         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5133         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5134         (tcp_cookie_transactions): New structure.
5135
5136 2013-01-09  Anton Blanchard  <anton@samba.org>
5137
5138         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5139         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5140         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5141         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5142
5143 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5144
5145         * include/features.h (__USE_ANSI): Remove.
5146
5147 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5148
5149         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5150
5151         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5152
5153 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5154
5155         * sysdeps/s390/fpu/libm-test-ulps: Update.
5156
5157         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5158
5159         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5160         (__acr): Likewise.
5161         (__cpy): Likewise.
5162         (norm): Likewise.
5163         (denorm): Likewise.
5164         (__mp_dbl): Likewise.
5165         (__dbl_mp): Likewise.
5166         (add_magnitudes): Likewise.
5167         (sub_magnitudes): Likewise.
5168         (__add): Likewise.
5169         (__sub): Likewise.
5170         (__mul): Likewise.
5171         (__inv): Likewise.
5172         (__dvd): Likewise.
5173         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5174         (__acr): Likewise.
5175         (__cpy): Likewise.
5176         (norm): Likewise.
5177         (denorm): Likewise.
5178         (__mp_dbl): Likewise.
5179         (__dbl_mp): Likewise.
5180         (add_magnitudes): Likewise.
5181         (sub_magnitudes): Likewise.
5182         (__add): Likewise.
5183         (__sub): Likewise.
5184         (__mul): Likewise.
5185         (__inv): Likewise.
5186         (__dvd): Likewise.
5187         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5188         (__acr): Likewise.
5189         (__cpy): Likewise.
5190         (norm): Likewise.
5191         (denorm): Likewise.
5192         (__mp_dbl): Likewise.
5193         (__dbl_mp): Likewise.
5194         (add_magnitudes): Likewise.
5195         (sub_magnitudes): Likewise.
5196         (__add): Likewise.
5197         (__sub): Likewise.
5198         (__mul): Likewise.
5199         (__inv): Likewise.
5200         (__dvd): Likewise.
5201
5202 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5203
5204         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5205         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5206         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5207         2 && __USE_EXTERN_INLINES]: Likewise.
5208
5209 2013-01-08  Andreas Jaeger  <aj@suse.de>
5210
5211         [BZ# 14985]
5212         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5213         Remove.
5214         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5215         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5216
5217 2013-01-07  Anton Blanchard  <anton@samba.org>
5218
5219         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5220         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5221         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5222         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5223         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5224         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5225         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5226         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5227         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5228         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5229         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5230         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5231         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5232         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5233         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5234         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5235         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5236         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5237         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5238         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5239         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5240         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5241         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5242         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5243         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5244         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5245         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5246         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5247         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5248         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5249         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5250         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5251         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5252         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5253         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5254         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5255         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5256         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5257         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5258         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5259         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5260         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5261         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5262
5263 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5264
5265         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5266         (__MALLOC_PMT): Likewise.
5267         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5268         [__GNUC__], only on [_LIBC].
5269         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5270         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5271         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5272         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5273         forward declaration.
5274         (realloc_hook_ini): Likewise.
5275         (memalign_hook_ini): Likewise.
5276         (__libc_memalign): Do not use __MALLOC_PMT in variable
5277         declaration.
5278         (__libc_valloc): Likewise.
5279         (__libc_pvalloc): Likewise.
5280         (__libc_calloc): Likewise.
5281         (__posix_memalign): Likewise.
5282
5283         [BZ #14996]
5284         * math/s_casinh.c: Include <float.h>.
5285         (__casinh): Do not do computation with squaring and square root
5286         for large arguments.
5287         * math/s_casinhf.c: Include <float.h>.
5288         (__casinhf): Do not do computation with squaring and square root
5289         for large arguments.
5290         * math/s_casinhl.c: Include <float.h>.
5291         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5292         (__casinhl): Do not do computation with squaring and square root
5293         for large arguments.
5294         * math/libm-test.inc (casin_test): Add more tests.
5295         (casinh_test): Likewise.
5296         * sysdeps/i386/fpu/libm-test-ulps: Update.
5297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5298
5299 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5300
5301         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5302         (__x86_64_raw_data_cache_size): Likewise.
5303         (__x86_64_data_cache_size_half): Likewise.
5304         (__x86_64_raw_data_cache_size_half): Likewise.
5305         (__x86_64_shared_cache_size): Likewise.
5306         (__x86_64_raw_shared_cache_size): Likewise.
5307         (__x86_64_shared_cache_size_half): Likewise.
5308         (__x86_64_raw_shared_cache_size_half): Likewise.
5309         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5310         to ...
5311         (__x86_data_cache_size): This.
5312         (__x86_64_raw_data_cache_size): Renamed to ...
5313         (__x86_raw_data_cache_size): This.
5314         (__x86_64_data_cache_size_half): Renamed to ...
5315         (__x86_data_cache_size_half): This.
5316         (__x86_64_raw_data_cache_size_half): Renamed to ...
5317         (__x86_raw_data_cache_size_half): This.
5318         (__x86_64_shared_cache_size): Renamed to ...
5319         (__x86_shared_cache_size): This.
5320         (__x86_64_raw_shared_cache_size): Renamed to ...
5321         (__x86_raw_shared_cache_size): This.
5322         (__x86_64_shared_cache_size_half): Renamed to ...
5323         (__x86_shared_cache_size_half): This.
5324         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5325         (__x86_raw_shared_cache_size_half): This.
5326         * sysdeps/x86_64/memcpy.S: Updated.
5327         * sysdeps/x86_64/memset.S: Likewise.
5328         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5329         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5330         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5331
5332 2013-01-04  David S. Miller  <davem@davemloft.net>
5333
5334         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5335
5336 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5337
5338         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5339         1 to avoid redefinition warning.
5340         (__USE_GNU): Don't define.
5341         (init_signaling_nan): Protoize.
5342
5343         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5344
5345 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5346
5347         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5348         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5349         (__cpymn): Likewise.
5350         (norm): Remove commented code.
5351         (denorm): Likewise.
5352         (__mp_dbl): Likewise.
5353         (__inv): Likewise.
5354         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5355         (__cpymn): Likewise.
5356         (norm): Remove commented code.
5357         (denorm): Likewise.
5358         (__mp_dbl): Likewise.
5359         (__inv): Likewise.
5360
5361         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5362         mp_no value for 1.0 and 2.0.
5363         (norm): Use RADIXI instead of radixi.d.
5364         (denorm): Likewise.
5365         (__mul): Use 0.0 instead of zero.d.
5366         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5367         mp_no value for 1.0 and 2.0.
5368         (norm): Use RADIXI instead of radixi.d.
5369         (denorm): Likewise.
5370         (__mul): Use 0.0 instead of zero.d.
5371
5372 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5373
5374         [BZ #14994]
5375         * math/s_casinh.c (__casinh): Reduce finite argument to first
5376         quadrant then set signs of results at the end.
5377         * math/s_casinhf.c (__casinhf): Likewise.
5378         * math/s_casinhl.c (__casinhl): Likewise.
5379         * math/libm-test.inc (casin_test): Add more tests.
5380         (casinh_test): Likewise.
5381         * sysdeps/i386/fpu/libm-test-ulps: Update.
5382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5383
5384 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5385
5386         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5387
5388         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5389
5390         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5391         declarations.
5392         (denorm): Likewise.
5393         (__mp_dbl): Likewise.
5394         (__inv): Likewise.
5395
5396         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5397         and adjust the header comment.
5398
5399         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5400         variable name from declaration.
5401
5402 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5403
5404         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5405         Initialize COMMON_CPUID_INDEX_7 element.
5406         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5407         (CPUID_RTM): Likewise.
5408         (HAS_RTM): Likewise.
5409         (COMMON_CPUID_INDEX_7): New enum.
5410
5411 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5412
5413         [BZ #14981]
5414         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5415         size is zero, record memory as freed.
5416
5417 2013-01-03  Andreas Jaeger  <aj@suse.de>
5418
5419         * po/ia.po: Add new Interlingua translation.
5420
5421 2012-01-03  Allan McRae  <allan@archlinux.org>
5422
5423         * locale/programs/localedef.c: Fix description of '--posix' flag.
5424
5425 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5426
5427         * NEWS: Update dates in second copyright notice.
5428         * README: Update copyright dates in example.
5429         * manual/libc.texinfo: Update copyright dates.
5430         * scripts/test-installation.pl: Update copyright date in --version
5431         output.
5432
5433         * hurd/ctty-input.c: Fix copyright notice formatting.
5434         * hurd/ctty-output.c: Likewise.
5435         * hurd/dtable.c: Likewise.
5436         * hurd/hurd-raise.c: Likewise.
5437         * hurd/hurdprio.c: Likewise.
5438         * hurd/msgportdemux.c: Likewise.
5439         * misc/sys/file.h: Likewise.
5440         * misc/sys/ioctl.h: Likewise.
5441         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5442         * sysdeps/mach/hurd/chdir.c: Likewise.
5443         * sysdeps/mach/hurd/fchdir.c: Likewise.
5444         * sysdeps/mach/hurd/rename.c: Likewise.
5445         * sysdeps/mach/hurd/rmdir.c: Likewise.
5446         * sysdeps/mach/hurd/seekdir.c: Likewise.
5447         * sysdeps/mach/hurd/setsid.c: Likewise.
5448         * sysdeps/posix/wait3.c: Likewise.
5449
5450         * All files with FSF copyright notices: Update copyright dates
5451         using scripts/update-copyrights.
5452         * intl/plural.c: Regenerated.
5453         * locale/programs/charmap-kw.h: Likewise.
5454         * locale/programs/locfile-kw.h: Likewise.
5455
5456 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5457
5458         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5459         four values.
5460
5461         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5462         calculation loop and add branch prediction.
5463
5464         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5465         check access beyond bounds of m1np.
5466
5467         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5468         MPTWO.
5469         (__inv): Remove local variable MPTWO to use the global
5470         constant.
5471         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5472         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5473         variable MPTWO.
5474         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5475         MP3HALFS static const.
5476
5477 2013-01-01  David S. Miller  <davem@davemloft.net>
5478
5479         * po/ca.po: Update from translation team.
5480
5481 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5482
5483         * scripts/update-copyrights: New file.
5484         * Makeconfig: Reformat copyright notice.
5485         * ctype/ctype.h: Likewise.
5486         * debug/swprintf_chk.c: Likewise.
5487         * elf/dl-cache.c: Likewise.
5488         * elf/dl-debug.c: Likewise.
5489         * elf/dl-object.c: Likewise.
5490         * grp/initgroups.c: Likewise.
5491         * hurd/Makefile: Likewise.
5492         * hurd/hurd/signal.h: Likewise.
5493         * hurd/hurdfault.c: Likewise.
5494         * hurd/hurdioctl.c: Likewise.
5495         * hurd/hurdlookup.c: Likewise.
5496         * hurd/intr-msg.c: Likewise.
5497         * iconv/gconv_open.c: Likewise.
5498         * libio/swprintf.c: Likewise.
5499         * locale/lc-ctype.c: Likewise.
5500         * locale/nl_langinfo.c: Likewise.
5501         * mach/Machrules: Likewise.
5502         * mach/Makefile: Likewise.
5503         * malloc/obstack.h: Likewise.
5504         * manual/Makefile: Likewise.
5505         * manual/tsort.awk: Likewise.
5506         * misc/bits/stab.def: Likewise.
5507         * nis/nis_print_group_entry.c: Likewise.
5508         * nis/nis_table.c: Likewise.
5509         * nis/nss_compat/compat-pwd.c: Likewise.
5510         * nis/nss_compat/compat-spwd.c: Likewise.
5511         * po/Makefile: Likewise.
5512         * posix/fnmatch.c: Likewise.
5513         * posix/regex.h: Likewise.
5514         * resolv/Makefile: Likewise.
5515         * resolv/nss_dns/dns-network.c: Likewise.
5516         * resolv/res_hconf.c: Likewise.
5517         * scripts/gen-sorted.awk: Likewise.
5518         * soft-fp/soft-fp.h: Likewise.
5519         * stdio-common/printf.h: Likewise.
5520         * stdlib/monetary.h: Likewise.
5521         * stdlib/random.c: Likewise.
5522         * stdlib/random_r.c: Likewise.
5523         * sysdeps/generic/Makefile: Likewise.
5524         * sysdeps/gnu/Makefile: Likewise.
5525         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5526         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5527         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5528         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5529         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5530         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5531         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5532         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5533         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5534         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5535         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5536         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5537         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5538         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5539         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5540         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5541         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5542         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5543         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5544         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5545         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5546         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5547         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5548         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5549         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5550         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5551         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5552         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5553         * sysdeps/mach/hurd/errnos.awk: Likewise.
5554         * sysdeps/mach/hurd/fork.c: Likewise.
5555         * sysdeps/mach/hurd/getcwd.c: Likewise.
5556         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5557         * sysdeps/mach/hurd/mmap.c: Likewise.
5558         * sysdeps/mach/hurd/utimes.c: Likewise.
5559         * sysdeps/mach/hurd/xmknod.c: Likewise.
5560         * sysdeps/posix/profil.c: Likewise.
5561         * sysdeps/posix/readdir_r.c: Likewise.
5562         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5563         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5564         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5565         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5566         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5567         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5568         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5569         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5570         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5571         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5572         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5573         * sysdeps/pthread/lio_listio.c: Likewise.
5574         * sysdeps/sparc/dl-procinfo.h: Likewise.
5575         * sysdeps/unix/i386/sysdep.S: Likewise.
5576         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5577         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5578         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5579         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5581         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5582         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5583         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5584         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5585         * sysdeps/wordsize-32/divdi3.c: Likewise.
5586         * time/sys/time.h: Likewise.
5587         * wcsmbs/Makefile: Likewise.
5588
5589 2013-01-01  David S. Miller  <davem@davemloft.net>
5590
5591         * po/fr.po: Update from translation team.
5592
5593         * catgets/gencat.c: Update copyright year.
5594         * csu/version.c: Likewise.
5595         * debug/catchsegv.sh: Likewise.
5596         * debug/pcprofiledump.c: Likewise.
5597         * debug/xtrace.sh: Likewise.
5598         * elf/ldconfig.c: Likewise.
5599         * elf/ldd.bash.in: Likewise.
5600         * elf/pldd.c: Likewise.
5601         * elf/sotruss.ksh: Likewise.
5602         * elf/sprof.c: Likewise.
5603         * iconv/iconv_prog.c: Likewise.
5604         * iconv/iconvconfig.c: Likewise.
5605         * locale/programs/locale.c: Likewise.
5606         * locale/programs/localedef.c: Likewise.
5607         * login/programs/pt_chown.c: Likewise.
5608         * malloc/memusage.sh: Likewise.
5609         * malloc/memusagestat.c: Likewise.
5610         * malloc/mtrace.pl: Likewise.
5611         * nscd/nscd.c: Likewise.
5612         * nss/getent.c: Likewise.
5613         * nss/makedb.c: Likewise.
5614         * posix/getconf.c: Likewise.
5615
5616 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5617
5618         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5619         numbers.
5620
5621 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5622
5623         * math/bits/mathcalls.h (modf): Use __nonnull.
5624
5625 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5626
5627         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5628         (split): Use macro CN instead of the bare value.
5629         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5630         could be used.
5631         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5632         instead of the bare value.
5633         (power1): Likewise.
5634
5635 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5636
5637         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5638         __ATAN_TWOM.
5639         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5640
5641         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5642         their values.
5643         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5644         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5645         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5646         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5647
5648 2012-12-28  Andreas Jaeger  <aj@suse.de>
5649
5650         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5651         values are from Linux 3.7.
5652
5653         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5654         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5655
5656 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5657
5658         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5659         TRUE case.
5660
5661         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5662         (norm): Likewise.
5663         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5664         variables with preprocessor constants.
5665         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5666         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5667         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5668
5669 2012-12-27  Bruno Haible  <bruno@clisp.org>
5670
5671         [BZ #14317]
5672         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5673         only if needed.
5674
5675 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5676
5677         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5678         and use variable directly.
5679         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5680
5681         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5682         MPONE.
5683         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5684         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5685         variable MPONE.
5686         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5687         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5688         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5689         include directive.  Remove local variable MPONE.
5690         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5691         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5692         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5693
5694 2012-12-25  David S. Miller  <davem@davemloft.net>
5695
5696         * version.h (RELEASE): Set to "development".
5697         (VERSION): Set to "2.17.90".
5698         * NEWS: Add 2.18 section.
5699
5700 2012-12-21  David S. Miller  <davem@davemloft.net>
5701
5702         * po/hr.po: Update from translation team.
5703
5704 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5705
5706         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5707
5708 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5709
5710         * NEWS:  Mention new memcpy for MIPS.
5711
5712 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5713
5714         * manual/contrib.texi (Contributors): Spelling correction.
5715
5716 2012-12-15  David S. Miller  <davem@davemloft.net>
5717
5718         * po/ru.po: Update from translation team.
5719
5720 2012-12-13  David S. Miller  <davem@davemloft.net>
5721
5722         * NEWS: Mention IFUNC testsuite enhancements.
5723
5724         * po/pl.po: Update from translation team.
5725         * po/bg.po: Likewise.
5726
5727         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5728         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5729
5730 2012-12-11  David S. Miller  <davem@davemloft.net>
5731
5732         * po/sv.po: Update from translation team.
5733
5734         * po/vi.po: Update from translation team.
5735
5736         * po/cs.po: Update from translation team.
5737
5738         * po/de.po: Update from translation team.
5739         * po/eo.po: Likewise.
5740         * po/nl.po: Likewise.
5741
5742 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5743
5744         [BZ #14246]
5745         * manual/argp.texi (Argp Helper Functions): Move node to follow
5746         Argp Parsing State.
5747
5748         [BZ #14872]
5749         * manual/conf.texi (Limits on File System Capacity): Mention if
5750         terminating null is included in the max size.
5751
5752 2012-12-10  Andreas Jaeger  <aj@suse.de>
5753
5754         * po/cs.po: Update from translation team.
5755
5756 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5757
5758         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5759         void pointer and cast to uintptr_t.
5760         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5761         path.
5762         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5763         * sysdeps/s390/s390-64/memset.S: Likewise.
5764
5765 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5766
5767         [BZ #14833]
5768         * menual/message.texi (Message Translation): Fix typos.
5769         (Helper programs for gettext): Likewise.
5770
5771 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5772
5773         [BZ #14898]
5774         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5775         Change to -1.
5776
5777 2012-12-07  David S. Miller  <davem@davemloft.net>
5778
5779         * po/libc.pot: Update.
5780
5781 2012-12-07  Richard Henderson  <rth@redhat.com>
5782
5783         [BZ #10114]
5784         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5785         normal/normal case to before the switch.
5786         (_FP_DIV): Likewise.
5787
5788 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5789             Mike Frysinger  <vapier@gentoo.org>
5790
5791         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5792         check for __NR_fadvise64_64.
5793
5794 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5795
5796         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5797         0, not just to plain "0" as a statement.
5798         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5799         with cw.
5800
5801 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5802
5803         * NEWS: Use sourceware.org in Bugzilla URL.
5804
5805 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5806
5807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5808         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5809
5810         * stdio-common/tst-put-error.c (do_test): Add newline to the
5811         padded test to ensure flush.
5812
5813 2012-12-05  Jeff Law  <law@redhat.com>
5814
5815         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5816
5817 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5818
5819         * README: Don't refer to ports add-on as distributed separately.
5820         Mention AArch64 in list of systems supported in the ports add-on.
5821
5822         * LICENSES: Add more non-FSF copyright and license notices.
5823
5824         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5825         ((unused)).
5826
5827         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5828
5829         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5830         10000 as width of padded output.
5831
5832 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5833
5834         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5835
5836         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5837         variable LX with __attribute__ ((unused)).
5838         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5839         Likewise.
5840         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5841         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5842         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5843         with __attribute__ ((unused)).
5844
5845 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5846
5847         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5848
5849 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5850
5851         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5852         (CFLAGS-nldbl-acos.c): New variable.
5853         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5854         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5855         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5856         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5857         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5858         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5859         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5860         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5861         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5862         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5863         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5864         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5865         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5866         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5867         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5868         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5869         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5870         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5871         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5872         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5873         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5874         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5875         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5876         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5877         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5878         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5879         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5880         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5881         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5882         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5883         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5884         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5885         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5886         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5887         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5888         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5889         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5890         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5891         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5892         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5893         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5894         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5895         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5896         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5897         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5898         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5899         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5900         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5901         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5902         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5903         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5904         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5905         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5906         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5907         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5908         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5909         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5910         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5911         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5912         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5913         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5914         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5915         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5916         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5917         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5918         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5919         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5920         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5921         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5922         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5923         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5924         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5925         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5926         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5927         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5928         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5929         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5930         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5931         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5932         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5933         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5934         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5935         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5936         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5937         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5938         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5939         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5940         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5941         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5942         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5943         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5944         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5945         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5946         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5947         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5948         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5949         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5950
5951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5952         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5953
5954         [BZ #14914]
5955         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5956         whole low double instead of just low 47 bits when splitting values
5957         into two parts.
5958
5959 2012-12-03  Allan McRae  <allan@archlinux.org>
5960
5961         * manual/stdio.texi (Predefined Printf Handlers): Remove
5962         @hsep and @vsep usage.
5963
5964 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5965
5966         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5967         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5968
5969 2012-12-03  Jeff Law  <law@redhat.com>
5970
5971         * time/sys/time.h (settimeofday): Do not mark TV argument
5972         as __nonnull.
5973
5974 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5975
5976         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5977         when currently writing and seek to current position when not.
5978         * libio/Makefile (tests): Remove bug-fclose1.
5979         * libio/bug-fclose1.c: Delete.
5980
5981 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5982
5983         * manual/arith.texi (feenableexcept): Fix typo.
5984         (fedisableexcept): Likewise.
5985
5986 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5987
5988         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5989         second, differently-typed declaration, rather than a cast.
5990
5991 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5992
5993         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5994         * include/rpc/svc.h: ... here.
5995
5996 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5997
5998         [BZ #13013]
5999         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6000         depending n and resplen2 to catch cases where answer
6001         equals answerp2.
6002
6003 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6004
6005         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6006         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6007
6008 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6009
6010         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6011
6012 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6013
6014         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6015
6016 2012-11-28  Jeff Law  <law@redhat.com>
6017
6018         [BZ #13761]
6019         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6020         dataset_temporary.  Track alloca usage into alloca_used.
6021         If dataset is large allocate and release it via malloc/free.
6022
6023 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6024
6025         [BZ #14197]
6026         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6027
6028 2012-11-28  David S. Miller  <davem@davemloft.net>
6029
6030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6031
6032 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6033
6034         [BZ #14803]
6035         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6036         of pi/2 rounded to nearest to 64 bits.
6037         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6038         nearest to 64 bits.
6039         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6040         bits.
6041
6042 2012-11-28  Jeff Law <law@redhat.com>
6043             Martin Osvald <mosvald@redhat.com>
6044
6045         [BZ #14889]
6046         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6047         * sunrpc/svc.c: Include time.h.
6048         (__svc_accept_failed): New function.
6049         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6050         any reason other than EINTR, call __svc_accept_failed.
6051         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6052         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6053
6054 2012-11-28  Andreas Schwab  <schwab@suse.de>
6055
6056         * scripts/abilist.awk: Also handle indirect functions in .opd
6057         section.
6058
6059 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6060
6061         [BZ #13881]
6062         * sysdeps/x86/fpu/powl_helper.c: New file.
6063         * sysdeps/x86/fpu/Makefile: Likewise.
6064         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6065         (p3): New object.
6066         (__ieee754_powl): Use __powl_helper for finite arguments except
6067         integer exponents below 8.
6068         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6069         (p3): New object.
6070         (__ieee754_powl): Use __powl_helper for finite arguments except
6071         integer exponents below 8.
6072         * math/libm-test.inc (pow_test): Add more tests and enable some
6073         previously disabled tests.
6074         * sysdeps/i386/fpu/libm-test-ulps: Update.
6075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6076
6077 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6078             Carlos O'Donell  <carlos_odonell@mentor.com>
6079
6080         * nss/makedb.c (is_prime): Assert that input is odd and greater
6081         than 4.  Note that fact in a comment too.
6082         (next_prime): Add 4 to input.
6083
6084 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6085
6086         [BZ #11741]
6087         * libio/Makefile (tests): Add test case tst-fwrite-error.
6088         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6089         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6090         * libio/tst-fwrite-error.c: New test case.
6091
6092 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6093
6094         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6095         before casting to void *.
6096         * include/libc-internal.h (__pointer_type): New macro.
6097         (__integer_if_pointer_type_sub): Likewise.
6098         (__integer_if_pointer_type): Likewise.
6099         (cast_to_integer): Likewise.
6100         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6101         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6102         before casting to atomic64_t.
6103         (atomic_exchange_acq): Likewise.
6104         (__arch_exchange_and_add_body): Likewise.
6105         (__arch_add_body): Likewise.
6106         (atomic_add_negative): Likewise.
6107         (atomic_add_zero): Likewise.
6108
6109 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6110
6111         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6112         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6113         (add_fdes): Likewise.
6114         (linear_search_fdes): Likewise.
6115         (binary_search_unencoded_fdes): Likewise.
6116
6117 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6118
6119         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6120
6121 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6122
6123         * configure.in: Autodetect C++ header directories.
6124         * configure: Regenerated.
6125
6126 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6127
6128         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6129
6130 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6131
6132         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6133
6134 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6135
6136         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6137         LDBL_MANT_DIG == 106]: Disable some tests.
6138         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6139         Likewise.
6140         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6141         Likewise.
6142
6143         [BZ #14871]
6144         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6145         input for small inputs.  Return +/- pi/2 for large inputs.
6146         * math/libm-test.inc (atan_test): Add more tests.
6147
6148         * sysdeps/generic/unwind-dw2-fde-glibc.c
6149         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6150         __attribute__ ((unused)).
6151
6152         [BZ #14645]
6153         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6154         x * y if x and y are nonzero and z is zero.
6155
6156         [BZ #14811]
6157         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6158         nonzero exponents with absolute value below 0x1p-117 to +/-
6159         0x1p-117.
6160
6161         [BZ #14869]
6162         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6163         up arguments below 2**-450, not just those below 2**-500.
6164         * math/libm-test.inc (hypot_test): Add another test.
6165
6166         [BZ #14868]
6167         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6168         Return a+b for ratio over 2**120, not 2**60.
6169         * math/libm-test.inc (hypot_test): Add another test.
6170
6171         * math/libm-test.inc (clog_test): Use
6172         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6173         (clog10_test): Likewise.
6174
6175         [BZ #6778]
6176         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6177
6178 2012-11-22  Andreas Schwab  <schwab@suse.de>
6179
6180         * sysdeps/i386/fpu/libm-test-ulps: Update.
6181
6182 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6183
6184         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6185         printf output with newline.
6186
6187 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         [BZ #14865]
6190         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6191         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6192         -z nodlopen, -z initfirst and -z execstack support.
6193         * configure: Regenerated.
6194
6195         * elf/elf.h (DF_1_NODIRECT): New macro.
6196         (DF_1_IGNMULDEF): Likewise.
6197         (DF_1_NOKSYMS): Likewise.
6198         (DF_1_NOHDR): Likewise.
6199         (DF_1_EDITED): Likewise.
6200         (DF_1_NORELOC): Likewise.
6201         (DF_1_SYMINTPOSE): Likewise.
6202         (DF_1_GLOBAUDIT): Likewise.
6203         (DF_1_SINGLETON): Likewise.
6204         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6205         DT_1_SUPPORTED_MASK bits.
6206         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6207
6208 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6209
6210         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6211
6212 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6213
6214         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6215         macro.
6216
6217         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6218         (sendmmsg): Move declarations...
6219         * socket/sys/socket.h: ... here.
6220         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6221         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6222         include it from...
6223         * socket/recvmmsg.c: ... this new file.
6224         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6225         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6226         definition of __sendmmsg hidden.
6227         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6228         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6229         Move ENOSYS stub into and include it from...
6230         * socket/sendmmsg.c: ... this new file.
6231         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6232         (sysdep_routines): Move recvmmsg and sendmmsg...
6233         * socket/Makefile (routines): ... here.
6234         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6235         (GLIBC_PRIVATE): Add __sendmmsg.
6236         * include/sys/socket.h (__sendmmsg): Add declarations.
6237         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6238         sendmmsg.
6239
6240 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6241
6242         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6243         variable I1 with __attribute__ ((unused)).
6244         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6245
6246 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6247
6248         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6249         DUMMY variables with __attribute__ ((unused)).
6250
6251         * bits/byteswap.h: Include <bits/types.h>.
6252         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6253
6254 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6255
6256         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6257         string_t.  Do not manually set errno.
6258         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6259         length with __strnlen.  Make sure to both set errno and return it on
6260         failure.
6261
6262 2012-11-19  David S. Miller  <davem@davemloft.net>
6263
6264         With help from Joseph Myers.
6265         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6266         very large arguments properly.
6267         * math/libm-test.inc (atan_test): New tests.
6268         (atan2_test): New tests.
6269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6270         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6271
6272 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6273
6274         [BZ #14856]
6275         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6276         Define to 3.
6277
6278         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6279         [POSIX] (EADDRNOTAVAIL): Likewise.
6280         [POSIX] (EAFNOSUPPORT): Likewise.
6281         [POSIX] (EALREADY): Likewise.
6282         [POSIX] (ECONNABORTED): Likewise.
6283         [POSIX] (ECONNREFUSED): Likewise.
6284         [POSIX] (ECONNRESET): Likewise.
6285         [POSIX] (EDESTADDRREQ): Likewise.
6286         [POSIX] (EDQUOT): Likewise.
6287         [POSIX] (EHOSTUNREACH): Likewise.
6288         [POSIX] (EIDRM): Likewise.
6289         [POSIX] (EISCONN): Likewise.
6290         [POSIX] (ELOOP): Likewise.
6291         [POSIX] (EMULTIHOP): Likewise.
6292         [POSIX] (ENETDOWN): Likewise.
6293         [POSIX] (ENETUNREACH): Likewise.
6294         [POSIX] (ENOBUFS): Likewise.
6295         [POSIX] (ENODATA): Likewise.
6296         [POSIX] (ENOLINK): Likewise.
6297         [POSIX] (ENOMSG): Likewise.
6298         [POSIX] (ENOPROTOOPT): Likewise.
6299         [POSIX] (ENOSR): Likewise.
6300         [POSIX] (ENOSTR): Likewise.
6301         [POSIX] (ENOTCONN): Likewise.
6302         [POSIX] (ENOTSOCK): Likewise.
6303         [POSIX] (EOPNOTSUPP): Likewise.
6304         [POSIX] (EOVERFLOW): Likewise.
6305         [POSIX] (EPROTO): Likewise.
6306         [POSIX] (EPROTONOSUPPORT): Likewise.
6307         [POSIX] (EPROTOTYPE): Likewise.
6308         [POSIX] (ESTALE): Likewise.
6309         [POSIX] (ETIME): Likewise.
6310         [POSIX] (ETXTBSY): Likewise.
6311         [POSIX] (EWOULDBLOCK): Likewise.
6312         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6313         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6314         [POSIX] (SEEK_CUR): Likewise.
6315         [POSIX] (SEEK_END): Likewise.
6316         [POSIX || UNIX98] (mode_t): Do not require.
6317         [POSIX] (off_t): Likewise.
6318         [POSIX] (pid_t): Likewise.
6319         [POSIX] (sys/stat.h): Do not allow header.
6320         [POSIX] (unistd.h): Likewise.
6321         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6322         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6323         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6324         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6325         require.
6326         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6327         sigevent): Specify elements.
6328         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6329         entry.
6330         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6331         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6332
6333         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6334         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6335         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6336         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6337         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6338         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6339         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6340         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6341         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6342         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6343         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6344         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6345         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6346         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6347         Likewise.
6348         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6349         Likewise.
6350         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6351         Likewise.
6352         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6353         Likewise.
6354         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6355         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6356         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6357         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6358         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6359         Specify lower bound on value.
6360         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6361         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6362         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6363         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6364         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6365         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6366         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6367         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6368         value.
6369         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6370         as optional.
6371         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6372         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6373         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6374         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6375         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6376         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6377         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6378         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6379         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6380         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6381         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6382         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6383         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6384         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6385         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6386         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6387         entry.
6388         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6389         optional.
6390         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6391         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6392         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6393         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6394         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6395         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6396         Likewise.
6397         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6398         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6399         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6400         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6401         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6402         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6403         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6404         as optional.
6405         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6406         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6407         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6408         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6409         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6410         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6411         specify as optional.
6412         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6413         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6414         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6415         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6416         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6417         [XPG3] (NL_LANGMAX): Likewise.
6418         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6419         [POSIX || XPG3] (NL_NMAX): Likewise.
6420         [POSIX || XPG3] (NL_SETMAX): Likewise.
6421         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6422         [XPG3] (NZERO): Likewise.
6423         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6424         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6425         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6426         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6427         (REG_ERANGE): Expect.
6428         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6429         optional-constant.
6430         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6431         Use (void) in prototype.
6432         [POSIX] (*_t): Allow.
6433         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6434         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6435         (WRDE_BADVAL): Expect.
6436
6437         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6438         expect.
6439         [XPG3 || XPG4] (O_RSYNC): Likewise.
6440         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6441         Likewise.
6442         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6443         [XPG3 || XPG4] (sigqueue): Likewise.
6444         [XPG3 || XPG4] (sigtimedwait): Likewise.
6445         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6446         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6447         [XPG3 || XPG4] (vsnprintf): Likewise.
6448         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6449         Likewise.
6450         [XPG3 || XPG4] (blksize_t): Likewise.
6451         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6452         Likewise.
6453         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6454         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6455         [XPG3 || XPG4] (struct itimerspec): Likewise.
6456         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6457         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6458         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6459         [XPG3 || XPG4] (clockid_t): Likewise.
6460         [XPG3 || XPG4] (timer_t): Likewise.
6461         [XPG3 || XPG4] (clock_getres): Likewise.
6462         [XPG3 || XPG4] (clock_gettime): Likewise.
6463         [XPG3 || XPG4] (clock_settime): Likewise.
6464         [XPG3 || XPG4] (nanosleep): Likewise.
6465         [XPG3 || XPG4] (timer_create): Likewise.
6466         [XPG3 || XPG4] (timer_delete): Likewise.
6467         [XPG3 || XPG4] (timer_gettime): Likewise.
6468         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6469         [XPG3 || XPG4] (timer_settime): Likewise.
6470         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6471         [XPG3 || XPG4] (getlogin_r): Likewise.
6472         [XPG3 || XPG4] (pread): Likewise.
6473         [XPG3 || XPG4] (pthread_atfork): Likewise.
6474         [XPG3 || XPG4] (pwrite): Likewise.
6475
6476         [BZ #14835]
6477         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6478         <bits/siginfo.h>.
6479
6480 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6481
6482         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6483         finalizing MALLSTREAM.
6484
6485         * sysdeps/mach/hurd/syncfs.c: New file.
6486
6487 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6488
6489         [BZ #14719]
6490         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6491         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6492         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6493         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6494         (_nss_dns_gethostbyname4_r): Likewise.
6495         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6496         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6497
6498 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6499
6500         [BZ #13763]
6501         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6502
6503 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6504
6505         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6506         * elf/cache.c (print_entry): Print ",AArch64" for
6507         FLAG_AARCH64_LIB64
6508
6509         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6510         * elf/cache.c (print_entry): Print ",hard-float" for
6511         FLAG_ARM_LIBHF.
6512
6513 2012-11-18  David S. Miller  <davem@davemloft.net>
6514
6515         With help from Joseph Myers.
6516         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6517         cutoff to 2**-13.
6518         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6519         cutoff to 2**-25.
6520         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6521         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6522         small.
6523         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6524         * math/libm-test.inc (y0_test): New tests.
6525         (y1_test): New tests.
6526         * sysdeps/i386/fpu/libm-test-ulps: Update.
6527         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6529
6530 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6531
6532         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6533         64-bit targets.
6534         * configure: Regenerated.
6535
6536 2012-11-17  David S. Miller  <davem@davemloft.net>
6537
6538         [BZ #14811]
6539         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6540         nonzero exponents with absolute value below 0x1p-128 to +/-
6541         0x1p-128.
6542
6543 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6544
6545         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6546
6547         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6548
6549         * posix/getconf-speclist.c: New file.
6550         * posix/posix-envs.def: Likewise.
6551         * posix/confstr.c (START_ENV_GROUP): New macro.
6552         (END_ENV_GROUP): Likewise.
6553         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6554         (KNOWN_PRESENT_ENV_STRING): Likewise.
6555         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6556         (UNKNOWN_ENVIRONMENT): Likewise.
6557         (confstr): Include posix-envs.def instead of handling
6558         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6559         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6560         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6561         (END_ENV_GROUP): Likewise.
6562         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6563         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6564         (UNKNOWN_ENVIRONMENT): Likewise.
6565         (__sysconf): Include posix-envs.def instead of handling associated
6566         cases directly here.
6567         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6568         preprocessing getconf-speclist.c rather than running getconf or
6569         generating empty file.
6570
6571 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6572
6573         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6574
6575 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6576
6577         [BZ #14672]
6578         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6579
6580 2012-11-16  David S. Miller  <davem@davemloft.net>
6581
6582         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6583         smaller than LDBL_EPSILON/2.0L, just return xm1.
6584
6585 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6586
6587         * elf/tst-array1.c (init): Set constructor priority to 1000.
6588         (fini): Set destructor priority to 1000.
6589         * elf/tst-array2dep.c: Likewise.
6590
6591 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6592
6593         [BZ #11741]
6594         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6595         (_IO_new_file_xsputn): Also return EOF if none of the input
6596         data was written when overflow failed.
6597         * libio/iopadn.c (_IO_padn): Likewise.
6598         * libio/iowpadn.c (_IO_wpadn): Likewise.
6599         * stdio-common/tst-put-error.c: Add copyright notice.
6600         (do_test): Add case for printing padded string.
6601         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6602         _IO_padn returned error.
6603         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6604         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6605         return EOF.
6606
6607 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6608
6609         * libio/libioP.h: Add comment note that the references to C++
6610         bits are now obsolete.
6611
6612 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6613
6614         * math/libm-test.inc (check_complex): Use asprintf.
6615
6616 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6617
6618         * debug/pcprofiledump.c (print_version): Update copyright year.
6619         * malloc/memusagestat.c (print_version): Likewise.
6620
6621 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6622
6623         [BZ #14831]
6624         * elf/Makefile (tests): Add tst-audit8.
6625         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6626         ($(objpfx)tst-audit8.out): New target.
6627         (tst-audit8-ENV): New variable.
6628         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6629         audit if l_reloc_result is NULL.
6630         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6631         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6632         * elf/tst-audit8.c: New file.
6633
6634 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6635
6636         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6637         * misc/Makefile (CFLAGS-select.c): Define.
6638         * posix/Makefile (CFLAGS-pause.c): Define.
6639
6640 2012-11-13  David S. Miller  <davem@davemloft.net>
6641
6642         * crypt/Makefile: Move test targets after toplevel Rules
6643         inclusion.  Grab any necessary sysdep routines when linking.
6644         * crypt/md5.c (md5_process_block): Remove define, we will always
6645         name it __md5_process_block.
6646         (md5_finish_ctx): Update md5_process_block call.
6647         (md5_stream): Likewise.
6648         (md5_process_bytes): Likewise.
6649         (md5_process_block): Rename to __md5_process_block and move to ...
6650         * crypt/md5-block.c: ... here.
6651         * crypt/sha256.c (sha256_process_block): Move to ...
6652         * crypt/sha256-block.c: ... here.
6653         * crypt/sha512.c (sha512_process_block): Move to ...
6654         * crypt/sha512-block.c: ... here.
6655         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6656         path.
6657         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6658         * sysdeps/sparc/sparc64/multiarch/Makefile
6659         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6660         crypt subdir.
6661         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6662         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6663         multiarch changes.
6664         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6665         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6666         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6667         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6668         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6669         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6670         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6671         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6672         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6673         file.
6674         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6675         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6676         file.
6677         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6678
6679 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6680
6681         * timezone/tzselect.ksh: Update from tzcode git revision
6682         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6683         * timezone/zdump.c: Likewise.
6684         * timezone/zic.c: Likewise.
6685         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6686         in TZVERSION setting, not $(PKGVERSION).
6687         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6688         REPORT_BUGS_TO settings.
6689
6690         [BZ #14838]
6691         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6692         macro.
6693
6694 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6695
6696         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6697         detection to immediately after _FP_ROUND().
6698         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6699         bits are 0.
6700
6701 2012-11-11  David S. Miller  <davem@davemloft.net>
6702
6703         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6704         inttypes.h
6705         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6706         __close rather than their public counterparts.
6707
6708 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6709
6710         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6711         file.
6712         [UNIX98] (sem_timedwait): Do not expect.
6713         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6714         [XPG4 || UNIX98] (sockatmark): Do not expect.
6715         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6716         (clock_getcpuclockid): Do not expect.
6717         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6718         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6719         Do not expect.
6720         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6721         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6722         [UNIX98] (vwscanf): Likewise.
6723         [UNIX98] (vswscanf): Likewise.
6724
6725 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6726
6727         * timezone/version.h: Remove file.
6728         * timezone/README: Do not refer to version.h.
6729         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6730         $(objpfx)version.h.
6731         ($(objpfx)zdump.o): Likewise.
6732         ($(objpfx)version.h): New target.
6733
6734         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6735         2012i.
6736         * timezone/README: Don't mention modification to tzselect.ksh.
6737         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6738         work on unmodified tzselect.ksh.  Substitute version numbers in
6739         tzselect.ksh.
6740
6741         * Makefile (format-me): Remove.
6742         (INSTALL): Adjust indentation.  Use commands directly instead of
6743         using $(format-me).
6744
6745         * aclocal.m4 (ACX_PKGVERSION): New macro.
6746         (ACX_BUGURL): Likewise.
6747         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6748         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6749         (REPORT_BUGS_TO): Likewise.
6750         * configure: Regenerated.
6751         * config.h.in (PKGVERSION): New macro.
6752         (REPORT_BUGS_TO): Likewise.
6753         * config.make.in (PKGVERSION): New variable.
6754         (PKGVERSION_TEXI): Likewise.
6755         (REPORT_BUGS_TO): Likewise.
6756         (REPORT_BUGS_TEXI): Likewise.
6757         * Makefile (format-me): Use -I$(common-objpfx)manual.
6758         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6759         ($(common-objpfx)manual/%): New target.
6760         (manual/%): Remove target.
6761         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6762         (print_version): Use PKGVERSION.
6763         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6764         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6765         and REPORT_BUGS_TO.
6766         ($(objpfx)xtrace): Likewise.
6767         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6768         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6769         (print_version): Use PKGVERSION.
6770         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6771         (do_version): Use PKGVERSION.
6772         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6773         REPORT_BUGS_TO.
6774         (common-ldd-rewrite): Likewise.
6775         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6776         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6777         (print_version): Use PKGVERSION.
6778         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6779         * elf/pldd.c (argp_program_bug_address): Remove variable.
6780         (more_help): New function.
6781         (argp): Use more_help.
6782         (print_version): Use PKGVERSION.
6783         * elf/sln.c (main): Use PKGVERSION.
6784         (usage): Use REPORT_BUGS_TO.
6785         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6786         (top level): Use PKGVERSION.
6787         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6788         (print_version): Use PKGVERSION.
6789         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6790         (print_version): Use PKGVERSION.
6791         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6792         (print_version): Use PKGVERSION.
6793         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6794         (print_version): Use PKGVERSION.
6795         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6796         (print_version): Use PKGVERSION.
6797         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6798         (print_version): Use PKGVERSION.
6799         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6800         and BUGURL.
6801         ($(objpfx)memusage): Likewise.
6802         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6803         (do_version): Use PKGVERSION.
6804         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6805         (print_version): Use PKGVERSION.
6806         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6807         ($PKGVERSION): New variable.
6808         ($REPORT_BUGS_TO): Likewise.
6809         (usage): Use $REPORT_BUGS_TO.
6810         (top level): Use $PKGVERSION.
6811         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6812         ($(objpfx)pkgvers.texi): New rule.
6813         ($(objpfx)stamp-pkgvers): Likewise.
6814         * manual/install.texi: Include pkgvers.texi.
6815         (--with-pkgversion): Document new configure option.
6816         (--with-bugurl): Likewise.
6817         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6818         than necessarily for this particular distribution.  Use
6819         REPORT_BUGS_TO for where to report bugs.
6820         * INSTALL: Regenerated.
6821         * manual/libc.texinfo: Include pkgvers.texi.
6822         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6823         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6824         (print_version): Use PKGVERSION.
6825         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6826         (print_version): Use PKGVERSION.
6827         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6828         (print_version): Use PKGVERSION.
6829         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6830         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6831         macro.
6832         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6833         (print_version): Use PKGVERSION.
6834         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6835         (print_version): Use PKGVERSION.
6836         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6837         and PKGVERSION.
6838
6839         * timezone/checktab.awk: Update from tzcode 2012i.
6840         * timezone/ialloc.c: Likewise.
6841         * timezone/private.h: Likewise.
6842         * timezone/scheck.c: Likewise.
6843         * timezone/tzfile.h: Likewise.
6844         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6845         (TZVERSION): Hardcode tzcode version number.
6846         * timezone/zdump.c: Update from tzcode 2012i.
6847         * timezone/zic.c: Likewise.
6848         * timezone/version.h: New file.
6849         * timezone/README: Describe version.h.  Update upstream location.
6850
6851         [BZ #14824]
6852         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6853         (mktemp): Enable declaration.
6854         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6855         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6856         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6857         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6858         Likewise.
6859         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6860         Likewise.
6861         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6862         Likewise.
6863         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6864         Likewise.
6865         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6866         Likewise.
6867         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6868         Likewise.
6869
6870         [BZ #14821]
6871         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6872         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6873         for copies of such integer values.
6874         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6875         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6876
6877 2012-11-09  Andreas Jaeger  <aj@suse.de>
6878
6879         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6880         definitions and declarations that are provided by
6881         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6882
6883 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6884
6885         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6886         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6887         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6888         definition.
6889
6890 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6891
6892         * elf/elf.h: Update comment before AArch64 relocations.
6893
6894 2012-11-07  David S. Miller  <davem@davemloft.net>
6895
6896         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6897         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6898         (__start_context): Declare.
6899         (__makecontext_ret): Delete.
6900         (__makecontext): Hook up __start_context instead of
6901         __makecontext_ret.
6902         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6903         (sysdep_routines): Add __start_context when in stdlib.
6904
6905 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6906
6907         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6908         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6909         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6910         hardcoded "nm".
6911         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6912         (READELF): New variable.  Use it instead of hardcoded "readelf".
6913
6914 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6917         * sysdeps/x86/Makefile: Here.
6918         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6919         * sysdeps/x86/tst-xmmymm.sh: This.
6920
6921 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6922
6923         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6924         expectations.
6925         [UNIX98] (pthread_barrier_t): Do not expect.
6926         [UNIX98] (pthread_barrierattr_t): Likewise.
6927         [UNIX98] (pthread_spinlock_t): Likewise.
6928         [UNIX98] (pthread_barrier_destroy): Likewise.
6929         [UNIX98] (pthread_barrier_init): Likewise.
6930         [UNIX98] (pthread_barrier_wait): Likewise.
6931         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6932         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6933         [UNIX98] (pthread_barrierattr_init): Likewise.
6934         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6935         [UNIX98] (pthread_getcpuclockid): Likewise.
6936         [UNIX98] (pthread_mutex_timedlock): Likewise.
6937         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6938         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6939         [UNIX98] (pthread_sigmask): Likewise.
6940         [UNIX98] (pthread_spin_destroy): Likewise.
6941         [UNIX98] (pthread_spin_init): Likewise.
6942         [UNIX98] (pthread_spin_lock): Likewise.
6943         [UNIX98] (pthread_spin_trylock): Likewise.
6944         [UNIX98] (pthread_spin_unlock): Likewise.
6945         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6946         Do not expect.
6947         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6948         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6949         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6950         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6951         [XPG3 || XPG4] (pthread_key_t): Likewise.
6952         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6953         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6954         [XPG3 || XPG4] (pthread_once_t): Likewise.
6955         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6956         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6957         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6958         [XPG3 || XPG4] (pthread_t): Likewise.
6959
6960         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6961         not expect.
6962         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6963
6964         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6965         Change function return type to int.
6966
6967         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6968         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6969         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6970         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6971         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6972         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6973         [!POSIX] (posix_madvise): Likewise.
6974         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6975         && !UNIX98].
6976         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6977         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6978         (mode_t): Likewise.
6979         (posix_mem_offset): Likewise.
6980         (posix_typed_mem_get_info): Likewise.
6981         (posix_typed_mem_open): Likewise.
6982
6983         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6984         Change condition to [XOPEN2K8].
6985
6986         * conform/conformtest.pl: Preprocess allow-header data with -x c
6987         instead of from stdin.
6988         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6989         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6990         [C99-based standards] (cerfc): Likewise.
6991         [C99-based standards] (cexp2): Likewise.
6992         [C99-based standards] (cexpm1): Likewise.
6993         [C99-based standards] (clog10): Likewise.
6994         [C99-based standards] (clog1p): Likewise.
6995         [C99-based standards] (clog2): Likewise.
6996         [C99-based standards] (clgamma): Likewise.
6997         [C99-based standards] (ctgamma): Likewise.
6998         [C99-based standards] (cerff): Likewise.
6999         [C99-based standards] (cerfcf): Likewise.
7000         [C99-based standards] (cexp2f): Likewise.
7001         [C99-based standards] (cexpm1f): Likewise.
7002         [C99-based standards] (clog10f): Likewise.
7003         [C99-based standards] (clog1pf): Likewise.
7004         [C99-based standards] (clog2f): Likewise.
7005         [C99-based standards] (clgammaf): Likewise.
7006         [C99-based standards] (ctgammaf): Likewise.
7007         [C99-based standards] (cerfl): Likewise.
7008         [C99-based standards] (cerfcl): Likewise.
7009         [C99-based standards] (cexp2l): Likewise.
7010         [C99-based standards] (cexpm1l): Likewise.
7011         [C99-based standards] (clog10l): Likewise.
7012         [C99-based standards] (clog1pl): Likewise.
7013         [C99-based standards] (clog2l): Likewise.
7014         [C99-based standards] (clgammal): Likewise.
7015         [C99-based standards] (ctgammal): Likewise.
7016         * conform/data/inttypes.h-data [C99-based standards]: Include
7017         stdint.h-data.  Remove all expectations for stdint.h contents.
7018         [C99-based standards] (PRI*): Do not allow.
7019         [C99-based standards] (SCN*): Likewise.
7020         [C99-based standards] (*_t): Likewise.
7021         [C99-based-standards] (PRId8): Expect macro.
7022         [C99-based-standards] (PRIi8): Likewise.
7023         [C99-based-standards] (PRIo8): Likewise.
7024         [C99-based-standards] (PRIu8): Likewise.
7025         [C99-based-standards] (PRIx8): Likewise.
7026         [C99-based-standards] (PRIX8): Likewise.
7027         [C99-based-standards] (SCNd8): Likewise.
7028         [C99-based-standards] (SCNi8): Likewise.
7029         [C99-based-standards] (SCNo8): Likewise.
7030         [C99-based-standards] (SCNu8): Likewise.
7031         [C99-based-standards] (SCNx8): Likewise.
7032         [C99-based-standards] (PRIdLEAST8): Likewise.
7033         [C99-based-standards] (PRIiLEAST8): Likewise.
7034         [C99-based-standards] (PRIoLEAST8): Likewise.
7035         [C99-based-standards] (PRIuLEAST8): Likewise.
7036         [C99-based-standards] (PRIxLEAST8): Likewise.
7037         [C99-based-standards] (PRIXLEAST8): Likewise.
7038         [C99-based-standards] (SCNdLEAST8): Likewise.
7039         [C99-based-standards] (SCNiLEAST8): Likewise.
7040         [C99-based-standards] (SCNoLEAST8): Likewise.
7041         [C99-based-standards] (SCNuLEAST8): Likewise.
7042         [C99-based-standards] (SCNxLEAST8): Likewise.
7043         [C99-based-standards] (PRIdFAST8): Likewise.
7044         [C99-based-standards] (PRIiFAST8): Likewise.
7045         [C99-based-standards] (PRIoFAST8): Likewise.
7046         [C99-based-standards] (PRIuFAST8): Likewise.
7047         [C99-based-standards] (PRIxFAST8): Likewise.
7048         [C99-based-standards] (PRIXFAST8): Likewise.
7049         [C99-based-standards] (SCNdFAST8): Likewise.
7050         [C99-based-standards] (SCNiFAST8): Likewise.
7051         [C99-based-standards] (SCNoFAST8): Likewise.
7052         [C99-based-standards] (SCNuFAST8): Likewise.
7053         [C99-based-standards] (SCNxFAST8): Likewise.
7054         [C99-based-standards] (PRId16): Likewise.
7055         [C99-based-standards] (PRIi16): Likewise.
7056         [C99-based-standards] (PRIo16): Likewise.
7057         [C99-based-standards] (PRIu16): Likewise.
7058         [C99-based-standards] (PRIx16): Likewise.
7059         [C99-based-standards] (PRIX16): Likewise.
7060         [C99-based-standards] (SCNd16): Likewise.
7061         [C99-based-standards] (SCNi16): Likewise.
7062         [C99-based-standards] (SCNo16): Likewise.
7063         [C99-based-standards] (SCNu16): Likewise.
7064         [C99-based-standards] (SCNx16): Likewise.
7065         [C99-based-standards] (PRIdLEAST16): Likewise.
7066         [C99-based-standards] (PRIiLEAST16): Likewise.
7067         [C99-based-standards] (PRIoLEAST16): Likewise.
7068         [C99-based-standards] (PRIuLEAST16): Likewise.
7069         [C99-based-standards] (PRIxLEAST16): Likewise.
7070         [C99-based-standards] (PRIXLEAST16): Likewise.
7071         [C99-based-standards] (SCNdLEAST16): Likewise.
7072         [C99-based-standards] (SCNiLEAST16): Likewise.
7073         [C99-based-standards] (SCNoLEAST16): Likewise.
7074         [C99-based-standards] (SCNuLEAST16): Likewise.
7075         [C99-based-standards] (SCNxLEAST16): Likewise.
7076         [C99-based-standards] (PRIdFAST16): Likewise.
7077         [C99-based-standards] (PRIiFAST16): Likewise.
7078         [C99-based-standards] (PRIoFAST16): Likewise.
7079         [C99-based-standards] (PRIuFAST16): Likewise.
7080         [C99-based-standards] (PRIxFAST16): Likewise.
7081         [C99-based-standards] (PRIXFAST16): Likewise.
7082         [C99-based-standards] (SCNdFAST16): Likewise.
7083         [C99-based-standards] (SCNiFAST16): Likewise.
7084         [C99-based-standards] (SCNoFAST16): Likewise.
7085         [C99-based-standards] (SCNuFAST16): Likewise.
7086         [C99-based-standards] (SCNxFAST16): Likewise.
7087         [C99-based-standards] (PRId32): Likewise.
7088         [C99-based-standards] (PRIi32): Likewise.
7089         [C99-based-standards] (PRIo32): Likewise.
7090         [C99-based-standards] (PRIu32): Likewise.
7091         [C99-based-standards] (PRIx32): Likewise.
7092         [C99-based-standards] (PRIX32): Likewise.
7093         [C99-based-standards] (SCNd32): Likewise.
7094         [C99-based-standards] (SCNi32): Likewise.
7095         [C99-based-standards] (SCNo32): Likewise.
7096         [C99-based-standards] (SCNu32): Likewise.
7097         [C99-based-standards] (SCNx32): Likewise.
7098         [C99-based-standards] (PRIdLEAST32): Likewise.
7099         [C99-based-standards] (PRIiLEAST32): Likewise.
7100         [C99-based-standards] (PRIoLEAST32): Likewise.
7101         [C99-based-standards] (PRIuLEAST32): Likewise.
7102         [C99-based-standards] (PRIxLEAST32): Likewise.
7103         [C99-based-standards] (PRIXLEAST32): Likewise.
7104         [C99-based-standards] (SCNdLEAST32): Likewise.
7105         [C99-based-standards] (SCNiLEAST32): Likewise.
7106         [C99-based-standards] (SCNoLEAST32): Likewise.
7107         [C99-based-standards] (SCNuLEAST32): Likewise.
7108         [C99-based-standards] (SCNxLEAST32): Likewise.
7109         [C99-based-standards] (PRIdFAST32): Likewise.
7110         [C99-based-standards] (PRIiFAST32): Likewise.
7111         [C99-based-standards] (PRIoFAST32): Likewise.
7112         [C99-based-standards] (PRIuFAST32): Likewise.
7113         [C99-based-standards] (PRIxFAST32): Likewise.
7114         [C99-based-standards] (PRIXFAST32): Likewise.
7115         [C99-based-standards] (SCNdFAST32): Likewise.
7116         [C99-based-standards] (SCNiFAST32): Likewise.
7117         [C99-based-standards] (SCNoFAST32): Likewise.
7118         [C99-based-standards] (SCNuFAST32): Likewise.
7119         [C99-based-standards] (SCNxFAST32): Likewise.
7120         [C99-based-standards] (PRId64): Likewise.
7121         [C99-based-standards] (PRIi64): Likewise.
7122         [C99-based-standards] (PRIo64): Likewise.
7123         [C99-based-standards] (PRIu64): Likewise.
7124         [C99-based-standards] (PRIx64): Likewise.
7125         [C99-based-standards] (PRIX64): Likewise.
7126         [C99-based-standards] (SCNd64): Likewise.
7127         [C99-based-standards] (SCNi64): Likewise.
7128         [C99-based-standards] (SCNo64): Likewise.
7129         [C99-based-standards] (SCNu64): Likewise.
7130         [C99-based-standards] (SCNx64): Likewise.
7131         [C99-based-standards] (PRIdLEAST64): Likewise.
7132         [C99-based-standards] (PRIiLEAST64): Likewise.
7133         [C99-based-standards] (PRIoLEAST64): Likewise.
7134         [C99-based-standards] (PRIuLEAST64): Likewise.
7135         [C99-based-standards] (PRIxLEAST64): Likewise.
7136         [C99-based-standards] (PRIXLEAST64): Likewise.
7137         [C99-based-standards] (SCNdLEAST64): Likewise.
7138         [C99-based-standards] (SCNiLEAST64): Likewise.
7139         [C99-based-standards] (SCNoLEAST64): Likewise.
7140         [C99-based-standards] (SCNuLEAST64): Likewise.
7141         [C99-based-standards] (SCNxLEAST64): Likewise.
7142         [C99-based-standards] (PRIdFAST64): Likewise.
7143         [C99-based-standards] (PRIiFAST64): Likewise.
7144         [C99-based-standards] (PRIoFAST64): Likewise.
7145         [C99-based-standards] (PRIuFAST64): Likewise.
7146         [C99-based-standards] (PRIxFAST64): Likewise.
7147         [C99-based-standards] (PRIXFAST64): Likewise.
7148         [C99-based-standards] (SCNdFAST64): Likewise.
7149         [C99-based-standards] (SCNiFAST64): Likewise.
7150         [C99-based-standards] (SCNoFAST64): Likewise.
7151         [C99-based-standards] (SCNuFAST64): Likewise.
7152         [C99-based-standards] (SCNxFAST64): Likewise.
7153         [C99-based-standards] (PRIdMAX): Likewise.
7154         [C99-based-standards] (PRIiMAX): Likewise.
7155         [C99-based-standards] (PRIoMAX): Likewise.
7156         [C99-based-standards] (PRIuMAX): Likewise.
7157         [C99-based-standards] (PRIxMAX): Likewise.
7158         [C99-based-standards] (PRIXMAX): Likewise.
7159         [C99-based-standards] (SCNdMAX): Likewise.
7160         [C99-based-standards] (SCNiMAX): Likewise.
7161         [C99-based-standards] (SCNoMAX): Likewise.
7162         [C99-based-standards] (SCNuMAX): Likewise.
7163         [C99-based-standards] (SCNxMAX): Likewise.
7164         [C99-based-standards] (PRIdPTR): Likewise.
7165         [C99-based-standards] (PRIiPTR): Likewise.
7166         [C99-based-standards] (PRIoPTR): Likewise.
7167         [C99-based-standards] (PRIuPTR): Likewise.
7168         [C99-based-standards] (PRIxPTR): Likewise.
7169         [C99-based-standards] (PRIXPTR): Likewise.
7170         [C99-based-standards] (SCNdPTR): Likewise.
7171         [C99-based-standards] (SCNiPTR): Likewise.
7172         [C99-based-standards] (SCNoPTR): Likewise.
7173         [C99-based-standards] (SCNuPTR): Likewise.
7174         [C99-based-standards] (SCNxPTR): Likewise.
7175         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7176         allow.
7177         * conform/data/stdint.h-data: Update comments to clarify
7178         requirements.
7179         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7180         type.
7181         [C99-based standards] (INT8_MAX): Likewise.
7182         [C99-based standards] (INT16_MIN): Likewise.
7183         [C99-based standards] (INT16_MAX): Likewise.
7184         [C99-based standards] (INT32_MIN): Likewise.
7185         [C99-based standards] (INT32_MAX): Likewise.
7186         [C99-based standards] (INT64_MIN): Likewise.
7187         [C99-based standards] (INT64_MAX): Likewise.
7188         [C99-based standards] (UINT8_MAX): Likewise.
7189         [C99-based standards] (UINT16_MAX): Likewise.
7190         [C99-based standards] (UINT32_MAX): Likewise.
7191         [C99-based standards] (UINT64_MAX): Likewise.
7192         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7193         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7194         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7195         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7196         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7197         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7198         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7199         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7200         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7201         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7202         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7203         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7204         [C99-based standards] (INT_FAST8_MIN): Likewise.
7205         [C99-based standards] (INT_FAST8_MAX): Likewise.
7206         [C99-based standards] (INT_FAST16_MIN): Likewise.
7207         [C99-based standards] (INT_FAST16_MAX): Likewise.
7208         [C99-based standards] (INT_FAST32_MIN): Likewise.
7209         [C99-based standards] (INT_FAST32_MAX): Likewise.
7210         [C99-based standards] (INT_FAST64_MIN): Likewise.
7211         [C99-based standards] (INT_FAST64_MAX): Likewise.
7212         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7213         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7214         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7215         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7216         [C99-based standards] (INTPTR_MIN): Likewise.
7217         [C99-based standards] (INTPTR_MAX): Likewise.
7218         [C99-based standards] (UINTPTR_MAX): Likewise.
7219         [C99-based standards] (INTMAX_MIN): Likewise.
7220         [C99-based standards] (INTMAX_MAX): Likewise.
7221         [C99-based standards] (UINTMAX_MAX): Likewise.
7222         [C99-based standards] (PTRDIFF_MIN): Likewise.
7223         [C99-based standards] (PTRDIFF_MAX): Likewise.
7224         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7225         [C99-based standards] (SIZE_MAX): Likewise.
7226         [C99-based standards] (WCHAR_MAX): Likewise.
7227         [C99-based standards] (WINT_MAX): Likewise.
7228         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7229         constraint on value.
7230         [C99-based standards] (WCHAR_MIN): Likewise.
7231         [C99-based standards] (WINT_MIN): Likewise.
7232         [C99-based standards] (*_t): Allow.
7233         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7234         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7235         Include math.h-data and complex.h-data.  Remove all expectations
7236         of math.h and complex.h contents.
7237         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7238         at end of line.
7239         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7240         (struct tm): Expect tag.
7241         [C99-based-standards] (wcstof): Expect function.
7242         [C99-based-standards] (wcstold): Likewise.
7243         [C99-based-standards] (wcstoll): Likewise.
7244         [C99-based-standards] (wcstoull): Likewise.
7245         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7246         macro-int-constant.  Specify type.
7247         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7248         constraint on value.
7249         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7250         Specify type.
7251         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7252         Specify value.
7253         [ISO C standards]: Do not allow headers.
7254         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7255         wcs[abcdefghijklmnopqrstuvwxyz]*.
7256         [ISO C standards] (*_t): Do not allow.
7257         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7258         Expect function.
7259         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7260         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7261         Specify type.
7262         [ISO C standards]: Do not allow headers.
7263         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7264         is[abcdefghijklmnopqrstuvwxyz]*.
7265         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7266         to[abcdefghijklmnopqrstuvwxyz]*.
7267         [ISO C standards] (*_t): Do not allow.
7268         * conform/data/stdalign.h-data: New file.
7269         * conform/data/stdbool.h-data: Likewise.
7270         * conform/data/stdnoreturn.h-data: Likewise.
7271
7272 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7273
7274         [BZ #14815]
7275         * manual/filesys.texi (Directory Entries): Typo fix.
7276         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7277
7278 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7279
7280         * elf/elf.h (EM_AARCH64): New macro.
7281         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7282         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7283         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7284         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7285         (R_AARCH64_TLSDESC): Likewise.
7286         (NT_ARM_TLS): Likewise.
7287         (NT_ARM_HW_BREAK): Likewise.
7288         (NT_ARM_HW_WATCH): Likewise.
7289
7290 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7291
7292         [BZ #14811]
7293         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7294         (__ieee754_powl): Saturate nonzero exponents with absolute value
7295         below 0x1p-79 to +/- 0x1p-79.
7296         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7297         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7298         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7299         nonzero exponents with absolute value below 0x1p-32 to +/-
7300         0x1p-32.
7301         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7302         (__ieee754_powl): Saturate nonzero exponents with absolute value
7303         below 0x1p-79 to +/- 0x1p-79.
7304         * math/libm-test.inc (pow_test): Add more tests.
7305
7306 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7307
7308         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7309         _dl_s390_cap_flags with kernel. Increase string length.
7310         (_dl_s390_platforms): Add z196 and zEC12.
7311
7312 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7313
7314         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7315         Change XOPEN21K to XOPEN2K.
7316
7317 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7318
7319         * string/memmove.c: Use memcpy when possible.
7320
7321 2012-11-06  Andreas Jaeger  <aj@suse.de>
7322
7323         * po/eo.po: Update from translation team.
7324
7325 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7326
7327         [BZ #14793]
7328         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7329         exponent and small x and y exponents, scale x or y up.  Increase
7330         by 2 the exponent used in scaling up.
7331         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7332         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7333         * math/libm-test.inc (fma_test): Add more tests.
7334         (fma_test_towardzero): Likewise.
7335         (fma_test_downward): Likewise.
7336         (fma_test_upward): Likewise.
7337
7338 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7339
7340         [BZ #14805]
7341         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7342         fenv_t *.
7343
7344         [BZ #14801]
7345         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7346         namespace for names of struct fields.
7347         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7348         fenv_t fields.
7349         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7350         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7351
7352 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7353
7354         [BZ #3665]
7355         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7356
7357 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7358
7359         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7360         PTR_DEMANGLE.
7361
7362         [BZ #5246]
7363         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7364         PTR_DEMANGLE.
7365
7366 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7367
7368         [BZ #14797]
7369         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7370         definitely overflow as x * y not x * y + z.
7371         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7372         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7373         * math/libm-test.inc (fma_test): Add more tests.
7374         (fma_test_towardzero): Likewise.
7375         (fma_test_downward): Likewise.
7376         (fma_test_upward): Likewise.
7377
7378 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7379
7380         [BZ #157]
7381
7382         * include/stub-tag.h: Remove file.
7383         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7384         '#include' of it.
7385         * manual/maint.texi (Porting): Don't reference it.
7386         * Makerules ($(objpfx)stubs): Likewise.
7387         * dirent/closedir.c: Don't include <stub-tag.h>.
7388         * dirent/dirfd.c: Likewise.
7389         * dirent/fdopendir.c: Likewise.
7390         * dirent/getdents.c: Likewise.
7391         * dirent/getdents64.c: Likewise.
7392         * dirent/opendir.c: Likewise.
7393         * dirent/readdir.c: Likewise.
7394         * dirent/readdir64.c: Likewise.
7395         * dirent/readdir64_r.c: Likewise.
7396         * dirent/readdir_r.c: Likewise.
7397         * dirent/rewinddir.c: Likewise.
7398         * dirent/seekdir.c: Likewise.
7399         * dirent/telldir.c: Likewise.
7400         * gmon/profil.c: Likewise.
7401         * grp/setgroups.c: Likewise.
7402         * inet/if_index.c: Likewise.
7403         * io/access.c: Likewise.
7404         * io/chdir.c: Likewise.
7405         * io/chmod.c: Likewise.
7406         * io/chown.c: Likewise.
7407         * io/close.c: Likewise.
7408         * io/dup.c: Likewise.
7409         * io/dup2.c: Likewise.
7410         * io/dup3.c: Likewise.
7411         * io/euidaccess.c: Likewise.
7412         * io/faccessat.c: Likewise.
7413         * io/fchdir.c: Likewise.
7414         * io/fchmod.c: Likewise.
7415         * io/fchmodat.c: Likewise.
7416         * io/fchown.c: Likewise.
7417         * io/fchownat.c: Likewise.
7418         * io/fcntl.c: Likewise.
7419         * io/flock.c: Likewise.
7420         * io/fstatfs.c: Likewise.
7421         * io/fstatfs64.c: Likewise.
7422         * io/fstatvfs.c: Likewise.
7423         * io/fstatvfs64.c: Likewise.
7424         * io/futimens.c: Likewise.
7425         * io/fxstat.c: Likewise.
7426         * io/fxstat64.c: Likewise.
7427         * io/fxstatat.c: Likewise.
7428         * io/fxstatat64.c: Likewise.
7429         * io/getcwd.c: Likewise.
7430         * io/isatty.c: Likewise.
7431         * io/lchmod.c: Likewise.
7432         * io/lchown.c: Likewise.
7433         * io/link.c: Likewise.
7434         * io/linkat.c: Likewise.
7435         * io/lseek.c: Likewise.
7436         * io/lseek64.c: Likewise.
7437         * io/lxstat64.c: Likewise.
7438         * io/mkdir.c: Likewise.
7439         * io/mkdirat.c: Likewise.
7440         * io/mkfifo.c: Likewise.
7441         * io/mkfifoat.c: Likewise.
7442         * io/open.c: Likewise.
7443         * io/open64.c: Likewise.
7444         * io/openat.c: Likewise.
7445         * io/openat64.c: Likewise.
7446         * io/pipe.c: Likewise.
7447         * io/pipe2.c: Likewise.
7448         * io/poll.c: Likewise.
7449         * io/posix_fadvise.c: Likewise.
7450         * io/posix_fadvise64.c: Likewise.
7451         * io/posix_fallocate.c: Likewise.
7452         * io/posix_fallocate64.c: Likewise.
7453         * io/read.c: Likewise.
7454         * io/readlink.c: Likewise.
7455         * io/readlinkat.c: Likewise.
7456         * io/rmdir.c: Likewise.
7457         * io/sendfile.c: Likewise.
7458         * io/sendfile64.c: Likewise.
7459         * io/statfs.c: Likewise.
7460         * io/statfs64.c: Likewise.
7461         * io/statvfs.c: Likewise.
7462         * io/statvfs64.c: Likewise.
7463         * io/symlink.c: Likewise.
7464         * io/symlinkat.c: Likewise.
7465         * io/ttyname.c: Likewise.
7466         * io/ttyname_r.c: Likewise.
7467         * io/umask.c: Likewise.
7468         * io/unlink.c: Likewise.
7469         * io/unlinkat.c: Likewise.
7470         * io/utime.c: Likewise.
7471         * io/utimensat.c: Likewise.
7472         * io/write.c: Likewise.
7473         * io/xmknod.c: Likewise.
7474         * io/xmknodat.c: Likewise.
7475         * io/xstat.c: Likewise.
7476         * io/xstat64.c: Likewise.
7477         * login/getpt.c: Likewise.
7478         * login/grantpt.c: Likewise.
7479         * login/unlockpt.c: Likewise.
7480         * math/e_acoshl.c: Likewise.
7481         * math/e_acosl.c: Likewise.
7482         * math/e_asinl.c: Likewise.
7483         * math/e_atan2l.c: Likewise.
7484         * math/e_atanhl.c: Likewise.
7485         * math/e_coshl.c: Likewise.
7486         * math/e_expl.c: Likewise.
7487         * math/e_fmodl.c: Likewise.
7488         * math/e_gammal_r.c: Likewise.
7489         * math/e_hypotl.c: Likewise.
7490         * math/e_j0l.c: Likewise.
7491         * math/e_j1l.c: Likewise.
7492         * math/e_jnl.c: Likewise.
7493         * math/e_lgammal_r.c: Likewise.
7494         * math/e_log10l.c: Likewise.
7495         * math/e_log2l.c: Likewise.
7496         * math/e_logl.c: Likewise.
7497         * math/e_powl.c: Likewise.
7498         * math/e_rem_pio2l.c: Likewise.
7499         * math/e_sinhl.c: Likewise.
7500         * math/e_sqrtl.c: Likewise.
7501         * math/fclrexcpt.c: Likewise.
7502         * math/fedisblxcpt.c: Likewise.
7503         * math/feenablxcpt.c: Likewise.
7504         * math/fegetenv.c: Likewise.
7505         * math/fegetexcept.c: Likewise.
7506         * math/fegetround.c: Likewise.
7507         * math/feholdexcpt.c: Likewise.
7508         * math/fesetenv.c: Likewise.
7509         * math/fesetround.c: Likewise.
7510         * math/feupdateenv.c: Likewise.
7511         * math/fgetexcptflg.c: Likewise.
7512         * math/fraiseexcpt.c: Likewise.
7513         * math/fsetexcptflg.c: Likewise.
7514         * math/ftestexcept.c: Likewise.
7515         * math/k_cosl.c: Likewise.
7516         * math/k_rem_pio2l.c: Likewise.
7517         * math/k_sinl.c: Likewise.
7518         * math/k_tanl.c: Likewise.
7519         * math/s_asinhl.c: Likewise.
7520         * math/s_atanl.c: Likewise.
7521         * math/s_cbrtl.c: Likewise.
7522         * math/s_erfl.c: Likewise.
7523         * math/s_expm1l.c: Likewise.
7524         * math/s_log1pl.c: Likewise.
7525         * math/s_tanhl.c: Likewise.
7526         * misc/acct.c: Likewise.
7527         * misc/brk.c: Likewise.
7528         * misc/chflags.c: Likewise.
7529         * misc/chroot.c: Likewise.
7530         * misc/fchflags.c: Likewise.
7531         * misc/fgetxattr.c: Likewise.
7532         * misc/flistxattr.c: Likewise.
7533         * misc/fremovexattr.c: Likewise.
7534         * misc/fsetxattr.c: Likewise.
7535         * misc/fsync.c: Likewise.
7536         * misc/ftruncate.c: Likewise.
7537         * misc/futimes.c: Likewise.
7538         * misc/futimesat.c: Likewise.
7539         * misc/getdomain.c: Likewise.
7540         * misc/getdtsz.c: Likewise.
7541         * misc/gethostid.c: Likewise.
7542         * misc/gethostname.c: Likewise.
7543         * misc/getloadavg.c: Likewise.
7544         * misc/getpagesize.c: Likewise.
7545         * misc/getsysstats.c: Likewise.
7546         * misc/getxattr.c: Likewise.
7547         * misc/gtty.c: Likewise.
7548         * misc/ioctl.c: Likewise.
7549         * misc/lgetxattr.c: Likewise.
7550         * misc/listxattr.c: Likewise.
7551         * misc/llistxattr.c: Likewise.
7552         * misc/lremovexattr.c: Likewise.
7553         * misc/lsetxattr.c: Likewise.
7554         * misc/lutimes.c: Likewise.
7555         * misc/madvise.c: Likewise.
7556         * misc/mincore.c: Likewise.
7557         * misc/mlock.c: Likewise.
7558         * misc/mlockall.c: Likewise.
7559         * misc/mmap.c: Likewise.
7560         * misc/mprotect.c: Likewise.
7561         * misc/msync.c: Likewise.
7562         * misc/munlock.c: Likewise.
7563         * misc/munlockall.c: Likewise.
7564         * misc/munmap.c: Likewise.
7565         * misc/preadv.c: Likewise.
7566         * misc/preadv64.c: Likewise.
7567         * misc/ptrace.c: Likewise.
7568         * misc/pwritev.c: Likewise.
7569         * misc/pwritev64.c: Likewise.
7570         * misc/readv.c: Likewise.
7571         * misc/reboot.c: Likewise.
7572         * misc/remap_file_pages.c: Likewise.
7573         * misc/removexattr.c: Likewise.
7574         * misc/revoke.c: Likewise.
7575         * misc/select.c: Likewise.
7576         * misc/setdomain.c: Likewise.
7577         * misc/setegid.c: Likewise.
7578         * misc/seteuid.c: Likewise.
7579         * misc/sethostid.c: Likewise.
7580         * misc/sethostname.c: Likewise.
7581         * misc/setregid.c: Likewise.
7582         * misc/setreuid.c: Likewise.
7583         * misc/setxattr.c: Likewise.
7584         * misc/sstk.c: Likewise.
7585         * misc/stty.c: Likewise.
7586         * misc/swapoff.c: Likewise.
7587         * misc/swapon.c: Likewise.
7588         * misc/sync.c: Likewise.
7589         * misc/syncfs.c: Likewise.
7590         * misc/syscall.c: Likewise.
7591         * misc/truncate.c: Likewise.
7592         * misc/ualarm.c: Likewise.
7593         * misc/usleep.c: Likewise.
7594         * misc/ustat.c: Likewise.
7595         * misc/utimes.c: Likewise.
7596         * misc/vhangup.c: Likewise.
7597         * misc/writev.c: Likewise.
7598         * posix/_exit.c: Likewise.
7599         * posix/alarm.c: Likewise.
7600         * posix/execve.c: Likewise.
7601         * posix/fexecve.c: Likewise.
7602         * posix/fork.c: Likewise.
7603         * posix/fpathconf.c: Likewise.
7604         * posix/getaddrinfo.c: Likewise.
7605         * posix/getegid.c: Likewise.
7606         * posix/geteuid.c: Likewise.
7607         * posix/getgid.c: Likewise.
7608         * posix/getgroups.c: Likewise.
7609         * posix/getlogin.c: Likewise.
7610         * posix/getlogin_r.c: Likewise.
7611         * posix/getpgid.c: Likewise.
7612         * posix/getpid.c: Likewise.
7613         * posix/getppid.c: Likewise.
7614         * posix/getresgid.c: Likewise.
7615         * posix/getresuid.c: Likewise.
7616         * posix/getsid.c: Likewise.
7617         * posix/getuid.c: Likewise.
7618         * posix/glob64.c: Likewise.
7619         * posix/nanosleep.c: Likewise.
7620         * posix/pathconf.c: Likewise.
7621         * posix/pause.c: Likewise.
7622         * posix/posix_madvise.c: Likewise.
7623         * posix/pread.c: Likewise.
7624         * posix/pread64.c: Likewise.
7625         * posix/pwrite.c: Likewise.
7626         * posix/pwrite64.c: Likewise.
7627         * posix/sched_getaffinity.c: Likewise.
7628         * posix/sched_getp.c: Likewise.
7629         * posix/sched_gets.c: Likewise.
7630         * posix/sched_primax.c: Likewise.
7631         * posix/sched_primin.c: Likewise.
7632         * posix/sched_rr_gi.c: Likewise.
7633         * posix/sched_setaffinity.c: Likewise.
7634         * posix/sched_setp.c: Likewise.
7635         * posix/sched_sets.c: Likewise.
7636         * posix/sched_yield.c: Likewise.
7637         * posix/setgid.c: Likewise.
7638         * posix/setlogin.c: Likewise.
7639         * posix/setpgid.c: Likewise.
7640         * posix/setresgid.c: Likewise.
7641         * posix/setresuid.c: Likewise.
7642         * posix/setsid.c: Likewise.
7643         * posix/setuid.c: Likewise.
7644         * posix/sleep.c: Likewise.
7645         * posix/spawni.c: Likewise.
7646         * posix/sysconf.c: Likewise.
7647         * posix/times.c: Likewise.
7648         * posix/wait.c: Likewise.
7649         * posix/wait3.c: Likewise.
7650         * posix/wait4.c: Likewise.
7651         * posix/waitpid.c: Likewise.
7652         * resolv/gai_sigqueue.c: Likewise.
7653         * resource/getpriority.c: Likewise.
7654         * resource/getrlimit.c: Likewise.
7655         * resource/getrusage.c: Likewise.
7656         * resource/nice.c: Likewise.
7657         * resource/setpriority.c: Likewise.
7658         * resource/setrlimit.c: Likewise.
7659         * resource/ulimit.c: Likewise.
7660         * rt/aio_cancel.c: Likewise.
7661         * rt/aio_fsync.c: Likewise.
7662         * rt/aio_read.c: Likewise.
7663         * rt/aio_sigqueue.c: Likewise.
7664         * rt/aio_suspend.c: Likewise.
7665         * rt/aio_write.c: Likewise.
7666         * rt/clock_getres.c: Likewise.
7667         * rt/clock_gettime.c: Likewise.
7668         * rt/clock_nanosleep.c: Likewise.
7669         * rt/clock_settime.c: Likewise.
7670         * rt/lio_listio.c: Likewise.
7671         * rt/mq_close.c: Likewise.
7672         * rt/mq_getattr.c: Likewise.
7673         * rt/mq_notify.c: Likewise.
7674         * rt/mq_open.c: Likewise.
7675         * rt/mq_receive.c: Likewise.
7676         * rt/mq_send.c: Likewise.
7677         * rt/mq_setattr.c: Likewise.
7678         * rt/mq_timedreceive.c: Likewise.
7679         * rt/mq_timedsend.c: Likewise.
7680         * rt/mq_unlink.c: Likewise.
7681         * rt/shm_open.c: Likewise.
7682         * rt/shm_unlink.c: Likewise.
7683         * rt/timer_create.c: Likewise.
7684         * rt/timer_delete.c: Likewise.
7685         * rt/timer_getoverr.c: Likewise.
7686         * rt/timer_gettime.c: Likewise.
7687         * rt/timer_settime.c: Likewise.
7688         * setjmp/__longjmp.c: Likewise.
7689         * setjmp/setjmp.c: Likewise.
7690         * signal/kill.c: Likewise.
7691         * signal/killpg.c: Likewise.
7692         * signal/raise.c: Likewise.
7693         * signal/sigaction.c: Likewise.
7694         * signal/sigaltstack.c: Likewise.
7695         * signal/sigblock.c: Likewise.
7696         * signal/sigignore.c: Likewise.
7697         * signal/sigintr.c: Likewise.
7698         * signal/signal.c: Likewise.
7699         * signal/sigpause.c: Likewise.
7700         * signal/sigpending.c: Likewise.
7701         * signal/sigqueue.c: Likewise.
7702         * signal/sigreturn.c: Likewise.
7703         * signal/sigset.c: Likewise.
7704         * signal/sigsetmask.c: Likewise.
7705         * signal/sigstack.c: Likewise.
7706         * signal/sigsuspend.c: Likewise.
7707         * signal/sigtimedwait.c: Likewise.
7708         * signal/sigvec.c: Likewise.
7709         * signal/sigwait.c: Likewise.
7710         * signal/sigwaitinfo.c: Likewise.
7711         * signal/sysv_signal.c: Likewise.
7712         * socket/accept.c: Likewise.
7713         * socket/accept4.c: Likewise.
7714         * socket/bind.c: Likewise.
7715         * socket/connect.c: Likewise.
7716         * socket/getpeername.c: Likewise.
7717         * socket/getsockname.c: Likewise.
7718         * socket/getsockopt.c: Likewise.
7719         * socket/isfdtype.c: Likewise.
7720         * socket/listen.c: Likewise.
7721         * socket/recv.c: Likewise.
7722         * socket/recvfrom.c: Likewise.
7723         * socket/recvmsg.c: Likewise.
7724         * socket/send.c: Likewise.
7725         * socket/sendmsg.c: Likewise.
7726         * socket/sendto.c: Likewise.
7727         * socket/setsockopt.c: Likewise.
7728         * socket/shutdown.c: Likewise.
7729         * socket/sockatmark.c: Likewise.
7730         * socket/socket.c: Likewise.
7731         * socket/socketpair.c: Likewise.
7732         * stdio-common/ctermid.c: Likewise.
7733         * stdio-common/cuserid.c: Likewise.
7734         * stdio-common/remove.c: Likewise.
7735         * stdio-common/rename.c: Likewise.
7736         * stdio-common/renameat.c: Likewise.
7737         * stdio-common/tempname.c: Likewise.
7738         * stdlib/getcontext.c: Likewise.
7739         * stdlib/makecontext.c: Likewise.
7740         * stdlib/setcontext.c: Likewise.
7741         * stdlib/swapcontext.c: Likewise.
7742         * stdlib/system.c: Likewise.
7743         * streams/fattach.c: Likewise.
7744         * streams/fdetach.c: Likewise.
7745         * streams/getmsg.c: Likewise.
7746         * streams/getpmsg.c: Likewise.
7747         * streams/putmsg.c: Likewise.
7748         * streams/putpmsg.c: Likewise.
7749         * sysdeps/unix/bsd/getpt.c: Likewise.
7750         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7751         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7752         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7754         Likewise.
7755         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7756         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7757         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7758         * sysvipc/msgctl.c: Likewise.
7759         * sysvipc/msgget.c: Likewise.
7760         * sysvipc/msgrcv.c: Likewise.
7761         * sysvipc/msgsnd.c: Likewise.
7762         * sysvipc/semctl.c: Likewise.
7763         * sysvipc/semget.c: Likewise.
7764         * sysvipc/semop.c: Likewise.
7765         * sysvipc/semtimedop.c: Likewise.
7766         * sysvipc/shmat.c: Likewise.
7767         * sysvipc/shmctl.c: Likewise.
7768         * sysvipc/shmdt.c: Likewise.
7769         * sysvipc/shmget.c: Likewise.
7770         * termios/tcdrain.c: Likewise.
7771         * termios/tcflow.c: Likewise.
7772         * termios/tcflush.c: Likewise.
7773         * termios/tcgetattr.c: Likewise.
7774         * termios/tcgetpgrp.c: Likewise.
7775         * termios/tcsendbrk.c: Likewise.
7776         * termios/tcsetattr.c: Likewise.
7777         * termios/tcsetpgrp.c: Likewise.
7778         * time/adjtime.c: Likewise.
7779         * time/clock.c: Likewise.
7780         * time/getitimer.c: Likewise.
7781         * time/gettimeofday.c: Likewise.
7782         * time/setitimer.c: Likewise.
7783         * time/settimeofday.c: Likewise.
7784         * time/stime.c: Likewise.
7785         * time/time.c: Likewise.
7786
7787 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7788
7789         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7790         /usr/old/bin.
7791
7792         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7793         instead of spaces.
7794         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7795
7796 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7797
7798         [BZ #14796]
7799         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7800         FE_TONEAREST before applying Dekker multiplication and Knuth
7801         addition.  Clear inexact exceptions and check for exact zero
7802         results afterwards.
7803         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7804         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7805         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7806         * math/libm-test.inc (fma_test): Add more tests.
7807         (fma_test_towardzero): Likewise.
7808         (fma_test_downward): Likewise.
7809         (fma_test_upward): Likewise.
7810         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7811         function.
7812         (libc_fesetround): New macro.
7813         (libc_fesetroundf): Likewise.
7814         (libc_fesetroundl): Likewise.
7815         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7816         function.
7817         (libc_fesetround_387): Likewise.
7818         (libc_fesetroundf): New macro.
7819         (libc_fesetround): Likewise.
7820         (libc_fesetroundl): Likewise.
7821         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7822         function.
7823         (libc_fesetroundf): New macro.
7824         (libc_fesetround): Likewise.
7825         (libc_fesetroundl): Likewise.
7826         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7827         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7828         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7829         libm_hidden_ver.
7830         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7831         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7832         libm_hidden_def.
7833         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7834         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7835         libm_hidden_ver.
7836         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7837         libm_hidden_def.
7838
7839         [BZ #3439]
7840         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7841         integer constant usable in #if and use that to give value to enum
7842         constant.
7843         (FE_DIVBYZERO): Likewise.
7844         (FE_UNDERFLOW): Likewise.
7845         (FE_OVERFLOW): Likewise.
7846         (FE_INVALID): Likewise.
7847         (FE_INVALID_SNAN): Likewise.
7848         (FE_INVALID_ISI): Likewise.
7849         (FE_INVALID_IDI): Likewise.
7850         (FE_INVALID_ZDZ): Likewise.
7851         (FE_INVALID_IMZ): Likewise.
7852         (FE_INVALID_COMPARE): Likewise.
7853         (FE_INVALID_SOFTWARE): Likewise.
7854         (FE_INVALID_SQRT): Likewise.
7855         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7856         (FE_TONEAREST): Likewise.
7857         (FE_TOWARDZERO): Likewise.
7858         (FE_UPWARD): Likewise.
7859         (FE_DOWNWARD): Likewise.
7860         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7861         (FE_DIVBYZERO): Likewise.
7862         (FE_OVERFLOW): Likewise.
7863         (FE_UNDERFLOW): Likewise.
7864         (FE_INEXACT): Likewise.
7865         (FE_TONEAREST): Likewise.
7866         (FE_DOWNWARD): Likewise.
7867         (FE_UPWARD): Likewise.
7868         (FE_TOWARDZERO): Likewise.
7869         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7870         (FE_UNDERFLOW): Likewise.
7871         (FE_OVERFLOW): Likewise.
7872         (FE_DIVBYZERO): Likewise.
7873         (FE_INVALID): Likewise.
7874         (FE_TONEAREST): Likewise.
7875         (FE_TOWARDZERO): Likewise.
7876         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7877         (FE_OVERFLOW): Likewise.
7878         (FE_UNDERFLOW): Likewise.
7879         (FE_DIVBYZERO): Likewise.
7880         (FE_INEXACT): Likewise.
7881         (FE_TONEAREST): Likewise.
7882         (FE_TOWARDZERO): Likewise.
7883         (FE_UPWARD): Likewise.
7884         (FE_DOWNWARD): Likewise.
7885         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7886         (FE_DIVBYZERO): Likewise.
7887         (FE_OVERFLOW): Likewise.
7888         (FE_UNDERFLOW): Likewise.
7889         (FE_INEXACT): Likewise.
7890         (FE_TONEAREST): Likewise.
7891         (FE_DOWNWARD): Likewise.
7892         (FE_UPWARD): Likewise.
7893         (FE_TOWARDZERO): Likewise.
7894
7895 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7896
7897         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7898
7899 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7900
7901         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7902         commands.  Quote $PWD.
7903         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7904         -x" by "export".
7905         (remove_newlines): Remove.
7906
7907 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7908
7909         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7910         * stdlib/stdlib.h (atof): Moved to ...
7911         * include/bits/stdlib-float.h: Here.  New file.
7912         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7913         * stdlib/bits/stdlib-float.h: New file.
7914         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7915         -mno-sse -mno-mmx.
7916         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7917         <xmmintrin.h>.
7918
7919 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7920
7921         * conform/conformtest.pl (@headers): Add fenv.h.
7922         * conform/data/fenv.h-data: New file.
7923         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7924         include of <math/fenv.h>.
7925
7926         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7927         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7928         && !UNIX98].  Enables tests for XOPEN2K8.
7929         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7930         POSIX2008]: Likewise.
7931
7932         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7933         (struct rusage): Do not expect type or its members.
7934
7935         [BZ #3439]
7936         * math/math.h (FP_NAN): Define macro to integer constant usable in
7937         #if and use that to give value to enum constant.
7938         (FP_INFINITE): Likewise.
7939         (FP_ZERO): Likewise.
7940         (FP_SUBNORMAL): Likewise.
7941         (FP_NORMAL): Likewise.
7942
7943 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7944
7945         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7946         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7947         arguments.
7948
7949 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7950
7951         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7952         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7953         autoconf-time if not.
7954         * configure.in: Remove AC_PREREQ.
7955
7956 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7957
7958         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7959         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7960         of the internal implementation.
7961
7962 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7965         except include of <misc/sys/syslog.h>.
7966
7967 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7968
7969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7970         function returns with a NULL context exit with zero.
7971
7972 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7973
7974         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7975
7976 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7977
7978         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7979         (run_program_cmd): This.
7980         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7981         (tst_langinfo): New variable.  Use it.
7982
7983 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7984
7985         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7986         floating point opcodes.
7987
7988 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7989
7990         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7991         variable.
7992
7993         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7994
7995         * sysdeps/mach/hurd/powerpc: Remove directory.
7996         * sysdeps/mach/powerpc: Likewise.
7997
7998 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7999
8000         * scripts/check-local-headers.sh: Ignore c++ headers.
8001
8002 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8003
8004         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8005         __libc_cleanup_region_start argument.
8006
8007 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8008
8009         [BZ #14784]
8010         [BZ #14785]
8011         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8012         x * y using scaling, not as x * y + z.
8013         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8014         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8015         * math/libm-test.inc (fma_test): Add more tests.
8016         (fma_test_towardzero): Likewise.
8017         (fma_test_downward): Likewise.
8018         (fma_test_upward): Likewise.
8019
8020 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8021
8022         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8023
8024 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8025
8026         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8027         New variable.
8028
8029 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8030
8031         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8032
8033 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8034
8035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8036         Fix sort order.
8037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8038         Likewise.
8039
8040 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8041
8042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8043         Fix the order of the list for glibc 2.17.
8044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8045         Likewise.
8046
8047 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8048
8049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8050
8051 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8052
8053         [BZ #14610]
8054         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8055         for low part of x being zero before using __atanl (y).
8056         * math/libm-test.inc (atan2_test): Add another test.
8057
8058         * manual/install.texi (Configuring and compiling): Document
8059         general use of test-wrapper and test-wrapper-env.
8060         * INSTALL: Regenerated.
8061
8062         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8063         (__fma): Do not extract and scale down low bits on after-rounding
8064         systems when result rounded to normal precision would have normal
8065         exponent.
8066         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8067         (__fmal): Do not extract and scale down low bits on after-rounding
8068         systems when result rounded to normal precision would have normal
8069         exponent.
8070         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8071         (__fmal): Do not extract and scale down low bits on after-rounding
8072         systems when result rounded to normal precision would have normal
8073         exponent.
8074         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8075         macro.
8076         (fma_test): Add more tests.
8077         (fma_test_towardzero): Likewise.
8078         (fma_test_downward): Likewise.
8079         (fma_test_upward): Likewise.
8080
8081 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8082
8083         * sysdeps/i386/tininess.h: Renamed to ...
8084         * sysdeps/x86/tininess.h: This.
8085         * sysdeps/x86_64/tininess.h: Removed.
8086
8087 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8090         input.  Use $(build-program-cmd).
8091         ($(objpfx)tst-array1-static.out): Likewise.
8092         ($(objpfx)tst-array2.out): Likewise.
8093         ($(objpfx)tst-array3.out): Likewise.
8094         ($(objpfx)tst-array4.out): Likewise.
8095         ($(objpfx)tst-array5.out): Likewise.
8096         ($(objpfx)tst-array5-static.out): Likewise.
8097
8098 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8099
8100         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8101         if defined.
8102
8103         * nss/nsswitch.h (nss_interface_function): Provide new
8104         macro for use with NSS functions.
8105         * grp/initgroups.c: Use new macro.
8106         * nss/getXXbyYY.c: Likewise.
8107         * nss/getXXbyYY_r.c: Likewise.
8108         * nss/getXXent.c: Likewise.
8109         * nss/getXXent_r.c: Likewise.
8110         * sysdeps/posix/getaddrinfo.c: Likewise.
8111
8112 2012-10-30  Andreas Jaeger  <aj@suse.de>
8113
8114         * po/ru.po: Update Russion translation from translation project.
8115
8116 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8117
8118         [BZ #14152]
8119         [BZ #14783]
8120         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8121         result and shift together with sticky bit instead of replicating
8122         round-to-nearest rounding.
8123         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8124         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8125         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8126         missing underflow exceptions.
8127         (fma_test_towardzero): Add more tests.
8128         (fma_test_downward): Likewise.
8129         (fma_test_upward): Likewise.
8130
8131         [BZ #14047]
8132         * sysdeps/generic/tininess.h: New file.
8133         * sysdeps/i386/tininess.h: Likewise.
8134         * sysdeps/sh/tininess.h: Likewise.
8135         * sysdeps/x86_64/tininess.h: Likewise.
8136         * stdlib/tst-strtod-underflow.c: Likewise.
8137         * stdlib/tst-tininess.c: Likewise.
8138         * stdlib/strtod_l.c: Include <tininess.h>.
8139         (round_and_return): Do not set errno for exact underflow cases.
8140         Force an underflow exception when setting errno for underflow.
8141         Determine underflow based on rounding to normal precision if
8142         TININESS_AFTER_ROUNDING.
8143         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8144         ERANGE for exact underflow cases.
8145         * stdlib/Makefile (tests): Add tst-tininess and
8146         tst-strtod-underflow.
8147         ($(objpfx)tst-tininess): Use $(link-libm).
8148         ($(objpfx)tst-strtod-underflow): Likewise.
8149
8150 2012-10-30  Andreas Jaeger  <aj@suse.de>
8151
8152         [BZ#14767]
8153         * elf/Makefile (tests): Remove conditional for have-initfini-array
8154         since this is now always required and the variable does not exist
8155         anymore.
8156         (tests-static): Likewise.
8157         (modules-names): Likewise.
8158
8159         * po/eo.po: Add Esperanto translation from translation project.
8160
8161         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8162         merged with constructor/destructor.
8163         (init_array): Likewise.
8164         * elf/tst-array2dep.c (fini_array): Likewise.
8165         (init_array): Likewise.
8166
8167 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8168
8169         * manual/message.texi: Delete @cartouche tags.
8170
8171 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8172
8173         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8174         EOPNOTSUPP.
8175         * sysdeps/mach/hurd/fsync.c: Likewise.
8176
8177         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8178         [_POSIX_REALTIME_SIGNALS]: Change condition to
8179         [_POSIX_REALTIME_SIGNALS > 0].
8180
8181 2012-10-27  Andreas Jaeger  <aj@suse.de>
8182
8183         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8184         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8185         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8186         [__WORDSIZE != 64]: Likewise.
8187
8188 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8189
8190         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8191         *  iconvdata/tst-tables.sh: Likewise.
8192
8193 2012-10-25  David S. Miller  <davem@davemloft.net>
8194
8195         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8196         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8197         of strtoull.
8198
8199         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8200         ifunc-impl-list.c
8201         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8202         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8203         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8204         file.
8205
8206 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8207
8208         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8209         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8210         __getdirentries.
8211
8212 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8213             Jim Blandy  <jimb@codesourcery.com>
8214
8215         * scripts/cross-test-ssh.sh: New file.
8216         * manual/install.texi (Configuring and compiling): Document use of
8217         cross-test-ssh.sh.
8218         * INSTALL: Regenerated.
8219
8220 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8221
8222         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8223         EOPNOTSUPP.
8224
8225 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8226
8227         * Makeconfig (run-program-prefix): Fix comment.
8228
8229 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8230             Jim Blandy  <jimb@codesourcery.com>
8231
8232         * Makeconfig (test-wrapper): New variable,
8233         (test-wrapper-env): Likewise.
8234         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8235         (run-built-tests): Define to yes.
8236         (run-program-prefix): Use $(test-wrapper).
8237         (built-program-cmd): Likewise.
8238         * Rules (make-test-out): Use $(test-wrapper-env) and
8239         $(host-built-program-cmd).
8240         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8241         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8242         tst-pathopt.sh.
8243         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8244         $(test-wrapper-env) to tst-rtld-load-self.sh.
8245         ($(objpfx)order2.out): Use $(test-wrapper).
8246         ($(objpfx)tst-initorder.out): Likewise.
8247         ($(objpfx)tst-initorder2.out): Likewise.
8248         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8249         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8250         (test_wrapper_env): New variable.  Use it to run ld.so.
8251         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8252         Use it to run ld.so.
8253         (test_wrapper_env): Likewise.
8254         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8255         $(test-wrapper) to run-iconv-test.sh.
8256         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8257         (ICONV): Use $test_wrapper.
8258         * posix/Makefile ($(objpfx)globtest.out): Pass
8259         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8260         globtest.sh, not $(run-program-prefix).
8261         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8262         (test_wrapper): Likewise.
8263         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8264         set together with run_via_rtld_prefix.
8265         (run_program_prefix): Define in terms of test_wrapper and
8266         run_via_rtld_prefix.
8267
8268 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8269
8270         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8271         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8272         Targets removed.
8273
8274         [BZ #14743]
8275         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8276         Declare __clock_getres, __clock_gettime, __clock_settime,
8277         __clock_nanosleep, and __clock_getcpuclockid.
8278         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8279         Remove librt_hidden_def (clock_gettime).
8280         * sysdeps/unix/clock_gettime.c: Likewise.
8281         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8282         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8283         * rt/clock_getres.c: Define __clock_getres as an alias.
8284         * sysdeps/posix/clock_getres.c: Likewise.
8285         * rt/clock_settime.c: Define __clock_settime as an alias.
8286         * sysdeps/unix/clock_settime.c: Likewise.
8287         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8288         * sysdeps/unix/clock_nanosleep.c: Likewise.
8289         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8290         * rt/clock-compat.c: New file.
8291         * rt/Makefile (librt-routines): Add clock-compat and move
8292         $(clock-routines) to ...
8293         (routines): ... here, new variable.
8294         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8295         Don't add get_clockfreq here.
8296         * rt/Versions (libc: GLIBC_2.17): New version set.
8297         Add clock_* symbols here.
8298         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8299         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8300         (GLIBC_2.17): Add clock_* symbols.
8301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8302         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8303         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8305         Likewise.
8306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8307         Likewise.
8308         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8309         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8312         * NEWS: Mention the move.
8313
8314         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8315         Use __open, __read, __close rather than their public counterparts.
8316         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8317         (__get_clockfreq_via_cpuinfo): Likewise.
8318         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8319         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8320
8321         * config.h.in (HAVE_IFUNC): New #undef.
8322         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8323         was successful.
8324         * configure: Regenerated.
8325
8326 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8327
8328         * configure.in: Move READELF check to start of file.
8329         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8330         libc_cv_asm_gnu_indirect_function in the process.
8331         * configure: Regenerated.
8332
8333 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8334
8335         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8336         send the output to /dev/null.
8337         (libc_cv_cc_with_libunwind): Likewise.
8338         (libc_cv_as_noexecstack): Likewise.
8339         * configure: Regenerate.
8340
8341 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8344
8345         * posix/globtest.sh (TMPDIR): Do not set.
8346         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8347         (testout): Likewise.
8348
8349 2012-10-24  Andreas Jaeger  <aj@suse.de>
8350
8351         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8352         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8353         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8354         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8355         posix_fadvise64, posix_fallocate64.
8356
8357         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8358         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8359         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8360         Likewise.
8361         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8362         Likewise.
8363         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8364
8365         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8366         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8367         <bits/fcntl-linux.h>.
8368         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8369
8370         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8371         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8372         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8373         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8374         [__WORDSIZE != 64]: Likewise.
8375
8376 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8377
8378         * Makeconfig (run-built-tests): New variable.
8379         * Rules [$(cross-compiling) = yes]: Change condition to
8380         [$(run-built-tests) = no].
8381         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8382         to [$(run-built-tests) = yes].
8383         * elf/Makefile [$(cross-compiling) = no]: Likewise
8384         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8385         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8386         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8387         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8388         * io/Makefile [$(cross-compiling) = no]: Likewise.
8389         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8390         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8391         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8392         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8393         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8394         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8395         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8396         * string/Makefile [$(cross-compiling) = no]: Likewise.
8397
8398         * posix/Makefile ($(objpfx)globtest.out): Pass
8399         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8400         $(rtld-installed-name).
8401         * posix/globtest.sh (elf_objpfx): Remove variable.
8402         (rtld_installed_name): Likewise.
8403         (library_path): Likewise.
8404         (run_program_prefix): New variable.  Use for running globtest
8405         binary.
8406
8407 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8408             Joseph Myers  <joseph@codesourcery.com>
8409
8410         * Makeconfig (host-built-program-cmd): New variable.
8411         * elf/Makefile (tst-stackguard1-ARGS): Use
8412         $(host-built-program-cmd).
8413         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8414         (tst-spawn-ARGS): Likewise.
8415         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8416
8417 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8418             Jim Blandy  <jimb@codesourcery.com>
8419
8420         * Makeconfig (run-via-rtld-prefix): New variable.
8421         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8422         (built-program-cmd): Likewise.
8423
8424 2012-10-22  Andreas Jaeger  <aj@suse.de>
8425
8426         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8427         __O_RSYNC if it exists, otherwise to O_SYNC.
8428
8429 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8430             Joseph Myers  <joseph@codesourcery.com>
8431
8432         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8433         /dev/null.
8434         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8435         from /dev/null
8436         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8437         /dev/null.
8438
8439 2012-10-22  Andreas Jaeger  <aj@suse.de>
8440
8441         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8442         Define always.
8443         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8444
8445         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8446         bits/fcntl-linux.h.
8447
8448         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8449         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8450
8451         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8452         to __O_LARGEFILE.
8453         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8454         to __O_LARGEFILE.
8455
8456 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8457             Joseph Myers  <joseph@codesourcery.com>
8458
8459         * config.make.in (NM): New variable.
8460
8461 2012-10-21  Andreas Jaeger  <aj@suse.de>
8462
8463         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8464         definitions and declarations that are provided by
8465         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8466
8467 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8468
8469         [BZ #14683]
8470         * elf/Makefile (tests-static): Add tst-leaks1-static.
8471         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8472         ($(objpfx)tst-leaks1-static): New rule.
8473         ($(objpfx)tst-leaks1-static-mem): Likewise.
8474         (tst-leaks1-static-ENV): New macro.
8475         * elf/dl-open.c (dl_open_worker): Check the main application
8476         only if SHARED is defined.
8477         * elf/tst-leaks1-static.c: New file.
8478
8479 2012-10-20  Andreas Jaeger  <aj@suse.de>
8480
8481         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8482         generic values for Linux.
8483         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8484         and declarations that are provided by <bits/fcntl-linux.h> and
8485         include <bits/fcntl-linux.h>.
8486         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8487         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8488
8489 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8490
8491         * io/fcntl.h: Move include of <bits/types.h> to the top and
8492         include it unconditionally.
8493
8494 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8495
8496         * wcsmbs/Makefile (tests-ifunc): New variable.
8497         (tests): Add $(tests-ifunc).
8498         * wcsmbs/test-wcschr-ifunc.c: New file.
8499         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8500         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8501         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8502         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8503         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8504
8505         * string/Makefile (tests-ifunc): New variable.
8506         (tests): Add $(tests-ifunc).
8507         * string/test-memccpy.c (TEST_NAME): New macro.
8508         * string/test-memchr.c (TEST_NAME): Likewise.
8509         * string/test-memcmp.c (TEST_NAME): Likewise.
8510         * string/test-memcpy.c (TEST_NAME): Likewise.
8511         * string/test-memmem.c (TEST_NAME): Likewise.
8512         * string/test-memmove.c (TEST_NAME): Likewise.
8513         * string/test-memset.c (TEST_NAME): Likewise.
8514         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8515         * string/test-stpcpy.c (TEST_NAME): Likewise.
8516         * string/test-stpncpy.c (TEST_NAME): Likewise.
8517         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8518         * string/test-strcasestr.c (TEST_NAME): Likewise.
8519         * string/test-strcat.c (TEST_NAME): Likewise.
8520         * string/test-strchr.c (TEST_NAME): Likewise.
8521         * string/test-strcmp.c(TEST_NAME): Likewise.
8522         * string/test-strcpy.c (TEST_NAME): Likewise.
8523         * string/test-strcspn.c (TEST_NAME): Likewise.
8524         * string/test-strlen.c (TEST_NAME): Likewise.
8525         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8526         * string/test-strncmp.c (TEST_NAME): Likewise.
8527         * string/test-strncpy.c (TEST_NAME): Likewise.
8528         * string/test-strnlen.c (TEST_NAME): Likewise.
8529         * string/test-strpbrk.c (TEST_NAME): Likewise.
8530         * string/test-strrchr.c (TEST_NAME): Likewise.
8531         * string/test-strspn.c (TEST_NAME): Likewise.
8532         * string/test-strstr.c (TEST_NAME): Likewise.
8533         * string/test-bcopy-ifunc.c: New file.
8534         * string/test-bzero-ifunc.c: Likewise.
8535         * string/test-memccpy-ifunc.c: Likewise.
8536         * string/test-memchr-ifunc.c: Likewise.
8537         * string/test-memcmp-ifunc.c: Likewise.
8538         * string/test-memcpy-ifunc.c: Likewise.
8539         * string/test-memmem-ifunc.c: Likewise.
8540         * string/test-memmove-ifunc.c: Likewise.
8541         * string/test-mempcpy-ifunc.c: Likewise.
8542         * string/test-memset-ifunc.c: Likewise.
8543         * string/test-rawmemchr-ifunc.c: Likewise.
8544         * string/test-stpcpy-ifunc.c: Likewise.
8545         * string/test-stpncpy-ifunc.c: Likewise.
8546         * string/test-strcasecmp-ifunc.c: Likewise.
8547         * string/test-strcasestr-ifunc.c: Likewise.
8548         * string/test-strcat-ifunc.c: Likewise.
8549         * string/test-strchr-ifunc.c: Likewise.
8550         * string/test-strchrnul-ifunc.c: Likewise.
8551         * string/test-strcmp-ifunc.c: Likewise.
8552         * string/test-strcpy-ifunc.c: Likewise.
8553         * string/test-strcspn-ifunc.c: Likewise.
8554         * string/test-strlen-ifunc.c: Likewise.
8555         * string/test-strncasecmp-ifunc.c: Likewise.
8556         * string/test-strncat-ifunc.c: Likewise.
8557         * string/test-strncmp-ifunc.c: Likewise.
8558         * string/test-strncpy-ifunc.c: Likewise.
8559         * string/test-strnlen-ifunc.c: Likewise.
8560         * string/test-strpbrk-ifunc.c: Likewise.
8561         * string/test-strrchr-ifunc.c: Likewise.
8562         * string/test-strspn-ifunc.c: Likewise.
8563         * string/test-strstr-ifunc.c: Likewise.
8564
8565         * debug/Makefile (tests-ifunc): New variable.
8566         (tests): Add $(tests-ifunc).
8567         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8568         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8569         * debug/test-stpcpy_chk-ifunc.c: New file.
8570         * debug/test-strcpy_chk-ifunc.c: Likewise.
8571
8572 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8573
8574         [BZ #13601]
8575         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8576         header is not read in.
8577
8578 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8579
8580         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8581         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8582         directly.  Pass built executable to script as
8583         $(built-program-cmd).
8584         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8585         $testprogram without using LD_LIBRARY_PATH and $ldso.
8586
8587         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8588         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8589         $(rtld-installed-name).
8590         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8591         (rtld_installed_name): Likewise.
8592         (library_path): Likewise.
8593         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8594         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8595         $(run-program-prefix) to tst-tables.sh.
8596         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8597         it to run tst-table-from and tst-table-to.
8598         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8599         Pass it to tst-table.sh.
8600         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8601         $(run-program-prefix) to tst-gettext.sh.
8602         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8603         tst-translit.sh.
8604         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8605         tst-gettext2.sh.
8606         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8607         to run tst-gettext.
8608         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8609         to run tst-gettext2.
8610         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8611         to run tst-translit.
8612         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8613         $(run-program-prefix) to tst-mtrace.sh.
8614         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8615         to run tst-mtrace.
8616         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8617         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8618         $(rtld-installed-name).
8619         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8620         (rtld_installed_name): Likewise.
8621         (run_program_prefix): New variable.  Use it to run wordexp-test.
8622
8623         * Makeconfig (ARCH): Remove all definitions.
8624         (machine): Likewise.
8625         [ARCH]: Remove conditional code.
8626         [!objdir]: Give error.
8627         [!objdir] (objpfx): Remove.
8628         [!objdir] (common-objpfx): Likewise.
8629         [!objdir] (common-objdir): Likewise.
8630         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8631         AC_CONFIG_FILES call.
8632         * configure: Regenerated.
8633
8634         [BZ #13888]
8635         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8636         or TMPDIR.
8637         (testout): Likewise.
8638
8639         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8640         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8641         $(rtld-installed-name).
8642         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8643         (rtld_installed_name): Likwise.
8644         (runit): Remove function.
8645         (run_getconf): New variable,  Use it for running getconf binary.
8646
8647 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8648
8649         [BZ #14716]
8650         * string/test-memmem.c (check_result): New function.
8651         (do_one_test): Use it.
8652         (check1): New function.
8653         (test_main): Use it.
8654
8655 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8656
8657         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8658
8659 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8662         (_G_LSEEK64): Likewise.
8663         (_G_MMAP64): Likewise.
8664         (_G_FSTAT64): Likewise.
8665         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8666         (_G_LSEEK64): Likewise.
8667         (_G_MMAP64): Likewise.
8668         (_G_FSTAT64): Likewise.
8669         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8670         unconditional.  Call __mmap64 directly.
8671         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8672         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8673         __lseek64 directly.
8674         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8675         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8676         __mmap64 directly.
8677         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8678         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8679         __lseek64 directly.
8680         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8681         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8682         __lseek64 directly.
8683         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8684         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8685         __lseek64 directly.
8686         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8687         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8688         __fxstat64 directly.
8689         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8690         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8691         unconditional.
8692         (freopen64) [!_G_OPEN64]: Remove conditional code.
8693         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8694         unconditional.
8695         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8696         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8697         unconditional.
8698         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8699         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8700         unconditional.
8701         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8702         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8703         unconditional.
8704         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8705         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8706         unconditional.
8707         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8708         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8709         unconditional.
8710         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8711         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8712         unconditional.
8713         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8714
8715 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8716
8717         [BZ #12140]
8718         * manual/memory.texi (Malloc Tunable Parameters): Add note
8719         about free list pointers overwriting some perturb bytes.
8720         Wording suggested by Roland McGrath.
8721
8722 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8723
8724         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8725         (lgamma_test): Likewise.
8726         (tgamma_test): Likewise.
8727
8728 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8729
8730         [BZ #14700]
8731         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8732         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8733
8734 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8735
8736         * NEWS: Mention BZ #14716.
8737         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8738         when removing AVAILABLE1_USES_J macro.
8739
8740 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8741
8742         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8743         (__bswap_64): __uint64_t for unsigned 64-bit int.
8744
8745 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8746
8747         * include/string.h (memmem): Declare libc hidden alias.
8748         * string/memmem.c (memmem): Define libc hidden alias.
8749         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8750         __read, __close instead of open, read, close.
8751
8752 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8753
8754         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8755         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8756         global and hidden.
8757         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8758         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8759         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8760         Likewise.
8761         (__rawmemchr_sse2): Likewise.
8762         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8763         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8764         (__strchr_sse2): Likewise.
8765         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8766         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8767         (__strcasecmp_sse2): Likewise.
8768         (__strncasecmp_sse2): Likewise.
8769         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8770         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8771         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8772         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8773         (__strrchr_sse2): Likewise.
8774         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8775         ifunc-impl-list.c.
8776         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8777         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8778         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8779         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8780         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8781         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8782         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8783         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8784         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8785         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8786         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8787         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8788         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8789         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8790         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8791         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8792         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8793         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8794         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8795         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8796         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8797         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8798         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8799         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8800         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8801         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8802         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8803         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8804         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8805         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8806
8807         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8808         global and hidden.
8809         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8810         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8811         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8812         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8813         Likewise.
8814         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8815         Likewise.
8816         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8817         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8818         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8819         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8820         ifunc-impl-list.c.
8821         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8822         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8823         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8824         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8825         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8826         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8827         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8828         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8829         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8830         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8831         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8832         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8833         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8834         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8835         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8836         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8837         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8838         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8839         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8840         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8841         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8842         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8843         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8844         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8845         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8846         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8847         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8848         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8849         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8850         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8851         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8852         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8853         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8854         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8855         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8856         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8857         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8858         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8859         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8860         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8861         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8862
8863         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8864         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8865         * include/ifunc-impl-list.h: New file.
8866         * misc/ifunc-impl-list.c: Likewise.
8867         * misc/Makefile (routines): Add ifunc-impl-list.
8868         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8869         * string/test-string.h: Include <ifunc-impl-list.h>.
8870         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8871         impl_array): New variables.
8872         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8873         are defined.
8874         (test_init): Call __libc_ifunc_impl_list to initialize
8875         func_list if TEST_IFUNC and TEST_NAME are defined.
8876
8877         * string/Makefile (strop-tests): Add bcopy and bzero.
8878         * string/test-bcopy.c: New file.
8879         * string/test-bzero.c: Likewise.
8880         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8881         defined.
8882         * string/test-memset.c: Support bzero test if TEST_BZERO is
8883         defined.
8884         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8885         __libc_memmove.
8886         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8887         __libc_memset.
8888         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8889         of memset.
8890
8891 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8892
8893         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8894         * configure: Regenerated.
8895
8896         * Makeconfig (+link-static-before-libc): Don't include
8897         $(link-static-libc).
8898
8899         * libio/libio.h (_IO_pos_t): Remove.
8900
8901 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8902
8903         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8904         McGrath.
8905
8906 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8907
8908         * crypt/crypt-entry.c: Include fips-private.h.
8909         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8910         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8911         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8912         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8913
8914 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8915
8916         * crypt/crypt-private.h: Include stdbool.h.
8917         (_ufc_setup_salt_r): Return bool.
8918         * crypt/crypt-entry.c: Include errno.h.
8919         (__crypt_r): Return NULL with EINVAL for bad salt.
8920         * crypt/crypt_util.c (bad_for_salt): New.
8921         (_ufc_setup_salt_r): Check that salt is long enough and within
8922         the specified alphabet.
8923         * crypt/badsalttest.c: New file.
8924         * crypt/Makefile (tests): Add it.
8925         ($(objpfx)badsalttest): New.
8926
8927 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8928
8929         * NEWS: Add entry for BZ #14602.
8930
8931 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8932
8933         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8934         type-generic.
8935         * math/libm-test.inc: Update comment listing what functions and
8936         macros are tested.
8937         (isgreater_test): New function.
8938         (isgreaterequal_test): Likewise.
8939         (isless_test): Likewise.
8940         (islessequal_test): Likewise.
8941         (islessgreater_test): Likewise.
8942         (isunordered_test): Likewise.
8943         (main): Call the new functions.
8944
8945 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8946
8947         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8948         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8949         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8950         * sysdeps/i386/configure: Regenerated.
8951         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8952         * sysdeps/mach/configure: Regenerated.
8953         * sysdeps/mach/hurd/configure: Regenerated.
8954         * sysdeps/powerpc/configure: Regenerated.
8955         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8956         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8957         * sysdeps/s390/s390-32/configure: Regenerated.
8958         * sysdeps/s390/s390-64/configure: Regenerated.
8959         * sysdeps/sh/configure: Regenerated.
8960         * sysdeps/sparc/configure: Regenerated.
8961         * sysdeps/unix/sysv/linux/configure: Regenerated.
8962         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8963         * sysdeps/x86_64/configure: Regenerated.
8964
8965         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8966         defined.  Don't check if MAP is NULL.
8967
8968 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8969
8970         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8971         (_G_stat64): Likewise.
8972         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8973         (_G_stat64): Likewise.
8974         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8975         instead of struct _G_stat64.
8976         * libio/fileops.c (mmap_remap_check): Likewise.
8977         (decide_maybe_mmap): Likewise.
8978         (_IO_new_file_seekoff): Likewise.
8979         (_IO_file_stat): Likewise.
8980         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8981         _G_off64_t.
8982         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8983         instead of struct _G_stat64.
8984         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8985
8986 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8987
8988         [BZ #14602]
8989         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8990         Replace with ...
8991         (CHECK_EOL): New macro.
8992         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8993         CHECK_EOL.
8994         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8995         Replace with CHECK_EOL.
8996         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8997         Replace with CHECK_EOL.
8998
8999 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9000
9001         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9002         type-generic.
9003         * math/libm-test.inc: Update comment listing what functions and
9004         macros are tested.
9005         (finite_test): New function.
9006         (isinf_test): Likewise.
9007         (isnan_test): Likewise.
9008         (fpclassify_test): Test subnormal input.
9009         (isfinite_test): Likewise.
9010         (isnormal_test): Likewise.
9011         (main): Call the new functions.
9012
9013 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9014
9015         [BZ #14660]
9016         * Makerules (%.dynsym): Force C locale when running
9017         $(OBJDUMP) --dynamic-syms.
9018
9019 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9020
9021         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9022         <stdint.h>.
9023
9024 2012-10-06  David S. Miller  <davem@davemloft.net>
9025
9026         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9027         upper 32-bits of the length value in %o2 since we use branch-on-register
9028         tests which consider the entire 64-bit register.
9029
9030 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9031
9032         * string/test-strstr.c (check2): Add a test for page boundary.
9033
9034 2012-10-05  David S. Miller  <davem@davemloft.net>
9035
9036         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9037         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9038         file.
9039         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9040         sysdep_routines.
9041         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9042         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9043         and bzero when HWCAP_SPARC_CRYPTO is present.
9044
9045 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9046
9047         [BZ #14602]
9048         * string/test-strstr.c (check2): New function.
9049         (test_main): Call check2.
9050
9051         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9052         and bug-strchr1.
9053         * string/bug-strcasestr1.c (do_test): Moved to ...
9054         * string/test-strcasestr.c (check1): Here.  New function.
9055         (do_one_test): Break out result checking code into ...
9056         (check_result): This.  New function.
9057         (do_one_test): Call check_result.
9058         (test_main): Call check1.
9059         * string/bug-strchr1.c (do_test): Moved to ...
9060         * string/test-strchr.c (check1): Here.  New function.
9061         (do_one_test): Break out result checking code into ...
9062         (check_result): This.  New function.
9063         (do_one_test): Call check_result.
9064         (test_main): Call check1.
9065         * string/bug-strstr1.c (main): Moved to ...
9066         * string/test-strstr.c (check1): Here.  New function.
9067         (do_one_test): Break out result checking code into ...
9068         (check_result): This.  New function.
9069         (do_one_test): Call check_result.
9070         (test_main): Call check1.
9071         * string/bug-strcasestr1.c: Removed.
9072         * string/bug-strchr1.c: Likewise.
9073         * string/bug-strstr1.c: Likewise.
9074
9075         * elf/Makefile (dl-routines): Add hwcaps.
9076         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9077         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9078         (_dl_important_hwcaps): Moved to ...
9079         * elf/dl-hwcaps.c: Here.  New file.
9080         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9081
9082         [BZ #14557]
9083         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9084         if IS_IN_rtld isn't defined.
9085
9086         * elf/dl-support.c (_dl_sysinfo_map): New.
9087         Include "get-dynamic-info.h" and "setup-vdso.h".
9088         (_dl_non_dynamic_init): Call setup_vdso.
9089         * elf/dynamic-link.h: Don't include <assert.h>.
9090         (elf_get_dynamic_info): Moved to ...
9091         * elf/get-dynamic-info.h: Here.  New file.
9092         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9093         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9094         * elf/setup-vdso.h: Here.  New file.
9095         * elf/rtld.c: Include "setup-vdso.h".
9096         (dl_main): Call setup_vdso.
9097
9098 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9099
9100         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9101         creal in comment listing functions tested.  List finite, isinf,
9102         isnan, isless, islessequal, isgreater, isgreaterequal,
9103         islessgreater, isunordered, lgamma_r and pow10 as functions and
9104         macros not tested.  Mention which functions not tested are aliases
9105         for other functions.  Fix typo.  Note that signs of NaNs are not
9106         tested.
9107
9108         * scripts/config.guess: Update from config.git.
9109         * scripts/config.sub: Likewise.
9110
9111 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9112
9113         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9114         * misc/madvise.c (madvise): Renamed to __madvise.
9115         Make madvise a weak alias.
9116         * include/sys/mman.h: Declare __madvise.
9117         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9118         * sysdeps/unix/syscalls.list
9119         (madvise): Make __madvise the strong name, and madvise a weak alias.
9120         * sysdeps/unix/sysv/linux/syscalls.list
9121         (madvise, mmap): Remove redundant entries.
9122         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9123         * malloc/malloc.c (mtrim): Likewise.
9124         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9125
9126 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9127
9128         * sysdeps/mach/hurd/dl-cache.c: File removed.
9129         * config.h.in (USE_LDCONFIG): New #undef.
9130         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9131         * configure: Regenerated.
9132         * elf/Makefile (dl-routines): Add dl-cache only under
9133         [$(use-ldconfig) = yes].
9134         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9135         cache on [USE_LDCONFIG].
9136         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9137         [USE_LDCONFIG].
9138         * elf/rtld.c (dl_main): Likewise.
9139
9140 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9141
9142         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9143         _SC_LEVEL4_CACHE_LINESIZE.
9144
9145 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9146
9147         * sysdeps/unix/bsd/confstr.h: File removed.
9148
9149 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9150
9151         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9152         sys/sdt-config.h.
9153
9154 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9155
9156         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9157         Make 'mapoff' field ElfW(Off) rather than off_t.
9158
9159 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9160
9161         * nscd/Makefile: Remove nscd-cflags and all its users.
9162         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9163         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9164
9165         [BZ #10631]
9166         * malloc.c (malloc_printerr): Clarify error message.
9167
9168 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9169
9170         [BZ #14648]
9171         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9172         Set bit_FMA_Usable if FMA is supported.
9173         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9174         macro.
9175         (bit_FMA4_Usable): Updated.
9176         (index_FMA_Usable): New macro.
9177         (CPUID_FMA): Likewise
9178         (HAS_FMA): Defined with bit_FMA_Usable.
9179
9180 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9181
9182         * bits/types.h (__swblk_t): Type removed.
9183         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9184         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9185         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9186         (__SWBLK_T_TYPE): Likewise.
9187         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9188         (__SWBLK_T_TYPE): Likewise.
9189         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9190         (__SWBLK_T_TYPE): Likewise.
9191         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9192         (__SWBLK_T_TYPE): Likewise.
9193
9194 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9195             Honza Horak <hhorak@redhat.com>
9196
9197         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9198         (xdr_mapname): Use YPMAXMAP as maxsize.
9199         (xdr_peername): Use YPMAXPEER as maxsize.
9200         (xdr_keydat): Use YPAXRECORD as maxsize.
9201         (xdr_valdat): Use YPMAXRECORD as maxsize.
9202
9203 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9204
9205         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9206
9207         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9208         * csu/init-first.c: ... here.
9209         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9210         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9211         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9212         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9213         * sysdeps/i386/init-first.c: File removed.
9214         * sysdeps/sh/init-first.c: File removed.
9215
9216 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9217
9218         [BZ #14645]
9219         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9220         if x * y might underflow to zero and z is zero.
9221         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9222         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9223         * math/libm-test.inc (min_subnorm_value): New variable.
9224         (fma_test): Add more tests.
9225         (fma_test_towardzero): Likewise.
9226         (fma_test_downward): Likewise
9227         (fma_test_upward): Likewise.
9228         (initialize): Set min_subnorm_value.
9229
9230 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9231
9232         [BZ #14638]
9233         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9234         0 + 0.
9235         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9236         mode for addition resulting in exact zero.
9237         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9238         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9239         exact 0 + 0.
9240         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9241         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9242         * math/libm-test.inc (fma_test): Add more tests.
9243         (fma_test_towardzero): New function.
9244         (fma_test_downward): Likewise.
9245         (fma_test_upward): Likewise.
9246         (main): Call the new functions.
9247
9248 2012-09-28  David S. Miller  <davem@davemloft.net>
9249
9250         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9251
9252 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9253
9254         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9255         instead of SIGALRM.
9256
9257         * sysdeps/gnu/_G_config.h: Moved to ...
9258         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9259         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9260         * sysdeps/generic/_G_config.h: ... here.
9261
9262         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9263
9264         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9265
9266         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9267         Conditionalize target on [libnss_test1.so-version].
9268
9269         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9270
9271         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9272         (elfobjdir): Move out of conditionals.
9273
9274         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9275         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9276         (__nss_lookup_function): Conditionalize label remove_from_tree on
9277         [!DO_STATIC_NSS || SHARED], matching its only use.
9278
9279 2012-09-28  David S. Miller  <davem@davemloft.net>
9280
9281         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9282         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9283         file.
9284         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9285         sysdep_routines.
9286         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9287         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9288         when HWCAP_SPARC_CRYPTO is present.
9289
9290 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9291
9292         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9293
9294 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9295
9296         [BZ #6530]
9297         * stdio-common/vfprintf.c (process_string_arg): Revert
9298         2000-07-22 change.
9299
9300 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9301
9302         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9303         for testcase.
9304         * stdio-common/tst-sprintf.c: Include <locale.h>
9305         (main): Test sprintf's handling of incomplete multibyte
9306         characters.
9307
9308 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9309
9310         * elf/dl-runtime.c (VERSYMIDX): Removed.
9311         * elf/dl-version.c (VERSYMIDX): Likewise.
9312         * elf/do-rel.h (VERSYMIDX): Likewise.
9313         (VALIDX): Likewise.
9314         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9315         * elf/rtld.c (VALIDX): Likewise.
9316         (ADDRIDX): Likewise.
9317         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9318         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9319         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9320         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9321         (VALIDX): Likewise.
9322         (ADDRIDX): Likewise.
9323
9324 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9325
9326         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9327
9328 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9329
9330         [BZ #11438]
9331         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9332         to global scope.
9333         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9334         addresses are in the same scope as 192.0.2/24.
9335         * posix/gai.conf: Document new scope table defaults.
9336
9337 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9338
9339         [BZ #5298]
9340         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9341         for ftell.  Compute offsets from write pointers instead.
9342         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9343
9344 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9345
9346         [BZ #14543]
9347         * libio/Makefile (tests): New test case tst-fseek.
9348         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9349         combination works in wide mode.
9350         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9351         state when the external buffer state changes.
9352
9353 2012-09-27  David S. Miller  <davem@davemloft.net>
9354
9355         [BZ #14376]
9356         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9357         pass reloc->r_addend in as the 'high' argument to
9358         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9359
9360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9361
9362 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9363
9364         * rt/tst-aio2.c: Include <pthread.h>.
9365         * rt/tst-aio3.c: Likewise.
9366
9367 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9368
9369         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9370
9371 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9372
9373         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9374         contents on [SHARED].
9375
9376 2012-09-26  Marek Polacek  <polacek@redhat.com>
9377
9378         [BZ #14530]
9379         [BZ #13741]
9380         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9381         for C++ and GCC <4.3 as well as for non GCC compilers.
9382
9383 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9384
9385         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9386
9387 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9388
9389         * Makefile.in (all, install): Declare with .PHONY.
9390         Reported by Michael Hope <michael.hope@linaro.org>.
9391
9392 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9393
9394         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9395         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9396         system header.
9397         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9398         Likewise.
9399         (sydep_routines): Add the new and the internal functions.
9400         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9401         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9403         (GLIBC_2.17): Add the new function.
9404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9405         (GLIBC_2.17): Likewise.
9406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9407         (GLIBC_2.17): Likewise.
9408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9409         (GLIBC_2.17): Likewise.
9410         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9411
9412 2012-09-25  Alan Modra  <amodra@gmail.com>
9413
9414         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9415         Add release barrier before setting once_control to say
9416         initialisation is done.  Add hints on lwarx.  Use macro in
9417         place of isync.
9418         (clear_once_control): Add release barrier.
9419
9420 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9421
9422         [BZ #13629]
9423         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9424         specially.
9425         * math/s_clog10.c (__clog10): Likewise.
9426         * math/s_clog10f.c (__clog10f): Likewise.
9427         * math/s_clog10l.c (__clog10l): Likewise.
9428         * math/s_clogf.c (__clogf): Likewise.
9429         * math/s_clogl.c (__clogl): Likewise.
9430         * math/Makefile (libm-calls): Add x2y2m1.
9431         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9432         (__x2y2m1): Likewise.
9433         (__x2y2m1l): Likewise.
9434         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9435         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9436         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9437         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9438         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9439         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9440         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9441         * sysdeps/i386/fpu/libm-test-ulps: Update.
9442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9443
9444         [BZ #14621]
9445         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9446         int as type of variable DEPTH.
9447         (glob): Use size_t instead of int as type of variables NEWCOUNT
9448         and OLD_PATHC.
9449
9450 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9451
9452         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9453         Add s_sincosf-sse2.
9454         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9455         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9456         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9457         macros for using routine as __sincosf_ia32.
9458         Use macro for function declaration and weak_alias.
9459         * sysdeps/i386/fpu/libm-test-ulps: Update.
9460
9461         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9462         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9463
9464         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9465         subnormal argument.
9466         * math/s_cexpf.c (__cexpf): Likewise.
9467         * math/s_csinf.c (__csinf): Likewise.
9468         * math/s_csinhf.c (__csinhf): Likewise.
9469         * math/s_ctanf.c (__ctanf): Likewise.
9470         * math/s_ctanhf.c (__ctanhf): Likewise.
9471         * math/s_ccosh.c (__ccoshf): Likewise.
9472         * math/s_cexp.c (__cexpl): Likewise.
9473         * math/s_csin.c (__csin): Likewise.
9474         * math/s_csinh.c (__csinh): Likewise.
9475         * math/s_ctan.c (__ctan): Likewise.
9476         * math/s_ctanh.c (ctanh): Likewise.
9477         * math/s_ccoshl.c (__ccoshl): Likewise.
9478         * math/s_cexpl.c (__cexpl): Likewise.
9479         * math/s_csinl.c (__csinl): Likewise.
9480         * math/s_csinhl.c (__csinhl): Likewise.
9481         * math/s_ctanl.c (__ctanl): Likewise.
9482         * math/s_ctanhl.c (__ctanhl): Likewise.
9483
9484 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9485
9486         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9487         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9488         (_IO_off_t): Define to __off_t, not _G_off_t.
9489         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9490         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9491         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9492         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9493         type of __dummy and __dummy2 fields.
9494         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9495         (_G_ssize_t): Likewise.
9496         (_G_off_t): Likewise.
9497         (_G_pid_t): Likewise.
9498         (_G_uid_t): Likewise.
9499         (_G_wchar_t): Likewise.
9500         (_G_wint_t): Likewise.
9501         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9502         (_G_ssize_t): Likewise.
9503         (_G_off_t): Likewise.
9504         (_G_pid_t): Likewise.
9505         (_G_uid_t): Likewise.
9506         (_G_wchar_t): Likewise.
9507         (_G_wint_t): Likewise.
9508         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9509         (_G_ssize_t): Likewise.
9510         (_G_off_t): Likewise.
9511         (_G_pid_t): Likewise.
9512         (_G_uid_t): Likewise.
9513         (_G_wchar_t): Likewise.
9514         (_G_wint_t): Likewise.
9515
9516 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9517
9518         * malloc/arena.c: Include malloc-sysdep.h.
9519         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9520         is sufficient to shrink the heap or an unmap is needed.
9521         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9522         new function check_may_shrink_heap.
9523         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9524         new function check_may_shrink_heap.
9525
9526 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9527
9528         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9529         comments.
9530
9531 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9532
9533         * catgets/test-gencat.sh: Add "set -e".
9534         * elf/tst-pathopt.sh: Likewise.
9535         * grp/tst_fgetgrent.sh: Likewise.
9536         * iconvdata/run-iconv-test.sh: Likewise.
9537         * intl/tst-gettext.sh: Likewise.
9538         * intl/tst-gettext2.sh: Likewise.
9539         * intl/tst-gettext4.sh: Likewise.
9540         * intl/tst-gettext6.sh: Likewise.
9541         * intl/tst-translit.sh: Likewise.
9542         * io/ftwtest-sh: Likewise.
9543         * libio/test-freopen.sh: Likewise.
9544         * malloc/tst-mtrace.sh: Likewise.
9545         * posix/globtest.sh: Likewise.
9546         * posix/tst-getconf.sh: Likewise.
9547         * posix/wordexp-tst.sh: Likewise.
9548         * stdio-common/tst-printf.sh: Likewise.
9549         * stdio-common/tst-unbputc.sh: Likewise.
9550         * stdlib/tst-fmtmsg.sh: Likewise.
9551         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9552         * catgets/Makefile: Do not specify -e option when running
9553         testsuite shell scripts.
9554         * elf/Makefile: Likewise.
9555         * grp/Makefile: Likewise.
9556         * iconvdata/Makefile: Likewise.
9557         * intl/Makefile: Likewise.
9558         * io/Makefile: Likewise.
9559         * libio/Makefile: Likewise.
9560         * malloc/Makefile: Likewise.
9561         * posix/Makefile: Likewise.
9562         * stdio-common/Makefile: Likewise.
9563         * stdlib/Makefile: Likewise.
9564         * sysdeps/x86_64/Makefile: Likewise.
9565
9566         * io/ftwtest-sh: Add copyright header.
9567         * posix/globtest.sh: Likewise.
9568         * posix/tst-getconf.sh: Likewise.
9569         * posix/wordexp-tst.sh: Likewise.
9570         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9571
9572 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9573
9574         [BZ #13679]
9575         * Makeconfig (+link): Defined as $(+link-static) if
9576         $(build-shared) isn't yes.
9577         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9578         isn't yes.
9579         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9580
9581         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9582
9583         [BZ #14562]
9584         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9585         new chunk size with MALLOC_ALIGN_MASK.
9586
9587 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9588
9589         [BZ #5044]
9590         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9591         <rounding-mode.h>.
9592         (__printf_fphex): Determine rounding using get_rounding_mode and
9593         round_away.
9594         * stdio-common/tst-printf-round.c (struct hex_test): New
9595         structure.
9596         (hex_tests): New variable.
9597         (test_hex_in_one_mode): New function.
9598         (do_test): Also run tests for hex float output.
9599
9600 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9601
9602         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9603         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9604         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9605         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9606         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9607         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9608         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9609         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9610
9611 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9612
9613         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9614         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9615         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9616         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9617
9618 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9619
9620         [BZ #14579]
9621         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9622         mode only.
9623         * elf/tst-rtld-load-self.sh: New test.
9624         * elf/Makefile: Run it.
9625
9626 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9627
9628         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9629         (tst-writev-ENV): Remove.
9630         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9631
9632 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9633
9634         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9635
9636 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9637
9638         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9639         unconditional.
9640         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9641         Likewise.
9642         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9643         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9644         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9645         Likewise.
9646
9647 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9648
9649         [BZ #14587]
9650         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9651         * config.make.in (have-cpp-asm-debuginfo): Removed.
9652         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9653         * configure: Regenerated.
9654
9655 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9656
9657         [BZ #5044]
9658         * stdio-common/printf_fp.c: Include <stdbool.h> and
9659         <rounding-mode.h>.
9660         (___printf_fp): Determine rounding using get_rounding_mode and
9661         round_away.
9662         * stdio-common/tst-printf-round.c: New file.
9663         * stdio-common/Makefile (tests): Add tst-printf-round.
9664         (link-libm): New variable.
9665         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9666
9667 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9668
9669         [BZ #14576]
9670         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9671         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9672         Likewise.
9673         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9674         Likewise.
9675
9676 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9677
9678         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9679         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9680         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9681         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9682
9683 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9684
9685         [BZ #14518]
9686         * include/rounding-mode.h: New file.
9687         * sysdeps/generic/get-rounding-mode.h: Likewise.
9688         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9689         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9690         (MAX_VALUE): New macro.
9691         (MIN_VALUE): Likewise.
9692         (overflow_value): New function.
9693         (underflow_value): Likewise.
9694         (round_and_return): Use overflow_value and underflow_value to
9695         determine return values in overflow and underflow cases.  Use
9696         round_away to determine rounding depending on rounding mode.
9697         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9698         determine return values in overflow and underflow cases.
9699         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9700         (struct test_results): New structure.
9701         (struct test): Use struct test_results to store expected results
9702         for all rounding modes.
9703         (TEST): Include expected results for all rounding modes.
9704         (test_in_one_mode): New function.
9705         (do_test): Use test_in_one_mode to compute and check results.
9706         Check results for all rounding modes.
9707         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9708         $(link-libm).
9709
9710 2012-12-09  Allan McRae  <allan@archlinux.org>
9711
9712         * sysdeps/i386/fpu/libm-test-ulps: Update
9713
9714 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9715
9716         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9717         (_G_int32_t): Likewise.
9718         (_G_uint16_t): Likewise.
9719         (_G_uint32_t): Likewise.
9720         (_G_HAVE_BOOL): Likewise.
9721         (_G_HAVE_ATEXIT): Likewise.
9722         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9723         (_G_HAVE_IO_FILE_OPEN): Likewise.
9724         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9725         (_G_int32_t): Likewise.
9726         (_G_uint16_t): Likewise.
9727         (_G_uint32_t): Likewise.
9728         (_G_HAVE_BOOL): Likewise.
9729         (_G_HAVE_ATEXIT): Likewise.
9730         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9731         (_G_HAVE_IO_FILE_OPEN): Likewise.
9732         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9733         (_G_int32_t): Likewise.
9734         (_G_uint16_t): Likewise.
9735         (_G_uint32_t): Likewise.
9736         (_G_HAVE_BOOL): Likewise.
9737         (_G_HAVE_ATEXIT): Likewise.
9738         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9739         (_G_HAVE_IO_FILE_OPEN): Likewise.
9740
9741 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9742
9743         * csu/libc-tls.c: Update copyright years.
9744
9745 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9746
9747         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9748         [!_G_USING_THUNKS]: Remove conditional code.
9749         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9750         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9751
9752         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9753         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9754         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9755         (_G_VTABLE_LABEL_PREFIX): Likewise.
9756         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9757         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9758         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9759         (_G_VTABLE_LABEL_PREFIX): Likewise.
9760         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9761         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9762         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9763         (_G_VTABLE_LABEL_PREFIX): Likewise.
9764         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9765
9766 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9767
9768         * libio/Makefile: Include ../Makeconfig before tests.
9769         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9770         only if $(build-shared) is yes.
9771
9772         * iconv/gconv_db.c: Update copyright years.
9773
9774 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9775
9776         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9777         unwind info if defined PIC. Fix special cases description.
9778         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9779
9780         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9781         DP_HI_MASK entry.
9782         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9783
9784 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9785
9786         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9787
9788         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9789         is NULL.
9790
9791         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9792         (LDLIBS-tst-chk4): This.
9793         (LDFLAGS-tst-chk5): Renamed to ...
9794         (LDLIBS-tst-chk5): This.
9795         (LDFLAGS-tst-chk6): Renamed to ...
9796         (LDLIBS-tst-chk6): This.
9797         (LDFLAGS-tst-lfschk4): Renamed to ...
9798         (LDLIBS-tst-lfschk4): This.
9799         (LDFLAGS-tst-lfschk5): Renamed to ...
9800         (LDLIBS-tst-lfschk5): This.
9801         (LDFLAGS-tst-lfschk6): Renamed to ...
9802         (LDLIBS-tst-lfschk6): This.
9803
9804         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9805         on $(common-objpfx)soversions.mk.
9806
9807 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9808
9809         [BZ #10014]
9810         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9811         example host name.
9812
9813 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9814
9815         * malloc/arena.c (arena_get_retry): New function that gets
9816         another arena for the caller to try its request on.
9817         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9818         current arena cannot fulfill the request.
9819         (__libc_memalign): Likewise.
9820         (__libc_memalign): Likewise.
9821         (__libc_pvalloc): Likewise.
9822         (__libc_calloc): Likewise.
9823
9824 2012-09-05  John Tobey  <john.tobey@gmail.com>
9825
9826         [BZ #13542]
9827         * manual/arith.texi (Operations on Complex): Fix description
9828         of carg branch cut.
9829
9830 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9831
9832         [BZ #10014]
9833         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9834         host name.
9835
9836         [BZ #10038]
9837         * manual/memory.texi (Memory): Make order of menu items match
9838         order of sections.
9839
9840 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9841
9842         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9843         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9844         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9845
9846 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9847
9848         * csu/libc-tls.c (static_dtv): Renamed to ...
9849         (_dl_static_dtv): This.  Make it global.
9850         (_dl_initial_dtv): Removed.
9851         (__libc_setup_tls): Updated.
9852         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9853         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9854         DL_INITIAL_DTV.
9855
9856 2012-09-06  Petr Machata  <pmachata@redhat.com>
9857
9858         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9859         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9860         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9861         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9862
9863 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9864
9865         [BZ #14545]
9866         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9867         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9868         freeing dtv[-1].
9869
9870 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9871
9872         [BZ #14544]
9873         * Makeconfig (link-static-before-libc): Replace $(+prector)
9874         with $(+prectorT).
9875         (link-static-after-libc): Replace $(+postctor) with
9876         $(+postctorT).
9877         (link-bounded): Replace $(+prector)/$(+postctor) with
9878         $(+prectorT)/$(+postctorT).
9879         (+prectorT): New macro.
9880         (+postctorT): Likewise.
9881
9882 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9885         (round_str): Handle values above the maximum for IBM long double
9886         as inexact.
9887         * stdlib/tst-strtod-round.c (tests): Regenerated.
9888
9889 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9890
9891         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9892         assembler flag.
9893         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9894         zarch_nohighgprs around the zarch optimized routines.
9895         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9896         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9897         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9898         for zarch.
9899
9900 2012-09-05  David S. Miller  <davem@davemloft.net>
9901
9902         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9903
9904         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9905         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9906         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9907         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9908         entries.
9909
9910 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9911
9912         * malloc/arena.c: Fold copyright years.
9913         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9914
9915 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9916
9917         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9918
9919 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9920
9921         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9922
9923 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9924
9925         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9926         change internal state upon failure.
9927
9928 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9929
9930         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9931         * malloc/memusage.c (mmap): Likewise.
9932         (mmap64, mremap): Likewise.  Adjust name in comment.
9933
9934 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9935
9936         * libio/fileops.c: Fix typos in comments.
9937         * libio/oldfileops.c: Likewise.
9938         * libio/wfileops.c: Likewise.
9939
9940 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9941
9942         [BZ #1349]
9943         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9944         (tst-malloc-usable-ENV): Set environment for test case.
9945         * malloc/hooks.c (malloc_check_get_size): New function to get
9946         requested size.
9947         * malloc/malloc.c (musable): Use malloc_check_get_size.
9948         * malloc/tst-malloc-usable.c: New test case.
9949
9950 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9951
9952         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9953
9954 2012-09-05  Allan McRae  <allan@archlinux.org>
9955
9956         [BZ #13966]
9957         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9958         determine header location.
9959         * configure: Regenerated.
9960
9961 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9962
9963         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9964         float format.
9965         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9966         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9967         format.
9968         (test): Regenerate.
9969
9970 2012-09-04  David S. Miller  <davem@davemloft.net>
9971
9972         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9973         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9974         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9975
9976 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9977
9978         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9979         failures.
9980
9981         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9982
9983 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9984
9985         [BZ #9914]
9986         * libio/iogetdelim.c: Include <limits.h>.
9987         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9988         + len + 1 would overflow.
9989
9990 2012-09-03  Andreas Jaeger  <aj@suse.de>
9991
9992         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9993         * sysdeps/i386/fpu/libm-test-ulps: Update.
9994
9995 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9996
9997         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9998         Add s_sinf-sse2, s_conf-sse2.
9999
10000         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10001         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10002         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10003         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10004
10005         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10006         for using routine as __sinf_ia32.
10007         Use macro for function declaration and weak_alias.
10008         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10009         for using routine as __cosf_ia32.
10010         Use macro for function declaration and weak_alias.
10011
10012         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10013         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10014
10015         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10016         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10017         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10018
10019         * math/libm-test.inc (cos_test): Add more test cases.
10020         (sin_test): Likewise.
10021         (sincos_test): Likewise.
10022
10023 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10024
10025         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10026         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10027         hidden.
10028         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10029
10030 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10031
10032         [BZ #14538]
10033         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10034         first element of the GOT.
10035         (elf_machine_load_address): Return the difference between
10036         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10037
10038 2012-09-01  Allan McRae  <allan@archlinux.org>
10039
10040         [BZ #13412]
10041         * configure.in (AWK): Require gawk version 3.0 or later.
10042         * configure: Regenerated.
10043
10044 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10045
10046         * sysdeps/unix/sysv/linux/kernel-features.h
10047         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10048         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10049         [__NR_clock_getres]: Make code unconditional.
10050         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10051         (clock_getcpuclockid): Remove code left unreachable by removal of
10052         conditionals.
10053         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10054         code unconditional.
10055         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10056         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10057         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10058         Make code unconditional.
10059         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10060         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10061         * sysdeps/unix/sysv/linux/clock_settime.c
10062         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10063         conditional code.
10064         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10065         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10066
10067 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10068
10069         [BZ #14476]
10070         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10071         scripts/test-installation.pl.
10072
10073         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10074         and $ld_so_version if it is set.
10075
10076 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10077
10078         [BZ #14516]
10079         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10080         failure if reading from procfs failed.
10081         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10082
10083 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10084
10085         * sysdeps/unix/sysv/linux/kernel-features.h
10086         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10087         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10088         Remove conditional code.
10089         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10090         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10091         Remove conditional code.
10092         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10093         * sysdeps/unix/sysv/linux/i386/fxstat.c
10094         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10095         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10096         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10097         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10098         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10099         * sysdeps/unix/sysv/linux/i386/lxstat.c
10100         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10101         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10102         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10103         Remove conditional code.
10104         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10105         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10106         Remove conditional code.
10107         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10108         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10109         <kernel-features.h>.
10110         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10111         Remove.
10112         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10113         Remove conditional code.
10114         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10115         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10116         Remove conditional.
10117
10118 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10119
10120         [BZ #5400]
10121         * NEWS: Add fixed bug number.
10122
10123 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10124
10125         [BZ #14519]
10126         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10127         underflowing exponent in case of negative sign.
10128         * stdlib/tst-strtod-round-data: Add more tests.
10129         * stdlib/tst-strtod-round.c (tests): Regenerated.
10130
10131         [BZ #3479]
10132         * stdlib/strtod_l.c (NDIG): Remove.
10133         (HEXNDIG): Likewise.
10134         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10135         smallest representable value.
10136         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10137         lie within an exact representation of 1/2 ulp of the result.
10138         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10139         unconditionally.
10140         (TENS_P9_IDX): Define unconditionally.
10141         (TENS_P9_SIZE): Likewise.
10142         (TENS_P10_IDX): Likewise.
10143         (TENS_P10_SIZE): Likewise.
10144         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10145         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10146         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10147         entries for 10^2^13 and 10^2^14.
10148         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10149         (TENS_P13_IDX): Define.
10150         (TENS_P13_SIZE): Likewise.
10151         (TENS_P14_IDX): Likewise.
10152         (TENS_P14_SIZE): Likewise.
10153         (_fpioconst_pow10): Change array size to
10154         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10155         unconditional.
10156         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10157         1024]: Add entries for 10^2^13 and 10^2^14.
10158         [LAST_POW10 > _LAST_POW10]: Remove #error.
10159         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10160         (_fpioconst_pow10): Change array size to
10161         FPIOCONST_POW10_ARRAY_SIZE.
10162         * stdlib/gen-fpioconst.c: New file.
10163         * stdlib/gen-tst-strtod-round.c: Likewise.
10164         * stdlib/tst-strtod-round-data: Likewise.
10165         * stdlib/tst-strtod-round.c: Likewise.
10166         * stdlib/Makefile (tests): Add tst-strtod-round.
10167
10168         [BZ #14459]
10169         * stdlib/strtod_l.c: Include <stdint.h>.
10170         (NDEBUG): Do not define.
10171         (round_and_return): Change EXPONENT parameter to type intmax_t.
10172         Rearrange calculations to avoid internal overflow possibilities.
10173         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10174         Rearrange calculations to avoid internal overflow possibilities.
10175         Assert that number fits inside MPNSIZE limbs.
10176         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10177         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10178         calculations and add assertions to avoid internal overflow
10179         possibilities.  Add casts to avoid signed/unsigned operations.
10180         * stdlib/tst-strtod-overflow.c: New file.
10181         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10182
10183 2012-08-25  Marek Polacek  <polacek@redhat.com>
10184
10185         * time/time.h: Fix some typos in comments.
10186
10187 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10188
10189         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10190         * posix/tst-rfc3484-2.c: Likewise.
10191         * posix/tst-rfc3484-3.c: Likewise.
10192
10193 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10194
10195         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10196         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10197
10198 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10201         #include of fxstatat64.c.
10202
10203 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10204
10205         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10206         * shadow/getspent_r.c: Likewise.
10207         * shadow/getspnam.c: Likewise.
10208         * shadow/getspnam_r.c: Likewise.
10209         * gshadow/getsgent.c: Likewise.
10210         * gshadow/getsgent_r.c: Likewise.
10211         * gshadow/getsgnam.c: Likewise.
10212         * gshadow/getsgnam_r.c: Likewise.
10213         * inet/getnetbyad.c: Likewise.
10214         * inet/getnetbyad_r.c: Likewise.
10215         * inet/getnetbynm.c: Likewise.
10216         * inet/getnetbynm_r.c: Likewise.
10217         * inet/getnetent.c: Likewise.
10218         * inet/getnetent_r.c: Likewise.
10219         * inet/getproto.c: Likewise.
10220         * inet/getproto_r.c: Likewise.
10221         * inet/getprtent.c: Likewise.
10222         * inet/getprtent_r.c: Likewise.
10223         * inet/getprtname.c: Likewise.
10224         * inet/getprtname_r.c: Likewise.
10225         * inet/getrpcbyname.c: Likewise.
10226         * inet/getrpcbyname_r.c: Likewise.
10227         * inet/getrpcbynumber.c: Likewise.
10228         * inet/getrpcbynumber_r.c: Likewise.
10229         * inet/getrpcent.c: Likewise.
10230         * inet/getrpcent_r.c: Likewise.
10231         * inet/getaliasent.c: Likewise.
10232         * inet/getaliasent_r.c: Likewise.
10233         * inet/getaliasname.c: Likewise.
10234         * inet/getaliasname_r.c: Likewise.
10235         * nscd/getgrgid_r.c: Likewise.
10236         * nscd/getgrnam_r.c: Likewise.
10237         * nscd/gethstbyad_r.c: Likewise.
10238         * nscd/gethstbynm3_r.c: Likewise.
10239         * nscd/getpwnam_r.c: Likewise.
10240         * nscd/getpwuid_r.c: Likewise.
10241         * nscd/getsrvbynm_r.c: Likewise.
10242         * nscd/getsrvbypt_r.c: Likewise.
10243         * nscd/gai.c: Likewise.
10244
10245         * configure.in (build_nscd): New substituted variable, set
10246         by --disable-build-nscd and defaults to $use_nscd.
10247         * configure: Regenerated.
10248         * config.make.in (build-nscd): New substituted variable.
10249         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10250         Change conditional to require [$(build-nscd) = yes] as well.
10251         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10252
10253         [BZ# 13696]
10254         * configure.in (use_nscd): New substituted variable, set by
10255         --disable-nscd.  If enabled, define USE_NSCD.
10256         * configure: Regenerated.
10257         * config.h.in: Add USE_NSCD.
10258         * config.make.in (use-nscd): New substituted variable.
10259         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10260         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10261         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10262         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10263         (CFLAGS-getgrnam_r.c): Likewise.
10264         (CFLAGS-initgroups.c): Likewise.
10265         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10266         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10267         Variables removed.
10268         * inet/getnetgrent_r.c
10269         (nscd_setnetgrent): New function, broken out of ...
10270         (setnetgrent): ... here.  Call it.
10271         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10272         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10273         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10274         * nscd/Makefile (routines, aux): Move definitions after include of
10275         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10276         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10277         Conditionalize on [USE_NSCD].
10278         (is_nscd, nscd_init_cb): Likewise.
10279         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10280         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10281         * nss/nss_db/db-init.c: Likewise.
10282         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10283         [USE_NSCD].
10284         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10285         (make_request): Use it.
10286         (cache_valid_p): New function.
10287         (__check_pf): Use it.
10288         * NEWS: Add item for --disable-nscd.
10289
10290 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10291
10292         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10293         to support sed >= 4.2.1-20-ga9bf076.
10294         * configure: Regenerated.
10295
10296 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10297
10298         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10299         Conditionalize whole body on [IREL].
10300
10301 2012-08-22  Jeff Law <law@redhat.com>
10302
10303         [BZ #14505]
10304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10305         if the family is PF_UNSPEC.
10306
10307 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10308
10309         * Makerules (lib-version): Rename from V.
10310         (install-lib-nosubdir): Change V to lib-version.
10311
10312 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10313
10314         [BZ #14252]
10315         * powerpc32/power6/wcschr.c: New file.
10316         * powerpc32/power6/wcscpy.c: New file.
10317         * powerpc32/power6/wcsrchr.c: New file.
10318         * powerpc64/power6/wcschr.c: New file.
10319         * powerpc64/power6/wcscpy.c: New file.
10320         * powerpc64/power6/wcsrchr.c: New file.
10321
10322 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10323
10324         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10325         (two_way_short_needle): Use it.
10326         * string/strstr.c (AVAILABLE1_USES_J): Define.
10327         * string/strcasestr.c: Likewise.
10328
10329         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10330         array references.
10331         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10332
10333         [BZ #11607]
10334         * NEWS: Add an entry.
10335         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10336         define their defaults.
10337         (two_way_short_needle): Detect end-of-string on-the-fly.
10338         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10339         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10340         * string/bug-strcasestr1.c: New test.
10341         * string/Makefile: Run it.
10342
10343 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10344
10345         [BZ #11607]
10346         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10347         the first character.
10348
10349 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10350
10351         * csu/elf-init.c (__libc_csu_irel): Function removed.
10352         * csu/libc-start.c (apply_irel): New function.
10353         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10354
10355 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * sysdeps/unix/sysv/linux/kernel-features.h
10358         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10359         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10360         <kernel-features.h>.
10361         [__NR_fadvise64_64]: Make code unconditional.
10362         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10363         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10364         !__NR_fadvise64_64)]: Likewise.
10365         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10366         !__NR_fadvise64_64))]: Likewise.
10367         [__NR_fadvise64]: Make code unconditional.
10368         [!__NR_fadvise64]: Remove conditional code.
10369         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10370         <kernel-features.h>.
10371         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10372         unconditional.
10373         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10374         conditional code.
10375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10376         not include <kernel-features.h>.
10377         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10378         unconditional.
10379         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10380         conditional code.
10381         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10382         include <kernel-features.h>.
10383         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10384         unconditional.
10385         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10386         conditional code.
10387
10388 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10389
10390         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10391         slight instruction rearrangements per scrollpipe analysis.
10392         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10393
10394 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10395
10396         * manual/syslog.texi (syslog; vsyslog, closelog):
10397         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10398         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10399
10400         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10401         DSOCAPS to match condition on defining it.
10402
10403 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10404
10405         * sysdeps/unix/sysv/linux/kernel-features.h
10406         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10408         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10409         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10411         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10412         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10414         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10415         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10416
10417         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10418         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10419
10420         * sysdeps/unix/sysv/linux/kernel-features.h
10421         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10422         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10423         unconditional.
10424         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10425         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10426         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10427         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10428         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10429         Make code unconditional.
10430         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10431         (__mmap64) [!__NR_mmap2]: Likewise.
10432         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10433         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10434         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10435         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10436         [__NR_mmap2]: Make code unconditional.
10437         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10438         (__mmap64) [!__NR_mmap2]: Likewise.
10439
10440 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10441
10442         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10443
10444 2012-08-18  Andreas Jaeger  <aj@suse.de>
10445
10446         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10447
10448 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10449
10450         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10451         * include/unistd.h (__have_sock_cloexec): Likewise.
10452         (__have_pipe2): Likewise.
10453         (__have_dup3): Likewise.
10454
10455 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10456
10457         [BZ #9685]
10458         * include/unistd.h (__have_pipe2): Change define into an extern int.
10459         (__have_dup3): Likewise.
10460         * socket/have_sock_cloexec.c: Include fcntl.h.
10461         (__have_pipe2): New variable.
10462         (__have_dup3): Likewise.
10463
10464 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10465
10466         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10467
10468 2012-08-17  Marek Polacek  <polacek@redhat.com>
10469
10470         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10471         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10472
10473 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10474
10475         * configure.in: Add AC_SUBST for sysheaders.
10476         * configure: Regenerated.
10477         * config.make.in (sysheaders): New substituted variable.
10478
10479         * sysdeps/unix/mkfifo.c: Moved ...
10480         * sysdeps/posix/mkfifo.c: ... here.
10481         * sysdeps/unix/mkfifoat.c: Moved ...
10482         * sysdeps/posix/mkfifoat.c: ... here.
10483
10484         * sysdeps/unix/utime.c: Moved ...
10485         * sysdeps/posix/utime.c: ... here.
10486
10487         * sysdeps/unix/time.c: Moved ...
10488         * sysdeps/posix/time.c: ... here.
10489         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10490         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10491
10492         * sysdeps/unix/nice.c: Moved ...
10493         * sysdeps/posix/nice.c: ... here.
10494
10495         * sysdeps/unix/alarm.c: Moved ...
10496         * sysdeps/posix/alarm.c: ... here.
10497
10498         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10499
10500 2012-08-17  Jeff Law <law@redhat.com>
10501
10502         * intl/Makefile (codeset_mo): New variable.
10503         ($(codeset_mo)): New target.
10504         (tst-codeset.out): Depend on that.  Remove explicit rule.
10505         (tst-gettext3.out, tst-gettext5.out): Likewise.
10506         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10507         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10508         * intl/tst-codeset.sh: Remove.
10509         * intl/tst-gettext3.sh: Likewise.
10510         * intl/tst-gettext5.sh: Likewise.
10511
10512 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10513
10514         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10515         * sysdeps/unix/syscalls.list: ... here.
10516
10517         * sysdeps/posix/getaddrinfo.c
10518         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10519         (gaiconf_init, gaiconf_reload): Use them.
10520         [!_STATBUF_ST_NSEC]
10521         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10522         Define using time_t rather than struct timespec.
10523
10524         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10525         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10526         Macros removed.
10527         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10528         [!NO_THREADS].
10529         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10530         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10531         Likewise.
10532
10533         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10534         __libc_cleanup_push argument.
10535
10536         * bits/param.h: New file.
10537         * misc/sys/param.h: New file.
10538         * include/sys/param.h: New file.
10539         * misc/Makefile (headers): Add bits/param.h.
10540         * sysdeps/generic/sys/param.h: File removed.
10541         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10542         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10543         * sysdeps/mach/hurd/bits/param.h: New file.
10544         * sysdeps/mach/hurd/sys/param.h: File removed.
10545
10546         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10547         last change.
10548
10549         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10550         [_IO_MTSAFE_IO].
10551         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10552         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10553         New macros.
10554
10555         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10556         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10557         rather than -D_IO_MTSAFE_IO conditionally.
10558         * stdio-common/Makefile (CPPFLAGS): Likewise.
10559         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10560         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10561         Use $(libio-mtsafe).
10562         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10563         of -D_IO_MTSAFE_IO.
10564         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10565         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10566         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10567         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10568         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10569         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10570         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10571         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10572         (CFLAGS-fread_u_chk.c): Likewise.
10573         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10574         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10575         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10576         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10577         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10578         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10579         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10580         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10581         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10582
10583         * libio/Makefile: Test [$(libc-reentrant) = yes]
10584         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10585
10586         * Makeconfig
10587         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10588         * sysdeps/pthread/configure: File removed.
10589         * sysdeps/pthread/Makeconfig: New file.
10590         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10591         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10592
10593 2012-08-16  Gary Benson  <gbenson@redhat.com>
10594
10595         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10596         unmapping the first object in a namespace.
10597
10598 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10599
10600         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10601         (__internal_setnetgrent): ... this.  Add internal_function to
10602         definition.  Add libc_hidden_def.
10603         (setnetgrent): Update caller.
10604         (internal_endnetgrent): Renamed to ...
10605         (__internal_endnetgrent): ... this.  Add internal_function to
10606         definition.  Add libc_hidden_def.
10607         (endnetgrent): Update caller.
10608         (internal_getnetgrent_r): Renamed to ...
10609         (__internal_getnetgrent_r): ... this.  Add internal_function to
10610         definition.  Add libc_hidden_def.
10611         (__getnetgrent_r): Update caller.
10612         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10613
10614 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10615
10616         * stdlib/longlong.h: Update from GCC.
10617
10618 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10619
10620         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10621         on _QL, which is set by umul_ppmm but never used.
10622         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10623         variables, which are set by GMP macros but never used.
10624         * stdio-common/_itowa.c (_itowa): Likewise.
10625         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10626         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10627
10628 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10629
10630         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10631         struct La_sh_regs is not constant.
10632         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10633         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10634         and struct La_sparc64_regs are not constant.
10635
10636 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10637
10638         * sysdeps/unix/sysv/linux/kernel-features.h
10639         (__ASSUME_POSIX_TIMERS): Remove.
10640         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10641         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10642         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10643         Make code unconditional.
10644         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10645         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10646         Make code unconditional.
10647         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10648         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10649         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10650         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10651         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10652         Make code unconditional.
10653         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10654         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10655         (__libc_missing_posix_timers): Remove.
10656
10657 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10658
10659         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10660         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10661
10662         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10663
10664         * elf/dl-sym.c: Include <stdlib.h>.
10665
10666         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10667         constants, which avoids warnings in 32-bit builds.
10668
10669         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10670         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10671
10672         * misc/lseek.c: File moved to ...
10673         * io/lseek.c: ... here.
10674
10675         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10676
10677         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10678         shifting LEN more than 31 bits at once.
10679
10680 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10681
10682         [BZ #14195]
10683         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10684         segmentation fault for a case of two empty input strings.
10685         * string/test-strncasecmp.c (check1): Renamed to...
10686         (bz12205): ...this.
10687         (bz14195): Add new testcase for two empty input strings and N > 0.
10688         (test_main): Call new testcase, adapt for renamed function.
10689
10690 2012-08-15  Andreas Jaeger  <aj@suse.de>
10691
10692         [BZ #14090]
10693         * crypt/md5test2.c: New test, based on test supplied by Serge
10694         Belyshev <belyshev@depni.sinp.msu.ru>.
10695         * crypt/Makefile (xtests): Add md5test-giant..
10696         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10697
10698 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         [BZ #14090]
10701         * crypt/md5.c (md5_process_block): Don't assume the buffer
10702         length is less than 2**32.
10703         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10704         length is less than 2**64.
10705
10706 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10707
10708         * string/str-two-way.h: Include <sys/param.h>.
10709         (MAX): Macro removed.
10710
10711         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10712         Move #define and #undef of memmove to just before and after
10713         including <string.h>.
10714
10715         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10716         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10717         and after including <string.h>.  Move declarations of
10718         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10719         to before #include "string/memmove.c".
10720
10721         * include/dirent.h: Declare __getdirentries.
10722
10723         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10724         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10725
10726 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10727
10728         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10729         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10730         * sysdeps/i386/configure: Regenerated.
10731         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10732         STABS_CURRENT_FILE, and STABS_FUN.
10733         (END): Remove call to STABS_FUN_END.
10734         (STABS_CURRENT_FILE1): Delete.
10735         (STABS_CURRENT_FILE): Likewise.
10736         (STABS_FUN): Likewise.
10737         (STABS_FUN_END): Likewise.
10738         (STABS_FUN2): Likewise.
10739         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10740         * sysdeps/x86_64/configure: Regenerated.
10741
10742 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10743
10744         * elf/dl-open.c: Include <atomic.h>.
10745         * elf/dl-lookup.c: Likewise.
10746
10747 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10748
10749         * sysdeps/unix/sysv/linux/kernel-features.h
10750         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10751         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10752         unconditionally.
10753         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10754         unconditionally.
10755         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10756         condition on __ASSUME_CLONE_THREAD_FLAGS.
10757
10758 2012-08-14  Andreas Jaeger  <aj@suse.de>
10759
10760         * sysdeps/i386/fpu/libm-test-ulps: Update.
10761
10762 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10763
10764         * include/atomic.h (atomic_exchange_and_add): Split into ...
10765         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10766         New atomic macros.
10767
10768 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10769
10770         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10771
10772 2012-08-13  Jeff Law <law@redhat.com>
10773
10774         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10775         null byte in the output string.
10776
10777 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10778
10779         * sysdeps/unix/sysv/linux/kernel-features.h
10780         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10781         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10782         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10783         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10784         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10785         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10786         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10787
10788 2012-08-09  Jeff Law <law@redhat.com>
10789
10790         [BZ #13939]
10791         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10792         When avoid_arena is set, don't retry in the that arena.  Pick the
10793         next one, whatever it might be.
10794         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10795         (arena_lock): Pass in new parameter to arena_get2.
10796         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10797         arena_get2.
10798         (__libc_malloc): Unify retrying after main arena failure with
10799         __libc_memalign version.
10800         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10801
10802 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10803
10804         [BZ #14166]
10805         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10806         to __redirect_strstr.
10807         (__strstr_sse42): Use typeof __redirect_strstr.
10808         (__strstr_ia32): Likewise.
10809         (__libc_strstr): New prototype.
10810         (strstr): Renamed to ...
10811         (__libc_strstr): This.
10812         (strstr): New strong alias of __libc_strstr.
10813         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10814         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10815         __redirect_time.
10816         Include <time.h>.
10817         (__libc_time): New prototype.
10818         (time_ifunc): Replace time with __libc_time.
10819         (time): New strong alias and hidden definition of __libc_time.
10820         (__GI_time): Remove strong alias.
10821         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10822         Include <stddef.h>.
10823         (memmove): Redefined to __redirect_memmove.
10824         (__memmove_sse2): Use typeof __redirect_memmove.
10825         (__memmove_ssse3): Likewise.
10826         (__memmove_ssse3_back): Likewise.
10827         (__libc_memmove): New prototype.
10828         (memmove): Renamed to ...
10829         (__libc_memmove): This.
10830         (memmove): New strong alias of __libc_memmove.
10831
10832 2012-08-08  Mark Salter  <msalter@redhat.com>
10833
10834         * elf/elf.h
10835         (R_MN10300_TLS_GD): Define.
10836         (R_MN10300_TLS_LD): Likewise.
10837         (R_MN10300_TLS_LDO): Likewise.
10838         (R_MN10300_TLS_GOTIE): Likewise.
10839         (R_MN10300_TLS_IE): Likewise.
10840         (R_MN10300_TLS_LE): Likewise.
10841         (R_MN10300_TLS_DTPMOD): Likewise.
10842         (R_MN10300_TLS_DTPOFF): Likewise.
10843         (R_MN10300_TLS_TPOFF): Likewise.
10844         (R_MN10300_SYM_DIFF): Likewise.
10845         (R_MN10300_ALIGN): Likewise.
10846         (R_MN10300_NUM): Update.
10847
10848 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10849
10850         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10851         Remove.
10852
10853 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10854
10855         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10856
10857         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10858         sysdeps/unix -> sysdeps/posix move.
10859         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10860
10861 2012-08-07      Allan McRae     <allan@archlinux.org>
10862
10863         [BZ #14303]
10864         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10865         (SUNOS_CPP): Likewise.
10866         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10867         not found.
10868         (open_input): Call CPP using execvp.
10869
10870 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10871
10872         * sysdeps/unix/sysv/linux/kernel-features.h
10873         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10874         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10875         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10876         (__ASSUME_WAITID_SYSCALL): Likewise.
10877         * sysdeps/unix/sysv/linux/dl-execstack.c
10878         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10879         code unconditional.
10880         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10881         conditional code.
10882         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10883         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10884         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10885         code.
10886         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10887         unconditional.
10888         [__ASSUME_WAITID_SYSCALL]: Likewise.
10889         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10890
10891 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10892
10893         * sysdeps/unix/closedir.c: Renamed to ...
10894         * sysdeps/posix/closedir.c: ... here.
10895         * sysdeps/unix/dirfd.c: Renamed to ...
10896         * sysdeps/posix/dirfd.c: ... here.
10897         * sysdeps/unix/dirstream.h: Renamed to ...
10898         * sysdeps/posix/dirstream.h: ... here.
10899         * sysdeps/unix/fdopendir.c: Renamed to ...
10900         * sysdeps/posix/fdopendir.c: ... here.
10901         * sysdeps/unix/opendir.c: Renamed to ...
10902         * sysdeps/posix/opendir.c: ... here.
10903         * sysdeps/unix/readdir.c: Renamed to ...
10904         * sysdeps/posix/readdir.c: ... here.
10905         * sysdeps/unix/readdir_r.c: Renamed to ...
10906         * sysdeps/posix/readdir_r.c: ... here.
10907         * sysdeps/unix/rewinddir.c: Renamed to ...
10908         * sysdeps/posix/rewinddir.c: ... here.
10909         * sysdeps/unix/seekdir.c: Renamed to ...
10910         * sysdeps/posix/seekdir.c: ... here.
10911         * sysdeps/unix/telldir.c: Renamed to ...
10912         * sysdeps/posix/telldir.c: ... here.
10913         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10914         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10915         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10916         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10917
10918         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10919         * bits/fcntl.h: ... here.
10920
10921         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10922         not 0.
10923         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10924         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10925         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10926         (struct flock): Move l_start, l_len to the beginning.
10927         Use __pid_t for l_pid.
10928         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10929         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10930         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10931         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10932         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10933         [__USE_LARGEFILE64] (struct flock64): New type.
10934         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10935
10936         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10937         * bits/dirent.h: ... here.
10938
10939         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10940         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10941
10942 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10943
10944         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10945         Change from 2.6.0 to 2.6.16.
10946         * sysdeps/unix/sysv/linux/configure: Regenerated.
10947         * sysdeps/unix/sysv/linux/kernel-features.h
10948         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10949         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10950         version.
10951         (__ASSUME_UTIMES): Likewise.
10952         (__ASSUME_CLONE_STOPPED): Remove.
10953         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10954         architectures, not kernel version.
10955         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10956         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10957         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10958         (__ASSUME_WAITID_SYSCALL): Likewise.
10959         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10960         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10961         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10962         refer to older versions.
10963
10964 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10965
10966         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10967         Define alphasort64 as an alias.
10968         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10969         Define versionsort64 as an alias.
10970         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10971         Define scandir64 as an alias.
10972         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10973         Define scandirat64 as an alias.
10974         * dirent/alphasort64.c (alphasort64):
10975         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10976         * dirent/versionsort64.c: Likewise.
10977         * dirent/scandir64.c: Likewise.
10978         * dirent/scandirat64.c: Likewise.
10979         * sysdeps/wordsize-64/alphasort.c: File removed.
10980         * sysdeps/wordsize-64/alphasort64.c: File removed.
10981         * sysdeps/wordsize-64/scandir.c: File removed.
10982         * sysdeps/wordsize-64/scandir64.c: File removed.
10983         * sysdeps/wordsize-64/scandirat.c: File removed.
10984         * sysdeps/wordsize-64/scandirat64.c: File removed.
10985         * sysdeps/wordsize-64/versionsort.c: File removed.
10986         * sysdeps/wordsize-64/versionsort64.c: File removed.
10987         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10988         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10989         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10990         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10991         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10992         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10993         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10994         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10995
10996         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10997         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10998         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10999         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11000         [defined __arch64__ || defined __sparcv9]
11001         (__INO_T_MATCHES_INO64_T): New macro.
11002         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11003         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11004         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11005         * sysdeps/unix/sysv/linux/bits/dirent.h
11006         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11007         (_DIRENT_MATCHES_DIRENT64): New macro.
11008
11009         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11010         Define lockf64 as an alias.
11011         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11012         Define fseeko64 as an alias.
11013         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11014         Define ftello64 as an alias.
11015         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11016         Define _IO_fgetpos64 and fgetpos64 as aliases.
11017         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11018         Define _IO_fsetpos64 and fsetpos64 as aliases.
11019         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11020         Conditionalize body on this.
11021         * libio/fseeko64.c: Likewise.
11022         * libio/ftello64.c: Likewise.
11023         * libio/iofgetpos64.c: Likewise.
11024         * libio/iofsetpos64.c: Likewise.
11025         * sysdeps/wordsize-64/lockf.c: File removed.
11026         * sysdeps/wordsize-64/lockf64.c: File removed.
11027         * sysdeps/wordsize-64/fseeko.c: File removed.
11028         * sysdeps/wordsize-64/fseeko64.c: File removed.
11029         * sysdeps/wordsize-64/ftello.c: File removed.
11030         * sysdeps/wordsize-64/ftello64.c: File removed.
11031         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11032         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11033         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11034         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11035         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11036         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11037         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11038         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11039         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11040         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11041         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11042         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11043         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11044         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11045
11046         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11047         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11048         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11049         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11050         [defined __arch64__ || defined __sparcv9]
11051         (__OFF_T_MATCHES_OFF64_T): New macro.
11052         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11053         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11054         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11055         (__OFF_T_MATCHES_OFF64_T): New macro.
11056
11057 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11058
11059         * stdlib/secure-getenv.c (__secure_getenv): Replace
11060         GLIBC_2_16 with GLIBC_2_17.
11061
11062 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11063
11064         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11065         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11066
11067 2012-08-03  David S. Miller  <davem@davemloft.net>
11068
11069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11070
11071 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11072
11073         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11074         Remove.
11075         (__ASSUME_CORRECT_SI_PID): Likewise.
11076         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11077         (__ASSUME_TMPFS_NAME): Likewise.
11078         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11079         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11080         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11081         (HAVE_AUX_SECURE): Make definition unconditional.
11082         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11083         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11084
11085 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11086
11087         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11088         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11089         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11090         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11091         __eloop_threshold instead of SYMLOOP_MAX.
11092
11093         * sysdeps/generic/eloop-threshold.h: New file.
11094         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11095         of MAXSYMLINKS.
11096         * elf/chroot_canon.c (chroot_canon): Likewise.
11097
11098 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11099
11100         [BZ #13717]
11101         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11102         Change to 2.6.0 everywhere.
11103         * sysdeps/unix/sysv/linux/configure: Regenerated.
11104         * sysdeps/unix/sysv/linux/kernel-features.h
11105         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11106         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11107         kernel versions.
11108         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11109         (__ASSUME_FUTEX_REQUEUE): Remove.
11110         (__ASSUME_STATFS64): Define unconditionally.
11111         (__ASSUME_AT_SECURE): Likewise.
11112         (__ASSUME_CORRECT_SI_PID): Likewise.
11113         (__ASSUME_TGKILL): Define without depending on kernel version for
11114         i386.
11115         (__ASSUME_UTIMES): Likewise.
11116         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11117         kernel version.
11118         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11119         (__ASSUME_TMPFS_NAME): Likewise.
11120         * README: Update reference to Linux kernel versions.
11121
11122 2012-08-02  Marek Polacek  <polacek@redhat.com>
11123
11124         [BZ# 14150]
11125         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11126         libc_cv_asm_type_prefix with %.
11127         * configure: Regenerated.
11128         * include/libc-symbols.h: Remove comment about
11129         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11130         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11131         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11132         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11133         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11134         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11135         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11136         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11137         * elf/tst-unique2mod1.c: Likewise.
11138         * elf/tst-unique1mod2.c: Likewise.
11139         * elf/tst-unique1mod1.c: Likewise.
11140         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11141         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11142         Replace ASM_TYPE_DIRECTIVE with .type.
11143         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11144         * sysdeps/i386/sysdep.h: Likewise.
11145         * sysdeps/x86_64/sysdep.h: Likewise.
11146         * sysdeps/sh/sysdep.h: Likewise.
11147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11148         Do not define ASM_TYPE_DIRECTIVE.
11149         * sysdeps/powerpc/sysdep.h: Likewise.
11150         * sysdeps/powerpc/powerpc32/sysdep.h:
11151         Replace ASM_TYPE_DIRECTIVE with .type.
11152         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11153         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11154         * sysdeps/i386/fpu/e_powf.S: Likewise.
11155         * sysdeps/i386/fpu/e_expl.S: Likewise.
11156         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11157         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11158         * sysdeps/i386/fpu/e_pow.S: Likewise.
11159         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11160         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11161         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11162         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11163         * sysdeps/i386/fpu/e_log2.S: Likewise.
11164         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11165         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11166         * sysdeps/i386/fpu/e_powl.S: Likewise.
11167         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11168         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11169         * sysdeps/i386/fpu/e_logl.S: Likewise.
11170         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11171         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11172         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11173         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11174         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11175         * sysdeps/i386/fpu/e_log.S: Likewise.
11176         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11177         * sysdeps/i386/fpu/e_logf.S: Likewise.
11178         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11179         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11180         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11181         * sysdeps/i386/fpu/e_log10.S: Likewise.
11182         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11183         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11184         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11185         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11186         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11187         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11188         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11189         * sysdeps/i386/i686/strtok.S: Likewise.
11190         * sysdeps/i386/i386-mcount.S: Likewise.
11191         * sysdeps/i386/strtok.S: Likewise.
11192         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11193         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11194         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11195         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11196         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11197         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11198         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11199         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11200         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11201         * sysdeps/x86_64/_mcount.S: Likewise.
11202         * sysdeps/x86_64/strtok.S: Likewise.
11203         * sysdeps/sh/_mcount.S: Likewise.
11204
11205 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11206
11207         * libio/iofopen.c: Include <fcntl.h>.
11208         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11209         (_IO_fopen64, fopen64): Define as aliases.
11210         * libio/iofopen64.c: Include <fcntl.h>.
11211         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11212         Conditionalize body on this.
11213         * sysdeps/wordsize-64/iofopen.c: File removed.
11214         * sysdeps/wordsize-64/iofopen64.c: File removed.
11215
11216 2012-08-01  Marek Polacek  <polacek@redhat.com>
11217
11218         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11219         Use dlfcn directly instead of a variable.
11220         (binfmt-subdir): Do not define.
11221         (dlfcn): Likewise.
11222
11223 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11224
11225         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11226         Remove all definitions.
11227         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11228         <kernel-features.h>.
11229         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11230         (miss_F_GETOWN_EX): Remove all definitions.
11231         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11232         macro definition.
11233         [!__ASSUME_FCNTL64]: Remove conditional code.
11234         [__ASSUME_FCNTL64]: Make code unconditional.
11235         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11236         <kernel-features.h>.
11237         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11238         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11239         (lockf64) [__NR_fcntl64]: Make code unconditional.
11240         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11241
11242         * sysdeps/unix/sysv/linux/kernel-features.h
11243         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11244         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11245         Make code unconditional.
11246         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11247         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11249         [__NR_vfork]: Make code unconditional.
11250         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11251         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11253         [__NR_vfork]: Make code unconditional.
11254         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11255         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11256
11257 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11258
11259         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11260         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11261
11262         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11263         Define mkstemp64 as an alias.
11264         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11265         Define mkstemps64 as an alias.
11266         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11267         Define mkostemp64 as an alias.
11268         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11269         Define mkostemps64 as an alias.
11270         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11271         Conditionalize body on this.
11272         * misc/mkostemp64.c: Likewise.
11273         * misc/mkostemps64.c: Likewise.
11274         * misc/mkstemps64.c: Likewise.
11275         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11276         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11277         * sysdeps/wordsize-64/mkostemp.c: File removed.
11278         * sysdeps/wordsize-64/mkstemp.c: File removed.
11279         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11280         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11281         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11282         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11283
11284         [BZ #14138]
11285         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11286         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11287         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11288         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11289
11290         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11291         compat_symbol macros from <shlib-compat.h> rather than the underlying
11292         default_symbol_version and symbol_version macros, so that DEFAULT
11293         lines in shlib-versions are respected.
11294         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11295
11296 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11297
11298         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11299         Declare with warn_unused_result.
11300         (setgid, setregid, setegid, setresgid): Likewise.
11301         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11302         Likewise.
11303         * WUR-REPORT: Remove set*id functions.
11304
11305 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11306
11307         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11308
11309 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11310
11311         [BZ #10191]
11312         * include/sys/socket.h (__libc_accept, __libc_accept4):
11313         Add attribute_hidden.
11314         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11315
11316         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11317         use of PTR_MANGLE.
11318         * inet/getnetgrent_r.c (setup): Likewise.
11319
11320         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11321
11322 2012-07-31  David S. Miller  <davem@davemloft.net>
11323
11324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11325
11326 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11327
11328         [BZ #13629]
11329         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11330         value between 1.0 and 2.0 and smaller part has absolute value less
11331         than 1.0.
11332         * math/s_clog10.c (__clog10): Likewise.
11333         * math/s_clog10f.c (__clog10f): Likewise.
11334         * math/s_clog10l.c (__clog10l): Likewise.
11335         * math/s_clogf.c (__clogf): Likewise.
11336         * math/s_clogl.c (__clogl): Likewise.
11337         * math/libm-test.inc (clog_test): Add more tests.
11338         (clog10_test): Likewise.
11339         * sysdeps/i386/fpu/libm-test-ulps: Update.
11340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11341
11342 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11343
11344         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11345         Exit with zero in case no suitable GID is found, and write a
11346         message to standard error.
11347
11348 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11349
11350         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11351         rather than to 1.
11352         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11353         (MAXPATHLEN): Removed.
11354         (NOGROUP, NODEV): New macros.
11355         (setbit, clrbit, isset, isclr): New macros.
11356         (howmany, roundup, powerof2): New macros.
11357         (DEV_BSIZE): New macro.
11358
11359         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11360         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11361
11362         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11363         definition on [!__NO_LONG_DOUBLE_MATH].
11364
11365         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11366         PTR_MANGLE and PTR_DEMANGLE.
11367
11368         * socket/accept4.c (accept4): Rename to __libc_accept4.
11369         Define accept4 as a weak alias.
11370
11371         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11372         on [_DIRENT_HAVE_D_TYPE].
11373         * io/ftw.c (ftw_dir): Likewise.
11374
11375         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11376
11377         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11378
11379         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11380         Use the BSD numbers rather than the arbitrary ones we had.
11381         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11382         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11383         (SIGXCPU, SIGXFSZ): New macros.
11384         (_NSIG): Now 32.
11385
11386         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11387         initializer on [_LIBC_REENTRANT].
11388
11389         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11390         definitions inside [_POSIX_MAPPED_FILES].
11391
11392         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11393
11394         * dirent/opendir.c: Include <fcntl.h>.
11395
11396         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11397         (__libc_getspecific): Likewise.
11398         (__libc_key_create): Likewise.
11399
11400         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11401         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11402         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11403         (tmpfile64): Define as alias.
11404         * sysdeps/wordsize-64/tmpfile.c: File removed.
11405         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11406         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11407         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11408
11409         * stdio-common/vfscanf.c: Include <stdbool.h>.
11410         * nss/makedb.c: Likewise.
11411         * stdio-common/_i18n_number.h: Likewise.
11412         * argp/argp-help.c: Likewise.
11413         * posix/wordexp.c: Likewise.
11414         * sysdeps/posix/spawni.c: Likewise.
11415         * nss/nss_files/files-initgroups.c: Likewise.
11416         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11417         * nss/nss_files/files-initgroups.c: Likewise.
11418         * nss/nss_db/db-netgrp.c: Likewise.
11419         * nss/nss_db/db-initgroups.c: Likewise.
11420         * io/fchmodat.c: Include <sys/stat.h>.
11421
11422         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11423         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11424
11425         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11426         [HAVE_MMAP].
11427
11428         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11429         Add multiple inclusion protection.
11430
11431 2012-07-27  David S. Miller  <davem@davemloft.net>
11432
11433         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11434
11435 2012-07-27  Gary Benson  <gbenson@redhat.com>
11436
11437         [BZ #14298]
11438         * elf/rtld.c: Include <stap-probe.h>.
11439         (dl_main): Added static probes "init_start" and "init_complete".
11440         * elf/dl-load.c: Include <stap-probe.h>.
11441         (lose): Take new parameter "nsid".
11442         Added static probe "map_failed".
11443         (_dl_map_object_from_fd): Pass namespace id to lose.
11444         Added static probe "map_start".
11445         (open_verify): Pass namespace id to lose.
11446         * elf/dl-open.c: Include <stap-probe.h>.
11447         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11448         and "reloc_complete".
11449         * elf/dl-close.c: Include <stap-probe.h>.
11450         (_dl_close_worker): Added static probes "unmap_start" and
11451         "unmap_complete".
11452         * elf/rtld-debugger-interface.txt: New file documenting the above.
11453
11454 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11455
11456         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11457         rather than a string variable.
11458         * sunrpc/rpc_main.c (h_output): Likewise.
11459         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11460
11461 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11462
11463         * inet/check_native.c: New file.
11464
11465 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11466
11467         [BZ #13629]
11468         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11469         if larger part has absolute value 1.0.
11470         * math/s_clog10.c (__clog10): Likewise.
11471         * math/s_clog10f.c (__clog10f): Likewise.
11472         * math/s_clog10l.c (__clog10l): Likewise.
11473         * math/s_clogf.c (__clogf): Likewise.
11474         * math/s_clogl.c (__clogl): Likewise.
11475         * math/libm-test.inc (clog_test): Add more tests.
11476         (clog10_test): Likewise.
11477         * sysdeps/i386/fpu/libm-test-ulps: Update.
11478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11479
11480         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11481         (pltexit): Likewise.
11482         (La_regs): Likewise.
11483         (La_retval): Likewise.
11484         (int_retval): Likewise.
11485         Update #error for removed macros to refer only to definitions in
11486         tst-audit.h.
11487         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11488         macro.
11489         (pltexit): Likewise.
11490         (La_regs): Likewise.
11491         (La_retval): Likewise.
11492         (int_retval): Likewise.
11493         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11494         macro.
11495         (pltexit): Likewise.
11496         (La_regs): Likewise.
11497         (La_retval): Likewise.
11498         (int_retval): Likewise.
11499         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11500         macro.
11501         (pltexit): Likewise.
11502         (La_regs): Likewise.
11503         (La_retval): Likewise.
11504         (int_retval): Likewise.
11505         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11506         macro.
11507         (pltexit): Likewise.
11508         (La_regs): Likewise.
11509         (La_retval): Likewise.
11510         (int_retval): Likewise.
11511         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11512         macro.
11513         (pltexit): Likewise.
11514         (La_regs): Likewise.
11515         (La_retval): Likewise.
11516         (int_retval): Likewise.
11517         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11518         macro.
11519         (pltexit): Likewise.
11520         (La_regs): Likewise.
11521         (La_retval): Likewise.
11522         (int_retval): Likewise.
11523         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11524         macro definitions in tst-audit.h.
11525         * sysdeps/i386/tst-audit.h: New file.
11526         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11527         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11528         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11529         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11530         * sysdeps/sh/tst-audit.h: Likewise.
11531         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11532         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11533         * sysdeps/x86_64/tst-audit.h: Likewise.
11534
11535 2012-07-26  Andreas Jaeger  <aj@suse.de>
11536
11537         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11538         ptrace.
11539
11540         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11541         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11542         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11543         PTRACE_O_MASK.
11544         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11545         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11546         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11547
11548         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11549         value.
11550
11551         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11552         _sigsys.
11553         (si_call_addr, si_syscall, si_arch): Define new macro.
11554         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11555         _sigsys.
11556         (si_call_addr, si_syscall, si_arch): Define new marcro.
11557         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11558         _sigsys.
11559         (si_call_addr, si_syscall, si_arch): Define new macro.
11560         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11561         _sigsys.
11562         (si_call_addr, si_syscall, si_arch): Define new macro.
11563
11564 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11565
11566         [BZ #13717]
11567         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11568         Change to 2.4.21 where previously 2.4.1.
11569         * sysdeps/unix/sysv/linux/configure: Regenerated.
11570         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11571         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11572         Linux kernel version.
11573         (__ASSUME_STD_AUXV): Remove.
11574         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11575         kernel version.
11576         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11577         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11578         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11579         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11580         (__ASSUME_NETLINK_SUPPORT): Likewise.
11581         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11582         (__no_netlink_support): Remove conditional definition.
11583         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11584         Remove.
11585         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11586         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11587         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11588         (if_nameindex_ioctl): Remove.
11589         (if_nameindex_netlink): Do not handle __no_netlink_support.
11590         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11591         code.
11592         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11593         Remove conditional code.
11594         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11595         code.
11596         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11597         unconditional.
11598         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11599         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11600         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11601         Remove.
11602         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11603         [!__ASSUME_STD_AUXV]: Remove conditional code.
11604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11605         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11606         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11608         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11609         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11610         code.
11611         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11613         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11614         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11615         conditional code.
11616         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11618         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11619         code.
11620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11621         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11622         conditional code.
11623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11624         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11625         code unconditional.
11626         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11627         conditional code.
11628         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11629         unconditional.
11630         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11631         conditional code.
11632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11633         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11634         unconditional.
11635         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11636         conditional code.
11637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11638         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11639         code unconditional.
11640         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11641         conditional code.
11642         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11643         unconditional.
11644         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11645         conditional code.
11646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11647         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11648         code unconditional.
11649         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11650         conditional code.
11651         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11652         unconditional.
11653         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11654         conditional code.
11655
11656 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11657
11658         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11659         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11660         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11661         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11662         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11663         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11664         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11665         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11666         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11667         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11668         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11669         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11670         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11671         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11672         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11673         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11674         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11675         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11676         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11677         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11678         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11679         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11680         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11681
11682 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11683
11684         * Versions.def: Add GLIBC_2.17.
11685         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11686         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11687         Introduce __libc_secure_getenv.
11688         * stdlib/Versions (2.17): Add secure_getenv
11689         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11690         * stdlib/secure-getenv.c: Rename __secure_getenv to
11691         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11692         symbol __secure_getenv for GLIBC_2.0.
11693         * stdlib/tst-secure-getenv.c: New.
11694         * stdlib/Makefile (tests): Add testcase.
11695         * manual/startup.texi (Environment Access): Document
11696         secure_getenv.
11697         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11698         __libc_secure_getenv.
11699         * inet/ruserpass.c (ruserpass): Likewise.
11700         * malloc/mtrace.c (mtrace): Likewise.
11701         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11702         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11703         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11704         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11705         HAVE_SECURE_GETENV.
11706         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11707         __secure_getenv to __libc_secure_getenv.
11708         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11710         Likewise.
11711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11712         Likewise.
11713         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11715         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11716         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11717         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11720
11721 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11722
11723         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11724         (struct La_i86_retval): Likewise.
11725         (struct La_x86_64_regs): Likewise.
11726         (struct La_x86_64_retval): Likewise.
11727         (struct La_x32_regs): Likewise.
11728         (struct La_x32_retval): Likewise.
11729         (struct La_ppc32_regs): Likewise.
11730         (struct La_ppc32_retval): Likewise.
11731         (struct La_ppc64_regs): Likewise.
11732         (struct La_ppc64_retval): Likewise.
11733         (struct La_sh_regs): Likewise.
11734         (struct La_sh_retval): Likewise.
11735         (struct La_s390_32_regs): Likewise.
11736         (struct La_s390_32_retval): Likewise.
11737         (struct La_s390_64_regs): Likewise.
11738         (struct La_s390_64_retval): Likewise.
11739         (struct La_sparc32_regs): Likewise.
11740         (struct La_sparc32_retval): Likewise.
11741         (struct La_sparc64_regs): Likewise.
11742         (struct La_sparc64_retval): Likewise.
11743         (struct audit_ifaces): Remove architecture-specific pltenter and
11744         pltexit members.
11745         * sysdeps/i386/ldsodefs.h: New file.
11746         * sysdeps/powerpc/ldsodefs.h: Likewise.
11747         * sysdeps/s390/ldsodefs.h: Likewise.
11748         * sysdeps/sh/ldsodefs.h: Likewise.
11749         * sysdeps/sparc/ldsodefs.h: Likewise.
11750         * sysdeps/x86_64/ldsodefs.h: Likewise.
11751
11752 2012-07-25  Marek Polacek  <polacek@redhat.com>
11753
11754         [BZ #6808]
11755         * math/libm-test.inc (yn_test): Add another test.
11756         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11757         to ERANGE when the result is +-Inf.
11758         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11759         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11760         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11761         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11762
11763 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11764
11765         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11766         equal to 0.
11767         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11768         clock_t.
11769         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11770
11771 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11772
11773         * configure.in <sysdeps resolving>: Correct printing
11774         Implies_before.
11775         * configure: Regenerate.
11776
11777 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11778
11779         * math/w_ilogb.c: Include <limits.h>.
11780         * math/w_ilogbl.c: Likewise.
11781
11782 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11783
11784         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11785         va_copy.  Document allowing for unavailable va_copy only as
11786         pre-C99 compatibility.
11787         * manual/string.texi (Copying and Concatenation): Use va_copy
11788         instead of __va_copy in concat example.
11789
11790 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11791
11792         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11793         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11794         it if not null.
11795
11796         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11797         with O_NOLINK passed to __file_name_lookup.
11798
11799         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11800         with O_NOLINK passed to __file_name_lookup.
11801
11802         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11803         negative N or less than NGIDS.
11804
11805         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11806         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11807         enough.  Use memcpy instead of strncpy.
11808
11809 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11810
11811         * elf/Makefile (check-data): Remove.
11812         (localplt.data): New vpath directive.
11813         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11814         instead of $(check-data).
11815         * scripts/data/localplt-generic.data: Move to ...
11816         * sysdeps/generic/localplt.data: ... here.
11817         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11818         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11819         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11821         ... here.
11822         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11824         ... here.
11825         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11826         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11827         ... here.
11828         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11830         ... here.
11831         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11833         ... here.
11834         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11835         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11836         ... here.
11837
11838 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11839
11840         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11841         PPC32 and PPC64 files.
11842         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11843         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11844
11845 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11846
11847         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11848         __makecontext_ret to ...
11849         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11850         ... here and call exit if uc_link is NULL.  New file.
11851         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11852         __makecontext_ret.S.
11853         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11854         __makecontext_ret to ...
11855         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11856         ... here and call exit if uc_link is NULL.  New file.
11857         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11858         __makecontext_ret.S.
11859
11860 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11861
11862         * elf/elf.h (R_390_IRELATIVE): New definition.
11863         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11864         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11865         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11866         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11867         (elf_machine_lazy_rel): Likewise.
11868         * sysdeps/s390/dl-irel.h: New file.
11869         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11870         * sysdeps/s390/s390-64/memset.S: New asm code.
11871         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11872         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11873         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11874         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11875         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11876         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11877         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11878         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11879         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11880         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11881         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11882         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11883         * sysdeps/s390/s390-32/memset.S: New asm code.
11884         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11885
11886 2012-07-17  Marek Polacek  <polacek@redhat.com>
11887
11888         [BZ #14349]
11889         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11890         * sysdeps/s390/s390-64/configure.in: Likewise.
11891         * sysdeps/sparc/configure.in: Likewise.
11892         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11893         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11894         * sysdeps/i386/configure.in: Likewise.
11895         * sysdeps/x86_64/configure.in: Likewise.
11896         * sysdeps/sh/configure.in: Likewise.
11897         * sysdeps/s390/s390-32/configure: Regenerated.
11898         * sysdeps/s390/s390-64/configure: Likewise.
11899         * sysdeps/x86_64/configure: Likewise.
11900         * sysdeps/sh/configure: Likewise.
11901         * sysdeps/powerpc/powerpc64/configure: Likewise.
11902         * sysdeps/powerpc/powerpc32/configure: Likewise.
11903         * sysdeps/sparc/configure: Likwise.
11904         * sysdeps/i386/configure: Likewise.
11905
11906         * elf/dl-open.c: Comment fixes.
11907
11908 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11909
11910         * Makefile [CXX] (check-data): Remove.
11911         [CXX] (c++-types.data): New vpath directive.
11912         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11913         vpath.  Do not allow for C++ type data being missing.
11914         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11915         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11916         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11917         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11918         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11919         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11920         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11922         ... here.
11923         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11925         ... here.
11926         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11928         ... here.
11929         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11931         ... here.
11932         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11934         ... here.
11935         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11937         ... here.
11938         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11940         ... here.
11941         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11942         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11943
11944         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11945         definitions to architecture-specific files.
11946         (TLS_IE): Likewise.
11947         (TLS_LD): Likewise.
11948         (TLS_GD): Likewise.
11949         * sysdeps/i386/tls-macros.h: New file.
11950         * sysdeps/powerpc/tls-macros.h: Likewise.
11951         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11952         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11953         * sysdeps/sh/tls-macros.h: Likewise.
11954         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11955         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11956         * sysdeps/x86_64/tls-macros.h: Likewise.
11957
11958 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11959
11960         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11961         zero value for regular exit case.
11962
11963         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11964         (__start_context): Preserve zero value for regular exit case.
11965
11966 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11967             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11968
11969         * manual/setjmp.texi (setcontext): Clarify normal process
11970         termination when uc_link is the null pointer.
11971         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11972         exit call.
11973
11974 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11975
11976         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11977         preprocessor.  Test for each exception mask separately.
11978
11979 2012-07-16  Andreas Jaeger  <aj@suse.de>
11980
11981         * po/ru.po: Update from translation team.
11982
11983 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11984
11985         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11986         equal to 0.
11987         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11988         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11989         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11990         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11991         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11992
11993 2012-07-13  Andreas Jaeger  <aj@suse.de>
11994
11995         * po/fr.po: Update from translation team.
11996
11997 2012-07-12  Marek Polacek  <polacek@redhat.com>
11998
11999         [BZ #14173]
12000         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12001         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12002         loop condition.
12003
12004 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12005
12006         [BZ #13717]
12007         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12008         Change to 2.4.1 where previously 2.4.0.
12009         * sysdeps/unix/sysv/linux/configure: Regenerated.
12010         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12011         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12012         version.
12013         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12014         (__ASSUME_AT_CLKTCK): Remove.
12015         (__ASSUME_AT_PAGESIZE): Likewise.
12016         (__ASSUME_AT_XID): Likewise.
12017         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12018         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12019         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12020         unconditionally.
12021         (HAVE_AUX_PAGESIZE): Likewise.
12022         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12023         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12024         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12025
12026 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12027
12028         [BZ #14307]
12029         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12030         the temporary buffer used to invoke __gethostbyname2_r,
12031         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12032         host_data / struct gaih_addrtuple.
12033         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12034         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12035         header file nss/nsswitch.h.
12036         * nss/nsswitch.h (global scope): Add definition of implementation
12037         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12038         resolv/nss_dns/dns-host.c).
12039
12040 2012-07-11  Andreas Jaeger  <aj@suse.de>
12041
12042         * po/fr.po: Update from translation team.
12043
12044         * po/sv.po: Update from translation team
12045         * po/fr.po: Another update from translation team.
12046
12047 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12048
12049         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12050         for subnormals or multiply small sinh result by itself.
12051         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12053
12054 2012-07-11  David S. Miller  <davem@davemloft.net>
12055
12056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12057
12058 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12059
12060         [BZ #14347]
12061         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12062         (INTERNAL_MARK): Shift it here.
12063
12064 2012-07-10  Marek Polacek  <polacek@redhat.com>
12065
12066         [BZ #14151]
12067         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12068         libc_cv_asm_global_directive with .globl.
12069         * configure: Regenerated.
12070         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12071         with .globl.
12072         * sysdeps/i386/configure: Regenerated.
12073         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12074         with .globl.
12075         * sysdeps/x86_64/configure: Regenerated.
12076         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12077         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12078         * elf/tst-unique2mod2.c: Likewise.
12079         * elf/tst-unique2mod1.c: Likewise.
12080         * elf/tst-unique1mod2.c: Likewise.
12081         * elf/tst-unique1mod1.c: Likewise.
12082         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12083         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12084         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12085         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12086         * sysdeps/mach/sysdep.h: Likewise.
12087         * sysdeps/i386/sysdep.h: Likewise.
12088         * sysdeps/i386/i386-mcount.S: Likewise.
12089         * sysdeps/x86_64/_mcount.S: Likewise.
12090         * sysdeps/x86_64/sysdep.h: Likewise.
12091         * sysdeps/sh/_mcount.S: Likewise.
12092         * sysdeps/sh/sysdep.h: Likewise.
12093         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12094         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12095         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12096         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12097         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12098         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12099         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12100         * locale/localeinfo.h: Likewise.
12101         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12102         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12103
12104 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12105
12106         [BZ #14336]
12107         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12108         system".
12109         * manual/message.texi (The Uniforum approach): Likewise.
12110         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12111         (glibc iconv Implementation): Likewise.
12112
12113 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12114
12115         [BZ #14337]
12116         * math/s_clog.c (__clog): Avoid scaling a value down where that
12117         could result in underflow.
12118         * math/s_clog10.c (__clog10): Likewise.
12119         * math/s_clog10f.c (__clog10f): Likewise.
12120         * math/s_clog10l.c (__clog10l): Likewise.
12121         * math/s_clogf.c (__clogf): Likewise.
12122         * math/s_clogl.c (__clogl): Likewise.
12123         * math/libm-test.inc (clog_test): Add more tests.
12124         (clog10_test): Likewise.
12125         * sysdeps/i386/fpu/libm-test-ulps: Update.
12126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12127
12128 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12129
12130         [BZ #14283]
12131         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12132         by 7 not 8 to examine high bit of fractional part.
12133
12134         [BZ #14042]
12135         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12136         for call to __mcount_internal.
12137         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12138         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12139         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12140
12141 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12142
12143         [BZ #14154]
12144         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12145         approximation for values within 0x1p-13f of an odd multiple of
12146         pi/4.
12147         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12148         exception.  Add more tests.
12149         * sysdeps/i386/fpu/libm-test-ulps: Update.
12150
12151         [BZ #6778]
12152         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12153         inputs and return -1 for them.  Do not check for +Inf in case not
12154         reachable for +Inf.
12155         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12156         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12157         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12158         and return -1 for them.  Do not check for +Inf in case not
12159         reachable for +Inf.
12160         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12161         define.
12162         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12163         and return -1 for them.  Do not check for +Inf in case not
12164         reachable for +Inf.
12165         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12166         spurious underflow.
12167         * sysdeps/i386/fpu/libm-test-ulps: Update.
12168         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12169
12170 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12171
12172         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12173
12174 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12175
12176         [BZ #14157]
12177         [BZ #14331]
12178         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12179         could result in spurious underflow.  Scale down values above
12180         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12181         * math/s_csqrtf.c (__csqrtf): Likewise.
12182         * math/s_csqrtl.c (__csqrtl): Likewise.
12183         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12184         spurious underflow.
12185         * sysdeps/i386/fpu/libm-test-ulps: Update.
12186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12187
12188 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12189
12190         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12191         xopen-msg.sed.
12192         * catgets/xopen-msg.awk: New file.
12193         * catgets/xopen-msg.sed: Removed.
12194
12195         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12196         po2text.sed.
12197         * intl/po2test.awk: New file.
12198         * intl/po2test.sed: Removed.
12199
12200 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12201
12202         [BZ #14328]
12203         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12204         or multiply small sinh result by itself.
12205         * math/s_ctanf.c (__ctanf): Likewise.
12206         * math/s_ctanh.c (__ctanh): Likewise.
12207         * math/s_ctanhf.c (__ctanhf): Likewise.
12208         * math/s_ctanhl.c (__ctanhl): Likewise.
12209         * math/s_ctanl.c (__ctanl): Likewise.
12210         * math/libm-test.inc (ctan_test_tonearest): New function.
12211         (ctan_test_towardzero): Likewise.
12212         (ctan_test_downward): Likewise.
12213         (ctan_test_upward): Likewise.
12214         (ctanh_test_tonearest): Likewise.
12215         (ctanh_test_towardzero): Likewise.
12216         (ctanh_test_downward): Likewise.
12217         (ctanh_test_upward): Likewise.
12218         (main): Call these new functions.
12219         * sysdeps/i386/fpu/libm-test-ulps: Update.
12220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12221
12222 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12223
12224         * .gitignore: Delete /ports entry.
12225
12226 2012-07-03  Andreas Jaeger  <aj@suse.de>
12227
12228         * po/bg.po: Update from translation team.
12229         * po/cs.po: Likewise.
12230         * po/de.po: Likewise.
12231         * po/hr.po: Likewise.
12232         * po/nl.pl: Likewise.
12233         * po/pl.po: Likewise.
12234         * po/vi.po: Likewise.
12235
12236 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12237
12238         * Makeconfig [!+link] (+link-before-libc): New variable.
12239         [!+link] (+link-after-libc): Likewise.
12240         [!+link] (+link-tests): Likewise.
12241         [!+link] (+link): Define in terms of $(+link-before-libc) and
12242         $(+link-after-libc).
12243         [!+link-static] (+link-static-before-libc): New variable.
12244         [!+link-static] (+link-static-after-libc): Likewise.
12245         [!+link-static] (+link-static-tests): Likewise.
12246         [!+link-static] (+link-static): Define in terms of
12247         $(+link-static-before-libc) and $(+link-static-after-libc).
12248         [build-shared] (link-libc-before-gnulib): New variable.
12249         [build-shared] (link-libc-tests): Likewise.
12250         [build-shared] (link-libc): Define in terms of
12251         $(link-libc-before-gnulib).
12252         [!build-shared] (link-libc-tests): New variable.
12253         (link-libc-static-tests): New variable.
12254         [!gnulib] (gnulib-arch): New variable.
12255         [!gnulib] (gnulib-tests): Likewise.
12256         [!gnulib] (static-gnulib-arch): Likewise.
12257         [!gnulib] (static-gnulib-tests): Likewise.
12258         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12259         Define with "=" instead of ":=".
12260         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12261         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12262         * Rules (binaries-all-notests): New variable.
12263         (binaries-all-tests): Likewise.
12264         (binaries-static-notests): Likewise.
12265         (binaries-static-tests): Likewise.
12266         (binaries-all): Define using $(binaries-all-notests) and
12267         $(binaries-all-tests).
12268         (binaries-static): Define using $(binaries-static-notests) and
12269         $(binaries-static-tests).
12270         (binaries-shared-tests): New variable.
12271         (binaries-shared-notests): Likewise.
12272         (binaries-shared): Remove variable.
12273         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12274         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12275         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12276         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12277         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12278         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12279         * elf/Makefile (sln-modules): New variable.
12280         (extra-objs): Add $(sln-modules:=.o).
12281         (ldconfig-modules): Add static-stubs.
12282         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12283         * elf/static-stubs.c: New file.
12284
12285         [BZ #14283]
12286         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12287         by 7 not 8 to examine high bit of fractional part.  Use volatile
12288         variables when splitting into final array of floats if
12289         __FLT_EVAL_METHOD__ != 0.
12290         * math/libm-test.inc (cos_test): Add another test.
12291         (sin_test): Likewise.
12292         * sysdeps/i386/fpu/libm-test-ulps: Update.
12293
12294         [BZ #14273]
12295         * math/libm-test.inc (cosh_test): Add more tests.
12296
12297         * version.h (RELEASE): Set to "development".
12298         (VERSION): Set to "2.16.90".
12299
12300 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12301
12302         * NEWS: Update copyright. Remove last-updated date.
12303         Mention math library bug fixes and timezone data changes.
12304         * README: Mention GNU/Hurd, x32, and HPPA support status.
12305
12306 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12307
12308         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12309
12310 2012-06-27  Andreas Jaeger  <aj@suse.de>
12311
12312         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12313
12314 2012-06-25  Andreas Jaeger  <aj@suse.de>
12315
12316         * sysdeps/s390/fpu/libm-test-ulps: Update.
12317
12318 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12319             Thomas Schwinge  <thomas@codesourcery.com>
12320
12321         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12322         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12323         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12324         fanotify_mark.
12325
12326 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12327
12328         * sysdeps/mach/start.c: Remove file.
12329         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12330         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12331         * sysdeps/sh/init-first.c: Likewise.
12332
12333         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12334         registers for frame unwinding purposes, add CFI directives.
12335         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12336         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12337         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12338         Likewise.
12339
12340         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12341         __fortify_fail returning.
12342         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12343
12344         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12345         sysdeps/sh/____longjmp_chk.S.
12346         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12347         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12348         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12349         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12350
12351         * sysdeps/sh/abort-instr.h: New file.
12352         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12353         process in case exit returns.
12354
12355         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12356         initialize the GOT register before use.
12357
12358         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12359         calculation of ARGC > 4.
12360
12361         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12362         meaningful names to some local labels.
12363
12364 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12365             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12366
12367         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12368         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12369         (__arch_compare_and_exchange_val_16_acq): Likewise.
12370         (__arch_compare_and_exchange_val_32_acq): Likewise.
12371         (atomic_exchange_and_add): Fix gUSA sequence.
12372         (atomic_add): Likewise.
12373         (atomic_add_negative): Likewise.
12374         (atomic_add_zero): Likewise.
12375         (atomic_bit_test_set): Likewise.
12376
12377 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12378
12379         [BZ #13579]
12380         * include/link.h (struct link_map): Add l_free_initfini.
12381         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12382         l_initfini.
12383         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12384         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12385         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12386         set.
12387
12388 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12389
12390         * configure.in: Use AC_LANG_SOURCE.
12391         * configure: Regenerate.
12392
12393 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12394
12395         * configure.in (libc_cv_localstatedir): New substituted variable.
12396         * configure: Regenerated.
12397         * config.make.in (localstatedir): New variable, substituted from
12398         libc_cv_localstatedir.
12399         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12400         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12401         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12402         * sysdeps/gnu/configure: Regenerated.
12403
12404 2012-06-21  Jeff Law  <law@redhat.com>
12405
12406         [BZ #14277]
12407         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12408         free.  Simplify list management for _LIBC case.
12409
12410 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12411
12412         [BZ #14273]
12413         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12414         Clear sign bit of 64-bit integer value before comparing against
12415         overflow value.
12416
12417         * sysdeps/mach/configure: Regenerated.
12418
12419 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12420
12421         [BZ #14278]
12422         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12423
12424 2012-06-21  Jeff Law  <law@redhat.com>
12425
12426         [BZ #13882]
12427         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12428         uint16_t for elements in the "seen" array to avoid char overflows.
12429         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12430         * elf/dl-open.c (dl_open_worker): Likewise.
12431
12432 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12433
12434         * scripts/list-sources.sh: Scan PORTS for translations.
12435         * po/libc.pot: Regenerated.
12436
12437 2012-06-21  Andreas Jaeger  <aj@suse.de>
12438
12439         [BZ #12194]
12440         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12441         warning.
12442         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12443         * bits/byteswap-16.h (__bswap_16): Likewise.
12444         * bits/byteswap.h (__bswap_constant_16): Likewise.
12445
12446 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12447
12448         [BZ #14117]
12449         * sysdeps/i386/fpu_control.h: Removed.
12450         * sysdeps/x86_64/fpu_control.h: Moved to ...
12451         * sysdeps/x86/fpu_control.h: Here.
12452
12453         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12454         (_FPU_SETCW): Likewise.
12455
12456 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12457
12458         [BZ #14117]
12459         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12460         * sysdeps/x86/fpu/bits/mathinline.h: This.
12461         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12462
12463         [BZ #14050]
12464         [BZ #14117]
12465         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12466         functions if __x86_64__ is defined.
12467
12468 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12469
12470         * string/endian.h: Add !__ASSEMBLER__ condition for including
12471         conversion interfaces.
12472
12473 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12474
12475         [BZ #14241]
12476         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12477         of ABS(x) in calculating zero to negative powers other than odd
12478         integers.
12479         * math/libm-test.inc (pow_test): Add more tests.
12480
12481 2012-06-15  Andreas Jaeger  <aj@suse.de>
12482
12483         * manual/contrib.texi (Contributors): Update entry of Liubov
12484         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12485         Machado Filho.
12486
12487 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12488
12489         * string/string.h: Add __wur to GNU version of strerror_r.
12490
12491 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12492
12493         [BZ #14229]
12494         * string/Makefile (tests): Add tst-strtok_r.
12495         * string/tst-strtok_r.c: New file.
12496         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12497         RAX_LP/RDX_LP on SAVE_PTR.
12498
12499 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12500
12501         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12502
12503 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12504
12505         * libm_test.inc (csqrt_test): Allow more spurious underflow
12506         exceptions.
12507         (j0_test): Likewise.
12508         (j1_test): Likewise.
12509         (y0_test): Likewise.
12510         (y1_test): Likewise.
12511
12512 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12513
12514         * po/Makefile (libc.pot): Use UTF-8 charset.
12515
12516 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12517
12518         [BZ #14210]
12519         Suppress sign-conversion warning from FD_SET.
12520         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12521         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12522         not unsigned long int.
12523         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12524
12525 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12526
12527         [BZ #14050]
12528         [BZ #14117]
12529         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12530         __extern_always_inline instead of __extern_inline.
12531         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12532         (__signbit): Likewise.
12533         (__signbitl): Support C++ namespace.
12534         (lrintf): New inline function.
12535         (lrint): Likewise.
12536         (llrintf): Likewise.
12537         (llrint): Likewise.
12538         (fmaxf): Likewise.
12539         (fmax): Likewise.
12540         (fminf): Likewise.
12541         (fmin): Likewise.
12542         (rint): Likewise.
12543         (rintf): Likewise.
12544         (ceil): Likewise.
12545         (ceilf): Likewise.
12546         (floor): Likewise.
12547         (floorf): Likewise.
12548         (nearbyint): Likewise.
12549         (nearbyintf): Likewise.
12550
12551 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12552
12553         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12554         non-default versions.
12555
12556 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12557
12558         [BZ #14218]
12559         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12560
12561 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12562
12563         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12564         (FE_UPWARD, FE_DOWNWARD): Don't define.
12565         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12566         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12567
12568         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12569         reading it.
12570         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12571         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12572
12573 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12574
12575         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12576         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12577         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12578         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12579
12580 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12581
12582         [BZ #14117]
12583         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12584         * sysdeps/i386/fpu/Implies: New file.
12585         * sysdeps/x86_64/fpu/Implies: Likewise.
12586         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12587         * sysdeps/x86/fpu/bits/fenv.h: This.
12588
12589         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12590         __SSE_MATH__.
12591
12592 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12593
12594         [BZ #14134]
12595         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12596         character 0xffff that matches the last element of the
12597         conversion table.
12598
12599 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12600
12601         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12602         fmodl commit.
12603
12604 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12605
12606         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12607         values higher than 25.6283.
12608
12609 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12610
12611         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12612         subnormal exponent extraction and add some __builtin_expect.
12613         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12614         Fix for subnormal mantissa calculation.
12615
12616 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12617
12618         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12619         cpu2 is -1 and errno is not ENOSYS.
12620
12621 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12622
12623         [BZ #14117]
12624         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12625         * sysdeps/x86/bits/string.h: This.
12626         * sysdeps/x86_64/bits/string.h: Removed.
12627
12628         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12629         if not compiling for x86-64, but compiling for >= i486.
12630
12631         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12632         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12633
12634         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12635         New macro from Linux kernel 3.4.0.
12636         (FP_XSTATE_MAGIC2): Likewise.
12637         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12638         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12639         (struct _fpx_sw_bytes): New struct.
12640         (struct _xsave_hdr): Likewise.
12641         (struct _ymmh_state): Likewise.
12642         (struct _xstate): Likewise.
12643
12644         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12645         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12646         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12647         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12648         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12649         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12650
12651         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12652         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12653         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12654         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12655         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12656         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12657
12658 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12659
12660         [BZ #13743]
12661         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12662         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12663         (sysdep_headers): Include sys/platform/ppc.h.
12664         * sysdeps/powerpc/test-gettimebase.c: Test for
12665         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12666         * manual/Makefile (appendices): Include platform.texi.
12667         * manual/contrib.texi (Contributors): Update @node pointers.
12668         * manual/maint.texi (Maintenance): Likewise.
12669         (Platform): New node.
12670         * manual/platform.texi: New file.  Document the new features.
12671
12672 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12673             Jakub Jelinek  <jakub@redhat.com>
12674
12675         [BZ #14188]
12676         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12677         where __builtin_expect is unavailable.
12678
12679 2012-06-03  David S. Miller  <davem@davemloft.net>
12680
12681         * stdlib/longlong.h: Updated from GCC.
12682
12683 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12684
12685         [BZ #14042]
12686         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12687         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12688         __mcount_internal.
12689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12690         (GLIBC_2.16): Likewise.
12691
12692 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12693
12694         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12695
12696 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12697
12698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12699         (default-abi): New variable.
12700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12701         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12702         variable.
12703         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12704         Likewise.
12705         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12706         Likewise.
12707         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12708         Likewise.
12709
12710         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12711         definition.  Document in comment.
12712
12713 2012-06-01  David S. Miller  <davem@davemloft.net>
12714
12715         * stdlib/longlong.h: Updated from GCC.
12716
12717 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12718
12719         [BZ #14117]
12720         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12721         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12722         sys/debugreg.h sys/io.h here.
12723         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12724         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12725         sys/io.h.
12726         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12727         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12728         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12729         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12730         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12731         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12732
12733         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12734         Define only if __x86_64__ is defined.
12735
12736 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12737
12738         [BZ #14048]
12739         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12740         Use int64_t for variable i.
12741         * math/libm-test.inc (fmod_test): Add more tests.
12742
12743         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12744         z computation is not scheduled after fetestexcept.
12745         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12746         Use math_force_eval instead of asm to ensure calculation scheduled
12747         before exception test.
12748         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12749         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12750
12751 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12752
12753         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12754         computation is not scheduled after fetestexcept.
12755
12756 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12757
12758         [BZ #14117]
12759         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12760         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12761
12762 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12763
12764         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12765         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12766
12767 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12768
12769         [BZ #14117]
12770         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12771         <bits/wordsize.h>.
12772         (__WCHAR_MIN): Support __WORDSIZE == 64.
12773         (__WCHAR_MAX): Likewise.
12774
12775         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12776         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12777
12778         [BZ #14183]
12779         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12780         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12781
12782         [BZ #14117]
12783         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12784         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12785
12786         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12787         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12788
12789         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12790         Defined to 1 if __x86_64__ isn't defined.
12791         (_STAT_VER_LINUX_OLD): New.
12792         (st_atime): Remove duplicate.
12793         (st_mtime): Likewise.
12794         (st_ctime): Likewise.
12795
12796 2012-05-31  David S. Miller  <davem@davemloft.net>
12797
12798         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12799         entries.
12800
12801 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12802
12803         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12804         gen-libm-test.pl.
12805
12806         [BZ #14132]
12807         * elf/dl-reloc.c: Include <_itoa.h>.
12808         (_dl_reloc_bad_type): Remove use of INTUSE.
12809         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12810         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12811         * stdio-common/psiginfo.c (psiginfo): Likewise.
12812         * stdio-common/psignal.c (psignal): Likewise.
12813         * string/strsignal.c (strsignal): Likewise.
12814         * include/signal.h (_sys_siglist): Declare hidden proto.
12815         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12816         INTVARDEF with libc_hidden_data_def.
12817         * stdio-common/itoa-udigits.c: Likewise.
12818         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12819         (_itoa_lower_digits_internal): Remove declaration.
12820         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12821         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12822         (_sys_sigabbrev_internal): Remove aliases.
12823         (_sys_siglist): Define hidden alias.
12824
12825 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12826
12827         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12828         bits/sysctl.h.
12829
12830 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12831
12832         [BZ #14117]
12833         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12834         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12835
12836         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12837         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12838         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12839         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12840         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12841         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12842
12843         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12844         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12845         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12846
12847         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12848         with __addr.
12849         (insw): Likewise.
12850         (insl): Likewise.
12851         (outsb): Likewise.
12852         (outsw): Likewise.
12853         (outsl): Likewise.
12854
12855         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12856         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12857         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12858
12859         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12860         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12861         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12862         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12863         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12864         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12865
12866         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12867         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12868
12869         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12870         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12871
12872         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12873         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12874         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12875
12876         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12877         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12878         to ...
12879         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12880
12881         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12882         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12883         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12884
12885         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12886         for x86-64.
12887         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12888
12889 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12890
12891         * math/math.h (M_El): Use two more decimal places.
12892         (M_LOG2El): Likewise.
12893         (M_LOG10El): Likewise.
12894         (M_LN2l): Likewise.
12895         (M_LN10l): Likewise.
12896         (M_PIl): Likewise.
12897         (M_PI_2l): Likewise.
12898         (M_PI_4l): Likewise.
12899         (M_1_PIl): Likewise.
12900         (M_2_PIl): Likewise.
12901         (M_2_SQRTPIl): Likewise.
12902         (M_SQRT2l): Likewise.
12903         (M_SQRT1_2l): Likewise.
12904
12905 2012-05-31  David S. Miller  <davem@davemloft.net>
12906
12907         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12908         values between float registers.
12909         * sysdeps/sparc/sparc64/memset.S: Likewise.
12910         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12911
12912 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12913
12914         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12915         -D_FORTIFY_SOURCE=1.
12916         (CPPFLAGS-tst-longjmp_chk.c): Define.
12917         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12918         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12919         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12920         CFLAGS-tst-wchar-h.c.
12921
12922 2012-05-31  Marek Polacek  <polacek@redhat.com>
12923
12924         [BZ #14132]
12925         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12926         __endmntent_internal): Remove declaration.
12927         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12928         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12929         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12930
12931 2012-05-30  David S. Miller  <davem@davemloft.net>
12932
12933         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12934         (___Q_simulate_exceptions): Use real FP ops rather than writing
12935         into the %fsr.
12936         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12937         Likewise.
12938
12939 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12940
12941         [BZ #14117]
12942         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12943         * sysdeps/x86/bits/xtitypes.h: This.
12944
12945         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12946         * sysdeps/x86/bits/wordsize.h: This.
12947
12948         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12949         * sysdeps/x86/bits/huge_vall.h: This.
12950
12951         * sysdeps/i386/bits/select.h: Removed.
12952         * sysdeps/x86_64/bits/select.h: Renamed to ...
12953         * sysdeps/x86/bits/select.h: This.
12954
12955         * sysdeps/i386/bits/setjmp.h: Removed.
12956         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12957         * sysdeps/x86/bits/setjmp.h: This.
12958
12959         * sysdeps/i386/bits/mathdef.h: Removed.
12960         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12961         * sysdeps/x86/bits/mathdef.h: This.
12962
12963 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12964
12965         [BZ #14132]
12966         * include/sys/socket.h (__connect_internal)
12967         (__libc_sa_len_internal): Remove declaration.
12968         (__connect, __libc_sa_len): Declare hidden_proto.
12969         (SA_LEN): Remove use of INTUSE.
12970         * socket/connect.c: Add libc_hidden_def.
12971         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12972         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12973         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12974         alias.
12975         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12976         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12977         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12978         of adding _internal alias.
12979
12980 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12981
12982         [BZ #14117]
12983         * sysdeps/i386/bits/link.h: Removed.
12984         * sysdeps/i386/bits/linkmap.h: Likewise.
12985         * sysdeps/x86_64/bits/link.h: Renamed to ...
12986         * sysdeps/x86/bits/link.h: This.
12987         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12988         * sysdeps/x86/bits/linkmap.h: This.
12989
12990         * sysdeps/i386/bits/endian.h: Removed.
12991         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12992         * sysdeps/x86/bits/endian.h: This.
12993
12994         * sysdeps/i386/bits/byteswap.h: Removed.
12995         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12996         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12997         * sysdeps/x86/bits/byteswap.h: This.
12998         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12999         * sysdeps/x86/bits/byteswap-16.h: This.
13000         * sysdeps/i386/Implies: Add x86.
13001         * sysdeps/x86_64/Implies: Likewise.
13002
13003 2012-05-30  David S. Miller  <davem@davemloft.net>
13004
13005         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13006         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13007         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13008         (FP_TRAPPING_EXCEPTIONS): Define.
13009         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13010         (FP_TRAPPING_EXCEPTIONS): Define.
13011         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13012         subnormals only when inexact has been signalled or underflow
13013         exceptions are enabled.
13014         (_FP_PACK_CANONICAL): Likewise.
13015
13016 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13017
13018         [BZ #14183]
13019         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13020         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13021
13022 2012-05-30  Richard Henderson  <rth@twiddle.net>
13023
13024         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13025         with #ifndef NOT_IN_libc.
13026
13027         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13028         marked to avoid plt entry.
13029
13030 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13031
13032         [BZ #14112]
13033         * Makeconfig (default-abi): New macro.
13034         (abi-includes): Likewise.
13035         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13036         $(abi-$(default-abi)-lib-soname) for soname if defined.
13037         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13038         abi-variants.
13039         * Makefile (installed-stubs): Likewise.
13040         * include/stubs-biarch.h: Removed.
13041         * scripts/lib-names.awk: Only handle one library at a time.
13042         * scripts/soversions.awk: Remove WORDSIZE support.
13043         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13044         entries.
13045         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13046         Removed.
13047         (syscall-list-default-condition): Likewise.
13048         (syscall-list-default-condition): Likewise.
13049         (syscall-list-includes): Likewise.
13050         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13051         syscall-list-* with abi-*.  Handle undefined abi-variants.
13052         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13053         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13054         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13055         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13056         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13057         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13058         Removed.
13059         (syscall-list-32-options): Likewise.
13060         (syscall-list-32-condition): Likewise.
13061         (syscall-list-64-options): Likewise.
13062         (syscall-list-64-condition): Likewise.
13063         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13064         macro.
13065         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13066         Renamed to ...
13067         (abi-*): This.
13068         (abi-64-ld-soname): New macro.
13069         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13070         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13071         Renamed to ...
13072         (abi-*): This.
13073         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13074         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13075
13076 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13077
13078         * sysdeps/unix/sysv/linux/kernel-features.h
13079         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13080         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13081         include <kernel-features.h>.
13082         [!__NR_ftruncate64]: Remove conditional code.
13083         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13084         [__NR_ftruncate64]: Make code unconditional.
13085         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13086         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13087         include <kernel-features.h>.
13088         [!__NR_ftruncate64]: Remove conditional code.
13089         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13090         [__NR_ftruncate64]: Make code unconditional.
13091         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13093         include <kernel-features.h>.
13094         [!__NR_ftruncate64]: Remove conditional code.
13095         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13096         [__NR_ftruncate64]: Make code unconditional.
13097         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13099         include <kernel-features.h>.
13100         [!__NR_ftruncate64]: Remove conditional code.
13101         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13102         [__NR_ftruncate64]: Make code unconditional.
13103         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13104
13105         * configure.in (libc_cv_fpie): Weaken to a compile test using
13106         LIBC_TRY_CC_OPTION.
13107         * configure: Regenerated.
13108
13109 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13110
13111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13112         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13115         Refreshed.
13116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13122         Refreshed.
13123
13124 2012-05-27  David S. Miller  <davem@davemloft.net>
13125
13126         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13127         (___Q_zero): New.
13128         (__Q_simulate_exceptions): Return void.  Change to simulate
13129         exceptions by writing into the %fsr.
13130         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13131         (__Qp_handle_exceptions): Likewise.
13132         (numbers): Delete.
13133         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13134         __Qp_handle_exceptions.
13135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13136         __Qp_handle_exceptions.
13137         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13138         as unused and give dummy FP_RND_NEAREST initializer.
13139         (FP_INHIBIT_RESULTS): Define.
13140         (___Q_simulate_exceptions): Update declaration.
13141         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13142         formatting.
13143         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13144         as unused and give dummy FP_RND_NEAREST initializer.
13145         (__Qp_handle_exceptions): Update declaration.
13146         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13147         formatting.
13148
13149 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13150
13151         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13152         the temporary FPU control word.
13153         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13154         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13155         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13156         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13157         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13158         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13159         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13160         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13161         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13162         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13163         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13164
13165 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13166
13167         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13168         fields.
13169
13170 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13171
13172         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13173         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13174         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13175         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13176         Likewise.
13177         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13178         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13179         Likewise.
13180
13181 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13182
13183         * po/h.po: Update from translation team.
13184
13185 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13186
13187         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13188
13189         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13190         handling of denormals.
13191         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13192         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13193         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13194         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13195         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13196         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13197         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13198         Likewise.
13199
13200 2012-05-26  Marek Polacek  <polacek@redhat.com>
13201
13202         [BZ #14152]
13203         * math/libm-test.inc (fma_test): Don't always expect underflow
13204         exception.
13205
13206 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13207
13208         [BZ #12416]
13209         * elf/tst-execstack.c: Include stackinfo.h.
13210         (do_test): Adjust test case to ensure that pthread_getattr_np
13211         behaviour remains the same after marking stack executable.
13212
13213 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13214
13215         * sysdeps/unix/sysv/linux/kernel-features.h
13216         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13217         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13218         kernel-features.h.
13219         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13220         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13221         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13222         kernel-features.h.
13223         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13224         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13225
13226 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13227
13228         * configure.in: Define the default includes to being none.
13229         * configure: Regenerated.
13230
13231 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13232
13233         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13234         * sysdeps/x86_64/setjmp.S: Likewise.
13235         * sysdeps/i386/bsd-setjmp.S: Likewise.
13236         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13237         * sysdeps/i386/setjmp.S: Likewise.
13238         * sysdeps/i386/__longjmp.S: Likewise.
13239         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13240         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13241
13242         * include/stap-probe.h: New file.
13243         * configure.in: Handle --enable-systemtap.
13244         * configure: Regenerated.
13245         * config.h.in (USE_STAP_PROBE): New #undef.
13246         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13247         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13248         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13249
13250 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13251
13252         [BZ #13717]
13253         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13254         to 2.4.0 where earlier.
13255         * sysdeps/unix/sysv/linux/configure: Regenerated.
13256         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
13265         [__ASSUME_32BITUIDS]: Make code unconditional.
13266         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13267         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13268         <kernel-features.h>.
13269         [__ASSUME_32BITUIDS]: Make code unconditional.
13270         [!__ASSUME_32BITUIDS]: Remove conditional code.
13271         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13272         <kernel-features.h>.
13273         [__ASSUME_32BITUIDS]: Make code unconditional.
13274         [!__ASSUME_32BITUIDS]: Remove conditional code.
13275         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13276         <kernel-features.h>.
13277         [__ASSUME_32BITUIDS]: Make code unconditional.
13278         [!__ASSUME_32BITUIDS]: Remove conditional code.
13279         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13280         <kernel-features.h>.
13281         [__ASSUME_32BITUIDS]: Make code unconditional.
13282         [!__ASSUME_32BITUIDS]: Remove conditional code.
13283         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13284         <kernel-features.h>.
13285         [__ASSUME_32BITUIDS]: Make code unconditional.
13286         [!__ASSUME_32BITUIDS]: Remove conditional code.
13287         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13288         <kernel-features.h>.
13289         [__ASSUME_32BITUIDS]: Make code unconditional.
13290         [!__ASSUME_32BITUIDS]: Remove conditional code.
13291         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13292         <kernel-features.h>.
13293         [__ASSUME_32BITUIDS]: Make code unconditional.
13294         [!__ASSUME_32BITUIDS]: Remove conditional code.
13295         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13296         <kernel-features.h>.
13297         [__ASSUME_32BITUIDS]: Make code unconditional.
13298         [!__ASSUME_32BITUIDS]: Remove conditional code.
13299         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13300         <kernel-features.h>.
13301         [__ASSUME_32BITUIDS]: Make code unconditional.
13302         [!__ASSUME_32BITUIDS]: Remove conditional code.
13303         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13304         <kernel-features.h>.
13305         [__ASSUME_32BITUIDS]: Make code unconditional.
13306         [!__ASSUME_32BITUIDS]: Remove conditional code.
13307         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13308         <kernel-features.h>.
13309         [__NR_setresgid] (__setresgid): Do not declare.
13310         [__ASSUME_32BITUIDS]: Make code unconditional.
13311         [!__ASSUME_32BITUIDS]: Remove conditional code.
13312         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13313         <kernel-features.h>.
13314         [__NR_setresuid] (__setresuid): Do not declare.
13315         [__ASSUME_32BITUIDS]: Make code unconditional.
13316         [!__ASSUME_32BITUIDS]: Remove conditional code.
13317         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13318         <kernel-features.h>.
13319         [__ASSUME_32BITUIDS]: Make code unconditional.
13320         [!__ASSUME_32BITUIDS]: Remove conditional code.
13321         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13322         <kernel-features.h>.
13323         [__ASSUME_32BITUIDS]: Make code unconditional.
13324         [!__ASSUME_32BITUIDS]: Remove conditional code.
13325         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13326         <kernel-features.h>.
13327         [__ASSUME_32BITUIDS]: Make code unconditional.
13328         [!__ASSUME_32BITUIDS]: Remove conditional code.
13329         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13330         <kernel-features.h>.
13331         [__ASSUME_32BITUIDS]: Make code unconditional.
13332         [!__ASSUME_32BITUIDS]: Remove conditional code.
13333         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13334         <kernel-features.h>.
13335         [__ASSUME_32BITUIDS]: Make code unconditional.
13336         [!__ASSUME_32BITUIDS]: Remove conditional code.
13337         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13338         <kernel-features.h>.
13339         [__ASSUME_32BITUIDS]: Make code unconditional.
13340         [!__ASSUME_32BITUIDS]: Remove conditional code.
13341         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13342         <kernel-features.h>.
13343         [__ASSUME_32BITUIDS]: Make code unconditional.
13344         [!__ASSUME_32BITUIDS]: Remove conditional code.
13345         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13346         <kernel-features.h>.
13347         [__ASSUME_32BITUIDS]: Make code unconditional.
13348         [!__ASSUME_32BITUIDS]: Remove conditional code.
13349         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13350         <kernel-features.h>.
13351         [__ASSUME_32BITUIDS]: Make code unconditional.
13352         [!__ASSUME_32BITUIDS]: Remove conditional code.
13353         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13354         <kernel-features.h>.
13355         [__ASSUME_32BITUIDS]: Make code unconditional.
13356         [!__ASSUME_32BITUIDS]: Remove conditional code.
13357         * sysdeps/unix/sysv/linux/kernel-features.h
13358         (__ASSUME_SETRESUID_SYSCALL): Remove.
13359         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13360         (__ASSUME_32BITUIDS): Likewise.
13361         (__ASSUME_LDT_WORKS): Likewise.
13362         (__ASSUME_O_DIRECTORY): Likewise.
13363         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13364         architecture but not kernel version.
13365         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13366         (__ASSUME_MMAP2_SYSCALL): Likewise.
13367         (__ASSUME_STAT64_SYSCALL): Likewise.
13368         (__ASSUME_IPC64): Likewise.
13369         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13370         <kernel-features.h>.
13371         [__ASSUME_32BITUIDS]: Make code unconditional.
13372         [!__ASSUME_32BITUIDS]: Remove conditional code.
13373         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13374         <kernel-features.h>.
13375         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13376         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13377         132096]: Remove conditional code.
13378         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13379         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13380         <kernel-features.h>.
13381         [__ASSUME_32BITUIDS]: Make code unconditional.
13382         [!__ASSUME_32BITUIDS]: Remove conditional code.
13383         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13384         <kernel-features.h>.
13385         [__ASSUME_32BITUIDS]: Make code unconditional.
13386         [!__ASSUME_32BITUIDS]: Remove conditional code.
13387         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13388         <kernel-features.h>.
13389         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13390         unconditional.
13391         (__setresgid): Do not declare.
13392         [__ASSUME_32BITUIDS]: Make code unconditional.
13393         [!__ASSUME_32BITUIDS]: Remove conditional code.
13394         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13395         <kernel-features.h>.
13396         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13397         unconditional.
13398         (__setresuid): Do not declare.
13399         [__ASSUME_32BITUIDS]: Make code unconditional.
13400         [!__ASSUME_32BITUIDS]: Remove conditional code.
13401         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13402         <kernel-features.h>.
13403         [__ASSUME_32BITUIDS]: Make code unconditional.
13404         [!__ASSUME_32BITUIDS]: Remove conditional code.
13405         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13406         <kernel-features.h>.
13407         [__ASSUME_32BITUIDS]: Make code unconditional.
13408         [!__ASSUME_32BITUIDS]: Remove conditional code.
13409
13410 2012-05-25  Richard Henderson  <rth@twiddle.net>
13411
13412         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13413         dl_hwcap to ifunc resolver.
13414         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13415         elf_ifunc_invoke.
13416         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13417         dl_hwcap to ifunc resolver.
13418         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13419
13420 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13421
13422         [BZ #14153]
13423         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13424         for |x| <= 2**-26, not 2**-57.
13425         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13426         exception.
13427
13428 2012-05-24  Jeff Law  <law@redhat.com>
13429
13430         * stdio-common/Makefile (tests): Add bug25.
13431         * stdio-common/bug25.c: New test.
13432
13433 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13434
13435         [BZ #13576]
13436         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13437         multiple of MALLOC_ALIGNMENT in size.
13438         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13439
13440 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13441
13442         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13443         Require >= 256.
13444         (FILENAME_MAX): Use macro-int-constant.
13445         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13446         (_IOFBF): Use macro-int-constant.
13447         (_IOLBF): Likewise.
13448         (_IONBF): Likewise.
13449         (SEEK_CUR): Likewise.
13450         (SEEK_END): Likewise.
13451         (SEEK_SET): Likewise.
13452         (TMP_MAX): Likewise.
13453         (EOF): Use macro-int-constant.  Require < 0.
13454         (NULL): Use macro-constant.  Require == 0.
13455         (stdin): Require type to be FILE *.
13456         (stdout): Likewise.
13457         (stderr): Likewise.
13458         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13459         macro-int-constant.
13460         (EXIT_SUCCESS): Likewise.
13461         (NULL): Use macro-constant.  Require == 0.
13462         (RAND_MAX): Use macro-int-constant.
13463         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13464         [C99-based standards] (strtof): Require function.
13465         [C99-based standards] (strtold): Likewise.
13466         [C99-based standards] (strtoll): Likewise.
13467         [C99-based standards] (strtoull): Likewise.
13468         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13469         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13470         [ISO || ISO99 || ISO11] (math.h): Likewise.
13471         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13472         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13473         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13474
13475 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13476
13477         [BZ #14132]
13478         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13479         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13480         * intl/dgettext.c (DCGETTEXT): Likewise.
13481         * intl/gettext.c (DCGETTEXT): Likewise.
13482         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13483         * posix/regex_internal.h (gettext): Likewise.
13484         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13485         Remove declaration.
13486         * include/argz.h (__argz_count_internal)
13487         (__argz_stringify_internal): Remove declaration.
13488         (__argz_count, __argz_stringify): Declare hidden proto.
13489         * intl/dcgettext.c: Remove use of INTDEF.
13490         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13491         * string/argz-stringify.c: Likewise.
13492         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13493         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13494         Declare hidden proto.
13495         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13496         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13497         Declare hidden proto.
13498         * include/stdio.h (__asprintf_internal): Don't declare.
13499         (__asprintf): Don't define as macro.  Declare hidden proto.
13500         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13501         (__fsetlocking): Declare hidden proto.
13502         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13503         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13504         hidden proto.
13505         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13506         (_IO_setlinebuf): Remove use of INTUSE.
13507         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13508         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13509         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13510         Remove declaration.
13511         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13512         (_IO_do_flush): Remove use of INTUSE.
13513         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13514         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13515         (_IO_adjust_column, _IO_least_wmarker)
13516         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13517         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13518         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13519         (_IO_default_doallocate, _IO_wdefault_doallocate)
13520         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13521         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13522         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13523         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13524         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13525         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13526         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13527         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13528         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13529         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13530         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13531         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13532         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13533         proto.
13534         (_IO_flush_all_internal, _IO_adjust_column_internal)
13535         (_IO_default_uflow_internal, _IO_default_finish_internal)
13536         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13537         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13538         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13539         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13540         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13541         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13542         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13543         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13544         (_IO_file_close_internal, _IO_file_close_it_internal)
13545         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13546         (_IO_file_init_internal, _IO_file_attach_internal)
13547         (_IO_file_fopen_internal, _IO_file_read_internal)
13548         (_IO_file_sync_internal, _IO_file_seek_internal)
13549         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13550         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13551         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13552         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13553         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13554         (_IO_list_all_internal, _IO_link_in_internal)
13555         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13556         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13557         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13558         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13559         (_IO_do_write_internal, _IO_padn_internal)
13560         (_IO_getline_info_internal, _IO_getline_internal)
13561         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13562         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13563         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13564         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13565         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13566         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13567         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13568         with libc_hidden_ver, remove use of INTUSE.
13569         * libio/genops.c: Likewise.
13570         * libio/freopen.c: Likewise.
13571         * libio/freopen64.c: Likewise.
13572         * libio/iofclose.c: Likewise.
13573         * libio/iofdopen.c: Likewise.
13574         * libio/iofflush.c: Likewise.
13575         * libio/iofflush_u.c: Likewise.
13576         * libio/iofgets.c: Likewise.
13577         * libio/iofgets_u.c: Likewise.
13578         * libio/iofopen.c: Likewise.
13579         * libio/iofopncook.c: Likewise.
13580         * libio/iofread.c: Likewise.
13581         * libio/iofread_u.c: Likewise.
13582         * libio/ioftell.c: Likewise.
13583         * libio/iofwrite.c: Likewise.
13584         * libio/iogetline.c: Likewise.
13585         * libio/iogets.c: Likewise.
13586         * libio/iogetwline.c: Likewise.
13587         * libio/iopadn.c: Likewise.
13588         * libio/iopopen.c: Likewise.
13589         * libio/ioseekoff.c: Likewise.
13590         * libio/ioseekpos.c: Likewise.
13591         * libio/iosetbuffer.c: Likewise.
13592         * libio/iosetvbuf.c: Likewise.
13593         * libio/ioungetc.c: Likewise.
13594         * libio/ioungetwc.c: Likewise.
13595         * libio/iovdprintf.c: Likewise.
13596         * libio/iovsprintf.c: Likewise.
13597         * libio/iovsscanf.c: Likewise.
13598         * libio/memstream.c: Likewise.
13599         * libio/obprintf.c: Likewise.
13600         * libio/oldfileops.c: Likewise.
13601         * libio/oldiofclose.c: Likewise.
13602         * libio/oldiofdopen.c: Likewise.
13603         * libio/oldiofopen.c: Likewise.
13604         * libio/oldiopopen.c: Likewise.
13605         * libio/oldstdfiles.c: Likewise.
13606         * libio/putc.c: Likewise.
13607         * libio/setbuf.c: Likewise.
13608         * libio/setlinebuf.c: Likewise.
13609         * libio/stdfiles.c: Likewise.
13610         * libio/strops.c: Likewise.
13611         * libio/vasprintf.c: Likewise.
13612         * libio/vscanf.c: Likewise.
13613         * libio/vsnprintf.c: Likewise.
13614         * libio/vswprintf.c: Likewise.
13615         * libio/wfiledoalloc.c: Likewise.
13616         * libio/wfileops.c: Likewise.
13617         * libio/wgenops.c: Likewise.
13618         * libio/wmemstream.c: Likewise.
13619         * libio/wstrops.c: Likewise.
13620         * libio/__fpurge.c: Likewise.
13621         * libio/__fsetlocking.c: Likewise.
13622         * assert/assert.c: Likewise.
13623         * debug/fgets_chk.c: Likewise.
13624         * debug/fgets_u_chk.c: Likewise.
13625         * debug/fread_chk.c: Likewise.
13626         * debug/fread_u_chk.c: Likewise.
13627         * debug/gets_chk.c: Likewise.
13628         * debug/obprintf_chk.c: Likewise.
13629         * debug/vasprintf_chk.c: Likewise.
13630         * debug/vdprintf_chk.c: Likewise.
13631         * debug/vsnprintf_chk.c: Likewise.
13632         * debug/vsprintf_chk.c: Likewise.
13633         * malloc/mtrace.c: Likewise.
13634         * misc/error.c: Likewise.
13635         * misc/syslog.c: Likewise.
13636         * stdio-common/asprintf.c: Likewise.
13637         * stdio-common/fxprintf.c: Likewise.
13638         * stdio-common/getw.c: Likewise.
13639         * stdio-common/isoc99_fscanf.c: Likewise.
13640         * stdio-common/isoc99_scanf.c: Likewise.
13641         * stdio-common/isoc99_vfscanf.c: Likewise.
13642         * stdio-common/isoc99_vscanf.c: Likewise.
13643         * stdio-common/isoc99_vsscanf.c: Likewise.
13644         * stdio-common/printf-prs.c: Likewise.
13645         * stdio-common/printf_fp.c: Likewise.
13646         * stdio-common/printf_fphex.c: Likewise.
13647         * stdio-common/printf_size.c: Likewise.
13648         * stdio-common/putw.c: Likewise.
13649         * stdio-common/scanf.c: Likewise.
13650         * stdio-common/sprintf.c: Likewise.
13651         * stdio-common/tmpfile.c: Likewise.
13652         * stdio-common/vfprintf.c: Likewise.
13653         * stdio-common/vfscanf.c: Likewise.
13654         * stdlib/strfmon_l.c: Likewise.
13655         * sunrpc/openchild.c: Likewise.
13656         * sunrpc/xdr_stdio.c: Likewise.
13657         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13658         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13659
13660 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13661
13662         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13663
13664         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13665         in the third column, to generate for the shared library an IFUNC
13666         that uses _dl_vdso_vsym.
13667         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13668         * Makeconfig (object-suffixes-noshared): New variable.
13669
13670         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13671         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13672         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13673         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13674
13675         [BZ #14132]
13676         * include/sys/time.h (__gettimeofday): Remove macro.
13677         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13678         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13679         Remove INTDEF.
13680         (__gettimeofday): Add libc_hidden_def.
13681         (gettimeofday): Add libc_hidden_weak.
13682         * sysdeps/mach/gettimeofday.c: Likewise.
13683         * sysdeps/posix/gettimeofday.c: Likewise.
13684         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13685         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13686         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13687         (__gettimeofday_internal): Remove strong_alias.
13688         (__gettimeofday): Add libc_hidden_def.
13689         (gettimeofday): Add libc_hidden_weak.
13690         * sysdeps/unix/syscalls.list (gettimeofday):
13691         Remove __gettimeofday_internal alias.
13692
13693 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13694             H.J. Lu  <hongjiu.lu@intel.com>
13695
13696         [BZ #12495]
13697         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13698         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13699         (largebin_index_32_big): New.
13700         (largebin_index): Use it for 16-byte alignment.
13701         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13702         correction with front_misalign.
13703
13704 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13705
13706         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13707         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13708         Likewise.
13709         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13710         Likewise.
13711         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13712         Likewise.
13713         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13714         Likewise.
13715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13716         Likewise.
13717         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13718         Likewise.
13719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13720         Likewise.
13721         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13722         Likewise.
13723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13724         Likewise.
13725         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13726         Likewise.
13727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13728         Likewise.
13729         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13730         Likewise.
13731
13732         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13733         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13734
13735 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13736
13737         [BZ #10846]
13738         [BZ #14036]
13739         * math/libm-test.inc (exp_test): Add test from bug 14036.
13740         (pow_test): Add test from bug 10846.
13741
13742         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13743         and other flags.
13744         (special_function): Do not include flags in test name.
13745         (parse_args): Likewise.
13746         * sysdeps/i386/fpu/libm-test-ulps: Update.
13747         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13748         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13749         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13751
13752         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13753         exceptions.
13754         * math/libm-test.inc ("Philosophy"): Update comment about
13755         exception testing.
13756         (UNDERFLOW_EXCEPTION): New macro.
13757         (UNDERFLOW_EXCEPTION_OK): Likewise.
13758         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13759         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13760         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13761         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13762         (INVALID_EXCEPTION_OK): Update value.
13763         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13764         (OVERFLOW_EXCEPTION_OK): Likewise.
13765         (IGNORE_ZERO_INF_SIGN): Likewise.
13766         (test_exceptions): Handle underflow exceptions.
13767         (acos_test): Update for underflow exception expectations.
13768         (cexp_test): Likewise.
13769         (clog_test): Likewise.
13770         (clog10_test): Likewise.
13771         (csqrt_test): Likewise.
13772         (ctan_test): Likewise.
13773         (ctanh_test): Likewise.
13774         (exp_test): Likewise.
13775         (exp10_test): Likewise.
13776         (exp2_test): Likewise.
13777         (expm1_test): Likewise.
13778         (fma_test): Likewise.
13779         (j0_test): Likewise.
13780         (jn_test): Likewise.
13781         (nexttoward_test): Likewise.
13782         (pow_test): Likewise.
13783         (scalbn_test): Likewise.
13784         (scalbln_test): Likewise.
13785         (tan_test): Likewise.
13786         (y1_test): Likewise.
13787         * sysdeps/i386/fpu/libm-test-ulps: Update.
13788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13789
13790 2012-05-23  David S. Miller  <davem@davemloft.net>
13791
13792         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13793         (__libc_sigaction): Remove unused local variables.
13794
13795 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13796
13797         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13798
13799 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         mktime: avoid signed integer overflow
13802         * time/mktime.c (__mktime_internal): Do not mishandle the case
13803         where diff == INT_MIN.
13804
13805         mktime: simplify computation of average
13806         * time/mktime.c (ranged_convert): Use new time_t_avg function
13807         instead of rolling our own (probably-slower) code.
13808
13809         mktime: do not assume signed right shift propagates sign bit
13810         * time/mktime.c (isdst_differ): New static function.
13811         (__mktime_internal): No need to normalize tm_isdst now.
13812         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13813         tm_isdst values.
13814
13815         mktime: merge another wrapv change from gnulib
13816         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13817         from some compilers.
13818
13819         mktime: remove incorrect attempt at unusual arithmetics
13820         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13821         The code didn't really work on such machines anyway.
13822         (TYPE_MINIMUM): Assume two's complement.
13823         (twos_complement_arithmetic): Verify that long_int and time_t
13824         are two's complement (or unsigned, in the latter case).
13825
13826         mktime: check signed shifts on long_int and time_t, too
13827         * time/mktime.c (SHR): Check that shifts work as desired
13828         on the types long_int and time_t too, as SHR is used on
13829         such types.
13830
13831         mktime: do not assume 'long' is wide enough
13832         * time/mktime.c (verify): Move decl up.
13833         (long_int): New type.
13834         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13835         to remove assumption in the code that 'long' is wide enough to
13836         store year values.  This assumption is not true on x32 and on
13837         some non-glibc platforms.
13838
13839         mktime: merge wrapv change from gnulib
13840         * time/mktime.c (WRAPV): New macro.
13841         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13842         (guess_time_tm, __mktime_internal): Do not assume that signed
13843         integer overflow wraps around; modern compilers generate code
13844         where this assumption is no longer valid.
13845
13846 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13847
13848         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13849         Replace "jmp L(pseudo_end)" with "ret".
13850         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13851         Likewise.
13852
13853 2012-05-23  Andreas Jaeger  <aj@suse.de>
13854
13855         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13856         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13857
13858 2012-05-23  Andreas Jaeger  <aj@suse.de>
13859             Maximilian Attems  <max@stro.at>
13860
13861         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13862         New macros.
13863
13864 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13865
13866         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13867         code so that pseudo_end is just ret and the stack pointer is
13868         correct also for static library in error case.
13869
13870 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13871
13872         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13873         move to syscalls.list.
13874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13878
13879         * manual/install.texi (Running make install): Do not mention Linux
13880         kernel version for which pt_chown is not needed.
13881         (Linux): Do not mention problems with nscd with 2.0 kernels.
13882         * INSTALL: Regenerated.
13883
13884 2012-05-23  Andreas Jaeger  <aj@suse.de>
13885
13886         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13887         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13888         macro.
13889         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13890         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13891         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13892         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13893         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13894         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13895         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13896         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13897         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13898         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13899         * sysdeps/unix/sysv/linux/bits/in.h
13900         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13901
13902 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13903
13904         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13905         (PREPARE_VERSION): Just use assert instead, it will be elided
13906         under [NDEBUG] anyway.
13907
13908 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13909
13910         * sysdeps/unix/sysv/linux/Makefile: Include
13911         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13912         (sysdep_routines): Remove sysctl.
13913         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13914         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13915         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13916         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13917         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13918
13919 2012-05-22  Andreas Jaeger  <aj@suse.de>
13920
13921         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13922         that pseudo_end is just ret and the stack pointer is correct also
13923         for static library in error case.
13924
13925 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13926
13927         [BZ #14122]
13928         * nss/nsswitch.c (defconfig_entries): New variable.
13929         (__nss_database_lookup): Don't leak defconfig entries.
13930         (nss_parse_service_list): Don't leak on error paths.
13931         (free_database_entries): New function.
13932         (free_defconfig): New function.
13933         (free_mem): Move common code to free_database_entries.
13934
13935 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13936
13937         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13938         Add arch_prctl.
13939         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13940
13941         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13942         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13944         New macro.
13945         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13946         (INTERNAL_SYSCALL_TYPES): Likewise.
13947         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13948         (LOAD_REGS_TYPES_[1-6]): Likewise.
13949         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13950         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13951
13952 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13953
13954         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13955         copysignl for GLIBC_2_0.
13956         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13957         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13958         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13959         logbl for GLIBC_2_0.
13960         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13961         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13962
13963 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13964
13965         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13966         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13967
13968         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13969         Use "neg %eax".
13970
13971         * time/mktime.c: Update copyright years.
13972
13973 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13974
13975         mktime: merge comment-quoting-style change from gnulib
13976         * time/mktime.c: Quote 'like this' in comments.
13977         The GNU coding standards suggest that we no longer quote `like this',
13978         as "`" and "'" are typically rendered asymmetrically nowadays.
13979         The typical gnulib style is to quote 'like this' when quoting
13980         code, and "like this" when quoting English.
13981
13982         * time/mktime.c (compile-command): Add "-I.".
13983
13984         mktime: merge mktime-internal.h change from gnulib
13985         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13986
13987         mktime: merge time_r change from gnulib
13988         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13989
13990         mktime: merge DEBUG change from gnulib
13991         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13992         case system <time.h> has a #define.
13993
13994         mktime: merge <sys/types.h> change from gnulib
13995         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13996         since <time.t> is now guaranteed to define time_t.
13997
13998         mktime: merge HAVE_CONFIG_H change from gnulib
13999         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14000
14001 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14002
14003         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14004         Use "neg %eax".
14005
14006         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14007         __rlim_t cast.
14008         (struct rusage): Use anonymous union to pad each field to
14009         __syscall_slong_t.
14010
14011 2012-05-21  David S. Miller  <davem@davemloft.net>
14012
14013         * Makefules (o-iterator): Remove .s cases.
14014         (compile-command.s): Delete.
14015         (COMPILE.s): Delete.
14016         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14017
14018 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14019
14020         * configure.in (libc_cv_predef_stack_protector): Only consider
14021         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14022         * configure: Regenerated.
14023
14024 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14025
14026         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14027         New macro.  Use R*LP on int and pointer.
14028         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14029         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14030         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14031         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14032
14033         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14034         [__WORDSIZE_TIME64_COMPAT32] instead of
14035         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14036         (struct utmp): Likewise.
14037         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14038         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14039         Renamed to ...
14040         (__WORDSIZE_TIME64_COMPAT32): This.
14041         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14042         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14043         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14044         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14045         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14046         (__WORDSIZE_TIME64_COMPAT32): New macro.
14047
14048 2012-05-21  Andreas Jaeger  <aj@suse.de>
14049
14050         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14051         only if [SHARED]. Add prototype for __wcschr_ia32.
14052
14053 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14054
14055         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14056         of %rbp unmolested in the jmp_buf while mangling the low bits.
14057         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14058         unmolested high bits of %rbp while demangling the low bits.
14059         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14060
14061 2012-05-21  Andreas Jaeger  <aj@suse.de>
14062
14063         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14064         * sunrpc/svc_simple.c: Use it for registerrpc.
14065         * sunrpc/xcrypt.c: Use it for passwd2des.
14066
14067         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14068
14069 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14070
14071         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14072         Don't define if [__SYSCALL_WORDSIZE != 32].
14073         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14074         New macro.
14075
14076 2012-05-21  Bruno Haible  <bruno@clisp.org>
14077             Andreas Jaeger  <aj@suse.de>
14078
14079         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14080         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14081         inptr and inend for must_buffer_ch.
14082         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14083         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14084         * stdio-common/Makefile (tests): Remove bug15.
14085         (bug15-ENV): Remove macro.
14086         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14087         anymore.
14088
14089 2012-05-19  Andreas Jaeger  <aj@suse.de>
14090             Roland McGrath  <roland@hack.frob.com>
14091
14092         * manual/contrib.texi: Completely rewritten. It contains now an
14093         alphabetical list of contributors and their contributions.
14094
14095 2012-05-21  Richard Henderson  <rth@twiddle.net>
14096
14097         * misc/getauxval.c (__getauxval): Use unsigned long int.
14098         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14099         (getauxval): Use unsigned long int.
14100
14101 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14102
14103         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14104
14105 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14106
14107         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14108         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14109         __alignof__ (long double).
14110
14111 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14112
14113         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14114
14115 2012-05-20  Richard Henderson  <rth@twiddle.net>
14116
14117         * misc/getauxval.c: New file.
14118         * misc/sys/auxv.h: New file.
14119         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14120         (routines): Add getauxval.
14121         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14122         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14123         * elf/dl-sysdep.c (_dl_auxv): Remove.
14124         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14125         * elf/dl-support.c (_dl_auxv): New variable.
14126         (_dl_aux_init): Initialize it.
14127         * manual/startup.texi (Auxiliary Vector): New node.
14128         * sysdeps/generic/bits/hwcap.h: New file.
14129         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14130         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14131         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14132         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14133         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14134         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14136         Update.
14137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14140         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14143         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14145
14146 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14147
14148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14149
14150 2012-05-19  David S. Miller  <davem@davemloft.net>
14151
14152         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14153
14154 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14155
14156         [BZ #14123]
14157         * math/s_ccosh.c: Include <float.h>
14158         (__ccosh): Avoid internal overflow calculating sinh and cosh
14159         values before multiplying by sin and cos values.
14160         * math/s_ccoshf.c: Likewise.
14161         * math/s_ccoshl.c: Likewise.
14162         * math/s_csin.c: Likewise.
14163         * math/s_csinf.c: Likewise.
14164         * math/s_csinl.c: Likewise.
14165         * math/s_csinh.c: Likewise.
14166         * math/s_csinhf.c: Likewise.
14167         * math/s_csinhl.c: Likewise.
14168         * math/libm-test.inc (ccos_test): Add more tests.
14169         (ccosh_test): Likewise.
14170         (csin_test): Likewise.
14171         (csinh_test): Likewise.
14172         * sysdeps/i386/fpu/libm-test-ulps: Update.
14173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14174
14175 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14176
14177         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14178         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14179
14180         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14181
14182 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14183
14184         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14185         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14186         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14187         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14188         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14189         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14190         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14191         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14192         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14193         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14194         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14195         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14196         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14197         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14198         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14199         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14200         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14201         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14202         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14203         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14204         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14205         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14206         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14207         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14208         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14209         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14210         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14211         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14212         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14213         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14214         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14215
14216 2012-05-18  Andreas Jaeger  <aj@suse.de>
14217
14218         * csu/.gitignore: Delete.
14219
14220 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14221
14222         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14223         (timex): Use __syscall_slong_t.
14224
14225 2012-05-18  Andreas Jaeger  <aj@suse.de>
14226             Carlos O'Donell  <carlos_odonell@mentor.com>
14227
14228         * manual/install.texi (Configuring and compiling): Update
14229         description about files modified in the source directory.
14230         * INSTALL: Regenerated.
14231
14232 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14233
14234         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14235         value.  Use "or" to set return value to -1.
14236         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14237         negate return value.
14238
14239 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14240
14241         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14242         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14243         failure if the compiler has Graphite support disabled.
14244         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14245         Likewise.
14246         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14247         CFLAGS-memmove.c): Likewise.
14248         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14249         Likewise.
14250
14251 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14252
14253         * sysdeps/x86_64/x32/_itoa.h: New file.
14254
14255         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14256         getdents system call only if kernel and user dirents have the
14257         same d_ino and d_off.
14258
14259         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14260         LLONG_MAX != LONG_MAX.
14261         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14262         (_fitoa_word): Likewise.
14263
14264         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14265         years.
14266         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14267         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14268         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14269
14270         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14271         include <bits/wordsize.h>.  Check __x86_64__ instead of
14272         __WORDSIZE.
14273         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14274         if __x86_64__ is defined.  Use anonymous union on fpstate.
14275
14276         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14277         anonymous union.
14278
14279 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14280
14281         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14282         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14283         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14284         Refer to _rtld_local_ro instead of _rtld_global_ro.
14285         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14286         Likewise.
14287         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14288         Likewise.
14289         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14290         Likewise.
14291         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14292         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14293         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14294
14295         * sysdeps/powerpc/powerpc32/dl-machine.c
14296         (__elf_machine_runtime_setup) [PROF]: Don't reference
14297         _dl_prof_resolve.
14298
14299 2012-05-18  Andreas Jaeger  <aj@suse.de>
14300
14301         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14302         function only available for GCCs before 3.4 since GCC 3.4
14303         introduced a builtin.
14304         (lrint): Likewise.
14305         (llrintf): Likewise.
14306         (llrint): Likewise.
14307         (fmaxf): Likewise.
14308         (fmax): Likewise.
14309         (fminf): Likewise.
14310         (fmin): Likewise.
14311         (rint): Likewise.
14312         (rintf): Likewise.
14313         (nearbyint): Likewise.
14314         (nearbyintf): Likewise.
14315         (ceil): Likewise.
14316         (ceilf): Likewise.
14317         (floor): Likewise.
14318         (floorf): Likewise.
14319
14320 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14321
14322         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14323         on both fields and cast pointer to __syscall_ulong_t.
14324
14325         * bits/types.h (__fsword_t): New type.
14326         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14327         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14328         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14329         (__FSWORD_T_TYPE): Likewise.
14330         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14331         (__FSWORD_T_TYPE): Likewise.
14332         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14333         (__FSWORD_T_TYPE): Likewise.
14334         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14335         (__FSWORD_T_TYPE): Likewise.
14336         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14337         __SWORD_TYPE with __fsword_t.
14338         (statfs64): Likewise.
14339
14340 2012-05-17  David S. Miller  <davem@davemloft.net>
14341
14342         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14343
14344 2012-05-17  Andreas Jaeger  <aj@suse.de>
14345
14346         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14347         warning.
14348
14349 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14350
14351         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14352
14353 2012-05-17  Andreas Jaeger  <aj@suse.de>
14354
14355         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14356         when it is used.
14357
14358 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14359
14360         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14361
14362 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14363
14364         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14365         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14366
14367 2012-05-17  Andreas Jaeger  <aj@suse.de>
14368             Carlos O'Donell  <carlos_odonell@mentor.com>
14369
14370         [BZ #14059]
14371         * sysdeps/x86_64/multiarch/init-arch.h
14372         (bit_YMM_Usable): Rename to...
14373         (bit_AVX_Usable): ... this.
14374         (bit_FMA4_Usable): New macro.
14375         (bit_XMM_state): New macro.
14376         (bit_YMM_state): New macro.
14377         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14378         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14379         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14380         (CPUID_OSXSAVE): New macro.
14381         (CPUID_AVX): New macro.
14382         (CPUID_FMA4): New macro.
14383         (index_YMM_Usable): Rename to...
14384         (index_AVX_Usable): ... this.
14385         (HAS_AVX): Use HAS_ARCH_FEATURE.
14386         (HAS_FMA4): Likewise.
14387         (HAS_YMM_USABLE): Remove.
14388         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14389         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14390         are present.
14391         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14392         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14393         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14394         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14395         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14396
14397 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14398
14399         * math/libm-test.c: Support platforms without multiple rounding modes.
14400         * math/bug-nextafter.c: Support platforms without FP exceptions.
14401         * math/bug-nexttoward.c: Likewise.
14402         * math/test-fenv.c: Likewise.
14403         * math/test-misc.c: Likewise.
14404         * stdlib/bug-getcontext.c: Likewise.
14405
14406 2012-05-17  Andreas Jaeger  <aj@suse.de>
14407
14408         * manual/examples/search.c (critter_cmp): Change signature to
14409         avoid warnings.
14410         * manual/string.texi (Collation Functions): Likewise.
14411
14412 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14413
14414         * bits/types.h: Fold copyright years.
14415         * bits/typesizes.h: Likewise.
14416         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14417         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14418         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14419         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14420         * time/time.h: Likewise.
14421
14422 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14423
14424         [BZ #208]
14425         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14426         in instead of returning them.  Return void.
14427         (__libc_mallinfo): Accumulate over all arenas.
14428         (__malloc_stats): Adjust for change in int_mallinfo interface.
14429
14430 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14431
14432         [BZ #10375]
14433         * configure.in (NM): Add AC_CHECK_TOOL for it.
14434         (libc_extra_cflags): New substituted variable.
14435         Check for -fstack-protector being used implicitly.
14436         * configure: Regenerated.
14437         * config.make.in (config-extra-cflags): New variable,
14438         gets @libc_extra_cflags@.
14439         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14440
14441         [BZ #10375]
14442         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14443         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14444         * configure: Regenerated.
14445         * config.make.in (CPPUNDEFS): New substituted variable.
14446         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14447         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14448         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14449
14450 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14451
14452         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14453         (mq_attr): Use __syscall_slong_t.
14454
14455 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14456
14457         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14458         Check __x86_64__ instead of __WORDSIZE.
14459         (_STAT_VER_LINUX): Likewise.
14460         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14461         __syscall_ulong_t and __syscall_slong_t.
14462         (stat64): Likewise.
14463
14464 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14465
14466         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14467
14468 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14469
14470         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14471
14472 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14473
14474         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14475         __syscall_ulong_t.
14476
14477         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14478         include <bits/wordsize.h>.  Check __x86_64__ instead of
14479         __WORDSIZE.
14480         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14481         defined.
14482         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14483
14484         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14485         include <bits/wordsize.h>.  Check __x86_64__ instead of
14486         __WORDSIZE.
14487         (user_regs_struct): Use "__extension__ unsigned long long"
14488         instead of "unsigned long" if __x86_64__ is defined.
14489         (user): Likewise.  Pad after pointer field if __ILP32__ is
14490         defined.
14491
14492 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14493
14494         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14495         versions 5 to 9.
14496         * configure: Regenerated.
14497         * manual/install.texi (texinfo): Increase version requirement to
14498         4.5 or later.
14499         * INSTALL: Regenerated.
14500
14501         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14502
14503 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14504
14505         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14506
14507         * sysdeps/x86_64/x32/ffs.c: New file.
14508
14509         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14510         __syscall_ulong_t.
14511         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14512         defined.  Use __syscall_ulong_t.
14513         (shminfo): Use __syscall_ulong_t.
14514         (shm_info): Likewise.
14515
14516         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14517         __syscall_ulong_t.
14518
14519         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14520         <bits/wordsize.h>.
14521         (msgqnum_t): Use __syscall_ulong_t.
14522         (msglen_t): Likewise.
14523         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14524         __syscall_ulong_t.
14525
14526         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14527         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14528
14529         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14530
14531         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14532         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14533
14534         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14535         __syscall_slong_t.
14536
14537         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14538         include <bits/wordsize.h>.  Check __x86_64__ instead of
14539         __WORDSIZE.
14540
14541         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14542         "unsigned long long int" if __x86_64__ is defined.
14543         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14544
14545         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14546         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14547         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14548
14549         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14550         <stdint.h>.
14551         (GET_PC): Cast to uintptr_t first.
14552         (GET_FRAME): Likewise.
14553         (GET_STACK): Likewise.
14554
14555         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14556         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14557         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14558         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14559         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14560         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14561         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14562         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14563         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14564         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14565         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14566         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14567         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14568         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14569         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14570         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14571         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14572         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14573         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14574         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14575         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14576         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14577         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14578         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14579         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14580         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14581         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14582         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14583         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14584
14585 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14586
14587         * Makerules (+depfiles): Also collect depfiles from .oS in
14588         $(extra-objs).
14589         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14590         .oS, $(libnldbl-routines)).
14591
14592         * Makerules (native-compile-mkdep-flags): Define.
14593         * sunrpc/Makefile (extra-objs): Add $(addprefix
14594         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14595         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14596         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14597         calling $(make-target-directory).
14598
14599 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14600
14601         * bits/types.h (__snseconds_t): Removed.
14602         * time/time.h (struct timespec): Replace __snseconds_t with
14603         __syscall_slong_t.
14604         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14605         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14606         Likewise.
14607         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14608         (__SNSECONDS_T_TYPE): Likewise.
14609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14610         (__SNSECONDS_T_TYPE): Likewise.
14611         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14612         (__SNSECONDS_T_TYPE): Likewise.
14613
14614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14615
14616         * sysdeps/mach/hurd/bits/typesizes.h
14617         (__SYSCALL_SLONG_TYPE): New macro.
14618         (__SYSCALL_ULONG_TYPE): Likewise.
14619
14620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14621
14622         * bits/types.h (__syscall_slong_t): New type.
14623         (__syscall_ulong_t): Likewise.
14624
14625         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14626         (__SYSCALL_ULONG_TYPE): Likewise.
14627         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14628         (__SYSCALL_SLONG_TYPE): Likewise.
14629         (__SYSCALL_ULONG_TYPE): Likewise.
14630         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14631         (__SYSCALL_SLONG_TYPE): Likewise.
14632         (__SYSCALL_ULONG_TYPE): Likewise.
14633         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14634         (__SYSCALL_SLONG_TYPE): Likewise.
14635         (__SYSCALL_ULONG_TYPE): Likewise.
14636
14637 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14638
14639         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14640         Add sigaltstack-offsets.sym.
14641         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14642         <sigaltstack-offsets.h>.
14643         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14644         longjmp_msg pointer.
14645         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14646         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14647         signal stack.
14648         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14649
14650 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14651
14652         * elf/stackguard-macros.h: Remove file.
14653         * sysdeps/generic/stackguard-macros.h: New file.
14654         * sysdeps/i386/stackguard-macros.h: Likewise.
14655         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14656         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14657         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14658         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14659         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14660         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14661         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14662         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14663         <elf/stackguard-macros.h>.
14664
14665         [BZ #14109]
14666         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14667         __aligned__ in attribute.
14668         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14669         (gregset_t): Likewise.
14670
14671 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14672
14673         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14674         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14675         * sysdeps/x86_64/x32/Implies-after: New file.
14676
14677 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14678
14679         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14680         and access return value for _dl_profile_fixup.  Use R10_LP to
14681         load frame size.
14682
14683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14684
14685         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14686
14687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14688
14689         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14690         * sysdeps/x86_64/x32/sysdep.h: New file.
14691
14692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14693
14694         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14695         * sysdeps/x86_64/setjmp.S: Likewise.
14696
14697 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14698
14699         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14700         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14701         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14702         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14703         remove unused global constant.
14704
14705 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14706
14707         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14708         include of <not-cancel.h>.
14709
14710 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14711
14712         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14713
14714 2012-05-15  Jeff Law  <law@redhat.com>
14715             Andreas Jaeger  <aj@suse.de>
14716
14717         [BZ #13594]
14718         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14719         out from...
14720         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14721         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14722         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14723         code changing __hst_map_handle.map.
14724
14725 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14726
14727         * configure.in (sysnames): Look for Implies-before and Implies-after
14728         files.
14729         * configure: Regenerated.
14730
14731 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14732
14733         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14734         8-byte data alignment with LP_SIZE alignment.
14735
14736 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14737
14738         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14739         into R10_LP.
14740
14741 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14742
14743         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14744
14745 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14748         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14749         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14750         Likewise.
14751         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14752
14753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14754
14755         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14756         (stackinfo_sub_sp): Likewise.
14757
14758 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14759
14760         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14761         RAX_LP.
14762
14763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14764
14765         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14766         into R*_LP.
14767
14768 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14769
14770         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14771         sizes into R*_LP.
14772
14773 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14774
14775         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14776
14777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14778
14779         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14780         into R11_LP and load __x86_64_shared_cache_size_half into
14781         R8_LP.
14782
14783 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14784
14785         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14786         R8_LP.
14787
14788 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14789
14790         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14791         logb for POWER7.
14792         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14793         logbf for POWER7.
14794         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14795         logbl for POWER7.
14796         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14797         powerpc32/power7/fpu/s_logb.c via #include.
14798         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14799         powerpc32/power7/fpu/s_logbf.c via #include.
14800         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14801         powerpc32/power7/fpu/s_logbl.c via #include.
14802
14803 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14804
14805         * README.libm: Remove file.
14806
14807 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14808
14809         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14810         count for x32.  Use R*_LP and omit operand-size suffix.
14811
14812 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14813
14814         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14815         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14816         * sysdeps/x86_64/x32/shlib-versions: New file.
14817
14818 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14819
14820         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14821         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14822         Use _dl_fatal_printf instead.
14823
14824 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14825
14826         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14827         set if not set by the user.  Do not allow for being unset.
14828         * sysdeps/unix/sysv/linux/configure: Regenerated.
14829
14830 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14831
14832         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14833         the `q' suffix from lea and replace .quad with ASM_ADDR.
14834
14835 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14836
14837         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14838         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14839         instead of $17.
14840         (PTR_DEMANGLE): Likewise.
14841
14842 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14843
14844         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14845         (LP_OP): Likewise.
14846         (ASM_ADDR): Likewise.
14847         (RAX_LP): Likewise.
14848         (RBP_LP): Likewise.
14849         (RBX_LP): Likewise.
14850         (RCX_LP): Likewise.
14851         (RDI_LP): Likewise.
14852         (RSI_LP): Likewise.
14853         (RSP_LP): Likewise.
14854         (R8_LP): Likewise.
14855         (R9_LP): Likewise.
14856         (R10_LP): Likewise.
14857         (R10_LP): Likewise.
14858         (R11_LP): Likewise.
14859         (R12_LP): Likewise.
14860         (R13_LP): Likewise.
14861         (R14_LP): Likewise.
14862         (R15_LP): Likewise.
14863
14864 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14865
14866         * sysdeps/x86_64/x32/dl-machine.h: New file.
14867
14868 2012-05-14  Andreas Jaeger  <aj@suse.de>
14869
14870         * manual/Makefile (subdir): Remove export of subdir.
14871         (all): Remove target.
14872         (.PHONY): Remove all from list.
14873         (mkinstalldirs): Remove.
14874         (.PHONY): Remove installdirs from list.
14875         ($(inst_infodir)/libc.info): Use make-target-directory.
14876         (installdirs): Remove.
14877         (subdir_%): Remove.
14878         (glibc-targets): Remove.
14879         (lib): Remove.
14880         (stubs): Remove.
14881         ($(objpfx)stubs ../po/manual.pot): Remove.
14882         ($(objpfx)stamp%): Remove.
14883         (make-target-directory): Remove.
14884         (subdir_install): Remove.
14885         (routines): Remove.
14886         (aux): Remove.
14887         (sources): Remove.
14888         (objects): Remove.
14889         (headers): Remove.
14890
14891         [BZ #13750]
14892         * manual/.gitignore: Remove, it's not needed anymore.
14893         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14894         all files in it.
14895         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14896         directory.
14897         (texis): Renamed to $(objpfx)texis.
14898         (texis-path): New, contains path to generated files.
14899         (chapters.%): Use texis-path for complete path, add extra argument
14900         libc-texinfo.sh.
14901         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14902         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14903         (summary,texi, stamp-summary): Use complete path of
14904         files. Generate files in build dir.
14905         (dir-add.texi): Build in build dir.
14906         (libm-err.texi,stamp-libm-err): Likewise.
14907         (version.texi, stamp-version): Likewise.
14908         (.%c.texi): Likewise.
14909         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14910         (mostlyclean): Remove target.
14911         (realclean): Remove target.
14912         (generated): Add new variable with contents from mostlyclean and
14913         realclean, remove entries duplicated in common-mostlyclean, add
14914         stamp-libm-err and stamp-version.
14915         (generated-dirs): Add libc directory.
14916         ($(inst_infodir)/libc.info): Install files from build dir.
14917
14918         * manual/install.texi (Configuring and compiling): Adjust since
14919         the info files are not part of the tar ball anymore.
14920
14921 2012-05-14  Andreas Jaeger  <aj@suse.de>
14922
14923         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14924         variable.
14925
14926 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14927
14928         [BZ #13717]
14929         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14930         to 2.2.0 where earlier.
14931         * sysdeps/unix/sysv/linux/configure: Regenerated.
14932         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14933         Remove conditional code.
14934         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14935         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14936         Remove conditional code.
14937         [!__NR_lchown]: Likewise.
14938         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14939         [__NR_lchown]: Likewise.
14940         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14941         comment referencing __ASSUME_LCHOWN_SYSCALL.
14942         * sysdeps/unix/sysv/linux/i386/sigaction.c
14943         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14944         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14945         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14946         Remove conditional code.
14947         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14948         (__protocol_available): Remove #if 0 code.
14949         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14950         conditional code.
14951         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14952         * sysdeps/unix/sysv/linux/kernel-features.h
14953         (__ASSUME_GETCWD_SYSCALL): Don't define.
14954         (__ASSUME_REALTIME_SIGNALS): Likewise.
14955         (__ASSUME_PREAD_SYSCALL): Likewise.
14956         (__ASSUME_PWRITE_SYSCALL): Likewise.
14957         (__ASSUME_POLL_SYSCALL): Likewise.
14958         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14959         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14960         non-SPARC.
14961         (__ASSUME_SIOCGIFNAME): Don't define.
14962         (__ASSUME_MSG_NOSIGNAL): Likewise.
14963         (__ASSUME_SENDFILE): Define unconditionally.
14964         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14965         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14966         conditional code.
14967         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14968         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14969         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14970         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14971         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14972         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14973         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14975         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14976         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14978         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14979         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14981         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14982         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14984         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14985         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14987         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14988         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14990         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14991         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14993         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14994         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14996         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14997         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14998         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14999         Remove conditional code.
15000         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15001         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15002         Remove conditional code.
15003         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15004         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15005         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15006         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15007         Remove conditional code.
15008         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15009         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15010         Remove conditional code.
15011         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15012         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15013         Remove conditional code.
15014         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15015         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15016         Remove conditional code.
15017         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15018         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15019         Remove conditional code.
15020         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15021         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15022         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15023         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15024         * sysdeps/unix/sysv/linux/sigaction.c
15025         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15026         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15027         * sysdeps/unix/sysv/linux/sigpending.c
15028         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15029         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15030         * sysdeps/unix/sysv/linux/sigprocmask.c
15031         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15032         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15033         * sysdeps/unix/sysv/linux/sigsuspend.c
15034         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15035         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15036         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15037         (__libc_missing_rt_sigs): Remove.
15038         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15039         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15040         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15041         Remove conditional code.
15042         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15043         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15044         return 1.
15045         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15046         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15047         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15048         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15049
15050 2012-05-14  Andreas Jaeger  <aj@suse.de>
15051
15052         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15053         it's not used in glibc.
15054         (__coshm1): Likewise.
15055         (__acosh1p): Likewise.
15056         (__sgn): Likewise.
15057
15058         * manual/string.texi (Copying and Concatenation): Add missing
15059         variable in concat example.
15060         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15061
15062 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15063
15064         [BZ #14103]
15065         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15066         __builtin_clzl with __builtin_clzll.
15067
15068 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15069
15070         [BZ #14104]
15071         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15072         libc_freeres_ptr.
15073
15074 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15075
15076         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15077         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15078         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15079         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15080
15081 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15082
15083         * NEWS: Update ia64 info.
15084
15085 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15086
15087         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15088         used as bcopy.
15089
15090 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15091
15092         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15093         * sysdeps/unix/syscalls.list (dup3): Likewise.
15094         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15095         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15096
15097 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15098
15099         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15100         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15101
15102 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15103
15104         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15105         thread pointer.
15106         (TLS_IE): Use mov/add instead of movq/addq to load thread
15107         pointer.
15108         (TLS_GD_PREFIX): New.
15109         (TLS_GD): Use it.
15110
15111 2012-05-11  David S. Miller  <davem@davemloft.net>
15112
15113         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15114         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15115         (_FPU_SETCW): Likewise.
15116
15117 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15118
15119         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15120         is 32-byte aligned.
15121
15122 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15123
15124         [BZ #11837]
15125         * iconvdata/gb18030.c: Update tables.
15126         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15127         characters specially.
15128         (BODY for TO_LOOP): Add encoding of missing ranges.
15129
15130 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15131
15132         [BZ #13673]
15133         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15134         * sysdeps/mach/hurd/dup3.c: Likewise.
15135         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15136         * sysdeps/powerpc/memmove.c:: Likewise.
15137
15138 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15139
15140         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15141         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15142
15143 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15144
15145         * elf/elf.h (R_X86_64_RELATIVE64): New.
15146         (R_X86_64_NUM): Updated.
15147         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15148         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15149         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15150         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15151         tst-quad1pie tst-quad2pie
15152         (modules-names): Add tst-quadmod1 tst-quadmod2.
15153         ($(objpfx)tst-quad1): New dependency.
15154         ($(objpfx)tst-quad2): Likewise.
15155         ($(objpfx)tst-quad1pie): Likewise.
15156         ($(objpfx)tst-quad2pie): Likewise.
15157         * sysdeps/x86_64/tst-quad1.c: New file.
15158         * sysdeps/x86_64/tst-quad1pie.c: New file.
15159         * sysdeps/x86_64/tst-quad2.c: Likewise.
15160         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15161         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15162         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15163         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15164         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15165
15166 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15167
15168         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15169         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15170         * streams/stropts.h (t_scalar_t): Define type.
15171
15172         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15173         (_PATH_PRESERVE): Set to "/var/lib".
15174         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15175
15176         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15177         instead of int.
15178
15179         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15180         if __dir_mkfile succeeded.
15181
15182         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15183         checking for _hurd_dtablesize.  Unlock it right after having
15184         finished _hurd_dtable allocation.
15185
15186 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15187
15188         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15189         * sysdeps/mach/hurd/configure: Regenerated.
15190         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15191         special-casing to...
15192         * sysdeps/gnu/configure.in: ... this new file.
15193         * sysdeps/unix/sysv/linux/configure: Regenerated.
15194         * sysdeps/gnu/configure: New generated file.
15195
15196         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15197         for Linux: use nsec instead of usec, as well as:
15198         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15199         members of type struct timespec.
15200         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15201         New macros.
15202         (struct stat64): Likewise.
15203         (_STATBUF_ST_NSEC): New macro.
15204         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15205
15206         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15207         __strtoul_internal rather than strtoul.
15208
15209 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15210
15211         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15212         and reject them.
15213
15214 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15215
15216         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15217         which preserves existing values.
15218         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15219
15220 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15221
15222         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15223         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15224         greater than FD_SETSIZE.
15225
15226 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15227
15228         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15229         allocated, call __vm_protect to finish enabling the existing space, and
15230         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15231         allocate the remainder.
15232
15233 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15234
15235         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15236         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15237
15238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15239
15240         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15241         sysdeps/mach/hurd/readlink.c.
15242
15243         * posix/tst-sysconf.c (posix_options): Only use
15244         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15245         _POSIX_SYNCHRONIZED_IO when they are defined
15246         * sysdeps/mach/hurd/bits/posix_opt.h:
15247         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15248         (_XOPEN_REALTIME): Undefine macro.
15249         (_XOPEN_REALTIME_THREADS): Undefine macro.
15250         (_XOPEN_SHM): Undefine macro.
15251         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15252         macro to -1.
15253         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15254         macro to -1.
15255         (_POSIX_ASYNC_IO): Undefine macro.
15256         (_POSIX_PRIORITIZED_IO): Undefine macro.
15257         (_POSIX_SPIN_LOCKS): Define macro to -1.
15258
15259         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15260         SA_NODEFER, SA_RESETHAND.
15261         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15262         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15263         F_DUPFD_CLOEXEC.
15264
15265 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15266
15267         * elf/Makefile (pldd-modules): Define unconditionally.
15268
15269 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15270
15271         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15272
15273 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15274
15275         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15276         Return ENOENT when name is empty.
15277         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15278
15279 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15280
15281         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15282
15283         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15284
15285 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15286
15287         Fix mlock in all cases except non-readable pages.
15288         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15289         instead of VM_PROT_ALL as parameter to __vm_wire function.
15290
15291         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15292         (__mkdir): When path is `/', just fail with EEXIST.
15293         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15294
15295 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15296
15297         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15298         <sys/uio.h> (for writev).
15299         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15300         and <sys/param.h> (for MIN).
15301
15302 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15303
15304         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15305         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15306         if interrupted.
15307
15308 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15309
15310         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15311         Depend on against $(link-rpcuserlibs).
15312
15313 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15314
15315         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15316         (__libc_stack_end): Do not use attribute_relro.
15317         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15318         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15319         to libthread-provided value.
15320         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15321         attribute_relro.
15322
15323 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15324
15325         [BZ #3748]
15326         * bits/libc-lock.h (__libc_once_get): New macro.
15327         * sysdeps/mach/bits/libc-lock.h: Likewise.
15328         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15329         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15330         instead of using implementation details.
15331
15332         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15333         * libio/freopen.c: Likewise.
15334         * libio/freopen64.c: Likewise.
15335         * misc/syslog.c: Likewise.
15336         * nscd/connections.c: Likewise.
15337         * nscd/netgroupcache.c: Likewise.
15338         * sysdeps/posix/getcwd.c: Likewise.
15339
15340 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15341
15342         * math/w_ilogbf.c: Add #include <limits.h>.
15343
15344 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15345
15346         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15347         path instead of returning without unlocking.
15348
15349         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15350         immediate-write ioctls.
15351         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15352
15353 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15354
15355         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15356         __builtin_frame_address instead of making assumptions about the
15357         location of the return address relative to DATA.  Force early load of
15358         the return address.
15359         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15360         __builtin_frame_address.
15361
15362         dup3 for GNU Hurd.
15363         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15364         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15365         implement dup3 and do some further code clean-ups.
15366         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15367         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15368
15369 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15370
15371         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15372
15373         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15374         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15375         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15376         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15377         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15378         d->port.lock.
15379
15380         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15381         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15382         when handler == SIG_ERR, not when handler != SIG_ERR.
15383
15384 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15385
15386         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15387         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15388         definitions.
15389
15390         accept4 for GNU Hurd.
15391         * include/sys/socket.h (__libc_accept4): New prototype.
15392         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15393         to implement __libc_accept4.
15394         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15395         __libc_accept4.
15396         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15397
15398         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15399         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15400         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15401         signal-defines.sym.
15402
15403 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15404
15405         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15406
15407 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15408
15409         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15410         assertion on O_CLOEXEC flag.
15411         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15412         * hurd/intern-fd.c: Likewise.
15413         * hurd/port2fd.c: Likewise.
15414
15415 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15416
15417         [BZ #3906]
15418         * bits/in.h (IPV6_PKTINFO): Define new macro.
15419         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15420
15421 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15422
15423         [BZ #13954]
15424         [BZ #13955]
15425         [BZ #13956]
15426         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15427         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15428         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15429         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15430         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15431         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15432         * math/libm-test.inc (logb_test) : Additional logb tests.
15433
15434 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15435             Andreas Jaeger  <aj@suse.de>
15436
15437         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15438         * configure: Regenerated.
15439         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15440         * config.make.in (link-obsolete-rpc): New substituted variable.
15441         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15442         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15443         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15444         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15445         so that libc.a contains the symbols.
15446         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15447         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15448         * sunrpc/auth_none.c: Likewise.
15449         * sunrpc/auth_unix.c: Likewise.
15450         * sunrpc/authdes_prot.c: Likewise.
15451         * sunrpc/authuxprot.c: Likewise.
15452         * sunrpc/clnt_gen.c: Likewise.
15453         * sunrpc/clnt_perr.c: Likewise.
15454         * sunrpc/clnt_raw.c: Likewise.
15455         * sunrpc/clnt_simp.c: Likewise.
15456         * sunrpc/clnt_tcp.c: Likewise.
15457         * sunrpc/clnt_udp.c: Likewise.
15458         * sunrpc/clnt_unix.c: Likewise.
15459         * sunrpc/des_crypt.c: Likewise.
15460         * sunrpc/des_soft.c: Likewise.
15461         * sunrpc/get_myaddr.c: Likewise.
15462         * sunrpc/key_call.c: Likewise.
15463         * sunrpc/key_prot.c: Likewise.
15464         * sunrpc/netname.c: Likewise.
15465         * sunrpc/pm_getmaps.c: Likewise.
15466         * sunrpc/pm_getport.c: Likewise.
15467         * sunrpc/pmap_clnt.c: Likewise.
15468         * sunrpc/pmap_prot.c: Likewise.
15469         * sunrpc/pmap_prot2.c: Likewise.
15470         * sunrpc/pmap_rmt.c: Likewise.
15471         * sunrpc/publickey.c: Likewise.
15472         * sunrpc/rpc_cmsg.c: Likewise.
15473         * sunrpc/rpc_common.c: Likewise.
15474         * sunrpc/rpc_dtable.c: Likewise.
15475         * sunrpc/rpc_prot.c: Likewise.
15476         * sunrpc/rpc_thread.c: Likewise.
15477         * sunrpc/rtime.c: Likewise.
15478         * sunrpc/svc.c: Likewise.
15479         * sunrpc/svc_auth.c: Likewise.
15480         * sunrpc/svc_raw.c: Likewise.
15481         * sunrpc/svc_run.c: Likewise.
15482         * sunrpc/svc_tcp.c: Likewise.
15483         * sunrpc/svc_udp.c: Likewise.
15484         * sunrpc/svc_unix.c: Likewise.
15485         * sunrpc/svcauth_des.c: Likewise.
15486         * sunrpc/xcrypt.c: Likewise.
15487         * sunrpc/xdr.c: Likewise.
15488         * sunrpc/xdr_array.c: Likewise.
15489         * sunrpc/xdr_float.c: Likewise.
15490         * sunrpc/xdr_intXX_t.c: Likewise.
15491         * sunrpc/xdr_mem.c: Likewise.
15492         * sunrpc/xdr_rec.c: Likewise.
15493         * sunrpc/xdr_ref.c: Likewise.
15494         * sunrpc/xdr_sizeof.c: Likewise.
15495         * sunrpc/xdr_stdio.c: Likewise.
15496
15497 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15498
15499         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15500         change.  Update copyright years.
15501
15502 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15503
15504         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15505
15506 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15507             Joseph Myers  <joseph@codesourcery.com>
15508             Paul Pluzhnikov  <ppluzhnikov@google.com>
15509
15510         [BZ #14012]
15511         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15512         requiring rpcgen.
15513         [cross-compiling] (extra-libs): Likewise.
15514         [cross-compiling] (extra-libs-others): Likewise.
15515         [cross-compiling] (librpcsvc-routines): Likewise.
15516         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15517         [cross-compiling] (omit-deps): Likewise.
15518         (sunrpc-CPPFLAGS): New variable.
15519         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15520         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15521         (cross-rpcgen-objs): New variable.
15522         (extra-objs): Append $(cross-rpcgen-objs).
15523         ($(cross-rpcgen-objs)): New rule.
15524         ($(objpfx)cross-rpcgen): Likewise.
15525         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15526         comment.
15527         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15528         ($(objpfx)x%.stmp): Likewise.
15529         * sunrpc/proto.h [IS_IN_build] (_): Define.
15530         [IS_IN_build] (_libc_intl_domainname): Likewise.
15531
15532 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15533
15534         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15535         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15536         and R_X86_64_TPOFF64.
15537
15538 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15539
15540         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15541         sysdeps/unix/sysv/syscalls.list.
15542         (stime): Likewise.
15543         (utime): Likewise.
15544         * sysdeps/unix/sysv/syscalls.list: Remove file.
15545
15546 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         [BZ #3440]
15549         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15550         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15551         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15552         (__LC_IDENTIFICATION): Make these macros useful in #if
15553         expressions, as required by C99.
15554
15555 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15556
15557         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15558         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15559         after this.
15560
15561 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15562
15563         * stdlib/longlong.h: Updated from GCC.
15564
15565 2012-05-09  Andreas Jaeger  <aj@suse.de>
15566
15567         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15568         default is first entry.
15569         (run_mode): Set type.
15570         (main): Remove informal message about syslog.
15571         (options): Fix typo.
15572
15573         [BZ #14053]
15574         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15575         to asm.
15576         (lrint): Likewise.
15577         (llrintf): Likewise.
15578         (llrint): Likewise.
15579         (rint): Likewise.
15580         (rintf): Likewise.
15581         (nearbyint): Likewise.
15582         (nearbyintf): Likewise.
15583
15584 2012-05-09  Andreas Jaeger  <aj@suse.de>
15585             Pedro Alves  <palves@redhat.com>
15586
15587         * nscd/nscd.c (run_mode): Use enum.
15588         (main): Cleanup coding style issue.
15589
15590 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15591             Andreas Jaeger  <aj@suse.de>
15592
15593         * nscd/nscd.c (go_background): Replaced with...
15594         (run_mode): ... this.
15595         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15596         (options): Add -F --foreground.
15597         (main): Implement it.
15598         (parse_opt): Parse it.
15599
15600 2012-05-09  Andreas Jaeger  <aj@suse.de>
15601
15602         [BZ #14083]
15603         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15604         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15605         -Wconversion warning.
15606         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15607         Likewise.
15608
15609 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15610
15611         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15612         == 0.
15613         (LC_ALL): Use macro-int-constant.
15614         (LC_COLLATE): Likewise.
15615         (LC_CTYPE): Likewise.
15616         (LC_MESSAGES): Likewise.
15617         (LC_MONETARY): Likewise.
15618         (LC_NUMERIC): Likewise.
15619         (LC_TIME): Likewise.
15620         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15621         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15622         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15623         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15624         Specify type.
15625         [C99-based standards] (float_t): Expect type.
15626         [C99-based standards] (double_t): Expect type.
15627         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15628         type.
15629         [C99-based standards] (HUGE_VALL): Likewise.
15630         [C99-based standards] (INFINITY): Likewise.
15631         [C99-based standards] (NAN): Likewise.
15632         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15633         [C99-based standards] (FP_NAN): Likewise.
15634         [C99-based standards] (FP_NORMAL): Likewise.
15635         [C99-based standards] (FP_SUBNORMAL): Likewise.
15636         [C99-based standards] (FP_ZERO): Likewise.
15637         [C99-based standards] (FP_FAST_FMA): Use
15638         optional-macro-int-constant.  Specify type.  Require == 1.
15639         [C99-based standards] (FP_FAST_FMAF): Likewise.
15640         [C99-based standards] (FP_FAST_FMAL): Likewise.
15641         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15642         [C99-based standards] (FP_ILOGBNAN): Likewise.
15643         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15644         Specify type.
15645         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15646         [C99-based standards] (math_errhandling): Specify type.
15647         [ISO99 || ISO11] (signgam): Do not allow.
15648         [non-C99-based standards] (copysignf): Do not allow.
15649         [non-C99-based standards] (exp2f): Likewise.
15650         [non-C99-based standards] (log2f): Likewise.
15651         [non-C99-based standards] (modff): Allow.
15652         [non-C99-based standards] (erff): Do not allow.
15653         [non-C99-based standards] (erfcf): Likewise.
15654         [non-C99-based standards] (gammaf): Likewise.
15655         [non-C99-based standards] (hypotf): Likewise.
15656         [non-C99-based standards] (j0f): Likewise.
15657         [non-C99-based standards] (j1f): Likewise.
15658         [non-C99-based standards] (jnf): Likewise.
15659         [non-C99-based standards] (lgammaf): Likewise.
15660         [non-C99-based standards] (tgammaf): Likewise.
15661         [non-C99-based standards] (y0f): Likewise.
15662         [non-C99-based standards] (y1f): Likewise.
15663         [non-C99-based standards] (ynf): Likewise.
15664         [non-C99-based standards] (isnanf): Likewise.
15665         [non-C99-based standards] (acoshf): Likewise.
15666         [non-C99-based standards] (asinhf): Likewise.
15667         [non-C99-based standards] (atanhf): Likewise.
15668         [non-C99-based standards] (cbrtf): Likewise.
15669         [non-C99-based standards] (expm1f): Likewise.
15670         [non-C99-based standards] (ilogbf): Likewise.
15671         [non-C99-based standards] (log1pf): Likewise.
15672         [non-C99-based standards] (logbf): Likewise.
15673         [non-C99-based standards] (nextafterf): Likewise.
15674         [non-C99-based standards] (remainderf): Likewise.
15675         [non-C99-based standards] (rintf): Likewise.
15676         [non-C99-based standards] (scalbf): Likewise.
15677         [non-C99-based standards] (copysignl): Likewise.
15678         [non-C99-based standards] (exp2l): Likewise.
15679         [non-C99-based standards] (log2l): Likewise.
15680         [non-C99-based standards] (modfl): Allow.
15681         [non-C99-based standards] (erfl): Do not allow.
15682         [non-C99-based standards] (erfcl): Likewise.
15683         [non-C99-based standards] (gammal): Likewise.
15684         [non-C99-based standards] (hypotl): Likewise.
15685         [non-C99-based standards] (j0l): Likewise.
15686         [non-C99-based standards] (j1l): Likewise.
15687         [non-C99-based standards] (jnl): Likewise.
15688         [non-C99-based standards] (lgammal): Likewise.
15689         [non-C99-based standards] (tgammal): Likewise.
15690         [non-C99-based standards] (y0l): Likewise.
15691         [non-C99-based standards] (y1l): Likewise.
15692         [non-C99-based standards] (ynl): Likewise.
15693         [non-C99-based standards] (isnanl): Likewise.
15694         [non-C99-based standards] (acoshl): Likewise.
15695         [non-C99-based standards] (asinhl): Likewise.
15696         [non-C99-based standards] (atanhl): Likewise.
15697         [non-C99-based standards] (cbrtl): Likewise.
15698         [non-C99-based standards] (expm1l): Likewise.
15699         [non-C99-based standards] (ilogbl): Likewise.
15700         [non-C99-based standards] (log1pl): Likewise.
15701         [non-C99-based standards] (logbl): Likewise.
15702         [non-C99-based standards] (nextafterl): Likewise.
15703         [non-C99-based standards] (remainderl): Likewise.
15704         [non-C99-based standards] (rintl): Likewise.
15705         [non-C99-based standards] (scalbl): Likewise.
15706         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15707         [non-C99-based standards] (FP_*): Do not allow.
15708         [C99-based standards] (FP_*): Change to
15709         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15710         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15711         allow.
15712         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15713         (SIG_ERR): Likewise.
15714         [X/Open-based standards] (SIG_HOLD): Likewise.
15715         (SIG_IGN): Likewise.
15716         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15717         positive value.
15718         (SIGFPE): Likewise.
15719         (SIGILL): Likewise.
15720         (SIGINT): Likewise.
15721         (SIGSEGV): Likewise.
15722         (SIGTER): Likewise.
15723         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15724         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15725         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15726         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15727         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15728         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15729         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15730         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15731         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15732         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15733         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15734         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15735         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15736         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15737         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15738         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15739         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15740         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15741         [X/Open-based standards] (SIGTRAP): Likewise.
15742         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15743         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15744         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15745         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15746         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15747         allow.
15748
15749 2012-05-08  Ian Wienand  <ianw@vmware.com>
15750
15751         [BZ #14080]
15752         * time/tzset.c (__tzset_parse_tz): Update default rules for
15753         daylight time changes in the Energy Policy Act of 2005.
15754
15755 2012-05-09  Andreas Jaeger  <aj@suse.de>
15756
15757         [BZ #13983]
15758         * elf/ldconfig.c (parse_conf): Change string to make clear that
15759         ldconfig only issued a warning if ld.so.conf does not exist.
15760
15761 2012-05-08  David S. Miller  <davem@davemloft.net>
15762
15763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15764         movxtod instead of popping the value on the stack.
15765
15766         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15767
15768 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15769
15770         * config.h.in: Add HAVE_ARM_PCS_VFP.
15771
15772 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15773
15774         [BZ #13979]
15775         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15776         checking but the checks are disabled for any reason.
15777
15778 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15779
15780         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15781         and ELF64_R_TYPE with ELFW(R_TYPE).
15782
15783 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15784
15785         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15786         (ulimit): Likewise.
15787
15788         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15789         (settimeofday): Likewise.
15790
15791 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15792
15793         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15794         a struct th_u2 inside the union, and move tu_block/tu_code into
15795         a new th_u3 union of tu_block/tu_code inside of that.  Move
15796         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15797         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15798         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15799         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15800         (th_stuff): Change to th_u1.tu_stuff.
15801         (th_data): Define.
15802         (th_msg): Change to th_u1.th_u2.tu_data.
15803
15804 2012-05-07  David S. Miller  <davem@davemloft.net>
15805
15806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15807
15808         [BZ #14074]
15809         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15810         (SETUP_PIC_REG): Use it.
15811         (SETUP_PIC_REG_LEAF): Use it.
15812
15813 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15814
15815         [BZ #13885]
15816         [BZ #13923]
15817         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15818         USE_AS_EXPM1L.
15819         (EXPL_FINITE): Likewise.
15820         (FLDLOG): Likewise.
15821         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15822         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15823         e_expl.S.
15824         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15825         USE_AS_EXPM1L.
15826         (EXPL_FINITE): Likewise.
15827         (FLDLOG): Likewise.
15828         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15829         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15830         e_expl.S.
15831         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15832         test of -max_value argument for long double.
15833         * sysdeps/i386/fpu/libm-test-ulps: Update.
15834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15835
15836 2012-05-06  David S. Miller  <davem@davemloft.net>
15837
15838         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15839         quad soft-float symbols whose references which are compiler
15840         generated.
15841         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15842
15843 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15844
15845         [BZ #13884]
15846         [BZ #13914]
15847         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15848         USE_AS_EXP10L.
15849         (EXPL_FINITE): Likewise.
15850         (FLDLOG): Likewise.
15851         (c0): Likewise.
15852         (c1): Likewise.
15853         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15854         Adjust comments for base varying.
15855         (__expl_finite): Change alias to EXPL_FINITE.
15856         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15857         e_expl.S.
15858         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15859         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15860         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15861         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15862         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15863         USE_AS_EXP10L.
15864         (EXPL_FINITE): Likewise.
15865         (FLDLOG): Likewise.
15866         (c0): Likewise.
15867         (c1): Likewise.
15868         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15869         Adjust comments for base varying.
15870         (__expl_finite): Change alias to EXPL_FINITE.
15871         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15872         tests for bugs.
15873         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15874
15875         [BZ #14064]
15876         * math/libm-test.inc (check_float_internal): Correct ulp
15877         calculation for subnormal expected results.
15878
15879 2012-05-06  Andreas Jaeger  <aj@suse.de>
15880
15881         * Makeconfig (+math-flags): New, set to -frounding-math.
15882         (+cflags): Add +math-flags so that all of glibc gets compiled with
15883         it.
15884
15885         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15886
15887 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15888
15889         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15890         Disable one test.
15891
15892         [BZ #13787]
15893         [BZ #13922]
15894         [BZ #14036]
15895         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15896         (__ieee754_expl): Allow for and saturate large arguments.
15897         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15898         (u_threshold): Likewise.
15899         (__exp): Call __ieee754_exp before checking for overflow and
15900         underflow.
15901         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15902         (u_threshold): Likewise.
15903         (__expf): Call __ieee754_expf before checking for overflow and
15904         underflow.
15905         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15906         (u_threshold): Likewise.
15907         (__expl): Call __ieee754_expl before checking for overflow and
15908         underflow.
15909         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15910         (__ieee754_expl): Allow for and saturate large arguments.
15911         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15912         missing overflow exception on overflow.
15913         (expm1_test): Do not allow missing overflow exception on overflow.
15914
15915         * sysdeps/i386/fpu/e_expl.c: Move to ...
15916         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15917         rather than using inline asm.
15918         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15919         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15920         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15921
15922         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15923         (nice): Likewise.
15924         (poll): Likewise.
15925         (signal): Likewise.
15926         (time): Likewise.
15927         (times): Likewise.
15928
15929 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15930
15931         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15932         sysdeps/unix/common/syscalls.list.
15933         (fchmod): Likewise.
15934         (fchown): Likewise.
15935         (ftruncate): Likewise.
15936         (getrusage): Likewise.
15937         (gettimeofday): Likewise.
15938         (setpgid): Likewise.
15939         (setregid): Likewise.
15940         (setreuid): Likewise.
15941         (sigaction): Likewise.
15942         (truncate): Likewise.
15943         (vhangup): Likewise.
15944         * sysdeps/unix/common/syscalls.list: Remove file.
15945         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15946         * sysdeps/unix/sysv/linux/Implies: Likewise.
15947
15948 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15949
15950         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15952         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15953         Moved to ...
15954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15955         Here.
15956         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15957         to ...
15958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15959         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15960         to ...
15961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15962         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15963         to ...
15964         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15965         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15966         to ...
15967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15968         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15969         to ...
15970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15971         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15972         to ...
15973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15974         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15975         to ...
15976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15977         Here.
15978         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15979         to ...
15980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15981         Here.
15982         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15983         to ...
15984         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15985         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15986         Moved to ...
15987         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15988         Here.
15989         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15990         to ...
15991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15992
15993 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15994
15995         * sysdeps/unix/common/bits/dirent.h: Remove file.
15996         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15997
15998         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15999         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16000         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16001         * sysdeps/unix/bsd/isatty.c: Likewise.
16002         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16003         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16004         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16005
16006 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16007
16008         [BZ #13563]
16009         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16010         long double comparison inaccuracies.
16011         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16012         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16013
16014 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16015
16016         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16017         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16018
16019 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16020
16021         [BZ #14049]
16022         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16023         nonzero digits before rounding a hex value.
16024         * stdlib/tst-strtod.c (tests): Add another test.
16025
16026 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16027
16028         * sysdeps/s390/fpu/libm-test-ulps: Update.
16029
16030 2012-05-03  Andreas Jaeger  <aj@suse.de>
16031
16032         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16033         does not get optimized out.
16034         (malloc_opt_barrier): New.
16035
16036 2012-05-03  Andreas Jaeger  <aj@suse.de>
16037             Roland McGrath  <roland@hack.frob.com>
16038
16039         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16040         intermediate file deletion.
16041         (generated): Add .symlist files.
16042
16043 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16044
16045         [BZ #13775]
16046         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16047         Redirect under this condition.
16048         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16049         [__USE_GNU] (__dprintf_chk): Not under this condition.
16050         [__USE_GNU] (__vdprintf_chk): Likewise.
16051         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16052         under this condition.
16053         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16054         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16055         [__USE_XOPEN2K8] (vdprintf): Likewise.
16056         [__USE_GNU] (__dprintf_chk): Not under this condition.
16057         [__USE_GNU] (__vdprintf_chk): Likewise.
16058         [__USE_GNU] (dprintf): Likewise.
16059         [__USE_GNU] (vdprintf): Likewise.
16060
16061 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16062
16063         * elf/Makefile (common-generated): Set this instead of generated for
16064         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16065         $(all-built-dso)-derived lists.
16066
16067 2012-05-03  Andreas Jaeger  <aj@suse.de>
16068
16069         * sysdeps/i386/fpu/libm-test-ulps: Update.
16070
16071         * FAQ: Removed.
16072         * FAQ.in: Likewise.
16073         * scripts/gen-FAQ.pl: Likewise.
16074         * manual/install.texi (Installation): Point to online location of
16075         FAQ.
16076         * Makefile (files-for-dist): Remove FAQ.
16077         (FAQ): Remove.
16078
16079 2012-05-02  Allan McRae  <allan@archlinux.org>
16080
16081         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16082         (LDFLAGS-reldepmod5.so): Likewise.
16083         (LDFLAGS-reldep6mod1.so): Likewise.
16084         (LDFLAGS-reldep6mod4.so): Likewise.
16085         (LDFLAGS-reldep8mod3.so): Likewise.
16086         (LDFLAGS-unload4mod1.so): Likewise.
16087         (LDFLAGS-unload4mod2.so): Likewise.
16088         (LDFLAGS-tst-initorder): Likewise.
16089         (LDFLAGS-tst-initordera2.so): Likewise.
16090         (LDFLAGS-tst-initordera3.so): Likewise.
16091         (LDFLAGS-tst-initordera4.so): Likewise.
16092         (LDFLAGS-tst-initorderb2.so): Likewise.
16093         (LDFLAGS-noload): Likewise.
16094         (LDFLAGS-next): Likewise.
16095         (LDFLAGS-order2mod1.so): Likewise.
16096         (LDFLAGS-order2mod2.so): Likewise.
16097         (LDFLAGS-tst-initorder2): Likewise.
16098         (LDFLAGS-tst-initorder2a.so): Likewise.
16099         (LDFLAGS-tst-initorder2b.so): Likewise.
16100         (LDFLAGS-tst-initorder2c.so): Likewise.
16101         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16102
16103 2012-05-02  David S. Miller  <davem@davemloft.net>
16104
16105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16106
16107 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16108
16109         [BZ #14055]
16110         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16111
16112 2012-05-02  Andreas Jaeger  <aj@suse.de>
16113
16114         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16115         since we manipulate rounding mode.
16116         (CPPFLAGS-test-idouble.c): Likewise.
16117         (CPPFLAGS-test-ifloat.c): Likewise.
16118         (CFLAGS-test-ldouble.c): Likewise.
16119         (CFLAGS-test-double.c): Likewise.
16120         (CFLAGS-test-float.c): Likewise.
16121         (CFLAGS-test-misc.c): Likewise.
16122         (CFLAGS-test-test-fenv.c): Likewise.
16123
16124 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16125
16126         [BZ #2550]
16127         [BZ #2570]
16128         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16129         comparisons to determine direction to adjust input.
16130
16131 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16132
16133         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16134         output to the target.
16135
16136         * scripts/localplt.awk: New file.
16137         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16138         (check-localplt-CFLAGS): Variable removed.
16139         ($(all-built-dso:=.jmprel)): New static pattern rule.
16140         (generated): Add those targets.
16141         (localplt-built-dso): New variable.
16142         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16143
16144         * elf/check-localplt.c: File removed.
16145
16146         * scripts/check-execstack.awk: New file.
16147         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16148         (check-execstack-CFLAGS): Variable removed.
16149         ($(objpfx)check-execstack.h): Target removed.
16150         ($(objpfx)execstack-default): New target.
16151         (generated): Add that instead of check-execstack.h.
16152         ($(all-built-dso:=.phdr)): New static pattern rule.
16153         (generated): Add those targets.
16154         * elf/check-execstack.c: File removed.
16155
16156         * scripts/check-textrel.awk: New file.
16157         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16158         (check-textrel-CFLAGS): Variable removed.
16159         (all-built-dso): Use := to define.o
16160         ($(all-built-dso:=.dyn)): New static pattern rule.
16161         (generated): Add those targets.
16162         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16163         * config.make.in (READELF): New substituted variable.
16164         * elf/check-textrel.c: File removed.
16165
16166 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16167
16168         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16169         allow.
16170         * conform/data/ctype.h-data [C99-based standards] (isblank):
16171         Expect function.
16172         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16173         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16174         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16175         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16176         Specify type.  Require positive value.
16177         (EILSEQ): Likewise.
16178         (ERANGE): Likewise.
16179         [ISO || POSIX] (EILSEQ): Do not expect.
16180         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16181         Specify type.  Require positive value.
16182         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16183         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16184         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16185         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16186         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16187         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16188         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16189         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16190         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16191         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16192         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16193         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16194         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16195         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16196         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16197         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16198         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16199         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16200         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16201         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16202         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16203         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16204         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16205         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16206         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16207         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16208         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16209         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16210         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16211         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16212         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16213         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16214         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16215         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16216         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16217         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16218         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16219         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16220         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16221         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16222         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16223         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16224         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16225         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16226         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16227         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16228         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16229         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16230         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16231         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16232         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16233         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16234         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16235         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16236         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16237         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16238         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16239         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16240         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16241         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16242         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16243         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16244         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16245         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16246         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16247         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16248         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16249         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16250         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16251         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16252         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16253         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16254         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16255         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16256         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16257         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16258         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16259         Require >= 2.
16260         (FLT_ROUNDS): Expect as macro, not constant.
16261         (FLT_MANT_DIG): Use macro-int-constant.
16262         (DBL_MANT_DIG): Likewise.
16263         (LDBL_MANT_DIG): Likewise.
16264         (FLT_DIG): Likewise.
16265         (DBL_DIG): Likewise.
16266         (LDBL_DIG): Likewise.
16267         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16268         (DBL_MIN_EXP): Likewise.
16269         (LDBL_MIN_EXP): Likewise.
16270         (FLT_MAX_EXP): Use macro-int-constant.
16271         (DBL_MAX_EXP): Likewise.
16272         (LDBL_MAX_EXP): Likewise.
16273         (FLT_MAX_10_EXP): Likewise.
16274         (DBL_MAX_10_EXP): Likewise.
16275         (LDBL_MAX_10_EXP): Likewise.
16276         (FLT_MAX): Use macro-constant.
16277         (DBL_MAX): Likewise.
16278         (LDBL_MAX): Likewise.
16279         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16280         (DBL_EPSILON): Likewise.
16281         (LDBL_EPSILON): Likewise.
16282         (FLT_MIN): Likewise.
16283         (DBL_MIN): Likewise.
16284         (LDBL_MIN): Likewise.
16285         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16286         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16287         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16288         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16289         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16290         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16291         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16292         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16293         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16294         [ISO11] (FLT_TRUE_MIN): Likewise.
16295         [ISO11] (LDBL_TRUE_MIN): Likewise.
16296         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16297         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16298         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16299         (SCHAR_MAX): Likewise.
16300         (UCHAR_MAX): Likewise.
16301         (CHAR_MIN): Likewise.
16302         (CHAR_MAX): Likewise.
16303         (MB_LEN_MAX): Use macro-int-constant.
16304         (SHRT_MIN): Use macro-int-constant.  Specify type.
16305         (SHRT_MAX): Likewise.
16306         (USHRT_MAX): Likewise.
16307         (INT_MAX): Likewise.
16308         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16309         bound negative.
16310         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16311         bound with "U".
16312         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16313         bound with "L".
16314         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16315         bound negative.  Suffix upper bound with "L".
16316         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16317         bound with "UL".
16318         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16319         Specify type.
16320         [C99-based standards] (LLONG_MAX): Likewise.
16321         [C99-based standards] (ULLONG_MAX): Likewise.
16322         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16323         == 0.
16324         [ISO11] (max_align_t): Require type.
16325         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16326
16327         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16328         from $CFLAGS, without defining away __attribute__ calls.
16329         (checknamespace): Use $CFLAGS_namespace.
16330
16331         * conform/conformtest.pl (@keywords): Only include C99 keywords
16332         for standards based on C99 or C11.
16333
16334         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16335         Disable tests.
16336         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16337         UNIX98]: Likewise.
16338
16339         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16340         usability of symbols in #if.
16341
16342         * conform/conformtest.pl: If macro or constant types start
16343         "promoted:", expect the symbol to be of the following type
16344         promoted by the integer promotions.
16345
16346         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16347         in one place.  Also handle "macro-constant".
16348
16349         * conform/conformtest.pl: Only accept expected macro values with
16350         "==".  Parse all "macro" lines in one place.
16351         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16352
16353         * conform/conformtest.pl: Handle braced types on "constant" lines
16354         instead of handling "typed-constant".
16355         * conform/data/signal.h-data: Use "constant" instead of
16356         "typed-constant".
16357
16358         * conform/conformtest.pl: Handle "optional-" at start of lines in
16359         one place rather than duplicating several cases.  Handle each
16360         format of "macro" line with initial "optional-".
16361
16362         * conform/conformtest.pl: Only accept expected constant or
16363         optional-constant values with "==".  Parse all "constant" lines in
16364         one place.  Parse all "optional-constant" lines in one place.
16365         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16366         * conform/data/fmtmsg.h-data: Likewise.
16367         * conform/data/netinet/in.h-data: Likewise.
16368         * conform/data/tar.h-data: Likewise.
16369         * conform/data/limits.h-data: Use "==" form on "constant" and
16370         "optional-constant" lines.
16371
16372         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16373         Use -std=c99 for XOPEN2K.
16374         (@knownproblems): Remove.
16375         (newtoken): Don't check %isknown.
16376
16377         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16378         Do not expect macro.
16379         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16380         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16381         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16382         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16383         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16384         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16385         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16386         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16387         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16388         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16389         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16390         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16391         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16392         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16393         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16394         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16395         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16396         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16397         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16398         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16399         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16400         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16401         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16402         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16403         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16404         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16405         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16406         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16407         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16408         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16409         [XPG3] (acosh): Likewise.
16410         [XPG3] (asinh): Likewise.
16411         [XPG3] (atanh): Likewise.
16412         [XPG3] (cbrt): Likewise.
16413         [XPG3] (expm1): Likewise.
16414         [XPG3] (ilogb): Likewise.
16415         [XPG3] (log1p): Likewise.
16416         [XPG3] (logb): Likewise.
16417         [XPG3] (nextafter): Likewise.
16418         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16419         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16420         [XPG3] (remainder): Likewise.
16421         [XPG3] (rint): Likewise.
16422         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16423         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16424         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16425         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16426         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16427         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16428         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16429         [UNIX98 || XOPEN2K] (scalb): Expect.
16430         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16431         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16432         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16433         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16434         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16435         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16436         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16437         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16438         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16439         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16440         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16441         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16442         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16443         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16444         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16445         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16446         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16447         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16448         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16449         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16450         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16451         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16452         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16453         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16454         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16455         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16456         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16457         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16458         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16459         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16460         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16461         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16462         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16463         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16464         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16465         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16466         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16467         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16468         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16469         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16470         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16471         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16472         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16473         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16474         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16475         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16476         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16477         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16478         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16479         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16480         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16481         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16482         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16483         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16484         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16485         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16486         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16487         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16488         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16489         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16490         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16491         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16492         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16493         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16494         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16495         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16496         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16497         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16498         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16499         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16500         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16501         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16502         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16503         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16504         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16505         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16506         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16507         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16508         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16509         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16510         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16511         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16512         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16513         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16514         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16515         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16516         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16517         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16518         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16519         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16520         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16521         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16522         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16523         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16524         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16525         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16526         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16527         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16528         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16529         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16530         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16531         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16532         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16533         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16534         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16535         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16536         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16537         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16538         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16539         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16540         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16541         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16542         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16543         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16544         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16545         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16546         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16547         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16548         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16549         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16550         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16551         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16552         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16553         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16554         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16555         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16556         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16557         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16558         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16559         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16560         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16561         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16562         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16563         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16564         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16565         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16566         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16567
16568         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16569         _XOPEN_SOURCE_EXTENDED for XPG4.
16570
16571         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16572
16573         * Makeconfig (localtime): Remove variable.
16574         (inst_localtime-file): Likewise.
16575
16576 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16577
16578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16579         Update.
16580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16581         Update.
16582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16583         Update.
16584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16585         Update.
16586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16587         Update.
16588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16589         Update.
16590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16591         Update.
16592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16593         Update.
16594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16595         Update.
16596
16597 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16598
16599         [BZ #2550]
16600         [BZ #2570]
16601         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16602         comparisons to determine direction to adjust input.
16603         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16604         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16605         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16606         Likewise.
16607         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16608         Likewise.
16609         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16610         Likewise.
16611         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16612         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16613         Likewise.
16614         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16615         Likewise.
16616         * math/libm-test.inc (nexttoward_test): Add more tests.
16617
16618 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16619
16620         [BZ #14040]
16621         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16622         in version GLIBC_2.1, not GLIBC_2.0.
16623         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16624         Likewise.
16625
16626 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16627
16628         [BZ #13942]
16629         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16630         (1 - x) * (1 + x).
16631         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16632         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16633         * math/libm-test.inc (acos_test): Add more tests.
16634         (asin_test): Likewise.
16635         * sysdeps/i386/fpu/libm-test-ulps: Update.
16636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16637
16638         [BZ #14034]
16639         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16640         of square root.
16641         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16642         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16643         * math/libm-test.inc (acos_test_tonearest): New function.
16644         (acos_test_towardzero): Likewise.
16645         (acos_test_downward): Likewise.
16646         (acos_test_upward): Likewise.
16647         (asin_test_tonearest): Likewise.
16648         (asin_test_towardzero): Likewise.
16649         (asin_test_downward): Likewise.
16650         (asin_test_upward): Likewise.
16651         (main): Call the new functions.
16652         * sysdeps/i386/fpu/libm-test-ulps: Update.
16653         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16654
16655         [BZ #13884]
16656         [BZ #13924]
16657         * math/e_exp10.c: Include <float.h>.
16658         (__ieee754_exp10): Handle underflow here rather than multiplying
16659         large negative argument by M_LN10.
16660         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16661         of __ieee754_expf.
16662         * math/e_exp10l.c: Include <float.h>.
16663         (__ieee754_exp10l): Handle underflow here rather than multiplying
16664         large negative argument by M_LN10l.
16665         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16666         spurious overflow exception on underflow.
16667
16668 2012-04-29  Marek Polacek  <polacek@redhat.com>
16669
16670         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16671         (__fortify_function): New macro.
16672         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16673         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16674         __extern_always_inline.
16675         * libio/bits/stdio2.h: Likewise.
16676         * libio/bits/stdio.h: Likewise.
16677         * string/string.h: Likewise.
16678         * string/bits/string3.h: Likewise.
16679         * include/stdio.h: Likewise.
16680         * stdlib/bits/stdlib.h: Likewise.
16681         * stdlib/stdlib.h: Likewise.
16682         * rt/bits/mqueue2.h: Likewise.
16683         * rt/mqueue.h: Likewise.
16684         * posix/bits/unistd.h: Likewise.
16685         * posix/unistd.h: Likewise.
16686         * io/bits/poll2.h: Likewise.
16687         * io/bits/fcntl2.h: Likewise.
16688         * io/fcntl.h: Likewise.
16689         * io/sys/poll.h: Likewise.
16690         * misc/bits/syslog.h: Likewise.
16691         * misc/bits/syslog-ldbl.h: Likewise.
16692         * misc/sys/syslog.h: Likewise.
16693         * socket/bits/socket2.h: Likewise.
16694         * socket/sys/socket.h: Likewise.
16695         * debug/tst-chk1.c: Likewise.
16696         * wcsmbs/bits/wchar2.h: Likewise.
16697         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16698         * wcsmbs/wchar.h: Likewise.
16699
16700 2012-04-29  Andreas Jaeger  <aj@suse.de>
16701
16702         * Makerules (tests): Remove enable-check-abi protection.
16703         (check-abi-warn): Remove.
16704         (check-abi-%): Remove check-abi-warn usage.
16705
16706         * configure.in: Remove check-abi configure option.
16707         * configure: Regenerated.
16708         * config.make.in (enable-check-abi): Remove.
16709
16710 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16711
16712         [BZ #14033]
16713         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16714         double functions to double *_finite functions.
16715
16716         [BZ #13941]
16717         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16718         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16719         LDBL_MIN_EXP.
16720         * stdio-common/Makefile (tests): Add tst-sprintf3.
16721         * stdio-common/tst-sprintf3.c: New file.
16722
16723         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16724         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16725
16726 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16727
16728         * conform/conformtest.pl: Remove duplicate typed-constant
16729         handling.
16730
16731 2012-04-28  David S. Miller  <davem@davemloft.net>
16732
16733         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16734         (check-abi-%): Remove AWK script prerequisite and explicit
16735         abilist directory.
16736         (check-abi): Rewrite to just diff the symlist with the abilist.
16737         (config-tls, config-abi-config): Delete, no longer used.
16738         (update-abi-%): Remove AWK script and explicit abilist directory.
16739         (update-abi): Rewrite to simply compare and conditionally copy the
16740         symlist and the sysdep abilist file.  Remove update-abi-config
16741         checks.
16742         * abilist/ld.abilist: Remove.
16743         * abilist/libBrokenLocale.abilist: Remove.
16744         * abilist/libanl.abilist: Remove.
16745         * abilist/libcrypt.abilist: Remove.
16746         * abilist/libdl.abilist: Remove.
16747         * abilist/librt.abilist: Remove.
16748         * abilist/libthread_db.abilist: Remove.
16749         * abilist/libutil.abilist: Remove.
16750         * scripts/extract-abilist.awk: Remove.
16751         * scripts/merge-abilist.awk: Remove.
16752         * sysdeps/generic/libcidn.abilist: New file.
16753         * sysdeps/generic/libnss_compat.abilist: New file.
16754         * sysdeps/generic/libnss_db.abilist: New file.
16755         * sysdeps/generic/libnss_dns.abilist: New file.
16756         * sysdeps/generic/libnss_files.abilist: New file.
16757         * sysdeps/generic/libnss_hesiod.abilist: New file.
16758         * sysdeps/generic/libnss_nis.abilist: New file.
16759         * sysdeps/generic/libnss_nisplus.abilist: New file.
16760         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16761         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16762         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16763         file.
16764         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16765         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16766         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16767         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16768         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16769         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16770         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16771         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16772         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16773         file.
16774         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16775         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16776         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16777         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16778         file.
16779         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16780         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16781         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16782         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16783         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16784         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16785         file.
16786         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16787         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16788         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16789         file.
16790         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16791         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16792         New file.
16793         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16794         New file.
16795         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16796         New file.
16797         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16798         New file.
16799         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16800         New file.
16801         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16802         New file.
16803         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16804         New file.
16805         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16806         New file.
16807         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16808         New file.
16809         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16810         New file.
16811         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16812         New file.
16813         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16814         New file.
16815         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16816         New file.
16817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16818         file.
16819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16820         New file.
16821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16822         New file.
16823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16824         file.
16825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16826         New file.
16827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16828         New file.
16829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16830         file.
16831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16832         New file.
16833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16834         New file.
16835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16836         New file.
16837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16838         New file.
16839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16840         New file.
16841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16842         New file.
16843         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16845         file.
16846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16847         New file.
16848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16849         file.
16850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16851         file.
16852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16853         file.
16854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16855         file.
16856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16857         file.
16858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16859         New file.
16860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16861         file.
16862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16863         file.
16864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16865         New file.
16866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16867         file.
16868         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16870         file.
16871         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16872         New file.
16873         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16874         file.
16875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16876         file.
16877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16878         file.
16879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16880         file.
16881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16882         file.
16883         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16884         New file.
16885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16886         file.
16887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16888         file.
16889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16890         New file.
16891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16892         file.
16893         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16894         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16895         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16896         file.
16897         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16898         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16899         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16900         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16901         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16902         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16903         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16904         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16905         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16906         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16909         file.
16910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16911         New file.
16912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16913         file.
16914         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16915         file.
16916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16917         file.
16918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16919         file.
16920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16921         file.
16922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16923         New file.
16924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16925         New file.
16926         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16927         file.
16928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16929         New file.
16930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16931         file.
16932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16933         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16934         file.
16935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16936         New file.
16937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16938         file.
16939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16940         file.
16941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16942         file.
16943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16944         file.
16945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16946         file.
16947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16948         New file.
16949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16950         New file.
16951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16952         file.
16953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16954         New file.
16955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16956         file.
16957
16958 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16959
16960         * conform/conformtest.pl: Fix typo in handling typed-constant from
16961         allow-header.
16962
16963 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16964
16965         * README: Cut down references to pre-2.6 Linux kernels and
16966         Linuxthreads.  Update lists of configurations in libc and ports
16967         and sort alphabetically.  Say "or newer" with Linux kernel version
16968         requirements.
16969
16970         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16971
16972 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16973
16974         [BZ #887]
16975         * math/libm-test.inc (logb_test_downward): New test to expose
16976         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16977         rounding mode.
16978
16979 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16980
16981         [BZ #14027]
16982         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16983         to be done.
16984         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16985         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16986
16987 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16988
16989         * sysdeps/unix/i386/brk.S: Remove file.
16990         * sysdeps/unix/i386/dl-brk.S: Likewise.
16991         * sysdeps/unix/i386/pipe.S: Likewise.
16992         * sysdeps/unix/i386/sigreturn.S: Likewise.
16993         * sysdeps/unix/i386/syscall.S: Likewise.
16994         * sysdeps/unix/i386/vfork.S: Likewise.
16995         * sysdeps/unix/i386/wait.S: Likewise.
16996
16997         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16998         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16999
17000         * configure.in (arm*-none*): Do not allow without
17001         --enable-hacker-mode.
17002         (netbsd*): Remove case setting base_os.
17003         (386bsd*): Likewise.
17004         (freebsd*): Likewise.
17005         (bsdi*): Likewise.
17006         (osf*): Likewise.
17007         (sunos*): Likewise.
17008         (ultrix*): Likewise.
17009         (newsos*): Likewise.
17010         (dynix*): Likewise.
17011         (*bsd*): Likewise.
17012         (sysv*): Likewise.
17013         (isc*): Likewise.
17014         (esix*): Likewise.
17015         (sco*): Likewise.
17016         (minix*): Likewise.
17017         (irix4*): Likewise.
17018         (irix6*): Likewise.
17019         (solaris[2-9]*): Likewise.
17020         (none): Likewise.
17021         * configure: Regenerated.
17022
17023 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17024
17025         [BZ #11521]
17026         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17027         overflow or cancellation in calculating denominator.
17028         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17029         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17030         down expression to avoid unexpected rounding in newer GCCs.
17031         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17032
17033 2012-04-26  David S. Miller  <davem@davemloft.net>
17034
17035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17036         long-double compat symbols.
17037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17042         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17043         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17050
17051 2012-04-25  David S. Miller  <davem@davemloft.net>
17052
17053         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17054         HWCAP_* values only after the memory barriers have been defined.
17055         (atomic_full_barrier): Define.
17056         (atomic_read_barrier): Define.
17057         (atomic_write_barrier): Define.
17058
17059 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17060
17061         * shlib-versions: Add libgcc_s version information.
17062         * sysdeps/generic/libgcc_s.h: Remove.
17063         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17064         libgcc_s.h.
17065         * sysdeps/gnu/unwind-resume.c: Likewise.
17066         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17067
17068 2012-04-25  David S. Miller  <davem@davemloft.net>
17069
17070         * sysdeps/unix/sparc/brk.S: Delete.
17071         * sysdeps/unix/sparc/dl-brk.S: Delete.
17072         * sysdeps/unix/sparc/pipe.S: Delete.
17073         * sysdeps/unix/sparc/sysdep.S: Delete.
17074         * sysdeps/unix/sparc/sysdep.h: Delete.
17075         * sysdeps/unix/sparc/vfork.S: Delete.
17076         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17077         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17078         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17079         ret_ERRVAL, r0, r1, MOVE): Define.
17080         (JUMPTARGET): Remove.
17081         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17082         sysdeps/unix/sparc/sysdep.h
17083         (ENTRY, END): Remove.
17084         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17085
17086 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17087
17088         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17089         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17090         -DIS_IN_build.
17091
17092         * timezone/README: Update upstream location and email address for
17093         tzcode and tzdata.
17094         * timezone/zdump.c: Update from tzcode 2012b.
17095         * timezone/zic.c: Likewise.
17096
17097         * configure.in (libc_cv_as_needed): Remove test.
17098         * configure: Regenerated.
17099         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17100         conditional definition.
17101         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17102         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17103         * config.make.in (have-as-needed): Remove variable.
17104
17105 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17106             Paul Pluzhnikov  <ppluzhnikov@google.com>
17107
17108         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17109         strings correctly.
17110
17111 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17112
17113         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17114         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17115         * sysdeps/sh/strlen.S: Likewise.
17116
17117 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17118
17119         * sysdeps/unix/fork.S: Remove file.
17120         * sysdeps/unix/i386/fork.S: Likewise.
17121         * sysdeps/unix/sparc/fork.S: Likewise.
17122
17123         * sysdeps/unix/system.c: Remove file.
17124         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17125
17126         * sysdeps/unix/getegid.S: Remove file.
17127         * sysdeps/unix/geteuid.S: Likewise.
17128
17129 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17130
17131         * scripts/check-localplt.awk: New file.
17132         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17133         of diff.
17134         * scripts/data/localplt-generic.data: Add a comment.
17135
17136         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17137         NODE when __dir_mkfile failed.
17138         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17139         Reported by Ludovic Courtès <ludo@gnu.org>.
17140
17141 2012-04-24  Andreas Jaeger  <aj@suse.de>
17142
17143         * Makerules (common-clean): Also remove gen-as-const-headers
17144         files.
17145
17146 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17147
17148         * Makerules (native-compile): Do not change working directory for
17149         build.  Use $(OUTPUT_OPTION) in command.
17150         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17151
17152 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17153
17154         [BZ #13886]
17155         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17156         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17157         * math/libm-test.inc (floor_test): Add more tests.
17158         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17159
17160 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17161
17162         * sysdeps/unix/getdents.c: Remove file.
17163         * sysdeps/unix/sysv/getdents.c: Likewise.
17164         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17165
17166         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17167         sysdeps/unix/mman/syscalls.list.
17168         (mmap): Likewise.
17169         (mprotect): Likewise.
17170         (msync): Likewise.
17171         (munmap): Likewise.
17172         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17173         * sysdeps/unix/mman/syscalls.list: Remove.
17174         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17175
17176         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17177         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17178         * configure: Regenerated.
17179         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17180         $(libgcc_s_suffix).
17181         * config.make.in (libgcc_s_suffix): Remove variable.
17182
17183 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17184
17185         * sysdeps/unix/sysv/gethostname.c: Move to ...
17186         * sysdeps/posix/gethostname.c: ... here.
17187
17188         * sysdeps/unix/execve.S: Remove file.
17189
17190         * sysdeps/unix/_exit.S: Remove file.
17191
17192 2012-04-23  Andreas Jaeger  <aj@suse.de>
17193
17194         [BZ #13739]
17195         * manual/Makefile: Remove make dist support, there's no
17196         need for a stand-alone documentation tar ball.
17197         (TEXI2DVI): Define always, it's not in Makeconfig.
17198         (dist): Removed.
17199         (tar-it): Removed.
17200         (edition): Removed.
17201         (glibc-doc-$(edition).tar): Removed
17202         (%.Z): Removed.
17203         (%.gz): Removed.
17204         (%.uu): Removed.
17205         (ETAGS): Remove, it's in Makeconfig.
17206         (move-if-change): Remove, it's in Makeconfig.
17207
17208 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17209
17210         [BZ #13970]
17211         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17212         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17213         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17214         (strtod_l, strtof_l, strtold_l): Remove __wur.
17215         It is not necessarily an error to ignore strtol's return value.
17216         One can reliably look at the stored endptr to decide whether
17217         the number had valid syntax.
17218
17219 2012-04-21  Andreas Jaeger  <aj@suse.de>
17220
17221         [BZ #13739]
17222         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17223
17224 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17225
17226         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17227         * sysdeps/unix/sysv/Versions: Remove file.
17228
17229 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17230
17231         [BZ #13927]
17232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17233
17234 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17235
17236         [BZ #7064]
17237         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17238         version from __vm86.
17239
17240 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17241
17242         * sysdeps/unix/common/lxstat.c: Remove file.
17243         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17244
17245         * sysdeps/unix/sysv/Makefile: Remove file.
17246
17247         * sysdeps/unix/sysv/direct.h: Remove file.
17248
17249         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17250         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17251         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17252         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17253         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17254         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17255         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17256
17257         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17258
17259         * sysdeps/unix/xmknod.c: Remove file.
17260         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17261
17262         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17263
17264         * sysdeps/unix/sysv/i386/time.S: Remove file.
17265
17266         * sysdeps/unix/fxstat.c: Remove file.
17267         * sysdeps/unix/xstat.c: Likewise.
17268         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17269
17270         * sysdeps/unix/sysv/sigaction.c: Remove file.
17271
17272         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17273         (sysdep_headers): Remove variable.
17274         [termio.h not in sysdep_headers] (generated): Likewise.
17275         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17276         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17277         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17278         * sysdeps/unix/sysv/tcflow.c: Likewise.
17279         * sysdeps/unix/sysv/tcflush.c: Likewise.
17280         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17281         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17282         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17283         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17284         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17285
17286         * sysdeps/unix/siglist.c: Remove file.
17287
17288         * sysdeps/unix/getppid.S: Remove file.
17289
17290         * sysdeps/unix/mkdir.c: Remove file.
17291         * sysdeps/unix/rmdir.c: Likewise.
17292
17293 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17294
17295         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17296         ERR_MAX value.
17297         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17298         errlist-compat value.
17299
17300 2012-04-18  David S. Miller  <davem@davemloft.net>
17301
17302         * sysdeps/generic/memcopy.h (reg_char): Delete.
17303         * debug/strcat_chk.c: Use char, not reg_char.
17304         * debug/strcpy_chk.c: Likewise.
17305         * debug/strncat_chk.c: Likewise.
17306         * debug/strncpy_chk.c: Likewise.
17307         * string/memchr.c: Likewise.
17308         * string/memrchr.c: Likewise.
17309         * string/rawmemchr.c: Likewise.
17310         * string/strcat.c: Likewise.
17311         * string/strchr.c: Likewise.
17312         * string/strchrnul.c: Likewise.
17313         * string/strcmp.c: Likewise.
17314         * string/strcpy.c: Likewise.
17315         * string/strncat.c: Likewise.
17316         * string/strncmp.c: Likewise.
17317         * string/strncpy.c: Likewise.
17318
17319 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17320
17321         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17322         __builtin_memcopy is called when src and dest ranges are known to not
17323         overlap.
17324
17325 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17326
17327         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17328         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17329         fwd_align_merge macro call.
17330         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17331         bwd_align_merge macro call.
17332         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17333
17334 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17335
17336         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17337         bwd_align_merge macros.
17338         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17339         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17340         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17341
17342 2012-04-18  David S. Miller  <davem@davemloft.net>
17343
17344         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17345
17346 2012-04-18  Andreas Jaeger  <aj@suse.de>
17347
17348         [BZ# 6794]
17349         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17350         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17351         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17352
17353         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17354         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17355         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17356
17357         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17358         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17359         Adjust for changed ldbl-128 files.
17360
17361         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17362         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17363         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17364
17365 2012-04-17  David S. Miller  <davem@davemloft.net>
17366
17367         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17368
17369 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17370
17371         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17372         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17373         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17374         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17375         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17376         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17377
17378 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17379
17380         [BZ #6794]
17381         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17382         * math/libm-test.inc: Add ilogb errno and exception tests.
17383         * math/w_ilogb.c: New file: ilogb wrapper.
17384         * math/w_ilogbf.c: New file: ilogbf wrapper.
17385         * math/w_ilogbl.c: New file: ilogbl wrapper.
17386         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17387         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17388         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17389         exception being thrown with 0.0 as argument.
17390         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17391         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17392         exception being thrown with 0.0 as argument.
17393         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17394         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17395         exception being thrown with 0.0 as argument.
17396         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17397         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17398         exception being thrown with 0.0 as argument.
17399         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17400         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17401         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17402         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17403         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17404         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17405         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17406         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17407         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17408
17409 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17410
17411         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17412         with altivec.
17413
17414 2012-04-16  Marek Polacek  <polacek@redhat.com>
17415
17416         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17417
17418 2012-04-16  Marek Polacek  <polacek@redhat.com>
17419
17420         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17421         operands of fdivp instruction.
17422
17423 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17424
17425         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17426         * elf/tst-auditmod3b.c: Likewise.
17427         * elf/tst-auditmod4b.c: Likewise.
17428         * elf/tst-auditmod5b.c: Likewise.
17429         * elf/tst-auditmod6b.c: Likewise.
17430         * elf/tst-auditmod6c.c: Likewise.
17431         * elf/tst-auditmod7b.c: Likewise.
17432         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17433         * sysdeps/x86_64/preconfigure.in: Likewise.
17434         * sysdeps/x86_64/preconfigure: Regenerated.
17435
17436 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17437
17438         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17439         __ILP32__.
17440
17441 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17442
17443         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17444         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17445
17446 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17447
17448         [BZ #13973]
17449         * locale/iso-639.def: Fix gl language name. Spotted by
17450         Yaron Shahrabani.
17451
17452 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17453
17454         [BZ #2074]
17455         * libio/libio.h (__io_write_fn): Update comment.
17456
17457 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17458
17459         [BZ #2074]
17460         * stdio.texi (Hook Functions): The user provided writer function
17461         is not allowed to return -1.
17462
17463 2012-04-11  David S. Miller  <davem@davemloft.net>
17464
17465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17466
17467 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17468
17469         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17470         Add a leading slash to rtkaio.
17471
17472 2012-04-11  Jim Meyering  <meyering@redhat.com>
17473
17474         [BZ #11959]
17475         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17476         It is not necessarily an error to ignore fwrite's return
17477         value.  One can reliably use ferror to test for errors after
17478         the fact.
17479
17480 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17481
17482         * bits/types.h (__snseconds_t): New type.
17483         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17484
17485         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17486         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17487         (__SNSECONDS_T_TYPE): Likewise.
17488         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17489         (__SNSECONDS_T_TYPE): Likewise.
17490         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17491         (__SNSECONDS_T_TYPE): Likewise.
17492
17493 2012-04-10  Andreas Jaeger  <aj@suse.de>
17494
17495         [BZ #2636]
17496         * manual/time.texi (Processor Time): Return type of times is
17497         elapsed real time since an arbitrary point in the past.
17498         (CPU Time): Move CLK_TCK from here...
17499         (Processor Time): ...to here.  Correct description.
17500         * manual/conf.texi (Constants for Sysconf): Correct description of
17501         _SC_CLK_TCK.
17502
17503 2012-04-10  David S. Miller  <davem@davemloft.net>
17504
17505         [BZ #13967]
17506         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17507         where the is a gap between DT_REL(A) and DT_JMPREL.
17508
17509 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17510
17511         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17512         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17513         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17514
17515 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17516
17517         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17518         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17519         (dl_main): Handle --inhibit-cache.
17520         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17521         _dl_inhibit_cache.
17522         * elf/dl-load.c (_dl_map_object): Use it.
17523         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17524
17525 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17526
17527         [BZ #13872]
17528         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17529         (__ieee754_powl): Saturate large exponents rather than testing for
17530         overflow of y*log2(x).
17531         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17532         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17533         exceptions.
17534
17535         [BZ #11521]
17536         * math/s_ctan.c: Include <float.h>.
17537         (__ctan): Avoid internal overflow or cancellation in calculating
17538         denominator.
17539         * math/s_ctanf.c: Likewise.
17540         * math/s_ctanl.c: Likewise.
17541         * math/s_ctanh.c: Likewise.
17542         * math/s_ctanhf.c: Likewise.
17543         * math/s_ctanhl.c: Likewise.
17544         * math/libm-test.inc (ctan_test): Add more tests.
17545         (ctanh_test): Likewise.
17546         * sysdeps/i386/fpu/libm-test-ulps: Update.
17547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17548
17549 2012-04-09  Andreas Jaeger  <aj@suse.de>
17550
17551         [BZ #6894]
17552         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17553         is an optional BSD extension.
17554
17555         [BZ #10254]
17556         * manual/stdio.texi (Opening Streams): Document additional fopen
17557         parameters.
17558
17559 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17560
17561         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17562         %eax without telling the compiler.
17563
17564 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17565
17566         [BZ # 13963]
17567         * manual/install.texi: Use sourceware.org.
17568
17569 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17570
17571         [BZ #13873]
17572         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17573         (__ieee754_pow): Generate overflow and underflow using huge*huge
17574         and tiny*tiny rather than just returning constant infinity or zero
17575         for large exponents.
17576         * math/libm-test.inc (pow_test): Require overflow exceptions for
17577         applicable cases of large exponents.
17578
17579         [BZ #706]
17580         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17581         (__ieee754_pow): Use iterative multiplication algorithm only for
17582         integer exponents with absolute value below 1024.  Check for odd
17583         integer exponents when using algorithm for real exponents.
17584         * math/libm-test.inc (pow_test): Add more tests.
17585         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17586
17587 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17588
17589         [BZ #13705]
17590         * math/libm-test.inc (exp_test): Do not allow overflow exception
17591         on underflow test.
17592
17593 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17594
17595         [BZ #13705]
17596         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17597         instead of __kernel_standard_f.
17598
17599 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17600
17601         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17602         * sysdeps/x86_64/memset_chk.S: Likewise.
17603
17604 2012-04-08  Andreas Jaeger  <aj@suse.de>
17605
17606         [BZ #10153]
17607         * manual/startup.texi (Environment Access): Describe return value
17608         for putenv and setenv.
17609
17610         [BZ #6895]
17611         * manual/filesys.texi (Directory Entries): Add description for
17612         DT_LNK.
17613
17614         [BZ #6890]
17615         * manual/filesys.texi (Directory Entries): Clarify that it's file
17616         system not operating system in the description of DT_UNKNOWN.
17617
17618         [BZ #6578]
17619         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17620
17621 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17622
17623         [BZ #6649]
17624         * manual/llio.texi (Opening and Closing Files): Add cross
17625         reference to explain mode argument.
17626
17627 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17628
17629         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17630         * sysdeps/x86_64/memset_chk.S: Likewise.
17631
17632 2012-04-07  David S. Miller  <davem@davemloft.net>
17633
17634         * elf/elf.h (R_SPARC_WDISP10): Define.
17635         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17636         R_SPARC_SIZE32.
17637         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17638         R_SPARC_SIZE64 and R_SPARC_H34.
17639
17640 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17641
17642         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17643         conditions and remove no longer applicable assertion.
17644
17645 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17646
17647         * bits/byteswap.h: Include <features.h>.
17648         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17649         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17650
17651 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17652
17653         * bits/byteswap.h (__bswap_16): Removed.
17654         Include <bits/byteswap-16.h> to get __bswap_16.
17655         * sysdeps/i386/bits/byteswap.h: Likewise.
17656         * sysdeps/s390/bits/byteswap.h: Likewise.
17657         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17658         * bits/byteswap-16.h: New file.
17659         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17660         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17661         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17662         * string/Makefile (headers): Add bits/byteswap-16.h.
17663
17664 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17665
17666         [BZ #13895]
17667         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17668         extra indirection.
17669         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17670         * nss/tst-nss-static.c: New.
17671
17672 2012-04-06  Robert Millan  <rmh@gnu.org>
17673
17674         [BZ #6486]
17675         * manual/llio.texi (File Position Primitive): lseek
17676         refers to WHENCE when it really means OFFSET.
17677
17678 2012-04-06  Andreas Jaeger  <aj@suse.de>
17679
17680         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17681         strncmp declarations.
17682
17683         * abilist/libc.abilist: Add __poll and __ppoll.
17684
17685 2012-04-05  David S. Miller  <davem@davemloft.net>
17686
17687         * scripts/check-local-headers.sh: Accept a host triplet in the
17688         path matched by the exclude regexp.
17689
17690         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17691         definition.
17692         * sysdeps/powerpc/powerpc32/dl-machine.h
17693         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17694         * sysdeps/s390/s390-32/dl-machine.h
17695         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17696         * sysdeps/sparc/sparc32/dl-machine.h
17697         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17698         * sysdeps/sparc/sparc64/dl-machine.h
17699         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17700
17701         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17702         lazy binding.
17703         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17704         undefined symbol errors.
17705
17706         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17707         DT_NEEDED entries.
17708
17709 2012-04-05  Michael Matz  <matz@suse.de>
17710
17711         [BZ #13592]
17712         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17713
17714 2012-04-05  Andreas Jaeger  <aj@suse.de>
17715
17716         [BZ #13908]
17717         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17718         comment.
17719
17720 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17721
17722         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17723         which ROUND is no valid rounding mode.
17724
17725 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17726
17727         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17728         read again.
17729         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17730
17731 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17732
17733         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17734         an exception using FPU order intentionally.
17735
17736 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17737
17738         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17739         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17740         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17741         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17742
17743 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17744
17745         [BZ #12340]
17746         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17747         EINVAL when BUFLEN is too smal.
17748
17749 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17750
17751         [BZ #13553]
17752         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17753         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17754
17755 2012-04-03  Andreas Jaeger  <aj@suse.de>
17756
17757         [BZ #13938]
17758         * manual/setjmp.texi (System V contexts): Fix sentence.
17759
17760         [BZ #13926]
17761         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17762         New macro for this case.
17763         [!__GNUC__] (__bswap_64): New inline function for this case.
17764         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17765         * bits/byteswap.h: Likewise.
17766         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17767         ull, guard with __GLIBC_HAVE_LONG_LONG.
17768
17769         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17770         __GLIBC_HAVE_LONG_LONG.
17771
17772         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17773         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17774
17775 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17776
17777         [BZ #13691]
17778         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17779         inptr and inend, rather than using last_ch.
17780
17781 2012-04-02  David S. Miller  <davem@davemloft.net>
17782
17783         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17784         * stdio-common/printf-parse.h (read_int): Change return type to
17785         'int', return -1 on INT_MAX overflow.
17786         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17787         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17788         overflows INT_MAX.  Check for overflow of in-format-string precision
17789         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17790         SIZE_MAX not INT_MAX for integer overflow test.
17791         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17792         skip the construct in the format string but do not record anything.
17793         * stdio-common/bug22.c: Adjust to test both width/prevision
17794         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17795         explicitly for proper errno values.
17796
17797 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17798
17799         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17800         CHAR_MAX.
17801         * string/test-strcmp.c [! WIDE]: Likewise.
17802         * time/tst-mktime2.c: Likewise for INT_MAX.
17803         * string/test-string.h: #include <sys/param.h> for MIN.
17804
17805         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17806         * sysdeps/i386/init-first.c (init): Likewise.
17807         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17808         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17809         * sysdeps/sh/init-first.c (init): Likewise.
17810
17811 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17812
17813         * po/ru.po: Update from translation team.
17814         * po/vi.po: Likewise.
17815
17816 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17817
17818         * resolv/nss_dns/dns-host.c: Merge copyright years.
17819
17820 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17821
17822         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17823         Optimize memcpy with prefetch if
17824         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17825         src, dst pointers have unequal 16 byte alignments.
17826
17827 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17828
17829         [BZ #13928]
17830         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17831         from a CNAME entry and return the minimum ttl for the query.
17832         (gaih_getanswer_slice): Likewise.
17833
17834 2012-03-30  Jeff Law  <law@redhat.com>
17835
17836         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17837         due to long keys.
17838         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17839         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17840
17841         * resolv/nss_dns/dns-host.c: Update copyright year.
17842
17843 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17844
17845         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17846         requests to save a system call.  Fix check that all bytes are sent.
17847
17848         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17849         comments for sendmmsg.
17850
17851 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17852
17853         [BZ #13691]
17854         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17855         with only 1 character between 0x0041 and 0x01b0.
17856         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17857         * wcsmbs/tst-mbsnrtowcs.c: New file.
17858
17859 2012-03-29  David S. Miller  <davem@davemloft.net>
17860
17861         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17862         small copies by hand.
17863
17864 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17865
17866         [BZ #13761]
17867         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17868         _nss_compat_initgroups_dyn): Fall back to malloc/free
17869         for large group memberships.
17870
17871 2012-03-28  David S. Miller  <davem@davemloft.net>
17872
17873         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17874         that branches into memcpy.
17875         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17876         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17877         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17878         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17879         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17880         bits.
17881         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17882         implementation too.
17883         * sysdeps/sparc/mempcpy.S: New file.
17884
17885         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17886         the IFUNC routine in the libc case.
17887         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17888
17889         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17890         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17891         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17892         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17893         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17894         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17895         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17896         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17897
17898         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17899         loop to 256 bytes instead of 64 bytes and fix test signedness.
17900
17901         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17902         * sysdeps/sparc/sparc32/Makefile: rather than here...
17903         * sysdeps/sparc/sparc64/Makefile: and here.
17904
17905 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17906
17907         * malloc/mallocbug.c: Avoid warnings about unused variables.
17908
17909 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17910
17911         [BZ #13760]
17912         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17913         in the right place. Discard and retry query if response is
17914         larger than input buffer size.
17915
17916 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17917
17918         [BZ #369]
17919         [BZ #2678]
17920         [BZ #3866]
17921         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17922         x for large integer exponent.
17923         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17924         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17925         sign of result as needed afterwards.
17926         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17927         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17928         result for underflowing pow the same as for overflow.
17929         (__kernel_standard_l): Handle powl overflow and underflow here
17930         rather than calling __kernel_standard.
17931         * math/libm-test.inc (pow_test): Add more tests.
17932
17933         [BZ #3868]
17934         [BZ #13879]
17935         [BZ #13910]
17936         [BZ #13911]
17937         [BZ #13912]
17938         [BZ #13913]
17939         [BZ #13915]
17940         [BZ #13916]
17941         [BZ #13917]
17942         [BZ #13918]
17943         [BZ #13919]
17944         [BZ #13920]
17945         [BZ #13921]
17946         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17947         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17948         (__kernel_standard_l): New function.
17949         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17950         __kernel_standard.
17951         * math/w_acosl.c (__acosl): Likewise.
17952         * math/w_asinl.c (__asinl): Likewise.
17953         * math/w_atan2l.c (__atan2l): Likewise.
17954         * math/w_atanhl.c (__atanhl): Likewise.
17955         * math/w_coshl.c (__coshl): Likewise.
17956         * math/w_exp10l.c (__exp10l): Likewise.
17957         * math/w_exp2l.c (__exp2l): Likewise.
17958         * math/w_fmodl.c (__fmodl): Likewise.
17959         * math/w_hypotl.c (__hypotl): Likewise.
17960         * math/w_j0l.c (__j0l, __y0l): Likewise.
17961         * math/w_j1l.c (__j1l, __y1l): Likewise.
17962         * math/w_jnl.c (__jnl, __ynl): Likewise.
17963         * math/w_lgammal.c (__lgammal): Likewise.
17964         * math/w_log10l.c (__log10l): Likewise.
17965         * math/w_log2l.c (__log2l): Likewise.
17966         * math/w_logl.c (__logl): Likewise.
17967         * math/w_powl.c (__powl): Likewise.
17968         * math/w_remainderl.c (__remainderl): Likewise.
17969         * math/w_scalbl.c (sysv_scalbl): Likewise.
17970         * math/w_sinhl.c (__sinhl): Likewise.
17971         * math/w_sqrtl.c (__sqrtl): Likewise.
17972         * math/w_tgammal.c (__tgammal): Likewise.
17973         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17974         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17975         * math/libm-test.inc (acos_test): Add more tests.
17976         (acosh_test): Likewise.
17977         (asin_test): Likewise.
17978         (atanh_test): Likewise.
17979         (exp_test): Likewise.
17980         (exp10_test): Likewise.
17981         (exp2_test): Likewise.
17982         (expm1_test): Likewise.
17983         (lgamma_test): Likewise.
17984         (log_test): Likewise.
17985         (log10_test): Likewise.
17986         (log1p_test): Likewise.
17987         (log2_test): Likewise.
17988         (pow_test): Do not allow some spurious overflow exceptions.
17989         (sqrt_test): Add more tests.
17990         (tgamma_test): Likewise.
17991         (y0_test): Likewise.
17992         (y1_test): Likewise.
17993         (yn_test): Likewise.
17994
17995 2012-03-27  Anton Blanchard  <anton@samba.org>
17996
17997         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17998         MAP_HUGETLB.
17999         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18000         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18001         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18002
18003 2012-03-27  David S. Miller  <davem@davemloft.net>
18004
18005         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18006
18007         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18008         have-as-vis3 check.
18009
18010 2012-03-27  Andreas Jaeger  <aj@suse.de>
18011
18012         * sysdeps/x86_64/elf/configure.in: Moved to ...
18013         * sysdeps/x86_64/configure.in: ... here.
18014         * sysdeps/x86_64/elf/start.S: Moved to ...
18015         * sysdeps/x86_64/start.S: ... here.
18016         * sysdeps/x86_64/elf/configure: Delete.
18017
18018         * sysdeps/x86_64/configure.in: Merge contents from
18019         sysdeps/i386/configure.in (without i686 check).
18020
18021         * sysdeps/i386/elf/Versions: Merge into ...
18022         * sysdeps/i386/Versions: ... this.
18023         * sysdeps/i386/elf/Versions: Delete file.
18024         * sysdeps/i386/elf/start.S: Moved to ...
18025         * sysdeps/i386/start.S: ...here.
18026         * sysdeps/i386/elf/configure.in: Merge into...
18027         * sysdeps/i386/configure.in: ...here.
18028         * sysdeps/i386/elf/configure.in: Delete file.
18029         * sysdeps/i386/elf/configure: Delete file.
18030
18031         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18032         * debug/backtracesyms.c: ... here.
18033         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18034         * debug/backtracesymsfd.c: ... here.
18035         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18036         * sysdeps/generic/ifunc-sel.h: ... here.
18037
18038         * sysdeps/unix/i386/start.c: Delete file.
18039         * sysdeps/unix/sparc/start.c: Delete file.
18040         * sysdeps/unix/start.c: Delete file.
18041
18042         * sysdeps/sh/elf/configure.in: Moved to ...
18043         * sysdeps/sh/configure.in: ... here.
18044         * sysdeps/sh/elf/start.S: Moved to ...
18045         * sysdeps/sh/start.S: ... here.
18046         * sysdeps/sh/elf/configure: Delete file.
18047
18048         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18049         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18050         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18051         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18052         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18053         * sysdeps/powerpc/powerpc64/start.S: here.
18054         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18055         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18056         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18057         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18058         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18059
18060         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18061         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18062         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18063         * sysdeps/powerpc/powerpc32/start.S: ... here.
18064         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18065         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18066         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18067
18068         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18069         * sysdeps/powerpc/ifunc-sel.h: ... here.
18070         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18071         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18072
18073         * sysdeps/sparc/elf/configure.in: Moved to ...
18074         * sysdeps/sparc/configure.in: ... here.
18075         * sysdeps/sparc/elf/configure: Delete file.
18076         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18077         * sysdeps/sparc/sparc32/start.S: ... here.
18078         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18079         * sysdeps/sparc/sparc64/start.S: ... here.
18080         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18081         * sysdeps/sparc/sparc32/Makefile: ... this.
18082         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18083         * sysdeps/sparc/sparc64/Makefile: ... this.
18084
18085         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18086         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18087         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18088         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18089         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18090         * sysdeps/s390/s390-32/setjmp.S: ... here.
18091         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18092         * sysdeps/s390/s390-32/configure.in: ... here.
18093         * sysdeps/s390/s390-32/elf/configure: Delete file.
18094         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18095         * sysdeps/s390/s390-32/start.S: ... here.
18096
18097         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18098         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18099         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18100         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18101         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18102         * sysdeps/s390/s390-64/setjmp.S: ... here.
18103         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18104         * sysdeps/s390/s390-64/configure.in: ... here
18105         * sysdeps/s390/s390-64/elf/configure: Delete file.
18106         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18107         * sysdeps/s390/s390-64/start.S: ... here.
18108         * sysdeps/s390/s390-64/elf/configure: Delete.
18109
18110         * configure.in: Remove support for elf directories in sysdeps.
18111
18112         * configure: Regenerated.
18113         * sysdeps/i386/configure: Regenerated.
18114         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18115         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18116         * sysdeps/s390/s390-32/configure: Regenerated.
18117         * sysdeps/s390/s390-64/configure: Regenerated.
18118         * sysdeps/sh/configure: Regenerated.
18119         * sysdeps/sparc/configure: Regenerated.
18120         * sysdeps/x86_64/configure: Regenerated.
18121
18122 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18123
18124         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18125
18126         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18127         denormal result into account.
18128
18129 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18130
18131         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18132         Reported by Allan McRae <allan@archlinux.org>.
18133
18134 2012-03-23  Jeff Law  <law@redhat.com>
18135
18136         * nss/getnssent.c (__nss_getent): Fix typo.
18137
18138 2012-03-23  David S. Miller  <davem@davemloft.net>
18139
18140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18141
18142 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18143
18144         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18145         to pad to uint64_t for each field.
18146         (dl_tls_index): Replace unsigned long with uint64_t.
18147
18148 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18149         Paul Pluzhnikov  <ppluzhnikov@google.com>
18150
18151         [BZ #6528]
18152         * grp/Makefile (otherlibs): Don't set it.
18153         * inet/Makefile (otherlibs): Likewise.
18154         * login/Makefile (otherlibs): Likewise.
18155         * nscd/Makefile (otherlibs): Likewise.
18156         * posix/Makefile (otherlibs): Likewise.
18157         * pwd/Makefile (otherlibs): Likewise.
18158         * rt/Makefile (otherlibs): Likewise.
18159         * sunrpc/Makefile (otherlibs): Likewise.
18160         * nss/Makefile (otherlibs): Likewise.
18161         Add libnss_files to routines and static-only-routines.
18162         ($(objpfx)getent): Remove rule.
18163         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18164         static-only-routines.
18165
18166 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18167
18168         [BZ #13892]
18169         * math/s_cexp.c: Include <float.h>.
18170         (__cexp): Handle exp result overflowing not necessarily
18171         overflowing both real and imaginary parts of result.
18172         * math/s_cexpf.c: Likewise.
18173         * math/s_cexpl.c: Likewise.
18174         * math/libm-test.inc (cexp_test): Add more tests.
18175         * sysdeps/i386/fpu/libm-test-ulps: Update.
18176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18177
18178 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18179
18180         * include/link.h (ELFW): New macro.
18181         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18182         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18183
18184 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18185
18186         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18187         with uint64_t.
18188
18189 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18190
18191         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18192         declaration.
18193         (struct La_x32_retval): Likewise.
18194
18195 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18196
18197         * sysdeps/x86_64/preconfigure.in: New file.
18198         * sysdeps/x86_64/preconfigure: New generated file.
18199
18200 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18201
18202         [BZ #13824]
18203         * math/e_exp2l.c: Include <float.h>.
18204         (__ieee754_exp2l): Handle overflow and underflow cases
18205         separately.  Only pass fractional part of argument to
18206         __ieee754_expl.
18207         * math/libm-test.inc (exp2_test): Add more tests.
18208
18209         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18210         negating x to take absolute value.
18211         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18212         Likewise.
18213         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18214         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18215         Likewise.
18216         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18217         computing low part if x was negated.
18218         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18219
18220 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18221
18222         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18223         la_x32_gnu_pltexit.
18224         (pltexit): Cast int_retval to ptrdiff_t.
18225         * elf/tst-auditmod3b.c: Likewise.
18226         * elf/tst-auditmod4b.c: Likewise.
18227         * elf/tst-auditmod5b.c: Likewise.
18228         * elf/tst-auditmod6b.c: Likewise.
18229         * elf/tst-auditmod6c.c: Likewise.
18230         * elf/tst-auditmod7b.c: Likewise.
18231
18232         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18233         and x32_gnu_pltexit.
18234
18235         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18236         __ELF_NATIVE_CLASS.
18237         (La_x32_regs): New macro.
18238         (La_x32_retval): Likewise.
18239         (la_x32_gnu_pltenter): New function prototype.
18240         (la_x32_gnu_pltexit): Likewise.
18241
18242 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18243
18244         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18245         exponent.
18246
18247         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18248
18249         * configure.in (libc_cv_cc_nofma): Check for option to disable
18250         generation of FMA instructions.
18251         * configure: Regenerate.
18252         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18253         * sysdeps/ieee754/dbl-64/Makefile: New file.
18254         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18255         Remove brandred-fma4.
18256         (CFLAGS-brandred-fma4.c): Remove.
18257         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18258         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18259         define.
18260         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18261         define.
18262
18263 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18264
18265         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18266         LLONG_MAX != LONG_MAX.
18267         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18268         (_fitoa_word): Likewise.
18269         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18270         LLONG_MAX != LONG_MAX.
18271         * stdio-common/_itowa.h: Include <_itoa.h>.
18272         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18273         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18274         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18275         only if not defined.
18276         (_ITOA_WORD_TYPE): Likewise.
18277         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18278         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18279
18280 2012-03-21  David S. Miller  <davem@davemloft.net>
18281
18282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18283
18284 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18285
18286         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18287         of x86_64 when setting libc_cv_slibdir, libdir and
18288         libc_cv_localedir.
18289         * sysdeps/unix/sysv/linux/configure: Regenerated.
18290
18291 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18292
18293         * manual/lang.texi (Old Varargs): Remove section.
18294         (How Variadic): Update menu.
18295         (va_start): Do not mention varargs.h.
18296
18297 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18298             Joseph Myers  <joseph@codesourcery.com>
18299
18300         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18301         link test.
18302         * configure: Regenerated.
18303
18304 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18305
18306         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18307         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18308         conformtest.pl
18309
18310 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18311
18312         * NOTES: Remove.
18313         * Makefile (files-for-dist): Remove NOTES.
18314         (NOTES): Remove rule.
18315         * README: Don't refer to NOTES.
18316         * manual/creature.texi: Don't include macros.texi.
18317         * manual/intro.texi (creature.texi): Remove comment referring to
18318         NOTES.
18319
18320         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18321         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18322         * configure: Regenerated.
18323         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18324         LIBC_TRY_CC_OPTION.
18325         (libc_cv_as_i686): Likewise.
18326         (libc_cv_cc_avx): Likewise.
18327         (libc_cv_cc_sse2avx): Likewise.
18328         (libc_cv_cc_fma4): Likewise.
18329         (libc_cv_cc_novzeroupper): Likewise.
18330         * sysdeps/i386/configure: Regenerated.
18331
18332         [BZ #13883]
18333         * sysdeps/i386/fpu/s_cexp.S: Remove.
18334         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18335         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18336         * math/libm-test.inc (cexp_test): Add more tests.
18337         * sysdeps/i386/fpu/libm-test-ulps: Update.
18338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18339
18340 2012-03-21  Allan McRae  <allan@archlinux.org>
18341
18342         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18343
18344 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18345
18346         [BZ #13871]
18347         * math/w_exp2.c: Do not include <float.h>.
18348         (o_threshold, u_threshold): Remove.
18349         (__exp2): Calculate result before checking finiteness and calling
18350         __kernel_standard.
18351         * math/w_exp2f.c: Likewise.
18352         * math/w_exp2l.c: Likewise.
18353         * math/libm-test.inc (exp2_test): Require overflow exception for
18354         1e6 input.
18355
18356         [BZ #3866]
18357         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18358         range of signed 64-bit integers before using fistpll.  Remove
18359         checks for whether integers fit in mantissa bits.
18360         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18361         the range of signed 32-bit integers before using fistpl.  Remove
18362         checks for whether integers fit in mantissa bits.
18363         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18364         (__ieee754_powl): Test for y outside the range of signed 64-bit
18365         integers before using fistpll.  Reduce 64-bit values to 63-bit
18366         ones as needed.
18367         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18368         divide-by-zero is raised for zero to large negative powers.
18369         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18370         (__ieee754_powl): Test for y outside the range of signed 64-bit
18371         integers before using fistpll.  Reduce 64-bit values to 63-bit
18372         ones as needed.
18373         * math/libm-test.inc (pow_test): Add more tests.
18374
18375 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18376
18377         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18378         <stdio-common/_itoa.h>.
18379         * debug/segfault.c: Likewise.
18380         * elf/dl-cache.c: Likewise.
18381         * elf/dl-minimal.c: Likewise.
18382         * elf/dl-misc.c: Likewise.
18383         * elf/dl-sysdep.c: Likewise.
18384         * elf/dl-version.c: Likewise.
18385         * elf/rtld.c: Likewise.
18386         * hurd/hurdsock.c: Likewise.
18387         * hurd/lookup-retry.c: Likewise.
18388         * malloc/malloc.c: Likewise.
18389         * malloc/mtrace.c: Likewise.
18390         * nscd/nscd_getgr_r.c: Likewise.
18391         * nscd/nscd_getpw_r.c: Likewise.
18392         * nscd/nscd_getserv_r.c: Likewise.
18393         * posix/getopt_init.c: Likewise.
18394         * posix/wordexp.c: Likewise.
18395         * stdio-common/_itoa.c: Likewise.
18396         * stdio-common/printf_fphex.c: Likewise.
18397         * stdio-common/vfprintf.c: Likewise.
18398         * string/_strerror.c: Likewise.
18399         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18400         * sysdeps/i386/i686/hp-timing.h: Likewise.
18401         * sysdeps/mach/_strerror.c: Likewise.
18402         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18403         * sysdeps/mach/hurd/sethostid.c: Likewise.
18404         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18405         * sysdeps/mach/xpg-strerror.c: Likewise.
18406         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18407         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18408         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18409         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18410         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18411         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18412         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18413         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18414         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18415         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18416         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18417         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18418         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18419         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18420         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18421         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18422         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18423         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18424         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18425         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18426         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18427
18428         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18429
18430         * stdio-common/_itoa.h: Moved to ...
18431         * sysdeps/generic/_itoa.h: Here.
18432
18433         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18434
18435         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18436         instead of "_itoa.h" and "_itowa.h".
18437         * stdio-common/vfprintf.: Likewise.
18438
18439 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18440
18441         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18442         <bits/wordsize.h>.
18443         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18444         (__signbit): Likwise.
18445         (llrintf): Likwise.
18446         (llrint): Likwise.
18447
18448 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18449
18450         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18451         __WORDSIZE != 64.
18452
18453 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18454
18455         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18456         OVERFLOW_EXCEPTION_OK.
18457         * math/libm-test.inc ("Philosophy"): Update comment about
18458         exception testing.
18459         (OVERFLOW_EXCEPTION): Define.
18460         (OVERFLOW_EXCEPTION_OK): Likewise.
18461         (INVALID_EXCEPTION_OK): Renumber.
18462         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18463         (IGNORE_ZERO_INF_SIGN): Likewise.
18464         (test_exceptions): Handle FE_OVERFLOW.
18465         (exp10_test): Expect overflow exceptions.
18466         (exp2_test): Likewise.
18467         (expm1_test): Likewise.
18468         (nextafter_test): Likewise.
18469         (pow_test): Likewise.
18470         (scalbn_test): Likewise.
18471         (scalbln_test): Likewise.
18472
18473 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18474
18475         * sysdeps/x86_64/bits/atomic.h
18476         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18477         64bit integer.
18478         (atomic_exchange_acq): Likewise.
18479         (__arch_exchange_and_add_body): Likewise.
18480         (__arch_add_body): Likewise.
18481         (atomic_add_negative): Likewise.
18482         (atomic_add_zero): Likewise.
18483
18484 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18485
18486         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18487         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18488
18489 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18490
18491         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18492         Check __x86_64__ instead of __WORDSIZE.
18493
18494 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18495
18496         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18497
18498 2012-03-19  David S. Miller  <davem@davemloft.net>
18499
18500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18501
18502         * sysdeps/sparc/fpu/fenv_private.h: New file.
18503         * sysdeps/sparc/fpu/math_private.h: Use it.
18504         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18505         Remove.
18506         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18507         (libc_feholdexcept_setroundl): Remove.
18508         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18509         Remove.
18510         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18511         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18512
18513 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18514
18515         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18516         int64_t instead of long int.
18517         (INSERT_WORDS64): Likwise.
18518
18519 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18520
18521         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18522         _Unwind_GetCFA return to _Unwind_Ptr first.
18523
18524 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18525
18526         [BZ #13629]
18527         * math/s_clog.c: Include <float.h>.
18528         (__clog): Scale large or subnormal inputs.
18529         * math/s_clogf.c: Likewise.
18530         * math/s_clogl.c: Likewise.
18531         * math/s_clog10.c: Include <float.h>.
18532         (M_LOG10_2): Define.
18533         (__clog10): Scale large or subnormal inputs.
18534         * math/s_clog10f.c: Likewise.
18535         * math/s_clog10l.c: Likewise.
18536         * math/libm-test.inc (clog_test): Add more tests.
18537         (clog10_test): Likewise.
18538         * sysdeps/i386/fpu/libm-test-ulps: Update.
18539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18540
18541         [BZ #11451]
18542         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18543         x and y.
18544         * math/libm-test.inc (atan2_test): Add another test.
18545
18546         * Makerules (common-objdir-compile): Remove.
18547         * sysdeps/unix/Makefile (config-generated): Do not add
18548         $(unix-generated) to variable.
18549         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18550         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18551         Remove rule.
18552         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18553         Likewise.
18554         [generic bits/local_lim.h] (before-compile): Do not append to
18555         variable.
18556         [generic bits/local_lim.h] (common-generated): Likewise.
18557         [generic sys/param.h] (before-compile): Do not append to variable.
18558         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18559         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18560         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18561         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18562         include.
18563         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18564         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18565         [generic sys/param.h] ($(addprefix
18566         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18567         [generic sys/param.h] (common-generated): Do not append to
18568         variable.
18569         [generic sys/param.h] (sysdep_headers): Likewise.
18570         [generic bits/errno.h] (before-compile): Do not append to
18571         variable.
18572         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18573         rule.
18574         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18575         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18576         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18577         [generic bits/errno.h] (common-generated): Do not append to
18578         variable.
18579         [generic bits/ioctls.h] (before-compile): Do not append to
18580         variable.
18581         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18582         rule.
18583         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18584         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18585         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18586         rule.
18587         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18588         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18589         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18590         [generic bits/ioctls.h] (common-generated): Do not append to
18591         variable.
18592         [generic sys/syscall.h] (syscall.h): Remove variable.
18593         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18594         rule.
18595         [generic sys/syscall.h] (before-compile): Do not append to
18596         variable.
18597         [generic sys/syscall.h] (common-generated): Likewise.
18598         * sysdeps/unix/errnos-tmpl.c: Remove file.
18599         * sysdeps/unix/errnos.awk: Likewise.
18600         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18601         * sysdeps/unix/ioctls.awk: Likewise.
18602         * sysdeps/unix/mk-local_lim.c: Likewise.
18603         * sysdeps/unix/snarf-ioctls: Likewise.
18604
18605 2012-03-19  Richard Henderson  <rth@twiddle.net>
18606
18607         * sysdeps/i386/fpu/fenv_private.h: New file.
18608         * sysdeps/i386/fpu/math_private.h: Use it.
18609         (math_opt_barrier, math_force_eval): Remove.
18610         (libc_feholdexcept_setround_53bit): Remove.
18611         (libc_feupdateenv_53bit): Remove.
18612         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18613         (math_opt_barrier, math_force_eval): Remove.
18614         (libc_feholdexcept): Remove.
18615         (libc_feholdexcept_setround): Remove.
18616         (libc_fetestexcept, libc_fesetenv): Remove.
18617         (libc_feupdateenv_test): Remove.
18618         (libc_feupdateenv, libc_feholdsetround): Remove.
18619         (libc_feresetround): Remove.
18620
18621         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18622         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18623
18624         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18625         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18626         (libc_feupdateenv_testl): New.
18627         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18628         (libc_feupdateenv_testf): New.
18629         (libc_feupdateenv): Use libc_feupdateenv_test.
18630         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18631         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18632
18633         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18634         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18635         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18636         (libc_feresetround_noex): New.
18637         (libc_feresetround_noexf): New.
18638         (libc_feresetround_noexl): New.
18639         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18640         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18641         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18642         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18643         SET_RESTORE_ROUND.
18644         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18645         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18646         (__cos): Likewise.
18647         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18648         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18649         SET_RESTORE_ROUND_NOEX.
18650         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18651         SET_RESTORE_ROUND_NOEXF.
18652         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18653         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18654         (libc_feholdsetroundf): New.
18655         (libc_feresetround, libc_feresetroundf): New.
18656
18657         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18658         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18659         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18660
18661         * sysdeps/generic/math_private.h: Include <fenv.h>.
18662         (default_libc_feholdexcept): New.
18663         (default_libc_feholdexcept_setround): New.
18664         (default_libc_fesetenv, default_libc_feupdateenv): New.
18665         (libc_feholdexcept): Only define if undefined.
18666         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18667         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18668         (libc_feholdexcept_setroundl): Likewise.
18669         (libc_feholdexcept_setround_53bit): Likewise.
18670         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18671         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18672         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18673         (libc_feupdateenv_53bit): Likewise.
18674         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18675         (libc_feholdexcept): Convert from macro to inline function.
18676         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18677         (libc_fesetenv, libc_feupdateenv): Likewise.
18678
18679         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18680         not previously defined.
18681         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18682         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18683         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18684         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18685         * sysdeps/ieee754/flt-32/math_private.h: New file.
18686         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18687         math_private.h below SET_FLOAT_WORD.
18688         (__isnan, __isinf_ns, __finite): Remove.
18689         (__isnanf, __isinf_nsf, __finitef): Remove.
18690
18691 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18692
18693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18694
18695 2012-03-17  David S. Miller  <davem@davemloft.net>
18696
18697         [BZ #6471]
18698         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18699         for 2.16.
18700
18701 2012-03-16  David S. Miller  <davem@davemloft.net>
18702
18703         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18704         warnings.
18705
18706         [BZ #6471]
18707         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18708         properly.
18709         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18710         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18711         sysdep_routines when subdir is sysvipc.
18712         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18713         __getshmlba helper.
18714
18715         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18716
18717 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18718
18719         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18720         [__LP64__].
18721
18722 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18723
18724         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18725         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18726         (__lround): Renamed to ...
18727         (__llround): This.  Replace long int with long long int.
18728         Define lround functions as aliases of llround functions.
18729         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18730
18731 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18732
18733         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18734         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18735         adresses to uintptr_t.  Replace "long int" and "unsigned long
18736         int" with "greg_t" on va_arg.
18737
18738 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18739
18740         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18741         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18742
18743         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18744         Move e_machine check before EI_CLASS check.  Handle x32
18745         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18746         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18747         SKIP_EM_IA_64 and include
18748         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18749
18750         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18751         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18752         (add_system_dir): New macro.
18753
18754         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18755         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18756
18757 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18758
18759         [BZ #2551]
18760         [BZ #2552]
18761         [BZ #2553]
18762         [BZ #2554]
18763         [BZ #2562]
18764         [BZ #2563]
18765         [BZ #2565]
18766         [BZ #2566]
18767         [BZ #2576]
18768         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18769         (y0): Likewise.
18770         * math/w_j0f.c (j0f): Likewise.
18771         (y0f): Likewise.
18772         * math/w_j0l.c (__j0l): Likewise.
18773         (__y0l): Likewise.
18774         * math/w_j1.c (j1): Likewise.
18775         (y1): Likewise.
18776         * math/w_j1f.c (j1f): Likewise.
18777         (y1f): Likewise.
18778         * math/w_j1l.c (__j1l): Likewise.
18779         (__y1l): Likewise.
18780         * math/w_jn.c (jn): Likewise.
18781         (yn): Likewise.
18782         * math/w_jnf.c (jnf): Likewise.
18783         (ynf): Likewise.
18784         * math/w_jnl.c (__jnl): Likewise.
18785         (__ynl): Likewise.
18786         * math/libm-test.inc (j0_test): Add more tests.
18787         (j1_test): Likewise.
18788         (jn_test): Likewise.  Add trailing semicolon to existing test.
18789         (y0_test): Likewise.
18790         (y1_test): Likewise.
18791         * sysdeps/i386/fpu/libm-test-ulps: Update.
18792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18793
18794         [BZ #13851]
18795         [BZ #13854]
18796         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18797         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18798         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18799         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18800         (__tanl): Set errno for infinite argument.
18801         * sysdeps/i386/fpu/mptan.c: Remove.
18802         * sysdeps/i386/fpu/s_tan.S: Likewise.
18803         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18804         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18805         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18806         * math/libm-test.inc (tan_test): Add more tests and enable more
18807         tests for double and long double.
18808         * sysdeps/i386/fpu/libm-test-ulps: Update.
18809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18810
18811 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18812
18813         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18814         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18815
18816 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18817
18818         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18819         * configure.in: Use it for both main tree and add-ons.
18820         * configure: Regenerated.
18821
18822 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18823
18824         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18825
18826 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18827
18828         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18829         in comment.
18830
18831         [BZ #13851]
18832         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18833         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18834         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18835         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18836         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18837         infinite argument.
18838         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18839         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18840         != 0 for prec == 2.
18841         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18842         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18843         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18844         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18845         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18846         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18847         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18848         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18849         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18850         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18851         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18852         * math/libm-test.inc (cos_test): Add more tests and enable more
18853         tests for long double.
18854         (sin_test): Likewise.
18855         (sincos_test): Likewise.
18856         * sysdeps/i386/fpu/libm-test-ulps: Update.
18857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18858
18859 2012-03-16  David S. Miller  <davem@davemloft.net>
18860
18861         * sysdeps/sparc/fpu/math_private.h: New file.
18862
18863 2012-03-15  David S. Miller  <davem@davemloft.net>
18864
18865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18866         file.
18867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18869         file.
18870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18871         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18872         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18873         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18874         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18875         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18876         sysdep routines.
18877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18878
18879         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18880         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18881
18882         * sysdeps/sparc/sparc-ifunc.h: New file.
18883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18884         sparc-ifunc.h
18885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18887         Likewise.
18888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18889         Likewise.
18890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18894         Likewise.
18895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18900         Likewise.
18901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18902         Likewise.
18903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18907         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18908         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18909         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18910         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18911         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18912         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18913         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18914         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18915         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18916         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18917         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18918         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18919         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18920         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18921         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18922         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18923         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18924         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18925         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18926         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18927
18928 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18929
18930         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18931         scaling.
18932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18933
18934 2012-03-15  Andreas Jaeger  <aj@suse.de>
18935
18936         [BZ #13852]
18937         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18938         ieee754/flt-32 implementation for sin, cos and sincos.
18939         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18940         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18941         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18942         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18943         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18944         ieee754/flt-32 implementation for tan.
18945
18946         * math/libm-test.inc (cos_test): Enable some large input tests for
18947         float as well
18948         (sin_test): Likewise.
18949         (sincos_test): Likewise.
18950         (tan_test): Add tests for large input.
18951
18952         * sysdeps/i386/fpu/libm-test-ulps: Update.
18953
18954 2012-03-15  Andreas Jaeger  <aj@suse.de>
18955
18956         [BZ #13658]
18957         * math/libm-test.inc (cos_test): Add more test cases.
18958         (sin_test): Likewise.
18959         (sincos_test): Likewise.
18960
18961 2012-03-15  Andreas Jaeger  <aj@suse.de>
18962
18963         [BZ #13837]
18964         * math/libm-test.inc (cos_test): Add a test case for large input
18965         value.
18966         (sin_test): Likewise.
18967         (sincos_test): Likewise.
18968
18969 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18970         Joseph Myers  <joseph@codesourcery.com>
18971
18972         [BZ #13658]
18973         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18974         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18975         * sysdeps/i386/fpu/branred.c: Likewise.
18976         * sysdeps/i386/fpu/dosincos.c: Likewise.
18977         * sysdeps/i386/fpu/mpa.c: Likewise.
18978         * sysdeps/i386/fpu/s_cos.S: Likewise.
18979         * sysdeps/i386/fpu/s_sin.S: Likewise.
18980         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18981         * sysdeps/i386/fpu/sincos32.c: Likewise.
18982
18983         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18984         Define.
18985         (libc_feupdateenv_53bit): Define.
18986         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18987         Define.
18988         (libc_feupdateenv_53bit): Define.
18989
18990         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18991         53 bit (without extend i386 double precision).
18992
18993         * math/libm-test.inc (sincos_test): Add tests for large input.
18994         (sin): Likewise.
18995         (cos): Likewise.
18996
18997         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18998
18999 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19000
19001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19002
19003 2012-03-15  David S. Miller  <davem@davemloft.net>
19004
19005         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19006         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19007         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19008         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19013         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19014         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19015         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19016         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19017         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19018         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19019         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19021         file.
19022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19024         file.
19025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19027         file.
19028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19030         file.
19031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19032         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19033         fmin/fmax sysdep routines.
19034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19035
19036 2012-03-14  David S. Miller  <davem@davemloft.net>
19037
19038         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19039         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19040         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19041         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19042         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19043         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19044         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19045         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19046         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19047         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19048         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19049         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19050         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19051         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19052         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19053         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19054         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19055         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19056         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19058         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19059         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19060         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19061         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19062         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19063         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19064         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19065         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19066         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19067         routines.
19068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19069         file.
19070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19072         file.
19073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19075         file.
19076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19078         file.
19079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19081         file.
19082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19084         file.
19085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19086         file.
19087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19088         file.
19089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19090         file.
19091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19092         New file.
19093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19094         file.
19095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19096         file.
19097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19099         file.
19100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19102         file.
19103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19105         file.
19106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19108         VIS3 routines.
19109
19110         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19111         New file.
19112
19113         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19114
19115         * sysdeps/sparc/configure.in: New file.
19116         * sysdeps/sparc/configure: Generate.
19117         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19118         * configure: Regenerate.
19119         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19120         * config.make.in (have-as-vis3): New.
19121         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19122         available use -Av9d instead of -Av9a.
19123         * sysdeps/sparc/sparc64/Makefile: Likewise.
19124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19126         New file.
19127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19128         file.
19129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19130         New file.
19131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19132         file.
19133         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19134         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19135         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19136         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19137         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19138
19139         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19140         fzeros/fnegs to load 0x80000000 into a float register instead of
19141         using the stack.
19142         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19143
19144 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19145
19146         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19147         bits/syscall.h.
19148         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19149         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19150         ($(inst_includedir)/bits/syscall.h): Remove rule.
19151         ($(objpfx)bits/syscall.d): Include instead of
19152         $(objpfx)syscall-list.d.
19153         (generated): Change syscall-list.h and syscall-list.d to
19154         bits/syscall.h and bits/syscall.d.
19155
19156 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19157
19158         [BZ #13846]
19159         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19160
19161 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19162
19163         [BZ #13841]
19164         * math/s_csqrt.c: Include <float.h>.
19165         (__csqrt): Scale large or subnormal inputs.
19166         * math/s_csqrtf.c: Likewise.
19167         * math/s_csqrtl.c: Likewise.
19168         * math/libm-test.inc (csqrt_test): Add more tests.
19169         * sysdeps/i386/fpu/libm-test-ulps: Update.
19170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19171
19172         [BZ #13840]
19173         * math/libm-test.inc (hypot_test): Add more tests.
19174
19175 2012-03-13  David S. Miller  <davem@davemloft.net>
19176
19177         [BZ #13840]
19178         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19179         double-precision for the calculation instead of scaling.
19180
19181 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19182
19183         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19184         manipulate bits before adding and subtracting TWO52[sx].
19185         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19186         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19187         Likewise.
19188         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19189
19190 2012-03-13  David S. Miller  <davem@davemloft.net>
19191
19192         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19193         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19194         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19195         rtld-global-offsets.h
19196         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19197
19198         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19199         large parameters.
19200
19201         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19202
19203         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19204         'err' in the ifdef scope in which it is actually used.
19205
19206         * nss/nss_db/db-init.c: Include string.h
19207
19208 2012-03-12  David S. Miller  <davem@davemloft.net>
19209
19210         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19211         masking out of the most significant byte of random value used.
19212         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19213         Fix coding style in previous change.
19214
19215         * sysdeps/unix/sysv/linux/kernel-features.h
19216         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19217         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19218         expression.
19219         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19220         later.
19221
19222 2012-03-11  David S. Miller  <davem@davemloft.net>
19223
19224         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19225         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19226         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19227         for 'resultvar' otherwise things get truncated on 64-bit.
19228
19229         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19230         Fix masking out of the most significant byte of random value used.
19231
19232         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19233
19234 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19235
19236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19237
19238 2012-03-09  David S. Miller  <davem@davemloft.net>
19239
19240         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19241         variables with appropriate CPP guards.
19242         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19243         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19244         on resulting framesize and the management of the outregs buffer for pltexit.
19245         Preserve floating point return values across _dl_call_pltexit call.
19246         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19247         framesize and the management of the outregs buffer for pltexit.
19248         Preserve floating point return values across _dl_call_pltexit
19249         call.
19250         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19251         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19252         (print_exit): Fix format string for return register value.
19253
19254 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19255
19256         * sunrpc/Makefile (others): Add rpcgen.
19257         ($(objpfx)rpcgen): Remove special build rule and dependency on
19258         libc.
19259         * sunrpc/rpcgen.c: New file.
19260
19261 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19262
19263         [BZ #13673]
19264         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19265         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19266         * sysdeps/i386/crti.S: Likewise.
19267         * sysdeps/i386/crtn.S: Likewise.
19268         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19269         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19270         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19271         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19272         * sysdeps/sh/crti.S: Likewise.
19273         * sysdeps/sh/crtn.S: Likewise.
19274         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19275
19276         [BZ #13673]
19277         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19278         with URL.
19279         * locale/programs/locfile-kw.gperf: Likewise.
19280         * locale/programs/charmap-kw.h: Regenerated.
19281         * locale/programs/locfile-kw.h: Likewise.
19282
19283         [BZ #13673]
19284         * intl/plural.y: Replace FSF snail mail address with URL.
19285         * intl/plural.c: Regenerated.
19286
19287 2012-03-09  Richard Henderson  <rth@twiddle.net>
19288
19289         * include/math_private.h: Remove file.
19290         * math/math_private.h: Move file ...
19291         * sysdeps/generic/math_private.h: ... here.
19292
19293         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19294         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19295         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19296
19297         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19298         and <math_private.h>.
19299         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19300         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19301         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19302         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19303         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19304         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19305         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19306         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19307         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19308         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19309         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19310         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19311         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19312         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19313         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19314         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19315         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19316         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19317         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19318         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19319         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19320         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19321         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19322         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19323         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19324         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19325         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19326         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19327         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19328         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19329         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19330         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19331         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19332         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19333         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19334         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19335         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19336         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19337         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19338         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19339         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19340         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19341         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19342         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19343         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19344         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19345         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19346         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19347         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19348         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19349         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19350         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19351         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19352         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19353         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19354         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19355         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19356         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19357         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19358         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19359         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19360         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19361         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19362         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19363         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19364         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19365         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19366         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19367         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19368         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19369         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19370         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19371         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19372         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19373         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19374         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19375         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19376         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19377         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19378         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19379         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19380         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19381         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19382         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19383         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19384         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19385         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19386         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19387         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19388         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19389         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19390         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19391         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19392         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19393         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19394         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19395         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19396         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19397         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19398         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19399         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19400         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19401         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19402         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19403         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19404         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19405         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19406         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19407         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19408         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19409         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19410         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19411         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19412         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19413         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19414         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19415         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19416         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19417         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19418         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19419         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19420         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19421         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19422         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19423         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19424         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19425         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19426         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19427         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19428         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19429         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19430         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19431         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19432         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19433         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19434         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19435         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19436         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19437         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19438         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19439         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19440         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19441         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19442         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19443         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19444         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19445         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19446         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19447         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19448         * sysdeps/ieee754/k_standard.c: Likewise.
19449         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19450         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19451         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19452         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19453         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19454         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19455         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19456         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19457         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19458         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19459         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19460         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19461         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19462         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19463         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19464         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19465         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19466         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19467         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19468         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19469         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19470         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19471         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19472         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19473         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19474         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19475         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19476         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19477         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19478         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19479         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19480         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19481         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19482         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19483         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19484         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19485         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19486         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19487         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19488         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19489         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19490         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19491         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19492         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19493         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19494         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19495         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19496         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19497         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19498         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19499         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19500         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19501         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19502         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19503         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19504         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19505         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19506         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19507         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19508         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19509         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19510         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19511         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19512         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19513         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19514         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19515         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19516         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19517         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19518         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19519         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19520         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19521         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19522         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19523         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19524         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19525         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19526         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19527         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19528         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19529         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19530         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19531         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19533         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19534         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19535         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19536         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19537         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19538         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19539         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19540         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19541         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19542         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19543         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19544         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19545         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19546         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19547         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19548         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19549         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19550         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19551         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19552         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19553         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19554         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19555         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19556         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19557         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19558         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19559         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19560         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19561         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19562         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19563         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19564         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19565         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19566         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19567         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19568         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19569         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19570         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19571         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19572         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19573         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19574         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19575         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19576         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19577         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19578         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19579         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19580         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19581         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19582         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19583         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19584         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19585         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19586         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19587         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19588         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19589         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19590         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19591         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19592         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19593         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19594         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19595         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19596         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19597         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19598         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19599         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19600         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19601         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19602         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19603         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19604         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19605         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19606         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19607         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19608         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19609         * sysdeps/ieee754/s_lib_version.c: Likewise.
19610         * sysdeps/ieee754/s_matherr.c: Likewise.
19611         * sysdeps/ieee754/s_signgam.c: Likewise.
19612         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19613         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19614         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19615         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19616         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19617         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19618         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19619         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19620         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19621         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19622         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19623         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19624         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19625         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19626         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19627         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19628         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19629         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19630         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19631         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19632         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19633
19634 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19635
19636         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19637         * sunrpc/rpc_main.c: Likewise.
19638         * sunrpc/rpc_svcout.c: Likewise.
19639
19640 2012-03-09  David S. Miller  <davem@davemloft.net>
19641
19642         * include/math_private.h: New file.
19643
19644 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19645
19646         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19647         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19648         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19649         from <bits/socket_type.h>.
19650         (enum __socket_type): Don't define here.
19651         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19652         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19653         bits/socket_type.h.
19654
19655         [BZ #13566]
19656         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19657         checking __USE_GNU.
19658
19659         * Makerules ($(inst_includedir)/%.h): New rule.
19660         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19661         (install-others): Remove variable setting.
19662         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19663
19664 2012-03-08  Richard Henderson  <rth@twiddle.net>
19665
19666         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19667         from macro to inline function; merge with the
19668         !__LIBC_INTERNAL_MATH_INLINES version.
19669         (__ieee754_sqrtf): Likewise.
19670
19671         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19672         to inline function.
19673         (__rintf, __floor, __floorf): Likewise.
19674
19675         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19676         macro to inline function.
19677         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19678
19679         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19680         not <math/math_private.h>.
19681
19682 2012-03-08  David S. Miller  <davem@davemloft.net>
19683
19684         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19685         copyright year.
19686         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19687
19688 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19689
19690         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19691         normalization.
19692         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19693         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19694
19695 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19696
19697         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19698         be defined individually, they must be defined as a block.  Define
19699         S for printing a string instead of hidint the different by using a
19700         macro for adding the 'l'.
19701         * stdio-common/tst-fphex-wide.c: Adjust.
19702
19703 2012-03-07  Marek Polacek  <polacek@redhat.com>
19704
19705         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19706
19707 2012-03-08  Marek Polacek  <polacek@redhat.com>
19708
19709         [BZ #13806]
19710         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19711         * stdio-common/tst-fphex.c: Define a few macros to make the
19712         test reusable.  Use them.
19713         * stdio-common/tst-fphex-wide.c: New file.
19714
19715 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19716
19717         [BZ #6911]
19718         * manual/macros.texi (gnusystems): New macro.
19719         (nongnusystems): Likewise.
19720         (gnulinuxhurdsystems): Likewise.
19721         (gnuhurdsystems): Likewise..
19722         (gnulinuxsystems): Likewise.
19723         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19724         variants of the GNU system, not "GNU system".
19725         * manual/conf.texi: Likewise.
19726         * manual/errno.texi: Likewise.  Update example of errno macro
19727         expansion.
19728         * manual/filesys.texi: Likewise.
19729         (getumask): Document as specific to GNU/Hurd.
19730         * manual/install.texi: Likewise.  Reword some references to
19731         GNU/Linux.
19732         * manual/intro.texi: Likewise.
19733         * manual/io.texi: Likewise.
19734         (File Name Portability): Detail which constraints are inapplicable
19735         to all GNU systems and which are only inapplicable to GNU/Hurd.
19736         * manual/job.texi: Likewise.
19737         * manual/llio.texi: Likewise.
19738         (O_NOCTTY): Document as present on GNU/Linux.
19739         * manual/maint.texi: Likewise.
19740         * manual/memory.texi: Likewise.
19741         * manual/pattern.texi: Likewise.
19742         * manual/pipe.texi: Likewise.
19743         * manual/process.texi: Likewise.
19744         * manual/resource.texi: Likewise.
19745         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19746         child on GNU/Hurd.
19747         * manual/setjmp.texi: Likewise.
19748         * manual/signal.texi: Likewise.
19749         * manual/startup.texi: Likewise.
19750         * manual/stdio.texi: Likewise.
19751         * manual/terminal.texi: Likewise.
19752         (ONLCR): Document as POSIX.
19753         (OXTABS): Document availability on GNU/Linux as XTABS.
19754         (ONOEOT): Document availability separately from other bits.
19755         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19756         * manual/time.texi: Likewise.
19757         * manual/users.texi: Likewise.
19758         * INSTALL: Regenerated.
19759         * sysdeps/gnu/errlist.c: Regenerated.
19760
19761         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19762         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19763         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19764         puts.
19765         * configure: Regenerated.
19766
19767 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19768
19769         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19770         default includes instead of AC_HEADER_CHECK.
19771         * sysdeps/i386/configure: Regenerated.
19772
19773         [BZ #10716]
19774         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19775         * math/s_cacoshf.c (__cacoshf): Likewise.
19776         * math/s_cacoshl.c (__cacoshl): Likewise.
19777         * math/s_casinh.c (__casinh): Set signs of result from argument.
19778         * math/s_casinhf.c (__casinhf): Likewise.
19779         * math/s_casinhl.c (__casinhl): Likewise.
19780         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19781         (casinh_test): Add more tests.
19782         * sysdeps/i386/fpu/libm-test-ulps: Update.
19783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19784
19785 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19786
19787         * po/zh_TW.po: Update from translation team.
19788
19789         * login/Makefile (distribute): Remove variable.
19790         * catgets/Makefile: Likewise.
19791         * mach/Makefile: Likewise.
19792         * malloc/Makefile: Likewise.
19793         * misc/Makefile: Likewise.
19794         * iconv/Makefile: Likewise.
19795         * nscd/Makefile: Likewise.
19796         * hurd/Makefile: Likewise.
19797         * manual/Makefile: Likewise.
19798         * locale/Makefile: Likewise.
19799         * intl/Makefile: Likewise.
19800         * conform/Makefile: Likewise.
19801         * nss/Makefile: Likewise.
19802         * time/Makefile: Likewise.
19803         * soft-fp/Makefile: Likewise.
19804         * dirent/Makefile: Likewise.
19805         * gmon/Makefile: Likewise.
19806         * po/Makefile: Likewise.
19807         * rt/Makefile: Likewise.
19808         * socket/Makefile: Likewise.
19809         * math/Makefile: Likewise.
19810         * signal/Makefile: Likewise.
19811         * debug/Makefile: Likewise.
19812         * elf/Makefile: Likewise.
19813         * timezone/Makefile: Likewise.
19814         * stdlib/Makefile: Likewise.
19815         * iconvdata/Makefile: Likewise.
19816         * sunrpc/Makefile: Likewise.
19817         * io/Makefile: Likewise.
19818         * argp/Makefile: Likewise.
19819         * inet/Makefile: Likewise.
19820         * hesiod/Makefile: Likewise.
19821         * grp/Makefile: Likewise.
19822         * csu/Makefile: Likewise.
19823         * wctype/Makefile: Likewise.
19824         * crypt/Makefile: Likewise.
19825         * libio/Makefile: Likewise.
19826         * string/Makefile: Likewise.
19827         * nis/Makefile: Likewise.
19828         * resolv/Makefile: Likewise.
19829         * stdio-common/Makefile: Likewise.
19830         * wcsmbs/Makefile: Likewise.
19831         * dlfcn/Makefile: Likewise.
19832         * posix/Makefile: Likewise.
19833
19834         [BZ #6959]
19835         * timezone/Makefile: Don't install timezone files, just the programs
19836         and scripts.
19837
19838 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19839
19840         * nss/databases.def: Add missing gshadow entry.
19841
19842         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19843
19844 2012-03-06  Marek Polacek  <polacek@redhat.com>
19845
19846         [BZ #13726]
19847         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19848         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19849         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19850         * stdio-common/tst-long-dbl-fphex.c: New file.
19851
19852 2012-03-06  David S. Miller  <davem@davemloft.net>
19853
19854         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19855         (set_obp_int): New function.
19856         (get_obp_int): New function.
19857         (__get_clockfreq_via_dev_openprom): Likewise.
19858         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19859         Avoid unused variable warnings on 'val' and use builtin_expect.
19860         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19861         __builtin_expect.
19862         (INLINE_CLONE_SYSCALL): Likewise.
19863
19864 2012-03-05  David S. Miller  <davem@davemloft.net>
19865
19866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19867
19868 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19869
19870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19871
19872         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19873         only for |x| >= 40.
19874         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19875
19876 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19877
19878         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19879         Replace gettimeofday with __vdso_gettimeofday.
19880
19881         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19882         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19883         __vdso_clock_gettime and __vdso_getcpu.
19884
19885         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19886         time with __vdso_time.
19887
19888 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19889
19890         * manual/lang.texi (size_t): Note types to which size_t may be
19891         equivalent with the GNU C Library, but do not describe when
19892         differences between them are significant.
19893
19894 2012-03-05  Andreas Jaeger  <aj@suse.de>
19895
19896         * sysdeps/i386/fpu/libm-test-ulps: Update.
19897
19898 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19899
19900         [BZ #3976]
19901         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19902         (__ieee754_pow): Save and restore rounding mode and use
19903         round-to-nearest for main computations.
19904         * math/libm-test.inc (pow_test_tonearest): New function.
19905         (pow_test_towardzero): Likewise.
19906         (pow_test_downward): Likewise.
19907         (pow_test_upward): Likewise.
19908         (main): Call the new functions.
19909         * sysdeps/i386/fpu/libm-test-ulps: Update.
19910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19911
19912         [BZ #3976]
19913         * math/libm-test.inc (cosh_test_tonearest): New function.
19914         (cosh_test_towardzero): Likewise.
19915         (cosh_test_downward): Likewise.
19916         (cosh_test_upward): Likewise.
19917         (sinh_test_tonearest): Likewise.
19918         (sinh_test_towardzero): Likewise.
19919         (sinh_test_downward): Likewise.
19920         (sinh_test_upward): Likewise.
19921         (main): Call the new functions.
19922         * sysdeps/i386/fpu/libm-test-ulps: Update.
19923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19924
19925 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19926
19927         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19928         default stack guard is set in last bytes.
19929         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19930
19931 2012-03-05  Kees Cook  <keescook@chromium.org>
19932
19933         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19934
19935         [BZ #13656]
19936         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19937         possibly allocate from heap instead of stack.
19938         * stdio-common/bug-vfprintf-nargs.c: New file.
19939         * stdio-common/Makefile (tests): Add nargs overflow test.
19940
19941 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19942
19943         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19944
19945 2012-03-03  Marek Polacek  <polacek@redhat.com>
19946
19947         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19948         * math/math_private.h: Likewise.
19949         * stdlib/tst-strtod.c: Likewise.
19950         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19951         * sysdeps/x86_64/bits/atomic.h: Likewise.
19952
19953 2012-03-02  David S. Miller  <davem@davemloft.net>
19954
19955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19959         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19960         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19961         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19962         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19963
19964 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19965
19966         [BZ #13792]
19967         * manual/examples/README: New file, says the example source files
19968         can be used under GPL>=2.
19969         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19970         line containing just "*/".
19971         * manual/examples/add.c: Add copyright header (GPL>=2).
19972         * manual/examples/argp-ex1.c: Likewise.
19973         * manual/examples/argp-ex2.c: Likewise.
19974         * manual/examples/argp-ex3.c: Likewise.
19975         * manual/examples/argp-ex4.c: Likewise.
19976         * manual/examples/atexit.c: Likewise.
19977         * manual/examples/db.c: Likewise.
19978         * manual/examples/dir.c: Likewise.
19979         * manual/examples/dir2.c: Likewise.
19980         * manual/examples/execinfo.c: Likewise.
19981         * manual/examples/filecli.c: Likewise.
19982         * manual/examples/filesrv.c: Likewise.
19983         * manual/examples/fmtmsgexpl.c: Likewise.
19984         * manual/examples/genpass.c: Likewise.
19985         * manual/examples/inetcli.c: Likewise.
19986         * manual/examples/inetsrv.c: Likewise.
19987         * manual/examples/isockad.c: Likewise.
19988         * manual/examples/longopt.c: Likewise.
19989         * manual/examples/memopen.c: Likewise.
19990         * manual/examples/memstrm.c: Likewise.
19991         * manual/examples/mkfsock.c: Likewise.
19992         * manual/examples/mkisock.c: Likewise.
19993         * manual/examples/mygetpass.c: Likewise.
19994         * manual/examples/pipe.c: Likewise.
19995         * manual/examples/popen.c: Likewise.
19996         * manual/examples/rprintf.c: Likewise.
19997         * manual/examples/search.c: Likewise.
19998         * manual/examples/select.c: Likewise.
19999         * manual/examples/setjmp.c: Likewise.
20000         * manual/examples/sigh1.c: Likewise.
20001         * manual/examples/sigusr.c: Likewise.
20002         * manual/examples/stpcpy.c: Likewise.
20003         * manual/examples/strdupa.c: Likewise.
20004         * manual/examples/strftim.c: Likewise.
20005         * manual/examples/strncat.c: Likewise.
20006         * manual/examples/subopt.c: Likewise.
20007         * manual/examples/swapcontext.c: Likewise.
20008         * manual/examples/termios.c: Likewise.
20009         * manual/examples/testopt.c: Likewise.
20010         * manual/examples/testpass.c: Likewise.
20011         * manual/examples/timeval_subtract.c: Likewise.
20012
20013         [BZ #13792]
20014         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20015         function to ...
20016         * manual/timeval_subtract.c.texi: ... here, new file.
20017
20018 2012-03-02  David S. Miller  <davem@davemloft.net>
20019
20020         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20021
20022 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20023
20024         [BZ #3976]
20025         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20026         (__sin): Save and restore rounding mode and use round-to-nearest
20027         for all computations.
20028         (__cos): Save and restore rounding mode and use round-to-nearest
20029         for all computations.
20030         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20031         <fenv.h>.
20032         (tan): Save and restore rounding mode and use round-to-nearest for
20033         all computations.
20034         * math/libm-test.inc (cos_test_tonearest): New function.
20035         (cos_test_towardzero): Likewise.
20036         (cos_test_downward): Likewise.
20037         (cos_test_upward): Likewise.
20038         (sin_test_tonearest): Likewise.
20039         (sin_test_towardzero): Likewise.
20040         (sin_test_downward): Likewise.
20041         (sin_test_upward): Likewise.
20042         (tan_test_tonearest): Likewise.
20043         (tan_test_towardzero): Likewise.
20044         (tan_test_downward): Likewise.
20045         (tan_test_upward): Likewise.
20046         (main): Call the new functions.
20047         * sysdeps/i386/fpu/libm-test-ulps: Update.
20048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20049
20050         [BZ #10135]
20051         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20052         small n, then large n, before computing and testing k+n.
20053         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20054         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20055         Likewise.
20056         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20057         Likewise.
20058         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20059         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20060         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20061         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20062         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20063         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20064         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20065         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20066         * math/libm-test.inc (scalbn_test): Add more tests.
20067         (scalbln_test): Likewise.
20068
20069         * manual/filesys.texi (mode_t): Describe constraints on size and
20070         signedness, not exact equivalence to a particular type.
20071         (ino_t): Likewise.
20072         (ino64_t): Likewise.
20073         (dev_t): Likewise.
20074         (nlink_t): Likewise.
20075         (blkcnt_t): Likewise.
20076         (blkcnt64_t): Likewise.
20077         * manual/llio.texi (off_t): Likewise.
20078
20079         [BZ #3976]
20080         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20081         (__ieee754_exp): Save and restore rounding mode and use
20082         round-to-nearest for all computations.
20083         * math/libm-test.inc (exp_test_tonearest): New function.
20084         (exp_test_towardzero): Likewise.
20085         (exp_test_downward): Likewise.
20086         (exp_test_upward): Likewise.
20087         (main): Call the new functions.
20088         * sysdeps/i386/fpu/libm-test-ulps: Update.
20089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20090
20091 2012-03-01  Chris Demetriou  <cgd@google.com>
20092
20093         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20094         have predictable order.
20095
20096 2012-03-01  David S. Miller  <davem@davemloft.net>
20097
20098         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20099
20100         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20101         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20102         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20103         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20104
20105         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20106         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20107         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20109         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20110         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20111         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20112         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20113         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20114
20115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20116
20117         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20118         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20119         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20120
20121         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20122         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20123         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20124         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20125         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20126         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20127         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20128         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20129         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20130         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20131         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20132         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20133         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20134         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20135         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20136         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20137         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20138         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20139         * sysdeps/sparc/elf/configure: Regenerated.
20140
20141 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20142
20143         * configure.in (AS, LD): Require binutils 2.20 or later.
20144         * configure: Regenerated.
20145         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20146         as required minimum version.
20147         * INSTALL: Regenerated.
20148
20149         [BZ #2541]
20150         [BZ #4108]
20151         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20152         before squaring exponent.
20153         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20154         bottom long double and 27 bits of top long double before squaring
20155         exponent.
20156         * math/libm-test.inc (erfc_test): Add more tests.
20157         * sysdeps/i386/fpu/libm-test-ulps: Update.
20158         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20160
20161 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20162
20163         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20164         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20165         containing bit-fields.
20166         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20167         * soft-fp/single.h (_FP_UNION_S): Likewise.
20168         * soft-fp/double.h (_FP_UNION_D): Likewise.
20169
20170 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20171
20172         [BZ #13786]
20173         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20174         not include ../strcmp.S.
20175         [USE_AS_STRNCASECMP_L]: Likewise.
20176         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20177         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20178         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20179         (__strncasecmp_l_ia32): Define as alias to
20180         __strncasecmp_l_nonascii.
20181
20182         [BZ #5794]
20183         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20184         * sysdeps/i386/fpu/libm-test-ulps: Update.
20185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20186
20187         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20189
20190 2012-02-29  Jeff Law  <law@redhat.com>
20191
20192         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20193         out of bounds read.
20194
20195 2012-02-29  Marek Polacek  <polacek@redhat.com>
20196
20197         [BZ #13706]
20198         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20199         * elf/Makefile: Add rules to run tst-unused-dep.out.
20200
20201 2012-02-28  David S. Miller  <davem@davemloft.net>
20202
20203         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20204         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20205         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20206         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20207         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20208         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20209
20210 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20211
20212         * math/libm-test.inc (llround_test): Move one test from
20213         lround_test.  Use TEST_f_L in moved test.
20214         (lround_test): Move misplaced test to llround_test.  Add testcase
20215         from bug 2561.
20216
20217 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20218
20219         * sysdeps/x86_64/fpu/e_expf.S: New file.
20220         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20221
20222 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20223
20224         [BZ #13637]
20225         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20226         of remain_len that may cause incomplete multi-byte character and
20227         false match.
20228         * posix/bug-regex33.c: New file.
20229         * posix/Makefile (tests): Add bug-regex33.
20230
20231 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20232
20233         * manual/macros.texi: New file.
20234         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20235         * manual/libc.texinfo: Include macros.texi.
20236         * manual/creatute.texi: Likewise.
20237         * manual/install.texi: Likewise.
20238         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20239         @glibcadj{} in references to the GNU C Library.
20240         * manual/charset.texi: Likewise.
20241         * manual/conf.texi: Likewise.
20242         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20243         when not using those macros.
20244         * manual/creature.texi: Likewise.
20245         * manual/crypt.texi: Likewise.
20246         * manual/errno.texi: Likewise.
20247         * manual/filesys.texi: Likewise.
20248         * manual/header.texi: Likewise.
20249         * manual/install.texi: Likewise.
20250         * manual/intro.texi: Likewise.
20251         * manual/io.texi: Likewise.
20252         * manual/job.texi: Likewise.
20253         * manual/lang.texi: Likewise.
20254         * manual/libc.texiinfo: Likewise.
20255         * manual/llio.texi: Likewise.
20256         * manual/locale.texi: Likewise.
20257         * manual/maint.texi: Likewise.
20258         * manual/math.texi: Likewise.
20259         * manual/memory.texi: Likewise.
20260         * manual/message.texi: Likewise.
20261         * manual/nss.texi: Likewise.
20262         * manual/pattern.texi: Likewise.
20263         * manual/process.texi: Likewise.
20264         * manual/resource.texi: Likewise.
20265         * manual/search.texi: Likewise.
20266         * manual/setjmp.texi: Likewise.
20267         * manual/signal.texi: Likewise.
20268         * manual/socket.texi: Likewise.
20269         * manual/startup.texi: Likewise.
20270         * manual/stdio.texi: Likewise.
20271         * manual/string.texi: Likewise.
20272         * manual/sysinfo.texi: Likewise.
20273         * manual/syslog.texi: Likewise.
20274         * manual/terminal.texi: Likewise.
20275         * manual/time.texi: Likewise.
20276         * manual/users.texi: Likewise.
20277         * INSTALL: Regenerated.
20278         * NOTES: Regenerated.
20279         * sysdeps/gnu/errlist.c: Regenerated.
20280
20281 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20282
20283         * include/dirent.h: Include <dirstream.h> before
20284         <dirent/dirent.h>.
20285
20286 2012-02-28  David S. Miller  <davem@davemloft.net>
20287
20288         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20289         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20290         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20291         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20292
20293 2012-02-27  David S. Miller  <davem@davemloft.net>
20294
20295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20297         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20298         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20299
20300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20301         frame pointer instead of stack pointer relative arg slot.
20302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20303         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20304         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20305
20306 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20307
20308         [BZ #3992]
20309         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20310
20311 2012-02-27  David S. Miller  <davem@davemloft.net>
20312
20313         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20314         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20315         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20317         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20318         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20319         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20320         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20321
20322 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20323
20324         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20325         later.  Allow versions 5-9.
20326         * configure: Regenerated.
20327         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20328         required minimum version and 4.6 as recommended version.  Do not
20329         mention bugs in GCC 2.7 and 2.8.
20330         * INSTALL: Regenerated.
20331
20332 2012-02-27  David S. Miller  <davem@davemloft.net>
20333
20334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20338         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20339         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20340         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20341         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20342
20343         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20344         manipulate bits before adding and subtracting TWO112[sx].
20345         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20346
20347 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20348
20349         [BZ #13775]
20350         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20351         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20352         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20353         being in POSIX, because they are in 1003.1-2008.
20354
20355         * rt/tst-aio.c: Include <fcntl.h>.
20356         * rt/tst-aio7.c: Likewise.
20357         * rt/tst-aio64.c: Likewise.
20358
20359         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20360
20361 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20362
20363         * manual/install.texi (--with-headers): Describe headers as
20364         interface headers, not private headers.
20365         (Specific advice for GNU/Linux systems): Describe use of headers
20366         from "make headers_install", not private headers from older
20367         kernels.
20368         * INSTALL: Regenerated.
20369         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20370         Change to 2.6.19.
20371         * sysdeps/unix/sysv/linux/configure: Regenerated.
20372
20373         * manual/llio.texi (fclean): Remove documentation.
20374
20375         * manual/Makefile (libc-texi-generated): New variable.  Include
20376         version.texi.
20377         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20378         $(libc-texi-generated), not duplicated list of files.
20379         (version.texi, stamp-version): New rules.
20380         (realclean): Remove $(libc-texi-generated), not individual files
20381         from that list.  Do not remove dir-add.texinfo.
20382         * manual/libc.texinfo: Comment out uses of edition numbers and
20383         references to printed manual.  Remove last-updated dates.
20384         (EDITION): Comment out.
20385         (ISBN): Likewise.
20386         (VERSION, UPDATED): Remove.
20387         (version.texi): Include.
20388
20389 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20390
20391         * sysdeps/posix/spawni.c: Include <signal.h>.
20392         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20393         * sysdeps/pthread/aio_fsync.c: Likewise.
20394
20395 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20396
20397         * conform/Makefile (tests): Run only when not cross-compiling and
20398         when fast-check is not defined.
20399
20400         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20401         * conform/data/limits.h-data: Fixes for POSIX2008.
20402         * conform/run-conformtest.sh: Run all tests.
20403         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20404         headers.
20405         * include/bits/dlfcn.h: Likewise.
20406         * include/langinfo.h: Likewise.
20407         * include/monetary.h: Likewise.
20408         * include/sys/poll.h: Likewise.
20409
20410         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20411         for __USE_GNU.
20412         * posix/spawn.h: Define __need_sigset_t.
20413         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20414         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20415         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20416         to get sigevent_t only.
20417         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20418         only for __USE_GNU.
20419         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20420         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20421         process_vm_writev only for __USE_GNU.
20422         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20423
20424         * conform/Makefile: For now ignore errors from run-conformtest.
20425         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20426         POSIX to avoid namespace pollution.  Don't prepend headers.
20427         * conform/data/aio.h-data: Fixes for POSIX testing.
20428         * conform/data/fcntl.h-data: Likewise.
20429         * conform/data/glob.h-data: Likewise.
20430         * conform/data/grp.h-data: Likewise.
20431         * conform/data/pthread.h-data: Likewise.
20432         * conform/data/pwd.h-data: Likewise.
20433         * conform/data/signal.h-data: Likewise.
20434         * conform/data/spawn.h-data: Likewise.
20435         * conform/data/stdio.h-data: Likewise.
20436         * conform/data/stdlib.h-data: Likewise.
20437         * conform/data/stropts.h-data: Likewise.
20438         * conform/data/sys/mman.h-data: Likewise.
20439         * conform/data/sys/stat.h-data: Likewise.
20440         * conform/data/sys/types.h-data: Likewise.
20441         * conform/data/sys/wait.h-data: Likewise.
20442         * conform/data/time.h-data: Likewise.
20443         * conform/data/unistd.h-data: Likewise.
20444         * conform/data/utime.h-data: Likewise.
20445
20446         * io/sys/stat.h: fchmod was always in POSIX.
20447         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20448         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20449         * rt/aio.h: Define __need_timespec before including <time.h>.
20450         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20451         struct.  Add forward declaration of pthread_attr_t and use it in
20452         sigevent.
20453         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20454         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20455         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20456         always remove CLK_TCK definition.
20457
20458 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20459
20460         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20461
20462 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20463
20464         * conform/run-conformtest.sh: New file.
20465         * conform/Makefile: Run run-conformtest for tests.
20466         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20467         support.
20468
20469         * conform/data/uchar.h-data: New file.
20470         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20471         * conform/data/arpa/inet.h-data: Likewise.
20472         * conform/data/assert.h-data: Likewise.
20473         * conform/data/complex.h-data: Likewise.
20474         * conform/data/cpio.h-data: Likewise.
20475         * conform/data/ctype.h-data: Likewise.
20476         * conform/data/dirent.h-data: Likewise.
20477         * conform/data/dlfcn.h-data: Likewise.
20478         * conform/data/errno.h-data: Likewise.
20479         * conform/data/fcntl.h-data: Likewise.
20480         * conform/data/float.h-data: Likewise.
20481         * conform/data/fmtmsg.h-data: Likewise.
20482         * conform/data/fnmatch.h-data: Likewise.
20483         * conform/data/ftw.h-data: Likewise.
20484         * conform/data/glob.h-data: Likewise.
20485         * conform/data/grp.h-data: Likewise.
20486         * conform/data/iconv.h-data: Likewise.
20487         * conform/data/inttypes.h-data: Likewise.
20488         * conform/data/langinfo.h-data: Likewise.
20489         * conform/data/libgen.h-data: Likewise.
20490         * conform/data/limits.h-data: Likewise.
20491         * conform/data/locale.h-data: Likewise.
20492         * conform/data/math.h-data: Likewise.
20493         * conform/data/monetary.h-data: Likewise.
20494         * conform/data/mqueue.h-data: Likewise.
20495         * conform/data/ndbm.h-data: Likewise.
20496         * conform/data/net/if.h-data: Likewise.
20497         * conform/data/netdb.h-data: Likewise.
20498         * conform/data/netinet/in.h-data: Likewise.
20499         * conform/data/nl_types.h-data: Likewise.
20500         * conform/data/poll.h-data: Likewise.
20501         * conform/data/pthread.h-data: Likewise.
20502         * conform/data/pwd.h-data: Likewise.
20503         * conform/data/regex.h-data: Likewise.
20504         * conform/data/sched.h-data: Likewise.
20505         * conform/data/search.h-data: Likewise.
20506         * conform/data/semaphore.h-data: Likewise.
20507         * conform/data/setjmp.h-data: Likewise.
20508         * conform/data/signal.h-data: Likewise.
20509         * conform/data/spawn.h-data: Likewise.
20510         * conform/data/stdarg.h-data: Likewise.
20511         * conform/data/stdio.h-data: Likewise.
20512         * conform/data/stdlib.h-data: Likewise.
20513         * conform/data/string.h-data: Likewise.
20514         * conform/data/strings.h-data: Likewise.
20515         * conform/data/stropts.h-data: Likewise.
20516         * conform/data/sys/ipc.h-data: Likewise.
20517         * conform/data/sys/mman.h-data: Likewise.
20518         * conform/data/sys/msg.h-data: Likewise.
20519         * conform/data/sys/resource.h-data: Likewise.
20520         * conform/data/sys/select.h-data: Likewise.
20521         * conform/data/sys/sem.h-data: Likewise.
20522         * conform/data/sys/shm.h-data: Likewise.
20523         * conform/data/sys/socket.h-data: Likewise.
20524         * conform/data/sys/stat.h-data: Likewise.
20525         * conform/data/sys/statvfs.h-data: Likewise.
20526         * conform/data/sys/time.h-data: Likewise.
20527         * conform/data/sys/timeb.h-data: Likewise.
20528         * conform/data/sys/times.h-data: Likewise.
20529         * conform/data/sys/types.h-data: Likewise.
20530         * conform/data/sys/uio.h-data: Likewise.
20531         * conform/data/sys/un.h-data: Likewise.
20532         * conform/data/sys/utsname.h-data: Likewise.
20533         * conform/data/sys/wait.h-data: Likewise.
20534         * conform/data/syslog.h-data: Likewise.
20535         * conform/data/tar.h-data: Likewise.
20536         * conform/data/termios.h-data: Likewise.
20537         * conform/data/utime.h-data: Likewise.
20538         * conform/data/utmpx.h-data: Likewise.
20539         * conform/data/varargs.h-data: Likewise.
20540         * conform/data/wchar.h-data: Likewise.
20541         * conform/data/wctype.h-data: Likewise.
20542         * conform/data/wordexp.h-data: Likewise.
20543
20544         * include/stropts.h: New file.
20545         * include/uchar.h: New file.
20546         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20547         * include/assert.h: Likewise.
20548         * include/ctype.h: Likewise.
20549         * include/dirent.h: Likewise.
20550         * include/dlfcn.h: Likewise.
20551         * include/fcntl.h: Likewise.
20552         * include/fnmatch.h: Likewise.
20553         * include/glob.h: Likewise.
20554         * include/grp.h: Likewise.
20555         * include/libio.h: Likewise.
20556         * include/locale.h: Likewise.
20557         * include/math.h: Likewise.
20558         * include/net/if.h: Likewise.
20559         * include/netdb.h: Likewise.
20560         * include/netinet/in.h: Likewise.
20561         * include/pthread.h: Likewise.
20562         * include/pwd.h: Likewise.
20563         * include/regex.h: Likewise.
20564         * include/sched.h: Likewise.
20565         * include/search.h: Likewise.
20566         * include/setjmp.h: Likewise.
20567         * include/signal.h: Likewise.
20568         * include/stdio.h: Likewise.
20569         * include/stdlib.h: Likewise.
20570         * include/string.h: Likewise.
20571         * include/sys/cdefs.h: Likewise.
20572         * include/sys/mman.h: Likewise.
20573         * include/sys/msg.h: Likewise.
20574         * include/sys/resource.h: Likewise.
20575         * include/sys/select.h: Likewise.
20576         * include/sys/socket.h: Likewise.
20577         * include/sys/stat.h: Likewise.
20578         * include/sys/statvfs.h: Likewise.
20579         * include/sys/time.h: Likewise.
20580         * include/sys/times.h: Likewise.
20581         * include/sys/uio.h: Likewise.
20582         * include/sys/utsname.h: Likewise.
20583         * include/sys/wait.h: Likewise.
20584         * include/termios.h: Likewise.
20585         * include/time.h: Likewise.
20586         * include/ulimit.h: Likewise.
20587         * include/unistd.h: Likewise.
20588         * include/utime.h: Likewise.
20589         * include/wchar.h: Likewise.
20590         * include/wctype.h: Likewise.
20591         * include/wordexp.h: Likewise.
20592
20593         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20594
20595         * time/time.h: TIME_UTC must be a macro.
20596         Make timespec_get available for ISO C11 only as well.
20597
20598 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20599
20600         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20601         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20602
20603 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20604
20605         * configure.in: Use -o not -a in test for unsupported multi-arch.
20606
20607 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20608
20609         * manual/texinfo.tex: Update to version 2012-01-19.16.
20610
20611 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20612
20613         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20614
20615 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20616
20617         [BZ #13738]
20618         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20619         * manual/fdl-1.3.texi: New file.
20620         * manual/fdl-1.1.texi: File removed.
20621
20622         [BZ #13738]
20623         * manual/libc.texinfo (FDL_VERSION): New @set.
20624         Use it for mention of FDL in cover text.
20625         (Documentation License): Use it in @include file name.
20626
20627 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20628             Roland McGrath  <roland@hack.frob.com>
20629
20630         [BZ #5461]
20631         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20632         not LONG_LONG_MAX and LONG_LONG_MIN.
20633         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20634         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20635         name.
20636         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20637
20638 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20639
20640         [BZ #2547]
20641         [BZ #11365]
20642         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20643         manipulate bits before adding and subtracting TWO23[sx].
20644         * math/libm-test.inc (nearbyint_test): Add more tests.
20645
20646 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20647
20648         [BZ #2548]
20649         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20650         bits before adding and subtracting TWO23[sx].
20651         * math/libm-test.inc (rint_test): Add more tests.
20652         (rint_test_tonearest): Likewise.
20653         (rint_test_towardzero): Likewise.
20654         (rint_test_downward): Likewise.
20655         (rint_test_upward: Likewise.
20656
20657 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20658
20659         [BZ #10110]
20660         * include/stdc-predef.h: New file.  Extracted from features.h.
20661         * include/features.h: Include stdc-predef.h.
20662         * Makefile (headers): Add stdc-predef.h.
20663         * CONFORMANCE (Compiler limitations): Update.
20664
20665 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20666
20667         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20668
20669 2012-02-21  David S. Miller  <davem@davemloft.net>
20670
20671         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20672         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20673
20674 2012-02-20  David S. Miller  <davem@davemloft.net>
20675
20676         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20677         using a normal save/restore sequence, rather than allocating a
20678         dummy stack frame just to store a frame pointer and restore.
20679         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20680
20681 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20682
20683         * manual/install.texi: Fix stray word in line-wrapped comment.
20684
20685 2012-02-20  David S. Miller  <davem@davemloft.net>
20686
20687         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20688         both binutils and gcc support GOTDATA.
20689
20690         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20691         "rd %pc" in the PIC register setup sequences.
20692
20693         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20694         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20695         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20696         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20697         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20698         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20699         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20700         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20701         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20702         (SYSCALL_ERROR_HANDLER): Likewise.
20703         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20704         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20705         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20706         (SYSCALL_ERROR_HANDLER): Likewise.
20707
20708         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20709         (HAVE_GCC_GOTDATA): New.
20710         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20711         relocation support in both binutils and gcc.
20712         * sysdeps/sparc/elf/configure: Regenerate.
20713
20714         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20715         * sysdeps/sparc/sparc32/elf/configure: Delete.
20716         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20717         * sysdeps/sparc/sparc64/elf/configure: Delete.
20718         * sysdeps/sparc/elf/configure.in: New file.
20719         * sysdeps/sparc/elf/configure: Generate.
20720
20721         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20722         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20723         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20724         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20725         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20726
20727 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20728
20729         * manual/install.texi: Do not mention specific glibc version
20730         numbers.
20731         * manual/libc.texinfo (VERSION, UPDATED): Update.
20732         (@copying): Use @copyright{} and range of years.
20733
20734 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20735
20736         [BZ #13695]
20737         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20738         [crti.S not in sysdirs] (generated): Do not append.
20739         [crti.S not in sysdirs] (omit-deps): Likewise.
20740         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20741         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20742         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20743         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20744         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20745         Likewise.
20746         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20747         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20748         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20749         * csu/defs.awk: Remove file.
20750         * sysdeps/generic/initfini.c: Likewise.
20751         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20752         variable.
20753         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20754         Likewise.
20755
20756 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20757
20758         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20759         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20760         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20761         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20762         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20763         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20764         <bits/epoll.h>.
20765         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20766         (__EPOLL_PACKED): Define to empty if not defined by
20767         <bits/epoll.h>.
20768         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20769         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20770         bits/epoll.h.
20771
20772 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20773
20774         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20775         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20776         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20777         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20778         <bits/timerfd.h>.
20779         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20780         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20781         bits/timerfd.h.
20782
20783 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20784
20785         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20786         in C locale.
20787         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20788         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20789         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20791
20792 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20793
20794         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20795         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20796
20797 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20798
20799         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20800         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20801         defined.
20802         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20803         Likewise.
20804         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20805         entry for 2.16.
20806
20807 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20808
20809         * math/w_acos.c: Use non-signaling floating-point comparisons.
20810         * math/w_acosf.c: Likewise.
20811         * math/w_acosh.c: Likewise.
20812         * math/w_acoshf.c: Likewise.
20813         * math/w_acoshl.c: Likewise.
20814         * math/w_acosl.c: Likewise.
20815         * math/w_asin.c: Likewise.
20816         * math/w_asinf.c: Likewise.
20817         * math/w_asinl.c: Likewise.
20818         * math/w_atanh.c: Likewise.
20819         * math/w_atanhf.c: Likewise.
20820         * math/w_atanhl.c: Likewise.
20821         * math/w_exp2.c: Likewise.
20822         * math/w_exp2f.c: Likewise.
20823         * math/w_exp2l.c: Likewise.
20824         * math/w_j0.c: Likewise.
20825         * math/w_j0f.c: Likewise.
20826         * math/w_j0l.c: Likewise.
20827         * math/w_j1.c: Likewise.
20828         * math/w_j1f.c: Likewise.
20829         * math/w_j1l.c: Likewise.
20830         * math/w_jn.c: Likewise.
20831         * math/w_jnf.c: Likewise.
20832         * math/w_log.c: Likewise.
20833         * math/w_log10.c: Likewise.
20834         * math/w_log10f.c: Likewise.
20835         * math/w_log10l.c: Likewise.
20836         * math/w_log2.c: Likewise.
20837         * math/w_log2f.c: Likewise.
20838         * math/w_log2l.c: Likewise.
20839         * math/w_logf.c: Likewise.
20840         * math/w_logl.c: Likewise.
20841         * math/w_sqrt.c: Likewise.
20842         * math/w_sqrtf.c: Likewise.
20843         * math/w_sqrtl.c: Likewise.
20844         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20845         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20846         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20847         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20848         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20849
20850 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20851
20852         [BZ #9739]
20853         * manual/string.texi (strnlen): Use correct parameter name in
20854         equivalent expression.
20855
20856 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20857
20858         [BZ #11174]
20859         * manual/users.texi (seteuid): Consistently use neweuid for
20860         argument name.
20861
20862 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20863
20864         [BZ #13704]
20865         * manual/nss.texi (Services in the NSS configuration): Correct
20866         list of services in example configuration file.
20867
20868 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20869
20870         [BZ #11322]
20871         * manual/arith.texi: Remove statements about negative zero
20872         behaving identically to zero.
20873
20874 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20875
20876         [BZ #5993]
20877         * manual/install.texi: Do not document upgrading from libc5.
20878
20879 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20880
20881         [BZ #4596]
20882         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20883
20884 2012-02-18  David S. Miller  <davem@davemloft.net>
20885
20886         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20887         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20888         %o7 across the call.
20889         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20890         instead.
20891         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20892         SETUP_PIC_REG_LEAF.
20893         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20894         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20895         * sysdeps/sparc/crtn.S: Likewise.
20896
20897 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20898
20899         * aout/Makefile: Remove.
20900
20901 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20902
20903         [BZ #13058]
20904         * manual/examples/argp-ex1.c (main): Format definition in GNU
20905         style.
20906         * manual/examples/argp-ex2.c (main): Likewise.
20907         * manual/examples/argp-ex3.c (main): Likewise.
20908         * manual/examples/argp-ex4.c (main): Likewise.
20909         * manual/examples/longopt.c (main): Use new-style prototype
20910         definition.
20911         * manual/examples/strncat.c (main): Specify return type and use
20912         (void) for arguments.
20913         * manual/examples/subopt.c (main): Use char **argv argument.
20914
20915 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20916
20917         [BZ #5077]
20918         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20919         rounding modes.
20920
20921 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20922
20923         [BZ #6907]
20924         * manual/string.texi (strchr): Change when strchrnul is
20925         recommended.
20926
20927 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20928
20929         [BZ #174]
20930         * manual/locale.texi (setlocale): Document LOCPATH.
20931
20932 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20933
20934         [BZ #10210]
20935         * manual/process.texi (execle): Move @dots{} before last argument.
20936
20937 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20938
20939         [BZ #12047]
20940         * manual/charset.texi (Generic Charset Conversion): Fix typo
20941         (LC_TYPE -> LC_CTYPE).
20942
20943 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20944
20945         [BZ #5805]
20946         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20947         (scalbnf): Likewise.
20948         (scalbnl): Likewise.
20949         (scalbln): Likewise.
20950         (scalblnf): Likewise.
20951         (scalblnl): Likewise.
20952         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20953         (vwarnx): Likewise.
20954         (verr): Likewise.
20955         (verrx): Likewise.
20956         * manual/filesys.texi (telldir): Use braces around return type.
20957         * manual/llio.texi (mmap): Add space after comma.
20958         (mmap64): Likewise.
20959         * manual/math.texi (jn): Use @var{} on parameter names.
20960         (jnf): Likewise.
20961         (jnl): Likewise.
20962         (yn): Likewise.
20963         (ynf): Likewise.
20964         (ynl): Likewise.
20965         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20966         line.
20967         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20968         "...".
20969         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20970         (sched_get_priority_max): Likewise.
20971         * manual/signal.texi (sigvec): Add space after comma.
20972         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20973         names.
20974         (if_indextoname): Likewise.
20975         (if_freenameindex): Likewise.
20976         (sendto): Use ',' instead of '.' in prototype.
20977         * manual/startup.texi (syscall): Use @dots{} instead of literal
20978         "...".
20979         * manual/stdio.texi (__fpending): Separate initial words of
20980         paragraph from @deftypefun line.
20981         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20982         "...".
20983         (vsyslog): Use @var{} on parameter names.
20984         * manual/terminal.texi (stty): Use @var{} on parameter names.
20985         * manual/users.texi (getutmp): Use @var{} on parameter names.
20986         (getutmpx): Likewise.
20987
20988 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20989
20990         [BZ #6884]
20991         * manual/stdio.texi (fopen): Fix typos in description of
20992         ",ccs=STRING".
20993
20994 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20995
20996         [BZ #4026]
20997         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20998         get clock_id definition.
20999
21000 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21001
21002         [BZ #4822]
21003         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21004         (madvise): Cast every argument to void on its own.
21005
21006 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21007
21008         [BZ #9902]
21009         * manual/startup.texi (Exit Status): Fix typo.
21010
21011 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21012
21013         [BZ #10140]
21014         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21015         * manual/examples/argp-ex2.c: Likewise.
21016         * manual/examples/argp-ex3.c: Likewise.
21017
21018 2012-02-16  Richard Henderson  <rth@redhat.com>
21019
21020         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21021         * sysdeps/s390/s390-32/initfini.c: Remove.
21022         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21023         * sysdeps/s390/s390-64/initfini.c: Remove.
21024
21025 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21026
21027         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21028         compiler output for sysdeps/generic/initfini.c.
21029         * sysdeps/sh/elf/initfini.c: Remove file.
21030
21031 2012-02-16  David S. Miller  <davem@davemloft.net>
21032
21033         [BZ #11494]
21034         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21035
21036         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21037         * sysdeps/sparc/crti.S: New file.
21038         * sysdeps/sparc/crtn.S: New file.
21039         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21040         * sysdeps/sparc/sparc64/Makefile: Likewise.
21041
21042 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21043
21044         [BZ #3335]
21045         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21046
21047 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21048
21049         [BZ #4822]
21050         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21051
21052         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21053         (write, read, close): Likewise.
21054         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21055
21056 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21057
21058         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21059         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21060         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21061         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21062         <bits/signalfd.h>.
21063         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21064         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21065         bits/signalfd.h.
21066
21067 2012-02-14  Marek Polacek  <polacek@redhat.com>
21068
21069         * sysdeps/x86_64/crti.S: New file.
21070         * sysdeps/x86_64/crtn.S: New file.
21071         * sysdeps/x86_64/elf/initfini.c: Remove file.
21072
21073 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21074
21075         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21076         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21077         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21078         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21079         <bits/inotify.h>.
21080         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21081         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21082         bits/inotify.h.
21083
21084 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21085
21086         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21087         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21088         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21089         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21090         <bits/eventfd.h>.
21091         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21092         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21093         bits/eventfd.h.
21094
21095 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21096
21097         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21098         __feraiseexcept instead of feraiseexcept.
21099
21100         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21101         nanosleep invocations.
21102         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21103         strings, and add error checking for a nanosleep invocations.
21104
21105 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21106
21107         Replace FSF snail mail address with URLs, as per GNU coding standards.
21108         Most of the snail mail addresses were wrong anyway, and omitting
21109         them makes the source code easier to maintain.  Almost all of the
21110         changes are to license notices and to locale LC_IDENTIFICATION
21111         addresses, except for this one:
21112         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21113         not its snail mail address.
21114
21115 2012-02-09  Richard Henderson  <rth@twiddle.net>
21116
21117         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21118         of kernel-features.h.
21119
21120         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21121
21122 2012-02-08  Marek Polacek  <polacek@redhat.com>
21123
21124         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21125         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21126         * sysdeps/gnu/_G_config.h: Likewise.
21127         * sysdeps/generic/_G_config.h: Likewise.
21128
21129 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21130
21131         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21132         tests.
21133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21134
21135         * sysdeps/powerpc/powerpc32/crti.S: New file.
21136         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21137         * sysdeps/powerpc/powerpc64/crti.S: New file.
21138         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21139
21140         * Makeconfig (have-initfini): Don't set.
21141         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21142         * configure.in (nopic_initfini): Don't substitute.
21143         * config.h.in (HAVE_INITFINI): Don't #undef.
21144         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21145         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21146
21147 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21148
21149         Support crti.S and crtn.S provided directly by architectures.
21150         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21151         [crti.S in sysdirs] (omit-deps): Likewise.
21152         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21153         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21154         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21155         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21156         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21157         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21158         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21159         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21160         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21161         compiler output for sysdeps/generic/initfini.c.
21162         * sysdeps/i386/elf/Makefile: Remove file.
21163         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21164
21165 2012-02-07  Marek Polacek  <polacek@redhat.com>
21166
21167         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21168         * sysdeps/gnu/_G_config.h: Likewise.
21169         * sysdeps/mach/hurd/_G_config.h: Likewise.
21170
21171 2012-02-07  Marek Polacek  <polacek@redhat.com>
21172
21173         * math/Makefile (tests): Add tst-CMPLX2.
21174         * math/tst-CMPLX2.c: New file.
21175
21176 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21177
21178         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21179
21180         * math/libm-test.inc (jn_test): Add missing L suffix.
21181
21182 2012-02-06  Marek Polacek  <polacek@redhat.com>
21183
21184         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21185         * sysdeps/i386/fpu/e_powf.S: Likewise.
21186         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21187         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21188         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21189         * sysdeps/i386/fpu/e_pow.S: Likewise.
21190         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21191         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21192         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21193         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21194         * sysdeps/i386/fpu/e_log2.S: Likewise.
21195         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21196         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21197         * sysdeps/i386/fpu/e_powl.S: Likewise.
21198         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21199         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21200         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21201         * sysdeps/i386/fpu/e_logl.S: Likewise.
21202         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21203         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21204         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21205         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21206         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21207         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21208         * sysdeps/i386/fpu/e_log.S: Likewise.
21209         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21210         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21211         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21212         * sysdeps/i386/fpu/e_logf.S: Likewise.
21213         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21214         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21215         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21216         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21217         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21218         * sysdeps/i386/fpu/e_log10.S: Likewise.
21219         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21220         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21221         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21222         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21223         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21224         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21225         * sysdeps/i386/asm-syntax.h: Likewise.
21226         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21227         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21228         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21229         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21230         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21231         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21232         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21233         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21234         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21235         * sysdeps/powerpc/sysdep.h: Likewise.
21236         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21237         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21238
21239 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21240
21241         [BZ #411]
21242         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21243
21244 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21245
21246         * sysdeps/i386/sysdep.h: Include <features.h>.
21247         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21248         version.
21249
21250 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21251
21252         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21253         Define.
21254         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21255         LOAD_PIC_REG_STR.
21256
21257 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21258
21259         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21260         (SETUP_PIC_REG): Use GET_PC_THUNK.
21261         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21262         macro.
21263
21264 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21265
21266         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21267         for non-PIC compilation.
21268         (SETUP_PIC_REG): Add .p2align directive.
21269         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21270         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21271         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21272         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21273         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21274         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21275         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21276         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21277         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21278         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21279         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21280         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21281         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21282         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21283         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21284         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21285         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21286         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21287         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21288         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21289         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21290         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21291         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21292         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21293         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21294         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21295         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21296         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21297         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21298         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21299         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21300         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21301         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21302         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21303         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21304         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21305         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21306         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21307         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21308         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21309         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21310
21311 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21312
21313         * math/tst-CMPLX.c: Include <stdio.h>.
21314
21315 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21316
21317         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21318         float.
21319         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21320         * sysdeps/sparc/bits/mathdef.h: Likewise.
21321
21322 2012-01-31  Marek Polacek  <polacek@redhat.com>
21323
21324         * libio/libio.h: Don't define _PARAMS.
21325         * locale/programs/config.h: Don't define PARAMS.
21326         * stdlib/strtol_l.c: Likewise.
21327         (__strtol_l): Remove PARAMS from the prototype.
21328
21329 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21330
21331         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21332         names.  Just use the correct names.  Remove unnecessary wrapper
21333         functions.
21334         * malloc/arena.c: Likewise.
21335         * malloc/hooks.c: Likewise.
21336
21337         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21338         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21339         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21340
21341 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21342
21343         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21344         into tail calls.
21345         (update_get_addr): New function.
21346         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21347         GET_ADDR_MODULE parameter.
21348
21349 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21350
21351         * crypt/cert.c: Remove __STDC__ conditionals.
21352         * crypt/crypt-entry.c: Likewise.
21353         * crypt/crypt_util.c: Likewise.
21354         * libio/filedoalloc.c: Likewise.
21355         * libio/fileops.c: Likewise.
21356         * libio/genops.c: Likewise.
21357         * libio/iofclose.c: Likewise.
21358         * libio/iofdopen.c: Likewise.
21359         * libio/iofopen.c: Likewise.
21360         * libio/iofopen64.c: Likewise.
21361         * libio/iogetdelim.c: Likewise.
21362         * libio/iopopen.c: Likewise.
21363         * libio/obprintf.c: Likewise.
21364         * libio/oldfileops.c: Likewise.
21365         * libio/oldiofclose.c: Likewise.
21366         * libio/oldiofdopen.c: Likewise.
21367         * libio/oldiofopen.c: Likewise.
21368         * libio/oldiopopen.c: Likewise.
21369         * libio/wfiledoalloc.c: Likewise.
21370         * libio/wgenops.c: Likewise.
21371         * locale/programs/xmalloc.c: Likewise.
21372         * misc/syslog.c: Likewise.
21373         * stdio-common/xbug.c: Likewise.
21374         * string/memchr.c: Likewise.
21375         * string/memcmp.c: Likewise.
21376         * string/memrchr.c: Likewise.
21377         * string/rawmemchr.c: Likewise.
21378         * sysdeps/posix/getcwd.c: Likewise.
21379         * time/strftime_l.c: Likewise.
21380
21381 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21382
21383         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21384         * config.make.in (config-cflags-sse2avx): Define.
21385         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21386         Fix typo.
21387
21388 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21389
21390         * scripts/config.guess: Update from upstream config git repository.
21391         * scripts/config.sub: Likewise.
21392
21393 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21394
21395         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21396         (EM_NUM): Update.
21397         (R_TILEPRO_*, R_TILEGX_*): New macros.
21398
21399         * scripts/firstversions.awk: Fix bug in version range handling.
21400
21401         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21402
21403         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21404
21405         * include/sys/epoll.h: New file.
21406         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21407         libc_hidden_def.
21408
21409 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21410
21411         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21412         Avoid unnecessary __WORDSIZE == 64 test.
21413         (fmaxf): Use VEX format if possible.
21414         (fmax): Likewise.
21415         (fminf): Likewise.
21416         (fmin): Likewise.
21417
21418         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21419         * math/math_private.h: Remove libc_fegetround* and
21420         libc_fesetround*.
21421         * sysdeps/i386/configure.in: Check for -msse2avx.
21422         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21423         also if SSE2AVX is defined.
21424         Remove libc_fegetround* and libc_fesetround*.
21425         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21426         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21427         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21428         of HAS_YMM_USABLE.
21429         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21430         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21431         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21432         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21433         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21434
21435         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21436
21437 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21438
21439         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21440         size is not set.
21441         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21442
21443 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21444
21445         [BZ #13618]
21446         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21447         relocation.
21448         * Makeconfig (libm): Define.
21449         * elf/Makefile: Add rules to build and run tst-relsort1.
21450         * elf/tst-relsort1.c: New file.
21451         * elf/tst-relsort1mod1.c: New file.
21452         * elf/tst-relsort1mod2.c: New file.
21453
21454 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21455
21456         * math/s_ldexp.c: Remove __STDC__ conditionals.
21457         * math/s_ldexpf.c: Likewise.
21458         * math/s_ldexpl.c: Likewise.
21459         * math/s_nextafter.c: Likewise.
21460         * math/s_nexttowardf.c: Likewise.
21461         * math/s_significand.c: Likewise.
21462         * math/s_significandf.c: Likewise.
21463         * math/s_significandl.c: Likewise.
21464         * math/w_jnl.c: Likewise.
21465         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21466         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21467         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21468         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21469         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21470         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21471         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21472         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21473         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21474         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21475         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21476         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21477         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21478         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21479         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21480         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21481         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21482         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21483         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21484         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21485         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21486         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21487         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21488         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21489         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21490         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21491         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21492         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21493         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21494         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21495         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21496         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21497         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21498         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21499         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21500         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21501         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21502         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21503         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21504         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21505         * sysdeps/ieee754/k_standard.c: Likewise.
21506         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21507         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21508         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21509         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21510         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21511         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21512         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21513         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21514         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21515         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21516         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21517         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21518         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21519         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21520         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21521         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21522         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21523         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21524         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21525         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21526         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21527         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21528         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21529         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21530         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21531         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21532         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21533         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21534         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21535         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21536         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21537         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21538         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21539         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21540         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21541         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21542         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21543         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21544         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21545         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21546         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21547         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21548         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21549         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21550         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21551         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21552         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21553         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21554         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21555         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21556         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21557         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21558         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21559         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21560         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21561         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21562         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21563         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21564         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21565         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21566         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21567         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21568         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21569         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21570         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21571         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21572         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21573         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21574         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21575         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21576         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21577         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21578         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21579         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21580         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21581         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21582         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21583         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21584         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21585         * sysdeps/ieee754/s_matherr.c: Likewise.
21586         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21587         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21588         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21589         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21590
21591 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21592
21593         * crypt/md5.h: Remove __STDC__ conditionals.
21594         * libio/libioP.h: Likewise.
21595         * locale/programs/config.h: Likewise.
21596         * sysdeps/generic/sysdep.h: Likewise.
21597         * sysdeps/i386/asm-syntax.h: Likewise.
21598         * sysdeps/s390/asm-syntax.h: Likewise.
21599         * sysdeps/unix/sysdep.h: Likewise.
21600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21602
21603 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21604
21605         * libio/libio.h: Remove __STDC__ conditionals.
21606         * malloc/obstack.h: Likewise.
21607         * math/complex.h: Likewise.
21608         * math/math.h: Likewise.
21609         * sysdeps/generic/_G_config.h: Likewise.
21610         * sysdeps/gnu/_G_config.h: Likewise.
21611         * sysdeps/mach/hurd/_G_config.h: Likewise.
21612         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21613         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21614         * sysdeps/sparc/bits/mathdef.h: Likewise.
21615
21616 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21617
21618         [BZ #13583]
21619         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21620         Clean up HAS_* macros.
21621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21622         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21623         possible.
21624         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21625         HAS_AVX.
21626         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21627         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21628         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21629         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21630         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21631
21632 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21633
21634         * elf/tst-unique3.cc (gets): Remove declaration.
21635         * elf/tst-unique3lib.cc (gets): Likewise.
21636         * elf/tst-unique3lib2.cc (gets): Likewise.
21637         * elf/tst-unique4.cc (gets): Likewise.
21638
21639 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21640
21641         * include/stdio.h: Add C++ protection.  Add gets declarations and
21642         definitions.
21643         * debug/tst-chk1.c: Don't declare gets here.
21644         * stdio-common/tst-gets.c: Likewise.
21645
21646 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21647
21648         * posix/glob: Remove directory.
21649
21650 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21651
21652         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21653
21654 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21655
21656         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21657         of the non-standard EPFNOSUPPORT.
21658
21659 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21660
21661         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21662         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21663         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21664
21665 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21666
21667         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21668
21669 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21670
21671         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21672         transient errors.
21673         * nscd/grpcache.c (cache_addgr): Likewise.
21674         * nscd/hstcache.c (cache_addhst): Likewise.
21675         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21676         * nscd/pwdcache.c (cache_addpw): Likewise.
21677         * nscd/servicescache.c (cache_addserv): Likewise.
21678
21679 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21680
21681         * malloc/malloc.c: Various cleanups.
21682         * malloc/hooks.c: Likewise.
21683
21684         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21685         * stdlib/bug-fmtmsg1.c: New file.
21686
21687         * stdlib/fmtmsg.c (init): Add missing unlock.
21688         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21689
21690 2012-01-12  Marek Polacek  <polacek@redhat.com>
21691
21692         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21693         and _GNU_SOURCE.
21694
21695 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21696
21697         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21698         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21699         macro to ensure uniqueness of label name.
21700         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21701         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21702
21703 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21704
21705         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21706
21707         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21708         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21709         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21710         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21711
21712 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21713
21714         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21715
21716         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21717         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21718         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21719
21720         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21721
21722         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21723         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21724         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21725         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21726
21727         * math/bits/math-finite.h: Add ldexp support.
21728
21729 2012-01-10  Marek Polacek  <polacek@redhat.com>
21730
21731         * locale/programs/localedef.h (show_archive_content): Add noreturn
21732         attribute.
21733
21734 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21735
21736         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21737
21738 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21739
21740         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21741
21742         * io/Makefile (headers): Add bits/poll2.h.
21743
21744 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21745
21746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21747         typo #include statement.
21748
21749 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21750
21751         * include/sys/cdefs.h: Define __attribute_alloc_size.
21752         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21753         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21754         * elf/pldd.c: Likewise.
21755         * iconv/iconv_charmap.c: Likewise.
21756         * iconv/iconvconfig.c: Likewise.
21757         * iconv/strtab.c: Likewise.
21758         * locale/programs/locale.c: Likewise.
21759         * locale/programs/localedef.h: Likewise.
21760         * locale/programs/simple-hash.c: Likewise.
21761         * nscd/nscd.h: Likewise.
21762         * nss/makedb.c: Likewise.
21763         * sysdeps/generic/ldconfig.h: Likewise.
21764         * locale/programs/localedef.c: Remove xmalloc prototype.
21765         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21766
21767 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21768
21769         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21770         appropriate.
21771
21772 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21773
21774         * math/Makefile (tests): Add tst-CMPLX.
21775         * math/tst-CMPLX.c: New file.
21776
21777         * math/complex.h (CMPLXL): Fix typo.
21778
21779         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21780         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21781         GLIBC_2.16.
21782         * debug/tst-chk1.c: Add poll and ppoll tests.
21783         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21784         * include/sys/poll.h: Add hidden proto for ppoll.
21785         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21786         * sysdeps/mach/hurd/ppoll.c: Likewise.
21787         * io/ppoll.c: Likewise.
21788         * debug/poll_chk.c: New file.
21789         * debug/ppoll_chk.c: New file.
21790         * include/bits/poll2.h: New file.
21791         * io/bits/poll2.h: New file.
21792
21793         [BZ #1350]
21794         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21795
21796         * configure.in: static is always set to yes.  Remove.
21797         * config.make.in: Don't set build-static.
21798         * Makeconfig: Remove use of build-static.
21799         * dlfcn/Makefile: Likewise.
21800         * elf/Makefile: Likewise.
21801         * math/Makefile: Likewise.
21802         * misc/Makefile: Likewise.
21803         * nptl/Makefile: Likewise.
21804         * sysdeps/mach/hurd/Makefile: Likewise.
21805
21806         * configure.in: PWD_P is not used anymore.
21807         * config.make.in: Remove PWD_P entry.
21808
21809         * configure.in: Remove last remnants of RANLIB.
21810         No need to check for signed size_t anymore.
21811         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21812         and IA-64.
21813         Remove __builtin_expect test because we require at least gcc 3.4.
21814         * aclocal.m4: Likewise.
21815
21816         * wcsmbs/mbrtoc16.c: Implement using towc function.
21817         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21818         * wcsmbs/wcsmbsload.c: Likewise.
21819         * iconv/gconv_simple.c: Likewise.
21820         * iconv/gconv_int.h: Likewise.
21821         * iconv/gconv_builtin.h: Likewise.
21822         * iconv/iconv_prog.c: Remove CHAR16 handling.
21823
21824         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21825
21826         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21827
21828         * configure.in: Remove --with-elf and --enable-bounded options.
21829         Dont set base_machine for ia64.  More non-ELF conditions removed.
21830         Remove testing and setting of leading underscore information.
21831         * config.make.in (build-bounded): Set to no.
21832         * config.h.in: Remove NO_UNDERSCORES entry.
21833         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21834         them.
21835         * csu/start.c: Remove !NO_UNDERSCORE code.
21836         * locale/localeinfo.h: Likewise.
21837         * sysdeps/generic/machine-gmon.h: Likewise.
21838         * sysdeps/generic/sysdep.h: Likewise.
21839         * sysdeps/i386/sysdep.h: Likewise.
21840         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21841         * sysdeps/mach/sysdep.h: Likewise.
21842         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21843         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21844         * sysdeps/sh/sysdep.h: Likewise.
21845         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21846         * sysdeps/unix/i386/sysdep.S: Likewise.
21847         * sysdeps/unix/sparc/start.c: Likewise.
21848         * sysdeps/unix/sparc/sysdep.S: Likewise.
21849         * sysdeps/unix/sparc/sysdep.h: Likewise.
21850         * sysdeps/unix/start.c: Likewise.
21851         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21852         * sysdeps/x86_64/sysdep.h: Likewise.
21853
21854 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21855
21856         [BZ #13553]
21857         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21858         for non-gcc.
21859         * argp/argp-fmtstream.h: Use const instead __const.
21860         * argp/argp.h: Likewise.
21861         * assert/assert.h: Likewise.
21862         * bits/fenv.h: Likewise.
21863         * bits/sched.h: Likewise.
21864         * bits/sigset.h: Likewise.
21865         * bits/sigthread.h: Likewise.
21866         * catgets/nl_types.h: Likewise.
21867         * conform/data/pthread.h-data: Likewise.
21868         * crypt/crypt-private.h: Likewise.
21869         * crypt/crypt.h: Likewise.
21870         * crypt/crypt_util.c: Likewise.
21871         * ctype/ctype.h: Likewise.
21872         * debug/execinfo.h: Likewise.
21873         * debug/mbsnrtowcs_chk.c: Likewise.
21874         * debug/mbsrtowcs_chk.c: Likewise.
21875         * debug/wcsnrtombs_chk.c: Likewise.
21876         * debug/wcsrtombs_chk.c: Likewise.
21877         * debug/wcstombs_chk.c: Likewise.
21878         * dirent/dirent.h: Likewise.
21879         * dlfcn/dlfcn.h: Likewise.
21880         * elf/neededtest4.c: Likewise.
21881         * grp/grp.h: Likewise.
21882         * gshadow/gshadow.h: Likewise.
21883         * iconv/gconv.h: Likewise.
21884         * iconv/gconv_int.h: Likewise.
21885         * iconv/gconv_simple.c: Likewise.
21886         * iconv/iconv.h: Likewise.
21887         * iconv/loop.c: Likewise.
21888         * iconv/skeleton.c: Likewise.
21889         * include/aio.h: Likewise.
21890         * include/aliases.h: Likewise.
21891         * include/argz.h: Likewise.
21892         * include/arpa/inet.h: Likewise.
21893         * include/assert.h: Likewise.
21894         * include/dirent.h: Likewise.
21895         * include/dlfcn.h: Likewise.
21896         * include/execinfo.h: Likewise.
21897         * include/fcntl.h: Likewise.
21898         * include/fenv.h: Likewise.
21899         * include/glob.h: Likewise.
21900         * include/grp.h: Likewise.
21901         * include/libintl.h: Likewise.
21902         * include/mntent.h: Likewise.
21903         * include/netdb.h: Likewise.
21904         * include/pwd.h: Likewise.
21905         * include/rpc/netdb.h: Likewise.
21906         * include/sched.h: Likewise.
21907         * include/search.h: Likewise.
21908         * include/shadow.h: Likewise.
21909         * include/signal.h: Likewise.
21910         * include/stdio.h: Likewise.
21911         * include/stdlib.h: Likewise.
21912         * include/string.h: Likewise.
21913         * include/sys/socket.h: Likewise.
21914         * include/sys/stat.h: Likewise.
21915         * include/sys/statfs.h: Likewise.
21916         * include/sys/statvfs.h: Likewise.
21917         * include/sys/syslog.h: Likewise.
21918         * include/sys/time.h: Likewise.
21919         * include/sys/uio.h: Likewise.
21920         * include/time.h: Likewise.
21921         * include/unistd.h: Likewise.
21922         * include/utmp.h: Likewise.
21923         * include/wchar.h: Likewise.
21924         * include/wctype.h: Likewise.
21925         * inet/aliases.h: Likewise.
21926         * inet/arpa/inet.h: Likewise.
21927         * inet/netinet/ether.h: Likewise.
21928         * inet/netinet/in.h: Likewise.
21929         * intl/libintl.h: Likewise.
21930         * io/bits/fcntl2.h: Likewise.
21931         * io/fcntl.h: Likewise.
21932         * io/ftw.h: Likewise.
21933         * io/sys/poll.h: Likewise.
21934         * io/sys/stat.h: Likewise.
21935         * io/sys/statfs.h: Likewise.
21936         * io/sys/statvfs.h: Likewise.
21937         * io/utime.h: Likewise.
21938         * libio/bits/stdio.h: Likewise.
21939         * libio/bits/stdio2.h: Likewise.
21940         * libio/libio.h: Likewise.
21941         * libio/libioP.h: Likewise.
21942         * libio/stdio.h: Likewise.
21943         * locale/lc-ctype.c: Likewise.
21944         * locale/locale.h: Likewise.
21945         * login/utmp.h: Likewise.
21946         * malloc/arena.c: Likewise.
21947         * malloc/malloc.c: Likewise.
21948         * malloc/malloc.h: Likewise.
21949         * malloc/mcheck.c: Likewise.
21950         * malloc/mtrace.c: Likewise.
21951         * math/bits/mathcalls.h: Likewise.
21952         * math/fenv.h: Likewise.
21953         * math/math_private.h: Likewise.
21954         * misc/bits/error.h: Likewise.
21955         * misc/bits/syslog.h: Likewise.
21956         * misc/err.h: Likewise.
21957         * misc/error.h: Likewise.
21958         * misc/fstab.h: Likewise.
21959         * misc/mntent.h: Likewise.
21960         * misc/regexp.h: Likewise.
21961         * misc/search.h: Likewise.
21962         * misc/sgtty.h: Likewise.
21963         * misc/sys/mman.h: Likewise.
21964         * misc/sys/syslog.h: Likewise.
21965         * misc/sys/uio.h: Likewise.
21966         * misc/sys/xattr.h: Likewise.
21967         * misc/ttyent.h: Likewise.
21968         * nis/rpcsvc/ypclnt.h: Likewise.
21969         * nss/nss.h: Likewise.
21970         * posix/bits/unistd.h: Likewise.
21971         * posix/fnmatch.h: Likewise.
21972         * posix/glob.h: Likewise.
21973         * posix/sched.h: Likewise.
21974         * posix/spawn.h: Likewise.
21975         * posix/sys/wait.h: Likewise.
21976         * posix/unistd.h: Likewise.
21977         * posix/wordexp.h: Likewise.
21978         * pwd/pwd.h: Likewise.
21979         * resolv/netdb.h: Likewise.
21980         * resource/sys/resource.h: Likewise.
21981         * rt/aio.h: Likewise.
21982         * rt/bits/mqueue2.h: Likewise.
21983         * rt/mqueue.h: Likewise.
21984         * shadow/shadow.h: Likewise.
21985         * signal/signal.h: Likewise.
21986         * socket/send.c: Likewise.
21987         * socket/sendto.c: Likewise.
21988         * socket/sys/socket.h: Likewise.
21989         * stdio-common/printf.h: Likewise.
21990         * stdlib/bits/stdlib.h: Likewise.
21991         * stdlib/fmtmsg.h: Likewise.
21992         * stdlib/monetary.h: Likewise.
21993         * stdlib/stdlib.h: Likewise.
21994         * stdlib/ucontext.h: Likewise.
21995         * streams/stropts.h: Likewise.
21996         * string/argz.h: Likewise.
21997         * string/bits/string2.h: Likewise.
21998         * string/string.h: Likewise.
21999         * string/strings.h: Likewise.
22000         * sunrpc/rpc/auth.h: Likewise.
22001         * sunrpc/rpc/auth_des.h: Likewise.
22002         * sunrpc/rpc/clnt.h: Likewise.
22003         * sunrpc/rpc/netdb.h: Likewise.
22004         * sunrpc/rpc/pmap_clnt.h: Likewise.
22005         * sunrpc/rpc/xdr.h: Likewise.
22006         * sysdeps/generic/inttypes.h: Likewise.
22007         * sysdeps/generic/net/if.h: Likewise.
22008         * sysdeps/generic/sys/swap.h: Likewise.
22009         * sysdeps/gnu/net/if.h: Likewise.
22010         * sysdeps/gnu/utmpx.h: Likewise.
22011         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22012         * sysdeps/i386/i486/bits/string.h: Likewise.
22013         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22014         * sysdeps/s390/bits/string.h: Likewise.
22015         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22016         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22017         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22018         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22019         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22020         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22021         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22022         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22023         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22024         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22025         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22026         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22027         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22028         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22029         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22030         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22031         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22032         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22033         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22034         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22035         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22036         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22037         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22038         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22039         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22040         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22041         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22042         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22043         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22044         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22045         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22046         * sysvipc/sys/ipc.h: Likewise.
22047         * sysvipc/sys/msg.h: Likewise.
22048         * sysvipc/sys/sem.h: Likewise.
22049         * sysvipc/sys/shm.h: Likewise.
22050         * termios/termios.h: Likewise.
22051         * time/sys/time.h: Likewise.
22052         * time/time.h: Likewise.
22053         * wcsmbs/bits/wchar2.h: Likewise.
22054         * wcsmbs/uchar.h: Likewise.
22055         * wcsmbs/wchar.h: Likewise.
22056         * wctype/wctype.h: Likewise.
22057
22058         [BZ #13551]
22059         * Makeconfig: Remove all but ELF support including AIX support.
22060         * Makerules: Likewise.
22061         * config.h.in: Likewise.
22062         * config.make.in: Likewise.
22063         * configure: Likewise.
22064         * configure.in: Likewise.
22065         * csu/Makefile: Likewise.
22066         * csu/version.c: Likewise.
22067         * debug/Makefile: Likewise.
22068         * dlfcn/Makefile: Likewise.
22069         * elf/Makefile: Likewise.
22070         * extra-lib.mk: Likewise.
22071         * iconv/Makefile: Likewise.
22072         * include/libc-symbols.h: Likewise.
22073         * include/shlib-compat.h: Likewise.
22074         * resolv/Makefile: Likewise.
22075         * resolv/res_libc.c: Likewise.
22076         * rt/Makefile: Likewise.
22077         * sysdeps/i386/asm-syntax.h: Likewise.
22078         * sysdeps/i386/sysdep.h: Likewise.
22079         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22080         * sysdeps/mach/sysdep.h: Likewise.
22081         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22082         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22083         * sysdeps/s390/asm-syntax.h: Likewise.
22084         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22085         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22086         * sysdeps/sh/sysdep.h: Likewise.
22087         * sysdeps/unix/sparc/sysdep.h: Likewise.
22088         * sysdeps/wordsize-32/divdi3.c: Likewise.
22089         * sysdeps/x86_64/sysdep.h: Likewise.
22090
22091         * argp/Versions: Remove _argp_unlock_xxx.
22092
22093         [BZ #13559]
22094         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22095         * abilist/libBrokenLocale.abilist: Likewise.
22096         * abilist/libanl.abilist: Likewise.
22097         * abilist/libc.abilist: Likewise.
22098         * abilist/libcrypt.abilist: Likewise.
22099         * abilist/libdl.abilist: Likewise.
22100         * abilist/libm.abilist: Likewise.
22101         * abilist/libnsl.abilist: Likewise.
22102         * abilist/libpthread.abilist: Likewise.
22103         * abilist/libresolv.abilist: Likewise.
22104         * abilist/librt.abilist: Likewise.
22105         * abilist/libthread_db.abilist: Likewise.
22106         * abilist/libutil.abilist: Likewise.
22107         * abilist/libnss_db.abilist: New file.
22108
22109         * scripts/abilist.awk: Add support for indirect functions.
22110
22111         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22112
22113         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22114
22115         * shlib-versions: Remove entries for ports architectures.
22116
22117         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22118         files in ports.
22119         * elf/stackguard-macros.h: Remove support for IA-64.
22120         * elf/tst-auditmod1.c: Likewise.
22121         * sysdeps/generic/ldsodefs.h: Likewise.
22122
22123         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22124         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22125         configure files.
22126
22127         [BZ #13552]
22128         * configure.in: Remove --enable-omitfp support.
22129         * FAQ.in: Adjust.
22130         * config.make.in: Likewise.
22131         * Makeconfig: Likewise.
22132         * manual/install.texi: Likewise.
22133
22134         In case anyone cares, the IA-64 architecture could move to ports.
22135         * sysdeps/ia64/*: Removed.
22136         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22137         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22138
22139         [BZ #13555]
22140         * configure.in: Remove entries for unsupported architectures.
22141
22142         [BZ #13533]
22143         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22144         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22145         routines.
22146         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22147         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22148         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22149         fall back to using wcrtomb.
22150         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22151         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22152         renaming.
22153         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22154         * wcsmbs/tst-c16c32-1.c: New file.
22155
22156         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22157         local variable.
22158
22159         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22160
22161         * elf/tst-unique3.cc: Add explicit declaration of gets.
22162         * elf/tst-unique3lib.cc: Likewise.
22163         * elf/tst-unique3lib2.cc: Likewise.
22164         * elf/tst-unique4.cc: Likewise.
22165
22166         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22167
22168 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22169
22170         [BZ #13566]
22171         * assert/assert.h (static_assert): Don't define for C++.
22172         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22173         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22174
22175 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22176
22177         * iconv/loop.c (single loop): Fix assertion in storing of
22178         remaining bytes.
22179
22180         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22181
22182 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22183
22184         * posix/getconf.c: Update copyright year.
22185         * nss/getent.c: Likewise.
22186         * nss/makedb.c: Likewise.
22187         * iconv/iconvconfig.c: Likewise.
22188         * iconv/iconv_prog.c: Likewise.
22189         * elf/ldconfig.c: Likewise.
22190         * elf/pldd.c: Likewise.
22191         * elf/sotruss.ksh: Likewise.
22192         * catgets/gencat.c: Likewise.
22193         * csu/version.c: Likewise.
22194         * elf/ldd.bash.in: Likewise.
22195         * elf/sprof.c (print_version): Likewise.
22196         * locale/programs/locale.c: Likewise.
22197         * locale/programs/localedef.c: Likewise.
22198         * login/programs/pt_chown.c: Likewise.
22199         * nscd/nscd.c (print_version): Likewise.
22200         * debug/xtrace.sh: Likewise.
22201         * malloc/memusage.sh: Likewise.
22202         * malloc/mtrace.pl: Likewise.
22203         * debug/catchsegv.sh: Likewise.
22204
22205 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22206
22207         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22208         pure attribute.
22209
22210 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22211
22212         [BZ #13533]
22213         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22214         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22215         transformations.
22216         * iconv/gconv_int.h: Likewise.
22217         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22218         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22219         from libc for GLIBC_2.16.
22220         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22221         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22222         * wcsmbs/uchar.h: Really define mbstate_t.
22223         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22224         * wcsmbs/c16rtomb.c: New file.
22225         * wcsmbs/mbrtoc16.c: New file.
22226         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22227         for C/POSIX locale.
22228         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22229         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22230
22231         * wcsmbs/wchar.h: Add missing __restrict.
22232
22233 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22234
22235         [BZ #13532]
22236         * time/Makefile (routines): Add timespec_get.
22237         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22238         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22239         timespec for ISO C11.
22240         * time/timespec_get.c: New file.
22241         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22242         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22243
22244         [BZ #13531]
22245         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22246         * stdlib/stdlib.h: Declare aligned_alloc.
22247         * Versions.def: Add GLIBC_2.16 for libc.
22248         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22249
22250         [BZ 13527]
22251         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22252         ISO C11.
22253
22254         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22255         code.
22256
22257         [BZ #13528]
22258         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22259
22260         [BZ #13529]
22261         * assert/assert.h (static_assert): Define.
22262
22263         * version.h: Update for 2.16 development version.
22264
22265         [BZ #13526]
22266         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22267         _ISOC11_SOURCE.
22268
22269         * version.h (RELEASE): Bump for 2.15 release.
22270         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22271
22272         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22273         Patch by Marek Polacek <mpolacek@redhat.com>.
22274
22275         * bits/byteswap.h: Protect long long constants with __extension__.
22276         * sysdeps/i386/bits/byteswap.h: Likewise.
22277         * sysdeps/ia64/bits/byteswap.h: Likewise.
22278         * sysdeps/s390/bits/byteswap.h: Likewise.
22279         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22280
22281 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22282
22283         [BZ #13540]
22284         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22285         destination buffer.
22286         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22287
22288 2011-12-23  Marek Polacek  <polacek@redhat.com>
22289
22290         * elf/dl-addr.c (determine_info): Add inline keyword.
22291         * elf/tst-auditmod4b.c (check_avx): Likewise.
22292         * elf/tst-auditmod6b.c (check_avx): Likewise.
22293         * elf/tst-auditmod6c.c (check_avx): Likewise.
22294         * elf/tst-auditmod7b.c (check_avx): Likewise.
22295
22296 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22297
22298         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22299         !__SSE_MATH__.
22300
22301 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22302
22303         [BZ #13540]
22304         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22305         processing for last bytes.
22306
22307 2011-08-06  Bruno Haible  <bruno@clisp.org>
22308
22309         [BZ #13061]
22310         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22311         U+0385, not to U+1FEE.
22312
22313         [BZ #13062]
22314         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22315         entry for U+00A5 U+0301.
22316
22317 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22318
22319         [BZ #13166]
22320         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22321         buffer for the output is too small.
22322
22323         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22324         optimization.
22325
22326         [BZ #13185]
22327         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22328         SSE flags if possible.
22329
22330 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22331
22332         [BZ #13540]
22333         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22334         processing for last bytes.
22335
22336 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22337
22338         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22339         (syscall-list-default-options, syscall-list-default-condition)
22340         (syscall-list-includes): Define.
22341         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22342         list of ABIs and options and #if conditions for each ABI.  Do not
22343         handle common syscalls between ABIs specially.
22344         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22345         Remove.
22346         (syscall-list-variants, syscall-list-32bit-options)
22347         (syscall-list-32bit-condition, syscall-list-64bit-options)
22348         (syscall-list-64bit-condition): Define.
22349         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22350         (syscall-list-variants, syscall-list-32bit-options)
22351         (syscall-list-32bit-condition, syscall-list-64bit-options)
22352         (syscall-list-64bit-condition): Define.
22353         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22354         Remove.
22355         (syscall-list-variants, syscall-list-32bit-options)
22356         (syscall-list-32bit-condition, syscall-list-64bit-options)
22357         (syscall-list-64bit-condition): Define.
22358         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22359         Remove.
22360         (syscall-list-variants, syscall-list-32bit-options)
22361         (syscall-list-32bit-condition, syscall-list-64bit-options)
22362         (syscall-list-64bit-condition): Define.
22363
22364 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22365
22366         * locale/iso-639.def: Add brx entry.
22367
22368         [BZ #13328]
22369         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22370         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22371
22372         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22373         __feraiseexcept_renamed.
22374
22375 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22376
22377         [BZ #13538]
22378         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22379         EPOLLET with unsigned values.
22380         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22381         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22382
22383         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22384         to large cancellation.
22385         * math/s_cacoshf.c: Likewise.
22386         * math/s_cacoshl.c: Likewise.
22387
22388 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22389
22390         [BZ #13305]
22391         [BZ #12786]
22392         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22393         * math/s_cacoshf.c: Likewise.
22394         * math/s_cacoshl.c: Likewise.
22395
22396 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22397
22398         [BZ #13439]
22399         * iconv/gconv.h: Define __GCONV_SWAP.
22400         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22401         * iconvdata/utf-16.c: Likewise.
22402         * iconvdata/utf-32.c: Likewise.
22403
22404 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22405
22406         [BZ #13524]
22407         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22408         numerator after shifting it by one limb.
22409
22410 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22411
22412         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22413         under [__USE_EXTERN_INLINES].
22414
22415 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22416
22417         [BZ #13446]
22418         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22419
22420 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22421
22422         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22423         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22424         optimized code.
22425         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22426         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22427         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22428         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22429         for strncasecmp/strncasecmp_l compilation.
22430         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22431         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22432
22433 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22434
22435         [BZ #13484]
22436         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22437         of __asm__.
22438
22439 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22440
22441         [BZ #13506]
22442         * time/tzfile.c (__tzfile_read): Check values from file header.
22443
22444 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22445
22446         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22447         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22448         * powerpc/powerpc32/dl-start.S: Likewise.
22449         * powerpc/powerpc32/elf/start.S: Likewise.
22450         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22451         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22452         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22453         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22454         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22455         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22456         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22457         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22458         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22459         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22460         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22461         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22462         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22463         * powerpc/powerpc32/memset.S: Likewise.
22464         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22465         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22466         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22467         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22468         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22469         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22470         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22471         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22472         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22473         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22474         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22475         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22476         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22477
22478 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22479
22480         * math/libm-test.inc: Added more nearbyint tests.
22481         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22482         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22483         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22484         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22485
22486 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22487
22488         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22489         FD_CLOEXEC.
22490
22491 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22492
22493         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22494         Add wcscpy-ssse3 wcscpy-c.
22495         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22496         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22497         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22498         * sysdeps/x86_64/wcschr.S: New file.
22499         * sysdeps/x86_64/wcsrchr.S: New file.
22500         * string/test-strcmp.c: Remove checking of wcscmp function for
22501         wrong alignments.
22502         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22503         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22504         wcsrchr-sse2 wcsrchr-c.
22505         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22506         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22507         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22508         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22509         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22510         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22511         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22512         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22513         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22514         * wcsmbc/wcschr.c (WCSCHR): New macro.
22515
22516 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22517
22518         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22519         * wcsmbs/test-wcsrchr.c: New file.
22520         * string/test-strrchr.c: Add wcsrchr support.
22521         (WIDE): New macro.
22522         * wcsmbs/test-wcscpy.c: New file.
22523         * string/test-strcpy.c: Add wcscpy support.
22524         (WIDE): New macro.
22525
22526 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22527
22528         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22529         the inner loop.
22530
22531 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22532
22533         [BZ #13472]
22534         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22535
22536 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22537
22538         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22539         Minor optimizations.
22540
22541         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22542         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22543         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22544
22545 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22546
22547         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22548         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22549         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22550         for gcc to avoid warnings.
22551         * inet/Makefile (tests): Add tst-checks.
22552         * inet/tst-checks.c: New file.
22553
22554         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22555         warning.
22556
22557         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22558         __wmemcmp_sse2.
22559
22560         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22561         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22562
22563         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22564
22565 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22566
22567         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22568         problem.
22569
22570         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22571
22572 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22573
22574         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22575         conditional on GCC version.
22576         (__arch_compare_and_exchange_val_8_acq)
22577         (__arch_compare_and_exchange_val_16_acq)
22578         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22579         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22580         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22581
22582 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22583
22584         * sysdeps/sh/backtrace.c: New file.
22585
22586 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22587
22588         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22589         parenthesis.
22590
22591 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22592
22593         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22594         falling back to utime.
22595
22596 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22597
22598         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22599         expectations for float.
22600
22601 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22602
22603         * locale/weight.h (findidx): Add parameter len.
22604         * locale/weightwc.h (findidx): Likewise.
22605         * posix/fnmatch_loop.c (FCT): Adjust caller.
22606         * posix/regcomp.c (build_equiv_class): Likewise.
22607         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22608         * posix/regexec.c (check_node_accept_bytes): Likewise.
22609         * string/strcoll_l.c (STRCOLL): Likewise.
22610         * string/strxfrm_l.c (STRXFRM): Likewise.
22611
22612 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22613
22614         * Makefile.in: Remove CVSOPT handling.
22615         * configure.in: Remove use of AC_REVISION.
22616         * iconvdata/Makefile (distribute): No need to filter out CVS.
22617         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22618         handling.
22619
22620 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22621
22622         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22623         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22624         [USE_AS_STRNCASECMP_L]: Likewise.
22625         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22626         NO_TLS_DIRECT_SEG_REFS.
22627         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22628         Fix argument offsets for non-PIC.
22629         [USE_AS_STRNCASECMP_L]: Likewise.
22630         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22631         NO_TLS_DIRECT_SEG_REFS.
22632
22633 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22634
22635         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22636         O_CLOEXEC.
22637         * locale/loadlocale.c (_nl_load_locale): Likewise.
22638
22639 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22640
22641         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22642         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22643         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22644         (SYSCALL_GETTIME): Set errno on error.
22645
22646         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22647         count references to noai6ai_cached.
22648
22649 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22650
22651         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22652
22653         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22654         FD_CLOEXEC for /proc/self/maps.
22655
22656         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22657         FD_CLOEXEC for /proc/meminfo.
22658
22659         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22660         gai.conf.
22661
22662         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22663         FD_CLOEXEC for given file.
22664
22665         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22666
22667         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22668         FD_CLOEXEC for /etc/hosts.
22669         (_gethtent): Likewise.
22670
22671         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22672
22673         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22674         cancellation and set FD_CLOEXEC for /etc/netgroup.
22675
22676         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22677         reading /etc/publickey.
22678
22679         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22680         allow cancellation when reading /etc/group.
22681
22682         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22683         cancellation.
22684         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22685
22686         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22687         when using data file.
22688
22689         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22690
22691         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22692         (write_nis_obj): Use "c" and "e" in fopen.
22693
22694         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22695
22696         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22697
22698         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22699
22700         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22701
22702         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22703         locale.alias.
22704
22705         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22706
22707         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22708
22709         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22710
22711         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22712         file parsing and set FD_CLOEXEC.
22713
22714 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22715
22716         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22717
22718 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22719
22720         * malloc/arena.c (arena_get2): Don't call reused_arena when
22721         _int_new_arena failed.
22722
22723 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22724
22725         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22726         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22727         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22728         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22729         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22730         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22731         to compile strcasecmp and strncasecmp.
22732         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22733         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22734
22735         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22736
22737 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22738
22739         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22740         locale-defines.sym to gen-as-const-headers.
22741         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22742         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22743         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22744         to compile strcasecmp and strncasecmp.
22745         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22746         strcasecmp_l and strncasecmp_l.
22747         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22748         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22749         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22750         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22751         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22752         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22753         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22754         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22755         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22756         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22757         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22758
22759 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22760
22761         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22762         result of SYSDEP_GETTIME_CPU to retval.
22763         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22764         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22765
22766         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22767         variable.
22768
22769         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22770         mantissa words.
22771         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22772
22773         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22774         from unused variable.
22775
22776         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22777         DWARF definitions.
22778         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22779         for assembling.
22780
22781         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22782         over namespaces.
22783
22784         * sunrpc/rpc_prot.c (rejected): Fix case value.
22785
22786         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22787         unsigned long long int to avoid warnings in shift.
22788
22789         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22790         of use of trans.
22791         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22792         variable tmp.
22793
22794         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22795         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22796         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22797
22798         * nis/nis_table.c (nis_list): Use variable of correct type for
22799         result of __follow_path call.
22800
22801 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22802
22803         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22804         of math functions ceil, trunc, floor, round, and sqrt, when
22805         avaliable on the platform.
22806         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22807         name clash.
22808         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22809         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22810         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22811
22812 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22813
22814         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22815         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22816
22817 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22818
22819         * include/unistd.h: Fix __readlink return type.
22820         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22821
22822 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22823
22824         * stdlib/ucontext.h: Undo last change for makecontext.
22825
22826 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22827
22828         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22829
22830         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22831         * setjmp/setjmp.h: Mark functions as non-leaf.
22832         * setjmp/bits/setjmp2.h: Likewise.
22833         * stdlib/ucontext.h: Likewise.
22834
22835 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22836
22837         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22838         (reused_arena): Don't check arena limit.
22839         (arena_get2): Atomically check arena limit.
22840
22841 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22842
22843         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22844         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22845
22846         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22847         instructions.
22848
22849 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22850
22851         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22852         handler when locking.
22853
22854         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22855         Fix size of allocated buffer.
22856
22857 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22858
22859         [BZ #10103]
22860         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22861         declarations for long double functions.
22862         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22863
22864         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22865
22866 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22867
22868         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22869         installed.
22870
22871         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22872         is disabled.
22873
22874 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22875
22876         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22877
22878 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22879
22880         * include/alloca.h (stackinfo_alloca_round): Define.
22881         (extend_alloca): Use it.
22882         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22883         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22884         here.
22885
22886         * scripts/check-local-headers.sh: Ignore libaudit.h.
22887
22888         * nscd/Makefile (extra-objs): Make recursively expanded.
22889
22890 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22891
22892         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22893         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22894
22895         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22896         * posix/tst-rfc3484-2.c: Likewise.
22897         * posix/tst-rfc3484-3.c: Likewise.
22898
22899         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22900         process_vm_writev.
22901         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22902         process_vm_writev.
22903         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22904         process_vm_writev from libc using GLIBC_2.15 version.
22905
22906         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22907
22908 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22909
22910         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22911         stack usage.
22912
22913 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22914
22915         [BZ #13367]
22916         * nss/getent.c (initgroups_keys): Show error message in case no group
22917         names are given.
22918
22919         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22920         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22921         __bump_nl_timestamp.
22922         * nscd/connections (nscd_init): When host database is served open
22923         netlink socket and request notification about configuration changes.
22924         (main_loop_poll): Track netlink file descriptor and bump timestamp
22925         in case data becomes available.
22926         (main_loop_epoll): Likewise.
22927         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22928         (database_pers_head): Add extra_data fileds.
22929         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22930         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22931         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22932         Adjust caller.
22933         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22934         in6ai data, call __free_in6ai.
22935         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22936         Add -DHAVE_NETLINK.
22937         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22938         interface information.  Reuse previous data if netlink timestamp
22939         is not changed.
22940         (__bump_nl_timestamp): New function.
22941         (__free_in6ai): New function.
22942
22943 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22944
22945         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22946         close_not_cancel_no_status here.
22947         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22948
22949 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22950
22951         [BZ #13276]
22952         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22953         return value.
22954
22955         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22956         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22957         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22958
22959 2011-07-03  Andreas Jaeger  <aj@suse.de>
22960
22961         [BZ #10709]
22962         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22963         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22964         * math/libm-test.inc (sin_test): Add test case.
22965
22966 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22967
22968         [BZ #13337]
22969         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22970         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22971
22972         * elf/chroot_canon.c (chroot_canon): Cleanups.
22973
22974         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22975
22976         [BZ #13335]
22977         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22978         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22979
22980         * string/test-strchr.c: Make usable for strchrnul testing.
22981         * string/test-strchrnul.c: New file.
22982         * string/Makefile (strop-tests): Add strchrnul.
22983
22984         * po/it.po: Update from translation team.
22985         * po/es.po: Likewise.
22986
22987 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22988
22989         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22990         the three constants needed as parameters.  Drop the others.
22991         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22992         __m128i_strloadu_tolower.
22993         Create and initialize variable zero and use it in all the places
22994         where _mm_setzero_si128 was used.
22995
22996         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22997         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22998         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22999         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23000         anymore.
23001         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23002         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23003         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23004         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23005         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23006         __mpranred, __mptan.
23007         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23008         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23009         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23010         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23011         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23012         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23013         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23014         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23015         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23016
23017 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23018
23019         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23020         redefine if SHARED.
23021         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23022
23023         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23024         wide char related routines to wcsmbs subdir.
23025
23026 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23027
23028         [BZ #13344]
23029         * misc/sys/cdefs.h (__THROWNL): Define.
23030         * posix/unistd.h: Use __THREADNL instead of __THREAD
23031         for memory synchronization functions.
23032
23033 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23034
23035         [BZ #13349]
23036         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23037         doesn't exist.
23038         * manual/stdio.texi (Obstack Streams): Node removed.
23039
23040 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23041
23042         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23043         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23044         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23045
23046         * math/math_private.h (math_force_eval): Allow non-addressable
23047         arguments.
23048         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23049
23050 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23051
23052         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23053         file is not needed.
23054
23055         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23056         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23057         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23058         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23059         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23060         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23061         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23062         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23063         Add AVX variants.
23064         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23065         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23066         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23067         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23068         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23069         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23070         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23071         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23072         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23073         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23074         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23075         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23076         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23077         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23078         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23079         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23080         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23081         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23082         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23083
23084         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23085         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23086
23087         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23088         place.  Use VEX encoding when compiling for AVX.
23089
23090 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23091
23092         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23093         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23094
23095         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23096
23097 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23098
23099         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23100         useless if() expression.
23101         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23102         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23103         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23104         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23105         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23106         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23107         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23108         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23109         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23110         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23111         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23112         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23113         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23114         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23115         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23116         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23117         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23118         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23119         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23120
23121         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23122
23123 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23124
23125         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23126         condition.
23127         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23128
23129 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23130
23131         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23132         .text section.  Avoid duplicate constants.
23133         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23134         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23135         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23136         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23137         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23138         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23139         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23140         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23141         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23142         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23143         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23144         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23145         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23146         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23147         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23148         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23149         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23150         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23151         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23152         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23153         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23154         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23155         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23156         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23157         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23158         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23159         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23160         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23161         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23162         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23163         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23164         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23165         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23166         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23167         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23168         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23169         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23170         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23171         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23172         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23173         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23174         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23175         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23176         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23177         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23178
23179 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23180
23181         * sysdeps/x86_64/dla.h: Move to ...
23182         * sysdeps/x86_64/fpu/dla.h: ...here.
23183         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23184         situations.  Use __builtin_fma only for gcc 4.6 and up.
23185
23186         * config.make.in: Add have-mfma4 entry.
23187         * configure.in: Substitute libc_cv_cc_fma4.
23188         * math/Makefile (dbl-only-routines): Add sincostab.
23189         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23190         Use __sincostab not sincos.
23191         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23192         name is a macro.
23193         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23194         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23195         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23196         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23197         using __copysign.
23198         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23199         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23200         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23201         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23202         and __inv.
23203         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23204         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23205         __copysign.
23206         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23207         define aliases when function name is a macro.
23208         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23209         sysdeps/ieee754/dbl-64/sincos.tbl.
23210         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23211         fma4-enabled routines.
23212         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23213         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23214         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23215         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23216         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23217         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23218         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23219         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23220         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23221         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23222         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23223         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23224         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23225         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23226         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23227         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23228         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23229         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23230         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23231         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23232         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23233         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23234         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23235         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23236         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23237         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23238         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23239         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23240         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23241         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23242
23243         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23244         rename.
23245         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23246         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23247         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23248         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23249         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23250         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23251         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23252         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23253
23254 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23255
23256         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23257
23258 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23259
23260         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23261
23262         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23263         prediction.
23264         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23265
23266         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23267         Remove unused variable magic_bits.
23268         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23269
23270         * string/strnlen.c: Define and use STRNLEN macro.
23271         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23272         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23273         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23274         * wcsmbs/wcslen.c: Define and use WCSLEN.
23275         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23276         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23277         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23278         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23279         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23280         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23281         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23282
23283 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23284
23285         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23286         strnlen-sse2-no-bsf.
23287         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23288         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23289         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23290         Add strnlen support.
23291         (USE_AS_STRNLEN): New macro.
23292         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23293         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23294         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23295         * sysdeps/x86_64/wcslen.S: New file.
23296
23297 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23298
23299         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23300         XMM-moves are used for copying on small sizes.
23301
23302 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23303
23304         * wcsmbs/Makefile (strop-tests): Add wcschr.
23305         * wcsmbs/test-wcschr.c: New file.
23306         * string/test-strchr.c: Update.
23307         Add wcschr support.
23308         (WIDE): New macro.
23309
23310 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23311
23312         * wcsmbs/Makefile (strop-tests): Add wcslen.
23313         * wcsmbs/test-wcslen.c: New file.
23314         * string/test-strlen.c: Update.
23315         Add wcslen support.
23316         (WIDE): New macro.
23317
23318 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23319
23320         * po/it.po: Update from translation team.
23321
23322 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23323
23324         * sysdeps/x86_64/wcscmp.S: Update.
23325         Fix wrong comparison semantics.
23326         wcscmp shall use signed comparison not unsigned.
23327         Don't use substraction to avoid overflow bug.
23328         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23329         * wcsmbc/wcscmp.c: Likewise.
23330         * string/test-strcmp.c: Likewise.
23331         Add new tests to check cases with negative values.
23332
23333 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23334
23335         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23336         * sysdeps/x86_64/dla.h: ...here.  New file.
23337         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23338         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23339         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23340         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23341         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23342         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23343         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23344         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23346
23347 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23348
23349         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23350         __ynl_finite aliases.
23351
23352 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23353
23354         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23355
23356         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23357         define DLA_FMA.
23358         [DLA_FMA] (EMULV): Use DLA_FMA.
23359         [DLA_FMA] (MUL12): Use EMULV.
23360         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23361         that are not needed.
23362         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23363         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23364         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23365         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23366         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23367         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23368         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23369
23370 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23371
23372         * math/s_nan.c: Undef __nan.
23373         * math/s_nanf.c: Undef __nanf.
23374         * math/s_nanl.c: Undef __nanl.
23375         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23376         "math_private.h".
23377
23378 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23379
23380         * math/s_catan.c: Add branch predictions.
23381         * math/s_catanf.c: Likewise.
23382         * math/s_catanh.c: Likewise.
23383         * math/s_catanhf.c: Likewise.
23384         * math/s_catanhl.c: Likewise.
23385         * math/s_catanl.c: Likewise.
23386         * math/s_cexp.c: Likewise.
23387         * math/s_cexpf.c: Likewise.
23388         * math/s_cexpl.c: Likewise.
23389         * math/s_clog.c: Likewise.
23390         * math/s_clog10.c: Likewise.
23391         * math/s_clog10f.c: Likewise.
23392         * math/s_clog10l.c: Likewise.
23393         * math/s_clogf.c: Likewise.
23394         * math/s_clogl.c: Likewise.
23395         * math/s_csqrt.c: Likewise.
23396         * math/s_csqrtf.c: Likewise.
23397         * math/s_csqrtl.c: Likewise.
23398         * math/s_ctanf.c: Likewise.
23399         * math/s_ctanh.c: Likewise.
23400         * math/s_ctanhf.c: Likewise.
23401         * math/s_ctanhl.c: Likewise.
23402         * math/s_ctanl.c: Likewise.
23403
23404         * math/math_private.h: Define __nan, __nanf, __nanl.
23405         * math/s_cacosh.c: Include <math_private.h>.
23406         * math/s_cacoshl.c: Likewise.
23407         * math/s_casinh.c: Likewise.
23408         * math/s_casinhf.c: Likewise.
23409         * math/s_casinhl.c: Likewise.
23410         * math/s_ccos.c: Rely entire on ccosh.
23411         * math/s_ccosf.c: Rely entire on ccoshf.
23412         * math/s_ccosl.c: Rely entirely on ccoshl.
23413         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23414         Remove tests for FE_INVALID.
23415         * math/s_ccoshf.c: Likewise.
23416         * math/s_ccoshl.c: Likewise.
23417         * math/s_csin.c: Likewise.
23418         * math/s_csinf.c: Likewise.
23419         * math/s_csinh.c Likewise.
23420         * math/s_csinhf.c: Likewise.
23421         * math/s_csinhl.c: Likewise.
23422         * math/s_csinl.c: Likewise.
23423         * math/s_ctan.c: Likewise.
23424         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23425         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23426         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23427
23428 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23429
23430         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23431         compilation problems.
23432
23433         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23434         __builtin_expect.
23435
23436 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23437
23438         * sysdeps/i386/configure.in: Test for -mfma4 option.
23439         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23440         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23441         COMMON_CPUID_INDEX_80000001.
23442         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23443         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23444         use it if FMA3 is not supported.
23445         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23446
23447         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23448         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23449
23450 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23451
23452         [BZ #12892]
23453         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23454         it would create a cycle with a link time dependency.
23455
23456 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23457
23458         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23459         instruction.
23460         * string/Makefile (strop-tests): Add rawmemchr.
23461         * string/test-rawmemchr.c: New file.
23462
23463         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23464         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23465         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23466         when compiling str{,n}casecmp and when AVX is available.  Hook up
23467         new optimized code in initializers.
23468
23469 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23470
23471         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23472         __feraiseexcept instead of feraiseexcept.
23473
23474 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23475
23476         * math/math_private.h: Define defaults for libc_fetestexcept and
23477         libc_feupdateenv.
23478         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23479         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23480         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23481         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23482         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23483         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23484         libc_fetestexcept and libc_feupdateenv.
23485
23486         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23487         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23488         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23489         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23490         libc_feholdexcept_setround.
23491
23492         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23493         Add s_nearbyint-c and s_nearbyintf-c.
23494         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23495         nearbyintf inlines.
23496         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23497         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23498         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23499         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23500
23501         * math/math_private.h: Define defaults for libc_fegetround,
23502         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23503         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23504         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23505         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23506         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23507         standard functions.
23508         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23509         Remove comments and hacks for old compiler versions.
23510         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23511         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23512         libc_feholdexceptl.
23513
23514 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23515
23516         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23517         (__feraiseexcept_renamed): Add __NTH.
23518         (feraiseexcept): Add __NTH.  Rename local variables to fix
23519         namespace violations.
23520
23521 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23522
23523         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23524
23525         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23526
23527         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23528         recently added interfaces.
23529         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23530
23531         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23532         about macro parameter expansion.
23533
23534         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23535         __NO_MATH_INLINES is defined.  Cleanups.
23536
23537         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23538         and __floorf is target has SSE4.1.
23539         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23540         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23541         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23542         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23543
23544         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23545         name.
23546         (floorf): Likewise.
23547
23548         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23549
23550 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23551
23552         * misc/sys/cdefs.h: Fix last change.
23553
23554         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23555         database lookup.
23556
23557 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23558
23559         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23560
23561         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23562         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23563         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23564         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23565         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23566         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23567         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23568         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23569         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23570         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23571         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23572         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23573         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23574         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23575         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23576         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23577         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23578         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23579         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23580         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23581         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23582         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23583
23584         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23585         ceil, ceilf, floor, floorf.
23586
23587         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23588         Perform IRELATIVE relocations last.
23589
23590         * elf/do-rel.h: Add another parameter nrelative, replacing the
23591         local variable with the same name.  Change name of the function
23592         to end in Rel or Rela (uppercase).
23593         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23594         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23595         elf_dynamic_do_##reloc function.
23596
23597 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23598
23599         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23600         is sufficient, at least on modern CPUs.
23601
23602         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23603
23604         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23605         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23606
23607         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23608         __expl_finite.
23609         * math/bits/math-finite.h: Add entries for exp.
23610         * math/e_expl.c: Add __*_finite alias.
23611         * sysdeps/i386/fpu/e_exp.S: Likewise.
23612         * sysdeps/i386/fpu/e_expf.S: Likewise.
23613         * sysdeps/i386/fpu/e_expl.c: Likewise.
23614         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23615         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23616         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23617         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23618         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23619         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23620         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23621
23622         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23623         is sufficient, at least on modern CPUs.
23624
23625         * ctype/ctype-info.c (__ctype_init): Define.
23626         * include/ctype.h (__ctype_init): Declare.
23627         (__ctype_b_loc): The variable is always initialized.
23628         (__ctype_toupper_loc): Likewise.
23629         (__ctype_tolower_loc): Likewise.
23630         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23631         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23632
23633 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23634
23635         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23636
23637         * configure.in: Also look in $cxxmachine/include for C++ system
23638         headers.
23639
23640 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23641
23642         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23643         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23644         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23645         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23646         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23647         (USE_AS_WMEMCMP): New macro.
23648         Fixing indents.
23649         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23650         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23651         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23652         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23653         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23654         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23655         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23656         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23657         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23658         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23659         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23660         (USE_AS_WMEMCMP): New macro.
23661         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23662         * sysdeps/string/test-memcmp.c: Update.
23663         Fix simple_wmemcmp.
23664         Add new tests.
23665         * wcsmbs/wmemcmp.c: Update.
23666         (WMEMCMP): New macro.
23667         Fix overflow bug.
23668
23669 2011-10-12  Andreas Jaeger  <aj@suse.de>
23670
23671         [BZ #13268]
23672         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23673
23674 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23675
23676         * libio/iofwide.c (do_length): Avoid warning.
23677
23678         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23679
23680 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23681
23682         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23683
23684         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23685         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23686         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23687         * sysdeps/i386/i686/fpu/e_log.S: New file.
23688         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23689         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23690
23691         * ctype/ctype.h: Add support for inlined isXXX functions when
23692         compiling C++ code.
23693
23694 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23695
23696         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23697
23698         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23699
23700 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23701
23702         [BZ #13291]
23703         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23704
23705 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23706
23707         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23708         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23709         feraiseexcept.
23710
23711         * sysdeps/x86_64/memrchr.S: Check for zero size.
23712
23713         * string/stratcliff.c: Add memrchr tests.
23714
23715 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23716
23717         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23718         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23719         rawmemchr-sse2 rawmemchr-sse2-bsf.
23720         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23721         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23722         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23723         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23724         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23725         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23726         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23727         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23728         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23729         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23730         * string/memrchr.c (MEMRCHR): New macro.
23731
23732 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23733
23734         Add integration with gcc's -ffinite-math-only and optimize wrapper
23735         functions in libm.
23736         * Versions.def: Define GLIBC_2.15 version for libm.
23737         * math/Makefile (headers): Add bits/math-finite.h.
23738         * math/bits/math-finite.h: New file.
23739         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23740         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23741         * math/e_acoshl.c: Add __*_finite alias.
23742         * math/e_acosl.c: Likewise.
23743         * math/e_asinl.c: Likewise.
23744         * math/e_atan2l.c: Likewise.
23745         * math/e_atanhl.c: Likewise.
23746         * math/e_coshl.c: Likewise.
23747         * math/e_exp10.c: Likewise.
23748         * math/e_exp10f.c: Likewise.
23749         * math/e_exp10l.c: Likewise.
23750         * math/e_exp2l.c: Likewise.
23751         * math/e_fmodl.c: Likewise.
23752         * math/e_gammal_r.c: Likewise.
23753         * math/e_hypotl.c: Likewise.
23754         * math/e_j0l.c: Likewise.
23755         * math/e_j1l.c: Likewise.
23756         * math/e_jnl.c: Likewise.
23757         * math/e_lgammal_r.c: Likewise.
23758         * math/e_log10l.c: Likewise.
23759         * math/e_log2l.c: Likewise.
23760         * math/e_logl.c: Likewise.
23761         * math/e_powl.c: Likewise.
23762         * math/e_sinhl.c: Likewise.
23763         * math/e_sqrtl.c: Likewise.
23764         * math/e_scalb.c: Completely rewritten and optimized.
23765         * math/e_scalbf.c: Likewise.
23766         * math/e_scalbl.c: Likewise.
23767         * math/w_acos.c: Likewise.
23768         * math/w_acosf.c: Likewise.
23769         * math/w_acosl.c: Likewise.
23770         * math/w_acosh.c: Likewise.
23771         * math/w_acoshf.c: Likewise.
23772         * math/w_acoshl.c: Likewise.
23773         * math/w_asin.c: Likewise.
23774         * math/w_asinf.c: Likewise.
23775         * math/w_asinl.c: Likewise.
23776         * math/w_atan2.c: Likewise.
23777         * math/w_atan2f.c: Likewise.
23778         * math/w_atan2l.c: Likewise.
23779         * math/w_atanh.c: Likewise.
23780         * math/w_atanhf.c: Likewise.
23781         * math/w_atanhl.c: Likewise.
23782         * math/w_exp10.c: Likewise.
23783         * math/w_exp10f.c: Likewise.
23784         * math/w_exp10l.c: Likewise.
23785         * math/w_fmod.c: Likewise.
23786         * math/w_fmodf.c: Likewise.
23787         * math/w_fmodl.c: Likewise.
23788         * math/w_j0.c: Likewise.
23789         * math/w_j0f.c: Likewise.
23790         * math/w_j0l.c: Likewise.
23791         * math/w_j1.c: Likewise.
23792         * math/w_j1f.c: Likewise.
23793         * math/w_j1l.c: Likewise.
23794         * math/w_jn.c: Likewise.
23795         * math/w_jnf.c: Likewise.
23796         * math/w_log.c: Likewise.
23797         * math/w_logf.c: Likewise.
23798         * math/w_logl.c: Likewise.
23799         * math/w_log10.c: Likewise.
23800         * math/w_log10f.c: Likewise.
23801         * math/w_log10l.c: Likewise.
23802         * math/w_log2.c: Likewise.
23803         * math/w_log2f.c: Likewise.
23804         * math/w_log2l.c: Likewise.
23805         * math/w_pow.c: Likewise.
23806         * math/w_powf.c: Likewise.
23807         * math/w_powl.c: Likewise.
23808         * math/w_remainder.c: Likewise.
23809         * math/w_remainderf.c: Likewise.
23810         * math/w_remainderl.c: Likewise.
23811         * math/w_scalb.c: Likewise.
23812         * math/w_scalbf.c: Likewise.
23813         * math/w_scalbl.c: Likewise.
23814         * math/w_sqrt.c: Likewise.
23815         * math/w_sqrtf.c: Likewise.
23816         * math/w_sqrtl.c: Likewise.
23817         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23818         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23819         used.
23820         * math/math_private.h: Declare __kernel_standard_f.
23821         * math/w_cosh.c: Remove cruft and optimize a bit.
23822         * math/w_coshf.c: Likewise.
23823         * math/w_coshl.c: Likewise.
23824         * math/w_exp2.c: Likewise.
23825         * math/w_exp2f.c: Likewise.
23826         * math/w_exp2l.c: Likewise.
23827         * math/w_hypot.c: Likewise.
23828         * math/w_hypotf.c: Likewise.
23829         * math/w_hypotl.c: Likewise.
23830         * math/w_lgamma.c: Likewise.
23831         * math/w_lgamma_r.c: Likewise.
23832         * math/w_lgammaf.c: Likewise.
23833         * math/w_lgammaf_r.c: Likewise.
23834         * math/w_lgammal.c: Likewise.
23835         * math/w_lgammal_r.c: Likewise.
23836         * math/w_sinh.c: Likewise.
23837         * math/w_sinhf.c: Likewise.
23838         * math/w_sinhl.c: Likewise.
23839         * math/w_tgamma.c: Likewise.
23840         * math/w_tgammaf.c: Likewise.
23841         * math/w_tgammal.c: Likewise.
23842         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23843         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23844         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23845         Minor optimizations.  Pretty printing.  Remove cruft.
23846         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23847         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23848         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23849         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23850         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23851         * sysdeps/i386/fpu/e_asin.S: Likewise.
23852         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23853         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23854         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23855         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23856         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23857         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23858         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23859         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23860         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23861         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23862         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23863         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23864         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23865         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23866         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23867         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23868         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23869         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23870         * sysdeps/i386/fpu/e_log.S: Likewise.
23871         * sysdeps/i386/fpu/e_log10.S: Likewise.
23872         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23873         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23874         * sysdeps/i386/fpu/e_log2.S: Likewise.
23875         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23876         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23877         * sysdeps/i386/fpu/e_logf.S: Likewise.
23878         * sysdeps/i386/fpu/e_logl.S: Likewise.
23879         * sysdeps/i386/fpu/e_pow.S: Likewise.
23880         * sysdeps/i386/fpu/e_powf.S: Likewise.
23881         * sysdeps/i386/fpu/e_powl.S: Likewise.
23882         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23883         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23884         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23885         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23886         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23887         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23888         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23889         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23890         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23891         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23892         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23893         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23894         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23895         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23896         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23897         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23898         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23899         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23900         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23901         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23902         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23903         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23904         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23905         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23906         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23907         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23908         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23909         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23910         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23911         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23912         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23913         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23914         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23915         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23916         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23917         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23918         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23919         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23920         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23921         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23922         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23923         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23924         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23925         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23926         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23927         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23928         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23929         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23930         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23931         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23932         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23933         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23934         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23935         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23936         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23937         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23938         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23939         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23940         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23941         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23942         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23943         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23944         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23945         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23946         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23947         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23948         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23949         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23950         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23951         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23952         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23953         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23954         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23955         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23956         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23957         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23958         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23959         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23960         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23961         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23962         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23963         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23964         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23965         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23966         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23967         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23968         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23969         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23970         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23971         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23972         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23973         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23974         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23975         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23976         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23977         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23978         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23979         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23980         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23981         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23982         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23983         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23984         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23985         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23986         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23987         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23988         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23989         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23990         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23991         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23992         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23993         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23994         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23995         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23996         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23997         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23998         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23999         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24000         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24001         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24002         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24003         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24004         (__isnanf): Likewise.
24005         (__isinf_ns): Likewise.
24006         (__isinf_nsf): Likewise.
24007         (__finite): Likewise.
24008         (__finitef): Likewise.
24009         (__ieee754_sqrt): Define as macro.
24010         (__ieee754_sqrtf): Define as macro.
24011         (__ieee754_sqrtl): Define as macro.
24012         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24013         inlined copy.
24014         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24015         __FINITE_MATH_ONLY__ consistent.
24016         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24017
24018 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24019
24020         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24021         of rawmemchr.
24022
24023         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24024
24025 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24026
24027         * po/ja.po: Update from translation team.
24028
24029 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24030
24031         * locale/programs/locarchive.c (prepare_address_space): New function.
24032         (create_archive, enlarge_archive, open_archive): Use it.
24033
24034         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24035         inside [SHARED], where it is used.
24036
24037         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24038
24039         * nss/getent.c (netgroup_keys): Remove unused variable.
24040         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24041
24042 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24043
24044         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24045         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24046         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24047         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24048         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24049         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24050         * math/Makefile (libm-calls): Add s_isinf_ns.
24051         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24052         * math/multc3.c: Likewise.
24053         * math/s_casin.c: Likewise.
24054         * math/s_casinf.c: Likewise.
24055         * math/s_casinl.c: Likewise.
24056         * math/s_ccos.c: Likewise.
24057         * math/s_ccosf.c: Likewise.
24058         * math/s_ccosl.c: Likewise.
24059         * math/s_ctan.c: Likewise.
24060         * math/s_ctanf.c: Likewise.
24061         * math/s_ctanh.c: Likewise.
24062         * math/s_ctanhf.c: Likewise.
24063         * math/s_ctanhl.c: Likewise.
24064         * math/s_ctanl.c: Likewise.
24065         * math/w_fmod.c: Likewise.
24066         * math/w_fmodf.c: Likewise.
24067         * math/w_fmodl.c: Likewise.
24068         * math/w_remainder.c: Likewise.
24069         * math/w_remainderf.c: Likewise.
24070         * math/w_remainderl.c: Likewise.
24071         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24072         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24073         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24074         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24075         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24076         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24077         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24078         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24079
24080         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24081         of the number.
24082         * stdio-common/printf_fphex.c: Likewise.
24083         * stdio-common/printf_size.c: Likewise.
24084
24085         * math/e_exp10.c: Include math_private.h using <...> not "...".
24086         * math/e_exp10f.c: Likewise.
24087         * math/e_exp10l.c: Likewise.
24088         * math/e_exp2l.c: Likewise.
24089         * math/e_j0l.c: Likewise.
24090         * math/e_j1l.c: Likewise.
24091         * math/e_jnl.c: Likewise.
24092         * math/e_lgammal_r.c: Likewise.
24093         * math/e_rem_pio2l.c: Likewise.
24094         * math/e_scalb.c: Likewise.
24095         * math/e_scalbf.c: Likewise.
24096         * math/e_scalbl.c: Likewise.
24097         * math/k_cosl.c: Likewise.
24098         * math/k_sinl.c: Likewise.
24099         * math/k_tanl.c: Likewise.
24100         * math/s_cacoshf.c: Likewise.
24101         * math/s_catan.c: Likewise.
24102         * math/s_catanf.c: Likewise.
24103         * math/s_catanh.c: Likewise.
24104         * math/s_catanhf.c: Likewise.
24105         * math/s_catanhl.c: Likewise.
24106         * math/s_catanl.c: Likewise.
24107         * math/s_ccosh.c: Likewise.
24108         * math/s_ccoshf.c: Likewise.
24109         * math/s_ccoshl.c: Likewise.
24110         * math/s_cexp.c: Likewise.
24111         * math/s_cexpf.c: Likewise.
24112         * math/s_cexpl.c: Likewise.
24113         * math/s_clog.c: Likewise.
24114         * math/s_clog10.c: Likewise.
24115         * math/s_clog10f.c: Likewise.
24116         * math/s_clog10l.c: Likewise.
24117         * math/s_clogf.c: Likewise.
24118         * math/s_clogl.c: Likewise.
24119         * math/s_csin.c: Likewise.
24120         * math/s_csinf.c: Likewise.
24121         * math/s_csinh.c: Likewise.
24122         * math/s_csinhf.c: Likewise.
24123         * math/s_csinhl.c: Likewise.
24124         * math/s_csinl.c: Likewise.
24125         * math/s_csqrt.c: Likewise.
24126         * math/s_csqrtf.c: Likewise.
24127         * math/s_csqrtl.c: Likewise.
24128         * math/s_ctan.c: Likewise.
24129         * math/s_ctanf.c: Likewise.
24130         * math/s_ctanh.c: Likewise.
24131         * math/s_ctanhf.c: Likewise.
24132         * math/s_ctanhl.c: Likewise.
24133         * math/s_ctanl.c: Likewise.
24134         * math/s_ldexp.c: Likewise.
24135         * math/s_ldexpf.c: Likewise.
24136         * math/s_ldexpl.c: Likewise.
24137         * math/s_significand.c: Likewise.
24138         * math/s_significandf.c: Likewise.
24139         * math/s_significandl.c: Likewise.
24140         * math/w_acos.c: Likewise.
24141         * math/w_acosf.c: Likewise.
24142         * math/w_acosh.c: Likewise.
24143         * math/w_acoshf.c: Likewise.
24144         * math/w_acoshl.c: Likewise.
24145         * math/w_acosl.c: Likewise.
24146         * math/w_asin.c: Likewise.
24147         * math/w_asinf.c: Likewise.
24148         * math/w_asinl.c: Likewise.
24149         * math/w_atan2.c: Likewise.
24150         * math/w_atan2f.c: Likewise.
24151         * math/w_atan2l.c: Likewise.
24152         * math/w_atanh.c: Likewise.
24153         * math/w_atanhf.c: Likewise.
24154         * math/w_atanhl.c: Likewise.
24155         * math/w_cosh.c: Likewise.
24156         * math/w_coshf.c: Likewise.
24157         * math/w_coshl.c: Likewise.
24158         * math/w_dremf.c: Likewise.
24159         * math/w_exp10.c: Likewise.
24160         * math/w_exp10f.c: Likewise.
24161         * math/w_exp10l.c: Likewise.
24162         * math/w_exp2.c: Likewise.
24163         * math/w_exp2f.c: Likewise.
24164         * math/w_fmod.c: Likewise.
24165         * math/w_fmodf.c: Likewise.
24166         * math/w_fmodl.c: Likewise.
24167         * math/w_hypot.c: Likewise.
24168         * math/w_hypotf.c: Likewise.
24169         * math/w_hypotl.c: Likewise.
24170         * math/w_j0.c: Likewise.
24171         * math/w_j0f.c: Likewise.
24172         * math/w_j0l.c: Likewise.
24173         * math/w_j1.c: Likewise.
24174         * math/w_j1f.c: Likewise.
24175         * math/w_j1l.c: Likewise.
24176         * math/w_jn.c: Likewise.
24177         * math/w_jnf.c: Likewise.
24178         * math/w_jnl.c: Likewise.
24179         * math/w_lgamma.c: Likewise.
24180         * math/w_lgamma_r.c: Likewise.
24181         * math/w_lgammaf.c: Likewise.
24182         * math/w_lgammaf_r.c: Likewise.
24183         * math/w_lgammal.c: Likewise.
24184         * math/w_lgammal_r.c: Likewise.
24185         * math/w_log.c: Likewise.
24186         * math/w_log10.c: Likewise.
24187         * math/w_log10f.c: Likewise.
24188         * math/w_log10l.c: Likewise.
24189         * math/w_log2.c: Likewise.
24190         * math/w_log2f.c: Likewise.
24191         * math/w_log2l.c: Likewise.
24192         * math/w_logf.c: Likewise.
24193         * math/w_logl.c: Likewise.
24194         * math/w_pow.c: Likewise.
24195         * math/w_powf.c: Likewise.
24196         * math/w_powl.c: Likewise.
24197         * math/w_remainder.c: Likewise.
24198         * math/w_remainderf.c: Likewise.
24199         * math/w_remainderl.c: Likewise.
24200         * math/w_scalb.c: Likewise.
24201         * math/w_scalbf.c: Likewise.
24202         * math/w_scalbl.c: Likewise.
24203         * math/w_sinh.c: Likewise.
24204         * math/w_sinhf.c: Likewise.
24205         * math/w_sinhl.c: Likewise.
24206         * math/w_sqrt.c: Likewise.
24207         * math/w_sqrtf.c: Likewise.
24208         * math/w_sqrtl.c: Likewise.
24209         * math/w_tgamma.c: Likewise.
24210         * math/w_tgammaf.c: Likewise.
24211         * math/w_tgammal.c: Likewise.
24212
24213         * po/ja.po: Update from translation team.
24214
24215 2011-09-29  Andreas Jaeger  <aj@suse.de>
24216
24217         [BZ #13179]
24218         * sunrpc/netname.c (netname2host): Fix logic.
24219
24220         [BZ #6779]
24221         [BZ #6783]
24222         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24223         correctly.
24224         * math/w_remainder.c (__remainder): Likewise.
24225         * math/w_remainderf.c (__remainderf): Likewise.
24226         * math/libm-test.inc (remainder_test): Add test cases.
24227
24228 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24229
24230         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24231         sdiv_qrnnd.
24232
24233 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24234
24235         * string/test-memcmp.c: Avoid unncessary #defines.
24236         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24237
24238 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24239
24240         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24241         Use new sse2 version for core i3 - i7 as it's faster
24242         than sse42 version.
24243         (bit_Prefer_PMINUB_for_stringop): New.
24244         * sysdeps/x86_64/rawmemchr.S: Update.
24245         Replace with faster SSE2 version.
24246         * sysdeps/x86_64/memrchr.S: New file.
24247         * sysdeps/x86_64/memchr.S: Update.
24248         Replace with faster SSE2 version.
24249
24250 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24251
24252         * elf/dl-load.c (lose): Add cast to avoid warning.
24253
24254 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24255
24256         * po/ca.po: Update from translation team.
24257
24258         * inet/getnetgrent_r.c: Hook up nscd.
24259         * nscd/Makefile (routines): Add nscd_netgroup.
24260         (nscd-modules): Add netgroupcache.
24261         (CFLAGS-netgroupcache.c): Define.
24262         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24263         (cache_search): Add const to second parameter.
24264         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24265         INNETGR.
24266         (dbs): Add netgrdb entry.
24267         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24268         (verify_persistent_db): Handle netgrdb.
24269         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24270         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24271         GETFDNETGR.
24272         (netgroup_response_header): Define.
24273         (innetgroup_response_header): Define.
24274         (datahead): Add netgroup_response_header and innetgroup_response_header
24275         elements.
24276         * nscd/nscd.conf: Add entries for netgroup cache.
24277         * nscd/nscd.h (dbtype): Add netgrdb.
24278         (_PATH_NSCD_NETGROUP_DB): Define.
24279         (netgroup_iov_disabled): Declare.
24280         (xmalloc, xcalloc, xrealloc): Move declarations here.
24281         (cache_search): Adjust prototype.
24282         Add netgroup-related prototypes.
24283         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24284         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24285         (__nscd_innetgr): Declare.
24286         * nscd/selinux.c (perms): Use access_vector_t as element type and
24287         add netgroup-related initializers.
24288         * nscd/netgroupcache.c: New file.
24289         * nscd/nscd_netgroup.c: New file.
24290         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24291         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24292         For four parameters use innetgr.
24293         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24294         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24295         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24296         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24297
24298         * nscd/connections.c (register_traced_file): Don't register file
24299         for disabled databases.
24300
24301 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24302
24303         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24304
24305         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24306         from tree and freeing node.
24307
24308 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24309
24310         * nss/nsswitch.c (__nss_database_lookup): Handle
24311         nss_parse_service_list out of memory case.
24312
24313 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24314
24315         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24316         out of memory case.
24317
24318 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24319
24320         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24321         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24322         pass it down.
24323         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24324         elf_machine_rela, elf_machine_lazy_rel.
24325         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24326         (ELF_DYNAMIC_DO_REL): Likewise.
24327         (ELF_DYNAMIC_DO_RELA): Likewise.
24328         (ELF_DYNAMIC_RELOCATE): Likewise.
24329         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24330         to ELF_DYNAMIC_DO_REL.
24331         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24332         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24333         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24334         elf_machine_rela.
24335         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24336         skip_ifunc, don't call ifunc function if non-zero.
24337         (elf_machine_rela): Likewise.
24338         (elf_machine_lazy_rel): Likewise.
24339         (elf_machine_lazy_rela): Likewise.
24340         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24341         (elf_machine_lazy_rel): Likewise.
24342         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24343         Likewise.
24344         (elf_machine_lazy_rel): Likewise.
24345         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24346         Likewise.
24347         (elf_machine_lazy_rel): Likewise.
24348         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24349         (elf_machine_lazy_rel): Likewise.
24350         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24351         (elf_machine_lazy_rel): Likewise.
24352         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24353         (elf_machine_lazy_rel): Likewise.
24354         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24355         (elf_machine_lazy_rel): Likewise.
24356         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24357         (elf_machine_lazy_rel): Likewise.
24358         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24359         (elf_machine_lazy_rel): Likewise.
24360
24361 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24362
24363         * nss/nss_files/files-init.c (_nss_files_init): Use static
24364         initialization for all the *_traced_file variables.
24365
24366 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24367
24368         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24369
24370 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24371
24372         [BZ #13226]
24373         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24374
24375 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24376
24377         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24378         Reread the line before reparsing it.
24379
24380 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24381
24382         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24383
24384 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24385             Maxim Kuvyrkov  <maxim@codesourcery.com>
24386             Joseph Myers  <joseph@codesourcery.com>
24387
24388         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24389         if needed for __stack_chk_guard.
24390
24391 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24392
24393         * sysdeps/posix/spawni.c (script_execute): Always define it.
24394         It will be optimized away if unused.
24395         (maybe_script_execute): New function.
24396         (__spawni): Call it.
24397
24398         * Makerules: Don't include tls.make.
24399         (config-tls): Always set to thread.
24400         * tls.make.c: File removed.
24401
24402 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24403
24404         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24405         * config.make.in (CPPFLAGS-config): New substituted variable.
24406
24407 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24408
24409         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24410
24411         [BZ #13192]
24412         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24413         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24414
24415 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24416
24417         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24418         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24419         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24420         (CALL_FAIL): Likewise.
24421         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24422         (CALL_FAIL): Macro removed.
24423         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24424
24425 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24426
24427         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24428         for __FINITE_MATH_ONLY__ == 1.
24429
24430 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24431
24432         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24433         __ieee754_sqrt instead of sqrt.
24434         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24435         __ieee754_sqrtf instead of sqrtf.
24436         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24437         __floorf instead of floorf.
24438         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24439         __floorf, __truncf instead of floorf, truncf.
24440
24441 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24442
24443         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24444
24445         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24446         __extern_always_inline.
24447         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24448         32-bit.
24449
24450 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24451
24452         * elf/rtld.c (dl_main): Also relocate in dependency order when
24453         doing symbol dependency testing.
24454
24455 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24456
24457         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24458         Always define `refsym'.
24459
24460 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24461
24462         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24463         (__FD_ELT): Renamed from __FDELT.
24464         * misc/bits/select2.h (__FD_ELT): Likewise.
24465         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24466         __FD_MASK instead of __FDELT, __FDMASK.
24467         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24468         Likewise.
24469         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24470         Likewise.
24471
24472         * elf/Makefile (gen-ldd): Fix pattern.
24473
24474         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24475         (init_tls): Likewise.
24476
24477 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24478
24479         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24480
24481 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24482
24483         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24484         `struct cmsghdr *' instead of `void *'.
24485         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24486         Likewise.
24487
24488 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24489
24490         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24491         if non-absolute.
24492         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24493         ldd_rewrite_script.
24494
24495 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24496
24497         * configure.in: Remove --with-tls option.
24498         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24499         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24500         out in case it is missing.
24501         * sysdeps/ia64/elf/configure.in: Likewise.
24502         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24503         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24504         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24505         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24506         * sysdeps/sh/elf/configure.in: Likewise.
24507         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24508         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24509         * sysdeps/x86_64/elf/configure.in: Likewise.
24510         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24511         * sysdeps/mach/hurd/tls.h: Likewise.
24512
24513         [BZ #13067]
24514         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24515
24516         [BZ #13090]
24517         * configure.in: Fix use of AC_INIT.
24518
24519         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24520
24521 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24522
24523         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24524         __set_errno.
24525         * malloc/hooks.c: Likewise.
24526
24527         [BZ #11929]
24528         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24529         variables statically.
24530         (narenas): Initialize.
24531         (list_lock): Initialize.
24532         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24533         initializtion of main_arena and list_lock.  Small cleanups.
24534         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24535         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24536         Add initializers to main_arena and mp_.
24537         (malloc_state): Remove pagesize member.  Change all users to use
24538         GLRO(dl_pagesize).
24539
24540         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24541         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24542         is always initialized.
24543
24544         * malloc/malloc.c: Removed unused configurations and dead code.
24545         * malloc/arena.c: Likewise.
24546         * malloc/hooks.c: Likewise.
24547         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24548
24549         * include/tls.h: Removed.  USE___THREAD must always be defined.
24550         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24551         * elf/dl-libc.c: Likewise.
24552         * elf/dl-tsd.c: Likewise.
24553         * include/errno.h: Likewise.
24554         * include/netdb.h: Likewise.
24555         * include/resolv.h: Likewise.
24556         * inet/herrno-loc.c: Likewise.
24557         * inet/herrno.c: Likewise.
24558         * malloc/arena.c: Likewise.
24559         * malloc/hooks.c: Likewise.
24560         * malloc/malloc.c: Likewise.
24561         * resolv/res-state.c: Likewise.
24562         * resolv/res_libc.c: Likewise.
24563         * sysdeps/i386/dl-machine.h: Likewise.
24564         * sysdeps/ia64/dl-machine.h: Likewise.
24565         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24566         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24567         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24568         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24569         * sysdeps/sh/dl-machine.h: Likewise.
24570         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24571         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24572         * sysdeps/unix/i386/sysdep.S: Likewise.
24573         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24574         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24575         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24576         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24577         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24578         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24579         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24580         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24581         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24582         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24583         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24584         * sysdeps/x86_64/dl-machine.h: Likewise.
24585         * tls.make.c: Likewise.
24586
24587         * configure.in: Remove --with-__thread option.  Make tests for
24588         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24589         tls_model attribute fail if no support is available.  Remove
24590         USE_IN_LIBIO.
24591         * Makeconfig: Adjust for dropped configure option.  All features are
24592         now mandatory.
24593         * Makerules: Likewise.
24594         * Versions.def: Likewise.
24595         * argp/argp-fmtstream.c: Likewise.
24596         * argp/argp-fmtstream.h: Likewise.
24597         * argp/argp-help.c: Likewise.
24598         * assert/assert.c: Likewise.
24599         * config.h.in: Likewise.
24600         * config.make.in: Likewise.
24601         * configure: Likewise.
24602         * configure.in: Likewise.
24603         * csu/Versions: Likewise.
24604         * csu/init.c: Likewise.
24605         * elf/tst-audit2.c: Likewise.
24606         * elf/tst-tls10.c: Likewise.
24607         * elf/tst-tls10.h: Likewise.
24608         * elf/tst-tls11.c: Likewise.
24609         * elf/tst-tls12.c: Likewise.
24610         * elf/tst-tls14.c: Likewise.
24611         * elf/tst-tlsmod11.c: Likewise.
24612         * elf/tst-tlsmod12.c: Likewise.
24613         * elf/tst-tlsmod13.c: Likewise.
24614         * elf/tst-tlsmod13a.c: Likewise.
24615         * elf/tst-tlsmod14a.c: Likewise.
24616         * elf/tst-tlsmod15b.c: Likewise.
24617         * elf/tst-tlsmod16a.c: Likewise.
24618         * elf/tst-tlsmod16b.c: Likewise.
24619         * elf/tst-tlsmod7.c: Likewise.
24620         * elf/tst-tlsmod8.c: Likewise.
24621         * elf/tst-tlsmod9.c: Likewise.
24622         * gmon/gmon.c: Likewise.
24623         * grp/fgetgrent_r.c: Likewise.
24624         * grp/putgrent.c: Likewise.
24625         * hurd/fopenport.c: Likewise.
24626         * include/libc-symbols.h: Likewise.
24627         * include/tls.h: Likewise.
24628         * intl/gettextP.h: Likewise.
24629         * intl/loadinfo.h: Likewise.
24630         * locale/global-locale.c: Likewise.
24631         * locale/localeinfo.h: Likewise.
24632         * mach/devstream.c: Likewise.
24633         * malloc/arena.c: Likewise.
24634         * malloc/set-freeres.c: Likewise.
24635         * misc/err.c: Likewise.
24636         * misc/getttyent.c: Likewise.
24637         * misc/mntent_r.c: Likewise.
24638         * posix/getopt.c: Likewise.
24639         * posix/wordexp.c: Likewise.
24640         * pwd/fgetpwent_r.c: Likewise.
24641         * resolv/Versions: Likewise.
24642         * resolv/res_hconf.c: Likewise.
24643         * shadow/fgetspent_r.c: Likewise.
24644         * shadow/putspent.c: Likewise.
24645         * stdio-common/printf_fphex.c: Likewise.
24646         * stdio-common/tmpfile.c: Likewise.
24647         * stdlib/abort.c: Likewise.
24648         * stdlib/fmtmsg.c: Likewise.
24649         * sunrpc/auth_unix.c: Likewise.
24650         * sunrpc/clnt_perr.c: Likewise.
24651         * sunrpc/clnt_tcp.c: Likewise.
24652         * sunrpc/clnt_udp.c: Likewise.
24653         * sunrpc/clnt_unix.c: Likewise.
24654         * sunrpc/openchild.c: Likewise.
24655         * sunrpc/svc_simple.c: Likewise.
24656         * sunrpc/svc_tcp.c: Likewise.
24657         * sunrpc/svc_udp.c: Likewise.
24658         * sunrpc/svc_unix.c: Likewise.
24659         * sunrpc/xdr.c: Likewise.
24660         * sunrpc/xdr_array.c: Likewise.
24661         * sunrpc/xdr_rec.c: Likewise.
24662         * sunrpc/xdr_ref.c: Likewise.
24663         * sunrpc/xdr_stdio.c: Likewise.
24664
24665 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24666
24667         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24668
24669 2011-07-03  Andreas Jaeger  <aj@suse.de>
24670
24671         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24672         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24673         regenerate with gen-libm-tests.pl.
24674
24675 2010-05-12  Petr Baudis  <pasky@suse.cz>
24676
24677         [BZ #11589]
24678         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24679         around j0() zero points by switching to j1().
24680         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24681         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24682         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24683         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24684
24685 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24686
24687         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24688         instead of 0.
24689         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24690         instead of 0.
24691         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24692         Patch in part by Pavel Roskin <proski@gnu.org>.
24693
24694         [BZ #13138]
24695         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24696         realloc.
24697         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24698         Free memory block if necessary.
24699
24700         [BZ #12847]
24701         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24702         be NULL.  Don't lock in this case.
24703
24704 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24705
24706         * elf/elf.h (ELFOSABI_GNU): New macro.
24707         (ELFOSABI_LINUX): Define to that.
24708
24709 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24710
24711         * string/strncat.c (strncat): Undef the symbol in case it has been
24712         defined in bits/string.h.
24713
24714 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24715
24716         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24717
24718         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24719         link map.
24720
24721 2011-08-17  Andreas Jaeger  <aj@suse.de>
24722
24723         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24724
24725 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24726             Ian Lance Taylor  <iant@google.com>
24727
24728         * math/libm-test.inc (lround_test): New testcase.
24729         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24730
24731 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24732
24733         * Makefile: Remove support for automatic cvs check-ins.
24734         * Makerules: Likewise.
24735         * config.make.in: Likewise.
24736         * configure.in: Likewise.
24737         * intl/Makefile: Likewise.
24738         * locale/Makefile: Likewise.
24739         * po/Makefile: Likewise.
24740         * posix/Makefile: Likewise.
24741         * sysdeps/gnu/Makefile: Likewise.
24742         * sysdeps/mach/hurd/Makefile: Likewise.
24743         * sysdeps/sparc/sparc32/Makefile: Likewise.
24744
24745         [BZ #13118]
24746         * posix/Makefile (bug-regex32-ENV): Define.
24747         Patch by John Stanley <jpsinthemix@verizon.net>.
24748
24749         * misc/Makefile (headers): Add bits/select2.h.
24750         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24751         * misc/bits/select2.h: New file.
24752         * include/bits/select2.h: New file.
24753         * debug/Makefile (routines): Add fdelt_chk.
24754         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24755         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24756         FD_ISSET.
24757         * debug/fdelt_chk.c: New file.
24758
24759         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24760         * wcsmbs/test-wmemcmp.c: Likewise.
24761         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24762         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24763
24764 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24765
24766         * string/Makefile (strop-tests): Add memcmp.
24767         * string/test-wmemcmp.c: New file.
24768         * string/test-memcmp.c: Add wmemcmp support.
24769
24770 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24771
24772         [BZ #13153]
24773         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24774         2011-07-19 change.
24775
24776         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24777         garbage value in a __mach_port_mod_refs call in the cases of the
24778         task-self and thread-self ports.
24779
24780 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24781
24782         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24783
24784 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24785
24786         * elf/dl-load.c (lose): Check for non-null L.
24787
24788 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24789
24790         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24791
24792         * elf/dl-libc.c (dlerror_run): Pass back error code from
24793         dl_catch_error.
24794
24795         [BZ #13123]
24796         * elf/dl-load.c (lose): Free l_origin if it is valid.
24797
24798         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24799         names.
24800         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24801         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24802         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24803         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24804         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24805         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24806
24807 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24808
24809         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24810         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24811         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24812         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24813         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24814         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24815         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24816         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24817         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24818         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24819
24820 2011-08-15  Alan Modra  <amodra@gmail.com>
24821
24822         [BZ #13092]
24823         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24824         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24825         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24826         ppc_mcount to static-only-routines.
24827         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24828         __mcount_internal.
24829         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24830         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24831
24832 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24833
24834         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24835         for finite and infinity parameters.
24836
24837 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24838
24839         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24840         and add nop instructions for throughput optimization.
24841         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24842
24843 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24844
24845         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24846         aligned copy for power7 with vector-scalar instructions.
24847         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24848
24849 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24850
24851         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24852         AVX check.
24853
24854 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24855
24856         [BZ #13144]
24857         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24858         last change.
24859
24860 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24861
24862         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24863         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24864         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24865         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24866         clock_gettime.
24867
24868 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24869
24870         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24871         Forgot to demangle the pointer.
24872
24873         * sysdeps/i386/sysdep.h: Define atom_text_section.
24874         * sysdeps/x86_64/sysdep.h: Likewise.
24875         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24876         section with atom_text_section.
24877         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24878         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24879         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24880         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24881         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24882
24883         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24884         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24885         already be defined.  Change to take two parameters and don't assign
24886         result to variable.  Adjust all users.
24887         Define INTERNAL_GETTIME if not already defined.
24888         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24889         call.
24890         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24891         HAVE_CLOCK_GETTIME_VSYSCALL.
24892         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24893
24894         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24895         gettimeofday vsyscall, just use time.
24896
24897 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24898
24899         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24900         <errno.h>.
24901
24902 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24903
24904         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24905         syscall on x86-64.
24906         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24907         syscall.
24908         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24909         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24910         syscall if possible.
24911
24912 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24913
24914         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24915         e_ident.  Don't pass to find_mapsXX.
24916         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24917
24918 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24919
24920         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24921         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24922         * sysdeps/x86_64/multiarch/strchr.S: Update.
24923         Check bit_slow_BSF bit.
24924         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24925         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24926         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24927
24928 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24929
24930         [BZ #13134]
24931         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24932         before glibc 2.15.
24933         (tryshell): Define.
24934         (__spawni): Change last parameter to be flag.  Test
24935         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24936         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24937         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24938         * posix/spawni.c: Likewise.
24939         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24940         * posix/spawnp.c: Likewise.  Change normal version to use
24941         SPAWN_XFLAGS_USE_PATH.
24942         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24943         SPAWN_XFLAGS_TRY_SHELL.
24944
24945         [BZ #13150]
24946         * posix/glob.h: Remove gcc 1.x support.
24947
24948         [BZ #13068]
24949         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24950
24951 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24952
24953         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24954         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24955         strrchr-sse2-bsf
24956         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24957         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24958         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24959         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24960         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24961         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24962
24963 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24964
24965         * sysdeps/x86_64/wcscmp.S: New file.
24966
24967         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24968         wcscmp-c wcscmp-sse2
24969         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24970         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24971         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24972         * wcsmbs/wcscmp.c: Allow renaming.
24973
24974 2011-09-05  David S. Miller  <davem@davemloft.net>
24975
24976         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24977         stack slot, rather than the struct return pointer slot.
24978         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24979         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24981         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24982
24983 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24984
24985         * po/ja.po: Update from translation team.
24986
24987         [BZ #13144]
24988         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24989         kernel in 64-bit binaries.
24990
24991 2011-09-01  David S. Miller  <davem@davemloft.net>
24992
24993         * elf/elf.h (HWCAP_SPARC_*): Move to..
24994         * sysdeps/sparc/sysdep.h: this new file and add new values.
24995         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24996         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24997         _DL_HWCAP_COUNT to 24.
24998         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24999         entries.
25000         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25001         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25002         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25003         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25004         instead of magic constants.
25005         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25006
25007 2011-08-31  David S. Miller  <davem@davemloft.net>
25008
25009         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25010         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25011         Reimplement to do errno handling inline.
25012         (SYSCALL_ERROR_HANDLER): New macro.
25013         (__SYSCALL_STRING): Do not do errno handling in asm.
25014         (__CLONE_SYSCALL_STRING): Delete.
25015         (__INTERNAL_SYSCALL_STRING): Delete.
25016         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25017         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25018         (PSEUDO): Reimplement to do errno handling inline.
25019         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25020         (SYSCALL_ERROR_HANDLER): New macro.
25021         (__SYSCALL_STRING): Do not do errno handling in asm.
25022         (__CLONE_SYSCALL_STRING): Delete.
25023         (__INTERNAL_SYSCALL_STRING): Delete.
25024         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25025         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25026         i386.
25027         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25028         (inline_syscall*): Add 'err' argument.
25029         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25030         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25031         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25032         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25033
25034         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25035         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25036
25037 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25038
25039         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25040
25041 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25042
25043         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25044         directive.
25045
25046 2011-08-24  David S. Miller  <davem@davemloft.net>
25047
25048         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25049
25050 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25051
25052         * elf/Makefile: Add rules to build and run unload8 test.
25053         * elf/unload8.c: New file.
25054         * elf/unload8mod1.c: New file.
25055         * elf/unload8mod1x.c: New file.
25056         * elf/unload8mod2.c: New file.
25057         * elf/unload8mod3.c: New file.
25058
25059         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25060         it wasn't used.
25061
25062 2011-08-23  David S. Miller  <davem@davemloft.net>
25063
25064         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25065         subtract stack bias.
25066         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25067         %sp not %fp in calculations.
25068         (_JMPBUF_UNWINDS_ADJ): Likewise.
25069
25070         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25071         (aio_suspend): Call it to force an exception region around the
25072         AIO_MISC_WAIT() invocation.
25073
25074 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25075
25076         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25077         backslash.
25078
25079 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25080
25081         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25082         protection macro.
25083         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25084         and <dl-machine.h>.
25085         (Elf64_FuncDesc): Remove.
25086
25087 2011-08-22  David S. Miller  <davem@davemloft.net>
25088
25089         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25090         sigaltstack check, add missing cfi directives.
25091         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25092         missing cfi directives, and sigaltstack handling.
25093
25094 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25095
25096         [BZ #11724]
25097         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25098         object is seen twice.
25099         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25100
25101         * elf/Makefile (distribute): Add tst-initorder2.c.
25102         (tests): Add tst-initorder2.
25103         (modules-names): Add tst-initorder2a tst-initorder2b
25104         tst-initorder2c tst-initorder2d.  Add rules to build them.
25105         ($(objpfx)tst-initorder2.out): New rule.
25106         * elf/tst-initorder2.c: New file.
25107         * elf/tst-initorder2.exp: New file.
25108
25109 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25110
25111         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25112
25113         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25114         dependencies back to end of function.
25115
25116         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25117         $(elfobjdir)/ld.so.
25118
25119 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25120
25121         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25122         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25123         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25124         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25125         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25126         of __vdso_gettimeofday.
25127         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25128         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25129         attribute_hidden.
25130         (_libc_vdso_platform_setup): Remove initialization of
25131         __vdso_gettimeofday and __vdso_time.
25132
25133 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25134
25135         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25136         and fgetc_unlocked.
25137         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25138         getc_unlocked.
25139
25140         * elf/dl-open.c (add_to_global): Report additions to the global scope
25141         for LD_DEBUG=scopes.
25142         (dl_open_worker): Also print scope of newly loaded dependencies.
25143         (_dl_show_scope): Indicate if there is no scope.
25144
25145         [BZ #13114]
25146         * stdio-common/Makefile (tests): Add bug24.
25147         * stdio-common/bug24.c: New file.
25148
25149 2011-08-19  Andreas Jaeger  <aj@suse.de>
25150
25151         [BZ #13114]
25152         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25153         non-existant file when using close-on-exec mode.
25154
25155 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25156
25157         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25158         the very first instruction.
25159
25160         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25161         the CFI state in the end.
25162         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25163         inclusion of dl-trampoline.h.
25164         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25165
25166 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25167
25168         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25169         expectations for long double.
25170
25171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25172         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25173
25174 2011-08-14  David S. Miller  <davem@davemloft.net>
25175
25176         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25177         artificual limit depends upon the system page size.
25178
25179 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25180
25181         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25182         * resolv/Makefile: Define CFLAGS-libresolv.
25183
25184 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25185
25186         * nss/makedb.c (compute_tables): Make variables used in nested
25187         function static.
25188
25189 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25190
25191         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25192         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25193         if buffer was too small.
25194
25195         * elf/pldd.c (main): Attach to all threads in the process.
25196         Rewrite /proc handling to use *at functions.
25197
25198 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25199
25200         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25201         specifies first scope to show.
25202         (dl_open_worker): Update callers.  Move printing scope of new
25203         object to before the relocation.
25204         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25205         * sysdeps/generic/ldsodefs.h: Update declaration.
25206
25207         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25208         string for the scope number.
25209
25210 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25211
25212         * nscd/servicescache.c (cache_addserv): Make sure written is always
25213         initialized.
25214
25215 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25216
25217         * sysdeps/i386/i486/bits/atomic.h
25218         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25219         statement expression, so as to suppress "set but not used" warning.
25220         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25221
25222         * string/strncat.c (STRNCAT): Use prototype definition.
25223
25224         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25225         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25226         -Iprograms here.
25227         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25228         (localedef-modules): Add localedef.
25229         (locale-modules): Add locale.
25230
25231         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25232         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25233         to avoid a warning.
25234
25235 2011-08-14  David S. Miller  <davem@davemloft.net>
25236
25237         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25238         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25239
25240 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25241
25242         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25243         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25244         * elf/rtld.c (dl_main): Set l_name of vDSO.
25245         Call _dl_show_scope when DL_DEBUG_SCOPES.
25246         (process_dl_debug): Recognize scopes flag and also set it for all.
25247         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25248         Declare _dl_show_scope.
25249
25250         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25251         (do_dlopen): Pass caller_dlopen to dl_open.
25252         (__libc_dlopen_mode): Initialize caller_dlopen.
25253
25254         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25255         of libc.  Make tolower call locale-independent.  Optimize a bit by
25256         using isdigit instead of isalnum.
25257         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25258
25259 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25260
25261         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25262         was a dependency or dynamically loaded.
25263
25264 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25265
25266         * intl/l10nflist.c: Allow architecture-specific pop function.
25267         * sysdeps/x86_64/l10nflist.c: New file.
25268
25269         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25270         classification.
25271
25272 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25273
25274         * include/dirent.h: Add libc_hidden_proto for scandirat and
25275         scandirat64.  Don't declare __scandirat64.
25276         * dirent/scandirat.c: Add libc_hidden_def.
25277         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25278         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25279
25280 2011-08-10  David S. Miller  <davem@davemloft.net>
25281
25282         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25283         enum.
25284         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25285         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25286         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25287
25288 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25289
25290         * Versions.def [libc]: Add GLIBC_2.15.
25291         * dirent/Makefile (routines): Add scandirat and scandirat64.
25292         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25293         GLIBC_2.15.
25294         * dirent/dirent.h: Declare scandirat and scandirat64.
25295         * dirent/scandirat.c: New file.
25296         * dirent/scandirat64.c: New file.
25297         * sysdeps/wordsize-64/scandirat.c: New file.
25298         * sysdeps/wordsize-64/scandirat64.c: New file.
25299         * dirent/opendir.c: Define opendirat.
25300         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25301         using scandirat.
25302         * dirent/scandir64.c: Adjust for scandir.c change.
25303         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25304         __scandirat64, and __scandir_cancel_handler.
25305         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25306         additional parameter and use openat instead of open (outside of ld.so).
25307         Add new __opendir as wrapper around __opendirat.
25308         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25309         here without requiring old scandirat implementation.
25310
25311 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25312
25313         * dirent/scandir.c (cancel_handler): Renamed to
25314         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25315         defined.  Adjust users.
25316         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25317         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25318
25319 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25320
25321         * string/test-string.h (IMPL): Use __STRING to expand name and then
25322         stringify it.
25323
25324         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25325         of cleanups.
25326
25327 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25328
25329         * string/Makefile: Update.
25330         (strop-tests): Append strncat.
25331         * string/test-wcscmp.c: New file.
25332         New comprehensive test for wcscmp.
25333         * string/test-strcmp.c: Update.
25334         (WIDE): New define.
25335
25336 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25337
25338         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25339         line.
25340
25341 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25342
25343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25344         encoding to ACE if AI_IDN.
25345
25346 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25347
25348         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25349         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25350
25351 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25352
25353         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25354         Fix overflow bug in strncat.
25355         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25356
25357         * string/test-strncat.c: Update.
25358         Add new tests for checking overflow bugs.
25359
25360 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25361
25362         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25363         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25364         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25365         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25366         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25367         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25368         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25369         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25370         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25371
25372         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25373         (USE_AS_STRCAT): Define.
25374         Add strcat and strncat support.
25375         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25376
25377 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25378
25379         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25380         __n bigger than INT_MAX+1.
25381         (__strncmp_g): Likewise.
25382
25383 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25384
25385         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25386         * libio/stido.h: Likewise.
25387
25388         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25389         (AF_NFC): Define.
25390         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25391         (AF_NFC): Define.
25392
25393         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25394         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25395         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25396         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25397         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25398
25399         [BZ #13021]
25400         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25401         installed.
25402
25403         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25404         typo.
25405         (_dl_x86_64_save_sse): Likewise.
25406
25407 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25408
25409         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25410         OSXSAVE.
25411         (_dl_x86_64_save_sse): Likewise.
25412
25413         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25414
25415         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25416
25417 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25418
25419         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25420         change.
25421         (_dl_x86_64_save_sse): Use correct AVX check.
25422
25423 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25424
25425         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25426         bug in strncpy/strncat.
25427         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25428
25429 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25430
25431         * string/tester.c (test_strcat): Add tests for different alignments
25432         of source and destination.
25433         (test_strncat): Likewise.
25434
25435 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25436
25437         [BZ #12852]
25438         * posix/glob.c (glob): Check passed in values before using them in
25439         expressions to avoid some overflows.
25440         (glob_in_dir): Likewise.
25441
25442         [BZ #13007]
25443         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25444         check for AVX enablement so that we don't crash with old kernels and
25445         new hardware.
25446         * elf/tst-audit4.c: Add same checks here.
25447         * elf/tst-audit6.c: Likewise.
25448
25449         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25450
25451 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25452
25453         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25454
25455 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25456
25457         * po/cs.po: Update from translation team.
25458         * po/bg.po: Likewise.
25459
25460 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25461
25462         * misc/sys/cdefs.h: Add support for const attribute.
25463         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25464         to gnu_dev_{major,minor,makedev} functions.
25465
25466 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25467
25468         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25469
25470 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25471
25472         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25473         strlen results.
25474
25475 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25476
25477         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25478         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25479         register in order to avoid conflicts with the soft frame pointer
25480         being held in r11 when necessary.
25481         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25482         (INTERNAL_VSYSCALL_NCS): Likewise.
25483
25484 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25485
25486         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25487         * elf/dl-fini.c (_dl_fini): Adjust caller.
25488         * elf/dl-close.c (_dl_close_worker): Likewise.
25489         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25490
25491 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25492
25493         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25494         "aux_cache->nlibs < 0".
25495
25496         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25497         in the reload-count case.
25498
25499 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25500
25501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25502         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25503         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25504         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25505         * sysdeps/x86_64/multiarch/strcat.S: New file.
25506         * sysdeps/x86_64/multiarch/strncat.S: New file.
25507         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25508         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25509         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25510         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25511         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25512         (USE_AS_STRCAT): Define.
25513         Add strcat and strncat support.
25514         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25515         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25516         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25517         * string/strncat.c: Update.
25518         (USE_AS_STRNCAT): Define.
25519         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25520         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25521         and i7.
25522         * sysdeps/x86_64/multiarch/init-arch.h
25523         (bit_Prefer_PMINUB_for_stringop): New.
25524         (index_Prefer_PMINUB_for_stringop): Likewise.
25525         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25526         bit_Prefer_PMINUB_for_stringop.
25527
25528 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25529
25530         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25531         buffer64.
25532         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25533         of casting of buffer.
25534         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25535         buffer32 and buffer64.
25536         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25537         writes instead of casting of buffer.
25538         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25539         buffer32.
25540         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25541         casting of buffer.
25542
25543 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25544
25545         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25546
25547 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25548
25549         * nscd/nscd.c (termination_handler): Don't do anything for a database
25550         if it has not yet been initialized.
25551
25552 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25553
25554         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25555
25556 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25557
25558         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25559
25560 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25561
25562         * po/nl.po: Update from translation team.
25563         * po/sv.po: Likewise.
25564
25565 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25566
25567         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25568         now disallowed by GCC.
25569
25570         * configure.in (use-default-link): Default to yes if a test -shared
25571         link meets our qualifications.
25572         * configure: Regenerated.
25573
25574         * config.make.in (output-format): New variable.
25575         * configure.in: Check for ld --print-output-format support.
25576         * configure: Regenerated.
25577         * Makerules ($(common-objpfx)format.lds)
25578         [$(output-format) != unknown]: Just use $(output-format),
25579         instead of the linker-script munging.
25580
25581 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25582
25583         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25584         of $(common-objpfx)shlib.lds.
25585         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25586
25587         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25588         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25589
25590         * configure.in (-z relro check): Adjust test code to add a large
25591         writable data section after it.
25592         * configure: Regenerated.
25593
25594 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25595
25596         * configure.in (-z relro check): Fix test code to make the variable
25597         truly const.
25598         * configure: Regenerated.
25599
25600 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25601
25602         * nscd/nscd.h (struct traced_file): Define.
25603         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25604         elements.  Add traced_files.
25605         (inotify_fd): Declare.
25606         (register_traced_file): Declare.
25607         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25608         (inotify_fd): Export.
25609         (resolv_conf_descr): Remove.
25610         (nscd_init): Move inotify descriptor creation to main.
25611         Don't register files for notification here.
25612         (register_traced_file): New function.
25613         (invalidate_cache): Don't use reset_res to determine whether to call
25614         res_init, go through the list of registered files.
25615         (main_loop_poll): The inotify descriptors are now stored in the
25616         structures for the traced files.
25617         (main_loop_epoll): Likewise
25618         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25619         to __nss_disable_nscd.
25620         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25621         for a database anymore.  Check the records for all the registered
25622         files instead.
25623         * nss/Makefile (libnss_files-routines): Add files-init.
25624         (libnss_db-routines): Add db-init.
25625         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25626         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25627         * nss/nss_db/db-init.c: New file.
25628         * nss/nss_files/files-init.c: New file.
25629         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25630         __nss_lookup_function.
25631         (__nss_lookup_function): Call nss_load_library.
25632         (nss_load_all_libraries): New function.
25633         (__nss_disable_nscd): Take parameter with callback function for files
25634         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25635         used for the cached services.
25636         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25637         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25638         options for features to all the files in nscd.
25639
25640         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25641
25642 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25643
25644         * csu/elf-init.c (__libc_csu_init): Comment typo.
25645
25646 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25647
25648         * po/pl.po: Update from translation team.
25649         * po/ja.po: Likewise.
25650         * po/ru.po: Likewise.
25651         * po/ko.po: Likewise.
25652         * po/fr.po: Likewise.
25653
25654 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25655
25656         * configure.in (.ctors/.dtors header and trailer check):
25657         Use an empirical test on a built program.
25658         * configure: Regenerated.
25659
25660         * configure.in (-z relro check): Use an empirical test on a built DSO.
25661         Detect, but do not require, on ia64.
25662         * configure: Regenerated.
25663
25664         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25665         Update tests that use readelf to use $READELF instead.
25666         * configure: Regenerated.
25667
25668 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25669
25670         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25671         if the result is not used.
25672
25673 2011-07-05  Andreas Jaeger  <aj@suse.de>
25674
25675         [BZ#9696]
25676         * stdlib/tst-strtod.c: Add testcase.
25677
25678 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25679
25680         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25681         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25682         The latter has a higher limit.  Take additional parameter to pass to
25683         the new function.
25684         (__pathconf): Pass file to __statfs_link_max.
25685         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25686         __statfs_link_max.
25687         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25688         __statfs_link_max.
25689
25690         [BZ #12868]
25691         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25692         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25693         Handle Lustre.
25694         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25695         (__statfs_filesize_max): Likewise.
25696         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25697
25698 2011-07-05  Andreas Jaeger  <aj@suse.de>
25699
25700         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25701
25702 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25703
25704         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25705         `status' variable.
25706         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25707         Likewise.
25708
25709 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25710
25711         * Makefile (strop-tests): Add strncat.
25712         * string/test-strncat.c: New file.
25713
25714 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25715
25716         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25717
25718 2011-06-21  Andreas Jaeger  <aj@suse.de>
25719
25720         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25721         Copy rule from iconvdata/Makefile.
25722
25723 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25724
25725         [BZ #12922]
25726         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25727         but no long options are defined, just return 'W'.
25728
25729 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25730
25731         [BZ #9696]
25732         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25733
25734 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25735
25736         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25737         netgroups to read.
25738         (innetgr): Likewise.
25739
25740 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25741
25742         * config.make.in (install_root): Default to $(DESTDIR).
25743
25744 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25745
25746         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25747
25748 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25749
25750         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25751
25752         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25753         containing directory rather than embedding absolute directory names.
25754
25755         * scripts/check-local-headers.sh: Rewritten using awk.
25756         Match by word, not by line.  Print error messages for matches.
25757         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25758
25759         * Makerules [shlib-lds-flags empty]:
25760         ($(common-objpfx)libc_pic.opts): New target.
25761         ($(common-objpfx)libc_pic.os.clean): New target.
25762         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25763
25764         * config.make.in (OBJCOPY): New variable.
25765         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25766         * configure: Regenerated.
25767
25768         * config.make.in (use-default-link): New variable.
25769         * configure.in (use_default_link): Grok --with-default-link to set it.
25770         * configure: Regenerated.
25771         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25772         (shlib-lds, shlib-lds-flags): Define to empty.
25773
25774         * Makerules (shlib-lds): New variable.
25775         (shlib-lds-flags): New variable.
25776         (build-shlib, build-moduile, build-module-asneeded): Use it.
25777         ($(common-objpfx)libc.so): Use $(shlib-lds).
25778         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25779         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25780
25781         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25782         DT_FLAGS/DT_FLAGS_1 with zero flags.
25783
25784         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25785         linker script munging.
25786
25787 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25788
25789         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25790         as 128-bit value.
25791         * crypt/sha512.c (sha512_process_block): Perform total addition using
25792         128-bit if possible.
25793         (__sha512_finish_ctx): Likewise.
25794         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25795         as 64-bit value.
25796         * crypt/sha256.c (SWAP64): Define.
25797         (sha256_process_block): Perform total addition using 64-bit if
25798         possible.
25799         (__sha256_finish_ctx): Likewise.
25800
25801 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25802
25803         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25804         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25805         * nscd/hstcache.c (cache_addhst): Likewise.
25806         * nscd/grpcache.c (cache_addgr): Likewise.
25807         * nscd/aicache.c (addhstaiX): Likewise
25808         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25809
25810 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25811
25812         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25813         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25814         * nscd/hstcache.c (cache_addhst): Likewise.
25815         * nscd/grpcache.c (cache_addgr): Likewise.
25816         * nscd/aicache.c (addhstaiX): Likewise
25817
25818 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25819
25820         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25821         domain only when needed.
25822
25823 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25824
25825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25826         is always restored.
25827
25828 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25829
25830         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25831         are re-adding the entry.
25832         * nscd/servicescache.c (cache_addserv): Likewise.
25833
25834 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25835
25836         * sysdeps/generic/dl-irel.h: fix protection against multiple
25837         inclusions.
25838         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25839
25840 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25841
25842         [BZ #12935]
25843         * malloc/memusage.sh: Fix quoting in message.
25844         * debug/xtrace.sh: Likewise.
25845
25846         * configure.in: Remove support for --experimental-malloc option, make
25847         it the default.
25848         * config.make.in: Likewise.
25849         * malloc/Makefile: Likewise.
25850
25851 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25852
25853         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25854         two-byte characters.
25855
25856 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25857
25858         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25859         AC_CACHE_CHECK invocation.
25860         * configure: Regenerated.
25861
25862         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25863
25864 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25865
25866         [BZ #12350]
25867         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25868         bit from old_res_options.
25869
25870         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25871
25872         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25873         value type for setfct.
25874
25875 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25876
25877         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25878         __gettimeofday instead of gettimeofday.
25879
25880 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25881
25882         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25883
25884 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25885
25886         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25887
25888         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25889         info.
25890
25891 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25892
25893         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25894         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25895         strcpy-sse2-unaligned strncpy-sse2-unaligned
25896         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25897         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25898         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25899         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25900         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25901         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25902         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25903         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25904         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25905         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25906         (STRCPY): Support SSE2 and SSSE3 versions.
25907
25908 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25909
25910         [BZ #12874]
25911         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25912         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25913         kernels which artificially limit size of requests.
25914
25915 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25916
25917         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25918         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25919         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25920         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25921         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25922         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25923         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25924         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25925         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25926         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25927         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25928         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25929         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25930         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25931         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25932         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25933         Enable unaligned load optimization for Intel Core i3, i5 and i7
25934         processors.
25935         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25936         Define.
25937         (index_Fast_Unaligned_Load): Define.
25938         (HAS_FAST_UNALIGNED_LOAD): Define.
25939
25940 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25941
25942         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25943
25944 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25945
25946         [BZ #12907]
25947         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25948         until it is clear that the information is realy needed.
25949         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25950
25951 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25952
25953         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25954
25955 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25956
25957         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25958         /sys/devices/system/cpu/online if it is usable.
25959
25960         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25961         reading the information from the /proc filesystem to once a second.
25962
25963 2011-06-21  Andreas Jaeger  <aj@suse.de>
25964
25965         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25966         NULL after inclusion of kernel headers.
25967
25968 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25969
25970         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25971         calls to internal_setent.
25972
25973         [BZ #12885]
25974         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25975         addresses using gethostbyname4_r ignore IPv4 addresses.
25976
25977         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25978         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25979
25980         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25981
25982 2011-06-20  David S. Miller  <davem@davemloft.net>
25983
25984         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25985         inclusions.
25986         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25987
25988         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25989         (elf_irel): Use it.
25990         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25991         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25992         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25993         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25994         * sysdeps/x86_64/dl-irel.h: Likewise.
25995
25996         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25997         * elf/dl-sym.c: Likewise.
25998
25999 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26000
26001         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26002         need to dereference resplen2.
26003
26004 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26005
26006         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26007
26008 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26009
26010         * Makeconfig: Define vardbdir and inst_vardbdir.
26011         * nss/Makefile: Add rules to install db-Makefile.
26012
26013         * nss/nss_db/db-XXX.c: Cleanup.
26014
26015         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26016         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26017         GLIBC_PRIVATE.
26018         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26019         * nss/makedb.c: Implement -g option to specify that value strings
26020         are generated and should not be added to table iterated over for
26021         get*ent calls.
26022         * nss/nss_db/db-initgroups.c: New file.
26023
26024         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26025         interface.
26026
26027         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26028         (internal_getgrouplist): Adjust to name change.
26029         Update use_initgroups_entry if this is not the first call.
26030         * nss/databases.def: Add initgroups entry.
26031
26032         * nss/makedb.c (compute_tables): Check result of multiple hash table
26033         sizes to minimize maximum chain length.
26034
26035 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26036
26037         * Versions.def: Add entry for libnss_db.
26038         * shlib-versions: Likewise.
26039         * nss/Makefile: Add rules to build libnss_db.
26040         * nss/Versions: Add libnss_db information.  Organize libnss_files
26041         entries better.
26042         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26043         makedb progra.  Some minor improvements to generate smaller files.
26044         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26045         here from...
26046         * nss/makedb.c: ...here.
26047         Improve database format to be smaller and require less memory at
26048         runtime.
26049         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26050         db anymore.
26051         * nss/nss_db/db-netgrp.c: Likewise.
26052         * nss/nss_db/db-open.c: Likewise.
26053         * nss/nss_files/flies-XXX.x: Adjust comments.
26054         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26055         * nss/nss_files/files-grp.c: Likewise.
26056         * nss/nss_files/files-hosts.c: Likewise.
26057         * nss/nss_files/files-network.c: Likewise.
26058         * nss/nss_files/files-proto.c: Likewise.
26059         * nss/nss_files/files-pwd.c: Likewise.
26060         * nss/nss_files/files-rpc.c: Likewise.
26061         * nss/nss_files/files-service.c: Likewise.
26062         * nss/nss_files/files-sgrp.c: Likewise.
26063         * nss/nss_files/files-spwd.c: Likewise.
26064         * nss/nss_db/db-alias.c: Removed.
26065         * nss/nss_db/dummy-db.h: Removed.
26066
26067 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26068
26069         * nss/makedb.c: Rewritten to not use database library.
26070         * nss/Makefile: Update to build new makedb program.
26071
26072 2011-06-14  Andreas Jaeger  <aj@suse.de>
26073
26074         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26075         memset declaration.
26076
26077 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26078
26079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26080         tmpbuf.
26081
26082 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26083
26084         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26085         * elf/Makefile ($(objpfx)ld.so): Likewise.
26086
26087         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26088         Don't list ld.so twice in dependencies.
26089
26090         * posix/bug-regex31.c: Include <stdlib.h>.
26091
26092         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26093
26094         * nis/nss_compat/compat-spwd.c
26095         (getspent_next_nss_netgr): Remove unused variable.
26096         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26097
26098         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26099         nonmembers" output to use the right array.
26100
26101         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26102
26103         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26104
26105         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26106         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26107         * catgets/gencat.c (read_input_file): Likewise.
26108         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26109
26110         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26111         variable definition inside #if's controlling its use.
26112
26113         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26114
26115         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26116
26117         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26118
26119         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26120         unreachable code.
26121
26122         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26123
26124         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26125         * configure: Regenerated.
26126
26127         * Makerules: Revert last change.
26128         * elf/Makefile: Likewise.
26129
26130 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26131
26132         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26133         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26134         (reloc-link): Likewise.
26135
26136 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26137
26138         * elf/Makefile: Add rules to build pldd.
26139         * elf/pldd.c: New file.
26140         * elf/pldd-xx.c: New file.
26141
26142 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26143
26144         * version.h: Update for 2.15 development version.
26145
26146 2011-06-07  David S. Miller  <davem@davemloft.net>
26147
26148         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26149         ifuncs.
26150         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26151         elf_machine_lazy_rel): Likewise.
26152         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26153         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26154         elf_machine_lazy_rel): Likewise.
26155         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26156         dl_hwcap via passed in argument.
26157         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26158         Likewise.
26159
26160 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26161
26162         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26163
26164 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26165
26166         [BZ #12849]
26167         * manual/fdl-1.1.texi: New file, verbatim from:
26168         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26169         * manual/lgpl-2.1.texi: New file, verbatim from:
26170         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26171         * manual/Makefile (licenses): New variable, list those new file names.
26172         (texis): Use it.
26173         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26174
26175         * manual/fdl.texi: File removed.
26176         * manual/lesser.texi: File removed.
26177         * manual/libc.texinfo (Copying, Documentation License):
26178         Use new @include file names, put @appendix directive before @include.
26179
26180 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26181
26182         [BZ #12841]
26183         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26184         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26185         (mq_open): Add __NTH.
26186
26187 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26188
26189         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26190         Assume Intel Core i3/i5/i7 processor if AVX is available.
26191
26192 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26193
26194         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26195         typo.
26196
26197 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26198
26199         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26200         memory.  Use alloca_account.  Fix memory leak when retrying.
26201
26202 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26203
26204         * version.h (RELEASE): Bump for 2.14 release.
26205         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26206
26207         * config.make.in (RANLIB): Remove entry.
26208
26209 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26210
26211         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26212         (libc.pot): Work around missing support for .ksh extension in xgettext.
26213
26214         [BZ #12684]
26215         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26216         if both request failed.
26217         (send_dg): In case of server errors clear resplen or *resplen2.
26218
26219         [BZ #12454]
26220         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26221         when there are multiple maps.
26222         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26223         (_dl_fini): Remove test here.
26224
26225         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26226
26227 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26228
26229         [BZ #12350]
26230         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26231         bit from old_res_options.
26232         (gaih_inet): Likewise.
26233
26234         [BZ #11099]
26235         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26236         as signed.
26237
26238         * resolv/res_init.c (res_setoptions): Make the code more compact.
26239
26240         [BZ #11558]
26241         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26242         set RES_USEVC.
26243
26244         [BZ #11634]
26245         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26246
26247         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26248
26249         [BZ #11781]
26250         * malloc/malloc.h: Declare malloc hook variables as volatile.
26251
26252         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26253         in last patch.
26254
26255         [BZ #11799]
26256         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26257         raise in the comment.
26258         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26259         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26260         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26261
26262 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26263
26264         [BZ #12811]
26265         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26266         grow the buffers more if it already has to be sufficient.
26267         (build_wcs_upper_buffer): Likewise.
26268         * posix/regexec.c (check_matching): Likewise.
26269         (clean_state_log_if_needed): Likewise.
26270         (extend_buffers): Don't enlarge buffers beyond size of the input
26271         buffer.
26272         Patches mostly by Emil Wojak <emil@wojak.eu>.
26273         * posix/bug-regex32.c: New file.
26274         * posix/Makefile (tests): Add bug-regex32.
26275
26276         * locale/findlocale.c (_nl_find_locale): Return right away if
26277         _nl_explode_name failed.
26278         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26279
26280         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26281
26282         * debug/xtrace.sh: Unify messages.
26283         * malloc/memusage.sh: Likewise.
26284
26285         [BZ #12813]
26286         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26287         time symbol from vDSO.  Substitute with vsyscall if not available.
26288         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26289         __vdso_time.
26290
26291         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26292         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26293         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26294         Add sendmmsg and internal_sendmmsg.
26295         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26296         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26297         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26298
26299         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26300         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26301         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26302
26303 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26304
26305         [BZ #12813]
26306         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26307         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26308         available.
26309         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26310         __vdso_getcpu.
26311
26312         [BZ #12814]
26313         * iconvdata/Makefile (tests): Add bug-iconv9.
26314         * iconvdata/bug-iconv9.c: New file.
26315
26316 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26317
26318         [BZ #12814]
26319         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26320
26321 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26322
26323         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26324         (struct user_regs_struct): Change intcs field back to cs.
26325
26326 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26327
26328         * po/ja.po: Update from translation team.
26329
26330 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26331
26332         [BZ #12795]
26333         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26334         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26335
26336 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26337
26338         * stdlib/longlong.h: Update from GCC.
26339
26340 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26341
26342         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26343         parameter name.
26344         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26345         Add parameter name.
26346         (__sysconf): Pass it down.
26347
26348 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26349
26350         [BZ #12671]
26351         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26352         some situations.
26353         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26354         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26355         add in in __libc_use_alloca calls.  Adjust callers.
26356         (glob): Use malloc in some situations.
26357
26358         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26359         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26360         pltexit.
26361
26362 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26363
26364         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26365         and CLOCK_BOOTTIME_ALARM.
26366
26367         [BZ #12782]
26368         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26369         is returned.
26370
26371         * string/_strerror.c (__strerror_r): Print negative errors as signed
26372         numbers.
26373
26374         [BZ #12777]
26375         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26376         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26377         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26378
26379         * configure.in: Fix typo in redirection and correct removal of test
26380         files in two cases.
26381
26382         [BZ #12788]
26383         * locale/setlocale.c (new_composite_name): Fix test to check for
26384         identical name of all categories.
26385
26386         [BZ #12792]
26387         * libio/filedoalloc.c (local_isatty): New function.
26388         (_IO_file_doallocate): Use local_isatty.
26389         * stdio-common/perror.c (perror): In case a new stream is used
26390         forward the stream error.
26391         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26392         error flag.
26393
26394 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26395
26396         [BZ #11869]
26397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26398         alloca.
26399         * include/alloca.h (extend_alloca_account): Define.
26400
26401         [BZ #11857]
26402         * posix/regex.h: Fix comments with documentation of user-accessible
26403         fields after compilation and describe correct free'ing of pattern
26404         after re_compile_pattern.
26405         Patch by Reuben Thomas <rrt@sc3d.org>.
26406
26407 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26408
26409         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26410         and -mno-altivec to prevent the compiler from using Altivec and/or
26411         VSX instructions when the corresponding registers are not available.
26412
26413 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26414
26415         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26416
26417 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26418
26419         * libio/freopen.c (freopen): Use __dup2, not dup2.
26420         * libio/freopen64.c (freopen64): Likewise.
26421
26422 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26423
26424         [BZ #12775]
26425         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26426         * math/Makefile (tests): Add test-powl.
26427         (CFLAGS-test-powl.c): Define.
26428         * math/test-powl.c: New file.
26429
26430 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26431
26432         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26433
26434 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26435
26436         [BZ #11837]
26437         * iconvdata/gb18030.c: Update to GB18020-2005.
26438
26439 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26440
26441         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26442         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26443         Patch by Aharon Robbins <arnold@skeeve.com>.
26444
26445         [BZ #11892]
26446         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26447         on the stack.
26448
26449         [BZ #11895]
26450         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26451         through underflows.
26452
26453         [BZ #12766]
26454         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26455         point to strings before performing equality test for error_one_per_line
26456         mode.
26457
26458         [BZ #11697]
26459         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26460
26461         [BZ #11820]
26462         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26463         (struct user_fpregs_struct): Avoid __uint*_t types.
26464
26465         [BZ #6420]
26466         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26467         symbol info.  Use it instead of calling _dl_addr locally.
26468         (lock_and_info): New function.
26469         (tr_freehook): Call lock_and_info and pass symbol info as additional
26470         parameter to tr_where.
26471         (tr_mallochook): Likewise.
26472         (tr_reallochook): Likewise.
26473         (tr_memalignhook): Likewise.
26474
26475         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26476         used and couldn't be at all thread-safe.
26477
26478 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26479
26480         * libio/freopen.c (freopen): Don't close old file descriptor
26481         before the new one is opened.  Instead dup the new file descriptor
26482         to the old one after the new stream is created.
26483         * libio/freopen64.c (freopen64): Likewise.
26484         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26485         * libio/fileops.c (_IO_new_file_close_it): Handle new
26486         _IO_FLAGS2_NOCLOSE flag.
26487         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26488         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26489         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26490         _IO_FLAGS2_NOCLOSE flag.
26491         * include/unistd.h: Add hidden_proto for dup3.
26492         Define __have_dup3.
26493         * io/dup3.c: Define hidden symbol.
26494         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26495
26496         [BZ #7101]
26497         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26498         when an incomplete long option is used.
26499         * posix/tst-getopt_long1.c: New file.
26500         * posix/Makefile (tests): Add tst-getopt_long1.
26501
26502         [BZ #10138]
26503         * scripts/config.guess: Update from autoconf-2.68.
26504         * scripts/config.sub: Likewise.
26505
26506         [BZ #10157]
26507         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26508         tests into ...
26509         (has_cpuclock): ...this.  New function.
26510         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26511         macro here based on has_cpuclock code.
26512
26513         [BZ #10149]
26514         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26515         First byte (not low byte) is now always NUL.
26516         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26517
26518         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26519         Use non-cancelable interfaces.
26520
26521         [BZ #9809]
26522         * locale/iso-639.def: Add entry for Sorani.
26523
26524         [BZ #11901]
26525         * include/stdlib.h: Move include protection to the right place.
26526         Define abort_msg_s.  Declare __abort_msg with it.
26527         * stdlib/abort.c (__abort_msg): Adjust type.
26528         * assert/assert.c (__assert_fail_base): New function.  Majority
26529         of code from __assert_fail.  Allocate memory for __abort_msg with
26530         mmap.
26531         (__assert_fail): Now call __assert_fail_base.
26532         * assert/assert-perr.c: Remove bulk of implementation.  Use
26533         __assert_fail_base.
26534         * include/assert.hL Declare __assert_fail_base.
26535         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26536         mmap.
26537         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26538
26539 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26540
26541         [BZ #11952]
26542         [BZ #12453]
26543         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26544         until all modules are registered in the DTV.
26545         * elf/Makefile: Add rules to build and run tst-tls19.
26546         * elf/tst-tls19.c: New file.
26547         * elf/tst-tls19mod1.c: New file.
26548         * elf/tst-tls19mod2.c: New file.
26549         * elf/tst-tls19mod3.c: New file.
26550         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26551
26552         [BZ #12083]
26553         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26554         correctly.
26555
26556         [BZ #12601]
26557         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26558         two-byte sequence errors.
26559         * iconvdata/Makefile (tests): Add bug-iconv8.
26560         * iconvdata/bug-iconv8.c: New file.
26561
26562         [BZ #12626]
26563         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26564         buf2 definition.
26565
26566         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26567
26568         [BZ #12432]
26569         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26570         (dummy_getcfa): New function.
26571         (init): Get _Unwind_GetCFA address, use dummy if not found.
26572         (backtrace_helper): In recursion check, also check whether CFA changes.
26573         (__backtrace): Completely initialize arg.
26574
26575         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26576         storing incomplete byte sequence in state object.  Avoid testing for
26577         guaranteed too small input if we know there is enough data available.
26578
26579 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26580
26581         * Makeconfig (+link-pie): Indent.
26582         * Rules (binaries-pie): Define if $(have-fpie) and
26583         $(build-shared).
26584         (binaries-shared): Also filter out $(binaries-pie).
26585         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26586         * nscd/Makefile (others-pie): Add nscd.
26587         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26588         ($(objpfx)nscd): Remove command override.
26589         * login/Makefile (others-pie): Add pt_chown.
26590         ($(objpfx)pt_chown): Remove command override.
26591         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26592         remove command overrides.
26593
26594 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26595
26596         * libio/tst_putwc.c: Fix error messages.
26597
26598         [BZ #12724]
26599         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26600         currently writing and seek to current position when not.
26601         * libio/Makefile (tests): Add bug-fclose1.
26602         * libio/bug-fclose1.c: New file.
26603
26604 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26605
26606         [BZ #12511]
26607         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26608         don't set DF_1_NODELETE here.
26609         (do_lookup_x): When entering new entry test for copy relocation
26610         and if necessary set DF_1_NODELETE flag.
26611         * elf/tst-unique4.cc: New file.
26612         * elf/tst-unique4.h: New file.
26613         * elf/tst-unique4lib.cc: New file.
26614         * elf/Makefile: Add rules to build and run tst-unique4.
26615         Patch by Piotr Bury <pbury@goahead.com>.
26616
26617 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26618
26619         [BZ #12052]
26620         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26621
26622         [BZ #12625]
26623         * misc/mntent_r.c (addmntent): Flush the stream after the output
26624
26625         [BZ #12393]
26626         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26627         (is_trusted_path_normalize): Skip initial colon.  Append slash
26628         to empty buffer.  Duplicate is_trusted_path code but allow
26629         constructed patch to be prefix.
26630         (is_dst): Allow $ORIGIN followed by /.
26631         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26632         Correct testing of result of is_trusted_path_normalize
26633         (decompose_rpath): Fix warning.
26634
26635 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26636
26637         [BZ #11257]
26638         * grp/initgroups.c (internal_getgrouplist): When we found the service
26639         list through the initgroups entry in nsswitch.conf do not always
26640         continue on a successful lookup.  Don't always use the
26641         __nss_group_database value if it is set.
26642         * nss/nsswitch.conf (initgroups): Change action for successful db
26643         lookup to continue for compatibility.
26644
26645 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26646
26647         [BZ #11532]
26648         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26649         and CP774 modules.
26650         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26651         and CP774 modules.
26652         * iconvdata/tst-tables.sh: Likewise.
26653         * iconvdata/cp770.c: New file.
26654         * iconvdata/cp771.c: New file.
26655         * iconvdata/cp772.c: New file.
26656         * iconvdata/cp773.c: New file.
26657         * iconvdata/cp774.c: New file.
26658         * iconvdata/testdata/CP770: New file.
26659         * iconvdata/testdata/CP770..UTF8: New file.
26660         * iconvdata/testdata/CP771: New file.
26661         * iconvdata/testdata/CP771..UTF8: New file.
26662         * iconvdata/testdata/CP772: New file.
26663         * iconvdata/testdata/CP772..UTF8: New file.
26664         * iconvdata/testdata/CP773: New file.
26665         * iconvdata/testdata/CP773..UTF8: New file.
26666         * iconvdata/testdata/CP774: New file.
26667         * iconvdata/testdata/CP774..UTF8: New file.
26668
26669         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26670         END CHARMAP line.
26671         * iconvdata/gen-8bit-gap.sh: Likewise.
26672         * iconvdata/gen-8bit.sh: Likewise.
26673
26674         * locale/iso-639.def: Add ary entry.
26675
26676         [BZ #11258]
26677         * locale/C-translit.h.in: Add U20A1 transliteration.
26678
26679         [BZ #12178]
26680         * locale/iso-639.def: Add wae entry.
26681         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26682
26683         [BZ #12545]
26684         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26685         for n.
26686
26687         [BZ #12711]
26688         * locale/C-translit.h.in: Add entry for U20B9.
26689         Patch by pravin.d.s@gmail.com.
26690
26691 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26692
26693         [BZ #12713]
26694         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26695         ENAMETOOLONG use generic getcwd.
26696         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26697         in rtld.  Use *stat64.
26698         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26699         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26700         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26701         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26702         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26703         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26704         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26705         __fstatat64 macros.
26706         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26707         * dirent/rewinddir.c: Add libc_hidden_def.
26708         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26709         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26710
26711         * include/dirent.h (__alloc_dir): Add flags parameter.
26712         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26713         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26714         __alloc_dir.
26715         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26716         from fdopendir if O_CLOEXEC is already set.
26717
26718 2011-03-15  Alan Modra  <amodra@gmail.com>
26719
26720         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26721         l_tls_firstbyte_offset non-zero.  Save padding offset in
26722         l_tls_firstbyte_offset for later use.
26723         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26724         freeing static tls block.
26725
26726 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26727
26728         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26729         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26730         being defined by the kernel headers.
26731
26732 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26733
26734         [BZ #12734]
26735         * resolv/resolv.h: Define RES_NOTLDQUERY.
26736         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26737         no-tld-query and set RES_NOTLDQUERY.
26738         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26739         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26740         modern BIND to search name as TLD unless forbidden.
26741
26742 2011-05-07  Petr Baudis  <pasky@suse.cz>
26743             Ulrich Drepper  <drepper@gmail.com>
26744
26745         [BZ #12393]
26746         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26747         (is_trusted_path): ...to here.
26748         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26749         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26750         using is_trusted_path_normalize() in setuid scripts.
26751
26752 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26753
26754         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26755         __BEGIN/__END_DECLS.
26756
26757 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26758
26759         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26760         NSS_STATUS_NOTFOUND if no record was found.
26761
26762 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26763
26764         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26765         (headers-not-in-tirpc): Remove rpc/netdb.h
26766         * resolv/netdb.h: Revert last change.
26767
26768 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26769
26770         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26771         circular dependency between libgcc.a and libc.a.
26772
26773 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26774
26775         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26776         * nis/Makefile: Don't install rpcsvc/*.
26777         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26778         instead of <rpc/types.h>.
26779         (MAXHOSTNAMELEN): Define.
26780
26781 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26782
26783         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26784
26785 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26786
26787         [BZ #12714]
26788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26789         gethostbyname4_r when IPv6 results are possible.
26790
26791 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26792
26793         [BZ #12723]
26794         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26795         _PC_PIPE_BUF handling.
26796
26797 2011-04-30  Bruno Haible  <bruno@clisp.org>
26798
26799         [BZ #12717]
26800         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26801         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26802         to 'int'.
26803         * inet/getnameinfo.c (getnameinfo): Likewise.
26804
26805 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26806
26807         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26808         to groups setting in database lookup.
26809         * nss/nsswitch.conf: Add initgroups entry.
26810
26811 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26812
26813         [BZ #12685]
26814         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26815         mode string.
26816         Patch by Eric Blake <eblake@redhat.com>.
26817
26818 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26819
26820         * sunrpc/Makefile (need-export-routines): Add svc_run.
26821         (routines): Remove svc_run.
26822         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26823         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26824         * sunrpc/svc_run.c (svc_run): Likewise.
26825         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26826
26827 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26828
26829         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26830         problem in reallocation in last patch.
26831
26832 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26833
26834         * sunrpc/Makefile: Move inclusion of Rules.
26835
26836 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26837
26838         * nss/nss_files/files-initgroups.c: New file.
26839         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26840         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26841         _nss_files_initgroups_dyn.
26842
26843 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26844
26845         * elf/elf.h (R_ARM_IRELATIVE): Define.
26846
26847 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26848
26849         * po/ru.po: Update from translation team.
26850
26851 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26852
26853         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26854         dependencies.
26855
26856 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26857
26858         [BZ #12653]
26859         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26860         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26861         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26862         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26863         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26864
26865 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26866
26867         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26868         differing bytes.
26869         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26870         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26871         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26872
26873 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26874
26875         [BZ #12420]
26876         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26877         storing it.
26878         * stdlib/bug-getcontext.c: New file.
26879         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26880
26881 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26882
26883         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26884         instructions into .machine "z9-109".
26885         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26886         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26887
26888 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26889
26890         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26891         between environment variables and auxiliary vector.
26892
26893 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26894
26895         * Makefile: Add rules to build linkobj/libc.so.
26896         * include/libc-symbols.h: Define libc_hidden_nolink.
26897         * include/rpc/auth.h: Mark functions which are to be hidden.
26898         * include/rpc/auth_des.h: Likewise.
26899         * include/rpc/auth_unix.h: Likewise.
26900         * include/rpc/clnt.h: Likewise.
26901         * include/rpc/des_crypt.h: Likewise.
26902         * include/rpc/key_prot.h: Likewise.
26903         * include/rpc/pmap_clnt.h: Likewise.
26904         * include/rpc/pmap_prot.h: Likewise.
26905         * include/rpc/pmap_rmt.h: Likewise.
26906         * include/rpc/rpc_msg.h: Likewise.
26907         * include/rpc/svc.h: Likewise.
26908         * include/rpc/svc_auth.h: Likewise.
26909         * include/rpc/xdr.h: Likewise.
26910         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26911         * nss/Makefile: Likewise.
26912         * sunrpc/Makefile: Don't install headers.  Build library with normal
26913         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26914         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26915         for the compat linking library.  Remove use of INTDEF/INTUSE.
26916         * sunrpc/auth_none.c: Likewise.
26917         * sunrpc/auth_unix.c: Likewise.
26918         * sunrpc/authdes_prot.c: Likewise.
26919         * sunrpc/authuxprot.c: Likewise.
26920         * sunrpc/clnt_gen.c: Likewise.
26921         * sunrpc/clnt_perr.c: Likewise.
26922         * sunrpc/clnt_raw.c: Likewise.
26923         * sunrpc/clnt_simp.c: Likewise.
26924         * sunrpc/clnt_tcp.c: Likewise.
26925         * sunrpc/clnt_udp.c: Likewise.
26926         * sunrpc/clnt_unix.c: Likewise.
26927         * sunrpc/des_crypt.c: Likewise.
26928         * sunrpc/des_soft.c: Likewise.
26929         * sunrpc/get_myaddr.c: Likewise.
26930         * sunrpc/key_call.c: Likewise.
26931         * sunrpc/key_prot.c: Likewise.
26932         * sunrpc/netname.c: Likewise.
26933         * sunrpc/pm_getmaps.c: Likewise.
26934         * sunrpc/pm_getport.c: Likewise.
26935         * sunrpc/pmap_clnt.c: Likewise.
26936         * sunrpc/pmap_prot.c: Likewise.
26937         * sunrpc/pmap_prot2.c: Likewise.
26938         * sunrpc/pmap_rmt.c: Likewise.
26939         * sunrpc/publickey.c: Likewise.
26940         * sunrpc/rpc_cmsg.c: Likewise.
26941         * sunrpc/rpc_common.c: Likewise.
26942         * sunrpc/rpc_dtable.c: Likewise.
26943         * sunrpc/rpc_prot.c: Likewise.
26944         * sunrpc/rpc_thread.c: Likewise.
26945         * sunrpc/rtime.c: Likewise.
26946         * sunrpc/svc.c: Likewise.
26947         * sunrpc/svc_auth.c: Likewise.
26948         * sunrpc/svc_authux.c: Likewise.
26949         * sunrpc/svc_raw.c: Likewise.
26950         * sunrpc/svc_run.c: Likewise.
26951         * sunrpc/svc_simple.c: Likewise.
26952         * sunrpc/svc_tcp.c: Likewise.
26953         * sunrpc/svc_udp.c: Likewise.
26954         * sunrpc/svc_unix.c: Likewise.
26955         * sunrpc/svcauth_des.c: Likewise.
26956         * sunrpc/xcrypt.c: Likewise.
26957         * sunrpc/xdr.c: Likewise.
26958         * sunrpc/xdr_array.c: Likewise.
26959         * sunrpc/xdr_float.c: Likewise.
26960         * sunrpc/xdr_intXX_t.c: Likewise.
26961         * sunrpc/xdr_mem.c: Likewise.
26962         * sunrpc/xdr_rec.c: Likewise.
26963         * sunrpc/xdr_ref.c: Likewise.
26964         * sunrpc/xdr_sizeof.c: Likewise.
26965         * sunrpc/xdr_stdio.c: Likewise.
26966
26967 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26968
26969         [BZ #12650]
26970         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26971         * sysdeps/ia64/dl-tls.h: Likewise.
26972         * sysdeps/powerpc/dl-tls.h: Likewise.
26973         * sysdeps/s390/dl-tls.h: Likewise.
26974         * sysdeps/sh/dl-tls.h: Likewise.
26975         * sysdeps/sparc/dl-tls.h: Likewise.
26976         * sysdeps/x86_64/dl-tls.h: Likewise.
26977         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26978
26979 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26980
26981         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26982         rpath element also skip the following colon.
26983         (expand_dynamic_string_token): Add is_path parameter and pass
26984         down to DL_DST_REQUIRED and _dl_dst_substitute.
26985         (decompose_rpath): Call expand_dynamic_string_token with
26986         non-zero is_path.  Ignore empty rpaths.
26987         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26988         with zero is_path.
26989
26990 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26991
26992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26993         Make cancelable.
26994
26995 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26996
26997         [BZ #12655]
26998         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26999         Patch by Filipe David Manana <fdmanana@apache.org>.
27000
27001 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27002
27003         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27004         Maintain aligned stack.
27005         (CHECK_RSP): Remove unused macro.
27006
27007 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27008
27009         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27010         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27011
27012 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27013
27014         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27015
27016         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27017
27018 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27019
27020         [BZ #12518]
27021         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27022         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27023         * sysdeps/x86_64/memmove.c: New file.
27024         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27025         (memcpy): Renamed to ...
27026         (__new_memcpy): This.
27027         (memcpy): Provide GLIBC_2_14 memcpy.
27028         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27029         (memcpy): Provide GLIBC_2_2_5 memcpy.
27030
27031 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27032
27033         [BZ #12631]
27034         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27035
27036 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27037
27038         * misc/syncfs.c: New file.
27039         * misc/Makefile (routines): Add syncfs.
27040         * posix/unistd.h: Declare syncfs.
27041         * sysdeps/unix/syscalls.list: Add syncfs.
27042
27043 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27044
27045         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27046         open_by_handle_at.
27047         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27048         * sysdeps/unix/sysv/linux/ia64/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/syscalls.list: Likewise.
27053         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27054
27055 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27056
27057         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27058         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27059         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27060         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27061         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27063         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27064
27065         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27066         sync_file_range.c with -fexceptions.
27067         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27068         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27069         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27070         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27071         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27072         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27073         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27074         sync_file_range as cancellation point
27075         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27076         now a wrapper around __call_sync_file_range with cancellation handling.
27077         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27078         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27079         function name to __call_sync_file_range.
27080         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27081         Add call_sync_file_range.
27082
27083 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27084
27085         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27086         bits/timex.h.
27087
27088 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27089
27090         * iconv/iconv.h: Fix typo in comment.
27091         * io/fcntl.h: Likewise.
27092         * libio/stdio.h: Likewise.
27093         * posix/spawn.h: Likewise.
27094         * posix/unistd.h: Likewise.
27095         * stdlib/stdlib.h: Likewise.
27096         * time/time.h: Likewise.
27097         * wcsmbs/wchar.h: Likewise.
27098
27099         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27100         open_by_handle): Add.
27101         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27102         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27103         Augment a few comments.
27104         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27105         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27106         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27107         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27108         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27109         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27110         open_by_handle.
27111
27112         * io/fcntl.h (AT_EMPTY_PATH): Define.
27113
27114 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27115
27116         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27117         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27118         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27119         to...
27120         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27121         * Versions.def: Add GLIBC_2.14.
27122         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27123         Export.
27124
27125 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27126
27127         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27128         round counter.
27129         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27130
27131 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27132
27133         [BZ #12597]
27134         * string/test-strncmp.c (do_page_test): New function.
27135         (check2): Likewise.
27136         (test_main): Call check2.
27137         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27138
27139 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27140
27141         [BZ #12587]
27142         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27143         Handle cache information in CPU leaf 4.
27144         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27145
27146 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27147
27148         [BZ #12583]
27149         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27150         character representation.
27151         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27152
27153 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27154
27155         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27156         END(__isnan) to END(__isnanf) to match function entry point/label
27157         EALIGN(__isnanf,...).
27158
27159 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27160
27161         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27162
27163 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27164
27165         [BZ #12510]
27166         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27167         copy from the symbol referenced in the relocation to initialize the
27168         used variable.
27169         Patch by Piotr Bury <pbury@goahead.com>.
27170         * elf/Makefile: Add rules to build and tst-unique3.
27171         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27172         * elf/tst-unique3.cc: New file.
27173         * elf/tst-unique3.h: New file.
27174         * elf/tst-unique3lib.cc: New file.
27175         * elf/tst-unique3lib2.cc: New file.
27176
27177         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27178
27179 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27180
27181         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27182         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27183         to _start.
27184
27185 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27186
27187         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27188         to-be-loaded object along a path to loader is ld.so.
27189
27190 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27191             Ulrich Drepper  <drepper@gmail.com>
27192
27193         * sysdeps/x86_64/memset.S: After aligning destination, code
27194         branches to different locations depending on the value of
27195         misalignment, when multiarch is enabled. Fix this.
27196
27197 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27198
27199         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27200         Set _x86_64_preferred_memory_instruction for AMD processsors.
27201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27202         Set bit_Prefer_SSE_for_memop for AMD processors.
27203
27204 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27205
27206         * libio/fmemopen.c (fmemopen): Optimize a bit.
27207
27208 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27209
27210         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27211
27212 2011-03-03  Roland McGrath  <roland@redhat.com>
27213
27214         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27215
27216 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27217
27218         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27219         __bzero_ultra1 instead of __memset_ultra1.
27220
27221 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27222             Ulrich Drepper  <drepper@gmail.com>
27223
27224         [BZ #12509]
27225         * include/link.h (struct link_map): Add l_orig_initfini.
27226         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27227         returning unsuccessfully.
27228         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27229         close of a file loaded at startup, restore the original l_initfini
27230         list.
27231         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27232         list, store the pointer.
27233         * elf/Makefile ($(objpfx)noload-mem): New rule.
27234         (noload-ENV): Define.
27235         (tests): Add $(objpfx)noload-mem.
27236         * elf/noload.c: Include <memcheck.h>.
27237         (main): Call mtrace.  Close all opened handles.
27238
27239 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27240
27241         [BZ #12454]
27242         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27243         dependencies are missing.
27244
27245 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27246
27247         Fix __if_freereq crash: Unlike the generic version which uses free,
27248         Hurd needs munmap.
27249         * sysdeps/mach/hurd/ifreq.h: New file.
27250
27251 2011-01-27  Petr Baudis  <pasky@suse.cz>
27252             Ulrich Drepper  <drepper@gmail.com>
27253
27254         [BZ 12445]#
27255         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27256         to extend_alloca().
27257         * stdio-common/bug23.c: New file.
27258         * stdio-common/Makefile (tests): Add bug23.
27259
27260 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27261             Ulrich Drepper  <drepper@gmail.com>
27262
27263         [BZ #12489]
27264         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27265         before performing relro protection.  At old place add assertion
27266         to make sure nothing changed.
27267
27268 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27269             Glauber de Oliveira Costa  <glommer@gmail.com>
27270
27271         * elf/elf.h: Add new ARM TLS relocs.
27272
27273 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27274
27275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27276         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27277         cast from r3.
27278         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27279         'tests' variable.
27280         * sysdeps/wordsize-64/tst-writev.c: New file.
27281
27282 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27283
27284         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27285         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27286         insns in _dl_start to prevent a TOC reference before relocs are
27287         resolved.
27288
27289 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27290
27291         [BZ #12469]
27292         * Makeconfig: Remove RANLIB definition.
27293         * Makerules: Don't use RANLIB.
27294         * aclocal.m4: Remove ranlib test.
27295         * configure.in: No need to check for ranlib.
27296         * elf/rtld-Rules: Don't use RANLIB.
27297
27298 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27299
27300         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27301         protection macro.
27302         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27303         inclusion protection macro.
27304
27305         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27306         SIGRTMIN and SIGRTMAX and print information in that case only when
27307         SIGRTMIN is defined.
27308
27309 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27310
27311         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27312         arginfo fn returning -1.
27313
27314         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27315         and thousands string is zero terminated.
27316
27317 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27318
27319         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27320         sysdeps/unix/sysv/linux/bits/socket.h.
27321
27322 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27323
27324         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27325         (__CPU_COUNT): Remove old macros.
27326         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27327         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27328         (__CPU_ALLOC, __CPU_FREE): Add macros.
27329         (__sched_cpualloc, __sched_cpufree): Add declarations.
27330
27331 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27332
27333         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27334         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27335         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27336         (readdhstai): Return value of addhstaiX call.
27337         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27338         (addgrbyX): Return value returned by cache_addgr.
27339         (readdgrbyname): Return value returned by addgrbyX.
27340         (readdgrbygid): Likewise.
27341         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27342         (addpwbyX): Return value returned by cache_addpw.
27343         (readdpwbyname): Return value returned by addhstbyX.
27344         (readdpwbyuid): Likewise.
27345         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27346         (addservbyX): Return value returned by cache_addserv.
27347         (readdservbyname): Return value returned by addservbyX:
27348         (readdservbyport): Likewise.
27349         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27350         (addhstbyX): Return value returned by cache_addhst.
27351         (readdhstbyname): Return value returned by addhstbyX.
27352         (readdhstbyaddr): Likewise.
27353         (readdhstbynamev6): Likewise.
27354         (readdhstbyaddrv6): Likewise.
27355         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27356         (readdinitgroups): Return value returned by addinitgroupsX.
27357         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27358         (prune_cache): Keep track of timeout value of re-added entries.
27359         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27360         * nscd/nscd.h: Adjust prototypes of readd* functions.
27361
27362 2011-02-04  Roland McGrath  <roland@redhat.com>
27363
27364         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27365         (nis_stats): Likewise.
27366         * nis/nis_modify.c (nis_modify): Likewise.
27367         * nis/nis_remove.c (nis_remove): Likewise.
27368         * nis/nis_add.c (nis_add): Likewise.
27369
27370         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27371
27372         * posix/fnmatch_loop.c: Add some consts.
27373
27374         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27375
27376 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27377
27378         [BZ #12460]
27379         * config.make.in (config-cflags-novzeroupper): Define.
27380         * configure.in: Substitute libc_cv_cc_novzeroupper.
27381         * elf/Makefile (AVX-CFLAGS): Define.
27382         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27383         (CFLAGS-tst-auditmod4a.c): Likewise.
27384         (CFLAGS-tst-auditmod4b.c): Likewise.
27385         (CFLAGS-tst-auditmod6b.c): Likewise.
27386         (CFLAGS-tst-auditmod6c.c): Likewise.
27387         (CFLAGS-tst-auditmod7b.c): Likewise.
27388         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27389
27390 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27391
27392         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27393         function to the callback.
27394         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27395
27396 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27397
27398         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27399         of errno.
27400
27401 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27402
27403         [BZ #11724]
27404         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27405         of constructors.
27406         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27407         of destructors.
27408         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27409
27410         [BZ #11724]
27411         * elf/Makefile: Add rules to build and run new test.
27412         * elf/tst-initorder.c: New file.
27413         * elf/tst-initorder.exp: New file.
27414         * elf/tst-initordera1.c: New file.
27415         * elf/tst-initordera2.c: New file.
27416         * elf/tst-initordera3.c: New file.
27417         * elf/tst-initordera4.c: New file.
27418         * elf/tst-initorderb1.c: New file.
27419         * elf/tst-initorderb2.c: New file.
27420         * elf/tst-order-a1.c: New file.
27421         * elf/tst-order-a2.c: New file.
27422         * elf/tst-order-a3.c: New file.
27423         * elf/tst-order-a4.c: New file.
27424         * elf/tst-order-b1.c: New file.
27425         * elf/tst-order-b2.c: New file.
27426         * elf/tst-order-main.c: New file.
27427         New test case by George Gensure <werkt0@gmail.com>.
27428
27429 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27430
27431         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27432         decoding ACE if AI_CANONIDN.
27433
27434 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27435
27436         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27437
27438 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27439
27440         * version.h (RELEASE): Bump for 2.13 release.
27441         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27442
27443         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27444
27445         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27446         MADV_NOHUGEPAGE.
27447         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27448         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27449         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27450         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27451         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27452         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27453
27454         * posix/getconf.c: Update copyright year.
27455         * catgets/gencat.c: Likewise.
27456         * csu/version.c: Likewise.
27457         * debug/catchsegv.sh: Likewise.
27458         * debug/xtrace.sh: Likewise.
27459         * elf/ldconfig.c: Likewise.
27460         * elf/ldd.bash.in: Likewise.
27461         * elf/sprof.c (print_version): Likewise.
27462         * iconv/iconv_prog.c: Likewise.
27463         * iconv/iconvconfig.c: Likewise.
27464         * locale/programs/locale.c: Likewise.
27465         * locale/programs/localedef.c: Likewise.
27466         * malloc/memusage.sh: Likewise.
27467         * malloc/mtrace.pl: Likewise.
27468         * nscd/nscd.c (print_version): Likewise.
27469         * nss/getent.c: Likewise.
27470
27471         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27472         PF_CAIF, and PF_ALG.
27473         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27474
27475 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27476
27477         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27478         (modules-names): Use them.
27479         (ifunc-test-modules, ifunc-pie-tests): Define.
27480         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27481         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27482         (test-extras): Likewise.
27483         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27484         $(compile-command.c).
27485         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27486         (all-built-dso): Define.
27487         (check-textrel.out, check-execstack.out): Depend on it.
27488
27489         * configure.in: Don't override --enable-multi-arch.
27490
27491 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27492
27493         [BZ #6812]
27494         * nscd/hstcache.c (tryagain): Define.
27495         (cache_addhst): Return tryagain not notfound for temporary errors.
27496         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27497         failed.
27498
27499 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27500
27501         [BZ #10563]
27502         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27503         to make the syscall.
27504         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27505
27506         [BZ #12378]
27507         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27508         and fall back to matching as normal character if the string ends before
27509         the matching ']' is found.  This is what POSIX requires.
27510         * posix/testfnm.c: Adjust test result.
27511         * posix/globtest.sh: Adjust test result.  Add new test.
27512         * posix/tst-fnmatch.input: Likewise.
27513         * posix/tst-fnmatch2.c: Add new test.
27514
27515 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27516
27517         * elf/Makefile (check-execstack): Revert last change.  Depend on
27518         check-execstack.h.
27519         (check-execstack.h): New target.
27520         (generated): Add check-execstack.h.
27521         * elf/check-execstack.c: Include "check-execstack.h".
27522         (main): Revert last change.
27523         (handle_file): Return zero if GNU_STACK is absent and
27524         DEFAULT_STACK_PERMS doesn't include PF_X.
27525
27526 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27527
27528         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27529         in child fails because the descriptor is already closed.
27530         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27531         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27532         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27533
27534         [BZ #12397]
27535         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27536         syscall.
27537
27538         [BZ #10484]
27539         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27540         temporary buffer used to handle multi lookups locally.
27541         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27542
27543 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27544
27545         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27546         loader is ld.so.
27547
27548 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27549
27550         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27551         alignment for SSE2.
27552
27553 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27554
27555         [BZ #12394]
27556         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27557         characters.  When rounding increased number of integer digits recompute
27558         number of groups.
27559         * stdio-common/tst-grouping.c: New file.
27560         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27561
27562 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27563
27564         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27565         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27566
27567         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27568         void.
27569         * bits/select.h: Likewise.
27570
27571 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27572
27573         * po/ja.po: Update from translation team.
27574
27575 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27576
27577         [BZ #11155]
27578         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27579         implementation just like for lxstat, fxstatat, et al.
27580
27581 2010-12-27  Jim Meyering  <meyering@redhat.com>
27582
27583         [BZ #12348]
27584         * posix/regexec.c (build_trtable): Return failure indication upon
27585         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27586
27587 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27588
27589         [BZ #12201]
27590         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27591         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27592         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27593         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27594
27595         [BZ #12207]
27596         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27597
27598         [BZ #12204]
27599         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27600         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27601
27602 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27603
27604         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27605         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27606         script has SORT_BY_INIT_PRIORITY.
27607         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27608         NO_CTORS_DTORS_SECTIONS is defined.
27609         * elf/soinit.c: Likewise.
27610         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27611         NO_CTORS_DTORS_SECTIONS is defined.
27612         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27613         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27614         * sysdeps/sh/init-first.c: Likewise.
27615         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27616
27617 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27618
27619         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27620         always use the slow path.
27621
27622 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27623
27624         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27625         similar rule which adds the sysdep directories to the header search in
27626         order to pick up the correct platform stackinfo.h.
27627         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27628         perform test if it is, otherwise return successfully without testing.
27629         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27630         DEFAULT_STACK_PERMS define in stackinfo.h.
27631         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27632         defined in stackinfo.h.
27633         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27634         DEFAULT_STACK_PERMS defined in stackinfo.h.
27635         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27636         * sysdeps/ia64/stackinfo.h: Likewise.
27637         * sysdeps/s390/stackinfo.h: Likewise.
27638         * sysdeps/sh/stackinfo.h: Likewise.
27639         * sysdeps/sparc/stackinfo.h: Likewise.
27640         * sysdeps/x86_64/stackinfo.h: Likewise.
27641         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27642         PF_X for powerpc64.  Retain PF_X for powerpc32.
27643
27644 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27645
27646         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27647         accurately.
27648         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27649         GETDENTS_64BIT_ALIGNED.
27650
27651 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27652
27653         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27654
27655 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27656
27657         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27658         _GNU_SOURCE.
27659
27660         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27661         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27662         Remove __restrict.
27663         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27664         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27665
27666 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27667
27668         [BZ #11655]
27669         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27670         are initialized.
27671
27672 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27673
27674         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27675
27676 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27677
27678         * po/it.po: Update from translation team.
27679
27680 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27681
27682         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27683         unused codes.
27684
27685 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27686
27687         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27688
27689 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27690
27691         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27692         specially.
27693         (gaih_getanswer_slice): Likewise.
27694
27695 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27696
27697         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27698
27699 2010-05-31  Petr Baudis  <pasky@suse.cz>
27700
27701         [BZ #11149]
27702         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27703         silently even in the chroot mode.
27704
27705 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27706
27707         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27708         last patch a bit.  Pretty printing
27709
27710 2010-05-31  Petr Baudis <pasky@suse.cz>
27711
27712         [BZ #10085]
27713         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27714         initialization of skip_initgroups_dyn.
27715
27716 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27717
27718         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27719         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27720
27721 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27722
27723         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27724
27725 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27726
27727         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27728         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27729         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27730         ($(objpfx)tst-fnmatch-mem): New rule.
27731         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27732         * posix/tst-fnmatch.c (main): Call mtrace.
27733
27734 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27735
27736         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27737         Support Intel processor model 6 and model 0x2c.
27738
27739 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27740
27741         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27742           signed comparison.
27743
27744 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27745
27746         [BZ #12205]
27747         * string/test-strncasecmp.c (check_result): New function.
27748         (do_one_test): Use it.
27749         (check1): New function.
27750         (test_main): Use it.
27751         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27752         Support strcasecmp and strncasecmp.
27753
27754 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27755
27756         [BZ #12194]
27757         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27758         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27759
27760 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27761
27762         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27763         IFUNC support.
27764         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27765         memset-x86-64.
27766         * sysdeps/x86_64/multiarch/bzero.S: New file.
27767         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27768         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27769         * sysdeps/x86_64/multiarch/memset.S: New file.
27770         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27772         Set bit_Prefer_SSE_for_memop for Intel processors.
27773         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27774         Define.
27775         (index_Prefer_SSE_for_memop): Define.
27776         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27777
27778 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27779
27780         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27781         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27782
27783 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27784
27785         [BZ #12191]
27786         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27787         (__x86_64_raw_data_cache_size_half): Likewise.
27788         (__x86_64_raw_shared_cache_size): Likewise.
27789         (__x86_64_raw_shared_cache_size_half): Likewise.
27790
27791         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27792         (__x86_64_raw_data_cache_size_half): Likewise.
27793         (__x86_64_raw_shared_cache_size): Likewise.
27794         (__x86_64_raw_shared_cache_size_half): Likewise.
27795         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27796         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27797         and __x86_64_raw_shared_cache_size_half.  Round
27798         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27799         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27800         to multiple of 256 bytes.
27801
27802 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27803
27804         [BZ #12167]
27805         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27806         of inacessible symlinks.  Verify result of symlink before returning it.
27807         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27808         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27809
27810 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27811
27812         * math/math.h (isinf): Fix typo in comment.
27813
27814 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27815
27816         * po/da.po: Update from translation team.
27817
27818 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27819
27820         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27821         is added to the list.
27822
27823 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27824             Ulrich Drepper  <drepper@gmail.com>
27825
27826         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27827         the global list here.  Move code to...
27828         (_dl_add_to_namespace_list): ...here.  New function.
27829         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27830         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27831         * elf/dl-load.c (lose): Don't remove the element from the list.
27832         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27833         (_dl_map_object): Likewise.
27834
27835 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27836
27837         [BZ #12159]
27838         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27839         into all bytes of SSE register.
27840         Patch by Richard Li <richardpku@gmail.com>.
27841
27842 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27843
27844         [BZ #12140]
27845         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27846         perturbing.
27847
27848 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27849
27850         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27851         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27852         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27853         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27855         submachine.
27856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27857
27858 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27859
27860         * include/dlfcn.h (__RTLD_SECURE): Define.
27861         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27862         mode & __RTLD_SECURE instead.
27863         (open_path): Rename preloaded parameter to secure.
27864         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27865         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27866         * elf/dl-deps.c (openaux): Likewise.
27867         * elf/rtld.c (struct map_args): Remove is_preloaded.
27868         (map_doit): Don't use it.
27869         (dl_main): Likewise.
27870         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27871         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27872
27873 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27874
27875         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27876         (sysd-rules-targets): Remove duplicates.
27877         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27878         rtld-%.$o dependency.
27879
27880 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27881
27882         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27883         _dl_map_object do it.
27884
27885 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27886
27887         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27888         fast fma builtins, define the macros in the C99 standard.
27889         (FP_FAST_FMAF): Likewise.
27890         (FP_FAST_FMAL): Likewise.
27891         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27892
27893         * bits/mathdef.h: Update copyright year.
27894         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27895
27896 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27897
27898         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27899         builtins, define the macros in the C99 standard.
27900         (FP_FAST_FMAF): Likewise.
27901         (FP_FAST_FMAL): Likewise.
27902         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27903         multiply/add.
27904         (FP_FAST_FMAF): Likewise.
27905
27906 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27907
27908         [BZ #3268]
27909         * math/libm-test.inc (fma_test): Some new testcases.
27910         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27911         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27912         y and infinite z.  Do multiplication by C already in long double.
27913         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27914         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27915         y and infinite z.  Do bitwise or of inexact bit into u.d.
27916         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27917         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27918         * sysdeps/i386/fpu/s_fma.S: Removed.
27919         * sysdeps/i386/fpu/s_fmal.S: Removed.
27920
27921 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27922
27923         [BZ #3268]
27924         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27925         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27926         computation is not scheduled after fetestexcept.  Fix value
27927         of minimum denormal long double.
27928
27929 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27930
27931         [BZ #3268]
27932         * math/libm-test.inc (fma_test): Add some more tests.
27933         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27934         correctly.
27935
27936 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27937
27938         * scripts/data/localplt-s390-linux-gnu.data: New file.
27939         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27940
27941 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27942
27943         [BZ #3268]
27944         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27945         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27946         instead of dbl-64.
27947         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27948         inlines.
27949         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27950         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27951         if one of x and y is very large and the other is subnormal.
27952         * sysdeps/s390/fpu/s_fmaf.c: New file.
27953         * sysdeps/s390/fpu/s_fma.c: New file.
27954         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27955         * sysdeps/powerpc/fpu/s_fma.S: New file.
27956         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27957         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27958         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27959
27960 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27961
27962         [BZ #3268]
27963         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27964         fma tests.
27965         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27966         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27967         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27968         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27969         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27970         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27971         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27972
27973 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27974
27975         [BZ #12078]
27976         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27977         * posix/bug-regex31.input: Add test case.
27978
27979 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27980
27981         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27982         * posix/bug-regex31.input: New file.
27983
27984         [BZ #12078]
27985         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27986         (parse_sub_exp): Fix last change, use postorder.
27987
27988         * posix/bug-regex31.c: New file.
27989         * posix/Makefile: Add rules to build and run bug-regex31.
27990
27991         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27992
27993         [BZ #12078]
27994         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27995
27996         [BZ #12108]
27997         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27998         to have entries in sys_siglist.
27999
28000         [BZ #12093]
28001         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28002         be NULL.
28003
28004 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28005
28006         [BZ #3268]
28007         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28008         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28009         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28010         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28011         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28012         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28013         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28014         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28015         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28016         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28017         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28018         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28019         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28020         * math/ftestexcept.c (fetestexcept): Likewise.
28021         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28022         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28023         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28024         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28025         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28026         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28027         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28028
28029 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28030
28031         [BZ #12107]
28032         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28033         newline.
28034
28035 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28036
28037         * string/bug-strstr1.c: New file.
28038         * string/Makefile: Add rules to build and run bug-strstr1.
28039
28040 2010-10-05  Eric Blake  <eblake@redhat.com>
28041
28042         [BZ #12092]
28043         * string/str-two-way.h (two_way_long_needle): Always clear memory
28044         when skipping input due to the shift table.
28045
28046 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28047
28048         [BZ #12005]
28049         * malloc/mcheck.c: Handle large requests.
28050
28051         [BZ #12077]
28052         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28053         for strncmp and strncasecmp.
28054         * string/stratcliff.c: Add tests for strcmp and strncmp.
28055         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28056
28057 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28058
28059         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28060         __set_fpscr.
28061
28062 2010-09-30  Andreas Jaeger  <aj@suse.de>
28063
28064         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28065         (CGROUP_SUPER_MAGIC): Define.
28066         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28067         Handle btrfs and cgroup file systems.
28068         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28069         Likewise.
28070
28071 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28072
28073         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28074         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28075
28076 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28077
28078         [BZ #12067]
28079         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28080         trying to locate the ELF header.
28081
28082 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28083
28084         [BZ #11611]
28085         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28086         Mask out sign-bit copies when constructing f_fsid.
28087
28088 2010-09-24  Petr Baudis <pasky@suse.cz>
28089
28090         * debug/stack_chk_fail_local.c: Add missing licence exception.
28091         * debug/warning-nop.c: Likewise.
28092
28093 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28094
28095         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28096         implementing getdents64 using getdents syscall, set d_type if
28097         __ASSUME_GETDENTS32_D_TYPE.
28098
28099 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28100
28101         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28102         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28103
28104 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28105
28106         [BZ #12037]
28107         * posix/unistd.h: Undo change of feature selection for ftruncate from
28108         2010-01-11.
28109
28110 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28111
28112         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28113         detection.
28114
28115 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28116
28117         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28118         fanotify_mark.
28119         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28120
28121 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28122
28123         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28124         variables after CHECK_SP call.
28125         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28126
28127 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28128             Ulrich Drepper  <drepper@redhat.com>
28129
28130         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28131         re-relocationg ld.so.
28132         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28133         _dl_init_paths call.
28134         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28135         here anymore.
28136
28137 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28138
28139         * resolv/res_init.c (__res_vinit): Count the default server we added.
28140
28141 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28142             Ulrich Drepper  <drepper@redhat.com>
28143
28144         [BZ #11968]
28145         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28146         (____longjmp_chk): Use %ebx for saving value across system call.
28147         Add unwind info.
28148
28149 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28150
28151         * manual/Makefile: Don't mix pattern rules with normal rules.
28152
28153 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28154
28155         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28156         operation.
28157         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28158         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28159         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28160         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28161         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28162         Likewise.
28163
28164 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28165
28166         [BZ #11979]
28167         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28168         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28169
28170 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28171
28172         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28173         * sysdeps/x86_64/addmul_1.S: Likewise.
28174         * sysdeps/x86_64/lshift.S: Likewise.
28175         * sysdeps/x86_64/mul_1.S: Likewise.
28176         * sysdeps/x86_64/rshift.S: Likewise.
28177         * sysdeps/x86_64/sub_n.S: Likewise.
28178         * sysdeps/x86_64/submul_1.S: Likewise.
28179
28180 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28181
28182         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28183         Define __sched_param instead of SCHED_* and sched_param when
28184         <bits/sched.h> is included with __need_schedparam defined.
28185         * bits/sched.h [__need_schedparam]
28186         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28187         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28188         (__defined_schedparam): Define to 1.
28189         (__sched_param): New structure, identical to sched_param.
28190         (__need_schedparam): Undefine.
28191
28192 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28193
28194         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28195         (epoll_create1): Declare.
28196
28197         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28198
28199 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28200
28201         [BZ #7066]
28202         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28203         shifting retval into place.
28204
28205 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28206
28207         * nis/rpcsvc/nis.h: Update copyright notice.
28208         * nis/rpcsvc/nis.x: Likewise.
28209         * nis/rpcsvc/nis_callback.h: Likewise.
28210         * nis/rpcsvc/nis_callback.x: Likewise.
28211         * nis/rpcsvc/nis_object.x: Likewise.
28212         * nis/rpcsvc/nis_tags.h: Likewise.
28213         * nis/rpcsvc/yp.h: Likewise.
28214         * nis/rpcsvc/yp.x: Likewise.
28215         * nis/rpcsvc/ypupd.h: Likewise.
28216         * nis/yp_xdr.c: Likewise.
28217         * nis/ypupdate_xdr.c: Likewise.
28218
28219         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28220         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28221         (pmap_getport): Use __libc_rpc_getport.
28222         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28223         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28224         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28225
28226 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28227
28228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28229         fanotify_mark.
28230
28231 2010-08-27  Roland McGrath  <roland@redhat.com>
28232
28233         * sysdeps/i386/i686/multiarch/Makefile
28234         (CFLAGS-varshift.c): New variable.
28235
28236 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28237
28238         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28239         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28240
28241         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28242
28243         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28244
28245 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28246
28247         * sysdeps/x86_64/strlen.S: Unroll the loop.
28248         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28249         strlen-sse2 strlen-sse2-bsf.
28250         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28251         __strlen_no_bsf if bit_Slow_BSF is set.
28252         (__strlen_sse42): Removed.
28253         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28254         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28255
28256 2010-08-25  Roland McGrath  <roland@redhat.com>
28257
28258         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28259         * sysdeps/x86_64/multiarch/varshift.c: New file.
28260         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28261         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28262         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28263         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28264
28265 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28266
28267         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28268         strlen-sse2 strlen-sse2-bsf.
28269         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28270         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28271         (__strlen_sse2): Removed.
28272         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28273         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28274         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28275         bit_Slow_BSF for Atom.
28276         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28277         (index_Slow_BSF): Define.
28278         (HAS_SLOW_BSF): Define.
28279
28280 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28281
28282         [BZ #10851]
28283         * resolv/res_init.c (__res_vinit): When no server address at all
28284         is given default to loopback.
28285
28286 2010-08-24  Roland McGrath  <roland@redhat.com>
28287
28288         * configure.in: Remove config-name.h generation.
28289         * configure: Regenerated.
28290         * config-name.in: File removed.
28291         * scripts/config-uname.sh: New file.
28292         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28293         ($(objdir)config-name.h): New target.
28294
28295         * sunrpc/rpc_parse.h: Avoid nested comment.
28296
28297 2010-08-24  Richard Henderson  <rth@redhat.com>
28298             Ulrich Drepper  <drepper@redhat.com>
28299             H.J. Lu  <hongjiu.lu@intel.com>
28300
28301         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28302         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28303         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28304         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28305         _mm_alignr_epi8 with _mm_loadu_si128.
28306         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28307         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28308         (__m128i_shift_right): Removed.
28309         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28310         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28311         * sysdeps/x86_64/multiarch/varshift.h: New file.
28312         * sysdeps/x86_64/multiarch/varshift.S: New file.
28313
28314 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28315
28316         * configure.in: Move assembler checks to before sysdep dir checking.
28317
28318 2010-08-20  Petr Baudis  <pasky@suse.cz>
28319
28320         * LICENSES: Sync the sunrpc license.
28321
28322 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28323
28324         * sunrpc/auth_des.c: Update copyright notice once again.
28325         * sunrpc/auth_none.c: Likewise.
28326         * sunrpc/auth_unix.c: Likewise.
28327         * sunrpc/authdes_prot.c: Likewise.
28328         * sunrpc/authuxprot.c: Likewise.
28329         * sunrpc/bindrsvprt.c: Likewise.
28330         * sunrpc/clnt_gen.c: Likewise.
28331         * sunrpc/clnt_perr.c: Likewise.
28332         * sunrpc/clnt_raw.c: Likewise.
28333         * sunrpc/clnt_simp.c: Likewise.
28334         * sunrpc/clnt_tcp.c: Likewise.
28335         * sunrpc/clnt_udp.c: Likewise.
28336         * sunrpc/clnt_unix.c: Likewise.
28337         * sunrpc/des_crypt.c: Likewise.
28338         * sunrpc/des_soft.c: Likewise.
28339         * sunrpc/get_myaddr.c: Likewise.
28340         * sunrpc/getrpcport.c: Likewise.
28341         * sunrpc/key_call.c: Likewise.
28342         * sunrpc/key_prot.c: Likewise.
28343         * sunrpc/openchild.c: Likewise.
28344         * sunrpc/pm_getmaps.c: Likewise.
28345         * sunrpc/pm_getport.c: Likewise.
28346         * sunrpc/pmap_clnt.c: Likewise.
28347         * sunrpc/pmap_prot.c: Likewise.
28348         * sunrpc/pmap_prot2.c: Likewise.
28349         * sunrpc/pmap_rmt.c: Likewise.
28350         * sunrpc/rpc/auth.h: Likewise.
28351         * sunrpc/rpc/auth_unix.h: Likewise.
28352         * sunrpc/rpc/clnt.h: Likewise.
28353         * sunrpc/rpc/des_crypt.h: Likewise.
28354         * sunrpc/rpc/key_prot.h: Likewise.
28355         * sunrpc/rpc/netdb.h: Likewise.
28356         * sunrpc/rpc/pmap_clnt.h: Likewise.
28357         * sunrpc/rpc/pmap_prot.h: Likewise.
28358         * sunrpc/rpc/pmap_rmt.h: Likewise.
28359         * sunrpc/rpc/rpc.h: Likewise.
28360         * sunrpc/rpc/rpc_des.h: Likewise.
28361         * sunrpc/rpc/rpc_msg.h: Likewise.
28362         * sunrpc/rpc/svc.h: Likewise.
28363         * sunrpc/rpc/svc_auth.h: Likewise.
28364         * sunrpc/rpc/types.h: Likewise.
28365         * sunrpc/rpc/xdr.h: Likewise.
28366         * sunrpc/rpc_clntout.c: Likewise.
28367         * sunrpc/rpc_cmsg.c: Likewise.
28368         * sunrpc/rpc_common.c: Likewise.
28369         * sunrpc/rpc_cout.c: Likewise.
28370         * sunrpc/rpc_dtable.c: Likewise.
28371         * sunrpc/rpc_hout.c: Likewise.
28372         * sunrpc/rpc_main.c: Likewise.
28373         * sunrpc/rpc_parse.c: Likewise.
28374         * sunrpc/rpc_parse.h: Likewise.
28375         * sunrpc/rpc_prot.c: Likewise.
28376         * sunrpc/rpc_sample.c: Likewise.
28377         * sunrpc/rpc_scan.c: Likewise.
28378         * sunrpc/rpc_scan.h: Likewise.
28379         * sunrpc/rpc_svcout.c: Likewise.
28380         * sunrpc/rpc_tblout.c: Likewise.
28381         * sunrpc/rpc_util.c: Likewise.
28382         * sunrpc/rpc_util.h: Likewise.
28383         * sunrpc/rpcinfo.c: Likewise.
28384         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28385         * sunrpc/rpcsvc/key_prot.x: Likewise.
28386         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28387         * sunrpc/rpcsvc/mount.x: Likewise.
28388         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28389         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28390         * sunrpc/rpcsvc/rex.x: Likewise.
28391         * sunrpc/rpcsvc/rstat.x: Likewise.
28392         * sunrpc/rpcsvc/rusers.x: Likewise.
28393         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28394         * sunrpc/rpcsvc/spray.x: Likewise.
28395         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28396         * sunrpc/rtime.c: Likewise.
28397         * sunrpc/svc.c: Likewise.
28398         * sunrpc/svc_auth.c: Likewise.
28399         * sunrpc/svc_authux.c: Likewise.
28400         * sunrpc/svc_raw.c: Likewise.
28401         * sunrpc/svc_run.c: Likewise.
28402         * sunrpc/svc_simple.c: Likewise.
28403         * sunrpc/svc_tcp.c: Likewise.
28404         * sunrpc/svc_udp.c: Likewise.
28405         * sunrpc/svc_unix.c: Likewise.
28406         * sunrpc/svcauth_des.c: Likewise.
28407         * sunrpc/xcrypt.c: Likewise.
28408         * sunrpc/xdr.c: Likewise.
28409         * sunrpc/xdr_array.c: Likewise.
28410         * sunrpc/xdr_float.c: Likewise.
28411         * sunrpc/xdr_mem.c: Likewise.
28412         * sunrpc/xdr_rec.c: Likewise.
28413         * sunrpc/xdr_ref.c: Likewise.
28414         * sunrpc/xdr_sizeof.c: Likewise.
28415         * sunrpc/xdr_stdio.c: Likewise.
28416
28417         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28418         handling.
28419
28420 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28421
28422         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28423
28424 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28425
28426         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28427         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28428         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28429         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28430         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28431         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28432         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28433         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28434         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28435         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28436         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28437         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28438         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28439         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28440
28441 2010-07-26  Anton Blanchard  <anton@samba.org>
28442
28443         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28444         * malloc/arena.c (heap_trim): Likewise.
28445
28446 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28447
28448         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28449         here.  Not...
28450         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28451         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28452
28453 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28454
28455         * sysdeps/i386/elf/Makefile: New file.
28456
28457 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28458
28459         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28460         from fanotify_init.
28461         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28462         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28463
28464 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28465
28466         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28467         of strncasecmp_l.
28468         * sysdeps/multiarch/strcmp.S: Likewise.
28469
28470 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28471
28472         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28473         strncase_l-nonascii.
28474         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28475         Add strncase_l-ssse3.
28476         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28477         * sysdeps/x86_64/strcmp.S: Likewise.
28478         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28479         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28480         * sysdeps/x86_64/strncase.S: New file.
28481         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28482         * sysdeps/x86_64/strncase_l.S: New file.
28483         * string/Makefile (strop-tests): Add strncasecmp.
28484         * string/test-strncasecmp.c: New file.
28485
28486         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28487         warning.
28488
28489         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28490         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28491
28492 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28493
28494         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28495
28496 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28497
28498         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28499         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28500         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28501
28502 2010-05-01  Alan Modra  <amodra@gmail.com>
28503
28504         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28505         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28506         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28507         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28508         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28509         tidying.  Don't tail-call __sigjmp_save for static lib.
28510         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28511         save location.
28512         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28513         (CALL_MCOUNT): Add eh info, and nop after bl.
28514         (TAIL_CALL_SYSCALL_ERROR): New macro.
28515         (PSEUDO_RET): Use it.
28516         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28517         Correct save location of integer regs and cr.
28518         (_dl_profile_resolve): Correct cr save location.  Delete nops
28519         after bl when SHARED.  Reduce cfi size a little by better
28520         placement of cfi directives.
28521         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28522         make a stack frame.  Instead use parm save area as a temp.
28523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28524         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28526         Don't make a stack frame for parent, use parm save area.
28527         Increase child stack frame to 112 bytes.  Don't save unused reg,
28528         and adjust reg usage.  Set up cfi on error recovery and
28529         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28531         (__makecontext): Add dummy nop after jump to exit.
28532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28533         Use correct parm save area and cr save, reduce stack frame.
28534         Correct cfi for possible PSEUDO_RET frame setup.
28535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28536         Branch to local label emitted by PSEUDO_RET rather than
28537         __syscall_error.
28538
28539 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28540
28541         [BZ #11904]
28542         * locale/programs/locale.c (print_assignment): New function.
28543         (show_locale_vars): Use it.
28544
28545 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28546
28547         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28548         field.
28549         (struct statfs64): Likewise.
28550         (_STATFS_F_FLAGS): Define.
28551         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28552         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28553         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28554         (ST_VALID): Define locally.
28555         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28556         __statvfs_getflags, use the provided value.
28557         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28558         __ASSUME_STATFS_F_FLAGS.
28559
28560         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28561
28562         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28563         Add sys/fanotify.h.
28564         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28565         fanotify_mask for GLIBC_2.13.
28566         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28567         fanotify_init and fanotify_mark.
28568         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28569         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28570
28571         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28572         Add prlimit.
28573         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28574         prlimit64 for GLIBC_2.13.
28575         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28576         prlimit64.
28577         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28578         syscall.
28579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28580         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28581         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28582         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28583         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28584         add prlimit alias.
28585         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28586
28587         [BZ #11903]
28588         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28589         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28590
28591         * nss/Makefile: Add rules to build and run tst-nss-test1.
28592         * shlib-versions: Add entry for libnss_test1.
28593         * nss/nss_test1.c: New file.
28594         * nss/tst-nss-test1.c: New file.
28595
28596         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28597         (__nss_configure_lookup): Set appropriate entry in
28598         __nss_configure_lookup to true.
28599         * nss/nsswitch.h: Define enum with indeces of databases in
28600         databases and __nss_database_custom arrays.  Declare
28601         __nss_database_custom.
28602         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28603         to avoid using nscd when custom rules are installed.
28604         * nss/getXXbyYY_r.c: Likewise.
28605         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28606
28607         * nss/nss_files/files-parse.c: Whitespace fixes.
28608
28609 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28610
28611         [BZ #11883]
28612         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28613         * posix/fnmatch_loop.c: Likewise.
28614
28615 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28616
28617         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28618         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28619         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28620         * Versions.def [GLIBC_2.13]: Add.
28621
28622 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28623
28624         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28625         Also fail if tpwd after pwuid call is NULL.
28626
28627 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28628
28629         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28630         when converting to ms.
28631
28632 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28633
28634         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28635         EOPNOTSUPP errors with ENOTTY.
28636         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28637         EOPNOTSUPP errors with ENOTTY.
28638
28639 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28640
28641         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28642         Add strcasecmp_l-ssse3.
28643         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28644         strcasecmp.
28645         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28646         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28647         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28648
28649 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28650
28651         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28652
28653         * string/Makefile (strop-tests): Add strcasecmp.
28654         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28655         strcasecmp_l-nonascii.
28656         (gen-as-const-headers): Add locale-defines.sym.
28657         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28658         * sysdeps/x86_64/strcasecmp.S: New file.
28659         * sysdeps/x86_64/strcasecmp_l.S: New file.
28660         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28661         * sysdeps/x86_64/locale-defines.sym: New file.
28662         * string/test-strcasecmp.c: New file.
28663
28664         * string/test-strcasestr.c: Test both ends of the range of characters.
28665         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28666
28667 2010-07-29  Roland McGrath  <roland@redhat.com>
28668
28669         [BZ #11856]
28670         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28671
28672 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28673
28674         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28675         for ld.so.
28676
28677 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28678
28679         * manual/memory.texi (Malloc Tunable Parameters): Document
28680         M_PERTURB.
28681
28682 2010-07-26  Roland McGrath  <roland@redhat.com>
28683
28684         [BZ #11840]
28685         * configure.in (-fgnu89-inline check): Set and substitute
28686         gnu89_inline, not libc_cv_gnu89_inline.
28687         * configure: Regenerated.
28688         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28689
28690 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28691
28692         * string/test-strnlen.c: New file.
28693         * string/Makefile (strop-tests): Add strnlen.
28694         * string/tester.c (test_strnlen): Add a few more test cases.
28695         * string/tst-strlen.c: Better error reporting.
28696
28697         * sysdeps/x86_64/strnlen.S: New file.
28698
28699 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28700
28701         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28702         lower-latency instructions.
28703
28704 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28705
28706         * string/test-strcasestr.c: New file.
28707         * string/test-strstr.c: New file.
28708         * string/Makefile (strop-tests): Add strstr and strcasestr.
28709         * string/str-two-way.h: Don't undefine MAX.
28710         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28711
28712 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28713
28714         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28715         strcasestr-nonascii.
28716         (CFLAGS-strcasestr-nonascii.c): Define.
28717         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28718         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28719         Remove unused attribute.
28720
28721 2010-07-20  Roland McGrath  <roland@redhat.com>
28722
28723         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28724         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28725         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28726         like LD_HWCAP_MASK can disable hwcaps.
28727
28728 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28729
28730         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28731
28732 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28733
28734         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28735         call in strcasestr.
28736         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28737         __strcasestr_sse42_nonascii.
28738         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28739         strcasestr-nonascii.c.
28740         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28741
28742 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28743
28744         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28745         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28746         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28747         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28748
28749 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28750
28751         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28752         fcntl.
28753
28754 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28755
28756         [BZ #11577]
28757         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28758         dl_signal_cerror.
28759
28760 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28761
28762         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28763         _PC_PIPE_BUF using F_GETPIPE_SZ.
28764
28765 2010-07-05  Roland McGrath  <roland@redhat.com>
28766
28767         * manual/arith.texi (Rounding Functions): Fix rint description
28768         implicit in round description.
28769
28770 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28771
28772         * elf/Makefile: Fix linking for a few tests to make recent linker
28773         happy.
28774
28775 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28776
28777         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28778         $(common-objpfx)libc_nonshared.a.
28779
28780 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28781
28782         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28783         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28784         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28785         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28786         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28787         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28788         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28789         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28804         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28805         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28806         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28807         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28808         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28809         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28810         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28811         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28812         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28813         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28814         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28815         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28830
28831 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28832
28833         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28834         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28835         * string/memmove.c (memmove): Renamed to ...
28836         (MEMMOVE): ...this.  Default to memmove.
28837         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28838         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28839         (END_CHK): Define.
28840         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28841         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28842         mempcpy-ssse3-back memmove-ssse3-back.
28843         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28844         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28845         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28846         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28847         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28848         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28849         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28850         * sysdeps/x86_64/multiarch/memmove.c: New file.
28851         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28852         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28853         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28854         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28855         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28856         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28857         Define.
28858         (index_Fast_Copy_Backward): Define.
28859         (HAS_ARCH_FEATURE): Define.
28860         (HAS_FAST_REP_STRING): Define.
28861         (HAS_FAST_COPY_BACKWARD): Define.
28862
28863 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28864
28865         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28866         Restore proper fallback handling.
28867
28868 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28869
28870         [BZ #11701]
28871         * posix/group_member.c (__group_member): Correct checking loop.
28872
28873         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28874         OOM in getpwuid_r correctly.  Return error number when the caller
28875         should return, otherwise -1.
28876         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28877         call returning > 0 value.
28878         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28879
28880 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28881
28882         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28883         libc_nonshared.a from targets in modules-names.
28884
28885 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28886
28887         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28888         requires it.
28889
28890 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28891
28892         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28893         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28894         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28895         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28896
28897 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28898
28899         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28900
28901 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28902
28903         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28904         and F_GETPIPE_SZ.
28905         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28906         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28907         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28908         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28909         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28910         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28911
28912 2010-06-14  Roland McGrath  <roland@redhat.com>
28913
28914         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28915
28916 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28917
28918         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28919         __REDIRECT followed by __THROW.
28920         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28921         * posix/getopt.h (getopt): Likewise.
28922
28923 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28924
28925         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28926         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28927         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28928         in AT_FLAGS.
28929         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28930         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28931
28932 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28933
28934         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28935
28936 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28937
28938         [BZ #11640]
28939         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28940         Properly check family and model.
28941
28942 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28943
28944         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28945
28946 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28947
28948         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28949
28950 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28951
28952         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28953         symbol reference.
28954
28955 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28956
28957         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28958         symbol reference.
28959
28960 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28961
28962         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28963         and internal_recvmmsg.
28964         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28965         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28966         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28967         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28968
28969         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28970         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28971         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28972
28973 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28974
28975         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28976
28977 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28978
28979         POWER7 optimizations.
28980         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28981         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28982
28983 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28984
28985         * version.h: Update for 2.13 development version.
28986
28987 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28988
28989         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28990         exceptions.  Return 0.
28991
28992 2010-05-07  Roland McGrath  <roland@redhat.com>
28993
28994         * elf/ldconfig.c (main): Add a const.
28995
28996 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28997
28998         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28999         (args_options): Add no-idn option.
29000         (ahosts_keys_int): Add idn_flags to ai_flags.
29001         (parse_option): Handle 'i' option to clear idn_flags.
29002
29003         * malloc/malloc.c (_int_free): Possible race in the most recently
29004         added check.  Only act on the data if no current modification
29005         happened.
29006
29007 See ChangeLog.17 for earlier changes.